configure revision 518bcf38
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for xf86-video-glint 1.2.4. 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-glint' 752PACKAGE_TARNAME='xf86-video-glint' 753PACKAGE_VERSION='1.2.4' 754PACKAGE_STRING='xf86-video-glint 1.2.4' 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 798ADMIN_MAN_DIR 799DRIVER_MAN_DIR 800MISC_MAN_DIR 801FILE_MAN_DIR 802LIB_MAN_DIR 803APP_MAN_DIR 804ADMIN_MAN_SUFFIX 805DRIVER_MAN_SUFFIX 806MISC_MAN_SUFFIX 807FILE_MAN_SUFFIX 808LIB_MAN_SUFFIX 809APP_MAN_SUFFIX 810DRIVER_NAME 811moduledir 812XSERVER_LIBPCIACCESS_FALSE 813XSERVER_LIBPCIACCESS_TRUE 814PCIACCESS_LIBS 815PCIACCESS_CFLAGS 816DRI_LIBS 817DRI_CFLAGS 818DRI_FALSE 819DRI_TRUE 820HAVE_XEXTPROTO_71_FALSE 821HAVE_XEXTPROTO_71_TRUE 822XEXT_LIBS 823XEXT_CFLAGS 824XORG_LIBS 825XORG_CFLAGS 826PKG_CONFIG 827LIBTOOL 828ac_ct_F77 829FFLAGS 830F77 831CXXCPP 832am__fastdepCXX_FALSE 833am__fastdepCXX_TRUE 834CXXDEPMODE 835ac_ct_CXX 836CXXFLAGS 837CXX 838CPP 839NMEDIT 840DSYMUTIL 841RANLIB 842AR 843ECHO 844LN_S 845EGREP 846GREP 847SED 848am__fastdepCC_FALSE 849am__fastdepCC_TRUE 850CCDEPMODE 851AMDEPBACKSLASH 852AMDEP_FALSE 853AMDEP_TRUE 854am__quote 855am__include 856DEPDIR 857OBJEXT 858EXEEXT 859ac_ct_CC 860CPPFLAGS 861LDFLAGS 862CFLAGS 863CC 864host_os 865host_vendor 866host_cpu 867host 868build_os 869build_vendor 870build_cpu 871build 872MAINT 873MAINTAINER_MODE_FALSE 874MAINTAINER_MODE_TRUE 875am__untar 876am__tar 877AMTAR 878am__leading_dot 879SET_MAKE 880AWK 881mkdir_p 882MKDIR_P 883INSTALL_STRIP_PROGRAM 884STRIP 885install_sh 886MAKEINFO 887AUTOHEADER 888AUTOMAKE 889AUTOCONF 890ACLOCAL 891VERSION 892PACKAGE 893CYGPATH_W 894am__isrc 895INSTALL_DATA 896INSTALL_SCRIPT 897INSTALL_PROGRAM 898target_alias 899host_alias 900build_alias 901LIBS 902ECHO_T 903ECHO_N 904ECHO_C 905DEFS 906mandir 907localedir 908libdir 909psdir 910pdfdir 911dvidir 912htmldir 913infodir 914docdir 915oldincludedir 916includedir 917localstatedir 918sharedstatedir 919sysconfdir 920datadir 921datarootdir 922libexecdir 923sbindir 924bindir 925program_transform_name 926prefix 927exec_prefix 928PACKAGE_BUGREPORT 929PACKAGE_STRING 930PACKAGE_VERSION 931PACKAGE_TARNAME 932PACKAGE_NAME 933PATH_SEPARATOR 934SHELL' 935ac_subst_files='' 936ac_user_opts=' 937enable_option_checking 938enable_maintainer_mode 939enable_static 940enable_shared 941enable_fast_install 942enable_dependency_tracking 943with_gnu_ld 944enable_libtool_lock 945with_pic 946with_tags 947with_xorg_module_dir 948enable_dri 949with_release_version 950' 951 ac_precious_vars='build_alias 952host_alias 953target_alias 954CC 955CFLAGS 956LDFLAGS 957LIBS 958CPPFLAGS 959CPP 960CXX 961CXXFLAGS 962CCC 963CXXCPP 964F77 965FFLAGS 966PKG_CONFIG 967XORG_CFLAGS 968XORG_LIBS 969XEXT_CFLAGS 970XEXT_LIBS 971DRI_CFLAGS 972DRI_LIBS 973PCIACCESS_CFLAGS 974PCIACCESS_LIBS' 975 976 977# Initialize some variables set by options. 978ac_init_help= 979ac_init_version=false 980ac_unrecognized_opts= 981ac_unrecognized_sep= 982# The variables have the same names as the options, with 983# dashes changed to underlines. 984cache_file=/dev/null 985exec_prefix=NONE 986no_create= 987no_recursion= 988prefix=NONE 989program_prefix=NONE 990program_suffix=NONE 991program_transform_name=s,x,x, 992silent= 993site= 994srcdir= 995verbose= 996x_includes=NONE 997x_libraries=NONE 998 999# Installation directory options. 1000# These are left unexpanded so users can "make install exec_prefix=/foo" 1001# and all the variables that are supposed to be based on exec_prefix 1002# by default will actually change. 1003# Use braces instead of parens because sh, perl, etc. also accept them. 1004# (The list follows the same order as the GNU Coding Standards.) 1005bindir='${exec_prefix}/bin' 1006sbindir='${exec_prefix}/sbin' 1007libexecdir='${exec_prefix}/libexec' 1008datarootdir='${prefix}/share' 1009datadir='${datarootdir}' 1010sysconfdir='${prefix}/etc' 1011sharedstatedir='${prefix}/com' 1012localstatedir='${prefix}/var' 1013includedir='${prefix}/include' 1014oldincludedir='/usr/include' 1015docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1016infodir='${datarootdir}/info' 1017htmldir='${docdir}' 1018dvidir='${docdir}' 1019pdfdir='${docdir}' 1020psdir='${docdir}' 1021libdir='${exec_prefix}/lib' 1022localedir='${datarootdir}/locale' 1023mandir='${datarootdir}/man' 1024 1025ac_prev= 1026ac_dashdash= 1027for ac_option 1028do 1029 # If the previous option needs an argument, assign it. 1030 if test -n "$ac_prev"; then 1031 eval $ac_prev=\$ac_option 1032 ac_prev= 1033 continue 1034 fi 1035 1036 case $ac_option in 1037 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1038 *) ac_optarg=yes ;; 1039 esac 1040 1041 # Accept the important Cygnus configure options, so we can diagnose typos. 1042 1043 case $ac_dashdash$ac_option in 1044 --) 1045 ac_dashdash=yes ;; 1046 1047 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1048 ac_prev=bindir ;; 1049 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1050 bindir=$ac_optarg ;; 1051 1052 -build | --build | --buil | --bui | --bu) 1053 ac_prev=build_alias ;; 1054 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1055 build_alias=$ac_optarg ;; 1056 1057 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1058 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1059 ac_prev=cache_file ;; 1060 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1061 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1062 cache_file=$ac_optarg ;; 1063 1064 --config-cache | -C) 1065 cache_file=config.cache ;; 1066 1067 -datadir | --datadir | --datadi | --datad) 1068 ac_prev=datadir ;; 1069 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1070 datadir=$ac_optarg ;; 1071 1072 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1073 | --dataroo | --dataro | --datar) 1074 ac_prev=datarootdir ;; 1075 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1076 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1077 datarootdir=$ac_optarg ;; 1078 1079 -disable-* | --disable-*) 1080 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1081 # Reject names that are not valid shell variable names. 1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1083 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1084 { (exit 1); exit 1; }; } 1085 ac_useropt_orig=$ac_useropt 1086 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1087 case $ac_user_opts in 1088 *" 1089"enable_$ac_useropt" 1090"*) ;; 1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1092 ac_unrecognized_sep=', ';; 1093 esac 1094 eval enable_$ac_useropt=no ;; 1095 1096 -docdir | --docdir | --docdi | --doc | --do) 1097 ac_prev=docdir ;; 1098 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1099 docdir=$ac_optarg ;; 1100 1101 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1102 ac_prev=dvidir ;; 1103 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1104 dvidir=$ac_optarg ;; 1105 1106 -enable-* | --enable-*) 1107 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1108 # Reject names that are not valid shell variable names. 1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1110 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1111 { (exit 1); exit 1; }; } 1112 ac_useropt_orig=$ac_useropt 1113 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1114 case $ac_user_opts in 1115 *" 1116"enable_$ac_useropt" 1117"*) ;; 1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1119 ac_unrecognized_sep=', ';; 1120 esac 1121 eval enable_$ac_useropt=\$ac_optarg ;; 1122 1123 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1124 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1125 | --exec | --exe | --ex) 1126 ac_prev=exec_prefix ;; 1127 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1128 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1129 | --exec=* | --exe=* | --ex=*) 1130 exec_prefix=$ac_optarg ;; 1131 1132 -gas | --gas | --ga | --g) 1133 # Obsolete; use --with-gas. 1134 with_gas=yes ;; 1135 1136 -help | --help | --hel | --he | -h) 1137 ac_init_help=long ;; 1138 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1139 ac_init_help=recursive ;; 1140 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1141 ac_init_help=short ;; 1142 1143 -host | --host | --hos | --ho) 1144 ac_prev=host_alias ;; 1145 -host=* | --host=* | --hos=* | --ho=*) 1146 host_alias=$ac_optarg ;; 1147 1148 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1149 ac_prev=htmldir ;; 1150 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1151 | --ht=*) 1152 htmldir=$ac_optarg ;; 1153 1154 -includedir | --includedir | --includedi | --included | --include \ 1155 | --includ | --inclu | --incl | --inc) 1156 ac_prev=includedir ;; 1157 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1158 | --includ=* | --inclu=* | --incl=* | --inc=*) 1159 includedir=$ac_optarg ;; 1160 1161 -infodir | --infodir | --infodi | --infod | --info | --inf) 1162 ac_prev=infodir ;; 1163 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1164 infodir=$ac_optarg ;; 1165 1166 -libdir | --libdir | --libdi | --libd) 1167 ac_prev=libdir ;; 1168 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1169 libdir=$ac_optarg ;; 1170 1171 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1172 | --libexe | --libex | --libe) 1173 ac_prev=libexecdir ;; 1174 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1175 | --libexe=* | --libex=* | --libe=*) 1176 libexecdir=$ac_optarg ;; 1177 1178 -localedir | --localedir | --localedi | --localed | --locale) 1179 ac_prev=localedir ;; 1180 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1181 localedir=$ac_optarg ;; 1182 1183 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1184 | --localstate | --localstat | --localsta | --localst | --locals) 1185 ac_prev=localstatedir ;; 1186 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1187 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1188 localstatedir=$ac_optarg ;; 1189 1190 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1191 ac_prev=mandir ;; 1192 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1193 mandir=$ac_optarg ;; 1194 1195 -nfp | --nfp | --nf) 1196 # Obsolete; use --without-fp. 1197 with_fp=no ;; 1198 1199 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1200 | --no-cr | --no-c | -n) 1201 no_create=yes ;; 1202 1203 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1204 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1205 no_recursion=yes ;; 1206 1207 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1208 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1209 | --oldin | --oldi | --old | --ol | --o) 1210 ac_prev=oldincludedir ;; 1211 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1212 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1213 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1214 oldincludedir=$ac_optarg ;; 1215 1216 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1217 ac_prev=prefix ;; 1218 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1219 prefix=$ac_optarg ;; 1220 1221 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1222 | --program-pre | --program-pr | --program-p) 1223 ac_prev=program_prefix ;; 1224 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1225 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1226 program_prefix=$ac_optarg ;; 1227 1228 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1229 | --program-suf | --program-su | --program-s) 1230 ac_prev=program_suffix ;; 1231 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1232 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1233 program_suffix=$ac_optarg ;; 1234 1235 -program-transform-name | --program-transform-name \ 1236 | --program-transform-nam | --program-transform-na \ 1237 | --program-transform-n | --program-transform- \ 1238 | --program-transform | --program-transfor \ 1239 | --program-transfo | --program-transf \ 1240 | --program-trans | --program-tran \ 1241 | --progr-tra | --program-tr | --program-t) 1242 ac_prev=program_transform_name ;; 1243 -program-transform-name=* | --program-transform-name=* \ 1244 | --program-transform-nam=* | --program-transform-na=* \ 1245 | --program-transform-n=* | --program-transform-=* \ 1246 | --program-transform=* | --program-transfor=* \ 1247 | --program-transfo=* | --program-transf=* \ 1248 | --program-trans=* | --program-tran=* \ 1249 | --progr-tra=* | --program-tr=* | --program-t=*) 1250 program_transform_name=$ac_optarg ;; 1251 1252 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1253 ac_prev=pdfdir ;; 1254 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1255 pdfdir=$ac_optarg ;; 1256 1257 -psdir | --psdir | --psdi | --psd | --ps) 1258 ac_prev=psdir ;; 1259 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1260 psdir=$ac_optarg ;; 1261 1262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1263 | -silent | --silent | --silen | --sile | --sil) 1264 silent=yes ;; 1265 1266 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1267 ac_prev=sbindir ;; 1268 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1269 | --sbi=* | --sb=*) 1270 sbindir=$ac_optarg ;; 1271 1272 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1273 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1274 | --sharedst | --shareds | --shared | --share | --shar \ 1275 | --sha | --sh) 1276 ac_prev=sharedstatedir ;; 1277 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1278 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1279 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1280 | --sha=* | --sh=*) 1281 sharedstatedir=$ac_optarg ;; 1282 1283 -site | --site | --sit) 1284 ac_prev=site ;; 1285 -site=* | --site=* | --sit=*) 1286 site=$ac_optarg ;; 1287 1288 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1289 ac_prev=srcdir ;; 1290 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1291 srcdir=$ac_optarg ;; 1292 1293 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1294 | --syscon | --sysco | --sysc | --sys | --sy) 1295 ac_prev=sysconfdir ;; 1296 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1297 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1298 sysconfdir=$ac_optarg ;; 1299 1300 -target | --target | --targe | --targ | --tar | --ta | --t) 1301 ac_prev=target_alias ;; 1302 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1303 target_alias=$ac_optarg ;; 1304 1305 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1306 verbose=yes ;; 1307 1308 -version | --version | --versio | --versi | --vers | -V) 1309 ac_init_version=: ;; 1310 1311 -with-* | --with-*) 1312 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1313 # Reject names that are not valid shell variable names. 1314 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1315 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1316 { (exit 1); exit 1; }; } 1317 ac_useropt_orig=$ac_useropt 1318 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1319 case $ac_user_opts in 1320 *" 1321"with_$ac_useropt" 1322"*) ;; 1323 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1324 ac_unrecognized_sep=', ';; 1325 esac 1326 eval with_$ac_useropt=\$ac_optarg ;; 1327 1328 -without-* | --without-*) 1329 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1330 # Reject names that are not valid shell variable names. 1331 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1332 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1333 { (exit 1); exit 1; }; } 1334 ac_useropt_orig=$ac_useropt 1335 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1336 case $ac_user_opts in 1337 *" 1338"with_$ac_useropt" 1339"*) ;; 1340 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1341 ac_unrecognized_sep=', ';; 1342 esac 1343 eval with_$ac_useropt=no ;; 1344 1345 --x) 1346 # Obsolete; use --with-x. 1347 with_x=yes ;; 1348 1349 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1350 | --x-incl | --x-inc | --x-in | --x-i) 1351 ac_prev=x_includes ;; 1352 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1353 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1354 x_includes=$ac_optarg ;; 1355 1356 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1357 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1358 ac_prev=x_libraries ;; 1359 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1360 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1361 x_libraries=$ac_optarg ;; 1362 1363 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1364Try \`$0 --help' for more information." >&2 1365 { (exit 1); exit 1; }; } 1366 ;; 1367 1368 *=*) 1369 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1370 # Reject names that are not valid shell variable names. 1371 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1372 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1373 { (exit 1); exit 1; }; } 1374 eval $ac_envvar=\$ac_optarg 1375 export $ac_envvar ;; 1376 1377 *) 1378 # FIXME: should be removed in autoconf 3.0. 1379 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1380 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1381 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1382 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1383 ;; 1384 1385 esac 1386done 1387 1388if test -n "$ac_prev"; then 1389 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1390 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1391 { (exit 1); exit 1; }; } 1392fi 1393 1394if test -n "$ac_unrecognized_opts"; then 1395 case $enable_option_checking in 1396 no) ;; 1397 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1398 { (exit 1); exit 1; }; } ;; 1399 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1400 esac 1401fi 1402 1403# Check all directory arguments for consistency. 1404for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1405 datadir sysconfdir sharedstatedir localstatedir includedir \ 1406 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1407 libdir localedir mandir 1408do 1409 eval ac_val=\$$ac_var 1410 # Remove trailing slashes. 1411 case $ac_val in 1412 */ ) 1413 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1414 eval $ac_var=\$ac_val;; 1415 esac 1416 # Be sure to have absolute directory names. 1417 case $ac_val in 1418 [\\/$]* | ?:[\\/]* ) continue;; 1419 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1420 esac 1421 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1422 { (exit 1); exit 1; }; } 1423done 1424 1425# There might be people who depend on the old broken behavior: `$host' 1426# used to hold the argument of --host etc. 1427# FIXME: To remove some day. 1428build=$build_alias 1429host=$host_alias 1430target=$target_alias 1431 1432# FIXME: To remove some day. 1433if test "x$host_alias" != x; then 1434 if test "x$build_alias" = x; then 1435 cross_compiling=maybe 1436 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1437 If a cross compiler is detected then cross compile mode will be used." >&2 1438 elif test "x$build_alias" != "x$host_alias"; then 1439 cross_compiling=yes 1440 fi 1441fi 1442 1443ac_tool_prefix= 1444test -n "$host_alias" && ac_tool_prefix=$host_alias- 1445 1446test "$silent" = yes && exec 6>/dev/null 1447 1448 1449ac_pwd=`pwd` && test -n "$ac_pwd" && 1450ac_ls_di=`ls -di .` && 1451ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1452 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1453 { (exit 1); exit 1; }; } 1454test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1455 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1456 { (exit 1); exit 1; }; } 1457 1458 1459# Find the source files, if location was not specified. 1460if test -z "$srcdir"; then 1461 ac_srcdir_defaulted=yes 1462 # Try the directory containing this script, then the parent directory. 1463 ac_confdir=`$as_dirname -- "$as_myself" || 1464$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1465 X"$as_myself" : 'X\(//\)[^/]' \| \ 1466 X"$as_myself" : 'X\(//\)$' \| \ 1467 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1468$as_echo X"$as_myself" | 1469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1470 s//\1/ 1471 q 1472 } 1473 /^X\(\/\/\)[^/].*/{ 1474 s//\1/ 1475 q 1476 } 1477 /^X\(\/\/\)$/{ 1478 s//\1/ 1479 q 1480 } 1481 /^X\(\/\).*/{ 1482 s//\1/ 1483 q 1484 } 1485 s/.*/./; q'` 1486 srcdir=$ac_confdir 1487 if test ! -r "$srcdir/$ac_unique_file"; then 1488 srcdir=.. 1489 fi 1490else 1491 ac_srcdir_defaulted=no 1492fi 1493if test ! -r "$srcdir/$ac_unique_file"; then 1494 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1495 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1496 { (exit 1); exit 1; }; } 1497fi 1498ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1499ac_abs_confdir=`( 1500 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1501 { (exit 1); exit 1; }; } 1502 pwd)` 1503# When building in place, set srcdir=. 1504if test "$ac_abs_confdir" = "$ac_pwd"; then 1505 srcdir=. 1506fi 1507# Remove unnecessary trailing slashes from srcdir. 1508# Double slashes in file names in object file debugging info 1509# mess up M-x gdb in Emacs. 1510case $srcdir in 1511*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1512esac 1513for ac_var in $ac_precious_vars; do 1514 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1515 eval ac_env_${ac_var}_value=\$${ac_var} 1516 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1517 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1518done 1519 1520# 1521# Report the --help message. 1522# 1523if test "$ac_init_help" = "long"; then 1524 # Omit some internal or obsolete options to make the list less imposing. 1525 # This message is too long to be a string in the A/UX 3.1 sh. 1526 cat <<_ACEOF 1527\`configure' configures xf86-video-glint 1.2.4 to adapt to many kinds of systems. 1528 1529Usage: $0 [OPTION]... [VAR=VALUE]... 1530 1531To assign environment variables (e.g., CC, CFLAGS...), specify them as 1532VAR=VALUE. See below for descriptions of some of the useful variables. 1533 1534Defaults for the options are specified in brackets. 1535 1536Configuration: 1537 -h, --help display this help and exit 1538 --help=short display options specific to this package 1539 --help=recursive display the short help of all the included packages 1540 -V, --version display version information and exit 1541 -q, --quiet, --silent do not print \`checking...' messages 1542 --cache-file=FILE cache test results in FILE [disabled] 1543 -C, --config-cache alias for \`--cache-file=config.cache' 1544 -n, --no-create do not create output files 1545 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1546 1547Installation directories: 1548 --prefix=PREFIX install architecture-independent files in PREFIX 1549 [$ac_default_prefix] 1550 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1551 [PREFIX] 1552 1553By default, \`make install' will install all the files in 1554\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1555an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1556for instance \`--prefix=\$HOME'. 1557 1558For better control, use the options below. 1559 1560Fine tuning of the installation directories: 1561 --bindir=DIR user executables [EPREFIX/bin] 1562 --sbindir=DIR system admin executables [EPREFIX/sbin] 1563 --libexecdir=DIR program executables [EPREFIX/libexec] 1564 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1565 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1566 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1567 --libdir=DIR object code libraries [EPREFIX/lib] 1568 --includedir=DIR C header files [PREFIX/include] 1569 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1570 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1571 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1572 --infodir=DIR info documentation [DATAROOTDIR/info] 1573 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1574 --mandir=DIR man documentation [DATAROOTDIR/man] 1575 --docdir=DIR documentation root 1576 [DATAROOTDIR/doc/xf86-video-glint] 1577 --htmldir=DIR html documentation [DOCDIR] 1578 --dvidir=DIR dvi documentation [DOCDIR] 1579 --pdfdir=DIR pdf documentation [DOCDIR] 1580 --psdir=DIR ps documentation [DOCDIR] 1581_ACEOF 1582 1583 cat <<\_ACEOF 1584 1585Program names: 1586 --program-prefix=PREFIX prepend PREFIX to installed program names 1587 --program-suffix=SUFFIX append SUFFIX to installed program names 1588 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1589 1590System types: 1591 --build=BUILD configure for building on BUILD [guessed] 1592 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1593_ACEOF 1594fi 1595 1596if test -n "$ac_init_help"; then 1597 case $ac_init_help in 1598 short | recursive ) echo "Configuration of xf86-video-glint 1.2.4:";; 1599 esac 1600 cat <<\_ACEOF 1601 1602Optional Features: 1603 --disable-option-checking ignore unrecognized --enable/--with options 1604 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1605 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1606 --enable-maintainer-mode enable make rules and dependencies not useful 1607 (and sometimes confusing) to the casual installer 1608 --enable-static[=PKGS] build static libraries [default=no] 1609 --enable-shared[=PKGS] build shared libraries [default=yes] 1610 --enable-fast-install[=PKGS] 1611 optimize for fast installation [default=yes] 1612 --disable-dependency-tracking speeds up one-time build 1613 --enable-dependency-tracking do not reject slow dependency extractors 1614 --disable-libtool-lock avoid locking (might break parallel builds) 1615 --disable-dri Disable DRI support [default=auto] 1616 1617Optional Packages: 1618 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1619 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1620 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1621 --with-pic try to use only PIC/non-PIC objects [default=use 1622 both] 1623 --with-tags[=TAGS] include additional configurations [automatic] 1624 --with-xorg-module-dir=DIR 1625 Default xorg module directory 1626 [default=$libdir/xorg/modules] 1627 --with-release-version=STRING 1628 Use release version string in package name 1629 1630Some influential environment variables: 1631 CC C compiler command 1632 CFLAGS C compiler flags 1633 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1634 nonstandard directory <lib dir> 1635 LIBS libraries to pass to the linker, e.g. -l<library> 1636 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1637 you have headers in a nonstandard directory <include dir> 1638 CPP C preprocessor 1639 CXX C++ compiler command 1640 CXXFLAGS C++ compiler flags 1641 CXXCPP C++ preprocessor 1642 F77 Fortran 77 compiler command 1643 FFLAGS Fortran 77 compiler flags 1644 PKG_CONFIG path to pkg-config utility 1645 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1646 XORG_LIBS linker flags for XORG, overriding pkg-config 1647 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1648 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1649 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config 1650 DRI_LIBS linker flags for DRI, overriding pkg-config 1651 PCIACCESS_CFLAGS 1652 C compiler flags for PCIACCESS, overriding pkg-config 1653 PCIACCESS_LIBS 1654 linker flags for PCIACCESS, overriding pkg-config 1655 1656Use these variables to override the choices made by `configure' or to help 1657it to find libraries and programs with nonstandard names/locations. 1658 1659Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1660_ACEOF 1661ac_status=$? 1662fi 1663 1664if test "$ac_init_help" = "recursive"; then 1665 # If there are subdirs, report their specific --help. 1666 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1667 test -d "$ac_dir" || 1668 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1669 continue 1670 ac_builddir=. 1671 1672case "$ac_dir" in 1673.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1674*) 1675 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1676 # A ".." for each directory in $ac_dir_suffix. 1677 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1678 case $ac_top_builddir_sub in 1679 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1680 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1681 esac ;; 1682esac 1683ac_abs_top_builddir=$ac_pwd 1684ac_abs_builddir=$ac_pwd$ac_dir_suffix 1685# for backward compatibility: 1686ac_top_builddir=$ac_top_build_prefix 1687 1688case $srcdir in 1689 .) # We are building in place. 1690 ac_srcdir=. 1691 ac_top_srcdir=$ac_top_builddir_sub 1692 ac_abs_top_srcdir=$ac_pwd ;; 1693 [\\/]* | ?:[\\/]* ) # Absolute name. 1694 ac_srcdir=$srcdir$ac_dir_suffix; 1695 ac_top_srcdir=$srcdir 1696 ac_abs_top_srcdir=$srcdir ;; 1697 *) # Relative name. 1698 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1699 ac_top_srcdir=$ac_top_build_prefix$srcdir 1700 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1701esac 1702ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1703 1704 cd "$ac_dir" || { ac_status=$?; continue; } 1705 # Check for guested configure. 1706 if test -f "$ac_srcdir/configure.gnu"; then 1707 echo && 1708 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1709 elif test -f "$ac_srcdir/configure"; then 1710 echo && 1711 $SHELL "$ac_srcdir/configure" --help=recursive 1712 else 1713 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1714 fi || ac_status=$? 1715 cd "$ac_pwd" || { ac_status=$?; break; } 1716 done 1717fi 1718 1719test -n "$ac_init_help" && exit $ac_status 1720if $ac_init_version; then 1721 cat <<\_ACEOF 1722xf86-video-glint configure 1.2.4 1723generated by GNU Autoconf 2.63 1724 1725Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17262002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1727This configure script is free software; the Free Software Foundation 1728gives unlimited permission to copy, distribute and modify it. 1729_ACEOF 1730 exit 1731fi 1732cat >config.log <<_ACEOF 1733This file contains any messages produced by compilers while 1734running configure, to aid debugging if configure makes a mistake. 1735 1736It was created by xf86-video-glint $as_me 1.2.4, which was 1737generated by GNU Autoconf 2.63. Invocation command line was 1738 1739 $ $0 $@ 1740 1741_ACEOF 1742exec 5>>config.log 1743{ 1744cat <<_ASUNAME 1745## --------- ## 1746## Platform. ## 1747## --------- ## 1748 1749hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1750uname -m = `(uname -m) 2>/dev/null || echo unknown` 1751uname -r = `(uname -r) 2>/dev/null || echo unknown` 1752uname -s = `(uname -s) 2>/dev/null || echo unknown` 1753uname -v = `(uname -v) 2>/dev/null || echo unknown` 1754 1755/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1756/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1757 1758/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1759/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1760/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1761/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1762/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1763/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1764/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1765 1766_ASUNAME 1767 1768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1769for as_dir in $PATH 1770do 1771 IFS=$as_save_IFS 1772 test -z "$as_dir" && as_dir=. 1773 $as_echo "PATH: $as_dir" 1774done 1775IFS=$as_save_IFS 1776 1777} >&5 1778 1779cat >&5 <<_ACEOF 1780 1781 1782## ----------- ## 1783## Core tests. ## 1784## ----------- ## 1785 1786_ACEOF 1787 1788 1789# Keep a trace of the command line. 1790# Strip out --no-create and --no-recursion so they do not pile up. 1791# Strip out --silent because we don't want to record it for future runs. 1792# Also quote any args containing shell meta-characters. 1793# Make two passes to allow for proper duplicate-argument suppression. 1794ac_configure_args= 1795ac_configure_args0= 1796ac_configure_args1= 1797ac_must_keep_next=false 1798for ac_pass in 1 2 1799do 1800 for ac_arg 1801 do 1802 case $ac_arg in 1803 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1804 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1805 | -silent | --silent | --silen | --sile | --sil) 1806 continue ;; 1807 *\'*) 1808 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1809 esac 1810 case $ac_pass in 1811 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1812 2) 1813 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1814 if test $ac_must_keep_next = true; then 1815 ac_must_keep_next=false # Got value, back to normal. 1816 else 1817 case $ac_arg in 1818 *=* | --config-cache | -C | -disable-* | --disable-* \ 1819 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1820 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1821 | -with-* | --with-* | -without-* | --without-* | --x) 1822 case "$ac_configure_args0 " in 1823 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1824 esac 1825 ;; 1826 -* ) ac_must_keep_next=true ;; 1827 esac 1828 fi 1829 ac_configure_args="$ac_configure_args '$ac_arg'" 1830 ;; 1831 esac 1832 done 1833done 1834$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1835$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1836 1837# When interrupted or exit'd, cleanup temporary files, and complete 1838# config.log. We remove comments because anyway the quotes in there 1839# would cause problems or look ugly. 1840# WARNING: Use '\'' to represent an apostrophe within the trap. 1841# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1842trap 'exit_status=$? 1843 # Save into config.log some information that might help in debugging. 1844 { 1845 echo 1846 1847 cat <<\_ASBOX 1848## ---------------- ## 1849## Cache variables. ## 1850## ---------------- ## 1851_ASBOX 1852 echo 1853 # The following way of writing the cache mishandles newlines in values, 1854( 1855 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1856 eval ac_val=\$$ac_var 1857 case $ac_val in #( 1858 *${as_nl}*) 1859 case $ac_var in #( 1860 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1861$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1862 esac 1863 case $ac_var in #( 1864 _ | IFS | as_nl) ;; #( 1865 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1866 *) $as_unset $ac_var ;; 1867 esac ;; 1868 esac 1869 done 1870 (set) 2>&1 | 1871 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1872 *${as_nl}ac_space=\ *) 1873 sed -n \ 1874 "s/'\''/'\''\\\\'\'''\''/g; 1875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1876 ;; #( 1877 *) 1878 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1879 ;; 1880 esac | 1881 sort 1882) 1883 echo 1884 1885 cat <<\_ASBOX 1886## ----------------- ## 1887## Output variables. ## 1888## ----------------- ## 1889_ASBOX 1890 echo 1891 for ac_var in $ac_subst_vars 1892 do 1893 eval ac_val=\$$ac_var 1894 case $ac_val in 1895 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1896 esac 1897 $as_echo "$ac_var='\''$ac_val'\''" 1898 done | sort 1899 echo 1900 1901 if test -n "$ac_subst_files"; then 1902 cat <<\_ASBOX 1903## ------------------- ## 1904## File substitutions. ## 1905## ------------------- ## 1906_ASBOX 1907 echo 1908 for ac_var in $ac_subst_files 1909 do 1910 eval ac_val=\$$ac_var 1911 case $ac_val in 1912 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1913 esac 1914 $as_echo "$ac_var='\''$ac_val'\''" 1915 done | sort 1916 echo 1917 fi 1918 1919 if test -s confdefs.h; then 1920 cat <<\_ASBOX 1921## ----------- ## 1922## confdefs.h. ## 1923## ----------- ## 1924_ASBOX 1925 echo 1926 cat confdefs.h 1927 echo 1928 fi 1929 test "$ac_signal" != 0 && 1930 $as_echo "$as_me: caught signal $ac_signal" 1931 $as_echo "$as_me: exit $exit_status" 1932 } >&5 1933 rm -f core *.core core.conftest.* && 1934 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1935 exit $exit_status 1936' 0 1937for ac_signal in 1 2 13 15; do 1938 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1939done 1940ac_signal=0 1941 1942# confdefs.h avoids OS command line length limits that DEFS can exceed. 1943rm -f -r conftest* confdefs.h 1944 1945# Predefined preprocessor variables. 1946 1947cat >>confdefs.h <<_ACEOF 1948#define PACKAGE_NAME "$PACKAGE_NAME" 1949_ACEOF 1950 1951 1952cat >>confdefs.h <<_ACEOF 1953#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1954_ACEOF 1955 1956 1957cat >>confdefs.h <<_ACEOF 1958#define PACKAGE_VERSION "$PACKAGE_VERSION" 1959_ACEOF 1960 1961 1962cat >>confdefs.h <<_ACEOF 1963#define PACKAGE_STRING "$PACKAGE_STRING" 1964_ACEOF 1965 1966 1967cat >>confdefs.h <<_ACEOF 1968#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1969_ACEOF 1970 1971 1972# Let the site file select an alternate cache file if it wants to. 1973# Prefer an explicitly selected file to automatically selected ones. 1974ac_site_file1=NONE 1975ac_site_file2=NONE 1976if test -n "$CONFIG_SITE"; then 1977 ac_site_file1=$CONFIG_SITE 1978elif test "x$prefix" != xNONE; then 1979 ac_site_file1=$prefix/share/config.site 1980 ac_site_file2=$prefix/etc/config.site 1981else 1982 ac_site_file1=$ac_default_prefix/share/config.site 1983 ac_site_file2=$ac_default_prefix/etc/config.site 1984fi 1985for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1986do 1987 test "x$ac_site_file" = xNONE && continue 1988 if test -r "$ac_site_file"; then 1989 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1990$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1991 sed 's/^/| /' "$ac_site_file" >&5 1992 . "$ac_site_file" 1993 fi 1994done 1995 1996if test -r "$cache_file"; then 1997 # Some versions of bash will fail to source /dev/null (special 1998 # files actually), so we avoid doing that. 1999 if test -f "$cache_file"; then 2000 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 2001$as_echo "$as_me: loading cache $cache_file" >&6;} 2002 case $cache_file in 2003 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2004 *) . "./$cache_file";; 2005 esac 2006 fi 2007else 2008 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 2009$as_echo "$as_me: creating cache $cache_file" >&6;} 2010 >$cache_file 2011fi 2012 2013# Check that the precious variables saved in the cache have kept the same 2014# value. 2015ac_cache_corrupted=false 2016for ac_var in $ac_precious_vars; do 2017 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2018 eval ac_new_set=\$ac_env_${ac_var}_set 2019 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2020 eval ac_new_val=\$ac_env_${ac_var}_value 2021 case $ac_old_set,$ac_new_set in 2022 set,) 2023 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2024$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2025 ac_cache_corrupted=: ;; 2026 ,set) 2027 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2028$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2029 ac_cache_corrupted=: ;; 2030 ,);; 2031 *) 2032 if test "x$ac_old_val" != "x$ac_new_val"; then 2033 # differences in whitespace do not lead to failure. 2034 ac_old_val_w=`echo x $ac_old_val` 2035 ac_new_val_w=`echo x $ac_new_val` 2036 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2037 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2038$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2039 ac_cache_corrupted=: 2040 else 2041 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2042$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2043 eval $ac_var=\$ac_old_val 2044 fi 2045 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2046$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2047 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2048$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2049 fi;; 2050 esac 2051 # Pass precious variables to config.status. 2052 if test "$ac_new_set" = set; then 2053 case $ac_new_val in 2054 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2055 *) ac_arg=$ac_var=$ac_new_val ;; 2056 esac 2057 case " $ac_configure_args " in 2058 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2059 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2060 esac 2061 fi 2062done 2063if $ac_cache_corrupted; then 2064 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2066 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2067$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2068 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2069$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2070 { (exit 1); exit 1; }; } 2071fi 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097ac_ext=c 2098ac_cpp='$CPP $CPPFLAGS' 2099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2101ac_compiler_gnu=$ac_cv_c_compiler_gnu 2102 2103 2104 2105 2106ac_config_headers="$ac_config_headers config.h" 2107 2108ac_aux_dir= 2109for ac_dir in . "$srcdir"/.; do 2110 if test -f "$ac_dir/install-sh"; then 2111 ac_aux_dir=$ac_dir 2112 ac_install_sh="$ac_aux_dir/install-sh -c" 2113 break 2114 elif test -f "$ac_dir/install.sh"; then 2115 ac_aux_dir=$ac_dir 2116 ac_install_sh="$ac_aux_dir/install.sh -c" 2117 break 2118 elif test -f "$ac_dir/shtool"; then 2119 ac_aux_dir=$ac_dir 2120 ac_install_sh="$ac_aux_dir/shtool install -c" 2121 break 2122 fi 2123done 2124if test -z "$ac_aux_dir"; then 2125 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 2126$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 2127 { (exit 1); exit 1; }; } 2128fi 2129 2130# These three variables are undocumented and unsupported, 2131# and are intended to be withdrawn in a future Autoconf release. 2132# They can cause serious problems if a builder's source tree is in a directory 2133# whose full name contains unusual characters. 2134ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2135ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2136ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2137 2138 2139 2140am__api_version='1.11' 2141 2142# Find a good install program. We prefer a C program (faster), 2143# so one script is as good as another. But avoid the broken or 2144# incompatible versions: 2145# SysV /etc/install, /usr/sbin/install 2146# SunOS /usr/etc/install 2147# IRIX /sbin/install 2148# AIX /bin/install 2149# AmigaOS /C/install, which installs bootblocks on floppy discs 2150# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2151# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2152# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2153# OS/2's system install, which has a completely different semantic 2154# ./install, which can be erroneously created by make from ./install.sh. 2155# Reject install programs that cannot install multiple files. 2156{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2157$as_echo_n "checking for a BSD-compatible install... " >&6; } 2158if test -z "$INSTALL"; then 2159if test "${ac_cv_path_install+set}" = set; then 2160 $as_echo_n "(cached) " >&6 2161else 2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2163for as_dir in $PATH 2164do 2165 IFS=$as_save_IFS 2166 test -z "$as_dir" && as_dir=. 2167 # Account for people who put trailing slashes in PATH elements. 2168case $as_dir/ in 2169 ./ | .// | /cC/* | \ 2170 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2171 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2172 /usr/ucb/* ) ;; 2173 *) 2174 # OSF1 and SCO ODT 3.0 have their own names for install. 2175 # Don't use installbsd from OSF since it installs stuff as root 2176 # by default. 2177 for ac_prog in ginstall scoinst install; do 2178 for ac_exec_ext in '' $ac_executable_extensions; do 2179 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2180 if test $ac_prog = install && 2181 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2182 # AIX install. It has an incompatible calling convention. 2183 : 2184 elif test $ac_prog = install && 2185 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2186 # program-specific install script used by HP pwplus--don't use. 2187 : 2188 else 2189 rm -rf conftest.one conftest.two conftest.dir 2190 echo one > conftest.one 2191 echo two > conftest.two 2192 mkdir conftest.dir 2193 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2194 test -s conftest.one && test -s conftest.two && 2195 test -s conftest.dir/conftest.one && 2196 test -s conftest.dir/conftest.two 2197 then 2198 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2199 break 3 2200 fi 2201 fi 2202 fi 2203 done 2204 done 2205 ;; 2206esac 2207 2208done 2209IFS=$as_save_IFS 2210 2211rm -rf conftest.one conftest.two conftest.dir 2212 2213fi 2214 if test "${ac_cv_path_install+set}" = set; then 2215 INSTALL=$ac_cv_path_install 2216 else 2217 # As a last resort, use the slow shell script. Don't cache a 2218 # value for INSTALL within a source directory, because that will 2219 # break other packages using the cache if that directory is 2220 # removed, or if the value is a relative name. 2221 INSTALL=$ac_install_sh 2222 fi 2223fi 2224{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2225$as_echo "$INSTALL" >&6; } 2226 2227# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2228# It thinks the first close brace ends the variable substitution. 2229test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2230 2231test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2232 2233test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2234 2235{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2236$as_echo_n "checking whether build environment is sane... " >&6; } 2237# Just in case 2238sleep 1 2239echo timestamp > conftest.file 2240# Reject unsafe characters in $srcdir or the absolute working directory 2241# name. Accept space and tab only in the latter. 2242am_lf=' 2243' 2244case `pwd` in 2245 *[\\\"\#\$\&\'\`$am_lf]*) 2246 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2247$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2248 { (exit 1); exit 1; }; };; 2249esac 2250case $srcdir in 2251 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2252 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2253$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2254 { (exit 1); exit 1; }; };; 2255esac 2256 2257# Do `set' in a subshell so we don't clobber the current shell's 2258# arguments. Must try -L first in case configure is actually a 2259# symlink; some systems play weird games with the mod time of symlinks 2260# (eg FreeBSD returns the mod time of the symlink's containing 2261# directory). 2262if ( 2263 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2264 if test "$*" = "X"; then 2265 # -L didn't work. 2266 set X `ls -t "$srcdir/configure" conftest.file` 2267 fi 2268 rm -f conftest.file 2269 if test "$*" != "X $srcdir/configure conftest.file" \ 2270 && test "$*" != "X conftest.file $srcdir/configure"; then 2271 2272 # If neither matched, then we have a broken ls. This can happen 2273 # if, for instance, CONFIG_SHELL is bash and it inherits a 2274 # broken ls alias from the environment. This has actually 2275 # happened. Such a system could not be considered "sane". 2276 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2277alias in your environment" >&5 2278$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2279alias in your environment" >&2;} 2280 { (exit 1); exit 1; }; } 2281 fi 2282 2283 test "$2" = conftest.file 2284 ) 2285then 2286 # Ok. 2287 : 2288else 2289 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2290Check your system clock" >&5 2291$as_echo "$as_me: error: newly created file is older than distributed files! 2292Check your system clock" >&2;} 2293 { (exit 1); exit 1; }; } 2294fi 2295{ $as_echo "$as_me:$LINENO: result: yes" >&5 2296$as_echo "yes" >&6; } 2297test "$program_prefix" != NONE && 2298 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2299# Use a double $ so make ignores it. 2300test "$program_suffix" != NONE && 2301 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2302# Double any \ or $. 2303# By default was `s,x,x', remove it if useless. 2304ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2305program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2306 2307# expand $ac_aux_dir to an absolute path 2308am_aux_dir=`cd $ac_aux_dir && pwd` 2309 2310if test x"${MISSING+set}" != xset; then 2311 case $am_aux_dir in 2312 *\ * | *\ *) 2313 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2314 *) 2315 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2316 esac 2317fi 2318# Use eval to expand $SHELL 2319if eval "$MISSING --run true"; then 2320 am_missing_run="$MISSING --run " 2321else 2322 am_missing_run= 2323 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2324$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2325fi 2326 2327if test x"${install_sh}" != xset; then 2328 case $am_aux_dir in 2329 *\ * | *\ *) 2330 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2331 *) 2332 install_sh="\${SHELL} $am_aux_dir/install-sh" 2333 esac 2334fi 2335 2336# Installed binaries are usually stripped using `strip' when the user 2337# run `make install-strip'. However `strip' might not be the right 2338# tool to use in cross-compilation environments, therefore Automake 2339# will honor the `STRIP' environment variable to overrule this program. 2340if test "$cross_compiling" != no; then 2341 if test -n "$ac_tool_prefix"; then 2342 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2343set dummy ${ac_tool_prefix}strip; ac_word=$2 2344{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2345$as_echo_n "checking for $ac_word... " >&6; } 2346if test "${ac_cv_prog_STRIP+set}" = set; then 2347 $as_echo_n "(cached) " >&6 2348else 2349 if test -n "$STRIP"; then 2350 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2351else 2352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2353for as_dir in $PATH 2354do 2355 IFS=$as_save_IFS 2356 test -z "$as_dir" && as_dir=. 2357 for ac_exec_ext in '' $ac_executable_extensions; do 2358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2359 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2360 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2361 break 2 2362 fi 2363done 2364done 2365IFS=$as_save_IFS 2366 2367fi 2368fi 2369STRIP=$ac_cv_prog_STRIP 2370if test -n "$STRIP"; then 2371 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2372$as_echo "$STRIP" >&6; } 2373else 2374 { $as_echo "$as_me:$LINENO: result: no" >&5 2375$as_echo "no" >&6; } 2376fi 2377 2378 2379fi 2380if test -z "$ac_cv_prog_STRIP"; then 2381 ac_ct_STRIP=$STRIP 2382 # Extract the first word of "strip", so it can be a program name with args. 2383set dummy strip; ac_word=$2 2384{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2385$as_echo_n "checking for $ac_word... " >&6; } 2386if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2387 $as_echo_n "(cached) " >&6 2388else 2389 if test -n "$ac_ct_STRIP"; then 2390 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2391else 2392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2393for as_dir in $PATH 2394do 2395 IFS=$as_save_IFS 2396 test -z "$as_dir" && as_dir=. 2397 for ac_exec_ext in '' $ac_executable_extensions; do 2398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2399 ac_cv_prog_ac_ct_STRIP="strip" 2400 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2401 break 2 2402 fi 2403done 2404done 2405IFS=$as_save_IFS 2406 2407fi 2408fi 2409ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2410if test -n "$ac_ct_STRIP"; then 2411 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2412$as_echo "$ac_ct_STRIP" >&6; } 2413else 2414 { $as_echo "$as_me:$LINENO: result: no" >&5 2415$as_echo "no" >&6; } 2416fi 2417 2418 if test "x$ac_ct_STRIP" = x; then 2419 STRIP=":" 2420 else 2421 case $cross_compiling:$ac_tool_warned in 2422yes:) 2423{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2425ac_tool_warned=yes ;; 2426esac 2427 STRIP=$ac_ct_STRIP 2428 fi 2429else 2430 STRIP="$ac_cv_prog_STRIP" 2431fi 2432 2433fi 2434INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2435 2436{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2437$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2438if test -z "$MKDIR_P"; then 2439 if test "${ac_cv_path_mkdir+set}" = set; then 2440 $as_echo_n "(cached) " >&6 2441else 2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2443for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2444do 2445 IFS=$as_save_IFS 2446 test -z "$as_dir" && as_dir=. 2447 for ac_prog in mkdir gmkdir; do 2448 for ac_exec_ext in '' $ac_executable_extensions; do 2449 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2450 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2451 'mkdir (GNU coreutils) '* | \ 2452 'mkdir (coreutils) '* | \ 2453 'mkdir (fileutils) '4.1*) 2454 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2455 break 3;; 2456 esac 2457 done 2458 done 2459done 2460IFS=$as_save_IFS 2461 2462fi 2463 2464 if test "${ac_cv_path_mkdir+set}" = set; then 2465 MKDIR_P="$ac_cv_path_mkdir -p" 2466 else 2467 # As a last resort, use the slow shell script. Don't cache a 2468 # value for MKDIR_P within a source directory, because that will 2469 # break other packages using the cache if that directory is 2470 # removed, or if the value is a relative name. 2471 test -d ./--version && rmdir ./--version 2472 MKDIR_P="$ac_install_sh -d" 2473 fi 2474fi 2475{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2476$as_echo "$MKDIR_P" >&6; } 2477 2478mkdir_p="$MKDIR_P" 2479case $mkdir_p in 2480 [\\/$]* | ?:[\\/]*) ;; 2481 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2482esac 2483 2484for ac_prog in gawk mawk nawk awk 2485do 2486 # Extract the first word of "$ac_prog", so it can be a program name with args. 2487set dummy $ac_prog; ac_word=$2 2488{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2489$as_echo_n "checking for $ac_word... " >&6; } 2490if test "${ac_cv_prog_AWK+set}" = set; then 2491 $as_echo_n "(cached) " >&6 2492else 2493 if test -n "$AWK"; then 2494 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2495else 2496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2497for as_dir in $PATH 2498do 2499 IFS=$as_save_IFS 2500 test -z "$as_dir" && as_dir=. 2501 for ac_exec_ext in '' $ac_executable_extensions; do 2502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2503 ac_cv_prog_AWK="$ac_prog" 2504 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2505 break 2 2506 fi 2507done 2508done 2509IFS=$as_save_IFS 2510 2511fi 2512fi 2513AWK=$ac_cv_prog_AWK 2514if test -n "$AWK"; then 2515 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2516$as_echo "$AWK" >&6; } 2517else 2518 { $as_echo "$as_me:$LINENO: result: no" >&5 2519$as_echo "no" >&6; } 2520fi 2521 2522 2523 test -n "$AWK" && break 2524done 2525 2526{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2527$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2528set x ${MAKE-make} 2529ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2530if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2531 $as_echo_n "(cached) " >&6 2532else 2533 cat >conftest.make <<\_ACEOF 2534SHELL = /bin/sh 2535all: 2536 @echo '@@@%%%=$(MAKE)=@@@%%%' 2537_ACEOF 2538# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2539case `${MAKE-make} -f conftest.make 2>/dev/null` in 2540 *@@@%%%=?*=@@@%%%*) 2541 eval ac_cv_prog_make_${ac_make}_set=yes;; 2542 *) 2543 eval ac_cv_prog_make_${ac_make}_set=no;; 2544esac 2545rm -f conftest.make 2546fi 2547if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2548 { $as_echo "$as_me:$LINENO: result: yes" >&5 2549$as_echo "yes" >&6; } 2550 SET_MAKE= 2551else 2552 { $as_echo "$as_me:$LINENO: result: no" >&5 2553$as_echo "no" >&6; } 2554 SET_MAKE="MAKE=${MAKE-make}" 2555fi 2556 2557rm -rf .tst 2>/dev/null 2558mkdir .tst 2>/dev/null 2559if test -d .tst; then 2560 am__leading_dot=. 2561else 2562 am__leading_dot=_ 2563fi 2564rmdir .tst 2>/dev/null 2565 2566if test "`cd $srcdir && pwd`" != "`pwd`"; then 2567 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2568 # is not polluted with repeated "-I." 2569 am__isrc=' -I$(srcdir)' 2570 # test to see if srcdir already configured 2571 if test -f $srcdir/config.status; then 2572 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2573$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2574 { (exit 1); exit 1; }; } 2575 fi 2576fi 2577 2578# test whether we have cygpath 2579if test -z "$CYGPATH_W"; then 2580 if (cygpath --version) >/dev/null 2>/dev/null; then 2581 CYGPATH_W='cygpath -w' 2582 else 2583 CYGPATH_W=echo 2584 fi 2585fi 2586 2587 2588# Define the identity of the package. 2589 PACKAGE='xf86-video-glint' 2590 VERSION='1.2.4' 2591 2592 2593cat >>confdefs.h <<_ACEOF 2594#define PACKAGE "$PACKAGE" 2595_ACEOF 2596 2597 2598cat >>confdefs.h <<_ACEOF 2599#define VERSION "$VERSION" 2600_ACEOF 2601 2602# Some tools Automake needs. 2603 2604ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2605 2606 2607AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2608 2609 2610AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2611 2612 2613AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2614 2615 2616MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2617 2618# We need awk for the "check" target. The system "awk" is bad on 2619# some platforms. 2620# Always define AMTAR for backward compatibility. 2621 2622AMTAR=${AMTAR-"${am_missing_run}tar"} 2623 2624am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2625 2626 2627 2628 2629 2630 2631 2632{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2633$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2634 # Check whether --enable-maintainer-mode was given. 2635if test "${enable_maintainer_mode+set}" = set; then 2636 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2637else 2638 USE_MAINTAINER_MODE=no 2639fi 2640 2641 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2642$as_echo "$USE_MAINTAINER_MODE" >&6; } 2643 if test $USE_MAINTAINER_MODE = yes; then 2644 MAINTAINER_MODE_TRUE= 2645 MAINTAINER_MODE_FALSE='#' 2646else 2647 MAINTAINER_MODE_TRUE='#' 2648 MAINTAINER_MODE_FALSE= 2649fi 2650 2651 MAINT=$MAINTAINER_MODE_TRUE 2652 2653 2654 2655# Checks for programs. 2656# Check whether --enable-static was given. 2657if test "${enable_static+set}" = set; then 2658 enableval=$enable_static; p=${PACKAGE-default} 2659 case $enableval in 2660 yes) enable_static=yes ;; 2661 no) enable_static=no ;; 2662 *) 2663 enable_static=no 2664 # Look at the argument we got. We use all the common list separators. 2665 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2666 for pkg in $enableval; do 2667 IFS="$lt_save_ifs" 2668 if test "X$pkg" = "X$p"; then 2669 enable_static=yes 2670 fi 2671 done 2672 IFS="$lt_save_ifs" 2673 ;; 2674 esac 2675else 2676 enable_static=no 2677fi 2678 2679 2680 2681# Check whether --enable-shared was given. 2682if test "${enable_shared+set}" = set; then 2683 enableval=$enable_shared; p=${PACKAGE-default} 2684 case $enableval in 2685 yes) enable_shared=yes ;; 2686 no) enable_shared=no ;; 2687 *) 2688 enable_shared=no 2689 # Look at the argument we got. We use all the common list separators. 2690 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2691 for pkg in $enableval; do 2692 IFS="$lt_save_ifs" 2693 if test "X$pkg" = "X$p"; then 2694 enable_shared=yes 2695 fi 2696 done 2697 IFS="$lt_save_ifs" 2698 ;; 2699 esac 2700else 2701 enable_shared=yes 2702fi 2703 2704 2705# Check whether --enable-fast-install was given. 2706if test "${enable_fast_install+set}" = set; then 2707 enableval=$enable_fast_install; p=${PACKAGE-default} 2708 case $enableval in 2709 yes) enable_fast_install=yes ;; 2710 no) enable_fast_install=no ;; 2711 *) 2712 enable_fast_install=no 2713 # Look at the argument we got. We use all the common list separators. 2714 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2715 for pkg in $enableval; do 2716 IFS="$lt_save_ifs" 2717 if test "X$pkg" = "X$p"; then 2718 enable_fast_install=yes 2719 fi 2720 done 2721 IFS="$lt_save_ifs" 2722 ;; 2723 esac 2724else 2725 enable_fast_install=yes 2726fi 2727 2728 2729# Make sure we can run config.sub. 2730$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2731 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2732$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2733 { (exit 1); exit 1; }; } 2734 2735{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2736$as_echo_n "checking build system type... " >&6; } 2737if test "${ac_cv_build+set}" = set; then 2738 $as_echo_n "(cached) " >&6 2739else 2740 ac_build_alias=$build_alias 2741test "x$ac_build_alias" = x && 2742 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2743test "x$ac_build_alias" = x && 2744 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2745$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2746 { (exit 1); exit 1; }; } 2747ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2748 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2749$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2750 { (exit 1); exit 1; }; } 2751 2752fi 2753{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2754$as_echo "$ac_cv_build" >&6; } 2755case $ac_cv_build in 2756*-*-*) ;; 2757*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2758$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2759 { (exit 1); exit 1; }; };; 2760esac 2761build=$ac_cv_build 2762ac_save_IFS=$IFS; IFS='-' 2763set x $ac_cv_build 2764shift 2765build_cpu=$1 2766build_vendor=$2 2767shift; shift 2768# Remember, the first character of IFS is used to create $*, 2769# except with old shells: 2770build_os=$* 2771IFS=$ac_save_IFS 2772case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2773 2774 2775{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2776$as_echo_n "checking host system type... " >&6; } 2777if test "${ac_cv_host+set}" = set; then 2778 $as_echo_n "(cached) " >&6 2779else 2780 if test "x$host_alias" = x; then 2781 ac_cv_host=$ac_cv_build 2782else 2783 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2784 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2785$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2786 { (exit 1); exit 1; }; } 2787fi 2788 2789fi 2790{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2791$as_echo "$ac_cv_host" >&6; } 2792case $ac_cv_host in 2793*-*-*) ;; 2794*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2795$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2796 { (exit 1); exit 1; }; };; 2797esac 2798host=$ac_cv_host 2799ac_save_IFS=$IFS; IFS='-' 2800set x $ac_cv_host 2801shift 2802host_cpu=$1 2803host_vendor=$2 2804shift; shift 2805# Remember, the first character of IFS is used to create $*, 2806# except with old shells: 2807host_os=$* 2808IFS=$ac_save_IFS 2809case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2810 2811 2812DEPDIR="${am__leading_dot}deps" 2813 2814ac_config_commands="$ac_config_commands depfiles" 2815 2816 2817am_make=${MAKE-make} 2818cat > confinc << 'END' 2819am__doit: 2820 @echo this is the am__doit target 2821.PHONY: am__doit 2822END 2823# If we don't find an include directive, just comment out the code. 2824{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2825$as_echo_n "checking for style of include used by $am_make... " >&6; } 2826am__include="#" 2827am__quote= 2828_am_result=none 2829# First try GNU make style include. 2830echo "include confinc" > confmf 2831# Ignore all kinds of additional output from `make'. 2832case `$am_make -s -f confmf 2> /dev/null` in #( 2833*the\ am__doit\ target*) 2834 am__include=include 2835 am__quote= 2836 _am_result=GNU 2837 ;; 2838esac 2839# Now try BSD make style include. 2840if test "$am__include" = "#"; then 2841 echo '.include "confinc"' > confmf 2842 case `$am_make -s -f confmf 2> /dev/null` in #( 2843 *the\ am__doit\ target*) 2844 am__include=.include 2845 am__quote="\"" 2846 _am_result=BSD 2847 ;; 2848 esac 2849fi 2850 2851 2852{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 2853$as_echo "$_am_result" >&6; } 2854rm -f confinc confmf 2855 2856# Check whether --enable-dependency-tracking was given. 2857if test "${enable_dependency_tracking+set}" = set; then 2858 enableval=$enable_dependency_tracking; 2859fi 2860 2861if test "x$enable_dependency_tracking" != xno; then 2862 am_depcomp="$ac_aux_dir/depcomp" 2863 AMDEPBACKSLASH='\' 2864fi 2865 if test "x$enable_dependency_tracking" != xno; then 2866 AMDEP_TRUE= 2867 AMDEP_FALSE='#' 2868else 2869 AMDEP_TRUE='#' 2870 AMDEP_FALSE= 2871fi 2872 2873 2874ac_ext=c 2875ac_cpp='$CPP $CPPFLAGS' 2876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2878ac_compiler_gnu=$ac_cv_c_compiler_gnu 2879if test -n "$ac_tool_prefix"; then 2880 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2881set dummy ${ac_tool_prefix}gcc; ac_word=$2 2882{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2883$as_echo_n "checking for $ac_word... " >&6; } 2884if test "${ac_cv_prog_CC+set}" = set; then 2885 $as_echo_n "(cached) " >&6 2886else 2887 if test -n "$CC"; then 2888 ac_cv_prog_CC="$CC" # Let the user override the test. 2889else 2890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2891for as_dir in $PATH 2892do 2893 IFS=$as_save_IFS 2894 test -z "$as_dir" && as_dir=. 2895 for ac_exec_ext in '' $ac_executable_extensions; do 2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2897 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2898 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2899 break 2 2900 fi 2901done 2902done 2903IFS=$as_save_IFS 2904 2905fi 2906fi 2907CC=$ac_cv_prog_CC 2908if test -n "$CC"; then 2909 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2910$as_echo "$CC" >&6; } 2911else 2912 { $as_echo "$as_me:$LINENO: result: no" >&5 2913$as_echo "no" >&6; } 2914fi 2915 2916 2917fi 2918if test -z "$ac_cv_prog_CC"; then 2919 ac_ct_CC=$CC 2920 # Extract the first word of "gcc", so it can be a program name with args. 2921set dummy gcc; ac_word=$2 2922{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2923$as_echo_n "checking for $ac_word... " >&6; } 2924if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2925 $as_echo_n "(cached) " >&6 2926else 2927 if test -n "$ac_ct_CC"; then 2928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2929else 2930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2931for as_dir in $PATH 2932do 2933 IFS=$as_save_IFS 2934 test -z "$as_dir" && as_dir=. 2935 for ac_exec_ext in '' $ac_executable_extensions; do 2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2937 ac_cv_prog_ac_ct_CC="gcc" 2938 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2939 break 2 2940 fi 2941done 2942done 2943IFS=$as_save_IFS 2944 2945fi 2946fi 2947ac_ct_CC=$ac_cv_prog_ac_ct_CC 2948if test -n "$ac_ct_CC"; then 2949 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2950$as_echo "$ac_ct_CC" >&6; } 2951else 2952 { $as_echo "$as_me:$LINENO: result: no" >&5 2953$as_echo "no" >&6; } 2954fi 2955 2956 if test "x$ac_ct_CC" = x; then 2957 CC="" 2958 else 2959 case $cross_compiling:$ac_tool_warned in 2960yes:) 2961{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2963ac_tool_warned=yes ;; 2964esac 2965 CC=$ac_ct_CC 2966 fi 2967else 2968 CC="$ac_cv_prog_CC" 2969fi 2970 2971if test -z "$CC"; then 2972 if test -n "$ac_tool_prefix"; then 2973 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2974set dummy ${ac_tool_prefix}cc; ac_word=$2 2975{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2976$as_echo_n "checking for $ac_word... " >&6; } 2977if test "${ac_cv_prog_CC+set}" = set; then 2978 $as_echo_n "(cached) " >&6 2979else 2980 if test -n "$CC"; then 2981 ac_cv_prog_CC="$CC" # Let the user override the test. 2982else 2983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2984for as_dir in $PATH 2985do 2986 IFS=$as_save_IFS 2987 test -z "$as_dir" && as_dir=. 2988 for ac_exec_ext in '' $ac_executable_extensions; do 2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2990 ac_cv_prog_CC="${ac_tool_prefix}cc" 2991 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2992 break 2 2993 fi 2994done 2995done 2996IFS=$as_save_IFS 2997 2998fi 2999fi 3000CC=$ac_cv_prog_CC 3001if test -n "$CC"; then 3002 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3003$as_echo "$CC" >&6; } 3004else 3005 { $as_echo "$as_me:$LINENO: result: no" >&5 3006$as_echo "no" >&6; } 3007fi 3008 3009 3010 fi 3011fi 3012if test -z "$CC"; then 3013 # Extract the first word of "cc", so it can be a program name with args. 3014set dummy cc; ac_word=$2 3015{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3016$as_echo_n "checking for $ac_word... " >&6; } 3017if test "${ac_cv_prog_CC+set}" = set; then 3018 $as_echo_n "(cached) " >&6 3019else 3020 if test -n "$CC"; then 3021 ac_cv_prog_CC="$CC" # Let the user override the test. 3022else 3023 ac_prog_rejected=no 3024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3025for as_dir in $PATH 3026do 3027 IFS=$as_save_IFS 3028 test -z "$as_dir" && as_dir=. 3029 for ac_exec_ext in '' $ac_executable_extensions; do 3030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3031 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3032 ac_prog_rejected=yes 3033 continue 3034 fi 3035 ac_cv_prog_CC="cc" 3036 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3037 break 2 3038 fi 3039done 3040done 3041IFS=$as_save_IFS 3042 3043if test $ac_prog_rejected = yes; then 3044 # We found a bogon in the path, so make sure we never use it. 3045 set dummy $ac_cv_prog_CC 3046 shift 3047 if test $# != 0; then 3048 # We chose a different compiler from the bogus one. 3049 # However, it has the same basename, so the bogon will be chosen 3050 # first if we set CC to just the basename; use the full file name. 3051 shift 3052 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3053 fi 3054fi 3055fi 3056fi 3057CC=$ac_cv_prog_CC 3058if test -n "$CC"; then 3059 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3060$as_echo "$CC" >&6; } 3061else 3062 { $as_echo "$as_me:$LINENO: result: no" >&5 3063$as_echo "no" >&6; } 3064fi 3065 3066 3067fi 3068if test -z "$CC"; then 3069 if test -n "$ac_tool_prefix"; then 3070 for ac_prog in cl.exe 3071 do 3072 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3073set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3074{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3075$as_echo_n "checking for $ac_word... " >&6; } 3076if test "${ac_cv_prog_CC+set}" = set; then 3077 $as_echo_n "(cached) " >&6 3078else 3079 if test -n "$CC"; then 3080 ac_cv_prog_CC="$CC" # Let the user override the test. 3081else 3082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3083for as_dir in $PATH 3084do 3085 IFS=$as_save_IFS 3086 test -z "$as_dir" && as_dir=. 3087 for ac_exec_ext in '' $ac_executable_extensions; do 3088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3089 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3090 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3091 break 2 3092 fi 3093done 3094done 3095IFS=$as_save_IFS 3096 3097fi 3098fi 3099CC=$ac_cv_prog_CC 3100if test -n "$CC"; then 3101 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3102$as_echo "$CC" >&6; } 3103else 3104 { $as_echo "$as_me:$LINENO: result: no" >&5 3105$as_echo "no" >&6; } 3106fi 3107 3108 3109 test -n "$CC" && break 3110 done 3111fi 3112if test -z "$CC"; then 3113 ac_ct_CC=$CC 3114 for ac_prog in cl.exe 3115do 3116 # Extract the first word of "$ac_prog", so it can be a program name with args. 3117set dummy $ac_prog; ac_word=$2 3118{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3119$as_echo_n "checking for $ac_word... " >&6; } 3120if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3121 $as_echo_n "(cached) " >&6 3122else 3123 if test -n "$ac_ct_CC"; then 3124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3125else 3126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3127for as_dir in $PATH 3128do 3129 IFS=$as_save_IFS 3130 test -z "$as_dir" && as_dir=. 3131 for ac_exec_ext in '' $ac_executable_extensions; do 3132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3133 ac_cv_prog_ac_ct_CC="$ac_prog" 3134 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3135 break 2 3136 fi 3137done 3138done 3139IFS=$as_save_IFS 3140 3141fi 3142fi 3143ac_ct_CC=$ac_cv_prog_ac_ct_CC 3144if test -n "$ac_ct_CC"; then 3145 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3146$as_echo "$ac_ct_CC" >&6; } 3147else 3148 { $as_echo "$as_me:$LINENO: result: no" >&5 3149$as_echo "no" >&6; } 3150fi 3151 3152 3153 test -n "$ac_ct_CC" && break 3154done 3155 3156 if test "x$ac_ct_CC" = x; then 3157 CC="" 3158 else 3159 case $cross_compiling:$ac_tool_warned in 3160yes:) 3161{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3163ac_tool_warned=yes ;; 3164esac 3165 CC=$ac_ct_CC 3166 fi 3167fi 3168 3169fi 3170 3171 3172test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3174{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3175See \`config.log' for more details." >&5 3176$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3177See \`config.log' for more details." >&2;} 3178 { (exit 1); exit 1; }; }; } 3179 3180# Provide some information about the compiler. 3181$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3182set X $ac_compile 3183ac_compiler=$2 3184{ (ac_try="$ac_compiler --version >&5" 3185case "(($ac_try" in 3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3187 *) ac_try_echo=$ac_try;; 3188esac 3189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3190$as_echo "$ac_try_echo") >&5 3191 (eval "$ac_compiler --version >&5") 2>&5 3192 ac_status=$? 3193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3194 (exit $ac_status); } 3195{ (ac_try="$ac_compiler -v >&5" 3196case "(($ac_try" in 3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3198 *) ac_try_echo=$ac_try;; 3199esac 3200eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3201$as_echo "$ac_try_echo") >&5 3202 (eval "$ac_compiler -v >&5") 2>&5 3203 ac_status=$? 3204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3205 (exit $ac_status); } 3206{ (ac_try="$ac_compiler -V >&5" 3207case "(($ac_try" in 3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3209 *) ac_try_echo=$ac_try;; 3210esac 3211eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3212$as_echo "$ac_try_echo") >&5 3213 (eval "$ac_compiler -V >&5") 2>&5 3214 ac_status=$? 3215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3216 (exit $ac_status); } 3217 3218cat >conftest.$ac_ext <<_ACEOF 3219/* confdefs.h. */ 3220_ACEOF 3221cat confdefs.h >>conftest.$ac_ext 3222cat >>conftest.$ac_ext <<_ACEOF 3223/* end confdefs.h. */ 3224 3225int 3226main () 3227{ 3228 3229 ; 3230 return 0; 3231} 3232_ACEOF 3233ac_clean_files_save=$ac_clean_files 3234ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3235# Try to create an executable without -o first, disregard a.out. 3236# It will help us diagnose broken compilers, and finding out an intuition 3237# of exeext. 3238{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3239$as_echo_n "checking for C compiler default output file name... " >&6; } 3240ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3241 3242# The possible output files: 3243ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3244 3245ac_rmfiles= 3246for ac_file in $ac_files 3247do 3248 case $ac_file in 3249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3250 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3251 esac 3252done 3253rm -f $ac_rmfiles 3254 3255if { (ac_try="$ac_link_default" 3256case "(($ac_try" in 3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3258 *) ac_try_echo=$ac_try;; 3259esac 3260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3261$as_echo "$ac_try_echo") >&5 3262 (eval "$ac_link_default") 2>&5 3263 ac_status=$? 3264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3265 (exit $ac_status); }; then 3266 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3267# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3268# in a Makefile. We should not override ac_cv_exeext if it was cached, 3269# so that the user can short-circuit this test for compilers unknown to 3270# Autoconf. 3271for ac_file in $ac_files '' 3272do 3273 test -f "$ac_file" || continue 3274 case $ac_file in 3275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3276 ;; 3277 [ab].out ) 3278 # We found the default executable, but exeext='' is most 3279 # certainly right. 3280 break;; 3281 *.* ) 3282 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3283 then :; else 3284 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3285 fi 3286 # We set ac_cv_exeext here because the later test for it is not 3287 # safe: cross compilers may not add the suffix if given an `-o' 3288 # argument, so we may need to know it at that point already. 3289 # Even if this section looks crufty: it has the advantage of 3290 # actually working. 3291 break;; 3292 * ) 3293 break;; 3294 esac 3295done 3296test "$ac_cv_exeext" = no && ac_cv_exeext= 3297 3298else 3299 ac_file='' 3300fi 3301 3302{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3303$as_echo "$ac_file" >&6; } 3304if test -z "$ac_file"; then 3305 $as_echo "$as_me: failed program was:" >&5 3306sed 's/^/| /' conftest.$ac_ext >&5 3307 3308{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3310{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3311See \`config.log' for more details." >&5 3312$as_echo "$as_me: error: C compiler cannot create executables 3313See \`config.log' for more details." >&2;} 3314 { (exit 77); exit 77; }; }; } 3315fi 3316 3317ac_exeext=$ac_cv_exeext 3318 3319# Check that the compiler produces executables we can run. If not, either 3320# the compiler is broken, or we cross compile. 3321{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3322$as_echo_n "checking whether the C compiler works... " >&6; } 3323# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3324# If not cross compiling, check that we can run a simple program. 3325if test "$cross_compiling" != yes; then 3326 if { ac_try='./$ac_file' 3327 { (case "(($ac_try" in 3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3329 *) ac_try_echo=$ac_try;; 3330esac 3331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3332$as_echo "$ac_try_echo") >&5 3333 (eval "$ac_try") 2>&5 3334 ac_status=$? 3335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3336 (exit $ac_status); }; }; then 3337 cross_compiling=no 3338 else 3339 if test "$cross_compiling" = maybe; then 3340 cross_compiling=yes 3341 else 3342 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3344{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3345If you meant to cross compile, use \`--host'. 3346See \`config.log' for more details." >&5 3347$as_echo "$as_me: error: cannot run C compiled programs. 3348If you meant to cross compile, use \`--host'. 3349See \`config.log' for more details." >&2;} 3350 { (exit 1); exit 1; }; }; } 3351 fi 3352 fi 3353fi 3354{ $as_echo "$as_me:$LINENO: result: yes" >&5 3355$as_echo "yes" >&6; } 3356 3357rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3358ac_clean_files=$ac_clean_files_save 3359# Check that the compiler produces executables we can run. If not, either 3360# the compiler is broken, or we cross compile. 3361{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3362$as_echo_n "checking whether we are cross compiling... " >&6; } 3363{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3364$as_echo "$cross_compiling" >&6; } 3365 3366{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3367$as_echo_n "checking for suffix of executables... " >&6; } 3368if { (ac_try="$ac_link" 3369case "(($ac_try" in 3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3371 *) ac_try_echo=$ac_try;; 3372esac 3373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3374$as_echo "$ac_try_echo") >&5 3375 (eval "$ac_link") 2>&5 3376 ac_status=$? 3377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3378 (exit $ac_status); }; then 3379 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3380# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3381# work properly (i.e., refer to `conftest.exe'), while it won't with 3382# `rm'. 3383for ac_file in conftest.exe conftest conftest.*; do 3384 test -f "$ac_file" || continue 3385 case $ac_file in 3386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3387 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3388 break;; 3389 * ) break;; 3390 esac 3391done 3392else 3393 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3395{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3396See \`config.log' for more details." >&5 3397$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3398See \`config.log' for more details." >&2;} 3399 { (exit 1); exit 1; }; }; } 3400fi 3401 3402rm -f conftest$ac_cv_exeext 3403{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3404$as_echo "$ac_cv_exeext" >&6; } 3405 3406rm -f conftest.$ac_ext 3407EXEEXT=$ac_cv_exeext 3408ac_exeext=$EXEEXT 3409{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3410$as_echo_n "checking for suffix of object files... " >&6; } 3411if test "${ac_cv_objext+set}" = set; then 3412 $as_echo_n "(cached) " >&6 3413else 3414 cat >conftest.$ac_ext <<_ACEOF 3415/* confdefs.h. */ 3416_ACEOF 3417cat confdefs.h >>conftest.$ac_ext 3418cat >>conftest.$ac_ext <<_ACEOF 3419/* end confdefs.h. */ 3420 3421int 3422main () 3423{ 3424 3425 ; 3426 return 0; 3427} 3428_ACEOF 3429rm -f conftest.o conftest.obj 3430if { (ac_try="$ac_compile" 3431case "(($ac_try" in 3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3433 *) ac_try_echo=$ac_try;; 3434esac 3435eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3436$as_echo "$ac_try_echo") >&5 3437 (eval "$ac_compile") 2>&5 3438 ac_status=$? 3439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3440 (exit $ac_status); }; then 3441 for ac_file in conftest.o conftest.obj conftest.*; do 3442 test -f "$ac_file" || continue; 3443 case $ac_file in 3444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3445 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3446 break;; 3447 esac 3448done 3449else 3450 $as_echo "$as_me: failed program was:" >&5 3451sed 's/^/| /' conftest.$ac_ext >&5 3452 3453{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3455{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3456See \`config.log' for more details." >&5 3457$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3458See \`config.log' for more details." >&2;} 3459 { (exit 1); exit 1; }; }; } 3460fi 3461 3462rm -f conftest.$ac_cv_objext conftest.$ac_ext 3463fi 3464{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3465$as_echo "$ac_cv_objext" >&6; } 3466OBJEXT=$ac_cv_objext 3467ac_objext=$OBJEXT 3468{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3469$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3470if test "${ac_cv_c_compiler_gnu+set}" = set; then 3471 $as_echo_n "(cached) " >&6 3472else 3473 cat >conftest.$ac_ext <<_ACEOF 3474/* confdefs.h. */ 3475_ACEOF 3476cat confdefs.h >>conftest.$ac_ext 3477cat >>conftest.$ac_ext <<_ACEOF 3478/* end confdefs.h. */ 3479 3480int 3481main () 3482{ 3483#ifndef __GNUC__ 3484 choke me 3485#endif 3486 3487 ; 3488 return 0; 3489} 3490_ACEOF 3491rm -f conftest.$ac_objext 3492if { (ac_try="$ac_compile" 3493case "(($ac_try" in 3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3495 *) ac_try_echo=$ac_try;; 3496esac 3497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3498$as_echo "$ac_try_echo") >&5 3499 (eval "$ac_compile") 2>conftest.er1 3500 ac_status=$? 3501 grep -v '^ *+' conftest.er1 >conftest.err 3502 rm -f conftest.er1 3503 cat conftest.err >&5 3504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3505 (exit $ac_status); } && { 3506 test -z "$ac_c_werror_flag" || 3507 test ! -s conftest.err 3508 } && test -s conftest.$ac_objext; then 3509 ac_compiler_gnu=yes 3510else 3511 $as_echo "$as_me: failed program was:" >&5 3512sed 's/^/| /' conftest.$ac_ext >&5 3513 3514 ac_compiler_gnu=no 3515fi 3516 3517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3518ac_cv_c_compiler_gnu=$ac_compiler_gnu 3519 3520fi 3521{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3522$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3523if test $ac_compiler_gnu = yes; then 3524 GCC=yes 3525else 3526 GCC= 3527fi 3528ac_test_CFLAGS=${CFLAGS+set} 3529ac_save_CFLAGS=$CFLAGS 3530{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3531$as_echo_n "checking whether $CC accepts -g... " >&6; } 3532if test "${ac_cv_prog_cc_g+set}" = set; then 3533 $as_echo_n "(cached) " >&6 3534else 3535 ac_save_c_werror_flag=$ac_c_werror_flag 3536 ac_c_werror_flag=yes 3537 ac_cv_prog_cc_g=no 3538 CFLAGS="-g" 3539 cat >conftest.$ac_ext <<_ACEOF 3540/* confdefs.h. */ 3541_ACEOF 3542cat confdefs.h >>conftest.$ac_ext 3543cat >>conftest.$ac_ext <<_ACEOF 3544/* end confdefs.h. */ 3545 3546int 3547main () 3548{ 3549 3550 ; 3551 return 0; 3552} 3553_ACEOF 3554rm -f conftest.$ac_objext 3555if { (ac_try="$ac_compile" 3556case "(($ac_try" in 3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3558 *) ac_try_echo=$ac_try;; 3559esac 3560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3561$as_echo "$ac_try_echo") >&5 3562 (eval "$ac_compile") 2>conftest.er1 3563 ac_status=$? 3564 grep -v '^ *+' conftest.er1 >conftest.err 3565 rm -f conftest.er1 3566 cat conftest.err >&5 3567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3568 (exit $ac_status); } && { 3569 test -z "$ac_c_werror_flag" || 3570 test ! -s conftest.err 3571 } && test -s conftest.$ac_objext; then 3572 ac_cv_prog_cc_g=yes 3573else 3574 $as_echo "$as_me: failed program was:" >&5 3575sed 's/^/| /' conftest.$ac_ext >&5 3576 3577 CFLAGS="" 3578 cat >conftest.$ac_ext <<_ACEOF 3579/* confdefs.h. */ 3580_ACEOF 3581cat confdefs.h >>conftest.$ac_ext 3582cat >>conftest.$ac_ext <<_ACEOF 3583/* end confdefs.h. */ 3584 3585int 3586main () 3587{ 3588 3589 ; 3590 return 0; 3591} 3592_ACEOF 3593rm -f conftest.$ac_objext 3594if { (ac_try="$ac_compile" 3595case "(($ac_try" in 3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3597 *) ac_try_echo=$ac_try;; 3598esac 3599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3600$as_echo "$ac_try_echo") >&5 3601 (eval "$ac_compile") 2>conftest.er1 3602 ac_status=$? 3603 grep -v '^ *+' conftest.er1 >conftest.err 3604 rm -f conftest.er1 3605 cat conftest.err >&5 3606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3607 (exit $ac_status); } && { 3608 test -z "$ac_c_werror_flag" || 3609 test ! -s conftest.err 3610 } && test -s conftest.$ac_objext; then 3611 : 3612else 3613 $as_echo "$as_me: failed program was:" >&5 3614sed 's/^/| /' conftest.$ac_ext >&5 3615 3616 ac_c_werror_flag=$ac_save_c_werror_flag 3617 CFLAGS="-g" 3618 cat >conftest.$ac_ext <<_ACEOF 3619/* confdefs.h. */ 3620_ACEOF 3621cat confdefs.h >>conftest.$ac_ext 3622cat >>conftest.$ac_ext <<_ACEOF 3623/* end confdefs.h. */ 3624 3625int 3626main () 3627{ 3628 3629 ; 3630 return 0; 3631} 3632_ACEOF 3633rm -f conftest.$ac_objext 3634if { (ac_try="$ac_compile" 3635case "(($ac_try" in 3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3637 *) ac_try_echo=$ac_try;; 3638esac 3639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3640$as_echo "$ac_try_echo") >&5 3641 (eval "$ac_compile") 2>conftest.er1 3642 ac_status=$? 3643 grep -v '^ *+' conftest.er1 >conftest.err 3644 rm -f conftest.er1 3645 cat conftest.err >&5 3646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3647 (exit $ac_status); } && { 3648 test -z "$ac_c_werror_flag" || 3649 test ! -s conftest.err 3650 } && test -s conftest.$ac_objext; then 3651 ac_cv_prog_cc_g=yes 3652else 3653 $as_echo "$as_me: failed program was:" >&5 3654sed 's/^/| /' conftest.$ac_ext >&5 3655 3656 3657fi 3658 3659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3660fi 3661 3662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3663fi 3664 3665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3666 ac_c_werror_flag=$ac_save_c_werror_flag 3667fi 3668{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3669$as_echo "$ac_cv_prog_cc_g" >&6; } 3670if test "$ac_test_CFLAGS" = set; then 3671 CFLAGS=$ac_save_CFLAGS 3672elif test $ac_cv_prog_cc_g = yes; then 3673 if test "$GCC" = yes; then 3674 CFLAGS="-g -O2" 3675 else 3676 CFLAGS="-g" 3677 fi 3678else 3679 if test "$GCC" = yes; then 3680 CFLAGS="-O2" 3681 else 3682 CFLAGS= 3683 fi 3684fi 3685{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3686$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3687if test "${ac_cv_prog_cc_c89+set}" = set; then 3688 $as_echo_n "(cached) " >&6 3689else 3690 ac_cv_prog_cc_c89=no 3691ac_save_CC=$CC 3692cat >conftest.$ac_ext <<_ACEOF 3693/* confdefs.h. */ 3694_ACEOF 3695cat confdefs.h >>conftest.$ac_ext 3696cat >>conftest.$ac_ext <<_ACEOF 3697/* end confdefs.h. */ 3698#include <stdarg.h> 3699#include <stdio.h> 3700#include <sys/types.h> 3701#include <sys/stat.h> 3702/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3703struct buf { int x; }; 3704FILE * (*rcsopen) (struct buf *, struct stat *, int); 3705static char *e (p, i) 3706 char **p; 3707 int i; 3708{ 3709 return p[i]; 3710} 3711static char *f (char * (*g) (char **, int), char **p, ...) 3712{ 3713 char *s; 3714 va_list v; 3715 va_start (v,p); 3716 s = g (p, va_arg (v,int)); 3717 va_end (v); 3718 return s; 3719} 3720 3721/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3722 function prototypes and stuff, but not '\xHH' hex character constants. 3723 These don't provoke an error unfortunately, instead are silently treated 3724 as 'x'. The following induces an error, until -std is added to get 3725 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3726 array size at least. It's necessary to write '\x00'==0 to get something 3727 that's true only with -std. */ 3728int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3729 3730/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3731 inside strings and character constants. */ 3732#define FOO(x) 'x' 3733int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3734 3735int test (int i, double x); 3736struct s1 {int (*f) (int a);}; 3737struct s2 {int (*f) (double a);}; 3738int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3739int argc; 3740char **argv; 3741int 3742main () 3743{ 3744return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3745 ; 3746 return 0; 3747} 3748_ACEOF 3749for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3750 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3751do 3752 CC="$ac_save_CC $ac_arg" 3753 rm -f conftest.$ac_objext 3754if { (ac_try="$ac_compile" 3755case "(($ac_try" in 3756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3757 *) ac_try_echo=$ac_try;; 3758esac 3759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3760$as_echo "$ac_try_echo") >&5 3761 (eval "$ac_compile") 2>conftest.er1 3762 ac_status=$? 3763 grep -v '^ *+' conftest.er1 >conftest.err 3764 rm -f conftest.er1 3765 cat conftest.err >&5 3766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3767 (exit $ac_status); } && { 3768 test -z "$ac_c_werror_flag" || 3769 test ! -s conftest.err 3770 } && test -s conftest.$ac_objext; then 3771 ac_cv_prog_cc_c89=$ac_arg 3772else 3773 $as_echo "$as_me: failed program was:" >&5 3774sed 's/^/| /' conftest.$ac_ext >&5 3775 3776 3777fi 3778 3779rm -f core conftest.err conftest.$ac_objext 3780 test "x$ac_cv_prog_cc_c89" != "xno" && break 3781done 3782rm -f conftest.$ac_ext 3783CC=$ac_save_CC 3784 3785fi 3786# AC_CACHE_VAL 3787case "x$ac_cv_prog_cc_c89" in 3788 x) 3789 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3790$as_echo "none needed" >&6; } ;; 3791 xno) 3792 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3793$as_echo "unsupported" >&6; } ;; 3794 *) 3795 CC="$CC $ac_cv_prog_cc_c89" 3796 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3797$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3798esac 3799 3800 3801ac_ext=c 3802ac_cpp='$CPP $CPPFLAGS' 3803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3805ac_compiler_gnu=$ac_cv_c_compiler_gnu 3806 3807depcc="$CC" am_compiler_list= 3808 3809{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3810$as_echo_n "checking dependency style of $depcc... " >&6; } 3811if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3812 $as_echo_n "(cached) " >&6 3813else 3814 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3815 # We make a subdir and do the tests there. Otherwise we can end up 3816 # making bogus files that we don't know about and never remove. For 3817 # instance it was reported that on HP-UX the gcc test will end up 3818 # making a dummy file named `D' -- because `-MD' means `put the output 3819 # in D'. 3820 mkdir conftest.dir 3821 # Copy depcomp to subdir because otherwise we won't find it if we're 3822 # using a relative directory. 3823 cp "$am_depcomp" conftest.dir 3824 cd conftest.dir 3825 # We will build objects and dependencies in a subdirectory because 3826 # it helps to detect inapplicable dependency modes. For instance 3827 # both Tru64's cc and ICC support -MD to output dependencies as a 3828 # side effect of compilation, but ICC will put the dependencies in 3829 # the current directory while Tru64 will put them in the object 3830 # directory. 3831 mkdir sub 3832 3833 am_cv_CC_dependencies_compiler_type=none 3834 if test "$am_compiler_list" = ""; then 3835 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3836 fi 3837 am__universal=false 3838 case " $depcc " in #( 3839 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3840 esac 3841 3842 for depmode in $am_compiler_list; do 3843 # Setup a source with many dependencies, because some compilers 3844 # like to wrap large dependency lists on column 80 (with \), and 3845 # we should not choose a depcomp mode which is confused by this. 3846 # 3847 # We need to recreate these files for each test, as the compiler may 3848 # overwrite some of them when testing with obscure command lines. 3849 # This happens at least with the AIX C compiler. 3850 : > sub/conftest.c 3851 for i in 1 2 3 4 5 6; do 3852 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3853 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3854 # Solaris 8's {/usr,}/bin/sh. 3855 touch sub/conftst$i.h 3856 done 3857 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3858 3859 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3860 # mode. It turns out that the SunPro C++ compiler does not properly 3861 # handle `-M -o', and we need to detect this. Also, some Intel 3862 # versions had trouble with output in subdirs 3863 am__obj=sub/conftest.${OBJEXT-o} 3864 am__minus_obj="-o $am__obj" 3865 case $depmode in 3866 gcc) 3867 # This depmode causes a compiler race in universal mode. 3868 test "$am__universal" = false || continue 3869 ;; 3870 nosideeffect) 3871 # after this tag, mechanisms are not by side-effect, so they'll 3872 # only be used when explicitly requested 3873 if test "x$enable_dependency_tracking" = xyes; then 3874 continue 3875 else 3876 break 3877 fi 3878 ;; 3879 msvisualcpp | msvcmsys) 3880 # This compiler won't grok `-c -o', but also, the minuso test has 3881 # not run yet. These depmodes are late enough in the game, and 3882 # so weak that their functioning should not be impacted. 3883 am__obj=conftest.${OBJEXT-o} 3884 am__minus_obj= 3885 ;; 3886 none) break ;; 3887 esac 3888 if depmode=$depmode \ 3889 source=sub/conftest.c object=$am__obj \ 3890 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3891 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3892 >/dev/null 2>conftest.err && 3893 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3894 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3895 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3896 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3897 # icc doesn't choke on unknown options, it will just issue warnings 3898 # or remarks (even with -Werror). So we grep stderr for any message 3899 # that says an option was ignored or not supported. 3900 # When given -MP, icc 7.0 and 7.1 complain thusly: 3901 # icc: Command line warning: ignoring option '-M'; no argument required 3902 # The diagnosis changed in icc 8.0: 3903 # icc: Command line remark: option '-MP' not supported 3904 if (grep 'ignoring option' conftest.err || 3905 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3906 am_cv_CC_dependencies_compiler_type=$depmode 3907 break 3908 fi 3909 fi 3910 done 3911 3912 cd .. 3913 rm -rf conftest.dir 3914else 3915 am_cv_CC_dependencies_compiler_type=none 3916fi 3917 3918fi 3919{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3920$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3921CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3922 3923 if 3924 test "x$enable_dependency_tracking" != xno \ 3925 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3926 am__fastdepCC_TRUE= 3927 am__fastdepCC_FALSE='#' 3928else 3929 am__fastdepCC_TRUE='#' 3930 am__fastdepCC_FALSE= 3931fi 3932 3933 3934{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3935$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3936if test "${lt_cv_path_SED+set}" = set; then 3937 $as_echo_n "(cached) " >&6 3938else 3939 # Loop through the user's path and test for sed and gsed. 3940# Then use that list of sed's as ones to test for truncation. 3941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3942for as_dir in $PATH 3943do 3944 IFS=$as_save_IFS 3945 test -z "$as_dir" && as_dir=. 3946 for lt_ac_prog in sed gsed; do 3947 for ac_exec_ext in '' $ac_executable_extensions; do 3948 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3949 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3950 fi 3951 done 3952 done 3953done 3954IFS=$as_save_IFS 3955lt_ac_max=0 3956lt_ac_count=0 3957# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3958# along with /bin/sed that truncates output. 3959for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3960 test ! -f $lt_ac_sed && continue 3961 cat /dev/null > conftest.in 3962 lt_ac_count=0 3963 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3964 # Check for GNU sed and select it if it is found. 3965 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3966 lt_cv_path_SED=$lt_ac_sed 3967 break 3968 fi 3969 while true; do 3970 cat conftest.in conftest.in >conftest.tmp 3971 mv conftest.tmp conftest.in 3972 cp conftest.in conftest.nl 3973 echo >>conftest.nl 3974 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3975 cmp -s conftest.out conftest.nl || break 3976 # 10000 chars as input seems more than enough 3977 test $lt_ac_count -gt 10 && break 3978 lt_ac_count=`expr $lt_ac_count + 1` 3979 if test $lt_ac_count -gt $lt_ac_max; then 3980 lt_ac_max=$lt_ac_count 3981 lt_cv_path_SED=$lt_ac_sed 3982 fi 3983 done 3984done 3985 3986fi 3987 3988SED=$lt_cv_path_SED 3989 3990{ $as_echo "$as_me:$LINENO: result: $SED" >&5 3991$as_echo "$SED" >&6; } 3992 3993{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3994$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3995if test "${ac_cv_path_GREP+set}" = set; then 3996 $as_echo_n "(cached) " >&6 3997else 3998 if test -z "$GREP"; then 3999 ac_path_GREP_found=false 4000 # Loop through the user's path and test for each of PROGNAME-LIST 4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4002for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4003do 4004 IFS=$as_save_IFS 4005 test -z "$as_dir" && as_dir=. 4006 for ac_prog in grep ggrep; do 4007 for ac_exec_ext in '' $ac_executable_extensions; do 4008 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4009 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4010# Check for GNU ac_path_GREP and select it if it is found. 4011 # Check for GNU $ac_path_GREP 4012case `"$ac_path_GREP" --version 2>&1` in 4013*GNU*) 4014 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4015*) 4016 ac_count=0 4017 $as_echo_n 0123456789 >"conftest.in" 4018 while : 4019 do 4020 cat "conftest.in" "conftest.in" >"conftest.tmp" 4021 mv "conftest.tmp" "conftest.in" 4022 cp "conftest.in" "conftest.nl" 4023 $as_echo 'GREP' >> "conftest.nl" 4024 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4026 ac_count=`expr $ac_count + 1` 4027 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4028 # Best one so far, save it but keep looking for a better one 4029 ac_cv_path_GREP="$ac_path_GREP" 4030 ac_path_GREP_max=$ac_count 4031 fi 4032 # 10*(2^10) chars as input seems more than enough 4033 test $ac_count -gt 10 && break 4034 done 4035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4036esac 4037 4038 $ac_path_GREP_found && break 3 4039 done 4040 done 4041done 4042IFS=$as_save_IFS 4043 if test -z "$ac_cv_path_GREP"; then 4044 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4045$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4046 { (exit 1); exit 1; }; } 4047 fi 4048else 4049 ac_cv_path_GREP=$GREP 4050fi 4051 4052fi 4053{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4054$as_echo "$ac_cv_path_GREP" >&6; } 4055 GREP="$ac_cv_path_GREP" 4056 4057 4058{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4059$as_echo_n "checking for egrep... " >&6; } 4060if test "${ac_cv_path_EGREP+set}" = set; then 4061 $as_echo_n "(cached) " >&6 4062else 4063 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4064 then ac_cv_path_EGREP="$GREP -E" 4065 else 4066 if test -z "$EGREP"; then 4067 ac_path_EGREP_found=false 4068 # Loop through the user's path and test for each of PROGNAME-LIST 4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4070for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4071do 4072 IFS=$as_save_IFS 4073 test -z "$as_dir" && as_dir=. 4074 for ac_prog in egrep; do 4075 for ac_exec_ext in '' $ac_executable_extensions; do 4076 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4077 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4078# Check for GNU ac_path_EGREP and select it if it is found. 4079 # Check for GNU $ac_path_EGREP 4080case `"$ac_path_EGREP" --version 2>&1` in 4081*GNU*) 4082 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4083*) 4084 ac_count=0 4085 $as_echo_n 0123456789 >"conftest.in" 4086 while : 4087 do 4088 cat "conftest.in" "conftest.in" >"conftest.tmp" 4089 mv "conftest.tmp" "conftest.in" 4090 cp "conftest.in" "conftest.nl" 4091 $as_echo 'EGREP' >> "conftest.nl" 4092 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4093 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4094 ac_count=`expr $ac_count + 1` 4095 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4096 # Best one so far, save it but keep looking for a better one 4097 ac_cv_path_EGREP="$ac_path_EGREP" 4098 ac_path_EGREP_max=$ac_count 4099 fi 4100 # 10*(2^10) chars as input seems more than enough 4101 test $ac_count -gt 10 && break 4102 done 4103 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4104esac 4105 4106 $ac_path_EGREP_found && break 3 4107 done 4108 done 4109done 4110IFS=$as_save_IFS 4111 if test -z "$ac_cv_path_EGREP"; then 4112 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4113$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4114 { (exit 1); exit 1; }; } 4115 fi 4116else 4117 ac_cv_path_EGREP=$EGREP 4118fi 4119 4120 fi 4121fi 4122{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4123$as_echo "$ac_cv_path_EGREP" >&6; } 4124 EGREP="$ac_cv_path_EGREP" 4125 4126 4127 4128# Check whether --with-gnu-ld was given. 4129if test "${with_gnu_ld+set}" = set; then 4130 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4131else 4132 with_gnu_ld=no 4133fi 4134 4135ac_prog=ld 4136if test "$GCC" = yes; then 4137 # Check if gcc -print-prog-name=ld gives a path. 4138 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4139$as_echo_n "checking for ld used by $CC... " >&6; } 4140 case $host in 4141 *-*-mingw*) 4142 # gcc leaves a trailing carriage return which upsets mingw 4143 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4144 *) 4145 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4146 esac 4147 case $ac_prog in 4148 # Accept absolute paths. 4149 [\\/]* | ?:[\\/]*) 4150 re_direlt='/[^/][^/]*/\.\./' 4151 # Canonicalize the pathname of ld 4152 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4153 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4154 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4155 done 4156 test -z "$LD" && LD="$ac_prog" 4157 ;; 4158 "") 4159 # If it fails, then pretend we aren't using GCC. 4160 ac_prog=ld 4161 ;; 4162 *) 4163 # If it is relative, then search for the first ld in PATH. 4164 with_gnu_ld=unknown 4165 ;; 4166 esac 4167elif test "$with_gnu_ld" = yes; then 4168 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4169$as_echo_n "checking for GNU ld... " >&6; } 4170else 4171 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4172$as_echo_n "checking for non-GNU ld... " >&6; } 4173fi 4174if test "${lt_cv_path_LD+set}" = set; then 4175 $as_echo_n "(cached) " >&6 4176else 4177 if test -z "$LD"; then 4178 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4179 for ac_dir in $PATH; do 4180 IFS="$lt_save_ifs" 4181 test -z "$ac_dir" && ac_dir=. 4182 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4183 lt_cv_path_LD="$ac_dir/$ac_prog" 4184 # Check to see if the program is GNU ld. I'd rather use --version, 4185 # but apparently some variants of GNU ld only accept -v. 4186 # Break only if it was the GNU/non-GNU ld that we prefer. 4187 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4188 *GNU* | *'with BFD'*) 4189 test "$with_gnu_ld" != no && break 4190 ;; 4191 *) 4192 test "$with_gnu_ld" != yes && break 4193 ;; 4194 esac 4195 fi 4196 done 4197 IFS="$lt_save_ifs" 4198else 4199 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4200fi 4201fi 4202 4203LD="$lt_cv_path_LD" 4204if test -n "$LD"; then 4205 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4206$as_echo "$LD" >&6; } 4207else 4208 { $as_echo "$as_me:$LINENO: result: no" >&5 4209$as_echo "no" >&6; } 4210fi 4211test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4212$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4213 { (exit 1); exit 1; }; } 4214{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4215$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4216if test "${lt_cv_prog_gnu_ld+set}" = set; then 4217 $as_echo_n "(cached) " >&6 4218else 4219 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4220case `$LD -v 2>&1 </dev/null` in 4221*GNU* | *'with BFD'*) 4222 lt_cv_prog_gnu_ld=yes 4223 ;; 4224*) 4225 lt_cv_prog_gnu_ld=no 4226 ;; 4227esac 4228fi 4229{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4230$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4231with_gnu_ld=$lt_cv_prog_gnu_ld 4232 4233 4234{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4235$as_echo_n "checking for $LD option to reload object files... " >&6; } 4236if test "${lt_cv_ld_reload_flag+set}" = set; then 4237 $as_echo_n "(cached) " >&6 4238else 4239 lt_cv_ld_reload_flag='-r' 4240fi 4241{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4242$as_echo "$lt_cv_ld_reload_flag" >&6; } 4243reload_flag=$lt_cv_ld_reload_flag 4244case $reload_flag in 4245"" | " "*) ;; 4246*) reload_flag=" $reload_flag" ;; 4247esac 4248reload_cmds='$LD$reload_flag -o $output$reload_objs' 4249case $host_os in 4250 darwin*) 4251 if test "$GCC" = yes; then 4252 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4253 else 4254 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4255 fi 4256 ;; 4257esac 4258 4259{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4260$as_echo_n "checking for BSD-compatible nm... " >&6; } 4261if test "${lt_cv_path_NM+set}" = set; then 4262 $as_echo_n "(cached) " >&6 4263else 4264 if test -n "$NM"; then 4265 # Let the user override the test. 4266 lt_cv_path_NM="$NM" 4267else 4268 lt_nm_to_check="${ac_tool_prefix}nm" 4269 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4270 lt_nm_to_check="$lt_nm_to_check nm" 4271 fi 4272 for lt_tmp_nm in $lt_nm_to_check; do 4273 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4274 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4275 IFS="$lt_save_ifs" 4276 test -z "$ac_dir" && ac_dir=. 4277 tmp_nm="$ac_dir/$lt_tmp_nm" 4278 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4279 # Check to see if the nm accepts a BSD-compat flag. 4280 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4281 # nm: unknown option "B" ignored 4282 # Tru64's nm complains that /dev/null is an invalid object file 4283 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4284 */dev/null* | *'Invalid file or object type'*) 4285 lt_cv_path_NM="$tmp_nm -B" 4286 break 4287 ;; 4288 *) 4289 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4290 */dev/null*) 4291 lt_cv_path_NM="$tmp_nm -p" 4292 break 4293 ;; 4294 *) 4295 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4296 continue # so that we can try to find one that supports BSD flags 4297 ;; 4298 esac 4299 ;; 4300 esac 4301 fi 4302 done 4303 IFS="$lt_save_ifs" 4304 done 4305 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4306fi 4307fi 4308{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4309$as_echo "$lt_cv_path_NM" >&6; } 4310NM="$lt_cv_path_NM" 4311 4312{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4313$as_echo_n "checking whether ln -s works... " >&6; } 4314LN_S=$as_ln_s 4315if test "$LN_S" = "ln -s"; then 4316 { $as_echo "$as_me:$LINENO: result: yes" >&5 4317$as_echo "yes" >&6; } 4318else 4319 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4320$as_echo "no, using $LN_S" >&6; } 4321fi 4322 4323{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4324$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4325if test "${lt_cv_deplibs_check_method+set}" = set; then 4326 $as_echo_n "(cached) " >&6 4327else 4328 lt_cv_file_magic_cmd='$MAGIC_CMD' 4329lt_cv_file_magic_test_file= 4330lt_cv_deplibs_check_method='unknown' 4331# Need to set the preceding variable on all platforms that support 4332# interlibrary dependencies. 4333# 'none' -- dependencies not supported. 4334# `unknown' -- same as none, but documents that we really don't know. 4335# 'pass_all' -- all dependencies passed with no checks. 4336# 'test_compile' -- check by making test program. 4337# 'file_magic [[regex]]' -- check by looking for files in library path 4338# which responds to the $file_magic_cmd with a given extended regex. 4339# If you have `file' or equivalent on your system and you're not sure 4340# whether `pass_all' will *always* work, you probably want this one. 4341 4342case $host_os in 4343aix[4-9]*) 4344 lt_cv_deplibs_check_method=pass_all 4345 ;; 4346 4347beos*) 4348 lt_cv_deplibs_check_method=pass_all 4349 ;; 4350 4351bsdi[45]*) 4352 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4353 lt_cv_file_magic_cmd='/usr/bin/file -L' 4354 lt_cv_file_magic_test_file=/shlib/libc.so 4355 ;; 4356 4357cygwin*) 4358 # func_win32_libid is a shell function defined in ltmain.sh 4359 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4360 lt_cv_file_magic_cmd='func_win32_libid' 4361 ;; 4362 4363mingw* | pw32*) 4364 # Base MSYS/MinGW do not provide the 'file' command needed by 4365 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4366 # unless we find 'file', for example because we are cross-compiling. 4367 if ( file / ) >/dev/null 2>&1; then 4368 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4369 lt_cv_file_magic_cmd='func_win32_libid' 4370 else 4371 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4372 lt_cv_file_magic_cmd='$OBJDUMP -f' 4373 fi 4374 ;; 4375 4376darwin* | rhapsody*) 4377 lt_cv_deplibs_check_method=pass_all 4378 ;; 4379 4380freebsd* | dragonfly*) 4381 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4382 case $host_cpu in 4383 i*86 ) 4384 # Not sure whether the presence of OpenBSD here was a mistake. 4385 # Let's accept both of them until this is cleared up. 4386 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4387 lt_cv_file_magic_cmd=/usr/bin/file 4388 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4389 ;; 4390 esac 4391 else 4392 lt_cv_deplibs_check_method=pass_all 4393 fi 4394 ;; 4395 4396gnu*) 4397 lt_cv_deplibs_check_method=pass_all 4398 ;; 4399 4400hpux10.20* | hpux11*) 4401 lt_cv_file_magic_cmd=/usr/bin/file 4402 case $host_cpu in 4403 ia64*) 4404 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4405 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4406 ;; 4407 hppa*64*) 4408 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]' 4409 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4410 ;; 4411 *) 4412 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4413 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4414 ;; 4415 esac 4416 ;; 4417 4418interix[3-9]*) 4419 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4421 ;; 4422 4423irix5* | irix6* | nonstopux*) 4424 case $LD in 4425 *-32|*"-32 ") libmagic=32-bit;; 4426 *-n32|*"-n32 ") libmagic=N32;; 4427 *-64|*"-64 ") libmagic=64-bit;; 4428 *) libmagic=never-match;; 4429 esac 4430 lt_cv_deplibs_check_method=pass_all 4431 ;; 4432 4433# This must be Linux ELF. 4434linux* | k*bsd*-gnu) 4435 lt_cv_deplibs_check_method=pass_all 4436 ;; 4437 4438netbsd*) 4439 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4441 else 4442 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4443 fi 4444 ;; 4445 4446newos6*) 4447 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4448 lt_cv_file_magic_cmd=/usr/bin/file 4449 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4450 ;; 4451 4452nto-qnx*) 4453 lt_cv_deplibs_check_method=unknown 4454 ;; 4455 4456openbsd*) 4457 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4459 else 4460 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4461 fi 4462 ;; 4463 4464osf3* | osf4* | osf5*) 4465 lt_cv_deplibs_check_method=pass_all 4466 ;; 4467 4468rdos*) 4469 lt_cv_deplibs_check_method=pass_all 4470 ;; 4471 4472solaris*) 4473 lt_cv_deplibs_check_method=pass_all 4474 ;; 4475 4476sysv4 | sysv4.3*) 4477 case $host_vendor in 4478 motorola) 4479 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]' 4480 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4481 ;; 4482 ncr) 4483 lt_cv_deplibs_check_method=pass_all 4484 ;; 4485 sequent) 4486 lt_cv_file_magic_cmd='/bin/file' 4487 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4488 ;; 4489 sni) 4490 lt_cv_file_magic_cmd='/bin/file' 4491 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4492 lt_cv_file_magic_test_file=/lib/libc.so 4493 ;; 4494 siemens) 4495 lt_cv_deplibs_check_method=pass_all 4496 ;; 4497 pc) 4498 lt_cv_deplibs_check_method=pass_all 4499 ;; 4500 esac 4501 ;; 4502 4503sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4504 lt_cv_deplibs_check_method=pass_all 4505 ;; 4506esac 4507 4508fi 4509{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4510$as_echo "$lt_cv_deplibs_check_method" >&6; } 4511file_magic_cmd=$lt_cv_file_magic_cmd 4512deplibs_check_method=$lt_cv_deplibs_check_method 4513test -z "$deplibs_check_method" && deplibs_check_method=unknown 4514 4515 4516 4517 4518# If no C compiler was specified, use CC. 4519LTCC=${LTCC-"$CC"} 4520 4521# If no C compiler flags were specified, use CFLAGS. 4522LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4523 4524# Allow CC to be a program name with arguments. 4525compiler=$CC 4526 4527 4528# Check whether --enable-libtool-lock was given. 4529if test "${enable_libtool_lock+set}" = set; then 4530 enableval=$enable_libtool_lock; 4531fi 4532 4533test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4534 4535# Some flags need to be propagated to the compiler or linker for good 4536# libtool support. 4537case $host in 4538ia64-*-hpux*) 4539 # Find out which ABI we are using. 4540 echo 'int i;' > conftest.$ac_ext 4541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4542 (eval $ac_compile) 2>&5 4543 ac_status=$? 4544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4545 (exit $ac_status); }; then 4546 case `/usr/bin/file conftest.$ac_objext` in 4547 *ELF-32*) 4548 HPUX_IA64_MODE="32" 4549 ;; 4550 *ELF-64*) 4551 HPUX_IA64_MODE="64" 4552 ;; 4553 esac 4554 fi 4555 rm -rf conftest* 4556 ;; 4557*-*-irix6*) 4558 # Find out which ABI we are using. 4559 echo '#line 4559 "configure"' > conftest.$ac_ext 4560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4561 (eval $ac_compile) 2>&5 4562 ac_status=$? 4563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4564 (exit $ac_status); }; then 4565 if test "$lt_cv_prog_gnu_ld" = yes; then 4566 case `/usr/bin/file conftest.$ac_objext` in 4567 *32-bit*) 4568 LD="${LD-ld} -melf32bsmip" 4569 ;; 4570 *N32*) 4571 LD="${LD-ld} -melf32bmipn32" 4572 ;; 4573 *64-bit*) 4574 LD="${LD-ld} -melf64bmip" 4575 ;; 4576 esac 4577 else 4578 case `/usr/bin/file conftest.$ac_objext` in 4579 *32-bit*) 4580 LD="${LD-ld} -32" 4581 ;; 4582 *N32*) 4583 LD="${LD-ld} -n32" 4584 ;; 4585 *64-bit*) 4586 LD="${LD-ld} -64" 4587 ;; 4588 esac 4589 fi 4590 fi 4591 rm -rf conftest* 4592 ;; 4593 4594x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4595s390*-*linux*|sparc*-*linux*) 4596 # Find out which ABI we are using. 4597 echo 'int i;' > conftest.$ac_ext 4598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4599 (eval $ac_compile) 2>&5 4600 ac_status=$? 4601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4602 (exit $ac_status); }; then 4603 case `/usr/bin/file conftest.o` in 4604 *32-bit*) 4605 case $host in 4606 x86_64-*kfreebsd*-gnu) 4607 LD="${LD-ld} -m elf_i386_fbsd" 4608 ;; 4609 x86_64-*linux*) 4610 LD="${LD-ld} -m elf_i386" 4611 ;; 4612 ppc64-*linux*|powerpc64-*linux*) 4613 LD="${LD-ld} -m elf32ppclinux" 4614 ;; 4615 s390x-*linux*) 4616 LD="${LD-ld} -m elf_s390" 4617 ;; 4618 sparc64-*linux*) 4619 LD="${LD-ld} -m elf32_sparc" 4620 ;; 4621 esac 4622 ;; 4623 *64-bit*) 4624 libsuff=64 4625 case $host in 4626 x86_64-*kfreebsd*-gnu) 4627 LD="${LD-ld} -m elf_x86_64_fbsd" 4628 ;; 4629 x86_64-*linux*) 4630 LD="${LD-ld} -m elf_x86_64" 4631 ;; 4632 ppc*-*linux*|powerpc*-*linux*) 4633 LD="${LD-ld} -m elf64ppc" 4634 ;; 4635 s390*-*linux*) 4636 LD="${LD-ld} -m elf64_s390" 4637 ;; 4638 sparc*-*linux*) 4639 LD="${LD-ld} -m elf64_sparc" 4640 ;; 4641 esac 4642 ;; 4643 esac 4644 fi 4645 rm -rf conftest* 4646 ;; 4647 4648*-*-sco3.2v5*) 4649 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4650 SAVE_CFLAGS="$CFLAGS" 4651 CFLAGS="$CFLAGS -belf" 4652 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4653$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 4654if test "${lt_cv_cc_needs_belf+set}" = set; then 4655 $as_echo_n "(cached) " >&6 4656else 4657 ac_ext=c 4658ac_cpp='$CPP $CPPFLAGS' 4659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4661ac_compiler_gnu=$ac_cv_c_compiler_gnu 4662 4663 cat >conftest.$ac_ext <<_ACEOF 4664/* confdefs.h. */ 4665_ACEOF 4666cat confdefs.h >>conftest.$ac_ext 4667cat >>conftest.$ac_ext <<_ACEOF 4668/* end confdefs.h. */ 4669 4670int 4671main () 4672{ 4673 4674 ; 4675 return 0; 4676} 4677_ACEOF 4678rm -f conftest.$ac_objext conftest$ac_exeext 4679if { (ac_try="$ac_link" 4680case "(($ac_try" in 4681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4682 *) ac_try_echo=$ac_try;; 4683esac 4684eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4685$as_echo "$ac_try_echo") >&5 4686 (eval "$ac_link") 2>conftest.er1 4687 ac_status=$? 4688 grep -v '^ *+' conftest.er1 >conftest.err 4689 rm -f conftest.er1 4690 cat conftest.err >&5 4691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4692 (exit $ac_status); } && { 4693 test -z "$ac_c_werror_flag" || 4694 test ! -s conftest.err 4695 } && test -s conftest$ac_exeext && { 4696 test "$cross_compiling" = yes || 4697 $as_test_x conftest$ac_exeext 4698 }; then 4699 lt_cv_cc_needs_belf=yes 4700else 4701 $as_echo "$as_me: failed program was:" >&5 4702sed 's/^/| /' conftest.$ac_ext >&5 4703 4704 lt_cv_cc_needs_belf=no 4705fi 4706 4707rm -rf conftest.dSYM 4708rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4709 conftest$ac_exeext conftest.$ac_ext 4710 ac_ext=c 4711ac_cpp='$CPP $CPPFLAGS' 4712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4714ac_compiler_gnu=$ac_cv_c_compiler_gnu 4715 4716fi 4717{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4718$as_echo "$lt_cv_cc_needs_belf" >&6; } 4719 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4720 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4721 CFLAGS="$SAVE_CFLAGS" 4722 fi 4723 ;; 4724sparc*-*solaris*) 4725 # Find out which ABI we are using. 4726 echo 'int i;' > conftest.$ac_ext 4727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4728 (eval $ac_compile) 2>&5 4729 ac_status=$? 4730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4731 (exit $ac_status); }; then 4732 case `/usr/bin/file conftest.o` in 4733 *64-bit*) 4734 case $lt_cv_prog_gnu_ld in 4735 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4736 *) 4737 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 4738 LD="${LD-ld} -64" 4739 fi 4740 ;; 4741 esac 4742 ;; 4743 esac 4744 fi 4745 rm -rf conftest* 4746 ;; 4747 4748 4749esac 4750 4751need_locks="$enable_libtool_lock" 4752 4753 4754ac_ext=c 4755ac_cpp='$CPP $CPPFLAGS' 4756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4758ac_compiler_gnu=$ac_cv_c_compiler_gnu 4759{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4760$as_echo_n "checking how to run the C preprocessor... " >&6; } 4761# On Suns, sometimes $CPP names a directory. 4762if test -n "$CPP" && test -d "$CPP"; then 4763 CPP= 4764fi 4765if test -z "$CPP"; then 4766 if test "${ac_cv_prog_CPP+set}" = set; then 4767 $as_echo_n "(cached) " >&6 4768else 4769 # Double quotes because CPP needs to be expanded 4770 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4771 do 4772 ac_preproc_ok=false 4773for ac_c_preproc_warn_flag in '' yes 4774do 4775 # Use a header file that comes with gcc, so configuring glibc 4776 # with a fresh cross-compiler works. 4777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4778 # <limits.h> exists even on freestanding compilers. 4779 # On the NeXT, cc -E runs the code through the compiler's parser, 4780 # not just through cpp. "Syntax error" is here to catch this case. 4781 cat >conftest.$ac_ext <<_ACEOF 4782/* confdefs.h. */ 4783_ACEOF 4784cat confdefs.h >>conftest.$ac_ext 4785cat >>conftest.$ac_ext <<_ACEOF 4786/* end confdefs.h. */ 4787#ifdef __STDC__ 4788# include <limits.h> 4789#else 4790# include <assert.h> 4791#endif 4792 Syntax error 4793_ACEOF 4794if { (ac_try="$ac_cpp conftest.$ac_ext" 4795case "(($ac_try" in 4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4797 *) ac_try_echo=$ac_try;; 4798esac 4799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4800$as_echo "$ac_try_echo") >&5 4801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4802 ac_status=$? 4803 grep -v '^ *+' conftest.er1 >conftest.err 4804 rm -f conftest.er1 4805 cat conftest.err >&5 4806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4807 (exit $ac_status); } >/dev/null && { 4808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4809 test ! -s conftest.err 4810 }; then 4811 : 4812else 4813 $as_echo "$as_me: failed program was:" >&5 4814sed 's/^/| /' conftest.$ac_ext >&5 4815 4816 # Broken: fails on valid input. 4817continue 4818fi 4819 4820rm -f conftest.err conftest.$ac_ext 4821 4822 # OK, works on sane cases. Now check whether nonexistent headers 4823 # can be detected and how. 4824 cat >conftest.$ac_ext <<_ACEOF 4825/* confdefs.h. */ 4826_ACEOF 4827cat confdefs.h >>conftest.$ac_ext 4828cat >>conftest.$ac_ext <<_ACEOF 4829/* end confdefs.h. */ 4830#include <ac_nonexistent.h> 4831_ACEOF 4832if { (ac_try="$ac_cpp conftest.$ac_ext" 4833case "(($ac_try" in 4834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4835 *) ac_try_echo=$ac_try;; 4836esac 4837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4838$as_echo "$ac_try_echo") >&5 4839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4840 ac_status=$? 4841 grep -v '^ *+' conftest.er1 >conftest.err 4842 rm -f conftest.er1 4843 cat conftest.err >&5 4844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4845 (exit $ac_status); } >/dev/null && { 4846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4847 test ! -s conftest.err 4848 }; then 4849 # Broken: success on invalid input. 4850continue 4851else 4852 $as_echo "$as_me: failed program was:" >&5 4853sed 's/^/| /' conftest.$ac_ext >&5 4854 4855 # Passes both tests. 4856ac_preproc_ok=: 4857break 4858fi 4859 4860rm -f conftest.err conftest.$ac_ext 4861 4862done 4863# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4864rm -f conftest.err conftest.$ac_ext 4865if $ac_preproc_ok; then 4866 break 4867fi 4868 4869 done 4870 ac_cv_prog_CPP=$CPP 4871 4872fi 4873 CPP=$ac_cv_prog_CPP 4874else 4875 ac_cv_prog_CPP=$CPP 4876fi 4877{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 4878$as_echo "$CPP" >&6; } 4879ac_preproc_ok=false 4880for ac_c_preproc_warn_flag in '' yes 4881do 4882 # Use a header file that comes with gcc, so configuring glibc 4883 # with a fresh cross-compiler works. 4884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4885 # <limits.h> exists even on freestanding compilers. 4886 # On the NeXT, cc -E runs the code through the compiler's parser, 4887 # not just through cpp. "Syntax error" is here to catch this case. 4888 cat >conftest.$ac_ext <<_ACEOF 4889/* confdefs.h. */ 4890_ACEOF 4891cat confdefs.h >>conftest.$ac_ext 4892cat >>conftest.$ac_ext <<_ACEOF 4893/* end confdefs.h. */ 4894#ifdef __STDC__ 4895# include <limits.h> 4896#else 4897# include <assert.h> 4898#endif 4899 Syntax error 4900_ACEOF 4901if { (ac_try="$ac_cpp conftest.$ac_ext" 4902case "(($ac_try" in 4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4904 *) ac_try_echo=$ac_try;; 4905esac 4906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4907$as_echo "$ac_try_echo") >&5 4908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4909 ac_status=$? 4910 grep -v '^ *+' conftest.er1 >conftest.err 4911 rm -f conftest.er1 4912 cat conftest.err >&5 4913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4914 (exit $ac_status); } >/dev/null && { 4915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4916 test ! -s conftest.err 4917 }; then 4918 : 4919else 4920 $as_echo "$as_me: failed program was:" >&5 4921sed 's/^/| /' conftest.$ac_ext >&5 4922 4923 # Broken: fails on valid input. 4924continue 4925fi 4926 4927rm -f conftest.err conftest.$ac_ext 4928 4929 # OK, works on sane cases. Now check whether nonexistent headers 4930 # can be detected and how. 4931 cat >conftest.$ac_ext <<_ACEOF 4932/* confdefs.h. */ 4933_ACEOF 4934cat confdefs.h >>conftest.$ac_ext 4935cat >>conftest.$ac_ext <<_ACEOF 4936/* end confdefs.h. */ 4937#include <ac_nonexistent.h> 4938_ACEOF 4939if { (ac_try="$ac_cpp conftest.$ac_ext" 4940case "(($ac_try" in 4941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4942 *) ac_try_echo=$ac_try;; 4943esac 4944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4945$as_echo "$ac_try_echo") >&5 4946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4947 ac_status=$? 4948 grep -v '^ *+' conftest.er1 >conftest.err 4949 rm -f conftest.er1 4950 cat conftest.err >&5 4951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4952 (exit $ac_status); } >/dev/null && { 4953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4954 test ! -s conftest.err 4955 }; then 4956 # Broken: success on invalid input. 4957continue 4958else 4959 $as_echo "$as_me: failed program was:" >&5 4960sed 's/^/| /' conftest.$ac_ext >&5 4961 4962 # Passes both tests. 4963ac_preproc_ok=: 4964break 4965fi 4966 4967rm -f conftest.err conftest.$ac_ext 4968 4969done 4970# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4971rm -f conftest.err conftest.$ac_ext 4972if $ac_preproc_ok; then 4973 : 4974else 4975 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4976$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4977{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4978See \`config.log' for more details." >&5 4979$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4980See \`config.log' for more details." >&2;} 4981 { (exit 1); exit 1; }; }; } 4982fi 4983 4984ac_ext=c 4985ac_cpp='$CPP $CPPFLAGS' 4986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4988ac_compiler_gnu=$ac_cv_c_compiler_gnu 4989 4990 4991{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4992$as_echo_n "checking for ANSI C header files... " >&6; } 4993if test "${ac_cv_header_stdc+set}" = set; then 4994 $as_echo_n "(cached) " >&6 4995else 4996 cat >conftest.$ac_ext <<_ACEOF 4997/* confdefs.h. */ 4998_ACEOF 4999cat confdefs.h >>conftest.$ac_ext 5000cat >>conftest.$ac_ext <<_ACEOF 5001/* end confdefs.h. */ 5002#include <stdlib.h> 5003#include <stdarg.h> 5004#include <string.h> 5005#include <float.h> 5006 5007int 5008main () 5009{ 5010 5011 ; 5012 return 0; 5013} 5014_ACEOF 5015rm -f conftest.$ac_objext 5016if { (ac_try="$ac_compile" 5017case "(($ac_try" in 5018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5019 *) ac_try_echo=$ac_try;; 5020esac 5021eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5022$as_echo "$ac_try_echo") >&5 5023 (eval "$ac_compile") 2>conftest.er1 5024 ac_status=$? 5025 grep -v '^ *+' conftest.er1 >conftest.err 5026 rm -f conftest.er1 5027 cat conftest.err >&5 5028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5029 (exit $ac_status); } && { 5030 test -z "$ac_c_werror_flag" || 5031 test ! -s conftest.err 5032 } && test -s conftest.$ac_objext; then 5033 ac_cv_header_stdc=yes 5034else 5035 $as_echo "$as_me: failed program was:" >&5 5036sed 's/^/| /' conftest.$ac_ext >&5 5037 5038 ac_cv_header_stdc=no 5039fi 5040 5041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5042 5043if test $ac_cv_header_stdc = yes; then 5044 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5045 cat >conftest.$ac_ext <<_ACEOF 5046/* confdefs.h. */ 5047_ACEOF 5048cat confdefs.h >>conftest.$ac_ext 5049cat >>conftest.$ac_ext <<_ACEOF 5050/* end confdefs.h. */ 5051#include <string.h> 5052 5053_ACEOF 5054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5055 $EGREP "memchr" >/dev/null 2>&1; then 5056 : 5057else 5058 ac_cv_header_stdc=no 5059fi 5060rm -f conftest* 5061 5062fi 5063 5064if test $ac_cv_header_stdc = yes; then 5065 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5066 cat >conftest.$ac_ext <<_ACEOF 5067/* confdefs.h. */ 5068_ACEOF 5069cat confdefs.h >>conftest.$ac_ext 5070cat >>conftest.$ac_ext <<_ACEOF 5071/* end confdefs.h. */ 5072#include <stdlib.h> 5073 5074_ACEOF 5075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5076 $EGREP "free" >/dev/null 2>&1; then 5077 : 5078else 5079 ac_cv_header_stdc=no 5080fi 5081rm -f conftest* 5082 5083fi 5084 5085if test $ac_cv_header_stdc = yes; then 5086 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5087 if test "$cross_compiling" = yes; then 5088 : 5089else 5090 cat >conftest.$ac_ext <<_ACEOF 5091/* confdefs.h. */ 5092_ACEOF 5093cat confdefs.h >>conftest.$ac_ext 5094cat >>conftest.$ac_ext <<_ACEOF 5095/* end confdefs.h. */ 5096#include <ctype.h> 5097#include <stdlib.h> 5098#if ((' ' & 0x0FF) == 0x020) 5099# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5100# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5101#else 5102# define ISLOWER(c) \ 5103 (('a' <= (c) && (c) <= 'i') \ 5104 || ('j' <= (c) && (c) <= 'r') \ 5105 || ('s' <= (c) && (c) <= 'z')) 5106# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5107#endif 5108 5109#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5110int 5111main () 5112{ 5113 int i; 5114 for (i = 0; i < 256; i++) 5115 if (XOR (islower (i), ISLOWER (i)) 5116 || toupper (i) != TOUPPER (i)) 5117 return 2; 5118 return 0; 5119} 5120_ACEOF 5121rm -f conftest$ac_exeext 5122if { (ac_try="$ac_link" 5123case "(($ac_try" in 5124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5125 *) ac_try_echo=$ac_try;; 5126esac 5127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5128$as_echo "$ac_try_echo") >&5 5129 (eval "$ac_link") 2>&5 5130 ac_status=$? 5131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5133 { (case "(($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_try") 2>&5 5140 ac_status=$? 5141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5142 (exit $ac_status); }; }; then 5143 : 5144else 5145 $as_echo "$as_me: program exited with status $ac_status" >&5 5146$as_echo "$as_me: failed program was:" >&5 5147sed 's/^/| /' conftest.$ac_ext >&5 5148 5149( exit $ac_status ) 5150ac_cv_header_stdc=no 5151fi 5152rm -rf conftest.dSYM 5153rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5154fi 5155 5156 5157fi 5158fi 5159{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5160$as_echo "$ac_cv_header_stdc" >&6; } 5161if test $ac_cv_header_stdc = yes; then 5162 5163cat >>confdefs.h <<\_ACEOF 5164#define STDC_HEADERS 1 5165_ACEOF 5166 5167fi 5168 5169# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5180 inttypes.h stdint.h unistd.h 5181do 5182as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5183{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5184$as_echo_n "checking for $ac_header... " >&6; } 5185if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5186 $as_echo_n "(cached) " >&6 5187else 5188 cat >conftest.$ac_ext <<_ACEOF 5189/* confdefs.h. */ 5190_ACEOF 5191cat confdefs.h >>conftest.$ac_ext 5192cat >>conftest.$ac_ext <<_ACEOF 5193/* end confdefs.h. */ 5194$ac_includes_default 5195 5196#include <$ac_header> 5197_ACEOF 5198rm -f conftest.$ac_objext 5199if { (ac_try="$ac_compile" 5200case "(($ac_try" in 5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5202 *) ac_try_echo=$ac_try;; 5203esac 5204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5205$as_echo "$ac_try_echo") >&5 5206 (eval "$ac_compile") 2>conftest.er1 5207 ac_status=$? 5208 grep -v '^ *+' conftest.er1 >conftest.err 5209 rm -f conftest.er1 5210 cat conftest.err >&5 5211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5212 (exit $ac_status); } && { 5213 test -z "$ac_c_werror_flag" || 5214 test ! -s conftest.err 5215 } && test -s conftest.$ac_objext; then 5216 eval "$as_ac_Header=yes" 5217else 5218 $as_echo "$as_me: failed program was:" >&5 5219sed 's/^/| /' conftest.$ac_ext >&5 5220 5221 eval "$as_ac_Header=no" 5222fi 5223 5224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5225fi 5226ac_res=`eval 'as_val=${'$as_ac_Header'} 5227 $as_echo "$as_val"'` 5228 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5229$as_echo "$ac_res" >&6; } 5230as_val=`eval 'as_val=${'$as_ac_Header'} 5231 $as_echo "$as_val"'` 5232 if test "x$as_val" = x""yes; then 5233 cat >>confdefs.h <<_ACEOF 5234#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5235_ACEOF 5236 5237fi 5238 5239done 5240 5241 5242 5243for ac_header in dlfcn.h 5244do 5245as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5246if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5247 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5248$as_echo_n "checking for $ac_header... " >&6; } 5249if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5250 $as_echo_n "(cached) " >&6 5251fi 5252ac_res=`eval 'as_val=${'$as_ac_Header'} 5253 $as_echo "$as_val"'` 5254 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5255$as_echo "$ac_res" >&6; } 5256else 5257 # Is the header compilable? 5258{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 5259$as_echo_n "checking $ac_header usability... " >&6; } 5260cat >conftest.$ac_ext <<_ACEOF 5261/* confdefs.h. */ 5262_ACEOF 5263cat confdefs.h >>conftest.$ac_ext 5264cat >>conftest.$ac_ext <<_ACEOF 5265/* end confdefs.h. */ 5266$ac_includes_default 5267#include <$ac_header> 5268_ACEOF 5269rm -f conftest.$ac_objext 5270if { (ac_try="$ac_compile" 5271case "(($ac_try" in 5272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5273 *) ac_try_echo=$ac_try;; 5274esac 5275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5276$as_echo "$ac_try_echo") >&5 5277 (eval "$ac_compile") 2>conftest.er1 5278 ac_status=$? 5279 grep -v '^ *+' conftest.er1 >conftest.err 5280 rm -f conftest.er1 5281 cat conftest.err >&5 5282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5283 (exit $ac_status); } && { 5284 test -z "$ac_c_werror_flag" || 5285 test ! -s conftest.err 5286 } && test -s conftest.$ac_objext; then 5287 ac_header_compiler=yes 5288else 5289 $as_echo "$as_me: failed program was:" >&5 5290sed 's/^/| /' conftest.$ac_ext >&5 5291 5292 ac_header_compiler=no 5293fi 5294 5295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5296{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5297$as_echo "$ac_header_compiler" >&6; } 5298 5299# Is the header present? 5300{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 5301$as_echo_n "checking $ac_header presence... " >&6; } 5302cat >conftest.$ac_ext <<_ACEOF 5303/* confdefs.h. */ 5304_ACEOF 5305cat confdefs.h >>conftest.$ac_ext 5306cat >>conftest.$ac_ext <<_ACEOF 5307/* end confdefs.h. */ 5308#include <$ac_header> 5309_ACEOF 5310if { (ac_try="$ac_cpp conftest.$ac_ext" 5311case "(($ac_try" in 5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5313 *) ac_try_echo=$ac_try;; 5314esac 5315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5316$as_echo "$ac_try_echo") >&5 5317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5318 ac_status=$? 5319 grep -v '^ *+' conftest.er1 >conftest.err 5320 rm -f conftest.er1 5321 cat conftest.err >&5 5322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5323 (exit $ac_status); } >/dev/null && { 5324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5325 test ! -s conftest.err 5326 }; then 5327 ac_header_preproc=yes 5328else 5329 $as_echo "$as_me: failed program was:" >&5 5330sed 's/^/| /' conftest.$ac_ext >&5 5331 5332 ac_header_preproc=no 5333fi 5334 5335rm -f conftest.err conftest.$ac_ext 5336{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5337$as_echo "$ac_header_preproc" >&6; } 5338 5339# So? What about this header? 5340case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5341 yes:no: ) 5342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5343$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5345$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5346 ac_header_preproc=yes 5347 ;; 5348 no:yes:* ) 5349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5350$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5352$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5354$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5356$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5358$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5360$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5361 ( cat <<\_ASBOX 5362## ---------------------------------------------------------------------- ## 5363## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5364## ---------------------------------------------------------------------- ## 5365_ASBOX 5366 ) | sed "s/^/$as_me: WARNING: /" >&2 5367 ;; 5368esac 5369{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5370$as_echo_n "checking for $ac_header... " >&6; } 5371if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5372 $as_echo_n "(cached) " >&6 5373else 5374 eval "$as_ac_Header=\$ac_header_preproc" 5375fi 5376ac_res=`eval 'as_val=${'$as_ac_Header'} 5377 $as_echo "$as_val"'` 5378 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5379$as_echo "$ac_res" >&6; } 5380 5381fi 5382as_val=`eval 'as_val=${'$as_ac_Header'} 5383 $as_echo "$as_val"'` 5384 if test "x$as_val" = x""yes; then 5385 cat >>confdefs.h <<_ACEOF 5386#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5387_ACEOF 5388 5389fi 5390 5391done 5392 5393ac_ext=cpp 5394ac_cpp='$CXXCPP $CPPFLAGS' 5395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5398if test -z "$CXX"; then 5399 if test -n "$CCC"; then 5400 CXX=$CCC 5401 else 5402 if test -n "$ac_tool_prefix"; then 5403 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5404 do 5405 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5406set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5407{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5408$as_echo_n "checking for $ac_word... " >&6; } 5409if test "${ac_cv_prog_CXX+set}" = set; then 5410 $as_echo_n "(cached) " >&6 5411else 5412 if test -n "$CXX"; then 5413 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5414else 5415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5416for as_dir in $PATH 5417do 5418 IFS=$as_save_IFS 5419 test -z "$as_dir" && as_dir=. 5420 for ac_exec_ext in '' $ac_executable_extensions; do 5421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5422 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5423 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5424 break 2 5425 fi 5426done 5427done 5428IFS=$as_save_IFS 5429 5430fi 5431fi 5432CXX=$ac_cv_prog_CXX 5433if test -n "$CXX"; then 5434 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 5435$as_echo "$CXX" >&6; } 5436else 5437 { $as_echo "$as_me:$LINENO: result: no" >&5 5438$as_echo "no" >&6; } 5439fi 5440 5441 5442 test -n "$CXX" && break 5443 done 5444fi 5445if test -z "$CXX"; then 5446 ac_ct_CXX=$CXX 5447 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5448do 5449 # Extract the first word of "$ac_prog", so it can be a program name with args. 5450set dummy $ac_prog; ac_word=$2 5451{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5452$as_echo_n "checking for $ac_word... " >&6; } 5453if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5454 $as_echo_n "(cached) " >&6 5455else 5456 if test -n "$ac_ct_CXX"; then 5457 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5458else 5459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5460for as_dir in $PATH 5461do 5462 IFS=$as_save_IFS 5463 test -z "$as_dir" && as_dir=. 5464 for ac_exec_ext in '' $ac_executable_extensions; do 5465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5466 ac_cv_prog_ac_ct_CXX="$ac_prog" 5467 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5468 break 2 5469 fi 5470done 5471done 5472IFS=$as_save_IFS 5473 5474fi 5475fi 5476ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5477if test -n "$ac_ct_CXX"; then 5478 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5479$as_echo "$ac_ct_CXX" >&6; } 5480else 5481 { $as_echo "$as_me:$LINENO: result: no" >&5 5482$as_echo "no" >&6; } 5483fi 5484 5485 5486 test -n "$ac_ct_CXX" && break 5487done 5488 5489 if test "x$ac_ct_CXX" = x; then 5490 CXX="g++" 5491 else 5492 case $cross_compiling:$ac_tool_warned in 5493yes:) 5494{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5496ac_tool_warned=yes ;; 5497esac 5498 CXX=$ac_ct_CXX 5499 fi 5500fi 5501 5502 fi 5503fi 5504# Provide some information about the compiler. 5505$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5506set X $ac_compile 5507ac_compiler=$2 5508{ (ac_try="$ac_compiler --version >&5" 5509case "(($ac_try" in 5510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5511 *) ac_try_echo=$ac_try;; 5512esac 5513eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5514$as_echo "$ac_try_echo") >&5 5515 (eval "$ac_compiler --version >&5") 2>&5 5516 ac_status=$? 5517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5518 (exit $ac_status); } 5519{ (ac_try="$ac_compiler -v >&5" 5520case "(($ac_try" in 5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5522 *) ac_try_echo=$ac_try;; 5523esac 5524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5525$as_echo "$ac_try_echo") >&5 5526 (eval "$ac_compiler -v >&5") 2>&5 5527 ac_status=$? 5528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5529 (exit $ac_status); } 5530{ (ac_try="$ac_compiler -V >&5" 5531case "(($ac_try" in 5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5533 *) ac_try_echo=$ac_try;; 5534esac 5535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5536$as_echo "$ac_try_echo") >&5 5537 (eval "$ac_compiler -V >&5") 2>&5 5538 ac_status=$? 5539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5540 (exit $ac_status); } 5541 5542{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5543$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5544if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5545 $as_echo_n "(cached) " >&6 5546else 5547 cat >conftest.$ac_ext <<_ACEOF 5548/* confdefs.h. */ 5549_ACEOF 5550cat confdefs.h >>conftest.$ac_ext 5551cat >>conftest.$ac_ext <<_ACEOF 5552/* end confdefs.h. */ 5553 5554int 5555main () 5556{ 5557#ifndef __GNUC__ 5558 choke me 5559#endif 5560 5561 ; 5562 return 0; 5563} 5564_ACEOF 5565rm -f conftest.$ac_objext 5566if { (ac_try="$ac_compile" 5567case "(($ac_try" in 5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5569 *) ac_try_echo=$ac_try;; 5570esac 5571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5572$as_echo "$ac_try_echo") >&5 5573 (eval "$ac_compile") 2>conftest.er1 5574 ac_status=$? 5575 grep -v '^ *+' conftest.er1 >conftest.err 5576 rm -f conftest.er1 5577 cat conftest.err >&5 5578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5579 (exit $ac_status); } && { 5580 test -z "$ac_cxx_werror_flag" || 5581 test ! -s conftest.err 5582 } && test -s conftest.$ac_objext; then 5583 ac_compiler_gnu=yes 5584else 5585 $as_echo "$as_me: failed program was:" >&5 5586sed 's/^/| /' conftest.$ac_ext >&5 5587 5588 ac_compiler_gnu=no 5589fi 5590 5591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5592ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5593 5594fi 5595{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5596$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5597if test $ac_compiler_gnu = yes; then 5598 GXX=yes 5599else 5600 GXX= 5601fi 5602ac_test_CXXFLAGS=${CXXFLAGS+set} 5603ac_save_CXXFLAGS=$CXXFLAGS 5604{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5605$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5606if test "${ac_cv_prog_cxx_g+set}" = set; then 5607 $as_echo_n "(cached) " >&6 5608else 5609 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5610 ac_cxx_werror_flag=yes 5611 ac_cv_prog_cxx_g=no 5612 CXXFLAGS="-g" 5613 cat >conftest.$ac_ext <<_ACEOF 5614/* confdefs.h. */ 5615_ACEOF 5616cat confdefs.h >>conftest.$ac_ext 5617cat >>conftest.$ac_ext <<_ACEOF 5618/* end confdefs.h. */ 5619 5620int 5621main () 5622{ 5623 5624 ; 5625 return 0; 5626} 5627_ACEOF 5628rm -f conftest.$ac_objext 5629if { (ac_try="$ac_compile" 5630case "(($ac_try" in 5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5632 *) ac_try_echo=$ac_try;; 5633esac 5634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5635$as_echo "$ac_try_echo") >&5 5636 (eval "$ac_compile") 2>conftest.er1 5637 ac_status=$? 5638 grep -v '^ *+' conftest.er1 >conftest.err 5639 rm -f conftest.er1 5640 cat conftest.err >&5 5641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5642 (exit $ac_status); } && { 5643 test -z "$ac_cxx_werror_flag" || 5644 test ! -s conftest.err 5645 } && test -s conftest.$ac_objext; then 5646 ac_cv_prog_cxx_g=yes 5647else 5648 $as_echo "$as_me: failed program was:" >&5 5649sed 's/^/| /' conftest.$ac_ext >&5 5650 5651 CXXFLAGS="" 5652 cat >conftest.$ac_ext <<_ACEOF 5653/* confdefs.h. */ 5654_ACEOF 5655cat confdefs.h >>conftest.$ac_ext 5656cat >>conftest.$ac_ext <<_ACEOF 5657/* end confdefs.h. */ 5658 5659int 5660main () 5661{ 5662 5663 ; 5664 return 0; 5665} 5666_ACEOF 5667rm -f conftest.$ac_objext 5668if { (ac_try="$ac_compile" 5669case "(($ac_try" in 5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5671 *) ac_try_echo=$ac_try;; 5672esac 5673eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5674$as_echo "$ac_try_echo") >&5 5675 (eval "$ac_compile") 2>conftest.er1 5676 ac_status=$? 5677 grep -v '^ *+' conftest.er1 >conftest.err 5678 rm -f conftest.er1 5679 cat conftest.err >&5 5680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5681 (exit $ac_status); } && { 5682 test -z "$ac_cxx_werror_flag" || 5683 test ! -s conftest.err 5684 } && test -s conftest.$ac_objext; then 5685 : 5686else 5687 $as_echo "$as_me: failed program was:" >&5 5688sed 's/^/| /' conftest.$ac_ext >&5 5689 5690 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5691 CXXFLAGS="-g" 5692 cat >conftest.$ac_ext <<_ACEOF 5693/* confdefs.h. */ 5694_ACEOF 5695cat confdefs.h >>conftest.$ac_ext 5696cat >>conftest.$ac_ext <<_ACEOF 5697/* end confdefs.h. */ 5698 5699int 5700main () 5701{ 5702 5703 ; 5704 return 0; 5705} 5706_ACEOF 5707rm -f conftest.$ac_objext 5708if { (ac_try="$ac_compile" 5709case "(($ac_try" in 5710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5711 *) ac_try_echo=$ac_try;; 5712esac 5713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5714$as_echo "$ac_try_echo") >&5 5715 (eval "$ac_compile") 2>conftest.er1 5716 ac_status=$? 5717 grep -v '^ *+' conftest.er1 >conftest.err 5718 rm -f conftest.er1 5719 cat conftest.err >&5 5720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5721 (exit $ac_status); } && { 5722 test -z "$ac_cxx_werror_flag" || 5723 test ! -s conftest.err 5724 } && test -s conftest.$ac_objext; then 5725 ac_cv_prog_cxx_g=yes 5726else 5727 $as_echo "$as_me: failed program was:" >&5 5728sed 's/^/| /' conftest.$ac_ext >&5 5729 5730 5731fi 5732 5733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5734fi 5735 5736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5737fi 5738 5739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5740 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5741fi 5742{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5743$as_echo "$ac_cv_prog_cxx_g" >&6; } 5744if test "$ac_test_CXXFLAGS" = set; then 5745 CXXFLAGS=$ac_save_CXXFLAGS 5746elif test $ac_cv_prog_cxx_g = yes; then 5747 if test "$GXX" = yes; then 5748 CXXFLAGS="-g -O2" 5749 else 5750 CXXFLAGS="-g" 5751 fi 5752else 5753 if test "$GXX" = yes; then 5754 CXXFLAGS="-O2" 5755 else 5756 CXXFLAGS= 5757 fi 5758fi 5759ac_ext=cpp 5760ac_cpp='$CXXCPP $CPPFLAGS' 5761ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5762ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5763ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5764 5765depcc="$CXX" am_compiler_list= 5766 5767{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5768$as_echo_n "checking dependency style of $depcc... " >&6; } 5769if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5770 $as_echo_n "(cached) " >&6 5771else 5772 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5773 # We make a subdir and do the tests there. Otherwise we can end up 5774 # making bogus files that we don't know about and never remove. For 5775 # instance it was reported that on HP-UX the gcc test will end up 5776 # making a dummy file named `D' -- because `-MD' means `put the output 5777 # in D'. 5778 mkdir conftest.dir 5779 # Copy depcomp to subdir because otherwise we won't find it if we're 5780 # using a relative directory. 5781 cp "$am_depcomp" conftest.dir 5782 cd conftest.dir 5783 # We will build objects and dependencies in a subdirectory because 5784 # it helps to detect inapplicable dependency modes. For instance 5785 # both Tru64's cc and ICC support -MD to output dependencies as a 5786 # side effect of compilation, but ICC will put the dependencies in 5787 # the current directory while Tru64 will put them in the object 5788 # directory. 5789 mkdir sub 5790 5791 am_cv_CXX_dependencies_compiler_type=none 5792 if test "$am_compiler_list" = ""; then 5793 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5794 fi 5795 am__universal=false 5796 case " $depcc " in #( 5797 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5798 esac 5799 5800 for depmode in $am_compiler_list; do 5801 # Setup a source with many dependencies, because some compilers 5802 # like to wrap large dependency lists on column 80 (with \), and 5803 # we should not choose a depcomp mode which is confused by this. 5804 # 5805 # We need to recreate these files for each test, as the compiler may 5806 # overwrite some of them when testing with obscure command lines. 5807 # This happens at least with the AIX C compiler. 5808 : > sub/conftest.c 5809 for i in 1 2 3 4 5 6; do 5810 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5811 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5812 # Solaris 8's {/usr,}/bin/sh. 5813 touch sub/conftst$i.h 5814 done 5815 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5816 5817 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5818 # mode. It turns out that the SunPro C++ compiler does not properly 5819 # handle `-M -o', and we need to detect this. Also, some Intel 5820 # versions had trouble with output in subdirs 5821 am__obj=sub/conftest.${OBJEXT-o} 5822 am__minus_obj="-o $am__obj" 5823 case $depmode in 5824 gcc) 5825 # This depmode causes a compiler race in universal mode. 5826 test "$am__universal" = false || continue 5827 ;; 5828 nosideeffect) 5829 # after this tag, mechanisms are not by side-effect, so they'll 5830 # only be used when explicitly requested 5831 if test "x$enable_dependency_tracking" = xyes; then 5832 continue 5833 else 5834 break 5835 fi 5836 ;; 5837 msvisualcpp | msvcmsys) 5838 # This compiler won't grok `-c -o', but also, the minuso test has 5839 # not run yet. These depmodes are late enough in the game, and 5840 # so weak that their functioning should not be impacted. 5841 am__obj=conftest.${OBJEXT-o} 5842 am__minus_obj= 5843 ;; 5844 none) break ;; 5845 esac 5846 if depmode=$depmode \ 5847 source=sub/conftest.c object=$am__obj \ 5848 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5849 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5850 >/dev/null 2>conftest.err && 5851 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5852 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5853 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5854 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5855 # icc doesn't choke on unknown options, it will just issue warnings 5856 # or remarks (even with -Werror). So we grep stderr for any message 5857 # that says an option was ignored or not supported. 5858 # When given -MP, icc 7.0 and 7.1 complain thusly: 5859 # icc: Command line warning: ignoring option '-M'; no argument required 5860 # The diagnosis changed in icc 8.0: 5861 # icc: Command line remark: option '-MP' not supported 5862 if (grep 'ignoring option' conftest.err || 5863 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5864 am_cv_CXX_dependencies_compiler_type=$depmode 5865 break 5866 fi 5867 fi 5868 done 5869 5870 cd .. 5871 rm -rf conftest.dir 5872else 5873 am_cv_CXX_dependencies_compiler_type=none 5874fi 5875 5876fi 5877{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5878$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5879CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5880 5881 if 5882 test "x$enable_dependency_tracking" != xno \ 5883 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5884 am__fastdepCXX_TRUE= 5885 am__fastdepCXX_FALSE='#' 5886else 5887 am__fastdepCXX_TRUE='#' 5888 am__fastdepCXX_FALSE= 5889fi 5890 5891 5892 5893 5894if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5895 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5896 (test "X$CXX" != "Xg++"))) ; then 5897 ac_ext=cpp 5898ac_cpp='$CXXCPP $CPPFLAGS' 5899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5902{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5903$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5904if test -z "$CXXCPP"; then 5905 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5906 $as_echo_n "(cached) " >&6 5907else 5908 # Double quotes because CXXCPP needs to be expanded 5909 for CXXCPP in "$CXX -E" "/lib/cpp" 5910 do 5911 ac_preproc_ok=false 5912for ac_cxx_preproc_warn_flag in '' yes 5913do 5914 # Use a header file that comes with gcc, so configuring glibc 5915 # with a fresh cross-compiler works. 5916 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5917 # <limits.h> exists even on freestanding compilers. 5918 # On the NeXT, cc -E runs the code through the compiler's parser, 5919 # not just through cpp. "Syntax error" is here to catch this case. 5920 cat >conftest.$ac_ext <<_ACEOF 5921/* confdefs.h. */ 5922_ACEOF 5923cat confdefs.h >>conftest.$ac_ext 5924cat >>conftest.$ac_ext <<_ACEOF 5925/* end confdefs.h. */ 5926#ifdef __STDC__ 5927# include <limits.h> 5928#else 5929# include <assert.h> 5930#endif 5931 Syntax error 5932_ACEOF 5933if { (ac_try="$ac_cpp conftest.$ac_ext" 5934case "(($ac_try" in 5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5936 *) ac_try_echo=$ac_try;; 5937esac 5938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5939$as_echo "$ac_try_echo") >&5 5940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5941 ac_status=$? 5942 grep -v '^ *+' conftest.er1 >conftest.err 5943 rm -f conftest.er1 5944 cat conftest.err >&5 5945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5946 (exit $ac_status); } >/dev/null && { 5947 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5948 test ! -s conftest.err 5949 }; then 5950 : 5951else 5952 $as_echo "$as_me: failed program was:" >&5 5953sed 's/^/| /' conftest.$ac_ext >&5 5954 5955 # Broken: fails on valid input. 5956continue 5957fi 5958 5959rm -f conftest.err conftest.$ac_ext 5960 5961 # OK, works on sane cases. Now check whether nonexistent headers 5962 # can be detected and how. 5963 cat >conftest.$ac_ext <<_ACEOF 5964/* confdefs.h. */ 5965_ACEOF 5966cat confdefs.h >>conftest.$ac_ext 5967cat >>conftest.$ac_ext <<_ACEOF 5968/* end confdefs.h. */ 5969#include <ac_nonexistent.h> 5970_ACEOF 5971if { (ac_try="$ac_cpp conftest.$ac_ext" 5972case "(($ac_try" in 5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5974 *) ac_try_echo=$ac_try;; 5975esac 5976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5977$as_echo "$ac_try_echo") >&5 5978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5979 ac_status=$? 5980 grep -v '^ *+' conftest.er1 >conftest.err 5981 rm -f conftest.er1 5982 cat conftest.err >&5 5983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5984 (exit $ac_status); } >/dev/null && { 5985 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5986 test ! -s conftest.err 5987 }; then 5988 # Broken: success on invalid input. 5989continue 5990else 5991 $as_echo "$as_me: failed program was:" >&5 5992sed 's/^/| /' conftest.$ac_ext >&5 5993 5994 # Passes both tests. 5995ac_preproc_ok=: 5996break 5997fi 5998 5999rm -f conftest.err conftest.$ac_ext 6000 6001done 6002# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6003rm -f conftest.err conftest.$ac_ext 6004if $ac_preproc_ok; then 6005 break 6006fi 6007 6008 done 6009 ac_cv_prog_CXXCPP=$CXXCPP 6010 6011fi 6012 CXXCPP=$ac_cv_prog_CXXCPP 6013else 6014 ac_cv_prog_CXXCPP=$CXXCPP 6015fi 6016{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 6017$as_echo "$CXXCPP" >&6; } 6018ac_preproc_ok=false 6019for ac_cxx_preproc_warn_flag in '' yes 6020do 6021 # Use a header file that comes with gcc, so configuring glibc 6022 # with a fresh cross-compiler works. 6023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6024 # <limits.h> exists even on freestanding compilers. 6025 # On the NeXT, cc -E runs the code through the compiler's parser, 6026 # not just through cpp. "Syntax error" is here to catch this case. 6027 cat >conftest.$ac_ext <<_ACEOF 6028/* confdefs.h. */ 6029_ACEOF 6030cat confdefs.h >>conftest.$ac_ext 6031cat >>conftest.$ac_ext <<_ACEOF 6032/* end confdefs.h. */ 6033#ifdef __STDC__ 6034# include <limits.h> 6035#else 6036# include <assert.h> 6037#endif 6038 Syntax error 6039_ACEOF 6040if { (ac_try="$ac_cpp conftest.$ac_ext" 6041case "(($ac_try" in 6042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6043 *) ac_try_echo=$ac_try;; 6044esac 6045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6046$as_echo "$ac_try_echo") >&5 6047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6048 ac_status=$? 6049 grep -v '^ *+' conftest.er1 >conftest.err 6050 rm -f conftest.er1 6051 cat conftest.err >&5 6052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6053 (exit $ac_status); } >/dev/null && { 6054 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6055 test ! -s conftest.err 6056 }; then 6057 : 6058else 6059 $as_echo "$as_me: failed program was:" >&5 6060sed 's/^/| /' conftest.$ac_ext >&5 6061 6062 # Broken: fails on valid input. 6063continue 6064fi 6065 6066rm -f conftest.err conftest.$ac_ext 6067 6068 # OK, works on sane cases. Now check whether nonexistent headers 6069 # can be detected and how. 6070 cat >conftest.$ac_ext <<_ACEOF 6071/* confdefs.h. */ 6072_ACEOF 6073cat confdefs.h >>conftest.$ac_ext 6074cat >>conftest.$ac_ext <<_ACEOF 6075/* end confdefs.h. */ 6076#include <ac_nonexistent.h> 6077_ACEOF 6078if { (ac_try="$ac_cpp conftest.$ac_ext" 6079case "(($ac_try" in 6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6081 *) ac_try_echo=$ac_try;; 6082esac 6083eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6084$as_echo "$ac_try_echo") >&5 6085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6086 ac_status=$? 6087 grep -v '^ *+' conftest.er1 >conftest.err 6088 rm -f conftest.er1 6089 cat conftest.err >&5 6090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6091 (exit $ac_status); } >/dev/null && { 6092 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6093 test ! -s conftest.err 6094 }; then 6095 # Broken: success on invalid input. 6096continue 6097else 6098 $as_echo "$as_me: failed program was:" >&5 6099sed 's/^/| /' conftest.$ac_ext >&5 6100 6101 # Passes both tests. 6102ac_preproc_ok=: 6103break 6104fi 6105 6106rm -f conftest.err conftest.$ac_ext 6107 6108done 6109# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6110rm -f conftest.err conftest.$ac_ext 6111if $ac_preproc_ok; then 6112 : 6113else 6114 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6116{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6117See \`config.log' for more details." >&5 6118$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6119See \`config.log' for more details." >&2;} 6120 { (exit 1); exit 1; }; }; } 6121fi 6122 6123ac_ext=cpp 6124ac_cpp='$CXXCPP $CPPFLAGS' 6125ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6126ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6127ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6128 6129fi 6130 6131 6132ac_ext=f 6133ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6134ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6135ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6136if test -n "$ac_tool_prefix"; then 6137 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 6138 do 6139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6140set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6141{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6142$as_echo_n "checking for $ac_word... " >&6; } 6143if test "${ac_cv_prog_F77+set}" = set; then 6144 $as_echo_n "(cached) " >&6 6145else 6146 if test -n "$F77"; then 6147 ac_cv_prog_F77="$F77" # Let the user override the test. 6148else 6149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6150for as_dir in $PATH 6151do 6152 IFS=$as_save_IFS 6153 test -z "$as_dir" && as_dir=. 6154 for ac_exec_ext in '' $ac_executable_extensions; do 6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6156 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6157 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6158 break 2 6159 fi 6160done 6161done 6162IFS=$as_save_IFS 6163 6164fi 6165fi 6166F77=$ac_cv_prog_F77 6167if test -n "$F77"; then 6168 { $as_echo "$as_me:$LINENO: result: $F77" >&5 6169$as_echo "$F77" >&6; } 6170else 6171 { $as_echo "$as_me:$LINENO: result: no" >&5 6172$as_echo "no" >&6; } 6173fi 6174 6175 6176 test -n "$F77" && break 6177 done 6178fi 6179if test -z "$F77"; then 6180 ac_ct_F77=$F77 6181 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 6182do 6183 # Extract the first word of "$ac_prog", so it can be a program name with args. 6184set dummy $ac_prog; ac_word=$2 6185{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6186$as_echo_n "checking for $ac_word... " >&6; } 6187if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6188 $as_echo_n "(cached) " >&6 6189else 6190 if test -n "$ac_ct_F77"; then 6191 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6192else 6193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6194for as_dir in $PATH 6195do 6196 IFS=$as_save_IFS 6197 test -z "$as_dir" && as_dir=. 6198 for ac_exec_ext in '' $ac_executable_extensions; do 6199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6200 ac_cv_prog_ac_ct_F77="$ac_prog" 6201 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6202 break 2 6203 fi 6204done 6205done 6206IFS=$as_save_IFS 6207 6208fi 6209fi 6210ac_ct_F77=$ac_cv_prog_ac_ct_F77 6211if test -n "$ac_ct_F77"; then 6212 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6213$as_echo "$ac_ct_F77" >&6; } 6214else 6215 { $as_echo "$as_me:$LINENO: result: no" >&5 6216$as_echo "no" >&6; } 6217fi 6218 6219 6220 test -n "$ac_ct_F77" && break 6221done 6222 6223 if test "x$ac_ct_F77" = x; then 6224 F77="" 6225 else 6226 case $cross_compiling:$ac_tool_warned in 6227yes:) 6228{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6230ac_tool_warned=yes ;; 6231esac 6232 F77=$ac_ct_F77 6233 fi 6234fi 6235 6236 6237# Provide some information about the compiler. 6238$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6239set X $ac_compile 6240ac_compiler=$2 6241{ (ac_try="$ac_compiler --version >&5" 6242case "(($ac_try" in 6243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6244 *) ac_try_echo=$ac_try;; 6245esac 6246eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6247$as_echo "$ac_try_echo") >&5 6248 (eval "$ac_compiler --version >&5") 2>&5 6249 ac_status=$? 6250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6251 (exit $ac_status); } 6252{ (ac_try="$ac_compiler -v >&5" 6253case "(($ac_try" in 6254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6255 *) ac_try_echo=$ac_try;; 6256esac 6257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6258$as_echo "$ac_try_echo") >&5 6259 (eval "$ac_compiler -v >&5") 2>&5 6260 ac_status=$? 6261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6262 (exit $ac_status); } 6263{ (ac_try="$ac_compiler -V >&5" 6264case "(($ac_try" in 6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6266 *) ac_try_echo=$ac_try;; 6267esac 6268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6269$as_echo "$ac_try_echo") >&5 6270 (eval "$ac_compiler -V >&5") 2>&5 6271 ac_status=$? 6272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6273 (exit $ac_status); } 6274rm -f a.out 6275 6276# If we don't use `.F' as extension, the preprocessor is not run on the 6277# input file. (Note that this only needs to work for GNU compilers.) 6278ac_save_ext=$ac_ext 6279ac_ext=F 6280{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6281$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 6282if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6283 $as_echo_n "(cached) " >&6 6284else 6285 cat >conftest.$ac_ext <<_ACEOF 6286 program main 6287#ifndef __GNUC__ 6288 choke me 6289#endif 6290 6291 end 6292_ACEOF 6293rm -f conftest.$ac_objext 6294if { (ac_try="$ac_compile" 6295case "(($ac_try" in 6296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6297 *) ac_try_echo=$ac_try;; 6298esac 6299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6300$as_echo "$ac_try_echo") >&5 6301 (eval "$ac_compile") 2>conftest.er1 6302 ac_status=$? 6303 grep -v '^ *+' conftest.er1 >conftest.err 6304 rm -f conftest.er1 6305 cat conftest.err >&5 6306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6307 (exit $ac_status); } && { 6308 test -z "$ac_f77_werror_flag" || 6309 test ! -s conftest.err 6310 } && test -s conftest.$ac_objext; then 6311 ac_compiler_gnu=yes 6312else 6313 $as_echo "$as_me: failed program was:" >&5 6314sed 's/^/| /' conftest.$ac_ext >&5 6315 6316 ac_compiler_gnu=no 6317fi 6318 6319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6320ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6321 6322fi 6323{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6324$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 6325ac_ext=$ac_save_ext 6326ac_test_FFLAGS=${FFLAGS+set} 6327ac_save_FFLAGS=$FFLAGS 6328FFLAGS= 6329{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6330$as_echo_n "checking whether $F77 accepts -g... " >&6; } 6331if test "${ac_cv_prog_f77_g+set}" = set; then 6332 $as_echo_n "(cached) " >&6 6333else 6334 FFLAGS=-g 6335cat >conftest.$ac_ext <<_ACEOF 6336 program main 6337 6338 end 6339_ACEOF 6340rm -f conftest.$ac_objext 6341if { (ac_try="$ac_compile" 6342case "(($ac_try" in 6343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6344 *) ac_try_echo=$ac_try;; 6345esac 6346eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6347$as_echo "$ac_try_echo") >&5 6348 (eval "$ac_compile") 2>conftest.er1 6349 ac_status=$? 6350 grep -v '^ *+' conftest.er1 >conftest.err 6351 rm -f conftest.er1 6352 cat conftest.err >&5 6353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6354 (exit $ac_status); } && { 6355 test -z "$ac_f77_werror_flag" || 6356 test ! -s conftest.err 6357 } && test -s conftest.$ac_objext; then 6358 ac_cv_prog_f77_g=yes 6359else 6360 $as_echo "$as_me: failed program was:" >&5 6361sed 's/^/| /' conftest.$ac_ext >&5 6362 6363 ac_cv_prog_f77_g=no 6364fi 6365 6366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6367 6368fi 6369{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6370$as_echo "$ac_cv_prog_f77_g" >&6; } 6371if test "$ac_test_FFLAGS" = set; then 6372 FFLAGS=$ac_save_FFLAGS 6373elif test $ac_cv_prog_f77_g = yes; then 6374 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6375 FFLAGS="-g -O2" 6376 else 6377 FFLAGS="-g" 6378 fi 6379else 6380 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6381 FFLAGS="-O2" 6382 else 6383 FFLAGS= 6384 fi 6385fi 6386 6387if test $ac_compiler_gnu = yes; then 6388 G77=yes 6389else 6390 G77= 6391fi 6392ac_ext=c 6393ac_cpp='$CPP $CPPFLAGS' 6394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6396ac_compiler_gnu=$ac_cv_c_compiler_gnu 6397 6398 6399 6400# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6401# find the maximum length of command line arguments 6402{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6403$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6404if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6405 $as_echo_n "(cached) " >&6 6406else 6407 i=0 6408 teststring="ABCD" 6409 6410 case $build_os in 6411 msdosdjgpp*) 6412 # On DJGPP, this test can blow up pretty badly due to problems in libc 6413 # (any single argument exceeding 2000 bytes causes a buffer overrun 6414 # during glob expansion). Even if it were fixed, the result of this 6415 # check would be larger than it should be. 6416 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6417 ;; 6418 6419 gnu*) 6420 # Under GNU Hurd, this test is not required because there is 6421 # no limit to the length of command line arguments. 6422 # Libtool will interpret -1 as no limit whatsoever 6423 lt_cv_sys_max_cmd_len=-1; 6424 ;; 6425 6426 cygwin* | mingw*) 6427 # On Win9x/ME, this test blows up -- it succeeds, but takes 6428 # about 5 minutes as the teststring grows exponentially. 6429 # Worse, since 9x/ME are not pre-emptively multitasking, 6430 # you end up with a "frozen" computer, even though with patience 6431 # the test eventually succeeds (with a max line length of 256k). 6432 # Instead, let's just punt: use the minimum linelength reported by 6433 # all of the supported platforms: 8192 (on NT/2K/XP). 6434 lt_cv_sys_max_cmd_len=8192; 6435 ;; 6436 6437 amigaos*) 6438 # On AmigaOS with pdksh, this test takes hours, literally. 6439 # So we just punt and use a minimum line length of 8192. 6440 lt_cv_sys_max_cmd_len=8192; 6441 ;; 6442 6443 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6444 # This has been around since 386BSD, at least. Likely further. 6445 if test -x /sbin/sysctl; then 6446 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6447 elif test -x /usr/sbin/sysctl; then 6448 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6449 else 6450 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6451 fi 6452 # And add a safety zone 6453 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6454 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6455 ;; 6456 6457 interix*) 6458 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6459 lt_cv_sys_max_cmd_len=196608 6460 ;; 6461 6462 osf*) 6463 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6464 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6465 # nice to cause kernel panics so lets avoid the loop below. 6466 # First set a reasonable default. 6467 lt_cv_sys_max_cmd_len=16384 6468 # 6469 if test -x /sbin/sysconfig; then 6470 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6471 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6472 esac 6473 fi 6474 ;; 6475 sco3.2v5*) 6476 lt_cv_sys_max_cmd_len=102400 6477 ;; 6478 sysv5* | sco5v6* | sysv4.2uw2*) 6479 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6480 if test -n "$kargmax"; then 6481 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6482 else 6483 lt_cv_sys_max_cmd_len=32768 6484 fi 6485 ;; 6486 *) 6487 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6488 if test -n "$lt_cv_sys_max_cmd_len"; then 6489 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6490 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6491 else 6492 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6493 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6494 = "XX$teststring") >/dev/null 2>&1 && 6495 new_result=`expr "X$teststring" : ".*" 2>&1` && 6496 lt_cv_sys_max_cmd_len=$new_result && 6497 test $i != 17 # 1/2 MB should be enough 6498 do 6499 i=`expr $i + 1` 6500 teststring=$teststring$teststring 6501 done 6502 teststring= 6503 # Add a significant safety factor because C++ compilers can tack on massive 6504 # amounts of additional arguments before passing them to the linker. 6505 # It appears as though 1/2 is a usable value. 6506 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6507 fi 6508 ;; 6509 esac 6510 6511fi 6512 6513if test -n $lt_cv_sys_max_cmd_len ; then 6514 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6515$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6516else 6517 { $as_echo "$as_me:$LINENO: result: none" >&5 6518$as_echo "none" >&6; } 6519fi 6520 6521 6522 6523 6524 6525# Check for command to grab the raw symbol name followed by C symbol from nm. 6526{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6527$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6528if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6529 $as_echo_n "(cached) " >&6 6530else 6531 6532# These are sane defaults that work on at least a few old systems. 6533# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6534 6535# Character class describing NM global symbol codes. 6536symcode='[BCDEGRST]' 6537 6538# Regexp to match symbols that can be accessed directly from C. 6539sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6540 6541# Transform an extracted symbol line into a proper C declaration 6542lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6543 6544# Transform an extracted symbol line into symbol name and symbol address 6545lt_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'" 6546 6547# Define system-specific variables. 6548case $host_os in 6549aix*) 6550 symcode='[BCDT]' 6551 ;; 6552cygwin* | mingw* | pw32*) 6553 symcode='[ABCDGISTW]' 6554 ;; 6555hpux*) # Its linker distinguishes data from code symbols 6556 if test "$host_cpu" = ia64; then 6557 symcode='[ABCDEGRST]' 6558 fi 6559 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6560 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'" 6561 ;; 6562linux* | k*bsd*-gnu) 6563 if test "$host_cpu" = ia64; then 6564 symcode='[ABCDGIRSTW]' 6565 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6566 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'" 6567 fi 6568 ;; 6569irix* | nonstopux*) 6570 symcode='[BCDEGRST]' 6571 ;; 6572osf*) 6573 symcode='[BCDEGQRST]' 6574 ;; 6575solaris*) 6576 symcode='[BDRT]' 6577 ;; 6578sco3.2v5*) 6579 symcode='[DT]' 6580 ;; 6581sysv4.2uw2*) 6582 symcode='[DT]' 6583 ;; 6584sysv5* | sco5v6* | unixware* | OpenUNIX*) 6585 symcode='[ABDT]' 6586 ;; 6587sysv4) 6588 symcode='[DFNSTU]' 6589 ;; 6590esac 6591 6592# Handle CRLF in mingw tool chain 6593opt_cr= 6594case $build_os in 6595mingw*) 6596 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6597 ;; 6598esac 6599 6600# If we're using GNU nm, then use its standard symbol codes. 6601case `$NM -V 2>&1` in 6602*GNU* | *'with BFD'*) 6603 symcode='[ABCDGIRSTW]' ;; 6604esac 6605 6606# Try without a prefix undercore, then with it. 6607for ac_symprfx in "" "_"; do 6608 6609 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6610 symxfrm="\\1 $ac_symprfx\\2 \\2" 6611 6612 # Write the raw and C identifiers. 6613 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6614 6615 # Check to see that the pipe works correctly. 6616 pipe_works=no 6617 6618 rm -f conftest* 6619 cat > conftest.$ac_ext <<EOF 6620#ifdef __cplusplus 6621extern "C" { 6622#endif 6623char nm_test_var; 6624void nm_test_func(){} 6625#ifdef __cplusplus 6626} 6627#endif 6628int main(){nm_test_var='a';nm_test_func();return(0);} 6629EOF 6630 6631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6632 (eval $ac_compile) 2>&5 6633 ac_status=$? 6634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6635 (exit $ac_status); }; then 6636 # Now try to grab the symbols. 6637 nlist=conftest.nm 6638 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6639 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6640 ac_status=$? 6641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6642 (exit $ac_status); } && test -s "$nlist"; then 6643 # Try sorting and uniquifying the output. 6644 if sort "$nlist" | uniq > "$nlist"T; then 6645 mv -f "$nlist"T "$nlist" 6646 else 6647 rm -f "$nlist"T 6648 fi 6649 6650 # Make sure that we snagged all the symbols we need. 6651 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6652 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6653 cat <<EOF > conftest.$ac_ext 6654#ifdef __cplusplus 6655extern "C" { 6656#endif 6657 6658EOF 6659 # Now generate the symbol file. 6660 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6661 6662 cat <<EOF >> conftest.$ac_ext 6663#if defined (__STDC__) && __STDC__ 6664# define lt_ptr_t void * 6665#else 6666# define lt_ptr_t char * 6667# define const 6668#endif 6669 6670/* The mapping between symbol names and symbols. */ 6671const struct { 6672 const char *name; 6673 lt_ptr_t address; 6674} 6675lt_preloaded_symbols[] = 6676{ 6677EOF 6678 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6679 cat <<\EOF >> conftest.$ac_ext 6680 {0, (lt_ptr_t) 0} 6681}; 6682 6683#ifdef __cplusplus 6684} 6685#endif 6686EOF 6687 # Now try linking the two files. 6688 mv conftest.$ac_objext conftstm.$ac_objext 6689 lt_save_LIBS="$LIBS" 6690 lt_save_CFLAGS="$CFLAGS" 6691 LIBS="conftstm.$ac_objext" 6692 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6694 (eval $ac_link) 2>&5 6695 ac_status=$? 6696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6697 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6698 pipe_works=yes 6699 fi 6700 LIBS="$lt_save_LIBS" 6701 CFLAGS="$lt_save_CFLAGS" 6702 else 6703 echo "cannot find nm_test_func in $nlist" >&5 6704 fi 6705 else 6706 echo "cannot find nm_test_var in $nlist" >&5 6707 fi 6708 else 6709 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6710 fi 6711 else 6712 echo "$progname: failed program was:" >&5 6713 cat conftest.$ac_ext >&5 6714 fi 6715 rm -rf conftest* conftst* 6716 6717 # Do not use the global_symbol_pipe unless it works. 6718 if test "$pipe_works" = yes; then 6719 break 6720 else 6721 lt_cv_sys_global_symbol_pipe= 6722 fi 6723done 6724 6725fi 6726 6727if test -z "$lt_cv_sys_global_symbol_pipe"; then 6728 lt_cv_sys_global_symbol_to_cdecl= 6729fi 6730if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6731 { $as_echo "$as_me:$LINENO: result: failed" >&5 6732$as_echo "failed" >&6; } 6733else 6734 { $as_echo "$as_me:$LINENO: result: ok" >&5 6735$as_echo "ok" >&6; } 6736fi 6737 6738{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 6739$as_echo_n "checking for objdir... " >&6; } 6740if test "${lt_cv_objdir+set}" = set; then 6741 $as_echo_n "(cached) " >&6 6742else 6743 rm -f .libs 2>/dev/null 6744mkdir .libs 2>/dev/null 6745if test -d .libs; then 6746 lt_cv_objdir=.libs 6747else 6748 # MS-DOS does not allow filenames that begin with a dot. 6749 lt_cv_objdir=_libs 6750fi 6751rmdir .libs 2>/dev/null 6752fi 6753{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6754$as_echo "$lt_cv_objdir" >&6; } 6755objdir=$lt_cv_objdir 6756 6757 6758 6759 6760 6761case $host_os in 6762aix3*) 6763 # AIX sometimes has problems with the GCC collect2 program. For some 6764 # reason, if we set the COLLECT_NAMES environment variable, the problems 6765 # vanish in a puff of smoke. 6766 if test "X${COLLECT_NAMES+set}" != Xset; then 6767 COLLECT_NAMES= 6768 export COLLECT_NAMES 6769 fi 6770 ;; 6771esac 6772 6773# Sed substitution that helps us do robust quoting. It backslashifies 6774# metacharacters that are still active within double-quoted strings. 6775Xsed='sed -e 1s/^X//' 6776sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6777 6778# Same as above, but do not quote variable references. 6779double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6780 6781# Sed substitution to delay expansion of an escaped shell variable in a 6782# double_quote_subst'ed string. 6783delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6784 6785# Sed substitution to avoid accidental globbing in evaled expressions 6786no_glob_subst='s/\*/\\\*/g' 6787 6788# Constants: 6789rm="rm -f" 6790 6791# Global variables: 6792default_ofile=libtool 6793can_build_shared=yes 6794 6795# All known linkers require a `.a' archive for static linking (except MSVC, 6796# which needs '.lib'). 6797libext=a 6798ltmain="$ac_aux_dir/ltmain.sh" 6799ofile="$default_ofile" 6800with_gnu_ld="$lt_cv_prog_gnu_ld" 6801 6802if test -n "$ac_tool_prefix"; then 6803 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6804set dummy ${ac_tool_prefix}ar; ac_word=$2 6805{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6806$as_echo_n "checking for $ac_word... " >&6; } 6807if test "${ac_cv_prog_AR+set}" = set; then 6808 $as_echo_n "(cached) " >&6 6809else 6810 if test -n "$AR"; then 6811 ac_cv_prog_AR="$AR" # Let the user override the test. 6812else 6813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6814for as_dir in $PATH 6815do 6816 IFS=$as_save_IFS 6817 test -z "$as_dir" && as_dir=. 6818 for ac_exec_ext in '' $ac_executable_extensions; do 6819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6820 ac_cv_prog_AR="${ac_tool_prefix}ar" 6821 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6822 break 2 6823 fi 6824done 6825done 6826IFS=$as_save_IFS 6827 6828fi 6829fi 6830AR=$ac_cv_prog_AR 6831if test -n "$AR"; then 6832 { $as_echo "$as_me:$LINENO: result: $AR" >&5 6833$as_echo "$AR" >&6; } 6834else 6835 { $as_echo "$as_me:$LINENO: result: no" >&5 6836$as_echo "no" >&6; } 6837fi 6838 6839 6840fi 6841if test -z "$ac_cv_prog_AR"; then 6842 ac_ct_AR=$AR 6843 # Extract the first word of "ar", so it can be a program name with args. 6844set dummy ar; ac_word=$2 6845{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6846$as_echo_n "checking for $ac_word... " >&6; } 6847if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6848 $as_echo_n "(cached) " >&6 6849else 6850 if test -n "$ac_ct_AR"; then 6851 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6852else 6853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6854for as_dir in $PATH 6855do 6856 IFS=$as_save_IFS 6857 test -z "$as_dir" && as_dir=. 6858 for ac_exec_ext in '' $ac_executable_extensions; do 6859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6860 ac_cv_prog_ac_ct_AR="ar" 6861 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6862 break 2 6863 fi 6864done 6865done 6866IFS=$as_save_IFS 6867 6868fi 6869fi 6870ac_ct_AR=$ac_cv_prog_ac_ct_AR 6871if test -n "$ac_ct_AR"; then 6872 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6873$as_echo "$ac_ct_AR" >&6; } 6874else 6875 { $as_echo "$as_me:$LINENO: result: no" >&5 6876$as_echo "no" >&6; } 6877fi 6878 6879 if test "x$ac_ct_AR" = x; then 6880 AR="false" 6881 else 6882 case $cross_compiling:$ac_tool_warned in 6883yes:) 6884{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6886ac_tool_warned=yes ;; 6887esac 6888 AR=$ac_ct_AR 6889 fi 6890else 6891 AR="$ac_cv_prog_AR" 6892fi 6893 6894if test -n "$ac_tool_prefix"; then 6895 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6896set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6897{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6898$as_echo_n "checking for $ac_word... " >&6; } 6899if test "${ac_cv_prog_RANLIB+set}" = set; then 6900 $as_echo_n "(cached) " >&6 6901else 6902 if test -n "$RANLIB"; then 6903 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6904else 6905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6906for as_dir in $PATH 6907do 6908 IFS=$as_save_IFS 6909 test -z "$as_dir" && as_dir=. 6910 for ac_exec_ext in '' $ac_executable_extensions; do 6911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6912 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6913 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6914 break 2 6915 fi 6916done 6917done 6918IFS=$as_save_IFS 6919 6920fi 6921fi 6922RANLIB=$ac_cv_prog_RANLIB 6923if test -n "$RANLIB"; then 6924 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6925$as_echo "$RANLIB" >&6; } 6926else 6927 { $as_echo "$as_me:$LINENO: result: no" >&5 6928$as_echo "no" >&6; } 6929fi 6930 6931 6932fi 6933if test -z "$ac_cv_prog_RANLIB"; then 6934 ac_ct_RANLIB=$RANLIB 6935 # Extract the first word of "ranlib", so it can be a program name with args. 6936set dummy ranlib; ac_word=$2 6937{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6938$as_echo_n "checking for $ac_word... " >&6; } 6939if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6940 $as_echo_n "(cached) " >&6 6941else 6942 if test -n "$ac_ct_RANLIB"; then 6943 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6944else 6945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6946for as_dir in $PATH 6947do 6948 IFS=$as_save_IFS 6949 test -z "$as_dir" && as_dir=. 6950 for ac_exec_ext in '' $ac_executable_extensions; do 6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6952 ac_cv_prog_ac_ct_RANLIB="ranlib" 6953 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6954 break 2 6955 fi 6956done 6957done 6958IFS=$as_save_IFS 6959 6960fi 6961fi 6962ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6963if test -n "$ac_ct_RANLIB"; then 6964 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6965$as_echo "$ac_ct_RANLIB" >&6; } 6966else 6967 { $as_echo "$as_me:$LINENO: result: no" >&5 6968$as_echo "no" >&6; } 6969fi 6970 6971 if test "x$ac_ct_RANLIB" = x; then 6972 RANLIB=":" 6973 else 6974 case $cross_compiling:$ac_tool_warned in 6975yes:) 6976{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6978ac_tool_warned=yes ;; 6979esac 6980 RANLIB=$ac_ct_RANLIB 6981 fi 6982else 6983 RANLIB="$ac_cv_prog_RANLIB" 6984fi 6985 6986if test -n "$ac_tool_prefix"; then 6987 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6988set dummy ${ac_tool_prefix}strip; ac_word=$2 6989{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6990$as_echo_n "checking for $ac_word... " >&6; } 6991if test "${ac_cv_prog_STRIP+set}" = set; then 6992 $as_echo_n "(cached) " >&6 6993else 6994 if test -n "$STRIP"; then 6995 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6996else 6997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6998for as_dir in $PATH 6999do 7000 IFS=$as_save_IFS 7001 test -z "$as_dir" && as_dir=. 7002 for ac_exec_ext in '' $ac_executable_extensions; do 7003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7004 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7005 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7006 break 2 7007 fi 7008done 7009done 7010IFS=$as_save_IFS 7011 7012fi 7013fi 7014STRIP=$ac_cv_prog_STRIP 7015if test -n "$STRIP"; then 7016 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 7017$as_echo "$STRIP" >&6; } 7018else 7019 { $as_echo "$as_me:$LINENO: result: no" >&5 7020$as_echo "no" >&6; } 7021fi 7022 7023 7024fi 7025if test -z "$ac_cv_prog_STRIP"; then 7026 ac_ct_STRIP=$STRIP 7027 # Extract the first word of "strip", so it can be a program name with args. 7028set dummy strip; ac_word=$2 7029{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7030$as_echo_n "checking for $ac_word... " >&6; } 7031if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7032 $as_echo_n "(cached) " >&6 7033else 7034 if test -n "$ac_ct_STRIP"; then 7035 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7036else 7037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7038for as_dir in $PATH 7039do 7040 IFS=$as_save_IFS 7041 test -z "$as_dir" && as_dir=. 7042 for ac_exec_ext in '' $ac_executable_extensions; do 7043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7044 ac_cv_prog_ac_ct_STRIP="strip" 7045 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7046 break 2 7047 fi 7048done 7049done 7050IFS=$as_save_IFS 7051 7052fi 7053fi 7054ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7055if test -n "$ac_ct_STRIP"; then 7056 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7057$as_echo "$ac_ct_STRIP" >&6; } 7058else 7059 { $as_echo "$as_me:$LINENO: result: no" >&5 7060$as_echo "no" >&6; } 7061fi 7062 7063 if test "x$ac_ct_STRIP" = x; then 7064 STRIP=":" 7065 else 7066 case $cross_compiling:$ac_tool_warned in 7067yes:) 7068{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7070ac_tool_warned=yes ;; 7071esac 7072 STRIP=$ac_ct_STRIP 7073 fi 7074else 7075 STRIP="$ac_cv_prog_STRIP" 7076fi 7077 7078 7079old_CC="$CC" 7080old_CFLAGS="$CFLAGS" 7081 7082# Set sane defaults for various variables 7083test -z "$AR" && AR=ar 7084test -z "$AR_FLAGS" && AR_FLAGS=cru 7085test -z "$AS" && AS=as 7086test -z "$CC" && CC=cc 7087test -z "$LTCC" && LTCC=$CC 7088test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7089test -z "$DLLTOOL" && DLLTOOL=dlltool 7090test -z "$LD" && LD=ld 7091test -z "$LN_S" && LN_S="ln -s" 7092test -z "$MAGIC_CMD" && MAGIC_CMD=file 7093test -z "$NM" && NM=nm 7094test -z "$SED" && SED=sed 7095test -z "$OBJDUMP" && OBJDUMP=objdump 7096test -z "$RANLIB" && RANLIB=: 7097test -z "$STRIP" && STRIP=: 7098test -z "$ac_objext" && ac_objext=o 7099 7100# Determine commands to create old-style static archives. 7101old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7102old_postinstall_cmds='chmod 644 $oldlib' 7103old_postuninstall_cmds= 7104 7105if test -n "$RANLIB"; then 7106 case $host_os in 7107 openbsd*) 7108 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7109 ;; 7110 *) 7111 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7112 ;; 7113 esac 7114 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7115fi 7116 7117for cc_temp in $compiler""; do 7118 case $cc_temp in 7119 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7120 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7121 \-*) ;; 7122 *) break;; 7123 esac 7124done 7125cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7126 7127 7128# Only perform the check for file, if the check method requires it 7129case $deplibs_check_method in 7130file_magic*) 7131 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7132 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7133$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7134if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7135 $as_echo_n "(cached) " >&6 7136else 7137 case $MAGIC_CMD in 7138[\\/*] | ?:[\\/]*) 7139 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7140 ;; 7141*) 7142 lt_save_MAGIC_CMD="$MAGIC_CMD" 7143 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7144 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7145 for ac_dir in $ac_dummy; do 7146 IFS="$lt_save_ifs" 7147 test -z "$ac_dir" && ac_dir=. 7148 if test -f $ac_dir/${ac_tool_prefix}file; then 7149 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7150 if test -n "$file_magic_test_file"; then 7151 case $deplibs_check_method in 7152 "file_magic "*) 7153 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7154 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7155 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7156 $EGREP "$file_magic_regex" > /dev/null; then 7157 : 7158 else 7159 cat <<EOF 1>&2 7160 7161*** Warning: the command libtool uses to detect shared libraries, 7162*** $file_magic_cmd, produces output that libtool cannot recognize. 7163*** The result is that libtool may fail to recognize shared libraries 7164*** as such. This will affect the creation of libtool libraries that 7165*** depend on shared libraries, but programs linked with such libtool 7166*** libraries will work regardless of this problem. Nevertheless, you 7167*** may want to report the problem to your system manager and/or to 7168*** bug-libtool@gnu.org 7169 7170EOF 7171 fi ;; 7172 esac 7173 fi 7174 break 7175 fi 7176 done 7177 IFS="$lt_save_ifs" 7178 MAGIC_CMD="$lt_save_MAGIC_CMD" 7179 ;; 7180esac 7181fi 7182 7183MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7184if test -n "$MAGIC_CMD"; then 7185 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7186$as_echo "$MAGIC_CMD" >&6; } 7187else 7188 { $as_echo "$as_me:$LINENO: result: no" >&5 7189$as_echo "no" >&6; } 7190fi 7191 7192if test -z "$lt_cv_path_MAGIC_CMD"; then 7193 if test -n "$ac_tool_prefix"; then 7194 { $as_echo "$as_me:$LINENO: checking for file" >&5 7195$as_echo_n "checking for file... " >&6; } 7196if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7197 $as_echo_n "(cached) " >&6 7198else 7199 case $MAGIC_CMD in 7200[\\/*] | ?:[\\/]*) 7201 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7202 ;; 7203*) 7204 lt_save_MAGIC_CMD="$MAGIC_CMD" 7205 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7206 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7207 for ac_dir in $ac_dummy; do 7208 IFS="$lt_save_ifs" 7209 test -z "$ac_dir" && ac_dir=. 7210 if test -f $ac_dir/file; then 7211 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7212 if test -n "$file_magic_test_file"; then 7213 case $deplibs_check_method in 7214 "file_magic "*) 7215 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7217 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7218 $EGREP "$file_magic_regex" > /dev/null; then 7219 : 7220 else 7221 cat <<EOF 1>&2 7222 7223*** Warning: the command libtool uses to detect shared libraries, 7224*** $file_magic_cmd, produces output that libtool cannot recognize. 7225*** The result is that libtool may fail to recognize shared libraries 7226*** as such. This will affect the creation of libtool libraries that 7227*** depend on shared libraries, but programs linked with such libtool 7228*** libraries will work regardless of this problem. Nevertheless, you 7229*** may want to report the problem to your system manager and/or to 7230*** bug-libtool@gnu.org 7231 7232EOF 7233 fi ;; 7234 esac 7235 fi 7236 break 7237 fi 7238 done 7239 IFS="$lt_save_ifs" 7240 MAGIC_CMD="$lt_save_MAGIC_CMD" 7241 ;; 7242esac 7243fi 7244 7245MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7246if test -n "$MAGIC_CMD"; then 7247 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7248$as_echo "$MAGIC_CMD" >&6; } 7249else 7250 { $as_echo "$as_me:$LINENO: result: no" >&5 7251$as_echo "no" >&6; } 7252fi 7253 7254 else 7255 MAGIC_CMD=: 7256 fi 7257fi 7258 7259 fi 7260 ;; 7261esac 7262 7263 7264 case $host_os in 7265 rhapsody* | darwin*) 7266 if test -n "$ac_tool_prefix"; then 7267 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7268set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7269{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7270$as_echo_n "checking for $ac_word... " >&6; } 7271if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7272 $as_echo_n "(cached) " >&6 7273else 7274 if test -n "$DSYMUTIL"; then 7275 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7276else 7277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7278for as_dir in $PATH 7279do 7280 IFS=$as_save_IFS 7281 test -z "$as_dir" && as_dir=. 7282 for ac_exec_ext in '' $ac_executable_extensions; do 7283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7284 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7285 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7286 break 2 7287 fi 7288done 7289done 7290IFS=$as_save_IFS 7291 7292fi 7293fi 7294DSYMUTIL=$ac_cv_prog_DSYMUTIL 7295if test -n "$DSYMUTIL"; then 7296 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7297$as_echo "$DSYMUTIL" >&6; } 7298else 7299 { $as_echo "$as_me:$LINENO: result: no" >&5 7300$as_echo "no" >&6; } 7301fi 7302 7303 7304fi 7305if test -z "$ac_cv_prog_DSYMUTIL"; then 7306 ac_ct_DSYMUTIL=$DSYMUTIL 7307 # Extract the first word of "dsymutil", so it can be a program name with args. 7308set dummy dsymutil; ac_word=$2 7309{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7310$as_echo_n "checking for $ac_word... " >&6; } 7311if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7312 $as_echo_n "(cached) " >&6 7313else 7314 if test -n "$ac_ct_DSYMUTIL"; then 7315 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7316else 7317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7318for as_dir in $PATH 7319do 7320 IFS=$as_save_IFS 7321 test -z "$as_dir" && as_dir=. 7322 for ac_exec_ext in '' $ac_executable_extensions; do 7323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7324 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7325 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7326 break 2 7327 fi 7328done 7329done 7330IFS=$as_save_IFS 7331 7332fi 7333fi 7334ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7335if test -n "$ac_ct_DSYMUTIL"; then 7336 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7337$as_echo "$ac_ct_DSYMUTIL" >&6; } 7338else 7339 { $as_echo "$as_me:$LINENO: result: no" >&5 7340$as_echo "no" >&6; } 7341fi 7342 7343 if test "x$ac_ct_DSYMUTIL" = x; then 7344 DSYMUTIL=":" 7345 else 7346 case $cross_compiling:$ac_tool_warned in 7347yes:) 7348{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7350ac_tool_warned=yes ;; 7351esac 7352 DSYMUTIL=$ac_ct_DSYMUTIL 7353 fi 7354else 7355 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7356fi 7357 7358 if test -n "$ac_tool_prefix"; then 7359 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7360set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7361{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7362$as_echo_n "checking for $ac_word... " >&6; } 7363if test "${ac_cv_prog_NMEDIT+set}" = set; then 7364 $as_echo_n "(cached) " >&6 7365else 7366 if test -n "$NMEDIT"; then 7367 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7368else 7369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7370for as_dir in $PATH 7371do 7372 IFS=$as_save_IFS 7373 test -z "$as_dir" && as_dir=. 7374 for ac_exec_ext in '' $ac_executable_extensions; do 7375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7376 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7377 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7378 break 2 7379 fi 7380done 7381done 7382IFS=$as_save_IFS 7383 7384fi 7385fi 7386NMEDIT=$ac_cv_prog_NMEDIT 7387if test -n "$NMEDIT"; then 7388 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 7389$as_echo "$NMEDIT" >&6; } 7390else 7391 { $as_echo "$as_me:$LINENO: result: no" >&5 7392$as_echo "no" >&6; } 7393fi 7394 7395 7396fi 7397if test -z "$ac_cv_prog_NMEDIT"; then 7398 ac_ct_NMEDIT=$NMEDIT 7399 # Extract the first word of "nmedit", so it can be a program name with args. 7400set dummy nmedit; ac_word=$2 7401{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7402$as_echo_n "checking for $ac_word... " >&6; } 7403if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7404 $as_echo_n "(cached) " >&6 7405else 7406 if test -n "$ac_ct_NMEDIT"; then 7407 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7408else 7409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7410for as_dir in $PATH 7411do 7412 IFS=$as_save_IFS 7413 test -z "$as_dir" && as_dir=. 7414 for ac_exec_ext in '' $ac_executable_extensions; do 7415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7416 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7417 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7418 break 2 7419 fi 7420done 7421done 7422IFS=$as_save_IFS 7423 7424fi 7425fi 7426ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7427if test -n "$ac_ct_NMEDIT"; then 7428 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7429$as_echo "$ac_ct_NMEDIT" >&6; } 7430else 7431 { $as_echo "$as_me:$LINENO: result: no" >&5 7432$as_echo "no" >&6; } 7433fi 7434 7435 if test "x$ac_ct_NMEDIT" = x; then 7436 NMEDIT=":" 7437 else 7438 case $cross_compiling:$ac_tool_warned in 7439yes:) 7440{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7442ac_tool_warned=yes ;; 7443esac 7444 NMEDIT=$ac_ct_NMEDIT 7445 fi 7446else 7447 NMEDIT="$ac_cv_prog_NMEDIT" 7448fi 7449 7450 7451 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7452$as_echo_n "checking for -single_module linker flag... " >&6; } 7453if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7454 $as_echo_n "(cached) " >&6 7455else 7456 lt_cv_apple_cc_single_mod=no 7457 if test -z "${LT_MULTI_MODULE}"; then 7458 # By default we will add the -single_module flag. You can override 7459 # by either setting the environment variable LT_MULTI_MODULE 7460 # non-empty at configure time, or by adding -multi_module to the 7461 # link flags. 7462 echo "int foo(void){return 1;}" > conftest.c 7463 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7464 -dynamiclib ${wl}-single_module conftest.c 7465 if test -f libconftest.dylib; then 7466 lt_cv_apple_cc_single_mod=yes 7467 rm -rf libconftest.dylib* 7468 fi 7469 rm conftest.c 7470 fi 7471fi 7472{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7473$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7474 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7475$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7476if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7477 $as_echo_n "(cached) " >&6 7478else 7479 lt_cv_ld_exported_symbols_list=no 7480 save_LDFLAGS=$LDFLAGS 7481 echo "_main" > conftest.sym 7482 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7483 cat >conftest.$ac_ext <<_ACEOF 7484/* confdefs.h. */ 7485_ACEOF 7486cat confdefs.h >>conftest.$ac_ext 7487cat >>conftest.$ac_ext <<_ACEOF 7488/* end confdefs.h. */ 7489 7490int 7491main () 7492{ 7493 7494 ; 7495 return 0; 7496} 7497_ACEOF 7498rm -f conftest.$ac_objext conftest$ac_exeext 7499if { (ac_try="$ac_link" 7500case "(($ac_try" in 7501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7502 *) ac_try_echo=$ac_try;; 7503esac 7504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7505$as_echo "$ac_try_echo") >&5 7506 (eval "$ac_link") 2>conftest.er1 7507 ac_status=$? 7508 grep -v '^ *+' conftest.er1 >conftest.err 7509 rm -f conftest.er1 7510 cat conftest.err >&5 7511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7512 (exit $ac_status); } && { 7513 test -z "$ac_c_werror_flag" || 7514 test ! -s conftest.err 7515 } && test -s conftest$ac_exeext && { 7516 test "$cross_compiling" = yes || 7517 $as_test_x conftest$ac_exeext 7518 }; then 7519 lt_cv_ld_exported_symbols_list=yes 7520else 7521 $as_echo "$as_me: failed program was:" >&5 7522sed 's/^/| /' conftest.$ac_ext >&5 7523 7524 lt_cv_ld_exported_symbols_list=no 7525fi 7526 7527rm -rf conftest.dSYM 7528rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7529 conftest$ac_exeext conftest.$ac_ext 7530 LDFLAGS="$save_LDFLAGS" 7531 7532fi 7533{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7534$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7535 case $host_os in 7536 rhapsody* | darwin1.[0123]) 7537 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7538 darwin1.*) 7539 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7540 darwin*) 7541 # if running on 10.5 or later, the deployment target defaults 7542 # to the OS version, if on x86, and 10.4, the deployment 7543 # target defaults to 10.4. Don't you love it? 7544 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7545 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7546 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7547 10.[012]*) 7548 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7549 10.*) 7550 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7551 esac 7552 ;; 7553 esac 7554 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7555 _lt_dar_single_mod='$single_module' 7556 fi 7557 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7558 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7559 else 7560 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 7561 fi 7562 if test "$DSYMUTIL" != ":"; then 7563 _lt_dsymutil="~$DSYMUTIL \$lib || :" 7564 else 7565 _lt_dsymutil= 7566 fi 7567 ;; 7568 esac 7569 7570 7571enable_dlopen=no 7572enable_win32_dll=no 7573 7574# Check whether --enable-libtool-lock was given. 7575if test "${enable_libtool_lock+set}" = set; then 7576 enableval=$enable_libtool_lock; 7577fi 7578 7579test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7580 7581 7582# Check whether --with-pic was given. 7583if test "${with_pic+set}" = set; then 7584 withval=$with_pic; pic_mode="$withval" 7585else 7586 pic_mode=default 7587fi 7588 7589test -z "$pic_mode" && pic_mode=default 7590 7591# Use C for the default configuration in the libtool script 7592tagname= 7593lt_save_CC="$CC" 7594ac_ext=c 7595ac_cpp='$CPP $CPPFLAGS' 7596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7598ac_compiler_gnu=$ac_cv_c_compiler_gnu 7599 7600 7601# Source file extension for C test sources. 7602ac_ext=c 7603 7604# Object file extension for compiled C test sources. 7605objext=o 7606objext=$objext 7607 7608# Code to be used in simple compile tests 7609lt_simple_compile_test_code="int some_variable = 0;" 7610 7611# Code to be used in simple link tests 7612lt_simple_link_test_code='int main(){return(0);}' 7613 7614 7615# If no C compiler was specified, use CC. 7616LTCC=${LTCC-"$CC"} 7617 7618# If no C compiler flags were specified, use CFLAGS. 7619LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7620 7621# Allow CC to be a program name with arguments. 7622compiler=$CC 7623 7624 7625# save warnings/boilerplate of simple test code 7626ac_outfile=conftest.$ac_objext 7627echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7628eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7629_lt_compiler_boilerplate=`cat conftest.err` 7630$rm conftest* 7631 7632ac_outfile=conftest.$ac_objext 7633echo "$lt_simple_link_test_code" >conftest.$ac_ext 7634eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7635_lt_linker_boilerplate=`cat conftest.err` 7636$rm -r conftest* 7637 7638 7639 7640lt_prog_compiler_no_builtin_flag= 7641 7642if test "$GCC" = yes; then 7643 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7644 7645 7646{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7647$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7648if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7649 $as_echo_n "(cached) " >&6 7650else 7651 lt_cv_prog_compiler_rtti_exceptions=no 7652 ac_outfile=conftest.$ac_objext 7653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7654 lt_compiler_flag="-fno-rtti -fno-exceptions" 7655 # Insert the option either (1) after the last *FLAGS variable, or 7656 # (2) before a word containing "conftest.", or (3) at the end. 7657 # Note that $ac_compile itself does not contain backslashes and begins 7658 # with a dollar sign (not a hyphen), so the echo should work correctly. 7659 # The option is referenced via a variable to avoid confusing sed. 7660 lt_compile=`echo "$ac_compile" | $SED \ 7661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7663 -e 's:$: $lt_compiler_flag:'` 7664 (eval echo "\"\$as_me:7664: $lt_compile\"" >&5) 7665 (eval "$lt_compile" 2>conftest.err) 7666 ac_status=$? 7667 cat conftest.err >&5 7668 echo "$as_me:7668: \$? = $ac_status" >&5 7669 if (exit $ac_status) && test -s "$ac_outfile"; then 7670 # The compiler can only warn and ignore the option if not recognized 7671 # So say no if there are warnings other than the usual output. 7672 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7674 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7675 lt_cv_prog_compiler_rtti_exceptions=yes 7676 fi 7677 fi 7678 $rm conftest* 7679 7680fi 7681{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7682$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7683 7684if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7685 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7686else 7687 : 7688fi 7689 7690fi 7691 7692lt_prog_compiler_wl= 7693lt_prog_compiler_pic= 7694lt_prog_compiler_static= 7695 7696{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7697$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7698 7699 if test "$GCC" = yes; then 7700 lt_prog_compiler_wl='-Wl,' 7701 lt_prog_compiler_static='-static' 7702 7703 case $host_os in 7704 aix*) 7705 # All AIX code is PIC. 7706 if test "$host_cpu" = ia64; then 7707 # AIX 5 now supports IA64 processor 7708 lt_prog_compiler_static='-Bstatic' 7709 fi 7710 ;; 7711 7712 amigaos*) 7713 # FIXME: we need at least 68020 code to build shared libraries, but 7714 # adding the `-m68020' flag to GCC prevents building anything better, 7715 # like `-m68040'. 7716 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7717 ;; 7718 7719 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7720 # PIC is the default for these OSes. 7721 ;; 7722 7723 mingw* | cygwin* | pw32* | os2*) 7724 # This hack is so that the source file can tell whether it is being 7725 # built for inclusion in a dll (and should export symbols for example). 7726 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7727 # (--disable-auto-import) libraries 7728 lt_prog_compiler_pic='-DDLL_EXPORT' 7729 ;; 7730 7731 darwin* | rhapsody*) 7732 # PIC is the default on this platform 7733 # Common symbols not allowed in MH_DYLIB files 7734 lt_prog_compiler_pic='-fno-common' 7735 ;; 7736 7737 interix[3-9]*) 7738 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7739 # Instead, we relocate shared libraries at runtime. 7740 ;; 7741 7742 msdosdjgpp*) 7743 # Just because we use GCC doesn't mean we suddenly get shared libraries 7744 # on systems that don't support them. 7745 lt_prog_compiler_can_build_shared=no 7746 enable_shared=no 7747 ;; 7748 7749 sysv4*MP*) 7750 if test -d /usr/nec; then 7751 lt_prog_compiler_pic=-Kconform_pic 7752 fi 7753 ;; 7754 7755 hpux*) 7756 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7757 # not for PA HP-UX. 7758 case $host_cpu in 7759 hppa*64*|ia64*) 7760 # +Z the default 7761 ;; 7762 *) 7763 lt_prog_compiler_pic='-fPIC' 7764 ;; 7765 esac 7766 ;; 7767 7768 *) 7769 lt_prog_compiler_pic='-fPIC' 7770 ;; 7771 esac 7772 else 7773 # PORTME Check for flag to pass linker flags through the system compiler. 7774 case $host_os in 7775 aix*) 7776 lt_prog_compiler_wl='-Wl,' 7777 if test "$host_cpu" = ia64; then 7778 # AIX 5 now supports IA64 processor 7779 lt_prog_compiler_static='-Bstatic' 7780 else 7781 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7782 fi 7783 ;; 7784 darwin*) 7785 # PIC is the default on this platform 7786 # Common symbols not allowed in MH_DYLIB files 7787 case $cc_basename in 7788 xlc*) 7789 lt_prog_compiler_pic='-qnocommon' 7790 lt_prog_compiler_wl='-Wl,' 7791 ;; 7792 esac 7793 ;; 7794 7795 mingw* | cygwin* | pw32* | os2*) 7796 # This hack is so that the source file can tell whether it is being 7797 # built for inclusion in a dll (and should export symbols for example). 7798 lt_prog_compiler_pic='-DDLL_EXPORT' 7799 ;; 7800 7801 hpux9* | hpux10* | hpux11*) 7802 lt_prog_compiler_wl='-Wl,' 7803 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7804 # not for PA HP-UX. 7805 case $host_cpu in 7806 hppa*64*|ia64*) 7807 # +Z the default 7808 ;; 7809 *) 7810 lt_prog_compiler_pic='+Z' 7811 ;; 7812 esac 7813 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7814 lt_prog_compiler_static='${wl}-a ${wl}archive' 7815 ;; 7816 7817 irix5* | irix6* | nonstopux*) 7818 lt_prog_compiler_wl='-Wl,' 7819 # PIC (with -KPIC) is the default. 7820 lt_prog_compiler_static='-non_shared' 7821 ;; 7822 7823 newsos6) 7824 lt_prog_compiler_pic='-KPIC' 7825 lt_prog_compiler_static='-Bstatic' 7826 ;; 7827 7828 linux* | k*bsd*-gnu) 7829 case $cc_basename in 7830 icc* | ecc*) 7831 lt_prog_compiler_wl='-Wl,' 7832 lt_prog_compiler_pic='-KPIC' 7833 lt_prog_compiler_static='-static' 7834 ;; 7835 pgcc* | pgf77* | pgf90* | pgf95*) 7836 # Portland Group compilers (*not* the Pentium gcc compiler, 7837 # which looks to be a dead project) 7838 lt_prog_compiler_wl='-Wl,' 7839 lt_prog_compiler_pic='-fpic' 7840 lt_prog_compiler_static='-Bstatic' 7841 ;; 7842 ccc*) 7843 lt_prog_compiler_wl='-Wl,' 7844 # All Alpha code is PIC. 7845 lt_prog_compiler_static='-non_shared' 7846 ;; 7847 *) 7848 case `$CC -V 2>&1 | sed 5q` in 7849 *Sun\ C*) 7850 # Sun C 5.9 7851 lt_prog_compiler_pic='-KPIC' 7852 lt_prog_compiler_static='-Bstatic' 7853 lt_prog_compiler_wl='-Wl,' 7854 ;; 7855 *Sun\ F*) 7856 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7857 lt_prog_compiler_pic='-KPIC' 7858 lt_prog_compiler_static='-Bstatic' 7859 lt_prog_compiler_wl='' 7860 ;; 7861 esac 7862 ;; 7863 esac 7864 ;; 7865 7866 osf3* | osf4* | osf5*) 7867 lt_prog_compiler_wl='-Wl,' 7868 # All OSF/1 code is PIC. 7869 lt_prog_compiler_static='-non_shared' 7870 ;; 7871 7872 rdos*) 7873 lt_prog_compiler_static='-non_shared' 7874 ;; 7875 7876 solaris*) 7877 lt_prog_compiler_pic='-KPIC' 7878 lt_prog_compiler_static='-Bstatic' 7879 case $cc_basename in 7880 f77* | f90* | f95*) 7881 lt_prog_compiler_wl='-Qoption ld ';; 7882 *) 7883 lt_prog_compiler_wl='-Wl,';; 7884 esac 7885 ;; 7886 7887 sunos4*) 7888 lt_prog_compiler_wl='-Qoption ld ' 7889 lt_prog_compiler_pic='-PIC' 7890 lt_prog_compiler_static='-Bstatic' 7891 ;; 7892 7893 sysv4 | sysv4.2uw2* | sysv4.3*) 7894 lt_prog_compiler_wl='-Wl,' 7895 lt_prog_compiler_pic='-KPIC' 7896 lt_prog_compiler_static='-Bstatic' 7897 ;; 7898 7899 sysv4*MP*) 7900 if test -d /usr/nec ;then 7901 lt_prog_compiler_pic='-Kconform_pic' 7902 lt_prog_compiler_static='-Bstatic' 7903 fi 7904 ;; 7905 7906 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7907 lt_prog_compiler_wl='-Wl,' 7908 lt_prog_compiler_pic='-KPIC' 7909 lt_prog_compiler_static='-Bstatic' 7910 ;; 7911 7912 unicos*) 7913 lt_prog_compiler_wl='-Wl,' 7914 lt_prog_compiler_can_build_shared=no 7915 ;; 7916 7917 uts4*) 7918 lt_prog_compiler_pic='-pic' 7919 lt_prog_compiler_static='-Bstatic' 7920 ;; 7921 7922 *) 7923 lt_prog_compiler_can_build_shared=no 7924 ;; 7925 esac 7926 fi 7927 7928{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7929$as_echo "$lt_prog_compiler_pic" >&6; } 7930 7931# 7932# Check to make sure the PIC flag actually works. 7933# 7934if test -n "$lt_prog_compiler_pic"; then 7935 7936{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7937$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7938if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7939 $as_echo_n "(cached) " >&6 7940else 7941 lt_cv_prog_compiler_pic_works=no 7942 ac_outfile=conftest.$ac_objext 7943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7944 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7945 # Insert the option either (1) after the last *FLAGS variable, or 7946 # (2) before a word containing "conftest.", or (3) at the end. 7947 # Note that $ac_compile itself does not contain backslashes and begins 7948 # with a dollar sign (not a hyphen), so the echo should work correctly. 7949 # The option is referenced via a variable to avoid confusing sed. 7950 lt_compile=`echo "$ac_compile" | $SED \ 7951 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7953 -e 's:$: $lt_compiler_flag:'` 7954 (eval echo "\"\$as_me:7954: $lt_compile\"" >&5) 7955 (eval "$lt_compile" 2>conftest.err) 7956 ac_status=$? 7957 cat conftest.err >&5 7958 echo "$as_me:7958: \$? = $ac_status" >&5 7959 if (exit $ac_status) && test -s "$ac_outfile"; then 7960 # The compiler can only warn and ignore the option if not recognized 7961 # So say no if there are warnings other than the usual output. 7962 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7963 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7964 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7965 lt_cv_prog_compiler_pic_works=yes 7966 fi 7967 fi 7968 $rm conftest* 7969 7970fi 7971{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7972$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7973 7974if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7975 case $lt_prog_compiler_pic in 7976 "" | " "*) ;; 7977 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7978 esac 7979else 7980 lt_prog_compiler_pic= 7981 lt_prog_compiler_can_build_shared=no 7982fi 7983 7984fi 7985case $host_os in 7986 # For platforms which do not support PIC, -DPIC is meaningless: 7987 *djgpp*) 7988 lt_prog_compiler_pic= 7989 ;; 7990 *) 7991 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7992 ;; 7993esac 7994 7995# 7996# Check to make sure the static flag actually works. 7997# 7998wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7999{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8000$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8001if test "${lt_cv_prog_compiler_static_works+set}" = set; then 8002 $as_echo_n "(cached) " >&6 8003else 8004 lt_cv_prog_compiler_static_works=no 8005 save_LDFLAGS="$LDFLAGS" 8006 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8007 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8008 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8009 # The linker can only warn and ignore the option if not recognized 8010 # So say no if there are warnings 8011 if test -s conftest.err; then 8012 # Append any errors to the config.log. 8013 cat conftest.err 1>&5 8014 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8015 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8016 if diff conftest.exp conftest.er2 >/dev/null; then 8017 lt_cv_prog_compiler_static_works=yes 8018 fi 8019 else 8020 lt_cv_prog_compiler_static_works=yes 8021 fi 8022 fi 8023 $rm -r conftest* 8024 LDFLAGS="$save_LDFLAGS" 8025 8026fi 8027{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 8028$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8029 8030if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8031 : 8032else 8033 lt_prog_compiler_static= 8034fi 8035 8036 8037{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8038$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8039if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8040 $as_echo_n "(cached) " >&6 8041else 8042 lt_cv_prog_compiler_c_o=no 8043 $rm -r conftest 2>/dev/null 8044 mkdir conftest 8045 cd conftest 8046 mkdir out 8047 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8048 8049 lt_compiler_flag="-o out/conftest2.$ac_objext" 8050 # Insert the option either (1) after the last *FLAGS variable, or 8051 # (2) before a word containing "conftest.", or (3) at the end. 8052 # Note that $ac_compile itself does not contain backslashes and begins 8053 # with a dollar sign (not a hyphen), so the echo should work correctly. 8054 lt_compile=`echo "$ac_compile" | $SED \ 8055 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8056 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8057 -e 's:$: $lt_compiler_flag:'` 8058 (eval echo "\"\$as_me:8058: $lt_compile\"" >&5) 8059 (eval "$lt_compile" 2>out/conftest.err) 8060 ac_status=$? 8061 cat out/conftest.err >&5 8062 echo "$as_me:8062: \$? = $ac_status" >&5 8063 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8064 then 8065 # The compiler can only warn and ignore the option if not recognized 8066 # So say no if there are warnings 8067 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8068 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8069 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8070 lt_cv_prog_compiler_c_o=yes 8071 fi 8072 fi 8073 chmod u+w . 2>&5 8074 $rm conftest* 8075 # SGI C++ compiler will create directory out/ii_files/ for 8076 # template instantiation 8077 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8078 $rm out/* && rmdir out 8079 cd .. 8080 rmdir conftest 8081 $rm conftest* 8082 8083fi 8084{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8085$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8086 8087 8088hard_links="nottested" 8089if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8090 # do not overwrite the value of need_locks provided by the user 8091 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8092$as_echo_n "checking if we can lock with hard links... " >&6; } 8093 hard_links=yes 8094 $rm conftest* 8095 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8096 touch conftest.a 8097 ln conftest.a conftest.b 2>&5 || hard_links=no 8098 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8099 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8100$as_echo "$hard_links" >&6; } 8101 if test "$hard_links" = no; then 8102 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8103$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8104 need_locks=warn 8105 fi 8106else 8107 need_locks=no 8108fi 8109 8110{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8111$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8112 8113 runpath_var= 8114 allow_undefined_flag= 8115 enable_shared_with_static_runtimes=no 8116 archive_cmds= 8117 archive_expsym_cmds= 8118 old_archive_From_new_cmds= 8119 old_archive_from_expsyms_cmds= 8120 export_dynamic_flag_spec= 8121 whole_archive_flag_spec= 8122 thread_safe_flag_spec= 8123 hardcode_libdir_flag_spec= 8124 hardcode_libdir_flag_spec_ld= 8125 hardcode_libdir_separator= 8126 hardcode_direct=no 8127 hardcode_minus_L=no 8128 hardcode_shlibpath_var=unsupported 8129 link_all_deplibs=unknown 8130 hardcode_automatic=no 8131 module_cmds= 8132 module_expsym_cmds= 8133 always_export_symbols=no 8134 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8135 # include_expsyms should be a list of space-separated symbols to be *always* 8136 # included in the symbol list 8137 include_expsyms= 8138 # exclude_expsyms can be an extended regexp of symbols to exclude 8139 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8140 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8141 # as well as any symbol that contains `d'. 8142 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8143 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8144 # platforms (ab)use it in PIC code, but their linkers get confused if 8145 # the symbol is explicitly referenced. Since portable code cannot 8146 # rely on this symbol name, it's probably fine to never include it in 8147 # preloaded symbol tables. 8148 # Exclude shared library initialization/finalization symbols. 8149 extract_expsyms_cmds= 8150 # Just being paranoid about ensuring that cc_basename is set. 8151 for cc_temp in $compiler""; do 8152 case $cc_temp in 8153 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8154 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8155 \-*) ;; 8156 *) break;; 8157 esac 8158done 8159cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8160 8161 case $host_os in 8162 cygwin* | mingw* | pw32*) 8163 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8164 # When not using gcc, we currently assume that we are using 8165 # Microsoft Visual C++. 8166 if test "$GCC" != yes; then 8167 with_gnu_ld=no 8168 fi 8169 ;; 8170 interix*) 8171 # we just hope/assume this is gcc and not c89 (= MSVC++) 8172 with_gnu_ld=yes 8173 ;; 8174 openbsd*) 8175 with_gnu_ld=no 8176 ;; 8177 esac 8178 8179 ld_shlibs=yes 8180 if test "$with_gnu_ld" = yes; then 8181 # If archive_cmds runs LD, not CC, wlarc should be empty 8182 wlarc='${wl}' 8183 8184 # Set some defaults for GNU ld with shared library support. These 8185 # are reset later if shared libraries are not supported. Putting them 8186 # here allows them to be overridden if necessary. 8187 runpath_var=LD_RUN_PATH 8188 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8189 export_dynamic_flag_spec='${wl}--export-dynamic' 8190 # ancient GNU ld didn't support --whole-archive et. al. 8191 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8192 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8193 else 8194 whole_archive_flag_spec= 8195 fi 8196 supports_anon_versioning=no 8197 case `$LD -v 2>/dev/null` in 8198 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8199 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8200 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8201 *\ 2.11.*) ;; # other 2.11 versions 8202 *) supports_anon_versioning=yes ;; 8203 esac 8204 8205 # See if GNU ld supports shared libraries. 8206 case $host_os in 8207 aix[3-9]*) 8208 # On AIX/PPC, the GNU linker is very broken 8209 if test "$host_cpu" != ia64; then 8210 ld_shlibs=no 8211 cat <<EOF 1>&2 8212 8213*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8214*** to be unable to reliably create shared libraries on AIX. 8215*** Therefore, libtool is disabling shared libraries support. If you 8216*** really care for shared libraries, you may want to modify your PATH 8217*** so that a non-GNU linker is found, and then restart. 8218 8219EOF 8220 fi 8221 ;; 8222 8223 amigaos*) 8224 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)' 8225 hardcode_libdir_flag_spec='-L$libdir' 8226 hardcode_minus_L=yes 8227 8228 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8229 # that the semantics of dynamic libraries on AmigaOS, at least up 8230 # to version 4, is to share data among multiple programs linked 8231 # with the same dynamic library. Since this doesn't match the 8232 # behavior of shared libraries on other platforms, we can't use 8233 # them. 8234 ld_shlibs=no 8235 ;; 8236 8237 beos*) 8238 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8239 allow_undefined_flag=unsupported 8240 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8241 # support --undefined. This deserves some investigation. FIXME 8242 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8243 else 8244 ld_shlibs=no 8245 fi 8246 ;; 8247 8248 cygwin* | mingw* | pw32*) 8249 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8250 # as there is no search path for DLLs. 8251 hardcode_libdir_flag_spec='-L$libdir' 8252 allow_undefined_flag=unsupported 8253 always_export_symbols=no 8254 enable_shared_with_static_runtimes=yes 8255 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8256 8257 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8259 # If the export-symbols file already is a .def file (1st line 8260 # is EXPORTS), use it as is; otherwise, prepend... 8261 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8262 cp $export_symbols $output_objdir/$soname.def; 8263 else 8264 echo EXPORTS > $output_objdir/$soname.def; 8265 cat $export_symbols >> $output_objdir/$soname.def; 8266 fi~ 8267 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8268 else 8269 ld_shlibs=no 8270 fi 8271 ;; 8272 8273 interix[3-9]*) 8274 hardcode_direct=no 8275 hardcode_shlibpath_var=no 8276 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8277 export_dynamic_flag_spec='${wl}-E' 8278 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8279 # Instead, shared libraries are loaded at an image base (0x10000000 by 8280 # default) and relocated if they conflict, which is a slow very memory 8281 # consuming and fragmenting process. To avoid this, we pick a random, 8282 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8283 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8284 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8285 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' 8286 ;; 8287 8288 gnu* | linux* | k*bsd*-gnu) 8289 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8290 tmp_addflag= 8291 case $cc_basename,$host_cpu in 8292 pgcc*) # Portland Group C compiler 8293 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' 8294 tmp_addflag=' $pic_flag' 8295 ;; 8296 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8297 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' 8298 tmp_addflag=' $pic_flag -Mnomain' ;; 8299 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8300 tmp_addflag=' -i_dynamic' ;; 8301 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8302 tmp_addflag=' -i_dynamic -nofor_main' ;; 8303 ifc* | ifort*) # Intel Fortran compiler 8304 tmp_addflag=' -nofor_main' ;; 8305 esac 8306 case `$CC -V 2>&1 | sed 5q` in 8307 *Sun\ C*) # Sun C 5.9 8308 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' 8309 tmp_sharedflag='-G' ;; 8310 *Sun\ F*) # Sun Fortran 8.3 8311 tmp_sharedflag='-G' ;; 8312 *) 8313 tmp_sharedflag='-shared' ;; 8314 esac 8315 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8316 8317 if test $supports_anon_versioning = yes; then 8318 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8319 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8320 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8321 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8322 fi 8323 else 8324 ld_shlibs=no 8325 fi 8326 ;; 8327 8328 netbsd*) 8329 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8330 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8331 wlarc= 8332 else 8333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8334 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8335 fi 8336 ;; 8337 8338 solaris*) 8339 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8340 ld_shlibs=no 8341 cat <<EOF 1>&2 8342 8343*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8344*** create shared libraries on Solaris systems. Therefore, libtool 8345*** is disabling shared libraries support. We urge you to upgrade GNU 8346*** binutils to release 2.9.1 or newer. Another option is to modify 8347*** your PATH or compiler configuration so that the native linker is 8348*** used, and then restart. 8349 8350EOF 8351 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8353 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8354 else 8355 ld_shlibs=no 8356 fi 8357 ;; 8358 8359 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8360 case `$LD -v 2>&1` in 8361 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8362 ld_shlibs=no 8363 cat <<_LT_EOF 1>&2 8364 8365*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8366*** reliably create shared libraries on SCO systems. Therefore, libtool 8367*** is disabling shared libraries support. We urge you to upgrade GNU 8368*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8369*** your PATH or compiler configuration so that the native linker is 8370*** used, and then restart. 8371 8372_LT_EOF 8373 ;; 8374 *) 8375 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8376 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8378 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8379 else 8380 ld_shlibs=no 8381 fi 8382 ;; 8383 esac 8384 ;; 8385 8386 sunos4*) 8387 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8388 wlarc= 8389 hardcode_direct=yes 8390 hardcode_shlibpath_var=no 8391 ;; 8392 8393 *) 8394 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8396 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8397 else 8398 ld_shlibs=no 8399 fi 8400 ;; 8401 esac 8402 8403 if test "$ld_shlibs" = no; then 8404 runpath_var= 8405 hardcode_libdir_flag_spec= 8406 export_dynamic_flag_spec= 8407 whole_archive_flag_spec= 8408 fi 8409 else 8410 # PORTME fill in a description of your system's linker (not GNU ld) 8411 case $host_os in 8412 aix3*) 8413 allow_undefined_flag=unsupported 8414 always_export_symbols=yes 8415 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' 8416 # Note: this linker hardcodes the directories in LIBPATH if there 8417 # are no directories specified by -L. 8418 hardcode_minus_L=yes 8419 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8420 # Neither direct hardcoding nor static linking is supported with a 8421 # broken collect2. 8422 hardcode_direct=unsupported 8423 fi 8424 ;; 8425 8426 aix[4-9]*) 8427 if test "$host_cpu" = ia64; then 8428 # On IA64, the linker does run time linking by default, so we don't 8429 # have to do anything special. 8430 aix_use_runtimelinking=no 8431 exp_sym_flag='-Bexport' 8432 no_entry_flag="" 8433 else 8434 # If we're using GNU nm, then we don't want the "-C" option. 8435 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8436 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8437 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' 8438 else 8439 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' 8440 fi 8441 aix_use_runtimelinking=no 8442 8443 # Test if we are trying to use run time linking or normal 8444 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8445 # need to do runtime linking. 8446 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8447 for ld_flag in $LDFLAGS; do 8448 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8449 aix_use_runtimelinking=yes 8450 break 8451 fi 8452 done 8453 ;; 8454 esac 8455 8456 exp_sym_flag='-bexport' 8457 no_entry_flag='-bnoentry' 8458 fi 8459 8460 # When large executables or shared objects are built, AIX ld can 8461 # have problems creating the table of contents. If linking a library 8462 # or program results in "error TOC overflow" add -mminimal-toc to 8463 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8464 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8465 8466 archive_cmds='' 8467 hardcode_direct=yes 8468 hardcode_libdir_separator=':' 8469 link_all_deplibs=yes 8470 8471 if test "$GCC" = yes; then 8472 case $host_os in aix4.[012]|aix4.[012].*) 8473 # We only want to do this on AIX 4.2 and lower, the check 8474 # below for broken collect2 doesn't work under 4.3+ 8475 collect2name=`${CC} -print-prog-name=collect2` 8476 if test -f "$collect2name" && \ 8477 strings "$collect2name" | grep resolve_lib_name >/dev/null 8478 then 8479 # We have reworked collect2 8480 : 8481 else 8482 # We have old collect2 8483 hardcode_direct=unsupported 8484 # It fails to find uninstalled libraries when the uninstalled 8485 # path is not listed in the libpath. Setting hardcode_minus_L 8486 # to unsupported forces relinking 8487 hardcode_minus_L=yes 8488 hardcode_libdir_flag_spec='-L$libdir' 8489 hardcode_libdir_separator= 8490 fi 8491 ;; 8492 esac 8493 shared_flag='-shared' 8494 if test "$aix_use_runtimelinking" = yes; then 8495 shared_flag="$shared_flag "'${wl}-G' 8496 fi 8497 else 8498 # not using gcc 8499 if test "$host_cpu" = ia64; then 8500 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8501 # chokes on -Wl,-G. The following line is correct: 8502 shared_flag='-G' 8503 else 8504 if test "$aix_use_runtimelinking" = yes; then 8505 shared_flag='${wl}-G' 8506 else 8507 shared_flag='${wl}-bM:SRE' 8508 fi 8509 fi 8510 fi 8511 8512 # It seems that -bexpall does not export symbols beginning with 8513 # underscore (_), so it is better to generate a list of symbols to export. 8514 always_export_symbols=yes 8515 if test "$aix_use_runtimelinking" = yes; then 8516 # Warning - without using the other runtime loading flags (-brtl), 8517 # -berok will link without error, but may produce a broken library. 8518 allow_undefined_flag='-berok' 8519 # Determine the default libpath from the value encoded in an empty executable. 8520 cat >conftest.$ac_ext <<_ACEOF 8521/* confdefs.h. */ 8522_ACEOF 8523cat confdefs.h >>conftest.$ac_ext 8524cat >>conftest.$ac_ext <<_ACEOF 8525/* end confdefs.h. */ 8526 8527int 8528main () 8529{ 8530 8531 ; 8532 return 0; 8533} 8534_ACEOF 8535rm -f conftest.$ac_objext conftest$ac_exeext 8536if { (ac_try="$ac_link" 8537case "(($ac_try" in 8538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8539 *) ac_try_echo=$ac_try;; 8540esac 8541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8542$as_echo "$ac_try_echo") >&5 8543 (eval "$ac_link") 2>conftest.er1 8544 ac_status=$? 8545 grep -v '^ *+' conftest.er1 >conftest.err 8546 rm -f conftest.er1 8547 cat conftest.err >&5 8548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8549 (exit $ac_status); } && { 8550 test -z "$ac_c_werror_flag" || 8551 test ! -s conftest.err 8552 } && test -s conftest$ac_exeext && { 8553 test "$cross_compiling" = yes || 8554 $as_test_x conftest$ac_exeext 8555 }; then 8556 8557lt_aix_libpath_sed=' 8558 /Import File Strings/,/^$/ { 8559 /^0/ { 8560 s/^0 *\(.*\)$/\1/ 8561 p 8562 } 8563 }' 8564aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8565# Check for a 64-bit object if we didn't find anything. 8566if test -z "$aix_libpath"; then 8567 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8568fi 8569else 8570 $as_echo "$as_me: failed program was:" >&5 8571sed 's/^/| /' conftest.$ac_ext >&5 8572 8573 8574fi 8575 8576rm -rf conftest.dSYM 8577rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8578 conftest$ac_exeext conftest.$ac_ext 8579if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8580 8581 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8582 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" 8583 else 8584 if test "$host_cpu" = ia64; then 8585 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8586 allow_undefined_flag="-z nodefs" 8587 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" 8588 else 8589 # Determine the default libpath from the value encoded in an empty executable. 8590 cat >conftest.$ac_ext <<_ACEOF 8591/* confdefs.h. */ 8592_ACEOF 8593cat confdefs.h >>conftest.$ac_ext 8594cat >>conftest.$ac_ext <<_ACEOF 8595/* end confdefs.h. */ 8596 8597int 8598main () 8599{ 8600 8601 ; 8602 return 0; 8603} 8604_ACEOF 8605rm -f conftest.$ac_objext conftest$ac_exeext 8606if { (ac_try="$ac_link" 8607case "(($ac_try" in 8608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8609 *) ac_try_echo=$ac_try;; 8610esac 8611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8612$as_echo "$ac_try_echo") >&5 8613 (eval "$ac_link") 2>conftest.er1 8614 ac_status=$? 8615 grep -v '^ *+' conftest.er1 >conftest.err 8616 rm -f conftest.er1 8617 cat conftest.err >&5 8618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8619 (exit $ac_status); } && { 8620 test -z "$ac_c_werror_flag" || 8621 test ! -s conftest.err 8622 } && test -s conftest$ac_exeext && { 8623 test "$cross_compiling" = yes || 8624 $as_test_x conftest$ac_exeext 8625 }; then 8626 8627lt_aix_libpath_sed=' 8628 /Import File Strings/,/^$/ { 8629 /^0/ { 8630 s/^0 *\(.*\)$/\1/ 8631 p 8632 } 8633 }' 8634aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8635# Check for a 64-bit object if we didn't find anything. 8636if test -z "$aix_libpath"; then 8637 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8638fi 8639else 8640 $as_echo "$as_me: failed program was:" >&5 8641sed 's/^/| /' conftest.$ac_ext >&5 8642 8643 8644fi 8645 8646rm -rf conftest.dSYM 8647rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8648 conftest$ac_exeext conftest.$ac_ext 8649if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8650 8651 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8652 # Warning - without using the other run time loading flags, 8653 # -berok will link without error, but may produce a broken library. 8654 no_undefined_flag=' ${wl}-bernotok' 8655 allow_undefined_flag=' ${wl}-berok' 8656 # Exported symbols can be pulled into shared objects from archives 8657 whole_archive_flag_spec='$convenience' 8658 archive_cmds_need_lc=yes 8659 # This is similar to how AIX traditionally builds its shared libraries. 8660 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' 8661 fi 8662 fi 8663 ;; 8664 8665 amigaos*) 8666 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)' 8667 hardcode_libdir_flag_spec='-L$libdir' 8668 hardcode_minus_L=yes 8669 # see comment about different semantics on the GNU ld section 8670 ld_shlibs=no 8671 ;; 8672 8673 bsdi[45]*) 8674 export_dynamic_flag_spec=-rdynamic 8675 ;; 8676 8677 cygwin* | mingw* | pw32*) 8678 # When not using gcc, we currently assume that we are using 8679 # Microsoft Visual C++. 8680 # hardcode_libdir_flag_spec is actually meaningless, as there is 8681 # no search path for DLLs. 8682 hardcode_libdir_flag_spec=' ' 8683 allow_undefined_flag=unsupported 8684 # Tell ltmain to make .lib files, not .a files. 8685 libext=lib 8686 # Tell ltmain to make .dll files, not .so files. 8687 shrext_cmds=".dll" 8688 # FIXME: Setting linknames here is a bad hack. 8689 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8690 # The linker will automatically build a .lib file if we build a DLL. 8691 old_archive_From_new_cmds='true' 8692 # FIXME: Should let the user specify the lib program. 8693 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8694 fix_srcfile_path='`cygpath -w "$srcfile"`' 8695 enable_shared_with_static_runtimes=yes 8696 ;; 8697 8698 darwin* | rhapsody*) 8699 case $host_os in 8700 rhapsody* | darwin1.[012]) 8701 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8702 ;; 8703 *) # Darwin 1.3 on 8704 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8705 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8706 else 8707 case ${MACOSX_DEPLOYMENT_TARGET} in 8708 10.[012]) 8709 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8710 ;; 8711 10.*) 8712 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8713 ;; 8714 esac 8715 fi 8716 ;; 8717 esac 8718 archive_cmds_need_lc=no 8719 hardcode_direct=no 8720 hardcode_automatic=yes 8721 hardcode_shlibpath_var=unsupported 8722 whole_archive_flag_spec='' 8723 link_all_deplibs=yes 8724 if test "$GCC" = yes ; then 8725 output_verbose_link_cmd='echo' 8726 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8727 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8728 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}" 8729 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}" 8730 else 8731 case $cc_basename in 8732 xlc*) 8733 output_verbose_link_cmd='echo' 8734 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8735 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8736 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8737 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}' 8738 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}' 8739 ;; 8740 *) 8741 ld_shlibs=no 8742 ;; 8743 esac 8744 fi 8745 ;; 8746 8747 dgux*) 8748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8749 hardcode_libdir_flag_spec='-L$libdir' 8750 hardcode_shlibpath_var=no 8751 ;; 8752 8753 freebsd1*) 8754 ld_shlibs=no 8755 ;; 8756 8757 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8758 # support. Future versions do this automatically, but an explicit c++rt0.o 8759 # does not break anything, and helps significantly (at the cost of a little 8760 # extra space). 8761 freebsd2.2*) 8762 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8763 hardcode_libdir_flag_spec='-R$libdir' 8764 hardcode_direct=yes 8765 hardcode_shlibpath_var=no 8766 ;; 8767 8768 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8769 freebsd2*) 8770 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8771 hardcode_direct=yes 8772 hardcode_minus_L=yes 8773 hardcode_shlibpath_var=no 8774 ;; 8775 8776 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8777 freebsd* | dragonfly*) 8778 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8779 hardcode_libdir_flag_spec='-R$libdir' 8780 hardcode_direct=yes 8781 hardcode_shlibpath_var=no 8782 ;; 8783 8784 hpux9*) 8785 if test "$GCC" = yes; then 8786 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' 8787 else 8788 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' 8789 fi 8790 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8791 hardcode_libdir_separator=: 8792 hardcode_direct=yes 8793 8794 # hardcode_minus_L: Not really in the search PATH, 8795 # but as the default location of the library. 8796 hardcode_minus_L=yes 8797 export_dynamic_flag_spec='${wl}-E' 8798 ;; 8799 8800 hpux10*) 8801 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8802 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8803 else 8804 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8805 fi 8806 if test "$with_gnu_ld" = no; then 8807 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8808 hardcode_libdir_separator=: 8809 8810 hardcode_direct=yes 8811 export_dynamic_flag_spec='${wl}-E' 8812 8813 # hardcode_minus_L: Not really in the search PATH, 8814 # but as the default location of the library. 8815 hardcode_minus_L=yes 8816 fi 8817 ;; 8818 8819 hpux11*) 8820 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8821 case $host_cpu in 8822 hppa*64*) 8823 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8824 ;; 8825 ia64*) 8826 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8827 ;; 8828 *) 8829 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8830 ;; 8831 esac 8832 else 8833 case $host_cpu in 8834 hppa*64*) 8835 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8836 ;; 8837 ia64*) 8838 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8839 ;; 8840 *) 8841 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8842 ;; 8843 esac 8844 fi 8845 if test "$with_gnu_ld" = no; then 8846 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8847 hardcode_libdir_separator=: 8848 8849 case $host_cpu in 8850 hppa*64*|ia64*) 8851 hardcode_libdir_flag_spec_ld='+b $libdir' 8852 hardcode_direct=no 8853 hardcode_shlibpath_var=no 8854 ;; 8855 *) 8856 hardcode_direct=yes 8857 export_dynamic_flag_spec='${wl}-E' 8858 8859 # hardcode_minus_L: Not really in the search PATH, 8860 # but as the default location of the library. 8861 hardcode_minus_L=yes 8862 ;; 8863 esac 8864 fi 8865 ;; 8866 8867 irix5* | irix6* | nonstopux*) 8868 if test "$GCC" = yes; then 8869 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' 8870 else 8871 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' 8872 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8873 fi 8874 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8875 hardcode_libdir_separator=: 8876 link_all_deplibs=yes 8877 ;; 8878 8879 netbsd*) 8880 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8881 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8882 else 8883 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8884 fi 8885 hardcode_libdir_flag_spec='-R$libdir' 8886 hardcode_direct=yes 8887 hardcode_shlibpath_var=no 8888 ;; 8889 8890 newsos6) 8891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8892 hardcode_direct=yes 8893 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8894 hardcode_libdir_separator=: 8895 hardcode_shlibpath_var=no 8896 ;; 8897 8898 openbsd*) 8899 if test -f /usr/libexec/ld.so; then 8900 hardcode_direct=yes 8901 hardcode_shlibpath_var=no 8902 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8903 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8904 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8905 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8906 export_dynamic_flag_spec='${wl}-E' 8907 else 8908 case $host_os in 8909 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8910 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8911 hardcode_libdir_flag_spec='-R$libdir' 8912 ;; 8913 *) 8914 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8915 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8916 ;; 8917 esac 8918 fi 8919 else 8920 ld_shlibs=no 8921 fi 8922 ;; 8923 8924 os2*) 8925 hardcode_libdir_flag_spec='-L$libdir' 8926 hardcode_minus_L=yes 8927 allow_undefined_flag=unsupported 8928 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' 8929 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8930 ;; 8931 8932 osf3*) 8933 if test "$GCC" = yes; then 8934 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8935 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' 8936 else 8937 allow_undefined_flag=' -expect_unresolved \*' 8938 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' 8939 fi 8940 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8941 hardcode_libdir_separator=: 8942 ;; 8943 8944 osf4* | osf5*) # as osf3* with the addition of -msym flag 8945 if test "$GCC" = yes; then 8946 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8947 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' 8948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8949 else 8950 allow_undefined_flag=' -expect_unresolved \*' 8951 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' 8952 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8953 $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' 8954 8955 # Both c and cxx compiler support -rpath directly 8956 hardcode_libdir_flag_spec='-rpath $libdir' 8957 fi 8958 hardcode_libdir_separator=: 8959 ;; 8960 8961 solaris*) 8962 no_undefined_flag=' -z text' 8963 if test "$GCC" = yes; then 8964 wlarc='${wl}' 8965 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8966 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8967 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8968 else 8969 wlarc='' 8970 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8971 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8972 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8973 fi 8974 hardcode_libdir_flag_spec='-R$libdir' 8975 hardcode_shlibpath_var=no 8976 case $host_os in 8977 solaris2.[0-5] | solaris2.[0-5].*) ;; 8978 *) 8979 # The compiler driver will combine and reorder linker options, 8980 # but understands `-z linker_flag'. GCC discards it without `$wl', 8981 # but is careful enough not to reorder. 8982 # Supported since Solaris 2.6 (maybe 2.5.1?) 8983 if test "$GCC" = yes; then 8984 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8985 else 8986 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8987 fi 8988 ;; 8989 esac 8990 link_all_deplibs=yes 8991 ;; 8992 8993 sunos4*) 8994 if test "x$host_vendor" = xsequent; then 8995 # Use $CC to link under sequent, because it throws in some extra .o 8996 # files that make .init and .fini sections work. 8997 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8998 else 8999 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9000 fi 9001 hardcode_libdir_flag_spec='-L$libdir' 9002 hardcode_direct=yes 9003 hardcode_minus_L=yes 9004 hardcode_shlibpath_var=no 9005 ;; 9006 9007 sysv4) 9008 case $host_vendor in 9009 sni) 9010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9011 hardcode_direct=yes # is this really true??? 9012 ;; 9013 siemens) 9014 ## LD is ld it makes a PLAMLIB 9015 ## CC just makes a GrossModule. 9016 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9017 reload_cmds='$CC -r -o $output$reload_objs' 9018 hardcode_direct=no 9019 ;; 9020 motorola) 9021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9022 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9023 ;; 9024 esac 9025 runpath_var='LD_RUN_PATH' 9026 hardcode_shlibpath_var=no 9027 ;; 9028 9029 sysv4.3*) 9030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9031 hardcode_shlibpath_var=no 9032 export_dynamic_flag_spec='-Bexport' 9033 ;; 9034 9035 sysv4*MP*) 9036 if test -d /usr/nec; then 9037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9038 hardcode_shlibpath_var=no 9039 runpath_var=LD_RUN_PATH 9040 hardcode_runpath_var=yes 9041 ld_shlibs=yes 9042 fi 9043 ;; 9044 9045 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9046 no_undefined_flag='${wl}-z,text' 9047 archive_cmds_need_lc=no 9048 hardcode_shlibpath_var=no 9049 runpath_var='LD_RUN_PATH' 9050 9051 if test "$GCC" = yes; then 9052 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9053 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9054 else 9055 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9056 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9057 fi 9058 ;; 9059 9060 sysv5* | sco3.2v5* | sco5v6*) 9061 # Note: We can NOT use -z defs as we might desire, because we do not 9062 # link with -lc, and that would cause any symbols used from libc to 9063 # always be unresolved, which means just about no library would 9064 # ever link correctly. If we're not using GNU ld we use -z text 9065 # though, which does catch some bad symbols but isn't as heavy-handed 9066 # as -z defs. 9067 no_undefined_flag='${wl}-z,text' 9068 allow_undefined_flag='${wl}-z,nodefs' 9069 archive_cmds_need_lc=no 9070 hardcode_shlibpath_var=no 9071 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9072 hardcode_libdir_separator=':' 9073 link_all_deplibs=yes 9074 export_dynamic_flag_spec='${wl}-Bexport' 9075 runpath_var='LD_RUN_PATH' 9076 9077 if test "$GCC" = yes; then 9078 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9079 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9080 else 9081 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9082 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9083 fi 9084 ;; 9085 9086 uts4*) 9087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9088 hardcode_libdir_flag_spec='-L$libdir' 9089 hardcode_shlibpath_var=no 9090 ;; 9091 9092 *) 9093 ld_shlibs=no 9094 ;; 9095 esac 9096 fi 9097 9098{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9099$as_echo "$ld_shlibs" >&6; } 9100test "$ld_shlibs" = no && can_build_shared=no 9101 9102# 9103# Do we need to explicitly link libc? 9104# 9105case "x$archive_cmds_need_lc" in 9106x|xyes) 9107 # Assume -lc should be added 9108 archive_cmds_need_lc=yes 9109 9110 if test "$enable_shared" = yes && test "$GCC" = yes; then 9111 case $archive_cmds in 9112 *'~'*) 9113 # FIXME: we may have to deal with multi-command sequences. 9114 ;; 9115 '$CC '*) 9116 # Test whether the compiler implicitly links with -lc since on some 9117 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9118 # to ld, don't add -lc before -lgcc. 9119 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9120$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9121 $rm conftest* 9122 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9123 9124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9125 (eval $ac_compile) 2>&5 9126 ac_status=$? 9127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9128 (exit $ac_status); } 2>conftest.err; then 9129 soname=conftest 9130 lib=conftest 9131 libobjs=conftest.$ac_objext 9132 deplibs= 9133 wl=$lt_prog_compiler_wl 9134 pic_flag=$lt_prog_compiler_pic 9135 compiler_flags=-v 9136 linker_flags=-v 9137 verstring= 9138 output_objdir=. 9139 libname=conftest 9140 lt_save_allow_undefined_flag=$allow_undefined_flag 9141 allow_undefined_flag= 9142 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9143 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9144 ac_status=$? 9145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9146 (exit $ac_status); } 9147 then 9148 archive_cmds_need_lc=no 9149 else 9150 archive_cmds_need_lc=yes 9151 fi 9152 allow_undefined_flag=$lt_save_allow_undefined_flag 9153 else 9154 cat conftest.err 1>&5 9155 fi 9156 $rm conftest* 9157 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9158$as_echo "$archive_cmds_need_lc" >&6; } 9159 ;; 9160 esac 9161 fi 9162 ;; 9163esac 9164 9165{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9166$as_echo_n "checking dynamic linker characteristics... " >&6; } 9167library_names_spec= 9168libname_spec='lib$name' 9169soname_spec= 9170shrext_cmds=".so" 9171postinstall_cmds= 9172postuninstall_cmds= 9173finish_cmds= 9174finish_eval= 9175shlibpath_var= 9176shlibpath_overrides_runpath=unknown 9177version_type=none 9178dynamic_linker="$host_os ld.so" 9179sys_lib_dlsearch_path_spec="/lib /usr/lib" 9180 9181if test "$GCC" = yes; then 9182 case $host_os in 9183 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9184 *) lt_awk_arg="/^libraries:/" ;; 9185 esac 9186 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9187 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9188 # if the path contains ";" then we assume it to be the separator 9189 # otherwise default to the standard path separator (i.e. ":") - it is 9190 # assumed that no part of a normal pathname contains ";" but that should 9191 # okay in the real world where ";" in dirpaths is itself problematic. 9192 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9193 else 9194 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9195 fi 9196 # Ok, now we have the path, separated by spaces, we can step through it 9197 # and add multilib dir if necessary. 9198 lt_tmp_lt_search_path_spec= 9199 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9200 for lt_sys_path in $lt_search_path_spec; do 9201 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9202 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9203 else 9204 test -d "$lt_sys_path" && \ 9205 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9206 fi 9207 done 9208 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9209BEGIN {RS=" "; FS="/|\n";} { 9210 lt_foo=""; 9211 lt_count=0; 9212 for (lt_i = NF; lt_i > 0; lt_i--) { 9213 if ($lt_i != "" && $lt_i != ".") { 9214 if ($lt_i == "..") { 9215 lt_count++; 9216 } else { 9217 if (lt_count == 0) { 9218 lt_foo="/" $lt_i lt_foo; 9219 } else { 9220 lt_count--; 9221 } 9222 } 9223 } 9224 } 9225 if (lt_foo != "") { lt_freq[lt_foo]++; } 9226 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9227}'` 9228 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9229else 9230 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9231fi 9232need_lib_prefix=unknown 9233hardcode_into_libs=no 9234 9235# when you set need_version to no, make sure it does not cause -set_version 9236# flags to be left without arguments 9237need_version=unknown 9238 9239case $host_os in 9240aix3*) 9241 version_type=linux 9242 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9243 shlibpath_var=LIBPATH 9244 9245 # AIX 3 has no versioning support, so we append a major version to the name. 9246 soname_spec='${libname}${release}${shared_ext}$major' 9247 ;; 9248 9249aix[4-9]*) 9250 version_type=linux 9251 need_lib_prefix=no 9252 need_version=no 9253 hardcode_into_libs=yes 9254 if test "$host_cpu" = ia64; then 9255 # AIX 5 supports IA64 9256 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9257 shlibpath_var=LD_LIBRARY_PATH 9258 else 9259 # With GCC up to 2.95.x, collect2 would create an import file 9260 # for dependence libraries. The import file would start with 9261 # the line `#! .'. This would cause the generated library to 9262 # depend on `.', always an invalid library. This was fixed in 9263 # development snapshots of GCC prior to 3.0. 9264 case $host_os in 9265 aix4 | aix4.[01] | aix4.[01].*) 9266 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9267 echo ' yes ' 9268 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9269 : 9270 else 9271 can_build_shared=no 9272 fi 9273 ;; 9274 esac 9275 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9276 # soname into executable. Probably we can add versioning support to 9277 # collect2, so additional links can be useful in future. 9278 if test "$aix_use_runtimelinking" = yes; then 9279 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9280 # instead of lib<name>.a to let people know that these are not 9281 # typical AIX shared libraries. 9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9283 else 9284 # We preserve .a as extension for shared libraries through AIX4.2 9285 # and later when we are not doing run time linking. 9286 library_names_spec='${libname}${release}.a $libname.a' 9287 soname_spec='${libname}${release}${shared_ext}$major' 9288 fi 9289 shlibpath_var=LIBPATH 9290 fi 9291 ;; 9292 9293amigaos*) 9294 library_names_spec='$libname.ixlibrary $libname.a' 9295 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9296 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' 9297 ;; 9298 9299beos*) 9300 library_names_spec='${libname}${shared_ext}' 9301 dynamic_linker="$host_os ld.so" 9302 shlibpath_var=LIBRARY_PATH 9303 ;; 9304 9305bsdi[45]*) 9306 version_type=linux 9307 need_version=no 9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9309 soname_spec='${libname}${release}${shared_ext}$major' 9310 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9311 shlibpath_var=LD_LIBRARY_PATH 9312 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9313 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9314 # the default ld.so.conf also contains /usr/contrib/lib and 9315 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9316 # libtool to hard-code these into programs 9317 ;; 9318 9319cygwin* | mingw* | pw32*) 9320 version_type=windows 9321 shrext_cmds=".dll" 9322 need_version=no 9323 need_lib_prefix=no 9324 9325 case $GCC,$host_os in 9326 yes,cygwin* | yes,mingw* | yes,pw32*) 9327 library_names_spec='$libname.dll.a' 9328 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9329 postinstall_cmds='base_file=`basename \${file}`~ 9330 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9331 dldir=$destdir/`dirname \$dlpath`~ 9332 test -d \$dldir || mkdir -p \$dldir~ 9333 $install_prog $dir/$dlname \$dldir/$dlname~ 9334 chmod a+x \$dldir/$dlname' 9335 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9336 dlpath=$dir/\$dldll~ 9337 $rm \$dlpath' 9338 shlibpath_overrides_runpath=yes 9339 9340 case $host_os in 9341 cygwin*) 9342 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9343 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9344 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9345 ;; 9346 mingw*) 9347 # MinGW DLLs use traditional 'lib' prefix 9348 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9349 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9350 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9351 # It is most probably a Windows format PATH printed by 9352 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9353 # path with ; separators, and with drive letters. We can handle the 9354 # drive letters (cygwin fileutils understands them), so leave them, 9355 # especially as we might pass files found there to a mingw objdump, 9356 # which wouldn't understand a cygwinified path. Ahh. 9357 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9358 else 9359 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9360 fi 9361 ;; 9362 pw32*) 9363 # pw32 DLLs use 'pw' prefix rather than 'lib' 9364 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9365 ;; 9366 esac 9367 ;; 9368 9369 *) 9370 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9371 ;; 9372 esac 9373 dynamic_linker='Win32 ld.exe' 9374 # FIXME: first we should search . and the directory the executable is in 9375 shlibpath_var=PATH 9376 ;; 9377 9378darwin* | rhapsody*) 9379 dynamic_linker="$host_os dyld" 9380 version_type=darwin 9381 need_lib_prefix=no 9382 need_version=no 9383 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9384 soname_spec='${libname}${release}${major}$shared_ext' 9385 shlibpath_overrides_runpath=yes 9386 shlibpath_var=DYLD_LIBRARY_PATH 9387 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9388 9389 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9390 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9391 ;; 9392 9393dgux*) 9394 version_type=linux 9395 need_lib_prefix=no 9396 need_version=no 9397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9398 soname_spec='${libname}${release}${shared_ext}$major' 9399 shlibpath_var=LD_LIBRARY_PATH 9400 ;; 9401 9402freebsd1*) 9403 dynamic_linker=no 9404 ;; 9405 9406freebsd* | dragonfly*) 9407 # DragonFly does not have aout. When/if they implement a new 9408 # versioning mechanism, adjust this. 9409 if test -x /usr/bin/objformat; then 9410 objformat=`/usr/bin/objformat` 9411 else 9412 case $host_os in 9413 freebsd[123]*) objformat=aout ;; 9414 *) objformat=elf ;; 9415 esac 9416 fi 9417 version_type=freebsd-$objformat 9418 case $version_type in 9419 freebsd-elf*) 9420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9421 need_version=no 9422 need_lib_prefix=no 9423 ;; 9424 freebsd-*) 9425 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9426 need_version=yes 9427 ;; 9428 esac 9429 shlibpath_var=LD_LIBRARY_PATH 9430 case $host_os in 9431 freebsd2*) 9432 shlibpath_overrides_runpath=yes 9433 ;; 9434 freebsd3.[01]* | freebsdelf3.[01]*) 9435 shlibpath_overrides_runpath=yes 9436 hardcode_into_libs=yes 9437 ;; 9438 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9439 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9440 shlibpath_overrides_runpath=no 9441 hardcode_into_libs=yes 9442 ;; 9443 *) # from 4.6 on, and DragonFly 9444 shlibpath_overrides_runpath=yes 9445 hardcode_into_libs=yes 9446 ;; 9447 esac 9448 ;; 9449 9450gnu*) 9451 version_type=linux 9452 need_lib_prefix=no 9453 need_version=no 9454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9455 soname_spec='${libname}${release}${shared_ext}$major' 9456 shlibpath_var=LD_LIBRARY_PATH 9457 hardcode_into_libs=yes 9458 ;; 9459 9460hpux9* | hpux10* | hpux11*) 9461 # Give a soname corresponding to the major version so that dld.sl refuses to 9462 # link against other versions. 9463 version_type=sunos 9464 need_lib_prefix=no 9465 need_version=no 9466 case $host_cpu in 9467 ia64*) 9468 shrext_cmds='.so' 9469 hardcode_into_libs=yes 9470 dynamic_linker="$host_os dld.so" 9471 shlibpath_var=LD_LIBRARY_PATH 9472 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9474 soname_spec='${libname}${release}${shared_ext}$major' 9475 if test "X$HPUX_IA64_MODE" = X32; then 9476 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9477 else 9478 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9479 fi 9480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9481 ;; 9482 hppa*64*) 9483 shrext_cmds='.sl' 9484 hardcode_into_libs=yes 9485 dynamic_linker="$host_os dld.sl" 9486 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9487 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9489 soname_spec='${libname}${release}${shared_ext}$major' 9490 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9491 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9492 ;; 9493 *) 9494 shrext_cmds='.sl' 9495 dynamic_linker="$host_os dld.sl" 9496 shlibpath_var=SHLIB_PATH 9497 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 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 ;; 9501 esac 9502 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9503 postinstall_cmds='chmod 555 $lib' 9504 ;; 9505 9506interix[3-9]*) 9507 version_type=linux 9508 need_lib_prefix=no 9509 need_version=no 9510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9511 soname_spec='${libname}${release}${shared_ext}$major' 9512 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9513 shlibpath_var=LD_LIBRARY_PATH 9514 shlibpath_overrides_runpath=no 9515 hardcode_into_libs=yes 9516 ;; 9517 9518irix5* | irix6* | nonstopux*) 9519 case $host_os in 9520 nonstopux*) version_type=nonstopux ;; 9521 *) 9522 if test "$lt_cv_prog_gnu_ld" = yes; then 9523 version_type=linux 9524 else 9525 version_type=irix 9526 fi ;; 9527 esac 9528 need_lib_prefix=no 9529 need_version=no 9530 soname_spec='${libname}${release}${shared_ext}$major' 9531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9532 case $host_os in 9533 irix5* | nonstopux*) 9534 libsuff= shlibsuff= 9535 ;; 9536 *) 9537 case $LD in # libtool.m4 will add one of these switches to LD 9538 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9539 libsuff= shlibsuff= libmagic=32-bit;; 9540 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9541 libsuff=32 shlibsuff=N32 libmagic=N32;; 9542 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9543 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9544 *) libsuff= shlibsuff= libmagic=never-match;; 9545 esac 9546 ;; 9547 esac 9548 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9549 shlibpath_overrides_runpath=no 9550 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9551 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9552 hardcode_into_libs=yes 9553 ;; 9554 9555# No shared lib support for Linux oldld, aout, or coff. 9556linux*oldld* | linux*aout* | linux*coff*) 9557 dynamic_linker=no 9558 ;; 9559 9560# This must be Linux ELF. 9561linux* | k*bsd*-gnu) 9562 version_type=linux 9563 need_lib_prefix=no 9564 need_version=no 9565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9566 soname_spec='${libname}${release}${shared_ext}$major' 9567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9568 shlibpath_var=LD_LIBRARY_PATH 9569 shlibpath_overrides_runpath=no 9570 # This implies no fast_install, which is unacceptable. 9571 # Some rework will be needed to allow for fast_install 9572 # before this can be enabled. 9573 hardcode_into_libs=yes 9574 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9575 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9576 9577 # Append ld.so.conf contents to the search path 9578 if test -f /etc/ld.so.conf; then 9579 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' ' '` 9580 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9581 fi 9582 9583 # We used to test for /lib/ld.so.1 and disable shared libraries on 9584 # powerpc, because MkLinux only supported shared libraries with the 9585 # GNU dynamic linker. Since this was broken with cross compilers, 9586 # most powerpc-linux boxes support dynamic linking these days and 9587 # people can always --disable-shared, the test was removed, and we 9588 # assume the GNU/Linux dynamic linker is in use. 9589 dynamic_linker='GNU/Linux ld.so' 9590 ;; 9591 9592netbsd*) 9593 version_type=sunos 9594 need_lib_prefix=no 9595 need_version=no 9596 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9598 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9599 dynamic_linker='NetBSD (a.out) ld.so' 9600 else 9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9602 soname_spec='${libname}${release}${shared_ext}$major' 9603 dynamic_linker='NetBSD ld.elf_so' 9604 fi 9605 shlibpath_var=LD_LIBRARY_PATH 9606 shlibpath_overrides_runpath=yes 9607 hardcode_into_libs=yes 9608 ;; 9609 9610newsos6) 9611 version_type=linux 9612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9613 shlibpath_var=LD_LIBRARY_PATH 9614 shlibpath_overrides_runpath=yes 9615 ;; 9616 9617nto-qnx*) 9618 version_type=linux 9619 need_lib_prefix=no 9620 need_version=no 9621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9622 soname_spec='${libname}${release}${shared_ext}$major' 9623 shlibpath_var=LD_LIBRARY_PATH 9624 shlibpath_overrides_runpath=yes 9625 ;; 9626 9627openbsd*) 9628 version_type=sunos 9629 sys_lib_dlsearch_path_spec="/usr/lib" 9630 need_lib_prefix=no 9631 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9632 case $host_os in 9633 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9634 *) need_version=no ;; 9635 esac 9636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9638 shlibpath_var=LD_LIBRARY_PATH 9639 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9640 case $host_os in 9641 openbsd2.[89] | openbsd2.[89].*) 9642 shlibpath_overrides_runpath=no 9643 ;; 9644 *) 9645 shlibpath_overrides_runpath=yes 9646 ;; 9647 esac 9648 else 9649 shlibpath_overrides_runpath=yes 9650 fi 9651 ;; 9652 9653os2*) 9654 libname_spec='$name' 9655 shrext_cmds=".dll" 9656 need_lib_prefix=no 9657 library_names_spec='$libname${shared_ext} $libname.a' 9658 dynamic_linker='OS/2 ld.exe' 9659 shlibpath_var=LIBPATH 9660 ;; 9661 9662osf3* | osf4* | osf5*) 9663 version_type=osf 9664 need_lib_prefix=no 9665 need_version=no 9666 soname_spec='${libname}${release}${shared_ext}$major' 9667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9668 shlibpath_var=LD_LIBRARY_PATH 9669 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9670 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9671 ;; 9672 9673rdos*) 9674 dynamic_linker=no 9675 ;; 9676 9677solaris*) 9678 version_type=linux 9679 need_lib_prefix=no 9680 need_version=no 9681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9682 soname_spec='${libname}${release}${shared_ext}$major' 9683 shlibpath_var=LD_LIBRARY_PATH 9684 shlibpath_overrides_runpath=yes 9685 hardcode_into_libs=yes 9686 # ldd complains unless libraries are executable 9687 postinstall_cmds='chmod +x $lib' 9688 ;; 9689 9690sunos4*) 9691 version_type=sunos 9692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9693 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9694 shlibpath_var=LD_LIBRARY_PATH 9695 shlibpath_overrides_runpath=yes 9696 if test "$with_gnu_ld" = yes; then 9697 need_lib_prefix=no 9698 fi 9699 need_version=yes 9700 ;; 9701 9702sysv4 | sysv4.3*) 9703 version_type=linux 9704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9705 soname_spec='${libname}${release}${shared_ext}$major' 9706 shlibpath_var=LD_LIBRARY_PATH 9707 case $host_vendor in 9708 sni) 9709 shlibpath_overrides_runpath=no 9710 need_lib_prefix=no 9711 export_dynamic_flag_spec='${wl}-Blargedynsym' 9712 runpath_var=LD_RUN_PATH 9713 ;; 9714 siemens) 9715 need_lib_prefix=no 9716 ;; 9717 motorola) 9718 need_lib_prefix=no 9719 need_version=no 9720 shlibpath_overrides_runpath=no 9721 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9722 ;; 9723 esac 9724 ;; 9725 9726sysv4*MP*) 9727 if test -d /usr/nec ;then 9728 version_type=linux 9729 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9730 soname_spec='$libname${shared_ext}.$major' 9731 shlibpath_var=LD_LIBRARY_PATH 9732 fi 9733 ;; 9734 9735sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9736 version_type=freebsd-elf 9737 need_lib_prefix=no 9738 need_version=no 9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9740 soname_spec='${libname}${release}${shared_ext}$major' 9741 shlibpath_var=LD_LIBRARY_PATH 9742 hardcode_into_libs=yes 9743 if test "$with_gnu_ld" = yes; then 9744 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9745 shlibpath_overrides_runpath=no 9746 else 9747 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9748 shlibpath_overrides_runpath=yes 9749 case $host_os in 9750 sco3.2v5*) 9751 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9752 ;; 9753 esac 9754 fi 9755 sys_lib_dlsearch_path_spec='/usr/lib' 9756 ;; 9757 9758uts4*) 9759 version_type=linux 9760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9761 soname_spec='${libname}${release}${shared_ext}$major' 9762 shlibpath_var=LD_LIBRARY_PATH 9763 ;; 9764 9765*) 9766 dynamic_linker=no 9767 ;; 9768esac 9769{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9770$as_echo "$dynamic_linker" >&6; } 9771test "$dynamic_linker" = no && can_build_shared=no 9772 9773if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9774 $as_echo_n "(cached) " >&6 9775else 9776 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 9777fi 9778 9779sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9780if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9781 $as_echo_n "(cached) " >&6 9782else 9783 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 9784fi 9785 9786sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9787 9788variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9789if test "$GCC" = yes; then 9790 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9791fi 9792 9793{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9794$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9795hardcode_action= 9796if test -n "$hardcode_libdir_flag_spec" || \ 9797 test -n "$runpath_var" || \ 9798 test "X$hardcode_automatic" = "Xyes" ; then 9799 9800 # We can hardcode non-existant directories. 9801 if test "$hardcode_direct" != no && 9802 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9803 # have to relink, otherwise we might link with an installed library 9804 # when we should be linking with a yet-to-be-installed one 9805 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9806 test "$hardcode_minus_L" != no; then 9807 # Linking always hardcodes the temporary library directory. 9808 hardcode_action=relink 9809 else 9810 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9811 hardcode_action=immediate 9812 fi 9813else 9814 # We cannot hardcode anything, or else we can only hardcode existing 9815 # directories. 9816 hardcode_action=unsupported 9817fi 9818{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 9819$as_echo "$hardcode_action" >&6; } 9820 9821if test "$hardcode_action" = relink; then 9822 # Fast installation is not supported 9823 enable_fast_install=no 9824elif test "$shlibpath_overrides_runpath" = yes || 9825 test "$enable_shared" = no; then 9826 # Fast installation is not necessary 9827 enable_fast_install=needless 9828fi 9829 9830striplib= 9831old_striplib= 9832{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9833$as_echo_n "checking whether stripping libraries is possible... " >&6; } 9834if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9835 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9836 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9837 { $as_echo "$as_me:$LINENO: result: yes" >&5 9838$as_echo "yes" >&6; } 9839else 9840# FIXME - insert some real tests, host_os isn't really good enough 9841 case $host_os in 9842 darwin*) 9843 if test -n "$STRIP" ; then 9844 striplib="$STRIP -x" 9845 old_striplib="$STRIP -S" 9846 { $as_echo "$as_me:$LINENO: result: yes" >&5 9847$as_echo "yes" >&6; } 9848 else 9849 { $as_echo "$as_me:$LINENO: result: no" >&5 9850$as_echo "no" >&6; } 9851fi 9852 ;; 9853 *) 9854 { $as_echo "$as_me:$LINENO: result: no" >&5 9855$as_echo "no" >&6; } 9856 ;; 9857 esac 9858fi 9859 9860if test "x$enable_dlopen" != xyes; then 9861 enable_dlopen=unknown 9862 enable_dlopen_self=unknown 9863 enable_dlopen_self_static=unknown 9864else 9865 lt_cv_dlopen=no 9866 lt_cv_dlopen_libs= 9867 9868 case $host_os in 9869 beos*) 9870 lt_cv_dlopen="load_add_on" 9871 lt_cv_dlopen_libs= 9872 lt_cv_dlopen_self=yes 9873 ;; 9874 9875 mingw* | pw32*) 9876 lt_cv_dlopen="LoadLibrary" 9877 lt_cv_dlopen_libs= 9878 ;; 9879 9880 cygwin*) 9881 lt_cv_dlopen="dlopen" 9882 lt_cv_dlopen_libs= 9883 ;; 9884 9885 darwin*) 9886 # if libdl is installed we need to link against it 9887 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9888$as_echo_n "checking for dlopen in -ldl... " >&6; } 9889if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9890 $as_echo_n "(cached) " >&6 9891else 9892 ac_check_lib_save_LIBS=$LIBS 9893LIBS="-ldl $LIBS" 9894cat >conftest.$ac_ext <<_ACEOF 9895/* confdefs.h. */ 9896_ACEOF 9897cat confdefs.h >>conftest.$ac_ext 9898cat >>conftest.$ac_ext <<_ACEOF 9899/* end confdefs.h. */ 9900 9901/* Override any GCC internal prototype to avoid an error. 9902 Use char because int might match the return type of a GCC 9903 builtin and then its argument prototype would still apply. */ 9904#ifdef __cplusplus 9905extern "C" 9906#endif 9907char dlopen (); 9908int 9909main () 9910{ 9911return dlopen (); 9912 ; 9913 return 0; 9914} 9915_ACEOF 9916rm -f conftest.$ac_objext conftest$ac_exeext 9917if { (ac_try="$ac_link" 9918case "(($ac_try" in 9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9920 *) ac_try_echo=$ac_try;; 9921esac 9922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9923$as_echo "$ac_try_echo") >&5 9924 (eval "$ac_link") 2>conftest.er1 9925 ac_status=$? 9926 grep -v '^ *+' conftest.er1 >conftest.err 9927 rm -f conftest.er1 9928 cat conftest.err >&5 9929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9930 (exit $ac_status); } && { 9931 test -z "$ac_c_werror_flag" || 9932 test ! -s conftest.err 9933 } && test -s conftest$ac_exeext && { 9934 test "$cross_compiling" = yes || 9935 $as_test_x conftest$ac_exeext 9936 }; then 9937 ac_cv_lib_dl_dlopen=yes 9938else 9939 $as_echo "$as_me: failed program was:" >&5 9940sed 's/^/| /' conftest.$ac_ext >&5 9941 9942 ac_cv_lib_dl_dlopen=no 9943fi 9944 9945rm -rf conftest.dSYM 9946rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9947 conftest$ac_exeext conftest.$ac_ext 9948LIBS=$ac_check_lib_save_LIBS 9949fi 9950{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9951$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9952if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 9953 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9954else 9955 9956 lt_cv_dlopen="dyld" 9957 lt_cv_dlopen_libs= 9958 lt_cv_dlopen_self=yes 9959 9960fi 9961 9962 ;; 9963 9964 *) 9965 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 9966$as_echo_n "checking for shl_load... " >&6; } 9967if test "${ac_cv_func_shl_load+set}" = set; then 9968 $as_echo_n "(cached) " >&6 9969else 9970 cat >conftest.$ac_ext <<_ACEOF 9971/* confdefs.h. */ 9972_ACEOF 9973cat confdefs.h >>conftest.$ac_ext 9974cat >>conftest.$ac_ext <<_ACEOF 9975/* end confdefs.h. */ 9976/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9977 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9978#define shl_load innocuous_shl_load 9979 9980/* System header to define __stub macros and hopefully few prototypes, 9981 which can conflict with char shl_load (); below. 9982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9983 <limits.h> exists even on freestanding compilers. */ 9984 9985#ifdef __STDC__ 9986# include <limits.h> 9987#else 9988# include <assert.h> 9989#endif 9990 9991#undef shl_load 9992 9993/* Override any GCC internal prototype to avoid an error. 9994 Use char because int might match the return type of a GCC 9995 builtin and then its argument prototype would still apply. */ 9996#ifdef __cplusplus 9997extern "C" 9998#endif 9999char shl_load (); 10000/* The GNU C library defines this for functions which it implements 10001 to always fail with ENOSYS. Some functions are actually named 10002 something starting with __ and the normal name is an alias. */ 10003#if defined __stub_shl_load || defined __stub___shl_load 10004choke me 10005#endif 10006 10007int 10008main () 10009{ 10010return shl_load (); 10011 ; 10012 return 0; 10013} 10014_ACEOF 10015rm -f conftest.$ac_objext conftest$ac_exeext 10016if { (ac_try="$ac_link" 10017case "(($ac_try" in 10018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10019 *) ac_try_echo=$ac_try;; 10020esac 10021eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10022$as_echo "$ac_try_echo") >&5 10023 (eval "$ac_link") 2>conftest.er1 10024 ac_status=$? 10025 grep -v '^ *+' conftest.er1 >conftest.err 10026 rm -f conftest.er1 10027 cat conftest.err >&5 10028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10029 (exit $ac_status); } && { 10030 test -z "$ac_c_werror_flag" || 10031 test ! -s conftest.err 10032 } && test -s conftest$ac_exeext && { 10033 test "$cross_compiling" = yes || 10034 $as_test_x conftest$ac_exeext 10035 }; then 10036 ac_cv_func_shl_load=yes 10037else 10038 $as_echo "$as_me: failed program was:" >&5 10039sed 's/^/| /' conftest.$ac_ext >&5 10040 10041 ac_cv_func_shl_load=no 10042fi 10043 10044rm -rf conftest.dSYM 10045rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10046 conftest$ac_exeext conftest.$ac_ext 10047fi 10048{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10049$as_echo "$ac_cv_func_shl_load" >&6; } 10050if test "x$ac_cv_func_shl_load" = x""yes; then 10051 lt_cv_dlopen="shl_load" 10052else 10053 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10054$as_echo_n "checking for shl_load in -ldld... " >&6; } 10055if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10056 $as_echo_n "(cached) " >&6 10057else 10058 ac_check_lib_save_LIBS=$LIBS 10059LIBS="-ldld $LIBS" 10060cat >conftest.$ac_ext <<_ACEOF 10061/* confdefs.h. */ 10062_ACEOF 10063cat confdefs.h >>conftest.$ac_ext 10064cat >>conftest.$ac_ext <<_ACEOF 10065/* end confdefs.h. */ 10066 10067/* Override any GCC internal prototype to avoid an error. 10068 Use char because int might match the return type of a GCC 10069 builtin and then its argument prototype would still apply. */ 10070#ifdef __cplusplus 10071extern "C" 10072#endif 10073char shl_load (); 10074int 10075main () 10076{ 10077return shl_load (); 10078 ; 10079 return 0; 10080} 10081_ACEOF 10082rm -f conftest.$ac_objext conftest$ac_exeext 10083if { (ac_try="$ac_link" 10084case "(($ac_try" in 10085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10086 *) ac_try_echo=$ac_try;; 10087esac 10088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10089$as_echo "$ac_try_echo") >&5 10090 (eval "$ac_link") 2>conftest.er1 10091 ac_status=$? 10092 grep -v '^ *+' conftest.er1 >conftest.err 10093 rm -f conftest.er1 10094 cat conftest.err >&5 10095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10096 (exit $ac_status); } && { 10097 test -z "$ac_c_werror_flag" || 10098 test ! -s conftest.err 10099 } && test -s conftest$ac_exeext && { 10100 test "$cross_compiling" = yes || 10101 $as_test_x conftest$ac_exeext 10102 }; then 10103 ac_cv_lib_dld_shl_load=yes 10104else 10105 $as_echo "$as_me: failed program was:" >&5 10106sed 's/^/| /' conftest.$ac_ext >&5 10107 10108 ac_cv_lib_dld_shl_load=no 10109fi 10110 10111rm -rf conftest.dSYM 10112rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10113 conftest$ac_exeext conftest.$ac_ext 10114LIBS=$ac_check_lib_save_LIBS 10115fi 10116{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10117$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10118if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10119 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10120else 10121 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10122$as_echo_n "checking for dlopen... " >&6; } 10123if test "${ac_cv_func_dlopen+set}" = set; then 10124 $as_echo_n "(cached) " >&6 10125else 10126 cat >conftest.$ac_ext <<_ACEOF 10127/* confdefs.h. */ 10128_ACEOF 10129cat confdefs.h >>conftest.$ac_ext 10130cat >>conftest.$ac_ext <<_ACEOF 10131/* end confdefs.h. */ 10132/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10133 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10134#define dlopen innocuous_dlopen 10135 10136/* System header to define __stub macros and hopefully few prototypes, 10137 which can conflict with char dlopen (); below. 10138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10139 <limits.h> exists even on freestanding compilers. */ 10140 10141#ifdef __STDC__ 10142# include <limits.h> 10143#else 10144# include <assert.h> 10145#endif 10146 10147#undef dlopen 10148 10149/* Override any GCC internal prototype to avoid an error. 10150 Use char because int might match the return type of a GCC 10151 builtin and then its argument prototype would still apply. */ 10152#ifdef __cplusplus 10153extern "C" 10154#endif 10155char dlopen (); 10156/* The GNU C library defines this for functions which it implements 10157 to always fail with ENOSYS. Some functions are actually named 10158 something starting with __ and the normal name is an alias. */ 10159#if defined __stub_dlopen || defined __stub___dlopen 10160choke me 10161#endif 10162 10163int 10164main () 10165{ 10166return dlopen (); 10167 ; 10168 return 0; 10169} 10170_ACEOF 10171rm -f conftest.$ac_objext conftest$ac_exeext 10172if { (ac_try="$ac_link" 10173case "(($ac_try" in 10174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10175 *) ac_try_echo=$ac_try;; 10176esac 10177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10178$as_echo "$ac_try_echo") >&5 10179 (eval "$ac_link") 2>conftest.er1 10180 ac_status=$? 10181 grep -v '^ *+' conftest.er1 >conftest.err 10182 rm -f conftest.er1 10183 cat conftest.err >&5 10184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10185 (exit $ac_status); } && { 10186 test -z "$ac_c_werror_flag" || 10187 test ! -s conftest.err 10188 } && test -s conftest$ac_exeext && { 10189 test "$cross_compiling" = yes || 10190 $as_test_x conftest$ac_exeext 10191 }; then 10192 ac_cv_func_dlopen=yes 10193else 10194 $as_echo "$as_me: failed program was:" >&5 10195sed 's/^/| /' conftest.$ac_ext >&5 10196 10197 ac_cv_func_dlopen=no 10198fi 10199 10200rm -rf conftest.dSYM 10201rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10202 conftest$ac_exeext conftest.$ac_ext 10203fi 10204{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10205$as_echo "$ac_cv_func_dlopen" >&6; } 10206if test "x$ac_cv_func_dlopen" = x""yes; then 10207 lt_cv_dlopen="dlopen" 10208else 10209 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10210$as_echo_n "checking for dlopen in -ldl... " >&6; } 10211if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10212 $as_echo_n "(cached) " >&6 10213else 10214 ac_check_lib_save_LIBS=$LIBS 10215LIBS="-ldl $LIBS" 10216cat >conftest.$ac_ext <<_ACEOF 10217/* confdefs.h. */ 10218_ACEOF 10219cat confdefs.h >>conftest.$ac_ext 10220cat >>conftest.$ac_ext <<_ACEOF 10221/* end confdefs.h. */ 10222 10223/* Override any GCC internal prototype to avoid an error. 10224 Use char because int might match the return type of a GCC 10225 builtin and then its argument prototype would still apply. */ 10226#ifdef __cplusplus 10227extern "C" 10228#endif 10229char dlopen (); 10230int 10231main () 10232{ 10233return dlopen (); 10234 ; 10235 return 0; 10236} 10237_ACEOF 10238rm -f conftest.$ac_objext conftest$ac_exeext 10239if { (ac_try="$ac_link" 10240case "(($ac_try" in 10241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10242 *) ac_try_echo=$ac_try;; 10243esac 10244eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10245$as_echo "$ac_try_echo") >&5 10246 (eval "$ac_link") 2>conftest.er1 10247 ac_status=$? 10248 grep -v '^ *+' conftest.er1 >conftest.err 10249 rm -f conftest.er1 10250 cat conftest.err >&5 10251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10252 (exit $ac_status); } && { 10253 test -z "$ac_c_werror_flag" || 10254 test ! -s conftest.err 10255 } && test -s conftest$ac_exeext && { 10256 test "$cross_compiling" = yes || 10257 $as_test_x conftest$ac_exeext 10258 }; then 10259 ac_cv_lib_dl_dlopen=yes 10260else 10261 $as_echo "$as_me: failed program was:" >&5 10262sed 's/^/| /' conftest.$ac_ext >&5 10263 10264 ac_cv_lib_dl_dlopen=no 10265fi 10266 10267rm -rf conftest.dSYM 10268rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10269 conftest$ac_exeext conftest.$ac_ext 10270LIBS=$ac_check_lib_save_LIBS 10271fi 10272{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10273$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10274if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10275 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10276else 10277 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10278$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10279if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10280 $as_echo_n "(cached) " >&6 10281else 10282 ac_check_lib_save_LIBS=$LIBS 10283LIBS="-lsvld $LIBS" 10284cat >conftest.$ac_ext <<_ACEOF 10285/* confdefs.h. */ 10286_ACEOF 10287cat confdefs.h >>conftest.$ac_ext 10288cat >>conftest.$ac_ext <<_ACEOF 10289/* end confdefs.h. */ 10290 10291/* Override any GCC internal prototype to avoid an error. 10292 Use char because int might match the return type of a GCC 10293 builtin and then its argument prototype would still apply. */ 10294#ifdef __cplusplus 10295extern "C" 10296#endif 10297char dlopen (); 10298int 10299main () 10300{ 10301return dlopen (); 10302 ; 10303 return 0; 10304} 10305_ACEOF 10306rm -f conftest.$ac_objext conftest$ac_exeext 10307if { (ac_try="$ac_link" 10308case "(($ac_try" in 10309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10310 *) ac_try_echo=$ac_try;; 10311esac 10312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10313$as_echo "$ac_try_echo") >&5 10314 (eval "$ac_link") 2>conftest.er1 10315 ac_status=$? 10316 grep -v '^ *+' conftest.er1 >conftest.err 10317 rm -f conftest.er1 10318 cat conftest.err >&5 10319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10320 (exit $ac_status); } && { 10321 test -z "$ac_c_werror_flag" || 10322 test ! -s conftest.err 10323 } && test -s conftest$ac_exeext && { 10324 test "$cross_compiling" = yes || 10325 $as_test_x conftest$ac_exeext 10326 }; then 10327 ac_cv_lib_svld_dlopen=yes 10328else 10329 $as_echo "$as_me: failed program was:" >&5 10330sed 's/^/| /' conftest.$ac_ext >&5 10331 10332 ac_cv_lib_svld_dlopen=no 10333fi 10334 10335rm -rf conftest.dSYM 10336rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10337 conftest$ac_exeext conftest.$ac_ext 10338LIBS=$ac_check_lib_save_LIBS 10339fi 10340{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10341$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10342if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10343 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10344else 10345 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10346$as_echo_n "checking for dld_link in -ldld... " >&6; } 10347if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10348 $as_echo_n "(cached) " >&6 10349else 10350 ac_check_lib_save_LIBS=$LIBS 10351LIBS="-ldld $LIBS" 10352cat >conftest.$ac_ext <<_ACEOF 10353/* confdefs.h. */ 10354_ACEOF 10355cat confdefs.h >>conftest.$ac_ext 10356cat >>conftest.$ac_ext <<_ACEOF 10357/* end confdefs.h. */ 10358 10359/* Override any GCC internal prototype to avoid an error. 10360 Use char because int might match the return type of a GCC 10361 builtin and then its argument prototype would still apply. */ 10362#ifdef __cplusplus 10363extern "C" 10364#endif 10365char dld_link (); 10366int 10367main () 10368{ 10369return dld_link (); 10370 ; 10371 return 0; 10372} 10373_ACEOF 10374rm -f conftest.$ac_objext conftest$ac_exeext 10375if { (ac_try="$ac_link" 10376case "(($ac_try" in 10377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10378 *) ac_try_echo=$ac_try;; 10379esac 10380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10381$as_echo "$ac_try_echo") >&5 10382 (eval "$ac_link") 2>conftest.er1 10383 ac_status=$? 10384 grep -v '^ *+' conftest.er1 >conftest.err 10385 rm -f conftest.er1 10386 cat conftest.err >&5 10387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10388 (exit $ac_status); } && { 10389 test -z "$ac_c_werror_flag" || 10390 test ! -s conftest.err 10391 } && test -s conftest$ac_exeext && { 10392 test "$cross_compiling" = yes || 10393 $as_test_x conftest$ac_exeext 10394 }; then 10395 ac_cv_lib_dld_dld_link=yes 10396else 10397 $as_echo "$as_me: failed program was:" >&5 10398sed 's/^/| /' conftest.$ac_ext >&5 10399 10400 ac_cv_lib_dld_dld_link=no 10401fi 10402 10403rm -rf conftest.dSYM 10404rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10405 conftest$ac_exeext conftest.$ac_ext 10406LIBS=$ac_check_lib_save_LIBS 10407fi 10408{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10409$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10410if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10411 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10412fi 10413 10414 10415fi 10416 10417 10418fi 10419 10420 10421fi 10422 10423 10424fi 10425 10426 10427fi 10428 10429 ;; 10430 esac 10431 10432 if test "x$lt_cv_dlopen" != xno; then 10433 enable_dlopen=yes 10434 else 10435 enable_dlopen=no 10436 fi 10437 10438 case $lt_cv_dlopen in 10439 dlopen) 10440 save_CPPFLAGS="$CPPFLAGS" 10441 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10442 10443 save_LDFLAGS="$LDFLAGS" 10444 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10445 10446 save_LIBS="$LIBS" 10447 LIBS="$lt_cv_dlopen_libs $LIBS" 10448 10449 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10450$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10451if test "${lt_cv_dlopen_self+set}" = set; then 10452 $as_echo_n "(cached) " >&6 10453else 10454 if test "$cross_compiling" = yes; then : 10455 lt_cv_dlopen_self=cross 10456else 10457 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10458 lt_status=$lt_dlunknown 10459 cat > conftest.$ac_ext <<EOF 10460#line 10460 "configure" 10461#include "confdefs.h" 10462 10463#if HAVE_DLFCN_H 10464#include <dlfcn.h> 10465#endif 10466 10467#include <stdio.h> 10468 10469#ifdef RTLD_GLOBAL 10470# define LT_DLGLOBAL RTLD_GLOBAL 10471#else 10472# ifdef DL_GLOBAL 10473# define LT_DLGLOBAL DL_GLOBAL 10474# else 10475# define LT_DLGLOBAL 0 10476# endif 10477#endif 10478 10479/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10480 find out it does not work in some platform. */ 10481#ifndef LT_DLLAZY_OR_NOW 10482# ifdef RTLD_LAZY 10483# define LT_DLLAZY_OR_NOW RTLD_LAZY 10484# else 10485# ifdef DL_LAZY 10486# define LT_DLLAZY_OR_NOW DL_LAZY 10487# else 10488# ifdef RTLD_NOW 10489# define LT_DLLAZY_OR_NOW RTLD_NOW 10490# else 10491# ifdef DL_NOW 10492# define LT_DLLAZY_OR_NOW DL_NOW 10493# else 10494# define LT_DLLAZY_OR_NOW 0 10495# endif 10496# endif 10497# endif 10498# endif 10499#endif 10500 10501#ifdef __cplusplus 10502extern "C" void exit (int); 10503#endif 10504 10505void fnord() { int i=42;} 10506int main () 10507{ 10508 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10509 int status = $lt_dlunknown; 10510 10511 if (self) 10512 { 10513 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10514 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10515 /* dlclose (self); */ 10516 } 10517 else 10518 puts (dlerror ()); 10519 10520 exit (status); 10521} 10522EOF 10523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10524 (eval $ac_link) 2>&5 10525 ac_status=$? 10526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10527 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10528 (./conftest; exit; ) >&5 2>/dev/null 10529 lt_status=$? 10530 case x$lt_status in 10531 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10532 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10533 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10534 esac 10535 else : 10536 # compilation failed 10537 lt_cv_dlopen_self=no 10538 fi 10539fi 10540rm -fr conftest* 10541 10542 10543fi 10544{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10545$as_echo "$lt_cv_dlopen_self" >&6; } 10546 10547 if test "x$lt_cv_dlopen_self" = xyes; then 10548 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10549 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10550$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10551if test "${lt_cv_dlopen_self_static+set}" = set; then 10552 $as_echo_n "(cached) " >&6 10553else 10554 if test "$cross_compiling" = yes; then : 10555 lt_cv_dlopen_self_static=cross 10556else 10557 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10558 lt_status=$lt_dlunknown 10559 cat > conftest.$ac_ext <<EOF 10560#line 10560 "configure" 10561#include "confdefs.h" 10562 10563#if HAVE_DLFCN_H 10564#include <dlfcn.h> 10565#endif 10566 10567#include <stdio.h> 10568 10569#ifdef RTLD_GLOBAL 10570# define LT_DLGLOBAL RTLD_GLOBAL 10571#else 10572# ifdef DL_GLOBAL 10573# define LT_DLGLOBAL DL_GLOBAL 10574# else 10575# define LT_DLGLOBAL 0 10576# endif 10577#endif 10578 10579/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10580 find out it does not work in some platform. */ 10581#ifndef LT_DLLAZY_OR_NOW 10582# ifdef RTLD_LAZY 10583# define LT_DLLAZY_OR_NOW RTLD_LAZY 10584# else 10585# ifdef DL_LAZY 10586# define LT_DLLAZY_OR_NOW DL_LAZY 10587# else 10588# ifdef RTLD_NOW 10589# define LT_DLLAZY_OR_NOW RTLD_NOW 10590# else 10591# ifdef DL_NOW 10592# define LT_DLLAZY_OR_NOW DL_NOW 10593# else 10594# define LT_DLLAZY_OR_NOW 0 10595# endif 10596# endif 10597# endif 10598# endif 10599#endif 10600 10601#ifdef __cplusplus 10602extern "C" void exit (int); 10603#endif 10604 10605void fnord() { int i=42;} 10606int main () 10607{ 10608 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10609 int status = $lt_dlunknown; 10610 10611 if (self) 10612 { 10613 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10614 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10615 /* dlclose (self); */ 10616 } 10617 else 10618 puts (dlerror ()); 10619 10620 exit (status); 10621} 10622EOF 10623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10624 (eval $ac_link) 2>&5 10625 ac_status=$? 10626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10627 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10628 (./conftest; exit; ) >&5 2>/dev/null 10629 lt_status=$? 10630 case x$lt_status in 10631 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10632 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10633 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10634 esac 10635 else : 10636 # compilation failed 10637 lt_cv_dlopen_self_static=no 10638 fi 10639fi 10640rm -fr conftest* 10641 10642 10643fi 10644{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10645$as_echo "$lt_cv_dlopen_self_static" >&6; } 10646 fi 10647 10648 CPPFLAGS="$save_CPPFLAGS" 10649 LDFLAGS="$save_LDFLAGS" 10650 LIBS="$save_LIBS" 10651 ;; 10652 esac 10653 10654 case $lt_cv_dlopen_self in 10655 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10656 *) enable_dlopen_self=unknown ;; 10657 esac 10658 10659 case $lt_cv_dlopen_self_static in 10660 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10661 *) enable_dlopen_self_static=unknown ;; 10662 esac 10663fi 10664 10665 10666# Report which library types will actually be built 10667{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10668$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10669{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 10670$as_echo "$can_build_shared" >&6; } 10671 10672{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10673$as_echo_n "checking whether to build shared libraries... " >&6; } 10674test "$can_build_shared" = "no" && enable_shared=no 10675 10676# On AIX, shared libraries and static libraries use the same namespace, and 10677# are all built from PIC. 10678case $host_os in 10679aix3*) 10680 test "$enable_shared" = yes && enable_static=no 10681 if test -n "$RANLIB"; then 10682 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10683 postinstall_cmds='$RANLIB $lib' 10684 fi 10685 ;; 10686 10687aix[4-9]*) 10688 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10689 test "$enable_shared" = yes && enable_static=no 10690 fi 10691 ;; 10692esac 10693{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 10694$as_echo "$enable_shared" >&6; } 10695 10696{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10697$as_echo_n "checking whether to build static libraries... " >&6; } 10698# Make sure either enable_shared or enable_static is yes. 10699test "$enable_shared" = yes || enable_static=yes 10700{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 10701$as_echo "$enable_static" >&6; } 10702 10703# The else clause should only fire when bootstrapping the 10704# libtool distribution, otherwise you forgot to ship ltmain.sh 10705# with your package, and you will get complaints that there are 10706# no rules to generate ltmain.sh. 10707if test -f "$ltmain"; then 10708 # See if we are running on zsh, and set the options which allow our commands through 10709 # without removal of \ escapes. 10710 if test -n "${ZSH_VERSION+set}" ; then 10711 setopt NO_GLOB_SUBST 10712 fi 10713 # Now quote all the things that may contain metacharacters while being 10714 # careful not to overquote the AC_SUBSTed values. We take copies of the 10715 # variables and quote the copies for generation of the libtool script. 10716 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10717 SED SHELL STRIP \ 10718 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10719 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10720 deplibs_check_method reload_flag reload_cmds need_locks \ 10721 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10722 lt_cv_sys_global_symbol_to_c_name_address \ 10723 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10724 old_postinstall_cmds old_postuninstall_cmds \ 10725 compiler \ 10726 CC \ 10727 LD \ 10728 lt_prog_compiler_wl \ 10729 lt_prog_compiler_pic \ 10730 lt_prog_compiler_static \ 10731 lt_prog_compiler_no_builtin_flag \ 10732 export_dynamic_flag_spec \ 10733 thread_safe_flag_spec \ 10734 whole_archive_flag_spec \ 10735 enable_shared_with_static_runtimes \ 10736 old_archive_cmds \ 10737 old_archive_from_new_cmds \ 10738 predep_objects \ 10739 postdep_objects \ 10740 predeps \ 10741 postdeps \ 10742 compiler_lib_search_path \ 10743 compiler_lib_search_dirs \ 10744 archive_cmds \ 10745 archive_expsym_cmds \ 10746 postinstall_cmds \ 10747 postuninstall_cmds \ 10748 old_archive_from_expsyms_cmds \ 10749 allow_undefined_flag \ 10750 no_undefined_flag \ 10751 export_symbols_cmds \ 10752 hardcode_libdir_flag_spec \ 10753 hardcode_libdir_flag_spec_ld \ 10754 hardcode_libdir_separator \ 10755 hardcode_automatic \ 10756 module_cmds \ 10757 module_expsym_cmds \ 10758 lt_cv_prog_compiler_c_o \ 10759 fix_srcfile_path \ 10760 exclude_expsyms \ 10761 include_expsyms; do 10762 10763 case $var in 10764 old_archive_cmds | \ 10765 old_archive_from_new_cmds | \ 10766 archive_cmds | \ 10767 archive_expsym_cmds | \ 10768 module_cmds | \ 10769 module_expsym_cmds | \ 10770 old_archive_from_expsyms_cmds | \ 10771 export_symbols_cmds | \ 10772 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10773 postinstall_cmds | postuninstall_cmds | \ 10774 old_postinstall_cmds | old_postuninstall_cmds | \ 10775 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10776 # Double-quote double-evaled strings. 10777 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10778 ;; 10779 *) 10780 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10781 ;; 10782 esac 10783 done 10784 10785 case $lt_echo in 10786 *'\$0 --fallback-echo"') 10787 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10788 ;; 10789 esac 10790 10791cfgfile="${ofile}T" 10792 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10793 $rm -f "$cfgfile" 10794 { $as_echo "$as_me:$LINENO: creating $ofile" >&5 10795$as_echo "$as_me: creating $ofile" >&6;} 10796 10797 cat <<__EOF__ >> "$cfgfile" 10798#! $SHELL 10799 10800# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10801# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10802# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10803# 10804# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 10805# Free Software Foundation, Inc. 10806# 10807# This file is part of GNU Libtool: 10808# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10809# 10810# This program is free software; you can redistribute it and/or modify 10811# it under the terms of the GNU General Public License as published by 10812# the Free Software Foundation; either version 2 of the License, or 10813# (at your option) any later version. 10814# 10815# This program is distributed in the hope that it will be useful, but 10816# WITHOUT ANY WARRANTY; without even the implied warranty of 10817# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10818# General Public License for more details. 10819# 10820# You should have received a copy of the GNU General Public License 10821# along with this program; if not, write to the Free Software 10822# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10823# 10824# As a special exception to the GNU General Public License, if you 10825# distribute this file as part of a program that contains a 10826# configuration script generated by Autoconf, you may include it under 10827# the same distribution terms that you use for the rest of that program. 10828 10829# A sed program that does not truncate output. 10830SED=$lt_SED 10831 10832# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10833Xsed="$SED -e 1s/^X//" 10834 10835# The HP-UX ksh and POSIX shell print the target directory to stdout 10836# if CDPATH is set. 10837(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10838 10839# The names of the tagged configurations supported by this script. 10840available_tags= 10841 10842# ### BEGIN LIBTOOL CONFIG 10843 10844# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10845 10846# Shell to use when invoking shell scripts. 10847SHELL=$lt_SHELL 10848 10849# Whether or not to build shared libraries. 10850build_libtool_libs=$enable_shared 10851 10852# Whether or not to build static libraries. 10853build_old_libs=$enable_static 10854 10855# Whether or not to add -lc for building shared libraries. 10856build_libtool_need_lc=$archive_cmds_need_lc 10857 10858# Whether or not to disallow shared libs when runtime libs are static 10859allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10860 10861# Whether or not to optimize for fast installation. 10862fast_install=$enable_fast_install 10863 10864# The host system. 10865host_alias=$host_alias 10866host=$host 10867host_os=$host_os 10868 10869# The build system. 10870build_alias=$build_alias 10871build=$build 10872build_os=$build_os 10873 10874# An echo program that does not interpret backslashes. 10875echo=$lt_echo 10876 10877# The archiver. 10878AR=$lt_AR 10879AR_FLAGS=$lt_AR_FLAGS 10880 10881# A C compiler. 10882LTCC=$lt_LTCC 10883 10884# LTCC compiler flags. 10885LTCFLAGS=$lt_LTCFLAGS 10886 10887# A language-specific compiler. 10888CC=$lt_compiler 10889 10890# Is the compiler the GNU C compiler? 10891with_gcc=$GCC 10892 10893# An ERE matcher. 10894EGREP=$lt_EGREP 10895 10896# The linker used to build libraries. 10897LD=$lt_LD 10898 10899# Whether we need hard or soft links. 10900LN_S=$lt_LN_S 10901 10902# A BSD-compatible nm program. 10903NM=$lt_NM 10904 10905# A symbol stripping program 10906STRIP=$lt_STRIP 10907 10908# Used to examine libraries when file_magic_cmd begins "file" 10909MAGIC_CMD=$MAGIC_CMD 10910 10911# Used on cygwin: DLL creation program. 10912DLLTOOL="$DLLTOOL" 10913 10914# Used on cygwin: object dumper. 10915OBJDUMP="$OBJDUMP" 10916 10917# Used on cygwin: assembler. 10918AS="$AS" 10919 10920# The name of the directory that contains temporary libtool files. 10921objdir=$objdir 10922 10923# How to create reloadable object files. 10924reload_flag=$lt_reload_flag 10925reload_cmds=$lt_reload_cmds 10926 10927# How to pass a linker flag through the compiler. 10928wl=$lt_lt_prog_compiler_wl 10929 10930# Object file suffix (normally "o"). 10931objext="$ac_objext" 10932 10933# Old archive suffix (normally "a"). 10934libext="$libext" 10935 10936# Shared library suffix (normally ".so"). 10937shrext_cmds='$shrext_cmds' 10938 10939# Executable file suffix (normally ""). 10940exeext="$exeext" 10941 10942# Additional compiler flags for building library objects. 10943pic_flag=$lt_lt_prog_compiler_pic 10944pic_mode=$pic_mode 10945 10946# What is the maximum length of a command? 10947max_cmd_len=$lt_cv_sys_max_cmd_len 10948 10949# Does compiler simultaneously support -c and -o options? 10950compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10951 10952# Must we lock files when doing compilation? 10953need_locks=$lt_need_locks 10954 10955# Do we need the lib prefix for modules? 10956need_lib_prefix=$need_lib_prefix 10957 10958# Do we need a version for libraries? 10959need_version=$need_version 10960 10961# Whether dlopen is supported. 10962dlopen_support=$enable_dlopen 10963 10964# Whether dlopen of programs is supported. 10965dlopen_self=$enable_dlopen_self 10966 10967# Whether dlopen of statically linked programs is supported. 10968dlopen_self_static=$enable_dlopen_self_static 10969 10970# Compiler flag to prevent dynamic linking. 10971link_static_flag=$lt_lt_prog_compiler_static 10972 10973# Compiler flag to turn off builtin functions. 10974no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10975 10976# Compiler flag to allow reflexive dlopens. 10977export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10978 10979# Compiler flag to generate shared objects directly from archives. 10980whole_archive_flag_spec=$lt_whole_archive_flag_spec 10981 10982# Compiler flag to generate thread-safe objects. 10983thread_safe_flag_spec=$lt_thread_safe_flag_spec 10984 10985# Library versioning type. 10986version_type=$version_type 10987 10988# Format of library name prefix. 10989libname_spec=$lt_libname_spec 10990 10991# List of archive names. First name is the real one, the rest are links. 10992# The last name is the one that the linker finds with -lNAME. 10993library_names_spec=$lt_library_names_spec 10994 10995# The coded name of the library, if different from the real name. 10996soname_spec=$lt_soname_spec 10997 10998# Commands used to build and install an old-style archive. 10999RANLIB=$lt_RANLIB 11000old_archive_cmds=$lt_old_archive_cmds 11001old_postinstall_cmds=$lt_old_postinstall_cmds 11002old_postuninstall_cmds=$lt_old_postuninstall_cmds 11003 11004# Create an old-style archive from a shared archive. 11005old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 11006 11007# Create a temporary old-style archive to link instead of a shared archive. 11008old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 11009 11010# Commands used to build and install a shared archive. 11011archive_cmds=$lt_archive_cmds 11012archive_expsym_cmds=$lt_archive_expsym_cmds 11013postinstall_cmds=$lt_postinstall_cmds 11014postuninstall_cmds=$lt_postuninstall_cmds 11015 11016# Commands used to build a loadable module (assumed same as above if empty) 11017module_cmds=$lt_module_cmds 11018module_expsym_cmds=$lt_module_expsym_cmds 11019 11020# Commands to strip libraries. 11021old_striplib=$lt_old_striplib 11022striplib=$lt_striplib 11023 11024# Dependencies to place before the objects being linked to create a 11025# shared library. 11026predep_objects=$lt_predep_objects 11027 11028# Dependencies to place after the objects being linked to create a 11029# shared library. 11030postdep_objects=$lt_postdep_objects 11031 11032# Dependencies to place before the objects being linked to create a 11033# shared library. 11034predeps=$lt_predeps 11035 11036# Dependencies to place after the objects being linked to create a 11037# shared library. 11038postdeps=$lt_postdeps 11039 11040# The directories searched by this compiler when creating a shared 11041# library 11042compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 11043 11044# The library search path used internally by the compiler when linking 11045# a shared library. 11046compiler_lib_search_path=$lt_compiler_lib_search_path 11047 11048# Method to check whether dependent libraries are shared objects. 11049deplibs_check_method=$lt_deplibs_check_method 11050 11051# Command to use when deplibs_check_method == file_magic. 11052file_magic_cmd=$lt_file_magic_cmd 11053 11054# Flag that allows shared libraries with undefined symbols to be built. 11055allow_undefined_flag=$lt_allow_undefined_flag 11056 11057# Flag that forces no undefined symbols. 11058no_undefined_flag=$lt_no_undefined_flag 11059 11060# Commands used to finish a libtool library installation in a directory. 11061finish_cmds=$lt_finish_cmds 11062 11063# Same as above, but a single script fragment to be evaled but not shown. 11064finish_eval=$lt_finish_eval 11065 11066# Take the output of nm and produce a listing of raw symbols and C names. 11067global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11068 11069# Transform the output of nm in a proper C declaration 11070global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11071 11072# Transform the output of nm in a C name address pair 11073global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11074 11075# This is the shared library runtime path variable. 11076runpath_var=$runpath_var 11077 11078# This is the shared library path variable. 11079shlibpath_var=$shlibpath_var 11080 11081# Is shlibpath searched before the hard-coded library search path? 11082shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11083 11084# How to hardcode a shared library path into an executable. 11085hardcode_action=$hardcode_action 11086 11087# Whether we should hardcode library paths into libraries. 11088hardcode_into_libs=$hardcode_into_libs 11089 11090# Flag to hardcode \$libdir into a binary during linking. 11091# This must work even if \$libdir does not exist. 11092hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11093 11094# If ld is used when linking, flag to hardcode \$libdir into 11095# a binary during linking. This must work even if \$libdir does 11096# not exist. 11097hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11098 11099# Whether we need a single -rpath flag with a separated argument. 11100hardcode_libdir_separator=$lt_hardcode_libdir_separator 11101 11102# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11103# resulting binary. 11104hardcode_direct=$hardcode_direct 11105 11106# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11107# resulting binary. 11108hardcode_minus_L=$hardcode_minus_L 11109 11110# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11111# the resulting binary. 11112hardcode_shlibpath_var=$hardcode_shlibpath_var 11113 11114# Set to yes if building a shared library automatically hardcodes DIR into the library 11115# and all subsequent libraries and executables linked against it. 11116hardcode_automatic=$hardcode_automatic 11117 11118# Variables whose values should be saved in libtool wrapper scripts and 11119# restored at relink time. 11120variables_saved_for_relink="$variables_saved_for_relink" 11121 11122# Whether libtool must link a program against all its dependency libraries. 11123link_all_deplibs=$link_all_deplibs 11124 11125# Compile-time system search path for libraries 11126sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11127 11128# Run-time system search path for libraries 11129sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11130 11131# Fix the shell variable \$srcfile for the compiler. 11132fix_srcfile_path=$lt_fix_srcfile_path 11133 11134# Set to yes if exported symbols are required. 11135always_export_symbols=$always_export_symbols 11136 11137# The commands to list exported symbols. 11138export_symbols_cmds=$lt_export_symbols_cmds 11139 11140# The commands to extract the exported symbol list from a shared archive. 11141extract_expsyms_cmds=$lt_extract_expsyms_cmds 11142 11143# Symbols that should not be listed in the preloaded symbols. 11144exclude_expsyms=$lt_exclude_expsyms 11145 11146# Symbols that must always be exported. 11147include_expsyms=$lt_include_expsyms 11148 11149# ### END LIBTOOL CONFIG 11150 11151__EOF__ 11152 11153 11154 case $host_os in 11155 aix3*) 11156 cat <<\EOF >> "$cfgfile" 11157 11158# AIX sometimes has problems with the GCC collect2 program. For some 11159# reason, if we set the COLLECT_NAMES environment variable, the problems 11160# vanish in a puff of smoke. 11161if test "X${COLLECT_NAMES+set}" != Xset; then 11162 COLLECT_NAMES= 11163 export COLLECT_NAMES 11164fi 11165EOF 11166 ;; 11167 esac 11168 11169 # We use sed instead of cat because bash on DJGPP gets confused if 11170 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11171 # text mode, it properly converts lines to CR/LF. This bash problem 11172 # is reportedly fixed, but why not run on old versions too? 11173 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11174 11175 mv -f "$cfgfile" "$ofile" || \ 11176 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11177 chmod +x "$ofile" 11178 11179else 11180 # If there is no Makefile yet, we rely on a make rule to execute 11181 # `config.status --recheck' to rerun these tests and create the 11182 # libtool script then. 11183 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11184 if test -f "$ltmain_in"; then 11185 test -f Makefile && make "$ltmain" 11186 fi 11187fi 11188 11189 11190ac_ext=c 11191ac_cpp='$CPP $CPPFLAGS' 11192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11194ac_compiler_gnu=$ac_cv_c_compiler_gnu 11195 11196CC="$lt_save_CC" 11197 11198 11199# Check whether --with-tags was given. 11200if test "${with_tags+set}" = set; then 11201 withval=$with_tags; tagnames="$withval" 11202fi 11203 11204 11205if test -f "$ltmain" && test -n "$tagnames"; then 11206 if test ! -f "${ofile}"; then 11207 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11208$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11209 fi 11210 11211 if test -z "$LTCC"; then 11212 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11213 if test -z "$LTCC"; then 11214 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11215$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11216 else 11217 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11218$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11219 fi 11220 fi 11221 if test -z "$LTCFLAGS"; then 11222 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11223 fi 11224 11225 # Extract list of available tagged configurations in $ofile. 11226 # Note that this assumes the entire list is on one line. 11227 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11228 11229 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11230 for tagname in $tagnames; do 11231 IFS="$lt_save_ifs" 11232 # Check whether tagname contains only valid characters 11233 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11234 "") ;; 11235 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11236$as_echo "$as_me: error: invalid tag name: $tagname" >&2;} 11237 { (exit 1); exit 1; }; } 11238 ;; 11239 esac 11240 11241 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11242 then 11243 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11244$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11245 { (exit 1); exit 1; }; } 11246 fi 11247 11248 # Update the list of available tags. 11249 if test -n "$tagname"; then 11250 echo appending configuration tag \"$tagname\" to $ofile 11251 11252 case $tagname in 11253 CXX) 11254 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11255 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11256 (test "X$CXX" != "Xg++"))) ; then 11257 ac_ext=cpp 11258ac_cpp='$CXXCPP $CPPFLAGS' 11259ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11260ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11261ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11262 11263 11264 11265 11266archive_cmds_need_lc_CXX=no 11267allow_undefined_flag_CXX= 11268always_export_symbols_CXX=no 11269archive_expsym_cmds_CXX= 11270export_dynamic_flag_spec_CXX= 11271hardcode_direct_CXX=no 11272hardcode_libdir_flag_spec_CXX= 11273hardcode_libdir_flag_spec_ld_CXX= 11274hardcode_libdir_separator_CXX= 11275hardcode_minus_L_CXX=no 11276hardcode_shlibpath_var_CXX=unsupported 11277hardcode_automatic_CXX=no 11278module_cmds_CXX= 11279module_expsym_cmds_CXX= 11280link_all_deplibs_CXX=unknown 11281old_archive_cmds_CXX=$old_archive_cmds 11282no_undefined_flag_CXX= 11283whole_archive_flag_spec_CXX= 11284enable_shared_with_static_runtimes_CXX=no 11285 11286# Dependencies to place before and after the object being linked: 11287predep_objects_CXX= 11288postdep_objects_CXX= 11289predeps_CXX= 11290postdeps_CXX= 11291compiler_lib_search_path_CXX= 11292compiler_lib_search_dirs_CXX= 11293 11294# Source file extension for C++ test sources. 11295ac_ext=cpp 11296 11297# Object file extension for compiled C++ test sources. 11298objext=o 11299objext_CXX=$objext 11300 11301# Code to be used in simple compile tests 11302lt_simple_compile_test_code="int some_variable = 0;" 11303 11304# Code to be used in simple link tests 11305lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11306 11307# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11308 11309# If no C compiler was specified, use CC. 11310LTCC=${LTCC-"$CC"} 11311 11312# If no C compiler flags were specified, use CFLAGS. 11313LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11314 11315# Allow CC to be a program name with arguments. 11316compiler=$CC 11317 11318 11319# save warnings/boilerplate of simple test code 11320ac_outfile=conftest.$ac_objext 11321echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11322eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11323_lt_compiler_boilerplate=`cat conftest.err` 11324$rm conftest* 11325 11326ac_outfile=conftest.$ac_objext 11327echo "$lt_simple_link_test_code" >conftest.$ac_ext 11328eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11329_lt_linker_boilerplate=`cat conftest.err` 11330$rm -r conftest* 11331 11332 11333# Allow CC to be a program name with arguments. 11334lt_save_CC=$CC 11335lt_save_LD=$LD 11336lt_save_GCC=$GCC 11337GCC=$GXX 11338lt_save_with_gnu_ld=$with_gnu_ld 11339lt_save_path_LD=$lt_cv_path_LD 11340if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11341 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11342else 11343 $as_unset lt_cv_prog_gnu_ld 11344fi 11345if test -n "${lt_cv_path_LDCXX+set}"; then 11346 lt_cv_path_LD=$lt_cv_path_LDCXX 11347else 11348 $as_unset lt_cv_path_LD 11349fi 11350test -z "${LDCXX+set}" || LD=$LDCXX 11351CC=${CXX-"c++"} 11352compiler=$CC 11353compiler_CXX=$CC 11354for cc_temp in $compiler""; do 11355 case $cc_temp in 11356 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11357 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11358 \-*) ;; 11359 *) break;; 11360 esac 11361done 11362cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11363 11364 11365# We don't want -fno-exception wen compiling C++ code, so set the 11366# no_builtin_flag separately 11367if test "$GXX" = yes; then 11368 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11369else 11370 lt_prog_compiler_no_builtin_flag_CXX= 11371fi 11372 11373if test "$GXX" = yes; then 11374 # Set up default GNU C++ configuration 11375 11376 11377# Check whether --with-gnu-ld was given. 11378if test "${with_gnu_ld+set}" = set; then 11379 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11380else 11381 with_gnu_ld=no 11382fi 11383 11384ac_prog=ld 11385if test "$GCC" = yes; then 11386 # Check if gcc -print-prog-name=ld gives a path. 11387 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11388$as_echo_n "checking for ld used by $CC... " >&6; } 11389 case $host in 11390 *-*-mingw*) 11391 # gcc leaves a trailing carriage return which upsets mingw 11392 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11393 *) 11394 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11395 esac 11396 case $ac_prog in 11397 # Accept absolute paths. 11398 [\\/]* | ?:[\\/]*) 11399 re_direlt='/[^/][^/]*/\.\./' 11400 # Canonicalize the pathname of ld 11401 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11402 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11403 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11404 done 11405 test -z "$LD" && LD="$ac_prog" 11406 ;; 11407 "") 11408 # If it fails, then pretend we aren't using GCC. 11409 ac_prog=ld 11410 ;; 11411 *) 11412 # If it is relative, then search for the first ld in PATH. 11413 with_gnu_ld=unknown 11414 ;; 11415 esac 11416elif test "$with_gnu_ld" = yes; then 11417 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 11418$as_echo_n "checking for GNU ld... " >&6; } 11419else 11420 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11421$as_echo_n "checking for non-GNU ld... " >&6; } 11422fi 11423if test "${lt_cv_path_LD+set}" = set; then 11424 $as_echo_n "(cached) " >&6 11425else 11426 if test -z "$LD"; then 11427 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11428 for ac_dir in $PATH; do 11429 IFS="$lt_save_ifs" 11430 test -z "$ac_dir" && ac_dir=. 11431 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11432 lt_cv_path_LD="$ac_dir/$ac_prog" 11433 # Check to see if the program is GNU ld. I'd rather use --version, 11434 # but apparently some variants of GNU ld only accept -v. 11435 # Break only if it was the GNU/non-GNU ld that we prefer. 11436 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11437 *GNU* | *'with BFD'*) 11438 test "$with_gnu_ld" != no && break 11439 ;; 11440 *) 11441 test "$with_gnu_ld" != yes && break 11442 ;; 11443 esac 11444 fi 11445 done 11446 IFS="$lt_save_ifs" 11447else 11448 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11449fi 11450fi 11451 11452LD="$lt_cv_path_LD" 11453if test -n "$LD"; then 11454 { $as_echo "$as_me:$LINENO: result: $LD" >&5 11455$as_echo "$LD" >&6; } 11456else 11457 { $as_echo "$as_me:$LINENO: result: no" >&5 11458$as_echo "no" >&6; } 11459fi 11460test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11461$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11462 { (exit 1); exit 1; }; } 11463{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11464$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11465if test "${lt_cv_prog_gnu_ld+set}" = set; then 11466 $as_echo_n "(cached) " >&6 11467else 11468 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11469case `$LD -v 2>&1 </dev/null` in 11470*GNU* | *'with BFD'*) 11471 lt_cv_prog_gnu_ld=yes 11472 ;; 11473*) 11474 lt_cv_prog_gnu_ld=no 11475 ;; 11476esac 11477fi 11478{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11479$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11480with_gnu_ld=$lt_cv_prog_gnu_ld 11481 11482 11483 11484 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11485 # archiving commands below assume that GNU ld is being used. 11486 if test "$with_gnu_ld" = yes; then 11487 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11488 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' 11489 11490 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11491 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11492 11493 # If archive_cmds runs LD, not CC, wlarc should be empty 11494 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11495 # investigate it a little bit more. (MM) 11496 wlarc='${wl}' 11497 11498 # ancient GNU ld didn't support --whole-archive et. al. 11499 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11500 grep 'no-whole-archive' > /dev/null; then 11501 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11502 else 11503 whole_archive_flag_spec_CXX= 11504 fi 11505 else 11506 with_gnu_ld=no 11507 wlarc= 11508 11509 # A generic and very simple default shared library creation 11510 # command for GNU C++ for the case where it uses the native 11511 # linker, instead of GNU ld. If possible, this setting should 11512 # overridden to take advantage of the native linker features on 11513 # the platform it is being used on. 11514 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11515 fi 11516 11517 # Commands to make compiler produce verbose output that lists 11518 # what "hidden" libraries, object files and flags are used when 11519 # linking a shared library. 11520 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11521 11522else 11523 GXX=no 11524 with_gnu_ld=no 11525 wlarc= 11526fi 11527 11528# PORTME: fill in a description of your system's C++ link characteristics 11529{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11530$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11531ld_shlibs_CXX=yes 11532case $host_os in 11533 aix3*) 11534 # FIXME: insert proper C++ library support 11535 ld_shlibs_CXX=no 11536 ;; 11537 aix[4-9]*) 11538 if test "$host_cpu" = ia64; then 11539 # On IA64, the linker does run time linking by default, so we don't 11540 # have to do anything special. 11541 aix_use_runtimelinking=no 11542 exp_sym_flag='-Bexport' 11543 no_entry_flag="" 11544 else 11545 aix_use_runtimelinking=no 11546 11547 # Test if we are trying to use run time linking or normal 11548 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11549 # need to do runtime linking. 11550 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11551 for ld_flag in $LDFLAGS; do 11552 case $ld_flag in 11553 *-brtl*) 11554 aix_use_runtimelinking=yes 11555 break 11556 ;; 11557 esac 11558 done 11559 ;; 11560 esac 11561 11562 exp_sym_flag='-bexport' 11563 no_entry_flag='-bnoentry' 11564 fi 11565 11566 # When large executables or shared objects are built, AIX ld can 11567 # have problems creating the table of contents. If linking a library 11568 # or program results in "error TOC overflow" add -mminimal-toc to 11569 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11570 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11571 11572 archive_cmds_CXX='' 11573 hardcode_direct_CXX=yes 11574 hardcode_libdir_separator_CXX=':' 11575 link_all_deplibs_CXX=yes 11576 11577 if test "$GXX" = yes; then 11578 case $host_os in aix4.[012]|aix4.[012].*) 11579 # We only want to do this on AIX 4.2 and lower, the check 11580 # below for broken collect2 doesn't work under 4.3+ 11581 collect2name=`${CC} -print-prog-name=collect2` 11582 if test -f "$collect2name" && \ 11583 strings "$collect2name" | grep resolve_lib_name >/dev/null 11584 then 11585 # We have reworked collect2 11586 : 11587 else 11588 # We have old collect2 11589 hardcode_direct_CXX=unsupported 11590 # It fails to find uninstalled libraries when the uninstalled 11591 # path is not listed in the libpath. Setting hardcode_minus_L 11592 # to unsupported forces relinking 11593 hardcode_minus_L_CXX=yes 11594 hardcode_libdir_flag_spec_CXX='-L$libdir' 11595 hardcode_libdir_separator_CXX= 11596 fi 11597 ;; 11598 esac 11599 shared_flag='-shared' 11600 if test "$aix_use_runtimelinking" = yes; then 11601 shared_flag="$shared_flag "'${wl}-G' 11602 fi 11603 else 11604 # not using gcc 11605 if test "$host_cpu" = ia64; then 11606 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11607 # chokes on -Wl,-G. The following line is correct: 11608 shared_flag='-G' 11609 else 11610 if test "$aix_use_runtimelinking" = yes; then 11611 shared_flag='${wl}-G' 11612 else 11613 shared_flag='${wl}-bM:SRE' 11614 fi 11615 fi 11616 fi 11617 11618 # It seems that -bexpall does not export symbols beginning with 11619 # underscore (_), so it is better to generate a list of symbols to export. 11620 always_export_symbols_CXX=yes 11621 if test "$aix_use_runtimelinking" = yes; then 11622 # Warning - without using the other runtime loading flags (-brtl), 11623 # -berok will link without error, but may produce a broken library. 11624 allow_undefined_flag_CXX='-berok' 11625 # Determine the default libpath from the value encoded in an empty executable. 11626 cat >conftest.$ac_ext <<_ACEOF 11627/* confdefs.h. */ 11628_ACEOF 11629cat confdefs.h >>conftest.$ac_ext 11630cat >>conftest.$ac_ext <<_ACEOF 11631/* end confdefs.h. */ 11632 11633int 11634main () 11635{ 11636 11637 ; 11638 return 0; 11639} 11640_ACEOF 11641rm -f conftest.$ac_objext conftest$ac_exeext 11642if { (ac_try="$ac_link" 11643case "(($ac_try" in 11644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11645 *) ac_try_echo=$ac_try;; 11646esac 11647eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11648$as_echo "$ac_try_echo") >&5 11649 (eval "$ac_link") 2>conftest.er1 11650 ac_status=$? 11651 grep -v '^ *+' conftest.er1 >conftest.err 11652 rm -f conftest.er1 11653 cat conftest.err >&5 11654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11655 (exit $ac_status); } && { 11656 test -z "$ac_cxx_werror_flag" || 11657 test ! -s conftest.err 11658 } && test -s conftest$ac_exeext && { 11659 test "$cross_compiling" = yes || 11660 $as_test_x conftest$ac_exeext 11661 }; then 11662 11663lt_aix_libpath_sed=' 11664 /Import File Strings/,/^$/ { 11665 /^0/ { 11666 s/^0 *\(.*\)$/\1/ 11667 p 11668 } 11669 }' 11670aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11671# Check for a 64-bit object if we didn't find anything. 11672if test -z "$aix_libpath"; then 11673 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11674fi 11675else 11676 $as_echo "$as_me: failed program was:" >&5 11677sed 's/^/| /' conftest.$ac_ext >&5 11678 11679 11680fi 11681 11682rm -rf conftest.dSYM 11683rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11684 conftest$ac_exeext conftest.$ac_ext 11685if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11686 11687 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11688 11689 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" 11690 else 11691 if test "$host_cpu" = ia64; then 11692 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11693 allow_undefined_flag_CXX="-z nodefs" 11694 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" 11695 else 11696 # Determine the default libpath from the value encoded in an empty executable. 11697 cat >conftest.$ac_ext <<_ACEOF 11698/* confdefs.h. */ 11699_ACEOF 11700cat confdefs.h >>conftest.$ac_ext 11701cat >>conftest.$ac_ext <<_ACEOF 11702/* end confdefs.h. */ 11703 11704int 11705main () 11706{ 11707 11708 ; 11709 return 0; 11710} 11711_ACEOF 11712rm -f conftest.$ac_objext conftest$ac_exeext 11713if { (ac_try="$ac_link" 11714case "(($ac_try" in 11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11716 *) ac_try_echo=$ac_try;; 11717esac 11718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11719$as_echo "$ac_try_echo") >&5 11720 (eval "$ac_link") 2>conftest.er1 11721 ac_status=$? 11722 grep -v '^ *+' conftest.er1 >conftest.err 11723 rm -f conftest.er1 11724 cat conftest.err >&5 11725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11726 (exit $ac_status); } && { 11727 test -z "$ac_cxx_werror_flag" || 11728 test ! -s conftest.err 11729 } && test -s conftest$ac_exeext && { 11730 test "$cross_compiling" = yes || 11731 $as_test_x conftest$ac_exeext 11732 }; then 11733 11734lt_aix_libpath_sed=' 11735 /Import File Strings/,/^$/ { 11736 /^0/ { 11737 s/^0 *\(.*\)$/\1/ 11738 p 11739 } 11740 }' 11741aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11742# Check for a 64-bit object if we didn't find anything. 11743if test -z "$aix_libpath"; then 11744 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11745fi 11746else 11747 $as_echo "$as_me: failed program was:" >&5 11748sed 's/^/| /' conftest.$ac_ext >&5 11749 11750 11751fi 11752 11753rm -rf conftest.dSYM 11754rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11755 conftest$ac_exeext conftest.$ac_ext 11756if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11757 11758 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11759 # Warning - without using the other run time loading flags, 11760 # -berok will link without error, but may produce a broken library. 11761 no_undefined_flag_CXX=' ${wl}-bernotok' 11762 allow_undefined_flag_CXX=' ${wl}-berok' 11763 # Exported symbols can be pulled into shared objects from archives 11764 whole_archive_flag_spec_CXX='$convenience' 11765 archive_cmds_need_lc_CXX=yes 11766 # This is similar to how AIX traditionally builds its shared libraries. 11767 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' 11768 fi 11769 fi 11770 ;; 11771 11772 beos*) 11773 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11774 allow_undefined_flag_CXX=unsupported 11775 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11776 # support --undefined. This deserves some investigation. FIXME 11777 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11778 else 11779 ld_shlibs_CXX=no 11780 fi 11781 ;; 11782 11783 chorus*) 11784 case $cc_basename in 11785 *) 11786 # FIXME: insert proper C++ library support 11787 ld_shlibs_CXX=no 11788 ;; 11789 esac 11790 ;; 11791 11792 cygwin* | mingw* | pw32*) 11793 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11794 # as there is no search path for DLLs. 11795 hardcode_libdir_flag_spec_CXX='-L$libdir' 11796 allow_undefined_flag_CXX=unsupported 11797 always_export_symbols_CXX=no 11798 enable_shared_with_static_runtimes_CXX=yes 11799 11800 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11801 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' 11802 # If the export-symbols file already is a .def file (1st line 11803 # is EXPORTS), use it as is; otherwise, prepend... 11804 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11805 cp $export_symbols $output_objdir/$soname.def; 11806 else 11807 echo EXPORTS > $output_objdir/$soname.def; 11808 cat $export_symbols >> $output_objdir/$soname.def; 11809 fi~ 11810 $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' 11811 else 11812 ld_shlibs_CXX=no 11813 fi 11814 ;; 11815 darwin* | rhapsody*) 11816 archive_cmds_need_lc_CXX=no 11817 hardcode_direct_CXX=no 11818 hardcode_automatic_CXX=yes 11819 hardcode_shlibpath_var_CXX=unsupported 11820 whole_archive_flag_spec_CXX='' 11821 link_all_deplibs_CXX=yes 11822 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11823 if test "$GXX" = yes ; then 11824 output_verbose_link_cmd='echo' 11825 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}" 11826 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11827 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}" 11828 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}" 11829 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11830 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}" 11831 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}" 11832 fi 11833 else 11834 case $cc_basename in 11835 xlc*) 11836 output_verbose_link_cmd='echo' 11837 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' 11838 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11839 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11840 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}' 11841 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}' 11842 ;; 11843 *) 11844 ld_shlibs_CXX=no 11845 ;; 11846 esac 11847 fi 11848 ;; 11849 11850 dgux*) 11851 case $cc_basename in 11852 ec++*) 11853 # FIXME: insert proper C++ library support 11854 ld_shlibs_CXX=no 11855 ;; 11856 ghcx*) 11857 # Green Hills C++ Compiler 11858 # FIXME: insert proper C++ library support 11859 ld_shlibs_CXX=no 11860 ;; 11861 *) 11862 # FIXME: insert proper C++ library support 11863 ld_shlibs_CXX=no 11864 ;; 11865 esac 11866 ;; 11867 freebsd[12]*) 11868 # C++ shared libraries reported to be fairly broken before switch to ELF 11869 ld_shlibs_CXX=no 11870 ;; 11871 freebsd-elf*) 11872 archive_cmds_need_lc_CXX=no 11873 ;; 11874 freebsd* | dragonfly*) 11875 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11876 # conventions 11877 ld_shlibs_CXX=yes 11878 ;; 11879 gnu*) 11880 ;; 11881 hpux9*) 11882 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11883 hardcode_libdir_separator_CXX=: 11884 export_dynamic_flag_spec_CXX='${wl}-E' 11885 hardcode_direct_CXX=yes 11886 hardcode_minus_L_CXX=yes # Not in the search PATH, 11887 # but as the default 11888 # location of the library. 11889 11890 case $cc_basename in 11891 CC*) 11892 # FIXME: insert proper C++ library support 11893 ld_shlibs_CXX=no 11894 ;; 11895 aCC*) 11896 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' 11897 # Commands to make compiler produce verbose output that lists 11898 # what "hidden" libraries, object files and flags are used when 11899 # linking a shared library. 11900 # 11901 # There doesn't appear to be a way to prevent this compiler from 11902 # explicitly linking system object files so we need to strip them 11903 # from the output so that they don't get included in the library 11904 # dependencies. 11905 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' 11906 ;; 11907 *) 11908 if test "$GXX" = yes; then 11909 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' 11910 else 11911 # FIXME: insert proper C++ library support 11912 ld_shlibs_CXX=no 11913 fi 11914 ;; 11915 esac 11916 ;; 11917 hpux10*|hpux11*) 11918 if test $with_gnu_ld = no; then 11919 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11920 hardcode_libdir_separator_CXX=: 11921 11922 case $host_cpu in 11923 hppa*64*|ia64*) ;; 11924 *) 11925 export_dynamic_flag_spec_CXX='${wl}-E' 11926 ;; 11927 esac 11928 fi 11929 case $host_cpu in 11930 hppa*64*|ia64*) 11931 hardcode_direct_CXX=no 11932 hardcode_shlibpath_var_CXX=no 11933 ;; 11934 *) 11935 hardcode_direct_CXX=yes 11936 hardcode_minus_L_CXX=yes # Not in the search PATH, 11937 # but as the default 11938 # location of the library. 11939 ;; 11940 esac 11941 11942 case $cc_basename in 11943 CC*) 11944 # FIXME: insert proper C++ library support 11945 ld_shlibs_CXX=no 11946 ;; 11947 aCC*) 11948 case $host_cpu in 11949 hppa*64*) 11950 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11951 ;; 11952 ia64*) 11953 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11954 ;; 11955 *) 11956 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11957 ;; 11958 esac 11959 # Commands to make compiler produce verbose output that lists 11960 # what "hidden" libraries, object files and flags are used when 11961 # linking a shared library. 11962 # 11963 # There doesn't appear to be a way to prevent this compiler from 11964 # explicitly linking system object files so we need to strip them 11965 # from the output so that they don't get included in the library 11966 # dependencies. 11967 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' 11968 ;; 11969 *) 11970 if test "$GXX" = yes; then 11971 if test $with_gnu_ld = no; then 11972 case $host_cpu in 11973 hppa*64*) 11974 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11975 ;; 11976 ia64*) 11977 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11978 ;; 11979 *) 11980 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' 11981 ;; 11982 esac 11983 fi 11984 else 11985 # FIXME: insert proper C++ library support 11986 ld_shlibs_CXX=no 11987 fi 11988 ;; 11989 esac 11990 ;; 11991 interix[3-9]*) 11992 hardcode_direct_CXX=no 11993 hardcode_shlibpath_var_CXX=no 11994 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11995 export_dynamic_flag_spec_CXX='${wl}-E' 11996 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11997 # Instead, shared libraries are loaded at an image base (0x10000000 by 11998 # default) and relocated if they conflict, which is a slow very memory 11999 # consuming and fragmenting process. To avoid this, we pick a random, 12000 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12001 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12002 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' 12003 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' 12004 ;; 12005 irix5* | irix6*) 12006 case $cc_basename in 12007 CC*) 12008 # SGI C++ 12009 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' 12010 12011 # Archives containing C++ object files must be created using 12012 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12013 # necessary to make sure instantiated templates are included 12014 # in the archive. 12015 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12016 ;; 12017 *) 12018 if test "$GXX" = yes; then 12019 if test "$with_gnu_ld" = no; then 12020 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' 12021 else 12022 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' 12023 fi 12024 fi 12025 link_all_deplibs_CXX=yes 12026 ;; 12027 esac 12028 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12029 hardcode_libdir_separator_CXX=: 12030 ;; 12031 linux* | k*bsd*-gnu) 12032 case $cc_basename in 12033 KCC*) 12034 # Kuck and Associates, Inc. (KAI) C++ Compiler 12035 12036 # KCC will only create a shared library if the output file 12037 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12038 # to its proper name (with version) after linking. 12039 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' 12040 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' 12041 # Commands to make compiler produce verbose output that lists 12042 # what "hidden" libraries, object files and flags are used when 12043 # linking a shared library. 12044 # 12045 # There doesn't appear to be a way to prevent this compiler from 12046 # explicitly linking system object files so we need to strip them 12047 # from the output so that they don't get included in the library 12048 # dependencies. 12049 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' 12050 12051 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 12052 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12053 12054 # Archives containing C++ object files must be created using 12055 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12056 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12057 ;; 12058 icpc*) 12059 # Intel C++ 12060 with_gnu_ld=yes 12061 # version 8.0 and above of icpc choke on multiply defined symbols 12062 # if we add $predep_objects and $postdep_objects, however 7.1 and 12063 # earlier do not add the objects themselves. 12064 case `$CC -V 2>&1` in 12065 *"Version 7."*) 12066 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12067 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' 12068 ;; 12069 *) # Version 8.0 or newer 12070 tmp_idyn= 12071 case $host_cpu in 12072 ia64*) tmp_idyn=' -i_dynamic';; 12073 esac 12074 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12075 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' 12076 ;; 12077 esac 12078 archive_cmds_need_lc_CXX=no 12079 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12080 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12081 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12082 ;; 12083 pgCC* | pgcpp*) 12084 # Portland Group C++ compiler 12085 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12086 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' 12087 12088 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12089 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12090 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' 12091 ;; 12092 cxx*) 12093 # Compaq C++ 12094 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12095 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' 12096 12097 runpath_var=LD_RUN_PATH 12098 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12099 hardcode_libdir_separator_CXX=: 12100 12101 # Commands to make compiler produce verbose output that lists 12102 # what "hidden" libraries, object files and flags are used when 12103 # linking a shared library. 12104 # 12105 # There doesn't appear to be a way to prevent this compiler from 12106 # explicitly linking system object files so we need to strip them 12107 # from the output so that they don't get included in the library 12108 # dependencies. 12109 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' 12110 ;; 12111 *) 12112 case `$CC -V 2>&1 | sed 5q` in 12113 *Sun\ C*) 12114 # Sun C++ 5.9 12115 no_undefined_flag_CXX=' -zdefs' 12116 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12117 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' 12118 hardcode_libdir_flag_spec_CXX='-R$libdir' 12119 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' 12120 12121 # Not sure whether something based on 12122 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12123 # would be better. 12124 output_verbose_link_cmd='echo' 12125 12126 # Archives containing C++ object files must be created using 12127 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12128 # necessary to make sure instantiated templates are included 12129 # in the archive. 12130 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12131 ;; 12132 esac 12133 ;; 12134 esac 12135 ;; 12136 lynxos*) 12137 # FIXME: insert proper C++ library support 12138 ld_shlibs_CXX=no 12139 ;; 12140 m88k*) 12141 # FIXME: insert proper C++ library support 12142 ld_shlibs_CXX=no 12143 ;; 12144 mvs*) 12145 case $cc_basename in 12146 cxx*) 12147 # FIXME: insert proper C++ library support 12148 ld_shlibs_CXX=no 12149 ;; 12150 *) 12151 # FIXME: insert proper C++ library support 12152 ld_shlibs_CXX=no 12153 ;; 12154 esac 12155 ;; 12156 netbsd*) 12157 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12158 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12159 wlarc= 12160 hardcode_libdir_flag_spec_CXX='-R$libdir' 12161 hardcode_direct_CXX=yes 12162 hardcode_shlibpath_var_CXX=no 12163 fi 12164 # Workaround some broken pre-1.5 toolchains 12165 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12166 ;; 12167 openbsd2*) 12168 # C++ shared libraries are fairly broken 12169 ld_shlibs_CXX=no 12170 ;; 12171 openbsd*) 12172 if test -f /usr/libexec/ld.so; then 12173 hardcode_direct_CXX=yes 12174 hardcode_shlibpath_var_CXX=no 12175 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12176 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12177 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12178 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12179 export_dynamic_flag_spec_CXX='${wl}-E' 12180 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12181 fi 12182 output_verbose_link_cmd='echo' 12183 else 12184 ld_shlibs_CXX=no 12185 fi 12186 ;; 12187 osf3*) 12188 case $cc_basename in 12189 KCC*) 12190 # Kuck and Associates, Inc. (KAI) C++ Compiler 12191 12192 # KCC will only create a shared library if the output file 12193 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12194 # to its proper name (with version) after linking. 12195 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' 12196 12197 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12198 hardcode_libdir_separator_CXX=: 12199 12200 # Archives containing C++ object files must be created using 12201 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12202 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12203 12204 ;; 12205 RCC*) 12206 # Rational C++ 2.4.1 12207 # FIXME: insert proper C++ library support 12208 ld_shlibs_CXX=no 12209 ;; 12210 cxx*) 12211 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12212 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' 12213 12214 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12215 hardcode_libdir_separator_CXX=: 12216 12217 # Commands to make compiler produce verbose output that lists 12218 # what "hidden" libraries, object files and flags are used when 12219 # linking a shared library. 12220 # 12221 # There doesn't appear to be a way to prevent this compiler from 12222 # explicitly linking system object files so we need to strip them 12223 # from the output so that they don't get included in the library 12224 # dependencies. 12225 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' 12226 ;; 12227 *) 12228 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12229 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12230 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' 12231 12232 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12233 hardcode_libdir_separator_CXX=: 12234 12235 # Commands to make compiler produce verbose output that lists 12236 # what "hidden" libraries, object files and flags are used when 12237 # linking a shared library. 12238 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12239 12240 else 12241 # FIXME: insert proper C++ library support 12242 ld_shlibs_CXX=no 12243 fi 12244 ;; 12245 esac 12246 ;; 12247 osf4* | osf5*) 12248 case $cc_basename in 12249 KCC*) 12250 # Kuck and Associates, Inc. (KAI) C++ Compiler 12251 12252 # KCC will only create a shared library if the output file 12253 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12254 # to its proper name (with version) after linking. 12255 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' 12256 12257 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12258 hardcode_libdir_separator_CXX=: 12259 12260 # Archives containing C++ object files must be created using 12261 # the KAI C++ compiler. 12262 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12263 ;; 12264 RCC*) 12265 # Rational C++ 2.4.1 12266 # FIXME: insert proper C++ library support 12267 ld_shlibs_CXX=no 12268 ;; 12269 cxx*) 12270 allow_undefined_flag_CXX=' -expect_unresolved \*' 12271 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' 12272 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12273 echo "-hidden">> $lib.exp~ 12274 $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~ 12275 $rm $lib.exp' 12276 12277 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12278 hardcode_libdir_separator_CXX=: 12279 12280 # Commands to make compiler produce verbose output that lists 12281 # what "hidden" libraries, object files and flags are used when 12282 # linking a shared library. 12283 # 12284 # There doesn't appear to be a way to prevent this compiler from 12285 # explicitly linking system object files so we need to strip them 12286 # from the output so that they don't get included in the library 12287 # dependencies. 12288 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' 12289 ;; 12290 *) 12291 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12292 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12293 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' 12294 12295 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12296 hardcode_libdir_separator_CXX=: 12297 12298 # Commands to make compiler produce verbose output that lists 12299 # what "hidden" libraries, object files and flags are used when 12300 # linking a shared library. 12301 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12302 12303 else 12304 # FIXME: insert proper C++ library support 12305 ld_shlibs_CXX=no 12306 fi 12307 ;; 12308 esac 12309 ;; 12310 psos*) 12311 # FIXME: insert proper C++ library support 12312 ld_shlibs_CXX=no 12313 ;; 12314 sunos4*) 12315 case $cc_basename in 12316 CC*) 12317 # Sun C++ 4.x 12318 # FIXME: insert proper C++ library support 12319 ld_shlibs_CXX=no 12320 ;; 12321 lcc*) 12322 # Lucid 12323 # FIXME: insert proper C++ library support 12324 ld_shlibs_CXX=no 12325 ;; 12326 *) 12327 # FIXME: insert proper C++ library support 12328 ld_shlibs_CXX=no 12329 ;; 12330 esac 12331 ;; 12332 solaris*) 12333 case $cc_basename in 12334 CC*) 12335 # Sun C++ 4.2, 5.x and Centerline C++ 12336 archive_cmds_need_lc_CXX=yes 12337 no_undefined_flag_CXX=' -zdefs' 12338 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12339 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12340 $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' 12341 12342 hardcode_libdir_flag_spec_CXX='-R$libdir' 12343 hardcode_shlibpath_var_CXX=no 12344 case $host_os in 12345 solaris2.[0-5] | solaris2.[0-5].*) ;; 12346 *) 12347 # The compiler driver will combine and reorder linker options, 12348 # but understands `-z linker_flag'. 12349 # Supported since Solaris 2.6 (maybe 2.5.1?) 12350 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12351 ;; 12352 esac 12353 link_all_deplibs_CXX=yes 12354 12355 output_verbose_link_cmd='echo' 12356 12357 # Archives containing C++ object files must be created using 12358 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12359 # necessary to make sure instantiated templates are included 12360 # in the archive. 12361 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12362 ;; 12363 gcx*) 12364 # Green Hills C++ Compiler 12365 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12366 12367 # The C++ compiler must be used to create the archive. 12368 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12369 ;; 12370 *) 12371 # GNU C++ compiler with Solaris linker 12372 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12373 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12374 if $CC --version | grep -v '^2\.7' > /dev/null; then 12375 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12376 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12377 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12378 12379 # Commands to make compiler produce verbose output that lists 12380 # what "hidden" libraries, object files and flags are used when 12381 # linking a shared library. 12382 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12383 else 12384 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12385 # platform. 12386 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12387 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12388 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12389 12390 # Commands to make compiler produce verbose output that lists 12391 # what "hidden" libraries, object files and flags are used when 12392 # linking a shared library. 12393 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12394 fi 12395 12396 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12397 case $host_os in 12398 solaris2.[0-5] | solaris2.[0-5].*) ;; 12399 *) 12400 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12401 ;; 12402 esac 12403 fi 12404 ;; 12405 esac 12406 ;; 12407 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12408 no_undefined_flag_CXX='${wl}-z,text' 12409 archive_cmds_need_lc_CXX=no 12410 hardcode_shlibpath_var_CXX=no 12411 runpath_var='LD_RUN_PATH' 12412 12413 case $cc_basename in 12414 CC*) 12415 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12416 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12417 ;; 12418 *) 12419 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12420 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12421 ;; 12422 esac 12423 ;; 12424 sysv5* | sco3.2v5* | sco5v6*) 12425 # Note: We can NOT use -z defs as we might desire, because we do not 12426 # link with -lc, and that would cause any symbols used from libc to 12427 # always be unresolved, which means just about no library would 12428 # ever link correctly. If we're not using GNU ld we use -z text 12429 # though, which does catch some bad symbols but isn't as heavy-handed 12430 # as -z defs. 12431 # For security reasons, it is highly recommended that you always 12432 # use absolute paths for naming shared libraries, and exclude the 12433 # DT_RUNPATH tag from executables and libraries. But doing so 12434 # requires that you compile everything twice, which is a pain. 12435 # So that behaviour is only enabled if SCOABSPATH is set to a 12436 # non-empty value in the environment. Most likely only useful for 12437 # creating official distributions of packages. 12438 # This is a hack until libtool officially supports absolute path 12439 # names for shared libraries. 12440 no_undefined_flag_CXX='${wl}-z,text' 12441 allow_undefined_flag_CXX='${wl}-z,nodefs' 12442 archive_cmds_need_lc_CXX=no 12443 hardcode_shlibpath_var_CXX=no 12444 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12445 hardcode_libdir_separator_CXX=':' 12446 link_all_deplibs_CXX=yes 12447 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12448 runpath_var='LD_RUN_PATH' 12449 12450 case $cc_basename in 12451 CC*) 12452 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12453 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12454 ;; 12455 *) 12456 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12457 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12458 ;; 12459 esac 12460 ;; 12461 tandem*) 12462 case $cc_basename in 12463 NCC*) 12464 # NonStop-UX NCC 3.20 12465 # FIXME: insert proper C++ library support 12466 ld_shlibs_CXX=no 12467 ;; 12468 *) 12469 # FIXME: insert proper C++ library support 12470 ld_shlibs_CXX=no 12471 ;; 12472 esac 12473 ;; 12474 vxworks*) 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 ;; 12482esac 12483{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12484$as_echo "$ld_shlibs_CXX" >&6; } 12485test "$ld_shlibs_CXX" = no && can_build_shared=no 12486 12487GCC_CXX="$GXX" 12488LD_CXX="$LD" 12489 12490cat > conftest.$ac_ext <<EOF 12491class Foo 12492{ 12493public: 12494 Foo (void) { a = 0; } 12495private: 12496 int a; 12497}; 12498EOF 12499 12500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12501 (eval $ac_compile) 2>&5 12502 ac_status=$? 12503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12504 (exit $ac_status); }; then 12505 # Parse the compiler output and extract the necessary 12506 # objects, libraries and library flags. 12507 12508 # Sentinel used to keep track of whether or not we are before 12509 # the conftest object file. 12510 pre_test_object_deps_done=no 12511 12512 # The `*' in the case matches for architectures that use `case' in 12513 # $output_verbose_cmd can trigger glob expansion during the loop 12514 # eval without this substitution. 12515 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12516 12517 for p in `eval $output_verbose_link_cmd`; do 12518 case $p in 12519 12520 -L* | -R* | -l*) 12521 # Some compilers place space between "-{L,R}" and the path. 12522 # Remove the space. 12523 if test $p = "-L" \ 12524 || test $p = "-R"; then 12525 prev=$p 12526 continue 12527 else 12528 prev= 12529 fi 12530 12531 if test "$pre_test_object_deps_done" = no; then 12532 case $p in 12533 -L* | -R*) 12534 # Internal compiler library paths should come after those 12535 # provided the user. The postdeps already come after the 12536 # user supplied libs so there is no need to process them. 12537 if test -z "$compiler_lib_search_path_CXX"; then 12538 compiler_lib_search_path_CXX="${prev}${p}" 12539 else 12540 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12541 fi 12542 ;; 12543 # The "-l" case would never come before the object being 12544 # linked, so don't bother handling this case. 12545 esac 12546 else 12547 if test -z "$postdeps_CXX"; then 12548 postdeps_CXX="${prev}${p}" 12549 else 12550 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12551 fi 12552 fi 12553 ;; 12554 12555 *.$objext) 12556 # This assumes that the test object file only shows up 12557 # once in the compiler output. 12558 if test "$p" = "conftest.$objext"; then 12559 pre_test_object_deps_done=yes 12560 continue 12561 fi 12562 12563 if test "$pre_test_object_deps_done" = no; then 12564 if test -z "$predep_objects_CXX"; then 12565 predep_objects_CXX="$p" 12566 else 12567 predep_objects_CXX="$predep_objects_CXX $p" 12568 fi 12569 else 12570 if test -z "$postdep_objects_CXX"; then 12571 postdep_objects_CXX="$p" 12572 else 12573 postdep_objects_CXX="$postdep_objects_CXX $p" 12574 fi 12575 fi 12576 ;; 12577 12578 *) ;; # Ignore the rest. 12579 12580 esac 12581 done 12582 12583 # Clean up. 12584 rm -f a.out a.exe 12585else 12586 echo "libtool.m4: error: problem compiling CXX test program" 12587fi 12588 12589$rm -f confest.$objext 12590 12591compiler_lib_search_dirs_CXX= 12592if test -n "$compiler_lib_search_path_CXX"; then 12593 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12594fi 12595 12596# PORTME: override above test on systems where it is broken 12597case $host_os in 12598interix[3-9]*) 12599 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12600 # hack all around it, let's just trust "g++" to DTRT. 12601 predep_objects_CXX= 12602 postdep_objects_CXX= 12603 postdeps_CXX= 12604 ;; 12605 12606linux*) 12607 case `$CC -V 2>&1 | sed 5q` in 12608 *Sun\ C*) 12609 # Sun C++ 5.9 12610 # 12611 # The more standards-conforming stlport4 library is 12612 # incompatible with the Cstd library. Avoid specifying 12613 # it if it's in CXXFLAGS. Ignore libCrun as 12614 # -library=stlport4 depends on it. 12615 case " $CXX $CXXFLAGS " in 12616 *" -library=stlport4 "*) 12617 solaris_use_stlport4=yes 12618 ;; 12619 esac 12620 if test "$solaris_use_stlport4" != yes; then 12621 postdeps_CXX='-library=Cstd -library=Crun' 12622 fi 12623 ;; 12624 esac 12625 ;; 12626 12627solaris*) 12628 case $cc_basename in 12629 CC*) 12630 # The more standards-conforming stlport4 library is 12631 # incompatible with the Cstd library. Avoid specifying 12632 # it if it's in CXXFLAGS. Ignore libCrun as 12633 # -library=stlport4 depends on it. 12634 case " $CXX $CXXFLAGS " in 12635 *" -library=stlport4 "*) 12636 solaris_use_stlport4=yes 12637 ;; 12638 esac 12639 12640 # Adding this requires a known-good setup of shared libraries for 12641 # Sun compiler versions before 5.6, else PIC objects from an old 12642 # archive will be linked into the output, leading to subtle bugs. 12643 if test "$solaris_use_stlport4" != yes; then 12644 postdeps_CXX='-library=Cstd -library=Crun' 12645 fi 12646 ;; 12647 esac 12648 ;; 12649esac 12650 12651case " $postdeps_CXX " in 12652*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12653esac 12654 12655lt_prog_compiler_wl_CXX= 12656lt_prog_compiler_pic_CXX= 12657lt_prog_compiler_static_CXX= 12658 12659{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12660$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12661 12662 # C++ specific cases for pic, static, wl, etc. 12663 if test "$GXX" = yes; then 12664 lt_prog_compiler_wl_CXX='-Wl,' 12665 lt_prog_compiler_static_CXX='-static' 12666 12667 case $host_os in 12668 aix*) 12669 # All AIX code is PIC. 12670 if test "$host_cpu" = ia64; then 12671 # AIX 5 now supports IA64 processor 12672 lt_prog_compiler_static_CXX='-Bstatic' 12673 fi 12674 ;; 12675 amigaos*) 12676 # FIXME: we need at least 68020 code to build shared libraries, but 12677 # adding the `-m68020' flag to GCC prevents building anything better, 12678 # like `-m68040'. 12679 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12680 ;; 12681 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12682 # PIC is the default for these OSes. 12683 ;; 12684 mingw* | cygwin* | os2* | pw32*) 12685 # This hack is so that the source file can tell whether it is being 12686 # built for inclusion in a dll (and should export symbols for example). 12687 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12688 # (--disable-auto-import) libraries 12689 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12690 ;; 12691 darwin* | rhapsody*) 12692 # PIC is the default on this platform 12693 # Common symbols not allowed in MH_DYLIB files 12694 lt_prog_compiler_pic_CXX='-fno-common' 12695 ;; 12696 *djgpp*) 12697 # DJGPP does not support shared libraries at all 12698 lt_prog_compiler_pic_CXX= 12699 ;; 12700 interix[3-9]*) 12701 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12702 # Instead, we relocate shared libraries at runtime. 12703 ;; 12704 sysv4*MP*) 12705 if test -d /usr/nec; then 12706 lt_prog_compiler_pic_CXX=-Kconform_pic 12707 fi 12708 ;; 12709 hpux*) 12710 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12711 # not for PA HP-UX. 12712 case $host_cpu in 12713 hppa*64*|ia64*) 12714 ;; 12715 *) 12716 lt_prog_compiler_pic_CXX='-fPIC' 12717 ;; 12718 esac 12719 ;; 12720 *) 12721 lt_prog_compiler_pic_CXX='-fPIC' 12722 ;; 12723 esac 12724 else 12725 case $host_os in 12726 aix[4-9]*) 12727 # All AIX code is PIC. 12728 if test "$host_cpu" = ia64; then 12729 # AIX 5 now supports IA64 processor 12730 lt_prog_compiler_static_CXX='-Bstatic' 12731 else 12732 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12733 fi 12734 ;; 12735 chorus*) 12736 case $cc_basename in 12737 cxch68*) 12738 # Green Hills C++ Compiler 12739 # _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" 12740 ;; 12741 esac 12742 ;; 12743 darwin*) 12744 # PIC is the default on this platform 12745 # Common symbols not allowed in MH_DYLIB files 12746 case $cc_basename in 12747 xlc*) 12748 lt_prog_compiler_pic_CXX='-qnocommon' 12749 lt_prog_compiler_wl_CXX='-Wl,' 12750 ;; 12751 esac 12752 ;; 12753 dgux*) 12754 case $cc_basename in 12755 ec++*) 12756 lt_prog_compiler_pic_CXX='-KPIC' 12757 ;; 12758 ghcx*) 12759 # Green Hills C++ Compiler 12760 lt_prog_compiler_pic_CXX='-pic' 12761 ;; 12762 *) 12763 ;; 12764 esac 12765 ;; 12766 freebsd* | dragonfly*) 12767 # FreeBSD uses GNU C++ 12768 ;; 12769 hpux9* | hpux10* | hpux11*) 12770 case $cc_basename in 12771 CC*) 12772 lt_prog_compiler_wl_CXX='-Wl,' 12773 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12774 if test "$host_cpu" != ia64; then 12775 lt_prog_compiler_pic_CXX='+Z' 12776 fi 12777 ;; 12778 aCC*) 12779 lt_prog_compiler_wl_CXX='-Wl,' 12780 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12781 case $host_cpu in 12782 hppa*64*|ia64*) 12783 # +Z the default 12784 ;; 12785 *) 12786 lt_prog_compiler_pic_CXX='+Z' 12787 ;; 12788 esac 12789 ;; 12790 *) 12791 ;; 12792 esac 12793 ;; 12794 interix*) 12795 # This is c89, which is MS Visual C++ (no shared libs) 12796 # Anyone wants to do a port? 12797 ;; 12798 irix5* | irix6* | nonstopux*) 12799 case $cc_basename in 12800 CC*) 12801 lt_prog_compiler_wl_CXX='-Wl,' 12802 lt_prog_compiler_static_CXX='-non_shared' 12803 # CC pic flag -KPIC is the default. 12804 ;; 12805 *) 12806 ;; 12807 esac 12808 ;; 12809 linux* | k*bsd*-gnu) 12810 case $cc_basename in 12811 KCC*) 12812 # KAI C++ Compiler 12813 lt_prog_compiler_wl_CXX='--backend -Wl,' 12814 lt_prog_compiler_pic_CXX='-fPIC' 12815 ;; 12816 icpc* | ecpc*) 12817 # Intel C++ 12818 lt_prog_compiler_wl_CXX='-Wl,' 12819 lt_prog_compiler_pic_CXX='-KPIC' 12820 lt_prog_compiler_static_CXX='-static' 12821 ;; 12822 pgCC* | pgcpp*) 12823 # Portland Group C++ compiler. 12824 lt_prog_compiler_wl_CXX='-Wl,' 12825 lt_prog_compiler_pic_CXX='-fpic' 12826 lt_prog_compiler_static_CXX='-Bstatic' 12827 ;; 12828 cxx*) 12829 # Compaq C++ 12830 # Make sure the PIC flag is empty. It appears that all Alpha 12831 # Linux and Compaq Tru64 Unix objects are PIC. 12832 lt_prog_compiler_pic_CXX= 12833 lt_prog_compiler_static_CXX='-non_shared' 12834 ;; 12835 *) 12836 case `$CC -V 2>&1 | sed 5q` in 12837 *Sun\ C*) 12838 # Sun C++ 5.9 12839 lt_prog_compiler_pic_CXX='-KPIC' 12840 lt_prog_compiler_static_CXX='-Bstatic' 12841 lt_prog_compiler_wl_CXX='-Qoption ld ' 12842 ;; 12843 esac 12844 ;; 12845 esac 12846 ;; 12847 lynxos*) 12848 ;; 12849 m88k*) 12850 ;; 12851 mvs*) 12852 case $cc_basename in 12853 cxx*) 12854 lt_prog_compiler_pic_CXX='-W c,exportall' 12855 ;; 12856 *) 12857 ;; 12858 esac 12859 ;; 12860 netbsd*) 12861 ;; 12862 osf3* | osf4* | osf5*) 12863 case $cc_basename in 12864 KCC*) 12865 lt_prog_compiler_wl_CXX='--backend -Wl,' 12866 ;; 12867 RCC*) 12868 # Rational C++ 2.4.1 12869 lt_prog_compiler_pic_CXX='-pic' 12870 ;; 12871 cxx*) 12872 # Digital/Compaq C++ 12873 lt_prog_compiler_wl_CXX='-Wl,' 12874 # Make sure the PIC flag is empty. It appears that all Alpha 12875 # Linux and Compaq Tru64 Unix objects are PIC. 12876 lt_prog_compiler_pic_CXX= 12877 lt_prog_compiler_static_CXX='-non_shared' 12878 ;; 12879 *) 12880 ;; 12881 esac 12882 ;; 12883 psos*) 12884 ;; 12885 solaris*) 12886 case $cc_basename in 12887 CC*) 12888 # Sun C++ 4.2, 5.x and Centerline C++ 12889 lt_prog_compiler_pic_CXX='-KPIC' 12890 lt_prog_compiler_static_CXX='-Bstatic' 12891 lt_prog_compiler_wl_CXX='-Qoption ld ' 12892 ;; 12893 gcx*) 12894 # Green Hills C++ Compiler 12895 lt_prog_compiler_pic_CXX='-PIC' 12896 ;; 12897 *) 12898 ;; 12899 esac 12900 ;; 12901 sunos4*) 12902 case $cc_basename in 12903 CC*) 12904 # Sun C++ 4.x 12905 lt_prog_compiler_pic_CXX='-pic' 12906 lt_prog_compiler_static_CXX='-Bstatic' 12907 ;; 12908 lcc*) 12909 # Lucid 12910 lt_prog_compiler_pic_CXX='-pic' 12911 ;; 12912 *) 12913 ;; 12914 esac 12915 ;; 12916 tandem*) 12917 case $cc_basename in 12918 NCC*) 12919 # NonStop-UX NCC 3.20 12920 lt_prog_compiler_pic_CXX='-KPIC' 12921 ;; 12922 *) 12923 ;; 12924 esac 12925 ;; 12926 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12927 case $cc_basename in 12928 CC*) 12929 lt_prog_compiler_wl_CXX='-Wl,' 12930 lt_prog_compiler_pic_CXX='-KPIC' 12931 lt_prog_compiler_static_CXX='-Bstatic' 12932 ;; 12933 esac 12934 ;; 12935 vxworks*) 12936 ;; 12937 *) 12938 lt_prog_compiler_can_build_shared_CXX=no 12939 ;; 12940 esac 12941 fi 12942 12943{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12944$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 12945 12946# 12947# Check to make sure the PIC flag actually works. 12948# 12949if test -n "$lt_prog_compiler_pic_CXX"; then 12950 12951{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12952$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 12953if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 12954 $as_echo_n "(cached) " >&6 12955else 12956 lt_cv_prog_compiler_pic_works_CXX=no 12957 ac_outfile=conftest.$ac_objext 12958 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12959 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12960 # Insert the option either (1) after the last *FLAGS variable, or 12961 # (2) before a word containing "conftest.", or (3) at the end. 12962 # Note that $ac_compile itself does not contain backslashes and begins 12963 # with a dollar sign (not a hyphen), so the echo should work correctly. 12964 # The option is referenced via a variable to avoid confusing sed. 12965 lt_compile=`echo "$ac_compile" | $SED \ 12966 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12967 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12968 -e 's:$: $lt_compiler_flag:'` 12969 (eval echo "\"\$as_me:12969: $lt_compile\"" >&5) 12970 (eval "$lt_compile" 2>conftest.err) 12971 ac_status=$? 12972 cat conftest.err >&5 12973 echo "$as_me:12973: \$? = $ac_status" >&5 12974 if (exit $ac_status) && test -s "$ac_outfile"; then 12975 # The compiler can only warn and ignore the option if not recognized 12976 # So say no if there are warnings other than the usual output. 12977 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12978 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12979 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12980 lt_cv_prog_compiler_pic_works_CXX=yes 12981 fi 12982 fi 12983 $rm conftest* 12984 12985fi 12986{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 12987$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 12988 12989if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 12990 case $lt_prog_compiler_pic_CXX in 12991 "" | " "*) ;; 12992 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12993 esac 12994else 12995 lt_prog_compiler_pic_CXX= 12996 lt_prog_compiler_can_build_shared_CXX=no 12997fi 12998 12999fi 13000case $host_os in 13001 # For platforms which do not support PIC, -DPIC is meaningless: 13002 *djgpp*) 13003 lt_prog_compiler_pic_CXX= 13004 ;; 13005 *) 13006 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13007 ;; 13008esac 13009 13010# 13011# Check to make sure the static flag actually works. 13012# 13013wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13014{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13015$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13016if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 13017 $as_echo_n "(cached) " >&6 13018else 13019 lt_cv_prog_compiler_static_works_CXX=no 13020 save_LDFLAGS="$LDFLAGS" 13021 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13022 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13023 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13024 # The linker can only warn and ignore the option if not recognized 13025 # So say no if there are warnings 13026 if test -s conftest.err; then 13027 # Append any errors to the config.log. 13028 cat conftest.err 1>&5 13029 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13030 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13031 if diff conftest.exp conftest.er2 >/dev/null; then 13032 lt_cv_prog_compiler_static_works_CXX=yes 13033 fi 13034 else 13035 lt_cv_prog_compiler_static_works_CXX=yes 13036 fi 13037 fi 13038 $rm -r conftest* 13039 LDFLAGS="$save_LDFLAGS" 13040 13041fi 13042{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13043$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13044 13045if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13046 : 13047else 13048 lt_prog_compiler_static_CXX= 13049fi 13050 13051 13052{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13053$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13054if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 13055 $as_echo_n "(cached) " >&6 13056else 13057 lt_cv_prog_compiler_c_o_CXX=no 13058 $rm -r conftest 2>/dev/null 13059 mkdir conftest 13060 cd conftest 13061 mkdir out 13062 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13063 13064 lt_compiler_flag="-o out/conftest2.$ac_objext" 13065 # Insert the option either (1) after the last *FLAGS variable, or 13066 # (2) before a word containing "conftest.", or (3) at the end. 13067 # Note that $ac_compile itself does not contain backslashes and begins 13068 # with a dollar sign (not a hyphen), so the echo should work correctly. 13069 lt_compile=`echo "$ac_compile" | $SED \ 13070 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13071 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13072 -e 's:$: $lt_compiler_flag:'` 13073 (eval echo "\"\$as_me:13073: $lt_compile\"" >&5) 13074 (eval "$lt_compile" 2>out/conftest.err) 13075 ac_status=$? 13076 cat out/conftest.err >&5 13077 echo "$as_me:13077: \$? = $ac_status" >&5 13078 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13079 then 13080 # The compiler can only warn and ignore the option if not recognized 13081 # So say no if there are warnings 13082 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13083 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13084 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13085 lt_cv_prog_compiler_c_o_CXX=yes 13086 fi 13087 fi 13088 chmod u+w . 2>&5 13089 $rm conftest* 13090 # SGI C++ compiler will create directory out/ii_files/ for 13091 # template instantiation 13092 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13093 $rm out/* && rmdir out 13094 cd .. 13095 rmdir conftest 13096 $rm conftest* 13097 13098fi 13099{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13100$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13101 13102 13103hard_links="nottested" 13104if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13105 # do not overwrite the value of need_locks provided by the user 13106 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13107$as_echo_n "checking if we can lock with hard links... " >&6; } 13108 hard_links=yes 13109 $rm conftest* 13110 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13111 touch conftest.a 13112 ln conftest.a conftest.b 2>&5 || hard_links=no 13113 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13114 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 13115$as_echo "$hard_links" >&6; } 13116 if test "$hard_links" = no; then 13117 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13118$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13119 need_locks=warn 13120 fi 13121else 13122 need_locks=no 13123fi 13124 13125{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13126$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13127 13128 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13129 case $host_os in 13130 aix[4-9]*) 13131 # If we're using GNU nm, then we don't want the "-C" option. 13132 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13133 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13134 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' 13135 else 13136 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' 13137 fi 13138 ;; 13139 pw32*) 13140 export_symbols_cmds_CXX="$ltdll_cmds" 13141 ;; 13142 cygwin* | mingw*) 13143 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' 13144 ;; 13145 *) 13146 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13147 ;; 13148 esac 13149 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13150 13151{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13152$as_echo "$ld_shlibs_CXX" >&6; } 13153test "$ld_shlibs_CXX" = no && can_build_shared=no 13154 13155# 13156# Do we need to explicitly link libc? 13157# 13158case "x$archive_cmds_need_lc_CXX" in 13159x|xyes) 13160 # Assume -lc should be added 13161 archive_cmds_need_lc_CXX=yes 13162 13163 if test "$enable_shared" = yes && test "$GCC" = yes; then 13164 case $archive_cmds_CXX in 13165 *'~'*) 13166 # FIXME: we may have to deal with multi-command sequences. 13167 ;; 13168 '$CC '*) 13169 # Test whether the compiler implicitly links with -lc since on some 13170 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13171 # to ld, don't add -lc before -lgcc. 13172 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13173$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13174 $rm conftest* 13175 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13176 13177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13178 (eval $ac_compile) 2>&5 13179 ac_status=$? 13180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13181 (exit $ac_status); } 2>conftest.err; then 13182 soname=conftest 13183 lib=conftest 13184 libobjs=conftest.$ac_objext 13185 deplibs= 13186 wl=$lt_prog_compiler_wl_CXX 13187 pic_flag=$lt_prog_compiler_pic_CXX 13188 compiler_flags=-v 13189 linker_flags=-v 13190 verstring= 13191 output_objdir=. 13192 libname=conftest 13193 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13194 allow_undefined_flag_CXX= 13195 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13196 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13197 ac_status=$? 13198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13199 (exit $ac_status); } 13200 then 13201 archive_cmds_need_lc_CXX=no 13202 else 13203 archive_cmds_need_lc_CXX=yes 13204 fi 13205 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13206 else 13207 cat conftest.err 1>&5 13208 fi 13209 $rm conftest* 13210 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13211$as_echo "$archive_cmds_need_lc_CXX" >&6; } 13212 ;; 13213 esac 13214 fi 13215 ;; 13216esac 13217 13218{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13219$as_echo_n "checking dynamic linker characteristics... " >&6; } 13220library_names_spec= 13221libname_spec='lib$name' 13222soname_spec= 13223shrext_cmds=".so" 13224postinstall_cmds= 13225postuninstall_cmds= 13226finish_cmds= 13227finish_eval= 13228shlibpath_var= 13229shlibpath_overrides_runpath=unknown 13230version_type=none 13231dynamic_linker="$host_os ld.so" 13232sys_lib_dlsearch_path_spec="/lib /usr/lib" 13233 13234need_lib_prefix=unknown 13235hardcode_into_libs=no 13236 13237# when you set need_version to no, make sure it does not cause -set_version 13238# flags to be left without arguments 13239need_version=unknown 13240 13241case $host_os in 13242aix3*) 13243 version_type=linux 13244 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13245 shlibpath_var=LIBPATH 13246 13247 # AIX 3 has no versioning support, so we append a major version to the name. 13248 soname_spec='${libname}${release}${shared_ext}$major' 13249 ;; 13250 13251aix[4-9]*) 13252 version_type=linux 13253 need_lib_prefix=no 13254 need_version=no 13255 hardcode_into_libs=yes 13256 if test "$host_cpu" = ia64; then 13257 # AIX 5 supports IA64 13258 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13259 shlibpath_var=LD_LIBRARY_PATH 13260 else 13261 # With GCC up to 2.95.x, collect2 would create an import file 13262 # for dependence libraries. The import file would start with 13263 # the line `#! .'. This would cause the generated library to 13264 # depend on `.', always an invalid library. This was fixed in 13265 # development snapshots of GCC prior to 3.0. 13266 case $host_os in 13267 aix4 | aix4.[01] | aix4.[01].*) 13268 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13269 echo ' yes ' 13270 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13271 : 13272 else 13273 can_build_shared=no 13274 fi 13275 ;; 13276 esac 13277 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13278 # soname into executable. Probably we can add versioning support to 13279 # collect2, so additional links can be useful in future. 13280 if test "$aix_use_runtimelinking" = yes; then 13281 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13282 # instead of lib<name>.a to let people know that these are not 13283 # typical AIX shared libraries. 13284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13285 else 13286 # We preserve .a as extension for shared libraries through AIX4.2 13287 # and later when we are not doing run time linking. 13288 library_names_spec='${libname}${release}.a $libname.a' 13289 soname_spec='${libname}${release}${shared_ext}$major' 13290 fi 13291 shlibpath_var=LIBPATH 13292 fi 13293 ;; 13294 13295amigaos*) 13296 library_names_spec='$libname.ixlibrary $libname.a' 13297 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13298 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' 13299 ;; 13300 13301beos*) 13302 library_names_spec='${libname}${shared_ext}' 13303 dynamic_linker="$host_os ld.so" 13304 shlibpath_var=LIBRARY_PATH 13305 ;; 13306 13307bsdi[45]*) 13308 version_type=linux 13309 need_version=no 13310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13311 soname_spec='${libname}${release}${shared_ext}$major' 13312 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13313 shlibpath_var=LD_LIBRARY_PATH 13314 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13315 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13316 # the default ld.so.conf also contains /usr/contrib/lib and 13317 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13318 # libtool to hard-code these into programs 13319 ;; 13320 13321cygwin* | mingw* | pw32*) 13322 version_type=windows 13323 shrext_cmds=".dll" 13324 need_version=no 13325 need_lib_prefix=no 13326 13327 case $GCC,$host_os in 13328 yes,cygwin* | yes,mingw* | yes,pw32*) 13329 library_names_spec='$libname.dll.a' 13330 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13331 postinstall_cmds='base_file=`basename \${file}`~ 13332 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13333 dldir=$destdir/`dirname \$dlpath`~ 13334 test -d \$dldir || mkdir -p \$dldir~ 13335 $install_prog $dir/$dlname \$dldir/$dlname~ 13336 chmod a+x \$dldir/$dlname' 13337 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13338 dlpath=$dir/\$dldll~ 13339 $rm \$dlpath' 13340 shlibpath_overrides_runpath=yes 13341 13342 case $host_os in 13343 cygwin*) 13344 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13345 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13346 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13347 ;; 13348 mingw*) 13349 # MinGW DLLs use traditional 'lib' prefix 13350 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13351 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13352 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13353 # It is most probably a Windows format PATH printed by 13354 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13355 # path with ; separators, and with drive letters. We can handle the 13356 # drive letters (cygwin fileutils understands them), so leave them, 13357 # especially as we might pass files found there to a mingw objdump, 13358 # which wouldn't understand a cygwinified path. Ahh. 13359 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13360 else 13361 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13362 fi 13363 ;; 13364 pw32*) 13365 # pw32 DLLs use 'pw' prefix rather than 'lib' 13366 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13367 ;; 13368 esac 13369 ;; 13370 13371 *) 13372 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13373 ;; 13374 esac 13375 dynamic_linker='Win32 ld.exe' 13376 # FIXME: first we should search . and the directory the executable is in 13377 shlibpath_var=PATH 13378 ;; 13379 13380darwin* | rhapsody*) 13381 dynamic_linker="$host_os dyld" 13382 version_type=darwin 13383 need_lib_prefix=no 13384 need_version=no 13385 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13386 soname_spec='${libname}${release}${major}$shared_ext' 13387 shlibpath_overrides_runpath=yes 13388 shlibpath_var=DYLD_LIBRARY_PATH 13389 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13390 13391 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13392 ;; 13393 13394dgux*) 13395 version_type=linux 13396 need_lib_prefix=no 13397 need_version=no 13398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13399 soname_spec='${libname}${release}${shared_ext}$major' 13400 shlibpath_var=LD_LIBRARY_PATH 13401 ;; 13402 13403freebsd1*) 13404 dynamic_linker=no 13405 ;; 13406 13407freebsd* | dragonfly*) 13408 # DragonFly does not have aout. When/if they implement a new 13409 # versioning mechanism, adjust this. 13410 if test -x /usr/bin/objformat; then 13411 objformat=`/usr/bin/objformat` 13412 else 13413 case $host_os in 13414 freebsd[123]*) objformat=aout ;; 13415 *) objformat=elf ;; 13416 esac 13417 fi 13418 version_type=freebsd-$objformat 13419 case $version_type in 13420 freebsd-elf*) 13421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13422 need_version=no 13423 need_lib_prefix=no 13424 ;; 13425 freebsd-*) 13426 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13427 need_version=yes 13428 ;; 13429 esac 13430 shlibpath_var=LD_LIBRARY_PATH 13431 case $host_os in 13432 freebsd2*) 13433 shlibpath_overrides_runpath=yes 13434 ;; 13435 freebsd3.[01]* | freebsdelf3.[01]*) 13436 shlibpath_overrides_runpath=yes 13437 hardcode_into_libs=yes 13438 ;; 13439 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13440 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13441 shlibpath_overrides_runpath=no 13442 hardcode_into_libs=yes 13443 ;; 13444 *) # from 4.6 on, and DragonFly 13445 shlibpath_overrides_runpath=yes 13446 hardcode_into_libs=yes 13447 ;; 13448 esac 13449 ;; 13450 13451gnu*) 13452 version_type=linux 13453 need_lib_prefix=no 13454 need_version=no 13455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13456 soname_spec='${libname}${release}${shared_ext}$major' 13457 shlibpath_var=LD_LIBRARY_PATH 13458 hardcode_into_libs=yes 13459 ;; 13460 13461hpux9* | hpux10* | hpux11*) 13462 # Give a soname corresponding to the major version so that dld.sl refuses to 13463 # link against other versions. 13464 version_type=sunos 13465 need_lib_prefix=no 13466 need_version=no 13467 case $host_cpu in 13468 ia64*) 13469 shrext_cmds='.so' 13470 hardcode_into_libs=yes 13471 dynamic_linker="$host_os dld.so" 13472 shlibpath_var=LD_LIBRARY_PATH 13473 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13475 soname_spec='${libname}${release}${shared_ext}$major' 13476 if test "X$HPUX_IA64_MODE" = X32; then 13477 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13478 else 13479 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13480 fi 13481 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13482 ;; 13483 hppa*64*) 13484 shrext_cmds='.sl' 13485 hardcode_into_libs=yes 13486 dynamic_linker="$host_os dld.sl" 13487 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13488 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13490 soname_spec='${libname}${release}${shared_ext}$major' 13491 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13492 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13493 ;; 13494 *) 13495 shrext_cmds='.sl' 13496 dynamic_linker="$host_os dld.sl" 13497 shlibpath_var=SHLIB_PATH 13498 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 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 ;; 13502 esac 13503 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13504 postinstall_cmds='chmod 555 $lib' 13505 ;; 13506 13507interix[3-9]*) 13508 version_type=linux 13509 need_lib_prefix=no 13510 need_version=no 13511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13512 soname_spec='${libname}${release}${shared_ext}$major' 13513 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13514 shlibpath_var=LD_LIBRARY_PATH 13515 shlibpath_overrides_runpath=no 13516 hardcode_into_libs=yes 13517 ;; 13518 13519irix5* | irix6* | nonstopux*) 13520 case $host_os in 13521 nonstopux*) version_type=nonstopux ;; 13522 *) 13523 if test "$lt_cv_prog_gnu_ld" = yes; then 13524 version_type=linux 13525 else 13526 version_type=irix 13527 fi ;; 13528 esac 13529 need_lib_prefix=no 13530 need_version=no 13531 soname_spec='${libname}${release}${shared_ext}$major' 13532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13533 case $host_os in 13534 irix5* | nonstopux*) 13535 libsuff= shlibsuff= 13536 ;; 13537 *) 13538 case $LD in # libtool.m4 will add one of these switches to LD 13539 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13540 libsuff= shlibsuff= libmagic=32-bit;; 13541 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13542 libsuff=32 shlibsuff=N32 libmagic=N32;; 13543 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13544 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13545 *) libsuff= shlibsuff= libmagic=never-match;; 13546 esac 13547 ;; 13548 esac 13549 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13550 shlibpath_overrides_runpath=no 13551 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13552 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13553 hardcode_into_libs=yes 13554 ;; 13555 13556# No shared lib support for Linux oldld, aout, or coff. 13557linux*oldld* | linux*aout* | linux*coff*) 13558 dynamic_linker=no 13559 ;; 13560 13561# This must be Linux ELF. 13562linux* | k*bsd*-gnu) 13563 version_type=linux 13564 need_lib_prefix=no 13565 need_version=no 13566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13567 soname_spec='${libname}${release}${shared_ext}$major' 13568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13569 shlibpath_var=LD_LIBRARY_PATH 13570 shlibpath_overrides_runpath=no 13571 # This implies no fast_install, which is unacceptable. 13572 # Some rework will be needed to allow for fast_install 13573 # before this can be enabled. 13574 hardcode_into_libs=yes 13575 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13576 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13577 13578 # Append ld.so.conf contents to the search path 13579 if test -f /etc/ld.so.conf; then 13580 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' ' '` 13581 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 13582 fi 13583 13584 # We used to test for /lib/ld.so.1 and disable shared libraries on 13585 # powerpc, because MkLinux only supported shared libraries with the 13586 # GNU dynamic linker. Since this was broken with cross compilers, 13587 # most powerpc-linux boxes support dynamic linking these days and 13588 # people can always --disable-shared, the test was removed, and we 13589 # assume the GNU/Linux dynamic linker is in use. 13590 dynamic_linker='GNU/Linux ld.so' 13591 ;; 13592 13593netbsd*) 13594 version_type=sunos 13595 need_lib_prefix=no 13596 need_version=no 13597 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13600 dynamic_linker='NetBSD (a.out) ld.so' 13601 else 13602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13603 soname_spec='${libname}${release}${shared_ext}$major' 13604 dynamic_linker='NetBSD ld.elf_so' 13605 fi 13606 shlibpath_var=LD_LIBRARY_PATH 13607 shlibpath_overrides_runpath=yes 13608 hardcode_into_libs=yes 13609 ;; 13610 13611newsos6) 13612 version_type=linux 13613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13614 shlibpath_var=LD_LIBRARY_PATH 13615 shlibpath_overrides_runpath=yes 13616 ;; 13617 13618nto-qnx*) 13619 version_type=linux 13620 need_lib_prefix=no 13621 need_version=no 13622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13623 soname_spec='${libname}${release}${shared_ext}$major' 13624 shlibpath_var=LD_LIBRARY_PATH 13625 shlibpath_overrides_runpath=yes 13626 ;; 13627 13628openbsd*) 13629 version_type=sunos 13630 sys_lib_dlsearch_path_spec="/usr/lib" 13631 need_lib_prefix=no 13632 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13633 case $host_os in 13634 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13635 *) need_version=no ;; 13636 esac 13637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13639 shlibpath_var=LD_LIBRARY_PATH 13640 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13641 case $host_os in 13642 openbsd2.[89] | openbsd2.[89].*) 13643 shlibpath_overrides_runpath=no 13644 ;; 13645 *) 13646 shlibpath_overrides_runpath=yes 13647 ;; 13648 esac 13649 else 13650 shlibpath_overrides_runpath=yes 13651 fi 13652 ;; 13653 13654os2*) 13655 libname_spec='$name' 13656 shrext_cmds=".dll" 13657 need_lib_prefix=no 13658 library_names_spec='$libname${shared_ext} $libname.a' 13659 dynamic_linker='OS/2 ld.exe' 13660 shlibpath_var=LIBPATH 13661 ;; 13662 13663osf3* | osf4* | osf5*) 13664 version_type=osf 13665 need_lib_prefix=no 13666 need_version=no 13667 soname_spec='${libname}${release}${shared_ext}$major' 13668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13669 shlibpath_var=LD_LIBRARY_PATH 13670 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13671 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13672 ;; 13673 13674rdos*) 13675 dynamic_linker=no 13676 ;; 13677 13678solaris*) 13679 version_type=linux 13680 need_lib_prefix=no 13681 need_version=no 13682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13683 soname_spec='${libname}${release}${shared_ext}$major' 13684 shlibpath_var=LD_LIBRARY_PATH 13685 shlibpath_overrides_runpath=yes 13686 hardcode_into_libs=yes 13687 # ldd complains unless libraries are executable 13688 postinstall_cmds='chmod +x $lib' 13689 ;; 13690 13691sunos4*) 13692 version_type=sunos 13693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13694 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13695 shlibpath_var=LD_LIBRARY_PATH 13696 shlibpath_overrides_runpath=yes 13697 if test "$with_gnu_ld" = yes; then 13698 need_lib_prefix=no 13699 fi 13700 need_version=yes 13701 ;; 13702 13703sysv4 | sysv4.3*) 13704 version_type=linux 13705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13706 soname_spec='${libname}${release}${shared_ext}$major' 13707 shlibpath_var=LD_LIBRARY_PATH 13708 case $host_vendor in 13709 sni) 13710 shlibpath_overrides_runpath=no 13711 need_lib_prefix=no 13712 export_dynamic_flag_spec='${wl}-Blargedynsym' 13713 runpath_var=LD_RUN_PATH 13714 ;; 13715 siemens) 13716 need_lib_prefix=no 13717 ;; 13718 motorola) 13719 need_lib_prefix=no 13720 need_version=no 13721 shlibpath_overrides_runpath=no 13722 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13723 ;; 13724 esac 13725 ;; 13726 13727sysv4*MP*) 13728 if test -d /usr/nec ;then 13729 version_type=linux 13730 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13731 soname_spec='$libname${shared_ext}.$major' 13732 shlibpath_var=LD_LIBRARY_PATH 13733 fi 13734 ;; 13735 13736sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13737 version_type=freebsd-elf 13738 need_lib_prefix=no 13739 need_version=no 13740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13741 soname_spec='${libname}${release}${shared_ext}$major' 13742 shlibpath_var=LD_LIBRARY_PATH 13743 hardcode_into_libs=yes 13744 if test "$with_gnu_ld" = yes; then 13745 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13746 shlibpath_overrides_runpath=no 13747 else 13748 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13749 shlibpath_overrides_runpath=yes 13750 case $host_os in 13751 sco3.2v5*) 13752 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13753 ;; 13754 esac 13755 fi 13756 sys_lib_dlsearch_path_spec='/usr/lib' 13757 ;; 13758 13759uts4*) 13760 version_type=linux 13761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13762 soname_spec='${libname}${release}${shared_ext}$major' 13763 shlibpath_var=LD_LIBRARY_PATH 13764 ;; 13765 13766*) 13767 dynamic_linker=no 13768 ;; 13769esac 13770{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13771$as_echo "$dynamic_linker" >&6; } 13772test "$dynamic_linker" = no && can_build_shared=no 13773 13774if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13775 $as_echo_n "(cached) " >&6 13776else 13777 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 13778fi 13779 13780sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13781if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13782 $as_echo_n "(cached) " >&6 13783else 13784 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 13785fi 13786 13787sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13788 13789variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13790if test "$GCC" = yes; then 13791 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13792fi 13793 13794{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13795$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13796hardcode_action_CXX= 13797if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13798 test -n "$runpath_var_CXX" || \ 13799 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13800 13801 # We can hardcode non-existant directories. 13802 if test "$hardcode_direct_CXX" != no && 13803 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13804 # have to relink, otherwise we might link with an installed library 13805 # when we should be linking with a yet-to-be-installed one 13806 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13807 test "$hardcode_minus_L_CXX" != no; then 13808 # Linking always hardcodes the temporary library directory. 13809 hardcode_action_CXX=relink 13810 else 13811 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13812 hardcode_action_CXX=immediate 13813 fi 13814else 13815 # We cannot hardcode anything, or else we can only hardcode existing 13816 # directories. 13817 hardcode_action_CXX=unsupported 13818fi 13819{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13820$as_echo "$hardcode_action_CXX" >&6; } 13821 13822if test "$hardcode_action_CXX" = relink; then 13823 # Fast installation is not supported 13824 enable_fast_install=no 13825elif test "$shlibpath_overrides_runpath" = yes || 13826 test "$enable_shared" = no; then 13827 # Fast installation is not necessary 13828 enable_fast_install=needless 13829fi 13830 13831 13832# The else clause should only fire when bootstrapping the 13833# libtool distribution, otherwise you forgot to ship ltmain.sh 13834# with your package, and you will get complaints that there are 13835# no rules to generate ltmain.sh. 13836if test -f "$ltmain"; then 13837 # See if we are running on zsh, and set the options which allow our commands through 13838 # without removal of \ escapes. 13839 if test -n "${ZSH_VERSION+set}" ; then 13840 setopt NO_GLOB_SUBST 13841 fi 13842 # Now quote all the things that may contain metacharacters while being 13843 # careful not to overquote the AC_SUBSTed values. We take copies of the 13844 # variables and quote the copies for generation of the libtool script. 13845 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13846 SED SHELL STRIP \ 13847 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13848 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13849 deplibs_check_method reload_flag reload_cmds need_locks \ 13850 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13851 lt_cv_sys_global_symbol_to_c_name_address \ 13852 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13853 old_postinstall_cmds old_postuninstall_cmds \ 13854 compiler_CXX \ 13855 CC_CXX \ 13856 LD_CXX \ 13857 lt_prog_compiler_wl_CXX \ 13858 lt_prog_compiler_pic_CXX \ 13859 lt_prog_compiler_static_CXX \ 13860 lt_prog_compiler_no_builtin_flag_CXX \ 13861 export_dynamic_flag_spec_CXX \ 13862 thread_safe_flag_spec_CXX \ 13863 whole_archive_flag_spec_CXX \ 13864 enable_shared_with_static_runtimes_CXX \ 13865 old_archive_cmds_CXX \ 13866 old_archive_from_new_cmds_CXX \ 13867 predep_objects_CXX \ 13868 postdep_objects_CXX \ 13869 predeps_CXX \ 13870 postdeps_CXX \ 13871 compiler_lib_search_path_CXX \ 13872 compiler_lib_search_dirs_CXX \ 13873 archive_cmds_CXX \ 13874 archive_expsym_cmds_CXX \ 13875 postinstall_cmds_CXX \ 13876 postuninstall_cmds_CXX \ 13877 old_archive_from_expsyms_cmds_CXX \ 13878 allow_undefined_flag_CXX \ 13879 no_undefined_flag_CXX \ 13880 export_symbols_cmds_CXX \ 13881 hardcode_libdir_flag_spec_CXX \ 13882 hardcode_libdir_flag_spec_ld_CXX \ 13883 hardcode_libdir_separator_CXX \ 13884 hardcode_automatic_CXX \ 13885 module_cmds_CXX \ 13886 module_expsym_cmds_CXX \ 13887 lt_cv_prog_compiler_c_o_CXX \ 13888 fix_srcfile_path_CXX \ 13889 exclude_expsyms_CXX \ 13890 include_expsyms_CXX; do 13891 13892 case $var in 13893 old_archive_cmds_CXX | \ 13894 old_archive_from_new_cmds_CXX | \ 13895 archive_cmds_CXX | \ 13896 archive_expsym_cmds_CXX | \ 13897 module_cmds_CXX | \ 13898 module_expsym_cmds_CXX | \ 13899 old_archive_from_expsyms_cmds_CXX | \ 13900 export_symbols_cmds_CXX | \ 13901 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13902 postinstall_cmds | postuninstall_cmds | \ 13903 old_postinstall_cmds | old_postuninstall_cmds | \ 13904 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13905 # Double-quote double-evaled strings. 13906 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13907 ;; 13908 *) 13909 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13910 ;; 13911 esac 13912 done 13913 13914 case $lt_echo in 13915 *'\$0 --fallback-echo"') 13916 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13917 ;; 13918 esac 13919 13920cfgfile="$ofile" 13921 13922 cat <<__EOF__ >> "$cfgfile" 13923# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13924 13925# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13926 13927# Shell to use when invoking shell scripts. 13928SHELL=$lt_SHELL 13929 13930# Whether or not to build shared libraries. 13931build_libtool_libs=$enable_shared 13932 13933# Whether or not to build static libraries. 13934build_old_libs=$enable_static 13935 13936# Whether or not to add -lc for building shared libraries. 13937build_libtool_need_lc=$archive_cmds_need_lc_CXX 13938 13939# Whether or not to disallow shared libs when runtime libs are static 13940allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13941 13942# Whether or not to optimize for fast installation. 13943fast_install=$enable_fast_install 13944 13945# The host system. 13946host_alias=$host_alias 13947host=$host 13948host_os=$host_os 13949 13950# The build system. 13951build_alias=$build_alias 13952build=$build 13953build_os=$build_os 13954 13955# An echo program that does not interpret backslashes. 13956echo=$lt_echo 13957 13958# The archiver. 13959AR=$lt_AR 13960AR_FLAGS=$lt_AR_FLAGS 13961 13962# A C compiler. 13963LTCC=$lt_LTCC 13964 13965# LTCC compiler flags. 13966LTCFLAGS=$lt_LTCFLAGS 13967 13968# A language-specific compiler. 13969CC=$lt_compiler_CXX 13970 13971# Is the compiler the GNU C compiler? 13972with_gcc=$GCC_CXX 13973 13974# An ERE matcher. 13975EGREP=$lt_EGREP 13976 13977# The linker used to build libraries. 13978LD=$lt_LD_CXX 13979 13980# Whether we need hard or soft links. 13981LN_S=$lt_LN_S 13982 13983# A BSD-compatible nm program. 13984NM=$lt_NM 13985 13986# A symbol stripping program 13987STRIP=$lt_STRIP 13988 13989# Used to examine libraries when file_magic_cmd begins "file" 13990MAGIC_CMD=$MAGIC_CMD 13991 13992# Used on cygwin: DLL creation program. 13993DLLTOOL="$DLLTOOL" 13994 13995# Used on cygwin: object dumper. 13996OBJDUMP="$OBJDUMP" 13997 13998# Used on cygwin: assembler. 13999AS="$AS" 14000 14001# The name of the directory that contains temporary libtool files. 14002objdir=$objdir 14003 14004# How to create reloadable object files. 14005reload_flag=$lt_reload_flag 14006reload_cmds=$lt_reload_cmds 14007 14008# How to pass a linker flag through the compiler. 14009wl=$lt_lt_prog_compiler_wl_CXX 14010 14011# Object file suffix (normally "o"). 14012objext="$ac_objext" 14013 14014# Old archive suffix (normally "a"). 14015libext="$libext" 14016 14017# Shared library suffix (normally ".so"). 14018shrext_cmds='$shrext_cmds' 14019 14020# Executable file suffix (normally ""). 14021exeext="$exeext" 14022 14023# Additional compiler flags for building library objects. 14024pic_flag=$lt_lt_prog_compiler_pic_CXX 14025pic_mode=$pic_mode 14026 14027# What is the maximum length of a command? 14028max_cmd_len=$lt_cv_sys_max_cmd_len 14029 14030# Does compiler simultaneously support -c and -o options? 14031compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 14032 14033# Must we lock files when doing compilation? 14034need_locks=$lt_need_locks 14035 14036# Do we need the lib prefix for modules? 14037need_lib_prefix=$need_lib_prefix 14038 14039# Do we need a version for libraries? 14040need_version=$need_version 14041 14042# Whether dlopen is supported. 14043dlopen_support=$enable_dlopen 14044 14045# Whether dlopen of programs is supported. 14046dlopen_self=$enable_dlopen_self 14047 14048# Whether dlopen of statically linked programs is supported. 14049dlopen_self_static=$enable_dlopen_self_static 14050 14051# Compiler flag to prevent dynamic linking. 14052link_static_flag=$lt_lt_prog_compiler_static_CXX 14053 14054# Compiler flag to turn off builtin functions. 14055no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 14056 14057# Compiler flag to allow reflexive dlopens. 14058export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14059 14060# Compiler flag to generate shared objects directly from archives. 14061whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14062 14063# Compiler flag to generate thread-safe objects. 14064thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14065 14066# Library versioning type. 14067version_type=$version_type 14068 14069# Format of library name prefix. 14070libname_spec=$lt_libname_spec 14071 14072# List of archive names. First name is the real one, the rest are links. 14073# The last name is the one that the linker finds with -lNAME. 14074library_names_spec=$lt_library_names_spec 14075 14076# The coded name of the library, if different from the real name. 14077soname_spec=$lt_soname_spec 14078 14079# Commands used to build and install an old-style archive. 14080RANLIB=$lt_RANLIB 14081old_archive_cmds=$lt_old_archive_cmds_CXX 14082old_postinstall_cmds=$lt_old_postinstall_cmds 14083old_postuninstall_cmds=$lt_old_postuninstall_cmds 14084 14085# Create an old-style archive from a shared archive. 14086old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14087 14088# Create a temporary old-style archive to link instead of a shared archive. 14089old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14090 14091# Commands used to build and install a shared archive. 14092archive_cmds=$lt_archive_cmds_CXX 14093archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14094postinstall_cmds=$lt_postinstall_cmds 14095postuninstall_cmds=$lt_postuninstall_cmds 14096 14097# Commands used to build a loadable module (assumed same as above if empty) 14098module_cmds=$lt_module_cmds_CXX 14099module_expsym_cmds=$lt_module_expsym_cmds_CXX 14100 14101# Commands to strip libraries. 14102old_striplib=$lt_old_striplib 14103striplib=$lt_striplib 14104 14105# Dependencies to place before the objects being linked to create a 14106# shared library. 14107predep_objects=$lt_predep_objects_CXX 14108 14109# Dependencies to place after the objects being linked to create a 14110# shared library. 14111postdep_objects=$lt_postdep_objects_CXX 14112 14113# Dependencies to place before the objects being linked to create a 14114# shared library. 14115predeps=$lt_predeps_CXX 14116 14117# Dependencies to place after the objects being linked to create a 14118# shared library. 14119postdeps=$lt_postdeps_CXX 14120 14121# The directories searched by this compiler when creating a shared 14122# library 14123compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 14124 14125# The library search path used internally by the compiler when linking 14126# a shared library. 14127compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14128 14129# Method to check whether dependent libraries are shared objects. 14130deplibs_check_method=$lt_deplibs_check_method 14131 14132# Command to use when deplibs_check_method == file_magic. 14133file_magic_cmd=$lt_file_magic_cmd 14134 14135# Flag that allows shared libraries with undefined symbols to be built. 14136allow_undefined_flag=$lt_allow_undefined_flag_CXX 14137 14138# Flag that forces no undefined symbols. 14139no_undefined_flag=$lt_no_undefined_flag_CXX 14140 14141# Commands used to finish a libtool library installation in a directory. 14142finish_cmds=$lt_finish_cmds 14143 14144# Same as above, but a single script fragment to be evaled but not shown. 14145finish_eval=$lt_finish_eval 14146 14147# Take the output of nm and produce a listing of raw symbols and C names. 14148global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14149 14150# Transform the output of nm in a proper C declaration 14151global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14152 14153# Transform the output of nm in a C name address pair 14154global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14155 14156# This is the shared library runtime path variable. 14157runpath_var=$runpath_var 14158 14159# This is the shared library path variable. 14160shlibpath_var=$shlibpath_var 14161 14162# Is shlibpath searched before the hard-coded library search path? 14163shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14164 14165# How to hardcode a shared library path into an executable. 14166hardcode_action=$hardcode_action_CXX 14167 14168# Whether we should hardcode library paths into libraries. 14169hardcode_into_libs=$hardcode_into_libs 14170 14171# Flag to hardcode \$libdir into a binary during linking. 14172# This must work even if \$libdir does not exist. 14173hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14174 14175# If ld is used when linking, flag to hardcode \$libdir into 14176# a binary during linking. This must work even if \$libdir does 14177# not exist. 14178hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14179 14180# Whether we need a single -rpath flag with a separated argument. 14181hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14182 14183# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14184# resulting binary. 14185hardcode_direct=$hardcode_direct_CXX 14186 14187# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14188# resulting binary. 14189hardcode_minus_L=$hardcode_minus_L_CXX 14190 14191# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14192# the resulting binary. 14193hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14194 14195# Set to yes if building a shared library automatically hardcodes DIR into the library 14196# and all subsequent libraries and executables linked against it. 14197hardcode_automatic=$hardcode_automatic_CXX 14198 14199# Variables whose values should be saved in libtool wrapper scripts and 14200# restored at relink time. 14201variables_saved_for_relink="$variables_saved_for_relink" 14202 14203# Whether libtool must link a program against all its dependency libraries. 14204link_all_deplibs=$link_all_deplibs_CXX 14205 14206# Compile-time system search path for libraries 14207sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14208 14209# Run-time system search path for libraries 14210sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14211 14212# Fix the shell variable \$srcfile for the compiler. 14213fix_srcfile_path=$lt_fix_srcfile_path 14214 14215# Set to yes if exported symbols are required. 14216always_export_symbols=$always_export_symbols_CXX 14217 14218# The commands to list exported symbols. 14219export_symbols_cmds=$lt_export_symbols_cmds_CXX 14220 14221# The commands to extract the exported symbol list from a shared archive. 14222extract_expsyms_cmds=$lt_extract_expsyms_cmds 14223 14224# Symbols that should not be listed in the preloaded symbols. 14225exclude_expsyms=$lt_exclude_expsyms_CXX 14226 14227# Symbols that must always be exported. 14228include_expsyms=$lt_include_expsyms_CXX 14229 14230# ### END LIBTOOL TAG CONFIG: $tagname 14231 14232__EOF__ 14233 14234 14235else 14236 # If there is no Makefile yet, we rely on a make rule to execute 14237 # `config.status --recheck' to rerun these tests and create the 14238 # libtool script then. 14239 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14240 if test -f "$ltmain_in"; then 14241 test -f Makefile && make "$ltmain" 14242 fi 14243fi 14244 14245 14246ac_ext=c 14247ac_cpp='$CPP $CPPFLAGS' 14248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14250ac_compiler_gnu=$ac_cv_c_compiler_gnu 14251 14252CC=$lt_save_CC 14253LDCXX=$LD 14254LD=$lt_save_LD 14255GCC=$lt_save_GCC 14256with_gnu_ldcxx=$with_gnu_ld 14257with_gnu_ld=$lt_save_with_gnu_ld 14258lt_cv_path_LDCXX=$lt_cv_path_LD 14259lt_cv_path_LD=$lt_save_path_LD 14260lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14261lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14262 14263 else 14264 tagname="" 14265 fi 14266 ;; 14267 14268 F77) 14269 if test -n "$F77" && test "X$F77" != "Xno"; then 14270 14271ac_ext=f 14272ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14273ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14274ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14275 14276 14277archive_cmds_need_lc_F77=no 14278allow_undefined_flag_F77= 14279always_export_symbols_F77=no 14280archive_expsym_cmds_F77= 14281export_dynamic_flag_spec_F77= 14282hardcode_direct_F77=no 14283hardcode_libdir_flag_spec_F77= 14284hardcode_libdir_flag_spec_ld_F77= 14285hardcode_libdir_separator_F77= 14286hardcode_minus_L_F77=no 14287hardcode_automatic_F77=no 14288module_cmds_F77= 14289module_expsym_cmds_F77= 14290link_all_deplibs_F77=unknown 14291old_archive_cmds_F77=$old_archive_cmds 14292no_undefined_flag_F77= 14293whole_archive_flag_spec_F77= 14294enable_shared_with_static_runtimes_F77=no 14295 14296# Source file extension for f77 test sources. 14297ac_ext=f 14298 14299# Object file extension for compiled f77 test sources. 14300objext=o 14301objext_F77=$objext 14302 14303# Code to be used in simple compile tests 14304lt_simple_compile_test_code="\ 14305 subroutine t 14306 return 14307 end 14308" 14309 14310# Code to be used in simple link tests 14311lt_simple_link_test_code="\ 14312 program t 14313 end 14314" 14315 14316# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14317 14318# If no C compiler was specified, use CC. 14319LTCC=${LTCC-"$CC"} 14320 14321# If no C compiler flags were specified, use CFLAGS. 14322LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14323 14324# Allow CC to be a program name with arguments. 14325compiler=$CC 14326 14327 14328# save warnings/boilerplate of simple test code 14329ac_outfile=conftest.$ac_objext 14330echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14331eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14332_lt_compiler_boilerplate=`cat conftest.err` 14333$rm conftest* 14334 14335ac_outfile=conftest.$ac_objext 14336echo "$lt_simple_link_test_code" >conftest.$ac_ext 14337eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14338_lt_linker_boilerplate=`cat conftest.err` 14339$rm -r conftest* 14340 14341 14342# Allow CC to be a program name with arguments. 14343lt_save_CC="$CC" 14344CC=${F77-"f77"} 14345compiler=$CC 14346compiler_F77=$CC 14347for cc_temp in $compiler""; do 14348 case $cc_temp in 14349 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14350 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14351 \-*) ;; 14352 *) break;; 14353 esac 14354done 14355cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14356 14357 14358{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14359$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14360{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 14361$as_echo "$can_build_shared" >&6; } 14362 14363{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14364$as_echo_n "checking whether to build shared libraries... " >&6; } 14365test "$can_build_shared" = "no" && enable_shared=no 14366 14367# On AIX, shared libraries and static libraries use the same namespace, and 14368# are all built from PIC. 14369case $host_os in 14370aix3*) 14371 test "$enable_shared" = yes && enable_static=no 14372 if test -n "$RANLIB"; then 14373 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14374 postinstall_cmds='$RANLIB $lib' 14375 fi 14376 ;; 14377aix[4-9]*) 14378 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14379 test "$enable_shared" = yes && enable_static=no 14380 fi 14381 ;; 14382esac 14383{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 14384$as_echo "$enable_shared" >&6; } 14385 14386{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14387$as_echo_n "checking whether to build static libraries... " >&6; } 14388# Make sure either enable_shared or enable_static is yes. 14389test "$enable_shared" = yes || enable_static=yes 14390{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 14391$as_echo "$enable_static" >&6; } 14392 14393GCC_F77="$G77" 14394LD_F77="$LD" 14395 14396lt_prog_compiler_wl_F77= 14397lt_prog_compiler_pic_F77= 14398lt_prog_compiler_static_F77= 14399 14400{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14401$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14402 14403 if test "$GCC" = yes; then 14404 lt_prog_compiler_wl_F77='-Wl,' 14405 lt_prog_compiler_static_F77='-static' 14406 14407 case $host_os in 14408 aix*) 14409 # All AIX code is PIC. 14410 if test "$host_cpu" = ia64; then 14411 # AIX 5 now supports IA64 processor 14412 lt_prog_compiler_static_F77='-Bstatic' 14413 fi 14414 ;; 14415 14416 amigaos*) 14417 # FIXME: we need at least 68020 code to build shared libraries, but 14418 # adding the `-m68020' flag to GCC prevents building anything better, 14419 # like `-m68040'. 14420 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14421 ;; 14422 14423 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14424 # PIC is the default for these OSes. 14425 ;; 14426 14427 mingw* | cygwin* | pw32* | os2*) 14428 # This hack is so that the source file can tell whether it is being 14429 # built for inclusion in a dll (and should export symbols for example). 14430 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14431 # (--disable-auto-import) libraries 14432 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14433 ;; 14434 14435 darwin* | rhapsody*) 14436 # PIC is the default on this platform 14437 # Common symbols not allowed in MH_DYLIB files 14438 lt_prog_compiler_pic_F77='-fno-common' 14439 ;; 14440 14441 interix[3-9]*) 14442 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14443 # Instead, we relocate shared libraries at runtime. 14444 ;; 14445 14446 msdosdjgpp*) 14447 # Just because we use GCC doesn't mean we suddenly get shared libraries 14448 # on systems that don't support them. 14449 lt_prog_compiler_can_build_shared_F77=no 14450 enable_shared=no 14451 ;; 14452 14453 sysv4*MP*) 14454 if test -d /usr/nec; then 14455 lt_prog_compiler_pic_F77=-Kconform_pic 14456 fi 14457 ;; 14458 14459 hpux*) 14460 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14461 # not for PA HP-UX. 14462 case $host_cpu in 14463 hppa*64*|ia64*) 14464 # +Z the default 14465 ;; 14466 *) 14467 lt_prog_compiler_pic_F77='-fPIC' 14468 ;; 14469 esac 14470 ;; 14471 14472 *) 14473 lt_prog_compiler_pic_F77='-fPIC' 14474 ;; 14475 esac 14476 else 14477 # PORTME Check for flag to pass linker flags through the system compiler. 14478 case $host_os in 14479 aix*) 14480 lt_prog_compiler_wl_F77='-Wl,' 14481 if test "$host_cpu" = ia64; then 14482 # AIX 5 now supports IA64 processor 14483 lt_prog_compiler_static_F77='-Bstatic' 14484 else 14485 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14486 fi 14487 ;; 14488 darwin*) 14489 # PIC is the default on this platform 14490 # Common symbols not allowed in MH_DYLIB files 14491 case $cc_basename in 14492 xlc*) 14493 lt_prog_compiler_pic_F77='-qnocommon' 14494 lt_prog_compiler_wl_F77='-Wl,' 14495 ;; 14496 esac 14497 ;; 14498 14499 mingw* | cygwin* | pw32* | os2*) 14500 # This hack is so that the source file can tell whether it is being 14501 # built for inclusion in a dll (and should export symbols for example). 14502 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14503 ;; 14504 14505 hpux9* | hpux10* | hpux11*) 14506 lt_prog_compiler_wl_F77='-Wl,' 14507 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14508 # not for PA HP-UX. 14509 case $host_cpu in 14510 hppa*64*|ia64*) 14511 # +Z the default 14512 ;; 14513 *) 14514 lt_prog_compiler_pic_F77='+Z' 14515 ;; 14516 esac 14517 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14518 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14519 ;; 14520 14521 irix5* | irix6* | nonstopux*) 14522 lt_prog_compiler_wl_F77='-Wl,' 14523 # PIC (with -KPIC) is the default. 14524 lt_prog_compiler_static_F77='-non_shared' 14525 ;; 14526 14527 newsos6) 14528 lt_prog_compiler_pic_F77='-KPIC' 14529 lt_prog_compiler_static_F77='-Bstatic' 14530 ;; 14531 14532 linux* | k*bsd*-gnu) 14533 case $cc_basename in 14534 icc* | ecc*) 14535 lt_prog_compiler_wl_F77='-Wl,' 14536 lt_prog_compiler_pic_F77='-KPIC' 14537 lt_prog_compiler_static_F77='-static' 14538 ;; 14539 pgcc* | pgf77* | pgf90* | pgf95*) 14540 # Portland Group compilers (*not* the Pentium gcc compiler, 14541 # which looks to be a dead project) 14542 lt_prog_compiler_wl_F77='-Wl,' 14543 lt_prog_compiler_pic_F77='-fpic' 14544 lt_prog_compiler_static_F77='-Bstatic' 14545 ;; 14546 ccc*) 14547 lt_prog_compiler_wl_F77='-Wl,' 14548 # All Alpha code is PIC. 14549 lt_prog_compiler_static_F77='-non_shared' 14550 ;; 14551 *) 14552 case `$CC -V 2>&1 | sed 5q` in 14553 *Sun\ C*) 14554 # Sun C 5.9 14555 lt_prog_compiler_pic_F77='-KPIC' 14556 lt_prog_compiler_static_F77='-Bstatic' 14557 lt_prog_compiler_wl_F77='-Wl,' 14558 ;; 14559 *Sun\ F*) 14560 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14561 lt_prog_compiler_pic_F77='-KPIC' 14562 lt_prog_compiler_static_F77='-Bstatic' 14563 lt_prog_compiler_wl_F77='' 14564 ;; 14565 esac 14566 ;; 14567 esac 14568 ;; 14569 14570 osf3* | osf4* | osf5*) 14571 lt_prog_compiler_wl_F77='-Wl,' 14572 # All OSF/1 code is PIC. 14573 lt_prog_compiler_static_F77='-non_shared' 14574 ;; 14575 14576 rdos*) 14577 lt_prog_compiler_static_F77='-non_shared' 14578 ;; 14579 14580 solaris*) 14581 lt_prog_compiler_pic_F77='-KPIC' 14582 lt_prog_compiler_static_F77='-Bstatic' 14583 case $cc_basename in 14584 f77* | f90* | f95*) 14585 lt_prog_compiler_wl_F77='-Qoption ld ';; 14586 *) 14587 lt_prog_compiler_wl_F77='-Wl,';; 14588 esac 14589 ;; 14590 14591 sunos4*) 14592 lt_prog_compiler_wl_F77='-Qoption ld ' 14593 lt_prog_compiler_pic_F77='-PIC' 14594 lt_prog_compiler_static_F77='-Bstatic' 14595 ;; 14596 14597 sysv4 | sysv4.2uw2* | sysv4.3*) 14598 lt_prog_compiler_wl_F77='-Wl,' 14599 lt_prog_compiler_pic_F77='-KPIC' 14600 lt_prog_compiler_static_F77='-Bstatic' 14601 ;; 14602 14603 sysv4*MP*) 14604 if test -d /usr/nec ;then 14605 lt_prog_compiler_pic_F77='-Kconform_pic' 14606 lt_prog_compiler_static_F77='-Bstatic' 14607 fi 14608 ;; 14609 14610 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14611 lt_prog_compiler_wl_F77='-Wl,' 14612 lt_prog_compiler_pic_F77='-KPIC' 14613 lt_prog_compiler_static_F77='-Bstatic' 14614 ;; 14615 14616 unicos*) 14617 lt_prog_compiler_wl_F77='-Wl,' 14618 lt_prog_compiler_can_build_shared_F77=no 14619 ;; 14620 14621 uts4*) 14622 lt_prog_compiler_pic_F77='-pic' 14623 lt_prog_compiler_static_F77='-Bstatic' 14624 ;; 14625 14626 *) 14627 lt_prog_compiler_can_build_shared_F77=no 14628 ;; 14629 esac 14630 fi 14631 14632{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14633$as_echo "$lt_prog_compiler_pic_F77" >&6; } 14634 14635# 14636# Check to make sure the PIC flag actually works. 14637# 14638if test -n "$lt_prog_compiler_pic_F77"; then 14639 14640{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14641$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 14642if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 14643 $as_echo_n "(cached) " >&6 14644else 14645 lt_cv_prog_compiler_pic_works_F77=no 14646 ac_outfile=conftest.$ac_objext 14647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14648 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14649 # Insert the option either (1) after the last *FLAGS variable, or 14650 # (2) before a word containing "conftest.", or (3) at the end. 14651 # Note that $ac_compile itself does not contain backslashes and begins 14652 # with a dollar sign (not a hyphen), so the echo should work correctly. 14653 # The option is referenced via a variable to avoid confusing sed. 14654 lt_compile=`echo "$ac_compile" | $SED \ 14655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14657 -e 's:$: $lt_compiler_flag:'` 14658 (eval echo "\"\$as_me:14658: $lt_compile\"" >&5) 14659 (eval "$lt_compile" 2>conftest.err) 14660 ac_status=$? 14661 cat conftest.err >&5 14662 echo "$as_me:14662: \$? = $ac_status" >&5 14663 if (exit $ac_status) && test -s "$ac_outfile"; then 14664 # The compiler can only warn and ignore the option if not recognized 14665 # So say no if there are warnings other than the usual output. 14666 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14668 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14669 lt_cv_prog_compiler_pic_works_F77=yes 14670 fi 14671 fi 14672 $rm conftest* 14673 14674fi 14675{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 14676$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 14677 14678if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 14679 case $lt_prog_compiler_pic_F77 in 14680 "" | " "*) ;; 14681 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14682 esac 14683else 14684 lt_prog_compiler_pic_F77= 14685 lt_prog_compiler_can_build_shared_F77=no 14686fi 14687 14688fi 14689case $host_os in 14690 # For platforms which do not support PIC, -DPIC is meaningless: 14691 *djgpp*) 14692 lt_prog_compiler_pic_F77= 14693 ;; 14694 *) 14695 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14696 ;; 14697esac 14698 14699# 14700# Check to make sure the static flag actually works. 14701# 14702wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14703{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14704$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14705if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 14706 $as_echo_n "(cached) " >&6 14707else 14708 lt_cv_prog_compiler_static_works_F77=no 14709 save_LDFLAGS="$LDFLAGS" 14710 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14711 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14712 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14713 # The linker can only warn and ignore the option if not recognized 14714 # So say no if there are warnings 14715 if test -s conftest.err; then 14716 # Append any errors to the config.log. 14717 cat conftest.err 1>&5 14718 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14720 if diff conftest.exp conftest.er2 >/dev/null; then 14721 lt_cv_prog_compiler_static_works_F77=yes 14722 fi 14723 else 14724 lt_cv_prog_compiler_static_works_F77=yes 14725 fi 14726 fi 14727 $rm -r conftest* 14728 LDFLAGS="$save_LDFLAGS" 14729 14730fi 14731{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 14732$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 14733 14734if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 14735 : 14736else 14737 lt_prog_compiler_static_F77= 14738fi 14739 14740 14741{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14742$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14743if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14744 $as_echo_n "(cached) " >&6 14745else 14746 lt_cv_prog_compiler_c_o_F77=no 14747 $rm -r conftest 2>/dev/null 14748 mkdir conftest 14749 cd conftest 14750 mkdir out 14751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14752 14753 lt_compiler_flag="-o out/conftest2.$ac_objext" 14754 # Insert the option either (1) after the last *FLAGS variable, or 14755 # (2) before a word containing "conftest.", or (3) at the end. 14756 # Note that $ac_compile itself does not contain backslashes and begins 14757 # with a dollar sign (not a hyphen), so the echo should work correctly. 14758 lt_compile=`echo "$ac_compile" | $SED \ 14759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14761 -e 's:$: $lt_compiler_flag:'` 14762 (eval echo "\"\$as_me:14762: $lt_compile\"" >&5) 14763 (eval "$lt_compile" 2>out/conftest.err) 14764 ac_status=$? 14765 cat out/conftest.err >&5 14766 echo "$as_me:14766: \$? = $ac_status" >&5 14767 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14768 then 14769 # The compiler can only warn and ignore the option if not recognized 14770 # So say no if there are warnings 14771 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14774 lt_cv_prog_compiler_c_o_F77=yes 14775 fi 14776 fi 14777 chmod u+w . 2>&5 14778 $rm conftest* 14779 # SGI C++ compiler will create directory out/ii_files/ for 14780 # template instantiation 14781 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14782 $rm out/* && rmdir out 14783 cd .. 14784 rmdir conftest 14785 $rm conftest* 14786 14787fi 14788{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14789$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 14790 14791 14792hard_links="nottested" 14793if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14794 # do not overwrite the value of need_locks provided by the user 14795 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14796$as_echo_n "checking if we can lock with hard links... " >&6; } 14797 hard_links=yes 14798 $rm conftest* 14799 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14800 touch conftest.a 14801 ln conftest.a conftest.b 2>&5 || hard_links=no 14802 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14803 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 14804$as_echo "$hard_links" >&6; } 14805 if test "$hard_links" = no; then 14806 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14807$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14808 need_locks=warn 14809 fi 14810else 14811 need_locks=no 14812fi 14813 14814{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14815$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14816 14817 runpath_var= 14818 allow_undefined_flag_F77= 14819 enable_shared_with_static_runtimes_F77=no 14820 archive_cmds_F77= 14821 archive_expsym_cmds_F77= 14822 old_archive_From_new_cmds_F77= 14823 old_archive_from_expsyms_cmds_F77= 14824 export_dynamic_flag_spec_F77= 14825 whole_archive_flag_spec_F77= 14826 thread_safe_flag_spec_F77= 14827 hardcode_libdir_flag_spec_F77= 14828 hardcode_libdir_flag_spec_ld_F77= 14829 hardcode_libdir_separator_F77= 14830 hardcode_direct_F77=no 14831 hardcode_minus_L_F77=no 14832 hardcode_shlibpath_var_F77=unsupported 14833 link_all_deplibs_F77=unknown 14834 hardcode_automatic_F77=no 14835 module_cmds_F77= 14836 module_expsym_cmds_F77= 14837 always_export_symbols_F77=no 14838 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14839 # include_expsyms should be a list of space-separated symbols to be *always* 14840 # included in the symbol list 14841 include_expsyms_F77= 14842 # exclude_expsyms can be an extended regexp of symbols to exclude 14843 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14844 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14845 # as well as any symbol that contains `d'. 14846 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14847 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14848 # platforms (ab)use it in PIC code, but their linkers get confused if 14849 # the symbol is explicitly referenced. Since portable code cannot 14850 # rely on this symbol name, it's probably fine to never include it in 14851 # preloaded symbol tables. 14852 # Exclude shared library initialization/finalization symbols. 14853 extract_expsyms_cmds= 14854 # Just being paranoid about ensuring that cc_basename is set. 14855 for cc_temp in $compiler""; do 14856 case $cc_temp in 14857 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14858 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14859 \-*) ;; 14860 *) break;; 14861 esac 14862done 14863cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14864 14865 case $host_os in 14866 cygwin* | mingw* | pw32*) 14867 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14868 # When not using gcc, we currently assume that we are using 14869 # Microsoft Visual C++. 14870 if test "$GCC" != yes; then 14871 with_gnu_ld=no 14872 fi 14873 ;; 14874 interix*) 14875 # we just hope/assume this is gcc and not c89 (= MSVC++) 14876 with_gnu_ld=yes 14877 ;; 14878 openbsd*) 14879 with_gnu_ld=no 14880 ;; 14881 esac 14882 14883 ld_shlibs_F77=yes 14884 if test "$with_gnu_ld" = yes; then 14885 # If archive_cmds runs LD, not CC, wlarc should be empty 14886 wlarc='${wl}' 14887 14888 # Set some defaults for GNU ld with shared library support. These 14889 # are reset later if shared libraries are not supported. Putting them 14890 # here allows them to be overridden if necessary. 14891 runpath_var=LD_RUN_PATH 14892 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14893 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14894 # ancient GNU ld didn't support --whole-archive et. al. 14895 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14896 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14897 else 14898 whole_archive_flag_spec_F77= 14899 fi 14900 supports_anon_versioning=no 14901 case `$LD -v 2>/dev/null` in 14902 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14903 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14904 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14905 *\ 2.11.*) ;; # other 2.11 versions 14906 *) supports_anon_versioning=yes ;; 14907 esac 14908 14909 # See if GNU ld supports shared libraries. 14910 case $host_os in 14911 aix[3-9]*) 14912 # On AIX/PPC, the GNU linker is very broken 14913 if test "$host_cpu" != ia64; then 14914 ld_shlibs_F77=no 14915 cat <<EOF 1>&2 14916 14917*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14918*** to be unable to reliably create shared libraries on AIX. 14919*** Therefore, libtool is disabling shared libraries support. If you 14920*** really care for shared libraries, you may want to modify your PATH 14921*** so that a non-GNU linker is found, and then restart. 14922 14923EOF 14924 fi 14925 ;; 14926 14927 amigaos*) 14928 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)' 14929 hardcode_libdir_flag_spec_F77='-L$libdir' 14930 hardcode_minus_L_F77=yes 14931 14932 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14933 # that the semantics of dynamic libraries on AmigaOS, at least up 14934 # to version 4, is to share data among multiple programs linked 14935 # with the same dynamic library. Since this doesn't match the 14936 # behavior of shared libraries on other platforms, we can't use 14937 # them. 14938 ld_shlibs_F77=no 14939 ;; 14940 14941 beos*) 14942 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14943 allow_undefined_flag_F77=unsupported 14944 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14945 # support --undefined. This deserves some investigation. FIXME 14946 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14947 else 14948 ld_shlibs_F77=no 14949 fi 14950 ;; 14951 14952 cygwin* | mingw* | pw32*) 14953 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14954 # as there is no search path for DLLs. 14955 hardcode_libdir_flag_spec_F77='-L$libdir' 14956 allow_undefined_flag_F77=unsupported 14957 always_export_symbols_F77=no 14958 enable_shared_with_static_runtimes_F77=yes 14959 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14960 14961 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14962 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14963 # If the export-symbols file already is a .def file (1st line 14964 # is EXPORTS), use it as is; otherwise, prepend... 14965 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14966 cp $export_symbols $output_objdir/$soname.def; 14967 else 14968 echo EXPORTS > $output_objdir/$soname.def; 14969 cat $export_symbols >> $output_objdir/$soname.def; 14970 fi~ 14971 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14972 else 14973 ld_shlibs_F77=no 14974 fi 14975 ;; 14976 14977 interix[3-9]*) 14978 hardcode_direct_F77=no 14979 hardcode_shlibpath_var_F77=no 14980 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14981 export_dynamic_flag_spec_F77='${wl}-E' 14982 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14983 # Instead, shared libraries are loaded at an image base (0x10000000 by 14984 # default) and relocated if they conflict, which is a slow very memory 14985 # consuming and fragmenting process. To avoid this, we pick a random, 14986 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14987 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14988 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' 14989 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' 14990 ;; 14991 14992 gnu* | linux* | k*bsd*-gnu) 14993 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14994 tmp_addflag= 14995 case $cc_basename,$host_cpu in 14996 pgcc*) # Portland Group C compiler 14997 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' 14998 tmp_addflag=' $pic_flag' 14999 ;; 15000 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 15001 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' 15002 tmp_addflag=' $pic_flag -Mnomain' ;; 15003 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15004 tmp_addflag=' -i_dynamic' ;; 15005 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15006 tmp_addflag=' -i_dynamic -nofor_main' ;; 15007 ifc* | ifort*) # Intel Fortran compiler 15008 tmp_addflag=' -nofor_main' ;; 15009 esac 15010 case `$CC -V 2>&1 | sed 5q` in 15011 *Sun\ C*) # Sun C 5.9 15012 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' 15013 tmp_sharedflag='-G' ;; 15014 *Sun\ F*) # Sun Fortran 8.3 15015 tmp_sharedflag='-G' ;; 15016 *) 15017 tmp_sharedflag='-shared' ;; 15018 esac 15019 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15020 15021 if test $supports_anon_versioning = yes; then 15022 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 15023 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15024 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15025 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15026 fi 15027 else 15028 ld_shlibs_F77=no 15029 fi 15030 ;; 15031 15032 netbsd*) 15033 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15034 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15035 wlarc= 15036 else 15037 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15038 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15039 fi 15040 ;; 15041 15042 solaris*) 15043 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15044 ld_shlibs_F77=no 15045 cat <<EOF 1>&2 15046 15047*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15048*** create shared libraries on Solaris systems. Therefore, libtool 15049*** is disabling shared libraries support. We urge you to upgrade GNU 15050*** binutils to release 2.9.1 or newer. Another option is to modify 15051*** your PATH or compiler configuration so that the native linker is 15052*** used, and then restart. 15053 15054EOF 15055 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15056 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15057 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15058 else 15059 ld_shlibs_F77=no 15060 fi 15061 ;; 15062 15063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15064 case `$LD -v 2>&1` in 15065 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15066 ld_shlibs_F77=no 15067 cat <<_LT_EOF 1>&2 15068 15069*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15070*** reliably create shared libraries on SCO systems. Therefore, libtool 15071*** is disabling shared libraries support. We urge you to upgrade GNU 15072*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15073*** your PATH or compiler configuration so that the native linker is 15074*** used, and then restart. 15075 15076_LT_EOF 15077 ;; 15078 *) 15079 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15080 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15081 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15082 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15083 else 15084 ld_shlibs_F77=no 15085 fi 15086 ;; 15087 esac 15088 ;; 15089 15090 sunos4*) 15091 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15092 wlarc= 15093 hardcode_direct_F77=yes 15094 hardcode_shlibpath_var_F77=no 15095 ;; 15096 15097 *) 15098 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15099 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15100 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15101 else 15102 ld_shlibs_F77=no 15103 fi 15104 ;; 15105 esac 15106 15107 if test "$ld_shlibs_F77" = no; then 15108 runpath_var= 15109 hardcode_libdir_flag_spec_F77= 15110 export_dynamic_flag_spec_F77= 15111 whole_archive_flag_spec_F77= 15112 fi 15113 else 15114 # PORTME fill in a description of your system's linker (not GNU ld) 15115 case $host_os in 15116 aix3*) 15117 allow_undefined_flag_F77=unsupported 15118 always_export_symbols_F77=yes 15119 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' 15120 # Note: this linker hardcodes the directories in LIBPATH if there 15121 # are no directories specified by -L. 15122 hardcode_minus_L_F77=yes 15123 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15124 # Neither direct hardcoding nor static linking is supported with a 15125 # broken collect2. 15126 hardcode_direct_F77=unsupported 15127 fi 15128 ;; 15129 15130 aix[4-9]*) 15131 if test "$host_cpu" = ia64; then 15132 # On IA64, the linker does run time linking by default, so we don't 15133 # have to do anything special. 15134 aix_use_runtimelinking=no 15135 exp_sym_flag='-Bexport' 15136 no_entry_flag="" 15137 else 15138 # If we're using GNU nm, then we don't want the "-C" option. 15139 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15140 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15141 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' 15142 else 15143 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' 15144 fi 15145 aix_use_runtimelinking=no 15146 15147 # Test if we are trying to use run time linking or normal 15148 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15149 # need to do runtime linking. 15150 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15151 for ld_flag in $LDFLAGS; do 15152 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15153 aix_use_runtimelinking=yes 15154 break 15155 fi 15156 done 15157 ;; 15158 esac 15159 15160 exp_sym_flag='-bexport' 15161 no_entry_flag='-bnoentry' 15162 fi 15163 15164 # When large executables or shared objects are built, AIX ld can 15165 # have problems creating the table of contents. If linking a library 15166 # or program results in "error TOC overflow" add -mminimal-toc to 15167 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15168 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15169 15170 archive_cmds_F77='' 15171 hardcode_direct_F77=yes 15172 hardcode_libdir_separator_F77=':' 15173 link_all_deplibs_F77=yes 15174 15175 if test "$GCC" = yes; then 15176 case $host_os in aix4.[012]|aix4.[012].*) 15177 # We only want to do this on AIX 4.2 and lower, the check 15178 # below for broken collect2 doesn't work under 4.3+ 15179 collect2name=`${CC} -print-prog-name=collect2` 15180 if test -f "$collect2name" && \ 15181 strings "$collect2name" | grep resolve_lib_name >/dev/null 15182 then 15183 # We have reworked collect2 15184 : 15185 else 15186 # We have old collect2 15187 hardcode_direct_F77=unsupported 15188 # It fails to find uninstalled libraries when the uninstalled 15189 # path is not listed in the libpath. Setting hardcode_minus_L 15190 # to unsupported forces relinking 15191 hardcode_minus_L_F77=yes 15192 hardcode_libdir_flag_spec_F77='-L$libdir' 15193 hardcode_libdir_separator_F77= 15194 fi 15195 ;; 15196 esac 15197 shared_flag='-shared' 15198 if test "$aix_use_runtimelinking" = yes; then 15199 shared_flag="$shared_flag "'${wl}-G' 15200 fi 15201 else 15202 # not using gcc 15203 if test "$host_cpu" = ia64; then 15204 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15205 # chokes on -Wl,-G. The following line is correct: 15206 shared_flag='-G' 15207 else 15208 if test "$aix_use_runtimelinking" = yes; then 15209 shared_flag='${wl}-G' 15210 else 15211 shared_flag='${wl}-bM:SRE' 15212 fi 15213 fi 15214 fi 15215 15216 # It seems that -bexpall does not export symbols beginning with 15217 # underscore (_), so it is better to generate a list of symbols to export. 15218 always_export_symbols_F77=yes 15219 if test "$aix_use_runtimelinking" = yes; then 15220 # Warning - without using the other runtime loading flags (-brtl), 15221 # -berok will link without error, but may produce a broken library. 15222 allow_undefined_flag_F77='-berok' 15223 # Determine the default libpath from the value encoded in an empty executable. 15224 cat >conftest.$ac_ext <<_ACEOF 15225 program main 15226 15227 end 15228_ACEOF 15229rm -f conftest.$ac_objext conftest$ac_exeext 15230if { (ac_try="$ac_link" 15231case "(($ac_try" in 15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15233 *) ac_try_echo=$ac_try;; 15234esac 15235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15236$as_echo "$ac_try_echo") >&5 15237 (eval "$ac_link") 2>conftest.er1 15238 ac_status=$? 15239 grep -v '^ *+' conftest.er1 >conftest.err 15240 rm -f conftest.er1 15241 cat conftest.err >&5 15242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15243 (exit $ac_status); } && { 15244 test -z "$ac_f77_werror_flag" || 15245 test ! -s conftest.err 15246 } && test -s conftest$ac_exeext && { 15247 test "$cross_compiling" = yes || 15248 $as_test_x conftest$ac_exeext 15249 }; then 15250 15251lt_aix_libpath_sed=' 15252 /Import File Strings/,/^$/ { 15253 /^0/ { 15254 s/^0 *\(.*\)$/\1/ 15255 p 15256 } 15257 }' 15258aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15259# Check for a 64-bit object if we didn't find anything. 15260if test -z "$aix_libpath"; then 15261 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15262fi 15263else 15264 $as_echo "$as_me: failed program was:" >&5 15265sed 's/^/| /' conftest.$ac_ext >&5 15266 15267 15268fi 15269 15270rm -rf conftest.dSYM 15271rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15272 conftest$ac_exeext conftest.$ac_ext 15273if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15274 15275 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15276 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" 15277 else 15278 if test "$host_cpu" = ia64; then 15279 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15280 allow_undefined_flag_F77="-z nodefs" 15281 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" 15282 else 15283 # Determine the default libpath from the value encoded in an empty executable. 15284 cat >conftest.$ac_ext <<_ACEOF 15285 program main 15286 15287 end 15288_ACEOF 15289rm -f conftest.$ac_objext conftest$ac_exeext 15290if { (ac_try="$ac_link" 15291case "(($ac_try" in 15292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15293 *) ac_try_echo=$ac_try;; 15294esac 15295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15296$as_echo "$ac_try_echo") >&5 15297 (eval "$ac_link") 2>conftest.er1 15298 ac_status=$? 15299 grep -v '^ *+' conftest.er1 >conftest.err 15300 rm -f conftest.er1 15301 cat conftest.err >&5 15302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15303 (exit $ac_status); } && { 15304 test -z "$ac_f77_werror_flag" || 15305 test ! -s conftest.err 15306 } && test -s conftest$ac_exeext && { 15307 test "$cross_compiling" = yes || 15308 $as_test_x conftest$ac_exeext 15309 }; then 15310 15311lt_aix_libpath_sed=' 15312 /Import File Strings/,/^$/ { 15313 /^0/ { 15314 s/^0 *\(.*\)$/\1/ 15315 p 15316 } 15317 }' 15318aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15319# Check for a 64-bit object if we didn't find anything. 15320if test -z "$aix_libpath"; then 15321 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15322fi 15323else 15324 $as_echo "$as_me: failed program was:" >&5 15325sed 's/^/| /' conftest.$ac_ext >&5 15326 15327 15328fi 15329 15330rm -rf conftest.dSYM 15331rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15332 conftest$ac_exeext conftest.$ac_ext 15333if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15334 15335 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15336 # Warning - without using the other run time loading flags, 15337 # -berok will link without error, but may produce a broken library. 15338 no_undefined_flag_F77=' ${wl}-bernotok' 15339 allow_undefined_flag_F77=' ${wl}-berok' 15340 # Exported symbols can be pulled into shared objects from archives 15341 whole_archive_flag_spec_F77='$convenience' 15342 archive_cmds_need_lc_F77=yes 15343 # This is similar to how AIX traditionally builds its shared libraries. 15344 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' 15345 fi 15346 fi 15347 ;; 15348 15349 amigaos*) 15350 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)' 15351 hardcode_libdir_flag_spec_F77='-L$libdir' 15352 hardcode_minus_L_F77=yes 15353 # see comment about different semantics on the GNU ld section 15354 ld_shlibs_F77=no 15355 ;; 15356 15357 bsdi[45]*) 15358 export_dynamic_flag_spec_F77=-rdynamic 15359 ;; 15360 15361 cygwin* | mingw* | pw32*) 15362 # When not using gcc, we currently assume that we are using 15363 # Microsoft Visual C++. 15364 # hardcode_libdir_flag_spec is actually meaningless, as there is 15365 # no search path for DLLs. 15366 hardcode_libdir_flag_spec_F77=' ' 15367 allow_undefined_flag_F77=unsupported 15368 # Tell ltmain to make .lib files, not .a files. 15369 libext=lib 15370 # Tell ltmain to make .dll files, not .so files. 15371 shrext_cmds=".dll" 15372 # FIXME: Setting linknames here is a bad hack. 15373 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15374 # The linker will automatically build a .lib file if we build a DLL. 15375 old_archive_From_new_cmds_F77='true' 15376 # FIXME: Should let the user specify the lib program. 15377 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15378 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15379 enable_shared_with_static_runtimes_F77=yes 15380 ;; 15381 15382 darwin* | rhapsody*) 15383 case $host_os in 15384 rhapsody* | darwin1.[012]) 15385 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15386 ;; 15387 *) # Darwin 1.3 on 15388 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15389 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15390 else 15391 case ${MACOSX_DEPLOYMENT_TARGET} in 15392 10.[012]) 15393 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15394 ;; 15395 10.*) 15396 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15397 ;; 15398 esac 15399 fi 15400 ;; 15401 esac 15402 archive_cmds_need_lc_F77=no 15403 hardcode_direct_F77=no 15404 hardcode_automatic_F77=yes 15405 hardcode_shlibpath_var_F77=unsupported 15406 whole_archive_flag_spec_F77='' 15407 link_all_deplibs_F77=yes 15408 if test "$GCC" = yes ; then 15409 output_verbose_link_cmd='echo' 15410 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}" 15411 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15412 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}" 15413 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}" 15414 else 15415 case $cc_basename in 15416 xlc*) 15417 output_verbose_link_cmd='echo' 15418 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15419 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15420 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15421 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}' 15422 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}' 15423 ;; 15424 *) 15425 ld_shlibs_F77=no 15426 ;; 15427 esac 15428 fi 15429 ;; 15430 15431 dgux*) 15432 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15433 hardcode_libdir_flag_spec_F77='-L$libdir' 15434 hardcode_shlibpath_var_F77=no 15435 ;; 15436 15437 freebsd1*) 15438 ld_shlibs_F77=no 15439 ;; 15440 15441 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15442 # support. Future versions do this automatically, but an explicit c++rt0.o 15443 # does not break anything, and helps significantly (at the cost of a little 15444 # extra space). 15445 freebsd2.2*) 15446 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15447 hardcode_libdir_flag_spec_F77='-R$libdir' 15448 hardcode_direct_F77=yes 15449 hardcode_shlibpath_var_F77=no 15450 ;; 15451 15452 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15453 freebsd2*) 15454 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15455 hardcode_direct_F77=yes 15456 hardcode_minus_L_F77=yes 15457 hardcode_shlibpath_var_F77=no 15458 ;; 15459 15460 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15461 freebsd* | dragonfly*) 15462 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15463 hardcode_libdir_flag_spec_F77='-R$libdir' 15464 hardcode_direct_F77=yes 15465 hardcode_shlibpath_var_F77=no 15466 ;; 15467 15468 hpux9*) 15469 if test "$GCC" = yes; then 15470 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' 15471 else 15472 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' 15473 fi 15474 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15475 hardcode_libdir_separator_F77=: 15476 hardcode_direct_F77=yes 15477 15478 # hardcode_minus_L: Not really in the search PATH, 15479 # but as the default location of the library. 15480 hardcode_minus_L_F77=yes 15481 export_dynamic_flag_spec_F77='${wl}-E' 15482 ;; 15483 15484 hpux10*) 15485 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15486 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15487 else 15488 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15489 fi 15490 if test "$with_gnu_ld" = no; then 15491 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15492 hardcode_libdir_separator_F77=: 15493 15494 hardcode_direct_F77=yes 15495 export_dynamic_flag_spec_F77='${wl}-E' 15496 15497 # hardcode_minus_L: Not really in the search PATH, 15498 # but as the default location of the library. 15499 hardcode_minus_L_F77=yes 15500 fi 15501 ;; 15502 15503 hpux11*) 15504 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15505 case $host_cpu in 15506 hppa*64*) 15507 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15508 ;; 15509 ia64*) 15510 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15511 ;; 15512 *) 15513 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15514 ;; 15515 esac 15516 else 15517 case $host_cpu in 15518 hppa*64*) 15519 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15520 ;; 15521 ia64*) 15522 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15523 ;; 15524 *) 15525 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15526 ;; 15527 esac 15528 fi 15529 if test "$with_gnu_ld" = no; then 15530 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15531 hardcode_libdir_separator_F77=: 15532 15533 case $host_cpu in 15534 hppa*64*|ia64*) 15535 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15536 hardcode_direct_F77=no 15537 hardcode_shlibpath_var_F77=no 15538 ;; 15539 *) 15540 hardcode_direct_F77=yes 15541 export_dynamic_flag_spec_F77='${wl}-E' 15542 15543 # hardcode_minus_L: Not really in the search PATH, 15544 # but as the default location of the library. 15545 hardcode_minus_L_F77=yes 15546 ;; 15547 esac 15548 fi 15549 ;; 15550 15551 irix5* | irix6* | nonstopux*) 15552 if test "$GCC" = yes; then 15553 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' 15554 else 15555 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' 15556 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15557 fi 15558 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15559 hardcode_libdir_separator_F77=: 15560 link_all_deplibs_F77=yes 15561 ;; 15562 15563 netbsd*) 15564 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15565 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15566 else 15567 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15568 fi 15569 hardcode_libdir_flag_spec_F77='-R$libdir' 15570 hardcode_direct_F77=yes 15571 hardcode_shlibpath_var_F77=no 15572 ;; 15573 15574 newsos6) 15575 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15576 hardcode_direct_F77=yes 15577 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15578 hardcode_libdir_separator_F77=: 15579 hardcode_shlibpath_var_F77=no 15580 ;; 15581 15582 openbsd*) 15583 if test -f /usr/libexec/ld.so; then 15584 hardcode_direct_F77=yes 15585 hardcode_shlibpath_var_F77=no 15586 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15587 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15588 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15589 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15590 export_dynamic_flag_spec_F77='${wl}-E' 15591 else 15592 case $host_os in 15593 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15594 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15595 hardcode_libdir_flag_spec_F77='-R$libdir' 15596 ;; 15597 *) 15598 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15599 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15600 ;; 15601 esac 15602 fi 15603 else 15604 ld_shlibs_F77=no 15605 fi 15606 ;; 15607 15608 os2*) 15609 hardcode_libdir_flag_spec_F77='-L$libdir' 15610 hardcode_minus_L_F77=yes 15611 allow_undefined_flag_F77=unsupported 15612 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' 15613 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15614 ;; 15615 15616 osf3*) 15617 if test "$GCC" = yes; then 15618 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15619 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' 15620 else 15621 allow_undefined_flag_F77=' -expect_unresolved \*' 15622 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' 15623 fi 15624 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15625 hardcode_libdir_separator_F77=: 15626 ;; 15627 15628 osf4* | osf5*) # as osf3* with the addition of -msym flag 15629 if test "$GCC" = yes; then 15630 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15631 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' 15632 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15633 else 15634 allow_undefined_flag_F77=' -expect_unresolved \*' 15635 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' 15636 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~ 15637 $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' 15638 15639 # Both c and cxx compiler support -rpath directly 15640 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15641 fi 15642 hardcode_libdir_separator_F77=: 15643 ;; 15644 15645 solaris*) 15646 no_undefined_flag_F77=' -z text' 15647 if test "$GCC" = yes; then 15648 wlarc='${wl}' 15649 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15650 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15651 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15652 else 15653 wlarc='' 15654 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15655 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15656 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15657 fi 15658 hardcode_libdir_flag_spec_F77='-R$libdir' 15659 hardcode_shlibpath_var_F77=no 15660 case $host_os in 15661 solaris2.[0-5] | solaris2.[0-5].*) ;; 15662 *) 15663 # The compiler driver will combine and reorder linker options, 15664 # but understands `-z linker_flag'. GCC discards it without `$wl', 15665 # but is careful enough not to reorder. 15666 # Supported since Solaris 2.6 (maybe 2.5.1?) 15667 if test "$GCC" = yes; then 15668 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15669 else 15670 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15671 fi 15672 ;; 15673 esac 15674 link_all_deplibs_F77=yes 15675 ;; 15676 15677 sunos4*) 15678 if test "x$host_vendor" = xsequent; then 15679 # Use $CC to link under sequent, because it throws in some extra .o 15680 # files that make .init and .fini sections work. 15681 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15682 else 15683 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15684 fi 15685 hardcode_libdir_flag_spec_F77='-L$libdir' 15686 hardcode_direct_F77=yes 15687 hardcode_minus_L_F77=yes 15688 hardcode_shlibpath_var_F77=no 15689 ;; 15690 15691 sysv4) 15692 case $host_vendor in 15693 sni) 15694 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15695 hardcode_direct_F77=yes # is this really true??? 15696 ;; 15697 siemens) 15698 ## LD is ld it makes a PLAMLIB 15699 ## CC just makes a GrossModule. 15700 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15701 reload_cmds_F77='$CC -r -o $output$reload_objs' 15702 hardcode_direct_F77=no 15703 ;; 15704 motorola) 15705 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15706 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15707 ;; 15708 esac 15709 runpath_var='LD_RUN_PATH' 15710 hardcode_shlibpath_var_F77=no 15711 ;; 15712 15713 sysv4.3*) 15714 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15715 hardcode_shlibpath_var_F77=no 15716 export_dynamic_flag_spec_F77='-Bexport' 15717 ;; 15718 15719 sysv4*MP*) 15720 if test -d /usr/nec; then 15721 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15722 hardcode_shlibpath_var_F77=no 15723 runpath_var=LD_RUN_PATH 15724 hardcode_runpath_var=yes 15725 ld_shlibs_F77=yes 15726 fi 15727 ;; 15728 15729 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15730 no_undefined_flag_F77='${wl}-z,text' 15731 archive_cmds_need_lc_F77=no 15732 hardcode_shlibpath_var_F77=no 15733 runpath_var='LD_RUN_PATH' 15734 15735 if test "$GCC" = yes; then 15736 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15737 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15738 else 15739 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15740 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15741 fi 15742 ;; 15743 15744 sysv5* | sco3.2v5* | sco5v6*) 15745 # Note: We can NOT use -z defs as we might desire, because we do not 15746 # link with -lc, and that would cause any symbols used from libc to 15747 # always be unresolved, which means just about no library would 15748 # ever link correctly. If we're not using GNU ld we use -z text 15749 # though, which does catch some bad symbols but isn't as heavy-handed 15750 # as -z defs. 15751 no_undefined_flag_F77='${wl}-z,text' 15752 allow_undefined_flag_F77='${wl}-z,nodefs' 15753 archive_cmds_need_lc_F77=no 15754 hardcode_shlibpath_var_F77=no 15755 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15756 hardcode_libdir_separator_F77=':' 15757 link_all_deplibs_F77=yes 15758 export_dynamic_flag_spec_F77='${wl}-Bexport' 15759 runpath_var='LD_RUN_PATH' 15760 15761 if test "$GCC" = yes; then 15762 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15763 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15764 else 15765 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15766 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15767 fi 15768 ;; 15769 15770 uts4*) 15771 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15772 hardcode_libdir_flag_spec_F77='-L$libdir' 15773 hardcode_shlibpath_var_F77=no 15774 ;; 15775 15776 *) 15777 ld_shlibs_F77=no 15778 ;; 15779 esac 15780 fi 15781 15782{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15783$as_echo "$ld_shlibs_F77" >&6; } 15784test "$ld_shlibs_F77" = no && can_build_shared=no 15785 15786# 15787# Do we need to explicitly link libc? 15788# 15789case "x$archive_cmds_need_lc_F77" in 15790x|xyes) 15791 # Assume -lc should be added 15792 archive_cmds_need_lc_F77=yes 15793 15794 if test "$enable_shared" = yes && test "$GCC" = yes; then 15795 case $archive_cmds_F77 in 15796 *'~'*) 15797 # FIXME: we may have to deal with multi-command sequences. 15798 ;; 15799 '$CC '*) 15800 # Test whether the compiler implicitly links with -lc since on some 15801 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15802 # to ld, don't add -lc before -lgcc. 15803 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15804$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15805 $rm conftest* 15806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15807 15808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15809 (eval $ac_compile) 2>&5 15810 ac_status=$? 15811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15812 (exit $ac_status); } 2>conftest.err; then 15813 soname=conftest 15814 lib=conftest 15815 libobjs=conftest.$ac_objext 15816 deplibs= 15817 wl=$lt_prog_compiler_wl_F77 15818 pic_flag=$lt_prog_compiler_pic_F77 15819 compiler_flags=-v 15820 linker_flags=-v 15821 verstring= 15822 output_objdir=. 15823 libname=conftest 15824 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15825 allow_undefined_flag_F77= 15826 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15827 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15828 ac_status=$? 15829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15830 (exit $ac_status); } 15831 then 15832 archive_cmds_need_lc_F77=no 15833 else 15834 archive_cmds_need_lc_F77=yes 15835 fi 15836 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15837 else 15838 cat conftest.err 1>&5 15839 fi 15840 $rm conftest* 15841 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15842$as_echo "$archive_cmds_need_lc_F77" >&6; } 15843 ;; 15844 esac 15845 fi 15846 ;; 15847esac 15848 15849{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15850$as_echo_n "checking dynamic linker characteristics... " >&6; } 15851library_names_spec= 15852libname_spec='lib$name' 15853soname_spec= 15854shrext_cmds=".so" 15855postinstall_cmds= 15856postuninstall_cmds= 15857finish_cmds= 15858finish_eval= 15859shlibpath_var= 15860shlibpath_overrides_runpath=unknown 15861version_type=none 15862dynamic_linker="$host_os ld.so" 15863sys_lib_dlsearch_path_spec="/lib /usr/lib" 15864 15865need_lib_prefix=unknown 15866hardcode_into_libs=no 15867 15868# when you set need_version to no, make sure it does not cause -set_version 15869# flags to be left without arguments 15870need_version=unknown 15871 15872case $host_os in 15873aix3*) 15874 version_type=linux 15875 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15876 shlibpath_var=LIBPATH 15877 15878 # AIX 3 has no versioning support, so we append a major version to the name. 15879 soname_spec='${libname}${release}${shared_ext}$major' 15880 ;; 15881 15882aix[4-9]*) 15883 version_type=linux 15884 need_lib_prefix=no 15885 need_version=no 15886 hardcode_into_libs=yes 15887 if test "$host_cpu" = ia64; then 15888 # AIX 5 supports IA64 15889 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15890 shlibpath_var=LD_LIBRARY_PATH 15891 else 15892 # With GCC up to 2.95.x, collect2 would create an import file 15893 # for dependence libraries. The import file would start with 15894 # the line `#! .'. This would cause the generated library to 15895 # depend on `.', always an invalid library. This was fixed in 15896 # development snapshots of GCC prior to 3.0. 15897 case $host_os in 15898 aix4 | aix4.[01] | aix4.[01].*) 15899 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15900 echo ' yes ' 15901 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15902 : 15903 else 15904 can_build_shared=no 15905 fi 15906 ;; 15907 esac 15908 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15909 # soname into executable. Probably we can add versioning support to 15910 # collect2, so additional links can be useful in future. 15911 if test "$aix_use_runtimelinking" = yes; then 15912 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15913 # instead of lib<name>.a to let people know that these are not 15914 # typical AIX shared libraries. 15915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15916 else 15917 # We preserve .a as extension for shared libraries through AIX4.2 15918 # and later when we are not doing run time linking. 15919 library_names_spec='${libname}${release}.a $libname.a' 15920 soname_spec='${libname}${release}${shared_ext}$major' 15921 fi 15922 shlibpath_var=LIBPATH 15923 fi 15924 ;; 15925 15926amigaos*) 15927 library_names_spec='$libname.ixlibrary $libname.a' 15928 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15929 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' 15930 ;; 15931 15932beos*) 15933 library_names_spec='${libname}${shared_ext}' 15934 dynamic_linker="$host_os ld.so" 15935 shlibpath_var=LIBRARY_PATH 15936 ;; 15937 15938bsdi[45]*) 15939 version_type=linux 15940 need_version=no 15941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15942 soname_spec='${libname}${release}${shared_ext}$major' 15943 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15944 shlibpath_var=LD_LIBRARY_PATH 15945 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15946 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15947 # the default ld.so.conf also contains /usr/contrib/lib and 15948 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15949 # libtool to hard-code these into programs 15950 ;; 15951 15952cygwin* | mingw* | pw32*) 15953 version_type=windows 15954 shrext_cmds=".dll" 15955 need_version=no 15956 need_lib_prefix=no 15957 15958 case $GCC,$host_os in 15959 yes,cygwin* | yes,mingw* | yes,pw32*) 15960 library_names_spec='$libname.dll.a' 15961 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15962 postinstall_cmds='base_file=`basename \${file}`~ 15963 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15964 dldir=$destdir/`dirname \$dlpath`~ 15965 test -d \$dldir || mkdir -p \$dldir~ 15966 $install_prog $dir/$dlname \$dldir/$dlname~ 15967 chmod a+x \$dldir/$dlname' 15968 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15969 dlpath=$dir/\$dldll~ 15970 $rm \$dlpath' 15971 shlibpath_overrides_runpath=yes 15972 15973 case $host_os in 15974 cygwin*) 15975 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15976 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15977 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15978 ;; 15979 mingw*) 15980 # MinGW DLLs use traditional 'lib' prefix 15981 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15982 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15983 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15984 # It is most probably a Windows format PATH printed by 15985 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15986 # path with ; separators, and with drive letters. We can handle the 15987 # drive letters (cygwin fileutils understands them), so leave them, 15988 # especially as we might pass files found there to a mingw objdump, 15989 # which wouldn't understand a cygwinified path. Ahh. 15990 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15991 else 15992 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15993 fi 15994 ;; 15995 pw32*) 15996 # pw32 DLLs use 'pw' prefix rather than 'lib' 15997 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15998 ;; 15999 esac 16000 ;; 16001 16002 *) 16003 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16004 ;; 16005 esac 16006 dynamic_linker='Win32 ld.exe' 16007 # FIXME: first we should search . and the directory the executable is in 16008 shlibpath_var=PATH 16009 ;; 16010 16011darwin* | rhapsody*) 16012 dynamic_linker="$host_os dyld" 16013 version_type=darwin 16014 need_lib_prefix=no 16015 need_version=no 16016 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16017 soname_spec='${libname}${release}${major}$shared_ext' 16018 shlibpath_overrides_runpath=yes 16019 shlibpath_var=DYLD_LIBRARY_PATH 16020 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16021 16022 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16023 ;; 16024 16025dgux*) 16026 version_type=linux 16027 need_lib_prefix=no 16028 need_version=no 16029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16030 soname_spec='${libname}${release}${shared_ext}$major' 16031 shlibpath_var=LD_LIBRARY_PATH 16032 ;; 16033 16034freebsd1*) 16035 dynamic_linker=no 16036 ;; 16037 16038freebsd* | dragonfly*) 16039 # DragonFly does not have aout. When/if they implement a new 16040 # versioning mechanism, adjust this. 16041 if test -x /usr/bin/objformat; then 16042 objformat=`/usr/bin/objformat` 16043 else 16044 case $host_os in 16045 freebsd[123]*) objformat=aout ;; 16046 *) objformat=elf ;; 16047 esac 16048 fi 16049 version_type=freebsd-$objformat 16050 case $version_type in 16051 freebsd-elf*) 16052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16053 need_version=no 16054 need_lib_prefix=no 16055 ;; 16056 freebsd-*) 16057 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16058 need_version=yes 16059 ;; 16060 esac 16061 shlibpath_var=LD_LIBRARY_PATH 16062 case $host_os in 16063 freebsd2*) 16064 shlibpath_overrides_runpath=yes 16065 ;; 16066 freebsd3.[01]* | freebsdelf3.[01]*) 16067 shlibpath_overrides_runpath=yes 16068 hardcode_into_libs=yes 16069 ;; 16070 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16071 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16072 shlibpath_overrides_runpath=no 16073 hardcode_into_libs=yes 16074 ;; 16075 *) # from 4.6 on, and DragonFly 16076 shlibpath_overrides_runpath=yes 16077 hardcode_into_libs=yes 16078 ;; 16079 esac 16080 ;; 16081 16082gnu*) 16083 version_type=linux 16084 need_lib_prefix=no 16085 need_version=no 16086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16087 soname_spec='${libname}${release}${shared_ext}$major' 16088 shlibpath_var=LD_LIBRARY_PATH 16089 hardcode_into_libs=yes 16090 ;; 16091 16092hpux9* | hpux10* | hpux11*) 16093 # Give a soname corresponding to the major version so that dld.sl refuses to 16094 # link against other versions. 16095 version_type=sunos 16096 need_lib_prefix=no 16097 need_version=no 16098 case $host_cpu in 16099 ia64*) 16100 shrext_cmds='.so' 16101 hardcode_into_libs=yes 16102 dynamic_linker="$host_os dld.so" 16103 shlibpath_var=LD_LIBRARY_PATH 16104 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16106 soname_spec='${libname}${release}${shared_ext}$major' 16107 if test "X$HPUX_IA64_MODE" = X32; then 16108 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16109 else 16110 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16111 fi 16112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16113 ;; 16114 hppa*64*) 16115 shrext_cmds='.sl' 16116 hardcode_into_libs=yes 16117 dynamic_linker="$host_os dld.sl" 16118 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16121 soname_spec='${libname}${release}${shared_ext}$major' 16122 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16124 ;; 16125 *) 16126 shrext_cmds='.sl' 16127 dynamic_linker="$host_os dld.sl" 16128 shlibpath_var=SHLIB_PATH 16129 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 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 ;; 16133 esac 16134 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16135 postinstall_cmds='chmod 555 $lib' 16136 ;; 16137 16138interix[3-9]*) 16139 version_type=linux 16140 need_lib_prefix=no 16141 need_version=no 16142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16143 soname_spec='${libname}${release}${shared_ext}$major' 16144 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16145 shlibpath_var=LD_LIBRARY_PATH 16146 shlibpath_overrides_runpath=no 16147 hardcode_into_libs=yes 16148 ;; 16149 16150irix5* | irix6* | nonstopux*) 16151 case $host_os in 16152 nonstopux*) version_type=nonstopux ;; 16153 *) 16154 if test "$lt_cv_prog_gnu_ld" = yes; then 16155 version_type=linux 16156 else 16157 version_type=irix 16158 fi ;; 16159 esac 16160 need_lib_prefix=no 16161 need_version=no 16162 soname_spec='${libname}${release}${shared_ext}$major' 16163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16164 case $host_os in 16165 irix5* | nonstopux*) 16166 libsuff= shlibsuff= 16167 ;; 16168 *) 16169 case $LD in # libtool.m4 will add one of these switches to LD 16170 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16171 libsuff= shlibsuff= libmagic=32-bit;; 16172 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16173 libsuff=32 shlibsuff=N32 libmagic=N32;; 16174 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16175 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16176 *) libsuff= shlibsuff= libmagic=never-match;; 16177 esac 16178 ;; 16179 esac 16180 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16181 shlibpath_overrides_runpath=no 16182 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16183 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16184 hardcode_into_libs=yes 16185 ;; 16186 16187# No shared lib support for Linux oldld, aout, or coff. 16188linux*oldld* | linux*aout* | linux*coff*) 16189 dynamic_linker=no 16190 ;; 16191 16192# This must be Linux ELF. 16193linux* | k*bsd*-gnu) 16194 version_type=linux 16195 need_lib_prefix=no 16196 need_version=no 16197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16198 soname_spec='${libname}${release}${shared_ext}$major' 16199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16200 shlibpath_var=LD_LIBRARY_PATH 16201 shlibpath_overrides_runpath=no 16202 # This implies no fast_install, which is unacceptable. 16203 # Some rework will be needed to allow for fast_install 16204 # before this can be enabled. 16205 hardcode_into_libs=yes 16206 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16207 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16208 16209 # Append ld.so.conf contents to the search path 16210 if test -f /etc/ld.so.conf; then 16211 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' ' '` 16212 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 16213 fi 16214 16215 # We used to test for /lib/ld.so.1 and disable shared libraries on 16216 # powerpc, because MkLinux only supported shared libraries with the 16217 # GNU dynamic linker. Since this was broken with cross compilers, 16218 # most powerpc-linux boxes support dynamic linking these days and 16219 # people can always --disable-shared, the test was removed, and we 16220 # assume the GNU/Linux dynamic linker is in use. 16221 dynamic_linker='GNU/Linux ld.so' 16222 ;; 16223 16224netbsd*) 16225 version_type=sunos 16226 need_lib_prefix=no 16227 need_version=no 16228 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16231 dynamic_linker='NetBSD (a.out) ld.so' 16232 else 16233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16234 soname_spec='${libname}${release}${shared_ext}$major' 16235 dynamic_linker='NetBSD ld.elf_so' 16236 fi 16237 shlibpath_var=LD_LIBRARY_PATH 16238 shlibpath_overrides_runpath=yes 16239 hardcode_into_libs=yes 16240 ;; 16241 16242newsos6) 16243 version_type=linux 16244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16245 shlibpath_var=LD_LIBRARY_PATH 16246 shlibpath_overrides_runpath=yes 16247 ;; 16248 16249nto-qnx*) 16250 version_type=linux 16251 need_lib_prefix=no 16252 need_version=no 16253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16254 soname_spec='${libname}${release}${shared_ext}$major' 16255 shlibpath_var=LD_LIBRARY_PATH 16256 shlibpath_overrides_runpath=yes 16257 ;; 16258 16259openbsd*) 16260 version_type=sunos 16261 sys_lib_dlsearch_path_spec="/usr/lib" 16262 need_lib_prefix=no 16263 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16264 case $host_os in 16265 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16266 *) need_version=no ;; 16267 esac 16268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16270 shlibpath_var=LD_LIBRARY_PATH 16271 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16272 case $host_os in 16273 openbsd2.[89] | openbsd2.[89].*) 16274 shlibpath_overrides_runpath=no 16275 ;; 16276 *) 16277 shlibpath_overrides_runpath=yes 16278 ;; 16279 esac 16280 else 16281 shlibpath_overrides_runpath=yes 16282 fi 16283 ;; 16284 16285os2*) 16286 libname_spec='$name' 16287 shrext_cmds=".dll" 16288 need_lib_prefix=no 16289 library_names_spec='$libname${shared_ext} $libname.a' 16290 dynamic_linker='OS/2 ld.exe' 16291 shlibpath_var=LIBPATH 16292 ;; 16293 16294osf3* | osf4* | osf5*) 16295 version_type=osf 16296 need_lib_prefix=no 16297 need_version=no 16298 soname_spec='${libname}${release}${shared_ext}$major' 16299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16300 shlibpath_var=LD_LIBRARY_PATH 16301 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16302 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16303 ;; 16304 16305rdos*) 16306 dynamic_linker=no 16307 ;; 16308 16309solaris*) 16310 version_type=linux 16311 need_lib_prefix=no 16312 need_version=no 16313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16314 soname_spec='${libname}${release}${shared_ext}$major' 16315 shlibpath_var=LD_LIBRARY_PATH 16316 shlibpath_overrides_runpath=yes 16317 hardcode_into_libs=yes 16318 # ldd complains unless libraries are executable 16319 postinstall_cmds='chmod +x $lib' 16320 ;; 16321 16322sunos4*) 16323 version_type=sunos 16324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16325 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16326 shlibpath_var=LD_LIBRARY_PATH 16327 shlibpath_overrides_runpath=yes 16328 if test "$with_gnu_ld" = yes; then 16329 need_lib_prefix=no 16330 fi 16331 need_version=yes 16332 ;; 16333 16334sysv4 | sysv4.3*) 16335 version_type=linux 16336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16337 soname_spec='${libname}${release}${shared_ext}$major' 16338 shlibpath_var=LD_LIBRARY_PATH 16339 case $host_vendor in 16340 sni) 16341 shlibpath_overrides_runpath=no 16342 need_lib_prefix=no 16343 export_dynamic_flag_spec='${wl}-Blargedynsym' 16344 runpath_var=LD_RUN_PATH 16345 ;; 16346 siemens) 16347 need_lib_prefix=no 16348 ;; 16349 motorola) 16350 need_lib_prefix=no 16351 need_version=no 16352 shlibpath_overrides_runpath=no 16353 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16354 ;; 16355 esac 16356 ;; 16357 16358sysv4*MP*) 16359 if test -d /usr/nec ;then 16360 version_type=linux 16361 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16362 soname_spec='$libname${shared_ext}.$major' 16363 shlibpath_var=LD_LIBRARY_PATH 16364 fi 16365 ;; 16366 16367sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16368 version_type=freebsd-elf 16369 need_lib_prefix=no 16370 need_version=no 16371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16372 soname_spec='${libname}${release}${shared_ext}$major' 16373 shlibpath_var=LD_LIBRARY_PATH 16374 hardcode_into_libs=yes 16375 if test "$with_gnu_ld" = yes; then 16376 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16377 shlibpath_overrides_runpath=no 16378 else 16379 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16380 shlibpath_overrides_runpath=yes 16381 case $host_os in 16382 sco3.2v5*) 16383 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16384 ;; 16385 esac 16386 fi 16387 sys_lib_dlsearch_path_spec='/usr/lib' 16388 ;; 16389 16390uts4*) 16391 version_type=linux 16392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16393 soname_spec='${libname}${release}${shared_ext}$major' 16394 shlibpath_var=LD_LIBRARY_PATH 16395 ;; 16396 16397*) 16398 dynamic_linker=no 16399 ;; 16400esac 16401{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16402$as_echo "$dynamic_linker" >&6; } 16403test "$dynamic_linker" = no && can_build_shared=no 16404 16405if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16406 $as_echo_n "(cached) " >&6 16407else 16408 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 16409fi 16410 16411sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16412if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16413 $as_echo_n "(cached) " >&6 16414else 16415 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 16416fi 16417 16418sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16419 16420variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16421if test "$GCC" = yes; then 16422 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16423fi 16424 16425{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16426$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16427hardcode_action_F77= 16428if test -n "$hardcode_libdir_flag_spec_F77" || \ 16429 test -n "$runpath_var_F77" || \ 16430 test "X$hardcode_automatic_F77" = "Xyes" ; then 16431 16432 # We can hardcode non-existant directories. 16433 if test "$hardcode_direct_F77" != no && 16434 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16435 # have to relink, otherwise we might link with an installed library 16436 # when we should be linking with a yet-to-be-installed one 16437 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16438 test "$hardcode_minus_L_F77" != no; then 16439 # Linking always hardcodes the temporary library directory. 16440 hardcode_action_F77=relink 16441 else 16442 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16443 hardcode_action_F77=immediate 16444 fi 16445else 16446 # We cannot hardcode anything, or else we can only hardcode existing 16447 # directories. 16448 hardcode_action_F77=unsupported 16449fi 16450{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16451$as_echo "$hardcode_action_F77" >&6; } 16452 16453if test "$hardcode_action_F77" = relink; then 16454 # Fast installation is not supported 16455 enable_fast_install=no 16456elif test "$shlibpath_overrides_runpath" = yes || 16457 test "$enable_shared" = no; then 16458 # Fast installation is not necessary 16459 enable_fast_install=needless 16460fi 16461 16462 16463# The else clause should only fire when bootstrapping the 16464# libtool distribution, otherwise you forgot to ship ltmain.sh 16465# with your package, and you will get complaints that there are 16466# no rules to generate ltmain.sh. 16467if test -f "$ltmain"; then 16468 # See if we are running on zsh, and set the options which allow our commands through 16469 # without removal of \ escapes. 16470 if test -n "${ZSH_VERSION+set}" ; then 16471 setopt NO_GLOB_SUBST 16472 fi 16473 # Now quote all the things that may contain metacharacters while being 16474 # careful not to overquote the AC_SUBSTed values. We take copies of the 16475 # variables and quote the copies for generation of the libtool script. 16476 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16477 SED SHELL STRIP \ 16478 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16479 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16480 deplibs_check_method reload_flag reload_cmds need_locks \ 16481 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16482 lt_cv_sys_global_symbol_to_c_name_address \ 16483 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16484 old_postinstall_cmds old_postuninstall_cmds \ 16485 compiler_F77 \ 16486 CC_F77 \ 16487 LD_F77 \ 16488 lt_prog_compiler_wl_F77 \ 16489 lt_prog_compiler_pic_F77 \ 16490 lt_prog_compiler_static_F77 \ 16491 lt_prog_compiler_no_builtin_flag_F77 \ 16492 export_dynamic_flag_spec_F77 \ 16493 thread_safe_flag_spec_F77 \ 16494 whole_archive_flag_spec_F77 \ 16495 enable_shared_with_static_runtimes_F77 \ 16496 old_archive_cmds_F77 \ 16497 old_archive_from_new_cmds_F77 \ 16498 predep_objects_F77 \ 16499 postdep_objects_F77 \ 16500 predeps_F77 \ 16501 postdeps_F77 \ 16502 compiler_lib_search_path_F77 \ 16503 compiler_lib_search_dirs_F77 \ 16504 archive_cmds_F77 \ 16505 archive_expsym_cmds_F77 \ 16506 postinstall_cmds_F77 \ 16507 postuninstall_cmds_F77 \ 16508 old_archive_from_expsyms_cmds_F77 \ 16509 allow_undefined_flag_F77 \ 16510 no_undefined_flag_F77 \ 16511 export_symbols_cmds_F77 \ 16512 hardcode_libdir_flag_spec_F77 \ 16513 hardcode_libdir_flag_spec_ld_F77 \ 16514 hardcode_libdir_separator_F77 \ 16515 hardcode_automatic_F77 \ 16516 module_cmds_F77 \ 16517 module_expsym_cmds_F77 \ 16518 lt_cv_prog_compiler_c_o_F77 \ 16519 fix_srcfile_path_F77 \ 16520 exclude_expsyms_F77 \ 16521 include_expsyms_F77; do 16522 16523 case $var in 16524 old_archive_cmds_F77 | \ 16525 old_archive_from_new_cmds_F77 | \ 16526 archive_cmds_F77 | \ 16527 archive_expsym_cmds_F77 | \ 16528 module_cmds_F77 | \ 16529 module_expsym_cmds_F77 | \ 16530 old_archive_from_expsyms_cmds_F77 | \ 16531 export_symbols_cmds_F77 | \ 16532 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16533 postinstall_cmds | postuninstall_cmds | \ 16534 old_postinstall_cmds | old_postuninstall_cmds | \ 16535 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16536 # Double-quote double-evaled strings. 16537 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16538 ;; 16539 *) 16540 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16541 ;; 16542 esac 16543 done 16544 16545 case $lt_echo in 16546 *'\$0 --fallback-echo"') 16547 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16548 ;; 16549 esac 16550 16551cfgfile="$ofile" 16552 16553 cat <<__EOF__ >> "$cfgfile" 16554# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16555 16556# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16557 16558# Shell to use when invoking shell scripts. 16559SHELL=$lt_SHELL 16560 16561# Whether or not to build shared libraries. 16562build_libtool_libs=$enable_shared 16563 16564# Whether or not to build static libraries. 16565build_old_libs=$enable_static 16566 16567# Whether or not to add -lc for building shared libraries. 16568build_libtool_need_lc=$archive_cmds_need_lc_F77 16569 16570# Whether or not to disallow shared libs when runtime libs are static 16571allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16572 16573# Whether or not to optimize for fast installation. 16574fast_install=$enable_fast_install 16575 16576# The host system. 16577host_alias=$host_alias 16578host=$host 16579host_os=$host_os 16580 16581# The build system. 16582build_alias=$build_alias 16583build=$build 16584build_os=$build_os 16585 16586# An echo program that does not interpret backslashes. 16587echo=$lt_echo 16588 16589# The archiver. 16590AR=$lt_AR 16591AR_FLAGS=$lt_AR_FLAGS 16592 16593# A C compiler. 16594LTCC=$lt_LTCC 16595 16596# LTCC compiler flags. 16597LTCFLAGS=$lt_LTCFLAGS 16598 16599# A language-specific compiler. 16600CC=$lt_compiler_F77 16601 16602# Is the compiler the GNU C compiler? 16603with_gcc=$GCC_F77 16604 16605# An ERE matcher. 16606EGREP=$lt_EGREP 16607 16608# The linker used to build libraries. 16609LD=$lt_LD_F77 16610 16611# Whether we need hard or soft links. 16612LN_S=$lt_LN_S 16613 16614# A BSD-compatible nm program. 16615NM=$lt_NM 16616 16617# A symbol stripping program 16618STRIP=$lt_STRIP 16619 16620# Used to examine libraries when file_magic_cmd begins "file" 16621MAGIC_CMD=$MAGIC_CMD 16622 16623# Used on cygwin: DLL creation program. 16624DLLTOOL="$DLLTOOL" 16625 16626# Used on cygwin: object dumper. 16627OBJDUMP="$OBJDUMP" 16628 16629# Used on cygwin: assembler. 16630AS="$AS" 16631 16632# The name of the directory that contains temporary libtool files. 16633objdir=$objdir 16634 16635# How to create reloadable object files. 16636reload_flag=$lt_reload_flag 16637reload_cmds=$lt_reload_cmds 16638 16639# How to pass a linker flag through the compiler. 16640wl=$lt_lt_prog_compiler_wl_F77 16641 16642# Object file suffix (normally "o"). 16643objext="$ac_objext" 16644 16645# Old archive suffix (normally "a"). 16646libext="$libext" 16647 16648# Shared library suffix (normally ".so"). 16649shrext_cmds='$shrext_cmds' 16650 16651# Executable file suffix (normally ""). 16652exeext="$exeext" 16653 16654# Additional compiler flags for building library objects. 16655pic_flag=$lt_lt_prog_compiler_pic_F77 16656pic_mode=$pic_mode 16657 16658# What is the maximum length of a command? 16659max_cmd_len=$lt_cv_sys_max_cmd_len 16660 16661# Does compiler simultaneously support -c and -o options? 16662compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16663 16664# Must we lock files when doing compilation? 16665need_locks=$lt_need_locks 16666 16667# Do we need the lib prefix for modules? 16668need_lib_prefix=$need_lib_prefix 16669 16670# Do we need a version for libraries? 16671need_version=$need_version 16672 16673# Whether dlopen is supported. 16674dlopen_support=$enable_dlopen 16675 16676# Whether dlopen of programs is supported. 16677dlopen_self=$enable_dlopen_self 16678 16679# Whether dlopen of statically linked programs is supported. 16680dlopen_self_static=$enable_dlopen_self_static 16681 16682# Compiler flag to prevent dynamic linking. 16683link_static_flag=$lt_lt_prog_compiler_static_F77 16684 16685# Compiler flag to turn off builtin functions. 16686no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16687 16688# Compiler flag to allow reflexive dlopens. 16689export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16690 16691# Compiler flag to generate shared objects directly from archives. 16692whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16693 16694# Compiler flag to generate thread-safe objects. 16695thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16696 16697# Library versioning type. 16698version_type=$version_type 16699 16700# Format of library name prefix. 16701libname_spec=$lt_libname_spec 16702 16703# List of archive names. First name is the real one, the rest are links. 16704# The last name is the one that the linker finds with -lNAME. 16705library_names_spec=$lt_library_names_spec 16706 16707# The coded name of the library, if different from the real name. 16708soname_spec=$lt_soname_spec 16709 16710# Commands used to build and install an old-style archive. 16711RANLIB=$lt_RANLIB 16712old_archive_cmds=$lt_old_archive_cmds_F77 16713old_postinstall_cmds=$lt_old_postinstall_cmds 16714old_postuninstall_cmds=$lt_old_postuninstall_cmds 16715 16716# Create an old-style archive from a shared archive. 16717old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16718 16719# Create a temporary old-style archive to link instead of a shared archive. 16720old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16721 16722# Commands used to build and install a shared archive. 16723archive_cmds=$lt_archive_cmds_F77 16724archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16725postinstall_cmds=$lt_postinstall_cmds 16726postuninstall_cmds=$lt_postuninstall_cmds 16727 16728# Commands used to build a loadable module (assumed same as above if empty) 16729module_cmds=$lt_module_cmds_F77 16730module_expsym_cmds=$lt_module_expsym_cmds_F77 16731 16732# Commands to strip libraries. 16733old_striplib=$lt_old_striplib 16734striplib=$lt_striplib 16735 16736# Dependencies to place before the objects being linked to create a 16737# shared library. 16738predep_objects=$lt_predep_objects_F77 16739 16740# Dependencies to place after the objects being linked to create a 16741# shared library. 16742postdep_objects=$lt_postdep_objects_F77 16743 16744# Dependencies to place before the objects being linked to create a 16745# shared library. 16746predeps=$lt_predeps_F77 16747 16748# Dependencies to place after the objects being linked to create a 16749# shared library. 16750postdeps=$lt_postdeps_F77 16751 16752# The directories searched by this compiler when creating a shared 16753# library 16754compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 16755 16756# The library search path used internally by the compiler when linking 16757# a shared library. 16758compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16759 16760# Method to check whether dependent libraries are shared objects. 16761deplibs_check_method=$lt_deplibs_check_method 16762 16763# Command to use when deplibs_check_method == file_magic. 16764file_magic_cmd=$lt_file_magic_cmd 16765 16766# Flag that allows shared libraries with undefined symbols to be built. 16767allow_undefined_flag=$lt_allow_undefined_flag_F77 16768 16769# Flag that forces no undefined symbols. 16770no_undefined_flag=$lt_no_undefined_flag_F77 16771 16772# Commands used to finish a libtool library installation in a directory. 16773finish_cmds=$lt_finish_cmds 16774 16775# Same as above, but a single script fragment to be evaled but not shown. 16776finish_eval=$lt_finish_eval 16777 16778# Take the output of nm and produce a listing of raw symbols and C names. 16779global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16780 16781# Transform the output of nm in a proper C declaration 16782global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16783 16784# Transform the output of nm in a C name address pair 16785global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16786 16787# This is the shared library runtime path variable. 16788runpath_var=$runpath_var 16789 16790# This is the shared library path variable. 16791shlibpath_var=$shlibpath_var 16792 16793# Is shlibpath searched before the hard-coded library search path? 16794shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16795 16796# How to hardcode a shared library path into an executable. 16797hardcode_action=$hardcode_action_F77 16798 16799# Whether we should hardcode library paths into libraries. 16800hardcode_into_libs=$hardcode_into_libs 16801 16802# Flag to hardcode \$libdir into a binary during linking. 16803# This must work even if \$libdir does not exist. 16804hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16805 16806# If ld is used when linking, flag to hardcode \$libdir into 16807# a binary during linking. This must work even if \$libdir does 16808# not exist. 16809hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16810 16811# Whether we need a single -rpath flag with a separated argument. 16812hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16813 16814# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16815# resulting binary. 16816hardcode_direct=$hardcode_direct_F77 16817 16818# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16819# resulting binary. 16820hardcode_minus_L=$hardcode_minus_L_F77 16821 16822# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16823# the resulting binary. 16824hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16825 16826# Set to yes if building a shared library automatically hardcodes DIR into the library 16827# and all subsequent libraries and executables linked against it. 16828hardcode_automatic=$hardcode_automatic_F77 16829 16830# Variables whose values should be saved in libtool wrapper scripts and 16831# restored at relink time. 16832variables_saved_for_relink="$variables_saved_for_relink" 16833 16834# Whether libtool must link a program against all its dependency libraries. 16835link_all_deplibs=$link_all_deplibs_F77 16836 16837# Compile-time system search path for libraries 16838sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16839 16840# Run-time system search path for libraries 16841sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16842 16843# Fix the shell variable \$srcfile for the compiler. 16844fix_srcfile_path=$lt_fix_srcfile_path 16845 16846# Set to yes if exported symbols are required. 16847always_export_symbols=$always_export_symbols_F77 16848 16849# The commands to list exported symbols. 16850export_symbols_cmds=$lt_export_symbols_cmds_F77 16851 16852# The commands to extract the exported symbol list from a shared archive. 16853extract_expsyms_cmds=$lt_extract_expsyms_cmds 16854 16855# Symbols that should not be listed in the preloaded symbols. 16856exclude_expsyms=$lt_exclude_expsyms_F77 16857 16858# Symbols that must always be exported. 16859include_expsyms=$lt_include_expsyms_F77 16860 16861# ### END LIBTOOL TAG CONFIG: $tagname 16862 16863__EOF__ 16864 16865 16866else 16867 # If there is no Makefile yet, we rely on a make rule to execute 16868 # `config.status --recheck' to rerun these tests and create the 16869 # libtool script then. 16870 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16871 if test -f "$ltmain_in"; then 16872 test -f Makefile && make "$ltmain" 16873 fi 16874fi 16875 16876 16877ac_ext=c 16878ac_cpp='$CPP $CPPFLAGS' 16879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16881ac_compiler_gnu=$ac_cv_c_compiler_gnu 16882 16883CC="$lt_save_CC" 16884 16885 else 16886 tagname="" 16887 fi 16888 ;; 16889 16890 GCJ) 16891 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16892 16893 16894# Source file extension for Java test sources. 16895ac_ext=java 16896 16897# Object file extension for compiled Java test sources. 16898objext=o 16899objext_GCJ=$objext 16900 16901# Code to be used in simple compile tests 16902lt_simple_compile_test_code="class foo {}" 16903 16904# Code to be used in simple link tests 16905lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16906 16907# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16908 16909# If no C compiler was specified, use CC. 16910LTCC=${LTCC-"$CC"} 16911 16912# If no C compiler flags were specified, use CFLAGS. 16913LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16914 16915# Allow CC to be a program name with arguments. 16916compiler=$CC 16917 16918 16919# save warnings/boilerplate of simple test code 16920ac_outfile=conftest.$ac_objext 16921echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16922eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16923_lt_compiler_boilerplate=`cat conftest.err` 16924$rm conftest* 16925 16926ac_outfile=conftest.$ac_objext 16927echo "$lt_simple_link_test_code" >conftest.$ac_ext 16928eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16929_lt_linker_boilerplate=`cat conftest.err` 16930$rm -r conftest* 16931 16932 16933# Allow CC to be a program name with arguments. 16934lt_save_CC="$CC" 16935CC=${GCJ-"gcj"} 16936compiler=$CC 16937compiler_GCJ=$CC 16938for cc_temp in $compiler""; do 16939 case $cc_temp in 16940 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16941 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16942 \-*) ;; 16943 *) break;; 16944 esac 16945done 16946cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16947 16948 16949# GCJ did not exist at the time GCC didn't implicitly link libc in. 16950archive_cmds_need_lc_GCJ=no 16951 16952old_archive_cmds_GCJ=$old_archive_cmds 16953 16954 16955lt_prog_compiler_no_builtin_flag_GCJ= 16956 16957if test "$GCC" = yes; then 16958 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16959 16960 16961{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16962$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16963if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16964 $as_echo_n "(cached) " >&6 16965else 16966 lt_cv_prog_compiler_rtti_exceptions=no 16967 ac_outfile=conftest.$ac_objext 16968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16969 lt_compiler_flag="-fno-rtti -fno-exceptions" 16970 # Insert the option either (1) after the last *FLAGS variable, or 16971 # (2) before a word containing "conftest.", or (3) at the end. 16972 # Note that $ac_compile itself does not contain backslashes and begins 16973 # with a dollar sign (not a hyphen), so the echo should work correctly. 16974 # The option is referenced via a variable to avoid confusing sed. 16975 lt_compile=`echo "$ac_compile" | $SED \ 16976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16978 -e 's:$: $lt_compiler_flag:'` 16979 (eval echo "\"\$as_me:16979: $lt_compile\"" >&5) 16980 (eval "$lt_compile" 2>conftest.err) 16981 ac_status=$? 16982 cat conftest.err >&5 16983 echo "$as_me:16983: \$? = $ac_status" >&5 16984 if (exit $ac_status) && test -s "$ac_outfile"; then 16985 # The compiler can only warn and ignore the option if not recognized 16986 # So say no if there are warnings other than the usual output. 16987 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16988 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16989 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16990 lt_cv_prog_compiler_rtti_exceptions=yes 16991 fi 16992 fi 16993 $rm conftest* 16994 16995fi 16996{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16997$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16998 16999if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 17000 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 17001else 17002 : 17003fi 17004 17005fi 17006 17007lt_prog_compiler_wl_GCJ= 17008lt_prog_compiler_pic_GCJ= 17009lt_prog_compiler_static_GCJ= 17010 17011{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 17012$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 17013 17014 if test "$GCC" = yes; then 17015 lt_prog_compiler_wl_GCJ='-Wl,' 17016 lt_prog_compiler_static_GCJ='-static' 17017 17018 case $host_os in 17019 aix*) 17020 # All AIX code is PIC. 17021 if test "$host_cpu" = ia64; then 17022 # AIX 5 now supports IA64 processor 17023 lt_prog_compiler_static_GCJ='-Bstatic' 17024 fi 17025 ;; 17026 17027 amigaos*) 17028 # FIXME: we need at least 68020 code to build shared libraries, but 17029 # adding the `-m68020' flag to GCC prevents building anything better, 17030 # like `-m68040'. 17031 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 17032 ;; 17033 17034 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17035 # PIC is the default for these OSes. 17036 ;; 17037 17038 mingw* | cygwin* | pw32* | os2*) 17039 # This hack is so that the source file can tell whether it is being 17040 # built for inclusion in a dll (and should export symbols for example). 17041 # Although the cygwin gcc ignores -fPIC, still need this for old-style 17042 # (--disable-auto-import) libraries 17043 17044 ;; 17045 17046 darwin* | rhapsody*) 17047 # PIC is the default on this platform 17048 # Common symbols not allowed in MH_DYLIB files 17049 lt_prog_compiler_pic_GCJ='-fno-common' 17050 ;; 17051 17052 interix[3-9]*) 17053 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17054 # Instead, we relocate shared libraries at runtime. 17055 ;; 17056 17057 msdosdjgpp*) 17058 # Just because we use GCC doesn't mean we suddenly get shared libraries 17059 # on systems that don't support them. 17060 lt_prog_compiler_can_build_shared_GCJ=no 17061 enable_shared=no 17062 ;; 17063 17064 sysv4*MP*) 17065 if test -d /usr/nec; then 17066 lt_prog_compiler_pic_GCJ=-Kconform_pic 17067 fi 17068 ;; 17069 17070 hpux*) 17071 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17072 # not for PA HP-UX. 17073 case $host_cpu in 17074 hppa*64*|ia64*) 17075 # +Z the default 17076 ;; 17077 *) 17078 lt_prog_compiler_pic_GCJ='-fPIC' 17079 ;; 17080 esac 17081 ;; 17082 17083 *) 17084 lt_prog_compiler_pic_GCJ='-fPIC' 17085 ;; 17086 esac 17087 else 17088 # PORTME Check for flag to pass linker flags through the system compiler. 17089 case $host_os in 17090 aix*) 17091 lt_prog_compiler_wl_GCJ='-Wl,' 17092 if test "$host_cpu" = ia64; then 17093 # AIX 5 now supports IA64 processor 17094 lt_prog_compiler_static_GCJ='-Bstatic' 17095 else 17096 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17097 fi 17098 ;; 17099 darwin*) 17100 # PIC is the default on this platform 17101 # Common symbols not allowed in MH_DYLIB files 17102 case $cc_basename in 17103 xlc*) 17104 lt_prog_compiler_pic_GCJ='-qnocommon' 17105 lt_prog_compiler_wl_GCJ='-Wl,' 17106 ;; 17107 esac 17108 ;; 17109 17110 mingw* | cygwin* | pw32* | os2*) 17111 # This hack is so that the source file can tell whether it is being 17112 # built for inclusion in a dll (and should export symbols for example). 17113 17114 ;; 17115 17116 hpux9* | hpux10* | hpux11*) 17117 lt_prog_compiler_wl_GCJ='-Wl,' 17118 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17119 # not for PA HP-UX. 17120 case $host_cpu in 17121 hppa*64*|ia64*) 17122 # +Z the default 17123 ;; 17124 *) 17125 lt_prog_compiler_pic_GCJ='+Z' 17126 ;; 17127 esac 17128 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17129 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17130 ;; 17131 17132 irix5* | irix6* | nonstopux*) 17133 lt_prog_compiler_wl_GCJ='-Wl,' 17134 # PIC (with -KPIC) is the default. 17135 lt_prog_compiler_static_GCJ='-non_shared' 17136 ;; 17137 17138 newsos6) 17139 lt_prog_compiler_pic_GCJ='-KPIC' 17140 lt_prog_compiler_static_GCJ='-Bstatic' 17141 ;; 17142 17143 linux* | k*bsd*-gnu) 17144 case $cc_basename in 17145 icc* | ecc*) 17146 lt_prog_compiler_wl_GCJ='-Wl,' 17147 lt_prog_compiler_pic_GCJ='-KPIC' 17148 lt_prog_compiler_static_GCJ='-static' 17149 ;; 17150 pgcc* | pgf77* | pgf90* | pgf95*) 17151 # Portland Group compilers (*not* the Pentium gcc compiler, 17152 # which looks to be a dead project) 17153 lt_prog_compiler_wl_GCJ='-Wl,' 17154 lt_prog_compiler_pic_GCJ='-fpic' 17155 lt_prog_compiler_static_GCJ='-Bstatic' 17156 ;; 17157 ccc*) 17158 lt_prog_compiler_wl_GCJ='-Wl,' 17159 # All Alpha code is PIC. 17160 lt_prog_compiler_static_GCJ='-non_shared' 17161 ;; 17162 *) 17163 case `$CC -V 2>&1 | sed 5q` in 17164 *Sun\ C*) 17165 # Sun C 5.9 17166 lt_prog_compiler_pic_GCJ='-KPIC' 17167 lt_prog_compiler_static_GCJ='-Bstatic' 17168 lt_prog_compiler_wl_GCJ='-Wl,' 17169 ;; 17170 *Sun\ F*) 17171 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17172 lt_prog_compiler_pic_GCJ='-KPIC' 17173 lt_prog_compiler_static_GCJ='-Bstatic' 17174 lt_prog_compiler_wl_GCJ='' 17175 ;; 17176 esac 17177 ;; 17178 esac 17179 ;; 17180 17181 osf3* | osf4* | osf5*) 17182 lt_prog_compiler_wl_GCJ='-Wl,' 17183 # All OSF/1 code is PIC. 17184 lt_prog_compiler_static_GCJ='-non_shared' 17185 ;; 17186 17187 rdos*) 17188 lt_prog_compiler_static_GCJ='-non_shared' 17189 ;; 17190 17191 solaris*) 17192 lt_prog_compiler_pic_GCJ='-KPIC' 17193 lt_prog_compiler_static_GCJ='-Bstatic' 17194 case $cc_basename in 17195 f77* | f90* | f95*) 17196 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17197 *) 17198 lt_prog_compiler_wl_GCJ='-Wl,';; 17199 esac 17200 ;; 17201 17202 sunos4*) 17203 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17204 lt_prog_compiler_pic_GCJ='-PIC' 17205 lt_prog_compiler_static_GCJ='-Bstatic' 17206 ;; 17207 17208 sysv4 | sysv4.2uw2* | sysv4.3*) 17209 lt_prog_compiler_wl_GCJ='-Wl,' 17210 lt_prog_compiler_pic_GCJ='-KPIC' 17211 lt_prog_compiler_static_GCJ='-Bstatic' 17212 ;; 17213 17214 sysv4*MP*) 17215 if test -d /usr/nec ;then 17216 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17217 lt_prog_compiler_static_GCJ='-Bstatic' 17218 fi 17219 ;; 17220 17221 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17222 lt_prog_compiler_wl_GCJ='-Wl,' 17223 lt_prog_compiler_pic_GCJ='-KPIC' 17224 lt_prog_compiler_static_GCJ='-Bstatic' 17225 ;; 17226 17227 unicos*) 17228 lt_prog_compiler_wl_GCJ='-Wl,' 17229 lt_prog_compiler_can_build_shared_GCJ=no 17230 ;; 17231 17232 uts4*) 17233 lt_prog_compiler_pic_GCJ='-pic' 17234 lt_prog_compiler_static_GCJ='-Bstatic' 17235 ;; 17236 17237 *) 17238 lt_prog_compiler_can_build_shared_GCJ=no 17239 ;; 17240 esac 17241 fi 17242 17243{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17244$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 17245 17246# 17247# Check to make sure the PIC flag actually works. 17248# 17249if test -n "$lt_prog_compiler_pic_GCJ"; then 17250 17251{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17252$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 17253if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 17254 $as_echo_n "(cached) " >&6 17255else 17256 lt_cv_prog_compiler_pic_works_GCJ=no 17257 ac_outfile=conftest.$ac_objext 17258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17259 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17260 # Insert the option either (1) after the last *FLAGS variable, or 17261 # (2) before a word containing "conftest.", or (3) at the end. 17262 # Note that $ac_compile itself does not contain backslashes and begins 17263 # with a dollar sign (not a hyphen), so the echo should work correctly. 17264 # The option is referenced via a variable to avoid confusing sed. 17265 lt_compile=`echo "$ac_compile" | $SED \ 17266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17268 -e 's:$: $lt_compiler_flag:'` 17269 (eval echo "\"\$as_me:17269: $lt_compile\"" >&5) 17270 (eval "$lt_compile" 2>conftest.err) 17271 ac_status=$? 17272 cat conftest.err >&5 17273 echo "$as_me:17273: \$? = $ac_status" >&5 17274 if (exit $ac_status) && test -s "$ac_outfile"; then 17275 # The compiler can only warn and ignore the option if not recognized 17276 # So say no if there are warnings other than the usual output. 17277 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17278 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17279 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17280 lt_cv_prog_compiler_pic_works_GCJ=yes 17281 fi 17282 fi 17283 $rm conftest* 17284 17285fi 17286{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 17287$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 17288 17289if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 17290 case $lt_prog_compiler_pic_GCJ in 17291 "" | " "*) ;; 17292 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17293 esac 17294else 17295 lt_prog_compiler_pic_GCJ= 17296 lt_prog_compiler_can_build_shared_GCJ=no 17297fi 17298 17299fi 17300case $host_os in 17301 # For platforms which do not support PIC, -DPIC is meaningless: 17302 *djgpp*) 17303 lt_prog_compiler_pic_GCJ= 17304 ;; 17305 *) 17306 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17307 ;; 17308esac 17309 17310# 17311# Check to make sure the static flag actually works. 17312# 17313wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17314{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17315$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17316if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 17317 $as_echo_n "(cached) " >&6 17318else 17319 lt_cv_prog_compiler_static_works_GCJ=no 17320 save_LDFLAGS="$LDFLAGS" 17321 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17322 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17323 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17324 # The linker can only warn and ignore the option if not recognized 17325 # So say no if there are warnings 17326 if test -s conftest.err; then 17327 # Append any errors to the config.log. 17328 cat conftest.err 1>&5 17329 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17331 if diff conftest.exp conftest.er2 >/dev/null; then 17332 lt_cv_prog_compiler_static_works_GCJ=yes 17333 fi 17334 else 17335 lt_cv_prog_compiler_static_works_GCJ=yes 17336 fi 17337 fi 17338 $rm -r conftest* 17339 LDFLAGS="$save_LDFLAGS" 17340 17341fi 17342{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 17343$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; } 17344 17345if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 17346 : 17347else 17348 lt_prog_compiler_static_GCJ= 17349fi 17350 17351 17352{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17353$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17354if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17355 $as_echo_n "(cached) " >&6 17356else 17357 lt_cv_prog_compiler_c_o_GCJ=no 17358 $rm -r conftest 2>/dev/null 17359 mkdir conftest 17360 cd conftest 17361 mkdir out 17362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17363 17364 lt_compiler_flag="-o out/conftest2.$ac_objext" 17365 # Insert the option either (1) after the last *FLAGS variable, or 17366 # (2) before a word containing "conftest.", or (3) at the end. 17367 # Note that $ac_compile itself does not contain backslashes and begins 17368 # with a dollar sign (not a hyphen), so the echo should work correctly. 17369 lt_compile=`echo "$ac_compile" | $SED \ 17370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17372 -e 's:$: $lt_compiler_flag:'` 17373 (eval echo "\"\$as_me:17373: $lt_compile\"" >&5) 17374 (eval "$lt_compile" 2>out/conftest.err) 17375 ac_status=$? 17376 cat out/conftest.err >&5 17377 echo "$as_me:17377: \$? = $ac_status" >&5 17378 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17379 then 17380 # The compiler can only warn and ignore the option if not recognized 17381 # So say no if there are warnings 17382 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17383 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17384 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17385 lt_cv_prog_compiler_c_o_GCJ=yes 17386 fi 17387 fi 17388 chmod u+w . 2>&5 17389 $rm conftest* 17390 # SGI C++ compiler will create directory out/ii_files/ for 17391 # template instantiation 17392 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17393 $rm out/* && rmdir out 17394 cd .. 17395 rmdir conftest 17396 $rm conftest* 17397 17398fi 17399{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17400$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17401 17402 17403hard_links="nottested" 17404if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17405 # do not overwrite the value of need_locks provided by the user 17406 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17407$as_echo_n "checking if we can lock with hard links... " >&6; } 17408 hard_links=yes 17409 $rm conftest* 17410 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17411 touch conftest.a 17412 ln conftest.a conftest.b 2>&5 || hard_links=no 17413 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17414 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 17415$as_echo "$hard_links" >&6; } 17416 if test "$hard_links" = no; then 17417 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17418$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17419 need_locks=warn 17420 fi 17421else 17422 need_locks=no 17423fi 17424 17425{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17426$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17427 17428 runpath_var= 17429 allow_undefined_flag_GCJ= 17430 enable_shared_with_static_runtimes_GCJ=no 17431 archive_cmds_GCJ= 17432 archive_expsym_cmds_GCJ= 17433 old_archive_From_new_cmds_GCJ= 17434 old_archive_from_expsyms_cmds_GCJ= 17435 export_dynamic_flag_spec_GCJ= 17436 whole_archive_flag_spec_GCJ= 17437 thread_safe_flag_spec_GCJ= 17438 hardcode_libdir_flag_spec_GCJ= 17439 hardcode_libdir_flag_spec_ld_GCJ= 17440 hardcode_libdir_separator_GCJ= 17441 hardcode_direct_GCJ=no 17442 hardcode_minus_L_GCJ=no 17443 hardcode_shlibpath_var_GCJ=unsupported 17444 link_all_deplibs_GCJ=unknown 17445 hardcode_automatic_GCJ=no 17446 module_cmds_GCJ= 17447 module_expsym_cmds_GCJ= 17448 always_export_symbols_GCJ=no 17449 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17450 # include_expsyms should be a list of space-separated symbols to be *always* 17451 # included in the symbol list 17452 include_expsyms_GCJ= 17453 # exclude_expsyms can be an extended regexp of symbols to exclude 17454 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17455 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17456 # as well as any symbol that contains `d'. 17457 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17458 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17459 # platforms (ab)use it in PIC code, but their linkers get confused if 17460 # the symbol is explicitly referenced. Since portable code cannot 17461 # rely on this symbol name, it's probably fine to never include it in 17462 # preloaded symbol tables. 17463 # Exclude shared library initialization/finalization symbols. 17464 extract_expsyms_cmds= 17465 # Just being paranoid about ensuring that cc_basename is set. 17466 for cc_temp in $compiler""; do 17467 case $cc_temp in 17468 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17469 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17470 \-*) ;; 17471 *) break;; 17472 esac 17473done 17474cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17475 17476 case $host_os in 17477 cygwin* | mingw* | pw32*) 17478 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17479 # When not using gcc, we currently assume that we are using 17480 # Microsoft Visual C++. 17481 if test "$GCC" != yes; then 17482 with_gnu_ld=no 17483 fi 17484 ;; 17485 interix*) 17486 # we just hope/assume this is gcc and not c89 (= MSVC++) 17487 with_gnu_ld=yes 17488 ;; 17489 openbsd*) 17490 with_gnu_ld=no 17491 ;; 17492 esac 17493 17494 ld_shlibs_GCJ=yes 17495 if test "$with_gnu_ld" = yes; then 17496 # If archive_cmds runs LD, not CC, wlarc should be empty 17497 wlarc='${wl}' 17498 17499 # Set some defaults for GNU ld with shared library support. These 17500 # are reset later if shared libraries are not supported. Putting them 17501 # here allows them to be overridden if necessary. 17502 runpath_var=LD_RUN_PATH 17503 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17504 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17505 # ancient GNU ld didn't support --whole-archive et. al. 17506 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17507 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17508 else 17509 whole_archive_flag_spec_GCJ= 17510 fi 17511 supports_anon_versioning=no 17512 case `$LD -v 2>/dev/null` in 17513 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17514 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17515 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17516 *\ 2.11.*) ;; # other 2.11 versions 17517 *) supports_anon_versioning=yes ;; 17518 esac 17519 17520 # See if GNU ld supports shared libraries. 17521 case $host_os in 17522 aix[3-9]*) 17523 # On AIX/PPC, the GNU linker is very broken 17524 if test "$host_cpu" != ia64; then 17525 ld_shlibs_GCJ=no 17526 cat <<EOF 1>&2 17527 17528*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17529*** to be unable to reliably create shared libraries on AIX. 17530*** Therefore, libtool is disabling shared libraries support. If you 17531*** really care for shared libraries, you may want to modify your PATH 17532*** so that a non-GNU linker is found, and then restart. 17533 17534EOF 17535 fi 17536 ;; 17537 17538 amigaos*) 17539 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)' 17540 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17541 hardcode_minus_L_GCJ=yes 17542 17543 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17544 # that the semantics of dynamic libraries on AmigaOS, at least up 17545 # to version 4, is to share data among multiple programs linked 17546 # with the same dynamic library. Since this doesn't match the 17547 # behavior of shared libraries on other platforms, we can't use 17548 # them. 17549 ld_shlibs_GCJ=no 17550 ;; 17551 17552 beos*) 17553 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17554 allow_undefined_flag_GCJ=unsupported 17555 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17556 # support --undefined. This deserves some investigation. FIXME 17557 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17558 else 17559 ld_shlibs_GCJ=no 17560 fi 17561 ;; 17562 17563 cygwin* | mingw* | pw32*) 17564 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17565 # as there is no search path for DLLs. 17566 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17567 allow_undefined_flag_GCJ=unsupported 17568 always_export_symbols_GCJ=no 17569 enable_shared_with_static_runtimes_GCJ=yes 17570 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17571 17572 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17573 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17574 # If the export-symbols file already is a .def file (1st line 17575 # is EXPORTS), use it as is; otherwise, prepend... 17576 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17577 cp $export_symbols $output_objdir/$soname.def; 17578 else 17579 echo EXPORTS > $output_objdir/$soname.def; 17580 cat $export_symbols >> $output_objdir/$soname.def; 17581 fi~ 17582 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17583 else 17584 ld_shlibs_GCJ=no 17585 fi 17586 ;; 17587 17588 interix[3-9]*) 17589 hardcode_direct_GCJ=no 17590 hardcode_shlibpath_var_GCJ=no 17591 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17592 export_dynamic_flag_spec_GCJ='${wl}-E' 17593 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17594 # Instead, shared libraries are loaded at an image base (0x10000000 by 17595 # default) and relocated if they conflict, which is a slow very memory 17596 # consuming and fragmenting process. To avoid this, we pick a random, 17597 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17598 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17599 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' 17600 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' 17601 ;; 17602 17603 gnu* | linux* | k*bsd*-gnu) 17604 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17605 tmp_addflag= 17606 case $cc_basename,$host_cpu in 17607 pgcc*) # Portland Group C compiler 17608 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' 17609 tmp_addflag=' $pic_flag' 17610 ;; 17611 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17612 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' 17613 tmp_addflag=' $pic_flag -Mnomain' ;; 17614 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17615 tmp_addflag=' -i_dynamic' ;; 17616 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17617 tmp_addflag=' -i_dynamic -nofor_main' ;; 17618 ifc* | ifort*) # Intel Fortran compiler 17619 tmp_addflag=' -nofor_main' ;; 17620 esac 17621 case `$CC -V 2>&1 | sed 5q` in 17622 *Sun\ C*) # Sun C 5.9 17623 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' 17624 tmp_sharedflag='-G' ;; 17625 *Sun\ F*) # Sun Fortran 8.3 17626 tmp_sharedflag='-G' ;; 17627 *) 17628 tmp_sharedflag='-shared' ;; 17629 esac 17630 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17631 17632 if test $supports_anon_versioning = yes; then 17633 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17634 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17635 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17636 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17637 fi 17638 else 17639 ld_shlibs_GCJ=no 17640 fi 17641 ;; 17642 17643 netbsd*) 17644 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17645 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17646 wlarc= 17647 else 17648 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17649 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17650 fi 17651 ;; 17652 17653 solaris*) 17654 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17655 ld_shlibs_GCJ=no 17656 cat <<EOF 1>&2 17657 17658*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17659*** create shared libraries on Solaris systems. Therefore, libtool 17660*** is disabling shared libraries support. We urge you to upgrade GNU 17661*** binutils to release 2.9.1 or newer. Another option is to modify 17662*** your PATH or compiler configuration so that the native linker is 17663*** used, and then restart. 17664 17665EOF 17666 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17667 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17668 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17669 else 17670 ld_shlibs_GCJ=no 17671 fi 17672 ;; 17673 17674 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17675 case `$LD -v 2>&1` in 17676 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17677 ld_shlibs_GCJ=no 17678 cat <<_LT_EOF 1>&2 17679 17680*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17681*** reliably create shared libraries on SCO systems. Therefore, libtool 17682*** is disabling shared libraries support. We urge you to upgrade GNU 17683*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17684*** your PATH or compiler configuration so that the native linker is 17685*** used, and then restart. 17686 17687_LT_EOF 17688 ;; 17689 *) 17690 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17691 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17692 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17693 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17694 else 17695 ld_shlibs_GCJ=no 17696 fi 17697 ;; 17698 esac 17699 ;; 17700 17701 sunos4*) 17702 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17703 wlarc= 17704 hardcode_direct_GCJ=yes 17705 hardcode_shlibpath_var_GCJ=no 17706 ;; 17707 17708 *) 17709 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17710 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17711 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17712 else 17713 ld_shlibs_GCJ=no 17714 fi 17715 ;; 17716 esac 17717 17718 if test "$ld_shlibs_GCJ" = no; then 17719 runpath_var= 17720 hardcode_libdir_flag_spec_GCJ= 17721 export_dynamic_flag_spec_GCJ= 17722 whole_archive_flag_spec_GCJ= 17723 fi 17724 else 17725 # PORTME fill in a description of your system's linker (not GNU ld) 17726 case $host_os in 17727 aix3*) 17728 allow_undefined_flag_GCJ=unsupported 17729 always_export_symbols_GCJ=yes 17730 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' 17731 # Note: this linker hardcodes the directories in LIBPATH if there 17732 # are no directories specified by -L. 17733 hardcode_minus_L_GCJ=yes 17734 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17735 # Neither direct hardcoding nor static linking is supported with a 17736 # broken collect2. 17737 hardcode_direct_GCJ=unsupported 17738 fi 17739 ;; 17740 17741 aix[4-9]*) 17742 if test "$host_cpu" = ia64; then 17743 # On IA64, the linker does run time linking by default, so we don't 17744 # have to do anything special. 17745 aix_use_runtimelinking=no 17746 exp_sym_flag='-Bexport' 17747 no_entry_flag="" 17748 else 17749 # If we're using GNU nm, then we don't want the "-C" option. 17750 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17751 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17752 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' 17753 else 17754 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' 17755 fi 17756 aix_use_runtimelinking=no 17757 17758 # Test if we are trying to use run time linking or normal 17759 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17760 # need to do runtime linking. 17761 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17762 for ld_flag in $LDFLAGS; do 17763 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17764 aix_use_runtimelinking=yes 17765 break 17766 fi 17767 done 17768 ;; 17769 esac 17770 17771 exp_sym_flag='-bexport' 17772 no_entry_flag='-bnoentry' 17773 fi 17774 17775 # When large executables or shared objects are built, AIX ld can 17776 # have problems creating the table of contents. If linking a library 17777 # or program results in "error TOC overflow" add -mminimal-toc to 17778 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17779 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17780 17781 archive_cmds_GCJ='' 17782 hardcode_direct_GCJ=yes 17783 hardcode_libdir_separator_GCJ=':' 17784 link_all_deplibs_GCJ=yes 17785 17786 if test "$GCC" = yes; then 17787 case $host_os in aix4.[012]|aix4.[012].*) 17788 # We only want to do this on AIX 4.2 and lower, the check 17789 # below for broken collect2 doesn't work under 4.3+ 17790 collect2name=`${CC} -print-prog-name=collect2` 17791 if test -f "$collect2name" && \ 17792 strings "$collect2name" | grep resolve_lib_name >/dev/null 17793 then 17794 # We have reworked collect2 17795 : 17796 else 17797 # We have old collect2 17798 hardcode_direct_GCJ=unsupported 17799 # It fails to find uninstalled libraries when the uninstalled 17800 # path is not listed in the libpath. Setting hardcode_minus_L 17801 # to unsupported forces relinking 17802 hardcode_minus_L_GCJ=yes 17803 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17804 hardcode_libdir_separator_GCJ= 17805 fi 17806 ;; 17807 esac 17808 shared_flag='-shared' 17809 if test "$aix_use_runtimelinking" = yes; then 17810 shared_flag="$shared_flag "'${wl}-G' 17811 fi 17812 else 17813 # not using gcc 17814 if test "$host_cpu" = ia64; then 17815 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17816 # chokes on -Wl,-G. The following line is correct: 17817 shared_flag='-G' 17818 else 17819 if test "$aix_use_runtimelinking" = yes; then 17820 shared_flag='${wl}-G' 17821 else 17822 shared_flag='${wl}-bM:SRE' 17823 fi 17824 fi 17825 fi 17826 17827 # It seems that -bexpall does not export symbols beginning with 17828 # underscore (_), so it is better to generate a list of symbols to export. 17829 always_export_symbols_GCJ=yes 17830 if test "$aix_use_runtimelinking" = yes; then 17831 # Warning - without using the other runtime loading flags (-brtl), 17832 # -berok will link without error, but may produce a broken library. 17833 allow_undefined_flag_GCJ='-berok' 17834 # Determine the default libpath from the value encoded in an empty executable. 17835 cat >conftest.$ac_ext <<_ACEOF 17836/* confdefs.h. */ 17837_ACEOF 17838cat confdefs.h >>conftest.$ac_ext 17839cat >>conftest.$ac_ext <<_ACEOF 17840/* end confdefs.h. */ 17841 17842int 17843main () 17844{ 17845 17846 ; 17847 return 0; 17848} 17849_ACEOF 17850rm -f conftest.$ac_objext conftest$ac_exeext 17851if { (ac_try="$ac_link" 17852case "(($ac_try" in 17853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17854 *) ac_try_echo=$ac_try;; 17855esac 17856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17857$as_echo "$ac_try_echo") >&5 17858 (eval "$ac_link") 2>conftest.er1 17859 ac_status=$? 17860 grep -v '^ *+' conftest.er1 >conftest.err 17861 rm -f conftest.er1 17862 cat conftest.err >&5 17863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17864 (exit $ac_status); } && { 17865 test -z "$ac_c_werror_flag" || 17866 test ! -s conftest.err 17867 } && test -s conftest$ac_exeext && { 17868 test "$cross_compiling" = yes || 17869 $as_test_x conftest$ac_exeext 17870 }; then 17871 17872lt_aix_libpath_sed=' 17873 /Import File Strings/,/^$/ { 17874 /^0/ { 17875 s/^0 *\(.*\)$/\1/ 17876 p 17877 } 17878 }' 17879aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17880# Check for a 64-bit object if we didn't find anything. 17881if test -z "$aix_libpath"; then 17882 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17883fi 17884else 17885 $as_echo "$as_me: failed program was:" >&5 17886sed 's/^/| /' conftest.$ac_ext >&5 17887 17888 17889fi 17890 17891rm -rf conftest.dSYM 17892rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17893 conftest$ac_exeext conftest.$ac_ext 17894if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17895 17896 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17897 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" 17898 else 17899 if test "$host_cpu" = ia64; then 17900 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17901 allow_undefined_flag_GCJ="-z nodefs" 17902 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" 17903 else 17904 # Determine the default libpath from the value encoded in an empty executable. 17905 cat >conftest.$ac_ext <<_ACEOF 17906/* confdefs.h. */ 17907_ACEOF 17908cat confdefs.h >>conftest.$ac_ext 17909cat >>conftest.$ac_ext <<_ACEOF 17910/* end confdefs.h. */ 17911 17912int 17913main () 17914{ 17915 17916 ; 17917 return 0; 17918} 17919_ACEOF 17920rm -f conftest.$ac_objext conftest$ac_exeext 17921if { (ac_try="$ac_link" 17922case "(($ac_try" in 17923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17924 *) ac_try_echo=$ac_try;; 17925esac 17926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17927$as_echo "$ac_try_echo") >&5 17928 (eval "$ac_link") 2>conftest.er1 17929 ac_status=$? 17930 grep -v '^ *+' conftest.er1 >conftest.err 17931 rm -f conftest.er1 17932 cat conftest.err >&5 17933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17934 (exit $ac_status); } && { 17935 test -z "$ac_c_werror_flag" || 17936 test ! -s conftest.err 17937 } && test -s conftest$ac_exeext && { 17938 test "$cross_compiling" = yes || 17939 $as_test_x conftest$ac_exeext 17940 }; then 17941 17942lt_aix_libpath_sed=' 17943 /Import File Strings/,/^$/ { 17944 /^0/ { 17945 s/^0 *\(.*\)$/\1/ 17946 p 17947 } 17948 }' 17949aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17950# Check for a 64-bit object if we didn't find anything. 17951if test -z "$aix_libpath"; then 17952 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17953fi 17954else 17955 $as_echo "$as_me: failed program was:" >&5 17956sed 's/^/| /' conftest.$ac_ext >&5 17957 17958 17959fi 17960 17961rm -rf conftest.dSYM 17962rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17963 conftest$ac_exeext conftest.$ac_ext 17964if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17965 17966 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17967 # Warning - without using the other run time loading flags, 17968 # -berok will link without error, but may produce a broken library. 17969 no_undefined_flag_GCJ=' ${wl}-bernotok' 17970 allow_undefined_flag_GCJ=' ${wl}-berok' 17971 # Exported symbols can be pulled into shared objects from archives 17972 whole_archive_flag_spec_GCJ='$convenience' 17973 archive_cmds_need_lc_GCJ=yes 17974 # This is similar to how AIX traditionally builds its shared libraries. 17975 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' 17976 fi 17977 fi 17978 ;; 17979 17980 amigaos*) 17981 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)' 17982 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17983 hardcode_minus_L_GCJ=yes 17984 # see comment about different semantics on the GNU ld section 17985 ld_shlibs_GCJ=no 17986 ;; 17987 17988 bsdi[45]*) 17989 export_dynamic_flag_spec_GCJ=-rdynamic 17990 ;; 17991 17992 cygwin* | mingw* | pw32*) 17993 # When not using gcc, we currently assume that we are using 17994 # Microsoft Visual C++. 17995 # hardcode_libdir_flag_spec is actually meaningless, as there is 17996 # no search path for DLLs. 17997 hardcode_libdir_flag_spec_GCJ=' ' 17998 allow_undefined_flag_GCJ=unsupported 17999 # Tell ltmain to make .lib files, not .a files. 18000 libext=lib 18001 # Tell ltmain to make .dll files, not .so files. 18002 shrext_cmds=".dll" 18003 # FIXME: Setting linknames here is a bad hack. 18004 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 18005 # The linker will automatically build a .lib file if we build a DLL. 18006 old_archive_From_new_cmds_GCJ='true' 18007 # FIXME: Should let the user specify the lib program. 18008 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 18009 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 18010 enable_shared_with_static_runtimes_GCJ=yes 18011 ;; 18012 18013 darwin* | rhapsody*) 18014 case $host_os in 18015 rhapsody* | darwin1.[012]) 18016 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 18017 ;; 18018 *) # Darwin 1.3 on 18019 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18020 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18021 else 18022 case ${MACOSX_DEPLOYMENT_TARGET} in 18023 10.[012]) 18024 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18025 ;; 18026 10.*) 18027 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 18028 ;; 18029 esac 18030 fi 18031 ;; 18032 esac 18033 archive_cmds_need_lc_GCJ=no 18034 hardcode_direct_GCJ=no 18035 hardcode_automatic_GCJ=yes 18036 hardcode_shlibpath_var_GCJ=unsupported 18037 whole_archive_flag_spec_GCJ='' 18038 link_all_deplibs_GCJ=yes 18039 if test "$GCC" = yes ; then 18040 output_verbose_link_cmd='echo' 18041 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}" 18042 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 18043 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}" 18044 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}" 18045 else 18046 case $cc_basename in 18047 xlc*) 18048 output_verbose_link_cmd='echo' 18049 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 18050 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18051 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18052 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}' 18053 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}' 18054 ;; 18055 *) 18056 ld_shlibs_GCJ=no 18057 ;; 18058 esac 18059 fi 18060 ;; 18061 18062 dgux*) 18063 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18064 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18065 hardcode_shlibpath_var_GCJ=no 18066 ;; 18067 18068 freebsd1*) 18069 ld_shlibs_GCJ=no 18070 ;; 18071 18072 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18073 # support. Future versions do this automatically, but an explicit c++rt0.o 18074 # does not break anything, and helps significantly (at the cost of a little 18075 # extra space). 18076 freebsd2.2*) 18077 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18078 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18079 hardcode_direct_GCJ=yes 18080 hardcode_shlibpath_var_GCJ=no 18081 ;; 18082 18083 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18084 freebsd2*) 18085 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18086 hardcode_direct_GCJ=yes 18087 hardcode_minus_L_GCJ=yes 18088 hardcode_shlibpath_var_GCJ=no 18089 ;; 18090 18091 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18092 freebsd* | dragonfly*) 18093 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18094 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18095 hardcode_direct_GCJ=yes 18096 hardcode_shlibpath_var_GCJ=no 18097 ;; 18098 18099 hpux9*) 18100 if test "$GCC" = yes; then 18101 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' 18102 else 18103 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' 18104 fi 18105 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18106 hardcode_libdir_separator_GCJ=: 18107 hardcode_direct_GCJ=yes 18108 18109 # hardcode_minus_L: Not really in the search PATH, 18110 # but as the default location of the library. 18111 hardcode_minus_L_GCJ=yes 18112 export_dynamic_flag_spec_GCJ='${wl}-E' 18113 ;; 18114 18115 hpux10*) 18116 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18117 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18118 else 18119 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18120 fi 18121 if test "$with_gnu_ld" = no; then 18122 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18123 hardcode_libdir_separator_GCJ=: 18124 18125 hardcode_direct_GCJ=yes 18126 export_dynamic_flag_spec_GCJ='${wl}-E' 18127 18128 # hardcode_minus_L: Not really in the search PATH, 18129 # but as the default location of the library. 18130 hardcode_minus_L_GCJ=yes 18131 fi 18132 ;; 18133 18134 hpux11*) 18135 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18136 case $host_cpu in 18137 hppa*64*) 18138 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18139 ;; 18140 ia64*) 18141 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18142 ;; 18143 *) 18144 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18145 ;; 18146 esac 18147 else 18148 case $host_cpu in 18149 hppa*64*) 18150 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18151 ;; 18152 ia64*) 18153 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18154 ;; 18155 *) 18156 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18157 ;; 18158 esac 18159 fi 18160 if test "$with_gnu_ld" = no; then 18161 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18162 hardcode_libdir_separator_GCJ=: 18163 18164 case $host_cpu in 18165 hppa*64*|ia64*) 18166 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18167 hardcode_direct_GCJ=no 18168 hardcode_shlibpath_var_GCJ=no 18169 ;; 18170 *) 18171 hardcode_direct_GCJ=yes 18172 export_dynamic_flag_spec_GCJ='${wl}-E' 18173 18174 # hardcode_minus_L: Not really in the search PATH, 18175 # but as the default location of the library. 18176 hardcode_minus_L_GCJ=yes 18177 ;; 18178 esac 18179 fi 18180 ;; 18181 18182 irix5* | irix6* | nonstopux*) 18183 if test "$GCC" = yes; then 18184 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' 18185 else 18186 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' 18187 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18188 fi 18189 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18190 hardcode_libdir_separator_GCJ=: 18191 link_all_deplibs_GCJ=yes 18192 ;; 18193 18194 netbsd*) 18195 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18196 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18197 else 18198 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18199 fi 18200 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18201 hardcode_direct_GCJ=yes 18202 hardcode_shlibpath_var_GCJ=no 18203 ;; 18204 18205 newsos6) 18206 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18207 hardcode_direct_GCJ=yes 18208 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18209 hardcode_libdir_separator_GCJ=: 18210 hardcode_shlibpath_var_GCJ=no 18211 ;; 18212 18213 openbsd*) 18214 if test -f /usr/libexec/ld.so; then 18215 hardcode_direct_GCJ=yes 18216 hardcode_shlibpath_var_GCJ=no 18217 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18218 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18219 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18220 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18221 export_dynamic_flag_spec_GCJ='${wl}-E' 18222 else 18223 case $host_os in 18224 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18225 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18226 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18227 ;; 18228 *) 18229 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18230 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18231 ;; 18232 esac 18233 fi 18234 else 18235 ld_shlibs_GCJ=no 18236 fi 18237 ;; 18238 18239 os2*) 18240 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18241 hardcode_minus_L_GCJ=yes 18242 allow_undefined_flag_GCJ=unsupported 18243 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' 18244 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18245 ;; 18246 18247 osf3*) 18248 if test "$GCC" = yes; then 18249 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18250 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' 18251 else 18252 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18253 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' 18254 fi 18255 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18256 hardcode_libdir_separator_GCJ=: 18257 ;; 18258 18259 osf4* | osf5*) # as osf3* with the addition of -msym flag 18260 if test "$GCC" = yes; then 18261 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18262 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' 18263 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18264 else 18265 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18266 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' 18267 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~ 18268 $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' 18269 18270 # Both c and cxx compiler support -rpath directly 18271 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18272 fi 18273 hardcode_libdir_separator_GCJ=: 18274 ;; 18275 18276 solaris*) 18277 no_undefined_flag_GCJ=' -z text' 18278 if test "$GCC" = yes; then 18279 wlarc='${wl}' 18280 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18281 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18282 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18283 else 18284 wlarc='' 18285 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18286 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18287 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18288 fi 18289 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18290 hardcode_shlibpath_var_GCJ=no 18291 case $host_os in 18292 solaris2.[0-5] | solaris2.[0-5].*) ;; 18293 *) 18294 # The compiler driver will combine and reorder linker options, 18295 # but understands `-z linker_flag'. GCC discards it without `$wl', 18296 # but is careful enough not to reorder. 18297 # Supported since Solaris 2.6 (maybe 2.5.1?) 18298 if test "$GCC" = yes; then 18299 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18300 else 18301 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18302 fi 18303 ;; 18304 esac 18305 link_all_deplibs_GCJ=yes 18306 ;; 18307 18308 sunos4*) 18309 if test "x$host_vendor" = xsequent; then 18310 # Use $CC to link under sequent, because it throws in some extra .o 18311 # files that make .init and .fini sections work. 18312 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18313 else 18314 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18315 fi 18316 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18317 hardcode_direct_GCJ=yes 18318 hardcode_minus_L_GCJ=yes 18319 hardcode_shlibpath_var_GCJ=no 18320 ;; 18321 18322 sysv4) 18323 case $host_vendor in 18324 sni) 18325 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18326 hardcode_direct_GCJ=yes # is this really true??? 18327 ;; 18328 siemens) 18329 ## LD is ld it makes a PLAMLIB 18330 ## CC just makes a GrossModule. 18331 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18332 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18333 hardcode_direct_GCJ=no 18334 ;; 18335 motorola) 18336 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18337 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18338 ;; 18339 esac 18340 runpath_var='LD_RUN_PATH' 18341 hardcode_shlibpath_var_GCJ=no 18342 ;; 18343 18344 sysv4.3*) 18345 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18346 hardcode_shlibpath_var_GCJ=no 18347 export_dynamic_flag_spec_GCJ='-Bexport' 18348 ;; 18349 18350 sysv4*MP*) 18351 if test -d /usr/nec; then 18352 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18353 hardcode_shlibpath_var_GCJ=no 18354 runpath_var=LD_RUN_PATH 18355 hardcode_runpath_var=yes 18356 ld_shlibs_GCJ=yes 18357 fi 18358 ;; 18359 18360 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18361 no_undefined_flag_GCJ='${wl}-z,text' 18362 archive_cmds_need_lc_GCJ=no 18363 hardcode_shlibpath_var_GCJ=no 18364 runpath_var='LD_RUN_PATH' 18365 18366 if test "$GCC" = yes; then 18367 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18368 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18369 else 18370 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18371 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18372 fi 18373 ;; 18374 18375 sysv5* | sco3.2v5* | sco5v6*) 18376 # Note: We can NOT use -z defs as we might desire, because we do not 18377 # link with -lc, and that would cause any symbols used from libc to 18378 # always be unresolved, which means just about no library would 18379 # ever link correctly. If we're not using GNU ld we use -z text 18380 # though, which does catch some bad symbols but isn't as heavy-handed 18381 # as -z defs. 18382 no_undefined_flag_GCJ='${wl}-z,text' 18383 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18384 archive_cmds_need_lc_GCJ=no 18385 hardcode_shlibpath_var_GCJ=no 18386 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18387 hardcode_libdir_separator_GCJ=':' 18388 link_all_deplibs_GCJ=yes 18389 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18390 runpath_var='LD_RUN_PATH' 18391 18392 if test "$GCC" = yes; then 18393 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18394 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18395 else 18396 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18397 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18398 fi 18399 ;; 18400 18401 uts4*) 18402 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18403 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18404 hardcode_shlibpath_var_GCJ=no 18405 ;; 18406 18407 *) 18408 ld_shlibs_GCJ=no 18409 ;; 18410 esac 18411 fi 18412 18413{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18414$as_echo "$ld_shlibs_GCJ" >&6; } 18415test "$ld_shlibs_GCJ" = no && can_build_shared=no 18416 18417# 18418# Do we need to explicitly link libc? 18419# 18420case "x$archive_cmds_need_lc_GCJ" in 18421x|xyes) 18422 # Assume -lc should be added 18423 archive_cmds_need_lc_GCJ=yes 18424 18425 if test "$enable_shared" = yes && test "$GCC" = yes; then 18426 case $archive_cmds_GCJ in 18427 *'~'*) 18428 # FIXME: we may have to deal with multi-command sequences. 18429 ;; 18430 '$CC '*) 18431 # Test whether the compiler implicitly links with -lc since on some 18432 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18433 # to ld, don't add -lc before -lgcc. 18434 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18435$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18436 $rm conftest* 18437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18438 18439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18440 (eval $ac_compile) 2>&5 18441 ac_status=$? 18442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18443 (exit $ac_status); } 2>conftest.err; then 18444 soname=conftest 18445 lib=conftest 18446 libobjs=conftest.$ac_objext 18447 deplibs= 18448 wl=$lt_prog_compiler_wl_GCJ 18449 pic_flag=$lt_prog_compiler_pic_GCJ 18450 compiler_flags=-v 18451 linker_flags=-v 18452 verstring= 18453 output_objdir=. 18454 libname=conftest 18455 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18456 allow_undefined_flag_GCJ= 18457 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18458 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18459 ac_status=$? 18460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18461 (exit $ac_status); } 18462 then 18463 archive_cmds_need_lc_GCJ=no 18464 else 18465 archive_cmds_need_lc_GCJ=yes 18466 fi 18467 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18468 else 18469 cat conftest.err 1>&5 18470 fi 18471 $rm conftest* 18472 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18473$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 18474 ;; 18475 esac 18476 fi 18477 ;; 18478esac 18479 18480{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18481$as_echo_n "checking dynamic linker characteristics... " >&6; } 18482library_names_spec= 18483libname_spec='lib$name' 18484soname_spec= 18485shrext_cmds=".so" 18486postinstall_cmds= 18487postuninstall_cmds= 18488finish_cmds= 18489finish_eval= 18490shlibpath_var= 18491shlibpath_overrides_runpath=unknown 18492version_type=none 18493dynamic_linker="$host_os ld.so" 18494sys_lib_dlsearch_path_spec="/lib /usr/lib" 18495 18496need_lib_prefix=unknown 18497hardcode_into_libs=no 18498 18499# when you set need_version to no, make sure it does not cause -set_version 18500# flags to be left without arguments 18501need_version=unknown 18502 18503case $host_os in 18504aix3*) 18505 version_type=linux 18506 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18507 shlibpath_var=LIBPATH 18508 18509 # AIX 3 has no versioning support, so we append a major version to the name. 18510 soname_spec='${libname}${release}${shared_ext}$major' 18511 ;; 18512 18513aix[4-9]*) 18514 version_type=linux 18515 need_lib_prefix=no 18516 need_version=no 18517 hardcode_into_libs=yes 18518 if test "$host_cpu" = ia64; then 18519 # AIX 5 supports IA64 18520 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18521 shlibpath_var=LD_LIBRARY_PATH 18522 else 18523 # With GCC up to 2.95.x, collect2 would create an import file 18524 # for dependence libraries. The import file would start with 18525 # the line `#! .'. This would cause the generated library to 18526 # depend on `.', always an invalid library. This was fixed in 18527 # development snapshots of GCC prior to 3.0. 18528 case $host_os in 18529 aix4 | aix4.[01] | aix4.[01].*) 18530 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18531 echo ' yes ' 18532 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18533 : 18534 else 18535 can_build_shared=no 18536 fi 18537 ;; 18538 esac 18539 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18540 # soname into executable. Probably we can add versioning support to 18541 # collect2, so additional links can be useful in future. 18542 if test "$aix_use_runtimelinking" = yes; then 18543 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18544 # instead of lib<name>.a to let people know that these are not 18545 # typical AIX shared libraries. 18546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18547 else 18548 # We preserve .a as extension for shared libraries through AIX4.2 18549 # and later when we are not doing run time linking. 18550 library_names_spec='${libname}${release}.a $libname.a' 18551 soname_spec='${libname}${release}${shared_ext}$major' 18552 fi 18553 shlibpath_var=LIBPATH 18554 fi 18555 ;; 18556 18557amigaos*) 18558 library_names_spec='$libname.ixlibrary $libname.a' 18559 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18560 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' 18561 ;; 18562 18563beos*) 18564 library_names_spec='${libname}${shared_ext}' 18565 dynamic_linker="$host_os ld.so" 18566 shlibpath_var=LIBRARY_PATH 18567 ;; 18568 18569bsdi[45]*) 18570 version_type=linux 18571 need_version=no 18572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18573 soname_spec='${libname}${release}${shared_ext}$major' 18574 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18575 shlibpath_var=LD_LIBRARY_PATH 18576 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18577 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18578 # the default ld.so.conf also contains /usr/contrib/lib and 18579 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18580 # libtool to hard-code these into programs 18581 ;; 18582 18583cygwin* | mingw* | pw32*) 18584 version_type=windows 18585 shrext_cmds=".dll" 18586 need_version=no 18587 need_lib_prefix=no 18588 18589 case $GCC,$host_os in 18590 yes,cygwin* | yes,mingw* | yes,pw32*) 18591 library_names_spec='$libname.dll.a' 18592 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18593 postinstall_cmds='base_file=`basename \${file}`~ 18594 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18595 dldir=$destdir/`dirname \$dlpath`~ 18596 test -d \$dldir || mkdir -p \$dldir~ 18597 $install_prog $dir/$dlname \$dldir/$dlname~ 18598 chmod a+x \$dldir/$dlname' 18599 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18600 dlpath=$dir/\$dldll~ 18601 $rm \$dlpath' 18602 shlibpath_overrides_runpath=yes 18603 18604 case $host_os in 18605 cygwin*) 18606 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18607 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18608 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18609 ;; 18610 mingw*) 18611 # MinGW DLLs use traditional 'lib' prefix 18612 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18613 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18614 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18615 # It is most probably a Windows format PATH printed by 18616 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18617 # path with ; separators, and with drive letters. We can handle the 18618 # drive letters (cygwin fileutils understands them), so leave them, 18619 # especially as we might pass files found there to a mingw objdump, 18620 # which wouldn't understand a cygwinified path. Ahh. 18621 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18622 else 18623 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18624 fi 18625 ;; 18626 pw32*) 18627 # pw32 DLLs use 'pw' prefix rather than 'lib' 18628 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18629 ;; 18630 esac 18631 ;; 18632 18633 *) 18634 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18635 ;; 18636 esac 18637 dynamic_linker='Win32 ld.exe' 18638 # FIXME: first we should search . and the directory the executable is in 18639 shlibpath_var=PATH 18640 ;; 18641 18642darwin* | rhapsody*) 18643 dynamic_linker="$host_os dyld" 18644 version_type=darwin 18645 need_lib_prefix=no 18646 need_version=no 18647 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18648 soname_spec='${libname}${release}${major}$shared_ext' 18649 shlibpath_overrides_runpath=yes 18650 shlibpath_var=DYLD_LIBRARY_PATH 18651 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18652 18653 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18654 ;; 18655 18656dgux*) 18657 version_type=linux 18658 need_lib_prefix=no 18659 need_version=no 18660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18661 soname_spec='${libname}${release}${shared_ext}$major' 18662 shlibpath_var=LD_LIBRARY_PATH 18663 ;; 18664 18665freebsd1*) 18666 dynamic_linker=no 18667 ;; 18668 18669freebsd* | dragonfly*) 18670 # DragonFly does not have aout. When/if they implement a new 18671 # versioning mechanism, adjust this. 18672 if test -x /usr/bin/objformat; then 18673 objformat=`/usr/bin/objformat` 18674 else 18675 case $host_os in 18676 freebsd[123]*) objformat=aout ;; 18677 *) objformat=elf ;; 18678 esac 18679 fi 18680 version_type=freebsd-$objformat 18681 case $version_type in 18682 freebsd-elf*) 18683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18684 need_version=no 18685 need_lib_prefix=no 18686 ;; 18687 freebsd-*) 18688 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18689 need_version=yes 18690 ;; 18691 esac 18692 shlibpath_var=LD_LIBRARY_PATH 18693 case $host_os in 18694 freebsd2*) 18695 shlibpath_overrides_runpath=yes 18696 ;; 18697 freebsd3.[01]* | freebsdelf3.[01]*) 18698 shlibpath_overrides_runpath=yes 18699 hardcode_into_libs=yes 18700 ;; 18701 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18702 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18703 shlibpath_overrides_runpath=no 18704 hardcode_into_libs=yes 18705 ;; 18706 *) # from 4.6 on, and DragonFly 18707 shlibpath_overrides_runpath=yes 18708 hardcode_into_libs=yes 18709 ;; 18710 esac 18711 ;; 18712 18713gnu*) 18714 version_type=linux 18715 need_lib_prefix=no 18716 need_version=no 18717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18718 soname_spec='${libname}${release}${shared_ext}$major' 18719 shlibpath_var=LD_LIBRARY_PATH 18720 hardcode_into_libs=yes 18721 ;; 18722 18723hpux9* | hpux10* | hpux11*) 18724 # Give a soname corresponding to the major version so that dld.sl refuses to 18725 # link against other versions. 18726 version_type=sunos 18727 need_lib_prefix=no 18728 need_version=no 18729 case $host_cpu in 18730 ia64*) 18731 shrext_cmds='.so' 18732 hardcode_into_libs=yes 18733 dynamic_linker="$host_os dld.so" 18734 shlibpath_var=LD_LIBRARY_PATH 18735 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18737 soname_spec='${libname}${release}${shared_ext}$major' 18738 if test "X$HPUX_IA64_MODE" = X32; then 18739 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18740 else 18741 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18742 fi 18743 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18744 ;; 18745 hppa*64*) 18746 shrext_cmds='.sl' 18747 hardcode_into_libs=yes 18748 dynamic_linker="$host_os dld.sl" 18749 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18750 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18752 soname_spec='${libname}${release}${shared_ext}$major' 18753 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18754 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18755 ;; 18756 *) 18757 shrext_cmds='.sl' 18758 dynamic_linker="$host_os dld.sl" 18759 shlibpath_var=SHLIB_PATH 18760 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 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 ;; 18764 esac 18765 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18766 postinstall_cmds='chmod 555 $lib' 18767 ;; 18768 18769interix[3-9]*) 18770 version_type=linux 18771 need_lib_prefix=no 18772 need_version=no 18773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18774 soname_spec='${libname}${release}${shared_ext}$major' 18775 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18776 shlibpath_var=LD_LIBRARY_PATH 18777 shlibpath_overrides_runpath=no 18778 hardcode_into_libs=yes 18779 ;; 18780 18781irix5* | irix6* | nonstopux*) 18782 case $host_os in 18783 nonstopux*) version_type=nonstopux ;; 18784 *) 18785 if test "$lt_cv_prog_gnu_ld" = yes; then 18786 version_type=linux 18787 else 18788 version_type=irix 18789 fi ;; 18790 esac 18791 need_lib_prefix=no 18792 need_version=no 18793 soname_spec='${libname}${release}${shared_ext}$major' 18794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18795 case $host_os in 18796 irix5* | nonstopux*) 18797 libsuff= shlibsuff= 18798 ;; 18799 *) 18800 case $LD in # libtool.m4 will add one of these switches to LD 18801 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18802 libsuff= shlibsuff= libmagic=32-bit;; 18803 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18804 libsuff=32 shlibsuff=N32 libmagic=N32;; 18805 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18806 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18807 *) libsuff= shlibsuff= libmagic=never-match;; 18808 esac 18809 ;; 18810 esac 18811 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18812 shlibpath_overrides_runpath=no 18813 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18814 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18815 hardcode_into_libs=yes 18816 ;; 18817 18818# No shared lib support for Linux oldld, aout, or coff. 18819linux*oldld* | linux*aout* | linux*coff*) 18820 dynamic_linker=no 18821 ;; 18822 18823# This must be Linux ELF. 18824linux* | k*bsd*-gnu) 18825 version_type=linux 18826 need_lib_prefix=no 18827 need_version=no 18828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18829 soname_spec='${libname}${release}${shared_ext}$major' 18830 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18831 shlibpath_var=LD_LIBRARY_PATH 18832 shlibpath_overrides_runpath=no 18833 # This implies no fast_install, which is unacceptable. 18834 # Some rework will be needed to allow for fast_install 18835 # before this can be enabled. 18836 hardcode_into_libs=yes 18837 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18838 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18839 18840 # Append ld.so.conf contents to the search path 18841 if test -f /etc/ld.so.conf; then 18842 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' ' '` 18843 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 18844 fi 18845 18846 # We used to test for /lib/ld.so.1 and disable shared libraries on 18847 # powerpc, because MkLinux only supported shared libraries with the 18848 # GNU dynamic linker. Since this was broken with cross compilers, 18849 # most powerpc-linux boxes support dynamic linking these days and 18850 # people can always --disable-shared, the test was removed, and we 18851 # assume the GNU/Linux dynamic linker is in use. 18852 dynamic_linker='GNU/Linux ld.so' 18853 ;; 18854 18855netbsd*) 18856 version_type=sunos 18857 need_lib_prefix=no 18858 need_version=no 18859 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18862 dynamic_linker='NetBSD (a.out) ld.so' 18863 else 18864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18865 soname_spec='${libname}${release}${shared_ext}$major' 18866 dynamic_linker='NetBSD ld.elf_so' 18867 fi 18868 shlibpath_var=LD_LIBRARY_PATH 18869 shlibpath_overrides_runpath=yes 18870 hardcode_into_libs=yes 18871 ;; 18872 18873newsos6) 18874 version_type=linux 18875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18876 shlibpath_var=LD_LIBRARY_PATH 18877 shlibpath_overrides_runpath=yes 18878 ;; 18879 18880nto-qnx*) 18881 version_type=linux 18882 need_lib_prefix=no 18883 need_version=no 18884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18885 soname_spec='${libname}${release}${shared_ext}$major' 18886 shlibpath_var=LD_LIBRARY_PATH 18887 shlibpath_overrides_runpath=yes 18888 ;; 18889 18890openbsd*) 18891 version_type=sunos 18892 sys_lib_dlsearch_path_spec="/usr/lib" 18893 need_lib_prefix=no 18894 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18895 case $host_os in 18896 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18897 *) need_version=no ;; 18898 esac 18899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18901 shlibpath_var=LD_LIBRARY_PATH 18902 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18903 case $host_os in 18904 openbsd2.[89] | openbsd2.[89].*) 18905 shlibpath_overrides_runpath=no 18906 ;; 18907 *) 18908 shlibpath_overrides_runpath=yes 18909 ;; 18910 esac 18911 else 18912 shlibpath_overrides_runpath=yes 18913 fi 18914 ;; 18915 18916os2*) 18917 libname_spec='$name' 18918 shrext_cmds=".dll" 18919 need_lib_prefix=no 18920 library_names_spec='$libname${shared_ext} $libname.a' 18921 dynamic_linker='OS/2 ld.exe' 18922 shlibpath_var=LIBPATH 18923 ;; 18924 18925osf3* | osf4* | osf5*) 18926 version_type=osf 18927 need_lib_prefix=no 18928 need_version=no 18929 soname_spec='${libname}${release}${shared_ext}$major' 18930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18931 shlibpath_var=LD_LIBRARY_PATH 18932 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18933 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18934 ;; 18935 18936rdos*) 18937 dynamic_linker=no 18938 ;; 18939 18940solaris*) 18941 version_type=linux 18942 need_lib_prefix=no 18943 need_version=no 18944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18945 soname_spec='${libname}${release}${shared_ext}$major' 18946 shlibpath_var=LD_LIBRARY_PATH 18947 shlibpath_overrides_runpath=yes 18948 hardcode_into_libs=yes 18949 # ldd complains unless libraries are executable 18950 postinstall_cmds='chmod +x $lib' 18951 ;; 18952 18953sunos4*) 18954 version_type=sunos 18955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18956 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18957 shlibpath_var=LD_LIBRARY_PATH 18958 shlibpath_overrides_runpath=yes 18959 if test "$with_gnu_ld" = yes; then 18960 need_lib_prefix=no 18961 fi 18962 need_version=yes 18963 ;; 18964 18965sysv4 | sysv4.3*) 18966 version_type=linux 18967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18968 soname_spec='${libname}${release}${shared_ext}$major' 18969 shlibpath_var=LD_LIBRARY_PATH 18970 case $host_vendor in 18971 sni) 18972 shlibpath_overrides_runpath=no 18973 need_lib_prefix=no 18974 export_dynamic_flag_spec='${wl}-Blargedynsym' 18975 runpath_var=LD_RUN_PATH 18976 ;; 18977 siemens) 18978 need_lib_prefix=no 18979 ;; 18980 motorola) 18981 need_lib_prefix=no 18982 need_version=no 18983 shlibpath_overrides_runpath=no 18984 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18985 ;; 18986 esac 18987 ;; 18988 18989sysv4*MP*) 18990 if test -d /usr/nec ;then 18991 version_type=linux 18992 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18993 soname_spec='$libname${shared_ext}.$major' 18994 shlibpath_var=LD_LIBRARY_PATH 18995 fi 18996 ;; 18997 18998sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18999 version_type=freebsd-elf 19000 need_lib_prefix=no 19001 need_version=no 19002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19003 soname_spec='${libname}${release}${shared_ext}$major' 19004 shlibpath_var=LD_LIBRARY_PATH 19005 hardcode_into_libs=yes 19006 if test "$with_gnu_ld" = yes; then 19007 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19008 shlibpath_overrides_runpath=no 19009 else 19010 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19011 shlibpath_overrides_runpath=yes 19012 case $host_os in 19013 sco3.2v5*) 19014 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19015 ;; 19016 esac 19017 fi 19018 sys_lib_dlsearch_path_spec='/usr/lib' 19019 ;; 19020 19021uts4*) 19022 version_type=linux 19023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19024 soname_spec='${libname}${release}${shared_ext}$major' 19025 shlibpath_var=LD_LIBRARY_PATH 19026 ;; 19027 19028*) 19029 dynamic_linker=no 19030 ;; 19031esac 19032{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 19033$as_echo "$dynamic_linker" >&6; } 19034test "$dynamic_linker" = no && can_build_shared=no 19035 19036if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 19037 $as_echo_n "(cached) " >&6 19038else 19039 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 19040fi 19041 19042sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 19043if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 19044 $as_echo_n "(cached) " >&6 19045else 19046 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 19047fi 19048 19049sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 19050 19051variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19052if test "$GCC" = yes; then 19053 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19054fi 19055 19056{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19057$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 19058hardcode_action_GCJ= 19059if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19060 test -n "$runpath_var_GCJ" || \ 19061 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 19062 19063 # We can hardcode non-existant directories. 19064 if test "$hardcode_direct_GCJ" != no && 19065 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19066 # have to relink, otherwise we might link with an installed library 19067 # when we should be linking with a yet-to-be-installed one 19068 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19069 test "$hardcode_minus_L_GCJ" != no; then 19070 # Linking always hardcodes the temporary library directory. 19071 hardcode_action_GCJ=relink 19072 else 19073 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19074 hardcode_action_GCJ=immediate 19075 fi 19076else 19077 # We cannot hardcode anything, or else we can only hardcode existing 19078 # directories. 19079 hardcode_action_GCJ=unsupported 19080fi 19081{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19082$as_echo "$hardcode_action_GCJ" >&6; } 19083 19084if test "$hardcode_action_GCJ" = relink; then 19085 # Fast installation is not supported 19086 enable_fast_install=no 19087elif test "$shlibpath_overrides_runpath" = yes || 19088 test "$enable_shared" = no; then 19089 # Fast installation is not necessary 19090 enable_fast_install=needless 19091fi 19092 19093 19094# The else clause should only fire when bootstrapping the 19095# libtool distribution, otherwise you forgot to ship ltmain.sh 19096# with your package, and you will get complaints that there are 19097# no rules to generate ltmain.sh. 19098if test -f "$ltmain"; then 19099 # See if we are running on zsh, and set the options which allow our commands through 19100 # without removal of \ escapes. 19101 if test -n "${ZSH_VERSION+set}" ; then 19102 setopt NO_GLOB_SUBST 19103 fi 19104 # Now quote all the things that may contain metacharacters while being 19105 # careful not to overquote the AC_SUBSTed values. We take copies of the 19106 # variables and quote the copies for generation of the libtool script. 19107 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19108 SED SHELL STRIP \ 19109 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19110 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19111 deplibs_check_method reload_flag reload_cmds need_locks \ 19112 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19113 lt_cv_sys_global_symbol_to_c_name_address \ 19114 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19115 old_postinstall_cmds old_postuninstall_cmds \ 19116 compiler_GCJ \ 19117 CC_GCJ \ 19118 LD_GCJ \ 19119 lt_prog_compiler_wl_GCJ \ 19120 lt_prog_compiler_pic_GCJ \ 19121 lt_prog_compiler_static_GCJ \ 19122 lt_prog_compiler_no_builtin_flag_GCJ \ 19123 export_dynamic_flag_spec_GCJ \ 19124 thread_safe_flag_spec_GCJ \ 19125 whole_archive_flag_spec_GCJ \ 19126 enable_shared_with_static_runtimes_GCJ \ 19127 old_archive_cmds_GCJ \ 19128 old_archive_from_new_cmds_GCJ \ 19129 predep_objects_GCJ \ 19130 postdep_objects_GCJ \ 19131 predeps_GCJ \ 19132 postdeps_GCJ \ 19133 compiler_lib_search_path_GCJ \ 19134 compiler_lib_search_dirs_GCJ \ 19135 archive_cmds_GCJ \ 19136 archive_expsym_cmds_GCJ \ 19137 postinstall_cmds_GCJ \ 19138 postuninstall_cmds_GCJ \ 19139 old_archive_from_expsyms_cmds_GCJ \ 19140 allow_undefined_flag_GCJ \ 19141 no_undefined_flag_GCJ \ 19142 export_symbols_cmds_GCJ \ 19143 hardcode_libdir_flag_spec_GCJ \ 19144 hardcode_libdir_flag_spec_ld_GCJ \ 19145 hardcode_libdir_separator_GCJ \ 19146 hardcode_automatic_GCJ \ 19147 module_cmds_GCJ \ 19148 module_expsym_cmds_GCJ \ 19149 lt_cv_prog_compiler_c_o_GCJ \ 19150 fix_srcfile_path_GCJ \ 19151 exclude_expsyms_GCJ \ 19152 include_expsyms_GCJ; do 19153 19154 case $var in 19155 old_archive_cmds_GCJ | \ 19156 old_archive_from_new_cmds_GCJ | \ 19157 archive_cmds_GCJ | \ 19158 archive_expsym_cmds_GCJ | \ 19159 module_cmds_GCJ | \ 19160 module_expsym_cmds_GCJ | \ 19161 old_archive_from_expsyms_cmds_GCJ | \ 19162 export_symbols_cmds_GCJ | \ 19163 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19164 postinstall_cmds | postuninstall_cmds | \ 19165 old_postinstall_cmds | old_postuninstall_cmds | \ 19166 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19167 # Double-quote double-evaled strings. 19168 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19169 ;; 19170 *) 19171 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19172 ;; 19173 esac 19174 done 19175 19176 case $lt_echo in 19177 *'\$0 --fallback-echo"') 19178 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19179 ;; 19180 esac 19181 19182cfgfile="$ofile" 19183 19184 cat <<__EOF__ >> "$cfgfile" 19185# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19186 19187# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19188 19189# Shell to use when invoking shell scripts. 19190SHELL=$lt_SHELL 19191 19192# Whether or not to build shared libraries. 19193build_libtool_libs=$enable_shared 19194 19195# Whether or not to build static libraries. 19196build_old_libs=$enable_static 19197 19198# Whether or not to add -lc for building shared libraries. 19199build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19200 19201# Whether or not to disallow shared libs when runtime libs are static 19202allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19203 19204# Whether or not to optimize for fast installation. 19205fast_install=$enable_fast_install 19206 19207# The host system. 19208host_alias=$host_alias 19209host=$host 19210host_os=$host_os 19211 19212# The build system. 19213build_alias=$build_alias 19214build=$build 19215build_os=$build_os 19216 19217# An echo program that does not interpret backslashes. 19218echo=$lt_echo 19219 19220# The archiver. 19221AR=$lt_AR 19222AR_FLAGS=$lt_AR_FLAGS 19223 19224# A C compiler. 19225LTCC=$lt_LTCC 19226 19227# LTCC compiler flags. 19228LTCFLAGS=$lt_LTCFLAGS 19229 19230# A language-specific compiler. 19231CC=$lt_compiler_GCJ 19232 19233# Is the compiler the GNU C compiler? 19234with_gcc=$GCC_GCJ 19235 19236# An ERE matcher. 19237EGREP=$lt_EGREP 19238 19239# The linker used to build libraries. 19240LD=$lt_LD_GCJ 19241 19242# Whether we need hard or soft links. 19243LN_S=$lt_LN_S 19244 19245# A BSD-compatible nm program. 19246NM=$lt_NM 19247 19248# A symbol stripping program 19249STRIP=$lt_STRIP 19250 19251# Used to examine libraries when file_magic_cmd begins "file" 19252MAGIC_CMD=$MAGIC_CMD 19253 19254# Used on cygwin: DLL creation program. 19255DLLTOOL="$DLLTOOL" 19256 19257# Used on cygwin: object dumper. 19258OBJDUMP="$OBJDUMP" 19259 19260# Used on cygwin: assembler. 19261AS="$AS" 19262 19263# The name of the directory that contains temporary libtool files. 19264objdir=$objdir 19265 19266# How to create reloadable object files. 19267reload_flag=$lt_reload_flag 19268reload_cmds=$lt_reload_cmds 19269 19270# How to pass a linker flag through the compiler. 19271wl=$lt_lt_prog_compiler_wl_GCJ 19272 19273# Object file suffix (normally "o"). 19274objext="$ac_objext" 19275 19276# Old archive suffix (normally "a"). 19277libext="$libext" 19278 19279# Shared library suffix (normally ".so"). 19280shrext_cmds='$shrext_cmds' 19281 19282# Executable file suffix (normally ""). 19283exeext="$exeext" 19284 19285# Additional compiler flags for building library objects. 19286pic_flag=$lt_lt_prog_compiler_pic_GCJ 19287pic_mode=$pic_mode 19288 19289# What is the maximum length of a command? 19290max_cmd_len=$lt_cv_sys_max_cmd_len 19291 19292# Does compiler simultaneously support -c and -o options? 19293compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19294 19295# Must we lock files when doing compilation? 19296need_locks=$lt_need_locks 19297 19298# Do we need the lib prefix for modules? 19299need_lib_prefix=$need_lib_prefix 19300 19301# Do we need a version for libraries? 19302need_version=$need_version 19303 19304# Whether dlopen is supported. 19305dlopen_support=$enable_dlopen 19306 19307# Whether dlopen of programs is supported. 19308dlopen_self=$enable_dlopen_self 19309 19310# Whether dlopen of statically linked programs is supported. 19311dlopen_self_static=$enable_dlopen_self_static 19312 19313# Compiler flag to prevent dynamic linking. 19314link_static_flag=$lt_lt_prog_compiler_static_GCJ 19315 19316# Compiler flag to turn off builtin functions. 19317no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19318 19319# Compiler flag to allow reflexive dlopens. 19320export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19321 19322# Compiler flag to generate shared objects directly from archives. 19323whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19324 19325# Compiler flag to generate thread-safe objects. 19326thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19327 19328# Library versioning type. 19329version_type=$version_type 19330 19331# Format of library name prefix. 19332libname_spec=$lt_libname_spec 19333 19334# List of archive names. First name is the real one, the rest are links. 19335# The last name is the one that the linker finds with -lNAME. 19336library_names_spec=$lt_library_names_spec 19337 19338# The coded name of the library, if different from the real name. 19339soname_spec=$lt_soname_spec 19340 19341# Commands used to build and install an old-style archive. 19342RANLIB=$lt_RANLIB 19343old_archive_cmds=$lt_old_archive_cmds_GCJ 19344old_postinstall_cmds=$lt_old_postinstall_cmds 19345old_postuninstall_cmds=$lt_old_postuninstall_cmds 19346 19347# Create an old-style archive from a shared archive. 19348old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19349 19350# Create a temporary old-style archive to link instead of a shared archive. 19351old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19352 19353# Commands used to build and install a shared archive. 19354archive_cmds=$lt_archive_cmds_GCJ 19355archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19356postinstall_cmds=$lt_postinstall_cmds 19357postuninstall_cmds=$lt_postuninstall_cmds 19358 19359# Commands used to build a loadable module (assumed same as above if empty) 19360module_cmds=$lt_module_cmds_GCJ 19361module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19362 19363# Commands to strip libraries. 19364old_striplib=$lt_old_striplib 19365striplib=$lt_striplib 19366 19367# Dependencies to place before the objects being linked to create a 19368# shared library. 19369predep_objects=$lt_predep_objects_GCJ 19370 19371# Dependencies to place after the objects being linked to create a 19372# shared library. 19373postdep_objects=$lt_postdep_objects_GCJ 19374 19375# Dependencies to place before the objects being linked to create a 19376# shared library. 19377predeps=$lt_predeps_GCJ 19378 19379# Dependencies to place after the objects being linked to create a 19380# shared library. 19381postdeps=$lt_postdeps_GCJ 19382 19383# The directories searched by this compiler when creating a shared 19384# library 19385compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 19386 19387# The library search path used internally by the compiler when linking 19388# a shared library. 19389compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19390 19391# Method to check whether dependent libraries are shared objects. 19392deplibs_check_method=$lt_deplibs_check_method 19393 19394# Command to use when deplibs_check_method == file_magic. 19395file_magic_cmd=$lt_file_magic_cmd 19396 19397# Flag that allows shared libraries with undefined symbols to be built. 19398allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19399 19400# Flag that forces no undefined symbols. 19401no_undefined_flag=$lt_no_undefined_flag_GCJ 19402 19403# Commands used to finish a libtool library installation in a directory. 19404finish_cmds=$lt_finish_cmds 19405 19406# Same as above, but a single script fragment to be evaled but not shown. 19407finish_eval=$lt_finish_eval 19408 19409# Take the output of nm and produce a listing of raw symbols and C names. 19410global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19411 19412# Transform the output of nm in a proper C declaration 19413global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19414 19415# Transform the output of nm in a C name address pair 19416global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19417 19418# This is the shared library runtime path variable. 19419runpath_var=$runpath_var 19420 19421# This is the shared library path variable. 19422shlibpath_var=$shlibpath_var 19423 19424# Is shlibpath searched before the hard-coded library search path? 19425shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19426 19427# How to hardcode a shared library path into an executable. 19428hardcode_action=$hardcode_action_GCJ 19429 19430# Whether we should hardcode library paths into libraries. 19431hardcode_into_libs=$hardcode_into_libs 19432 19433# Flag to hardcode \$libdir into a binary during linking. 19434# This must work even if \$libdir does not exist. 19435hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19436 19437# If ld is used when linking, flag to hardcode \$libdir into 19438# a binary during linking. This must work even if \$libdir does 19439# not exist. 19440hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19441 19442# Whether we need a single -rpath flag with a separated argument. 19443hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19444 19445# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19446# resulting binary. 19447hardcode_direct=$hardcode_direct_GCJ 19448 19449# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19450# resulting binary. 19451hardcode_minus_L=$hardcode_minus_L_GCJ 19452 19453# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19454# the resulting binary. 19455hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19456 19457# Set to yes if building a shared library automatically hardcodes DIR into the library 19458# and all subsequent libraries and executables linked against it. 19459hardcode_automatic=$hardcode_automatic_GCJ 19460 19461# Variables whose values should be saved in libtool wrapper scripts and 19462# restored at relink time. 19463variables_saved_for_relink="$variables_saved_for_relink" 19464 19465# Whether libtool must link a program against all its dependency libraries. 19466link_all_deplibs=$link_all_deplibs_GCJ 19467 19468# Compile-time system search path for libraries 19469sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19470 19471# Run-time system search path for libraries 19472sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19473 19474# Fix the shell variable \$srcfile for the compiler. 19475fix_srcfile_path=$lt_fix_srcfile_path 19476 19477# Set to yes if exported symbols are required. 19478always_export_symbols=$always_export_symbols_GCJ 19479 19480# The commands to list exported symbols. 19481export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19482 19483# The commands to extract the exported symbol list from a shared archive. 19484extract_expsyms_cmds=$lt_extract_expsyms_cmds 19485 19486# Symbols that should not be listed in the preloaded symbols. 19487exclude_expsyms=$lt_exclude_expsyms_GCJ 19488 19489# Symbols that must always be exported. 19490include_expsyms=$lt_include_expsyms_GCJ 19491 19492# ### END LIBTOOL TAG CONFIG: $tagname 19493 19494__EOF__ 19495 19496 19497else 19498 # If there is no Makefile yet, we rely on a make rule to execute 19499 # `config.status --recheck' to rerun these tests and create the 19500 # libtool script then. 19501 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19502 if test -f "$ltmain_in"; then 19503 test -f Makefile && make "$ltmain" 19504 fi 19505fi 19506 19507 19508ac_ext=c 19509ac_cpp='$CPP $CPPFLAGS' 19510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19512ac_compiler_gnu=$ac_cv_c_compiler_gnu 19513 19514CC="$lt_save_CC" 19515 19516 else 19517 tagname="" 19518 fi 19519 ;; 19520 19521 RC) 19522 19523 19524# Source file extension for RC test sources. 19525ac_ext=rc 19526 19527# Object file extension for compiled RC test sources. 19528objext=o 19529objext_RC=$objext 19530 19531# Code to be used in simple compile tests 19532lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19533 19534# Code to be used in simple link tests 19535lt_simple_link_test_code="$lt_simple_compile_test_code" 19536 19537# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19538 19539# If no C compiler was specified, use CC. 19540LTCC=${LTCC-"$CC"} 19541 19542# If no C compiler flags were specified, use CFLAGS. 19543LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19544 19545# Allow CC to be a program name with arguments. 19546compiler=$CC 19547 19548 19549# save warnings/boilerplate of simple test code 19550ac_outfile=conftest.$ac_objext 19551echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19552eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19553_lt_compiler_boilerplate=`cat conftest.err` 19554$rm conftest* 19555 19556ac_outfile=conftest.$ac_objext 19557echo "$lt_simple_link_test_code" >conftest.$ac_ext 19558eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19559_lt_linker_boilerplate=`cat conftest.err` 19560$rm -r conftest* 19561 19562 19563# Allow CC to be a program name with arguments. 19564lt_save_CC="$CC" 19565CC=${RC-"windres"} 19566compiler=$CC 19567compiler_RC=$CC 19568for cc_temp in $compiler""; do 19569 case $cc_temp in 19570 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19571 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19572 \-*) ;; 19573 *) break;; 19574 esac 19575done 19576cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19577 19578lt_cv_prog_compiler_c_o_RC=yes 19579 19580# The else clause should only fire when bootstrapping the 19581# libtool distribution, otherwise you forgot to ship ltmain.sh 19582# with your package, and you will get complaints that there are 19583# no rules to generate ltmain.sh. 19584if test -f "$ltmain"; then 19585 # See if we are running on zsh, and set the options which allow our commands through 19586 # without removal of \ escapes. 19587 if test -n "${ZSH_VERSION+set}" ; then 19588 setopt NO_GLOB_SUBST 19589 fi 19590 # Now quote all the things that may contain metacharacters while being 19591 # careful not to overquote the AC_SUBSTed values. We take copies of the 19592 # variables and quote the copies for generation of the libtool script. 19593 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19594 SED SHELL STRIP \ 19595 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19596 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19597 deplibs_check_method reload_flag reload_cmds need_locks \ 19598 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19599 lt_cv_sys_global_symbol_to_c_name_address \ 19600 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19601 old_postinstall_cmds old_postuninstall_cmds \ 19602 compiler_RC \ 19603 CC_RC \ 19604 LD_RC \ 19605 lt_prog_compiler_wl_RC \ 19606 lt_prog_compiler_pic_RC \ 19607 lt_prog_compiler_static_RC \ 19608 lt_prog_compiler_no_builtin_flag_RC \ 19609 export_dynamic_flag_spec_RC \ 19610 thread_safe_flag_spec_RC \ 19611 whole_archive_flag_spec_RC \ 19612 enable_shared_with_static_runtimes_RC \ 19613 old_archive_cmds_RC \ 19614 old_archive_from_new_cmds_RC \ 19615 predep_objects_RC \ 19616 postdep_objects_RC \ 19617 predeps_RC \ 19618 postdeps_RC \ 19619 compiler_lib_search_path_RC \ 19620 compiler_lib_search_dirs_RC \ 19621 archive_cmds_RC \ 19622 archive_expsym_cmds_RC \ 19623 postinstall_cmds_RC \ 19624 postuninstall_cmds_RC \ 19625 old_archive_from_expsyms_cmds_RC \ 19626 allow_undefined_flag_RC \ 19627 no_undefined_flag_RC \ 19628 export_symbols_cmds_RC \ 19629 hardcode_libdir_flag_spec_RC \ 19630 hardcode_libdir_flag_spec_ld_RC \ 19631 hardcode_libdir_separator_RC \ 19632 hardcode_automatic_RC \ 19633 module_cmds_RC \ 19634 module_expsym_cmds_RC \ 19635 lt_cv_prog_compiler_c_o_RC \ 19636 fix_srcfile_path_RC \ 19637 exclude_expsyms_RC \ 19638 include_expsyms_RC; do 19639 19640 case $var in 19641 old_archive_cmds_RC | \ 19642 old_archive_from_new_cmds_RC | \ 19643 archive_cmds_RC | \ 19644 archive_expsym_cmds_RC | \ 19645 module_cmds_RC | \ 19646 module_expsym_cmds_RC | \ 19647 old_archive_from_expsyms_cmds_RC | \ 19648 export_symbols_cmds_RC | \ 19649 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19650 postinstall_cmds | postuninstall_cmds | \ 19651 old_postinstall_cmds | old_postuninstall_cmds | \ 19652 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19653 # Double-quote double-evaled strings. 19654 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19655 ;; 19656 *) 19657 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19658 ;; 19659 esac 19660 done 19661 19662 case $lt_echo in 19663 *'\$0 --fallback-echo"') 19664 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19665 ;; 19666 esac 19667 19668cfgfile="$ofile" 19669 19670 cat <<__EOF__ >> "$cfgfile" 19671# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19672 19673# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19674 19675# Shell to use when invoking shell scripts. 19676SHELL=$lt_SHELL 19677 19678# Whether or not to build shared libraries. 19679build_libtool_libs=$enable_shared 19680 19681# Whether or not to build static libraries. 19682build_old_libs=$enable_static 19683 19684# Whether or not to add -lc for building shared libraries. 19685build_libtool_need_lc=$archive_cmds_need_lc_RC 19686 19687# Whether or not to disallow shared libs when runtime libs are static 19688allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19689 19690# Whether or not to optimize for fast installation. 19691fast_install=$enable_fast_install 19692 19693# The host system. 19694host_alias=$host_alias 19695host=$host 19696host_os=$host_os 19697 19698# The build system. 19699build_alias=$build_alias 19700build=$build 19701build_os=$build_os 19702 19703# An echo program that does not interpret backslashes. 19704echo=$lt_echo 19705 19706# The archiver. 19707AR=$lt_AR 19708AR_FLAGS=$lt_AR_FLAGS 19709 19710# A C compiler. 19711LTCC=$lt_LTCC 19712 19713# LTCC compiler flags. 19714LTCFLAGS=$lt_LTCFLAGS 19715 19716# A language-specific compiler. 19717CC=$lt_compiler_RC 19718 19719# Is the compiler the GNU C compiler? 19720with_gcc=$GCC_RC 19721 19722# An ERE matcher. 19723EGREP=$lt_EGREP 19724 19725# The linker used to build libraries. 19726LD=$lt_LD_RC 19727 19728# Whether we need hard or soft links. 19729LN_S=$lt_LN_S 19730 19731# A BSD-compatible nm program. 19732NM=$lt_NM 19733 19734# A symbol stripping program 19735STRIP=$lt_STRIP 19736 19737# Used to examine libraries when file_magic_cmd begins "file" 19738MAGIC_CMD=$MAGIC_CMD 19739 19740# Used on cygwin: DLL creation program. 19741DLLTOOL="$DLLTOOL" 19742 19743# Used on cygwin: object dumper. 19744OBJDUMP="$OBJDUMP" 19745 19746# Used on cygwin: assembler. 19747AS="$AS" 19748 19749# The name of the directory that contains temporary libtool files. 19750objdir=$objdir 19751 19752# How to create reloadable object files. 19753reload_flag=$lt_reload_flag 19754reload_cmds=$lt_reload_cmds 19755 19756# How to pass a linker flag through the compiler. 19757wl=$lt_lt_prog_compiler_wl_RC 19758 19759# Object file suffix (normally "o"). 19760objext="$ac_objext" 19761 19762# Old archive suffix (normally "a"). 19763libext="$libext" 19764 19765# Shared library suffix (normally ".so"). 19766shrext_cmds='$shrext_cmds' 19767 19768# Executable file suffix (normally ""). 19769exeext="$exeext" 19770 19771# Additional compiler flags for building library objects. 19772pic_flag=$lt_lt_prog_compiler_pic_RC 19773pic_mode=$pic_mode 19774 19775# What is the maximum length of a command? 19776max_cmd_len=$lt_cv_sys_max_cmd_len 19777 19778# Does compiler simultaneously support -c and -o options? 19779compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19780 19781# Must we lock files when doing compilation? 19782need_locks=$lt_need_locks 19783 19784# Do we need the lib prefix for modules? 19785need_lib_prefix=$need_lib_prefix 19786 19787# Do we need a version for libraries? 19788need_version=$need_version 19789 19790# Whether dlopen is supported. 19791dlopen_support=$enable_dlopen 19792 19793# Whether dlopen of programs is supported. 19794dlopen_self=$enable_dlopen_self 19795 19796# Whether dlopen of statically linked programs is supported. 19797dlopen_self_static=$enable_dlopen_self_static 19798 19799# Compiler flag to prevent dynamic linking. 19800link_static_flag=$lt_lt_prog_compiler_static_RC 19801 19802# Compiler flag to turn off builtin functions. 19803no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19804 19805# Compiler flag to allow reflexive dlopens. 19806export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19807 19808# Compiler flag to generate shared objects directly from archives. 19809whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19810 19811# Compiler flag to generate thread-safe objects. 19812thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19813 19814# Library versioning type. 19815version_type=$version_type 19816 19817# Format of library name prefix. 19818libname_spec=$lt_libname_spec 19819 19820# List of archive names. First name is the real one, the rest are links. 19821# The last name is the one that the linker finds with -lNAME. 19822library_names_spec=$lt_library_names_spec 19823 19824# The coded name of the library, if different from the real name. 19825soname_spec=$lt_soname_spec 19826 19827# Commands used to build and install an old-style archive. 19828RANLIB=$lt_RANLIB 19829old_archive_cmds=$lt_old_archive_cmds_RC 19830old_postinstall_cmds=$lt_old_postinstall_cmds 19831old_postuninstall_cmds=$lt_old_postuninstall_cmds 19832 19833# Create an old-style archive from a shared archive. 19834old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19835 19836# Create a temporary old-style archive to link instead of a shared archive. 19837old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19838 19839# Commands used to build and install a shared archive. 19840archive_cmds=$lt_archive_cmds_RC 19841archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19842postinstall_cmds=$lt_postinstall_cmds 19843postuninstall_cmds=$lt_postuninstall_cmds 19844 19845# Commands used to build a loadable module (assumed same as above if empty) 19846module_cmds=$lt_module_cmds_RC 19847module_expsym_cmds=$lt_module_expsym_cmds_RC 19848 19849# Commands to strip libraries. 19850old_striplib=$lt_old_striplib 19851striplib=$lt_striplib 19852 19853# Dependencies to place before the objects being linked to create a 19854# shared library. 19855predep_objects=$lt_predep_objects_RC 19856 19857# Dependencies to place after the objects being linked to create a 19858# shared library. 19859postdep_objects=$lt_postdep_objects_RC 19860 19861# Dependencies to place before the objects being linked to create a 19862# shared library. 19863predeps=$lt_predeps_RC 19864 19865# Dependencies to place after the objects being linked to create a 19866# shared library. 19867postdeps=$lt_postdeps_RC 19868 19869# The directories searched by this compiler when creating a shared 19870# library 19871compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 19872 19873# The library search path used internally by the compiler when linking 19874# a shared library. 19875compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19876 19877# Method to check whether dependent libraries are shared objects. 19878deplibs_check_method=$lt_deplibs_check_method 19879 19880# Command to use when deplibs_check_method == file_magic. 19881file_magic_cmd=$lt_file_magic_cmd 19882 19883# Flag that allows shared libraries with undefined symbols to be built. 19884allow_undefined_flag=$lt_allow_undefined_flag_RC 19885 19886# Flag that forces no undefined symbols. 19887no_undefined_flag=$lt_no_undefined_flag_RC 19888 19889# Commands used to finish a libtool library installation in a directory. 19890finish_cmds=$lt_finish_cmds 19891 19892# Same as above, but a single script fragment to be evaled but not shown. 19893finish_eval=$lt_finish_eval 19894 19895# Take the output of nm and produce a listing of raw symbols and C names. 19896global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19897 19898# Transform the output of nm in a proper C declaration 19899global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19900 19901# Transform the output of nm in a C name address pair 19902global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19903 19904# This is the shared library runtime path variable. 19905runpath_var=$runpath_var 19906 19907# This is the shared library path variable. 19908shlibpath_var=$shlibpath_var 19909 19910# Is shlibpath searched before the hard-coded library search path? 19911shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19912 19913# How to hardcode a shared library path into an executable. 19914hardcode_action=$hardcode_action_RC 19915 19916# Whether we should hardcode library paths into libraries. 19917hardcode_into_libs=$hardcode_into_libs 19918 19919# Flag to hardcode \$libdir into a binary during linking. 19920# This must work even if \$libdir does not exist. 19921hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19922 19923# If ld is used when linking, flag to hardcode \$libdir into 19924# a binary during linking. This must work even if \$libdir does 19925# not exist. 19926hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19927 19928# Whether we need a single -rpath flag with a separated argument. 19929hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19930 19931# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19932# resulting binary. 19933hardcode_direct=$hardcode_direct_RC 19934 19935# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19936# resulting binary. 19937hardcode_minus_L=$hardcode_minus_L_RC 19938 19939# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19940# the resulting binary. 19941hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19942 19943# Set to yes if building a shared library automatically hardcodes DIR into the library 19944# and all subsequent libraries and executables linked against it. 19945hardcode_automatic=$hardcode_automatic_RC 19946 19947# Variables whose values should be saved in libtool wrapper scripts and 19948# restored at relink time. 19949variables_saved_for_relink="$variables_saved_for_relink" 19950 19951# Whether libtool must link a program against all its dependency libraries. 19952link_all_deplibs=$link_all_deplibs_RC 19953 19954# Compile-time system search path for libraries 19955sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19956 19957# Run-time system search path for libraries 19958sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19959 19960# Fix the shell variable \$srcfile for the compiler. 19961fix_srcfile_path=$lt_fix_srcfile_path 19962 19963# Set to yes if exported symbols are required. 19964always_export_symbols=$always_export_symbols_RC 19965 19966# The commands to list exported symbols. 19967export_symbols_cmds=$lt_export_symbols_cmds_RC 19968 19969# The commands to extract the exported symbol list from a shared archive. 19970extract_expsyms_cmds=$lt_extract_expsyms_cmds 19971 19972# Symbols that should not be listed in the preloaded symbols. 19973exclude_expsyms=$lt_exclude_expsyms_RC 19974 19975# Symbols that must always be exported. 19976include_expsyms=$lt_include_expsyms_RC 19977 19978# ### END LIBTOOL TAG CONFIG: $tagname 19979 19980__EOF__ 19981 19982 19983else 19984 # If there is no Makefile yet, we rely on a make rule to execute 19985 # `config.status --recheck' to rerun these tests and create the 19986 # libtool script then. 19987 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19988 if test -f "$ltmain_in"; then 19989 test -f Makefile && make "$ltmain" 19990 fi 19991fi 19992 19993 19994ac_ext=c 19995ac_cpp='$CPP $CPPFLAGS' 19996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19998ac_compiler_gnu=$ac_cv_c_compiler_gnu 19999 20000CC="$lt_save_CC" 20001 20002 ;; 20003 20004 *) 20005 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 20006$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 20007 { (exit 1); exit 1; }; } 20008 ;; 20009 esac 20010 20011 # Append the new tag name to the list of available tags. 20012 if test -n "$tagname" ; then 20013 available_tags="$available_tags $tagname" 20014 fi 20015 fi 20016 done 20017 IFS="$lt_save_ifs" 20018 20019 # Now substitute the updated list of available tags. 20020 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 20021 mv "${ofile}T" "$ofile" 20022 chmod +x "$ofile" 20023 else 20024 rm -f "${ofile}T" 20025 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 20026$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 20027 { (exit 1); exit 1; }; } 20028 fi 20029fi 20030 20031 20032 20033# This can be used to rebuild libtool when needed 20034LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 20035 20036# Always use our own libtool. 20037LIBTOOL='$(SHELL) $(top_builddir)/libtool' 20038 20039# Prevent multiple expansion 20040 20041 20042 20043 20044 20045 20046 20047 20048 20049 20050 20051 20052 20053 20054 20055 20056 20057 20058 20059 20060ac_ext=c 20061ac_cpp='$CPP $CPPFLAGS' 20062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20064ac_compiler_gnu=$ac_cv_c_compiler_gnu 20065if test -n "$ac_tool_prefix"; then 20066 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 20067set dummy ${ac_tool_prefix}gcc; ac_word=$2 20068{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20069$as_echo_n "checking for $ac_word... " >&6; } 20070if test "${ac_cv_prog_CC+set}" = set; then 20071 $as_echo_n "(cached) " >&6 20072else 20073 if test -n "$CC"; then 20074 ac_cv_prog_CC="$CC" # Let the user override the test. 20075else 20076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20077for as_dir in $PATH 20078do 20079 IFS=$as_save_IFS 20080 test -z "$as_dir" && as_dir=. 20081 for ac_exec_ext in '' $ac_executable_extensions; do 20082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20083 ac_cv_prog_CC="${ac_tool_prefix}gcc" 20084 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20085 break 2 20086 fi 20087done 20088done 20089IFS=$as_save_IFS 20090 20091fi 20092fi 20093CC=$ac_cv_prog_CC 20094if test -n "$CC"; then 20095 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20096$as_echo "$CC" >&6; } 20097else 20098 { $as_echo "$as_me:$LINENO: result: no" >&5 20099$as_echo "no" >&6; } 20100fi 20101 20102 20103fi 20104if test -z "$ac_cv_prog_CC"; then 20105 ac_ct_CC=$CC 20106 # Extract the first word of "gcc", so it can be a program name with args. 20107set dummy gcc; ac_word=$2 20108{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20109$as_echo_n "checking for $ac_word... " >&6; } 20110if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 20111 $as_echo_n "(cached) " >&6 20112else 20113 if test -n "$ac_ct_CC"; then 20114 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20115else 20116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20117for as_dir in $PATH 20118do 20119 IFS=$as_save_IFS 20120 test -z "$as_dir" && as_dir=. 20121 for ac_exec_ext in '' $ac_executable_extensions; do 20122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20123 ac_cv_prog_ac_ct_CC="gcc" 20124 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20125 break 2 20126 fi 20127done 20128done 20129IFS=$as_save_IFS 20130 20131fi 20132fi 20133ac_ct_CC=$ac_cv_prog_ac_ct_CC 20134if test -n "$ac_ct_CC"; then 20135 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20136$as_echo "$ac_ct_CC" >&6; } 20137else 20138 { $as_echo "$as_me:$LINENO: result: no" >&5 20139$as_echo "no" >&6; } 20140fi 20141 20142 if test "x$ac_ct_CC" = x; then 20143 CC="" 20144 else 20145 case $cross_compiling:$ac_tool_warned in 20146yes:) 20147{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 20148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20149ac_tool_warned=yes ;; 20150esac 20151 CC=$ac_ct_CC 20152 fi 20153else 20154 CC="$ac_cv_prog_CC" 20155fi 20156 20157if test -z "$CC"; then 20158 if test -n "$ac_tool_prefix"; then 20159 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 20160set dummy ${ac_tool_prefix}cc; ac_word=$2 20161{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20162$as_echo_n "checking for $ac_word... " >&6; } 20163if test "${ac_cv_prog_CC+set}" = set; then 20164 $as_echo_n "(cached) " >&6 20165else 20166 if test -n "$CC"; then 20167 ac_cv_prog_CC="$CC" # Let the user override the test. 20168else 20169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20170for as_dir in $PATH 20171do 20172 IFS=$as_save_IFS 20173 test -z "$as_dir" && as_dir=. 20174 for ac_exec_ext in '' $ac_executable_extensions; do 20175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20176 ac_cv_prog_CC="${ac_tool_prefix}cc" 20177 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20178 break 2 20179 fi 20180done 20181done 20182IFS=$as_save_IFS 20183 20184fi 20185fi 20186CC=$ac_cv_prog_CC 20187if test -n "$CC"; then 20188 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20189$as_echo "$CC" >&6; } 20190else 20191 { $as_echo "$as_me:$LINENO: result: no" >&5 20192$as_echo "no" >&6; } 20193fi 20194 20195 20196 fi 20197fi 20198if test -z "$CC"; then 20199 # Extract the first word of "cc", so it can be a program name with args. 20200set dummy cc; ac_word=$2 20201{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20202$as_echo_n "checking for $ac_word... " >&6; } 20203if test "${ac_cv_prog_CC+set}" = set; then 20204 $as_echo_n "(cached) " >&6 20205else 20206 if test -n "$CC"; then 20207 ac_cv_prog_CC="$CC" # Let the user override the test. 20208else 20209 ac_prog_rejected=no 20210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20211for as_dir in $PATH 20212do 20213 IFS=$as_save_IFS 20214 test -z "$as_dir" && as_dir=. 20215 for ac_exec_ext in '' $ac_executable_extensions; do 20216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20217 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 20218 ac_prog_rejected=yes 20219 continue 20220 fi 20221 ac_cv_prog_CC="cc" 20222 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20223 break 2 20224 fi 20225done 20226done 20227IFS=$as_save_IFS 20228 20229if test $ac_prog_rejected = yes; then 20230 # We found a bogon in the path, so make sure we never use it. 20231 set dummy $ac_cv_prog_CC 20232 shift 20233 if test $# != 0; then 20234 # We chose a different compiler from the bogus one. 20235 # However, it has the same basename, so the bogon will be chosen 20236 # first if we set CC to just the basename; use the full file name. 20237 shift 20238 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 20239 fi 20240fi 20241fi 20242fi 20243CC=$ac_cv_prog_CC 20244if test -n "$CC"; then 20245 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20246$as_echo "$CC" >&6; } 20247else 20248 { $as_echo "$as_me:$LINENO: result: no" >&5 20249$as_echo "no" >&6; } 20250fi 20251 20252 20253fi 20254if test -z "$CC"; then 20255 if test -n "$ac_tool_prefix"; then 20256 for ac_prog in cl.exe 20257 do 20258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 20259set dummy $ac_tool_prefix$ac_prog; ac_word=$2 20260{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20261$as_echo_n "checking for $ac_word... " >&6; } 20262if test "${ac_cv_prog_CC+set}" = set; then 20263 $as_echo_n "(cached) " >&6 20264else 20265 if test -n "$CC"; then 20266 ac_cv_prog_CC="$CC" # Let the user override the test. 20267else 20268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20269for as_dir in $PATH 20270do 20271 IFS=$as_save_IFS 20272 test -z "$as_dir" && as_dir=. 20273 for ac_exec_ext in '' $ac_executable_extensions; do 20274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20275 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 20276 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20277 break 2 20278 fi 20279done 20280done 20281IFS=$as_save_IFS 20282 20283fi 20284fi 20285CC=$ac_cv_prog_CC 20286if test -n "$CC"; then 20287 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20288$as_echo "$CC" >&6; } 20289else 20290 { $as_echo "$as_me:$LINENO: result: no" >&5 20291$as_echo "no" >&6; } 20292fi 20293 20294 20295 test -n "$CC" && break 20296 done 20297fi 20298if test -z "$CC"; then 20299 ac_ct_CC=$CC 20300 for ac_prog in cl.exe 20301do 20302 # Extract the first word of "$ac_prog", so it can be a program name with args. 20303set dummy $ac_prog; ac_word=$2 20304{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20305$as_echo_n "checking for $ac_word... " >&6; } 20306if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 20307 $as_echo_n "(cached) " >&6 20308else 20309 if test -n "$ac_ct_CC"; then 20310 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20311else 20312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20313for as_dir in $PATH 20314do 20315 IFS=$as_save_IFS 20316 test -z "$as_dir" && as_dir=. 20317 for ac_exec_ext in '' $ac_executable_extensions; do 20318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20319 ac_cv_prog_ac_ct_CC="$ac_prog" 20320 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20321 break 2 20322 fi 20323done 20324done 20325IFS=$as_save_IFS 20326 20327fi 20328fi 20329ac_ct_CC=$ac_cv_prog_ac_ct_CC 20330if test -n "$ac_ct_CC"; then 20331 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20332$as_echo "$ac_ct_CC" >&6; } 20333else 20334 { $as_echo "$as_me:$LINENO: result: no" >&5 20335$as_echo "no" >&6; } 20336fi 20337 20338 20339 test -n "$ac_ct_CC" && break 20340done 20341 20342 if test "x$ac_ct_CC" = x; then 20343 CC="" 20344 else 20345 case $cross_compiling:$ac_tool_warned in 20346yes:) 20347{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 20348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20349ac_tool_warned=yes ;; 20350esac 20351 CC=$ac_ct_CC 20352 fi 20353fi 20354 20355fi 20356 20357 20358test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 20359$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20360{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 20361See \`config.log' for more details." >&5 20362$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 20363See \`config.log' for more details." >&2;} 20364 { (exit 1); exit 1; }; }; } 20365 20366# Provide some information about the compiler. 20367$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 20368set X $ac_compile 20369ac_compiler=$2 20370{ (ac_try="$ac_compiler --version >&5" 20371case "(($ac_try" in 20372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20373 *) ac_try_echo=$ac_try;; 20374esac 20375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20376$as_echo "$ac_try_echo") >&5 20377 (eval "$ac_compiler --version >&5") 2>&5 20378 ac_status=$? 20379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20380 (exit $ac_status); } 20381{ (ac_try="$ac_compiler -v >&5" 20382case "(($ac_try" in 20383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20384 *) ac_try_echo=$ac_try;; 20385esac 20386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20387$as_echo "$ac_try_echo") >&5 20388 (eval "$ac_compiler -v >&5") 2>&5 20389 ac_status=$? 20390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20391 (exit $ac_status); } 20392{ (ac_try="$ac_compiler -V >&5" 20393case "(($ac_try" in 20394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20395 *) ac_try_echo=$ac_try;; 20396esac 20397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20398$as_echo "$ac_try_echo") >&5 20399 (eval "$ac_compiler -V >&5") 2>&5 20400 ac_status=$? 20401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20402 (exit $ac_status); } 20403 20404{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 20405$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 20406if test "${ac_cv_c_compiler_gnu+set}" = set; then 20407 $as_echo_n "(cached) " >&6 20408else 20409 cat >conftest.$ac_ext <<_ACEOF 20410/* confdefs.h. */ 20411_ACEOF 20412cat confdefs.h >>conftest.$ac_ext 20413cat >>conftest.$ac_ext <<_ACEOF 20414/* end confdefs.h. */ 20415 20416int 20417main () 20418{ 20419#ifndef __GNUC__ 20420 choke me 20421#endif 20422 20423 ; 20424 return 0; 20425} 20426_ACEOF 20427rm -f conftest.$ac_objext 20428if { (ac_try="$ac_compile" 20429case "(($ac_try" in 20430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20431 *) ac_try_echo=$ac_try;; 20432esac 20433eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20434$as_echo "$ac_try_echo") >&5 20435 (eval "$ac_compile") 2>conftest.er1 20436 ac_status=$? 20437 grep -v '^ *+' conftest.er1 >conftest.err 20438 rm -f conftest.er1 20439 cat conftest.err >&5 20440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20441 (exit $ac_status); } && { 20442 test -z "$ac_c_werror_flag" || 20443 test ! -s conftest.err 20444 } && test -s conftest.$ac_objext; then 20445 ac_compiler_gnu=yes 20446else 20447 $as_echo "$as_me: failed program was:" >&5 20448sed 's/^/| /' conftest.$ac_ext >&5 20449 20450 ac_compiler_gnu=no 20451fi 20452 20453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20454ac_cv_c_compiler_gnu=$ac_compiler_gnu 20455 20456fi 20457{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 20458$as_echo "$ac_cv_c_compiler_gnu" >&6; } 20459if test $ac_compiler_gnu = yes; then 20460 GCC=yes 20461else 20462 GCC= 20463fi 20464ac_test_CFLAGS=${CFLAGS+set} 20465ac_save_CFLAGS=$CFLAGS 20466{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 20467$as_echo_n "checking whether $CC accepts -g... " >&6; } 20468if test "${ac_cv_prog_cc_g+set}" = set; then 20469 $as_echo_n "(cached) " >&6 20470else 20471 ac_save_c_werror_flag=$ac_c_werror_flag 20472 ac_c_werror_flag=yes 20473 ac_cv_prog_cc_g=no 20474 CFLAGS="-g" 20475 cat >conftest.$ac_ext <<_ACEOF 20476/* confdefs.h. */ 20477_ACEOF 20478cat confdefs.h >>conftest.$ac_ext 20479cat >>conftest.$ac_ext <<_ACEOF 20480/* end confdefs.h. */ 20481 20482int 20483main () 20484{ 20485 20486 ; 20487 return 0; 20488} 20489_ACEOF 20490rm -f conftest.$ac_objext 20491if { (ac_try="$ac_compile" 20492case "(($ac_try" in 20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20494 *) ac_try_echo=$ac_try;; 20495esac 20496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20497$as_echo "$ac_try_echo") >&5 20498 (eval "$ac_compile") 2>conftest.er1 20499 ac_status=$? 20500 grep -v '^ *+' conftest.er1 >conftest.err 20501 rm -f conftest.er1 20502 cat conftest.err >&5 20503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20504 (exit $ac_status); } && { 20505 test -z "$ac_c_werror_flag" || 20506 test ! -s conftest.err 20507 } && test -s conftest.$ac_objext; then 20508 ac_cv_prog_cc_g=yes 20509else 20510 $as_echo "$as_me: failed program was:" >&5 20511sed 's/^/| /' conftest.$ac_ext >&5 20512 20513 CFLAGS="" 20514 cat >conftest.$ac_ext <<_ACEOF 20515/* confdefs.h. */ 20516_ACEOF 20517cat confdefs.h >>conftest.$ac_ext 20518cat >>conftest.$ac_ext <<_ACEOF 20519/* end confdefs.h. */ 20520 20521int 20522main () 20523{ 20524 20525 ; 20526 return 0; 20527} 20528_ACEOF 20529rm -f conftest.$ac_objext 20530if { (ac_try="$ac_compile" 20531case "(($ac_try" in 20532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20533 *) ac_try_echo=$ac_try;; 20534esac 20535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20536$as_echo "$ac_try_echo") >&5 20537 (eval "$ac_compile") 2>conftest.er1 20538 ac_status=$? 20539 grep -v '^ *+' conftest.er1 >conftest.err 20540 rm -f conftest.er1 20541 cat conftest.err >&5 20542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20543 (exit $ac_status); } && { 20544 test -z "$ac_c_werror_flag" || 20545 test ! -s conftest.err 20546 } && test -s conftest.$ac_objext; then 20547 : 20548else 20549 $as_echo "$as_me: failed program was:" >&5 20550sed 's/^/| /' conftest.$ac_ext >&5 20551 20552 ac_c_werror_flag=$ac_save_c_werror_flag 20553 CFLAGS="-g" 20554 cat >conftest.$ac_ext <<_ACEOF 20555/* confdefs.h. */ 20556_ACEOF 20557cat confdefs.h >>conftest.$ac_ext 20558cat >>conftest.$ac_ext <<_ACEOF 20559/* end confdefs.h. */ 20560 20561int 20562main () 20563{ 20564 20565 ; 20566 return 0; 20567} 20568_ACEOF 20569rm -f conftest.$ac_objext 20570if { (ac_try="$ac_compile" 20571case "(($ac_try" in 20572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20573 *) ac_try_echo=$ac_try;; 20574esac 20575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20576$as_echo "$ac_try_echo") >&5 20577 (eval "$ac_compile") 2>conftest.er1 20578 ac_status=$? 20579 grep -v '^ *+' conftest.er1 >conftest.err 20580 rm -f conftest.er1 20581 cat conftest.err >&5 20582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20583 (exit $ac_status); } && { 20584 test -z "$ac_c_werror_flag" || 20585 test ! -s conftest.err 20586 } && test -s conftest.$ac_objext; then 20587 ac_cv_prog_cc_g=yes 20588else 20589 $as_echo "$as_me: failed program was:" >&5 20590sed 's/^/| /' conftest.$ac_ext >&5 20591 20592 20593fi 20594 20595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20596fi 20597 20598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20599fi 20600 20601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20602 ac_c_werror_flag=$ac_save_c_werror_flag 20603fi 20604{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 20605$as_echo "$ac_cv_prog_cc_g" >&6; } 20606if test "$ac_test_CFLAGS" = set; then 20607 CFLAGS=$ac_save_CFLAGS 20608elif test $ac_cv_prog_cc_g = yes; then 20609 if test "$GCC" = yes; then 20610 CFLAGS="-g -O2" 20611 else 20612 CFLAGS="-g" 20613 fi 20614else 20615 if test "$GCC" = yes; then 20616 CFLAGS="-O2" 20617 else 20618 CFLAGS= 20619 fi 20620fi 20621{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 20622$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 20623if test "${ac_cv_prog_cc_c89+set}" = set; then 20624 $as_echo_n "(cached) " >&6 20625else 20626 ac_cv_prog_cc_c89=no 20627ac_save_CC=$CC 20628cat >conftest.$ac_ext <<_ACEOF 20629/* confdefs.h. */ 20630_ACEOF 20631cat confdefs.h >>conftest.$ac_ext 20632cat >>conftest.$ac_ext <<_ACEOF 20633/* end confdefs.h. */ 20634#include <stdarg.h> 20635#include <stdio.h> 20636#include <sys/types.h> 20637#include <sys/stat.h> 20638/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 20639struct buf { int x; }; 20640FILE * (*rcsopen) (struct buf *, struct stat *, int); 20641static char *e (p, i) 20642 char **p; 20643 int i; 20644{ 20645 return p[i]; 20646} 20647static char *f (char * (*g) (char **, int), char **p, ...) 20648{ 20649 char *s; 20650 va_list v; 20651 va_start (v,p); 20652 s = g (p, va_arg (v,int)); 20653 va_end (v); 20654 return s; 20655} 20656 20657/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20658 function prototypes and stuff, but not '\xHH' hex character constants. 20659 These don't provoke an error unfortunately, instead are silently treated 20660 as 'x'. The following induces an error, until -std is added to get 20661 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 20662 array size at least. It's necessary to write '\x00'==0 to get something 20663 that's true only with -std. */ 20664int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 20665 20666/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20667 inside strings and character constants. */ 20668#define FOO(x) 'x' 20669int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 20670 20671int test (int i, double x); 20672struct s1 {int (*f) (int a);}; 20673struct s2 {int (*f) (double a);}; 20674int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 20675int argc; 20676char **argv; 20677int 20678main () 20679{ 20680return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 20681 ; 20682 return 0; 20683} 20684_ACEOF 20685for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 20686 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 20687do 20688 CC="$ac_save_CC $ac_arg" 20689 rm -f conftest.$ac_objext 20690if { (ac_try="$ac_compile" 20691case "(($ac_try" in 20692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20693 *) ac_try_echo=$ac_try;; 20694esac 20695eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20696$as_echo "$ac_try_echo") >&5 20697 (eval "$ac_compile") 2>conftest.er1 20698 ac_status=$? 20699 grep -v '^ *+' conftest.er1 >conftest.err 20700 rm -f conftest.er1 20701 cat conftest.err >&5 20702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20703 (exit $ac_status); } && { 20704 test -z "$ac_c_werror_flag" || 20705 test ! -s conftest.err 20706 } && test -s conftest.$ac_objext; then 20707 ac_cv_prog_cc_c89=$ac_arg 20708else 20709 $as_echo "$as_me: failed program was:" >&5 20710sed 's/^/| /' conftest.$ac_ext >&5 20711 20712 20713fi 20714 20715rm -f core conftest.err conftest.$ac_objext 20716 test "x$ac_cv_prog_cc_c89" != "xno" && break 20717done 20718rm -f conftest.$ac_ext 20719CC=$ac_save_CC 20720 20721fi 20722# AC_CACHE_VAL 20723case "x$ac_cv_prog_cc_c89" in 20724 x) 20725 { $as_echo "$as_me:$LINENO: result: none needed" >&5 20726$as_echo "none needed" >&6; } ;; 20727 xno) 20728 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 20729$as_echo "unsupported" >&6; } ;; 20730 *) 20731 CC="$CC $ac_cv_prog_cc_c89" 20732 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 20733$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 20734esac 20735 20736 20737ac_ext=c 20738ac_cpp='$CPP $CPPFLAGS' 20739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20741ac_compiler_gnu=$ac_cv_c_compiler_gnu 20742 20743depcc="$CC" am_compiler_list= 20744 20745{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 20746$as_echo_n "checking dependency style of $depcc... " >&6; } 20747if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 20748 $as_echo_n "(cached) " >&6 20749else 20750 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 20751 # We make a subdir and do the tests there. Otherwise we can end up 20752 # making bogus files that we don't know about and never remove. For 20753 # instance it was reported that on HP-UX the gcc test will end up 20754 # making a dummy file named `D' -- because `-MD' means `put the output 20755 # in D'. 20756 mkdir conftest.dir 20757 # Copy depcomp to subdir because otherwise we won't find it if we're 20758 # using a relative directory. 20759 cp "$am_depcomp" conftest.dir 20760 cd conftest.dir 20761 # We will build objects and dependencies in a subdirectory because 20762 # it helps to detect inapplicable dependency modes. For instance 20763 # both Tru64's cc and ICC support -MD to output dependencies as a 20764 # side effect of compilation, but ICC will put the dependencies in 20765 # the current directory while Tru64 will put them in the object 20766 # directory. 20767 mkdir sub 20768 20769 am_cv_CC_dependencies_compiler_type=none 20770 if test "$am_compiler_list" = ""; then 20771 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 20772 fi 20773 am__universal=false 20774 case " $depcc " in #( 20775 *\ -arch\ *\ -arch\ *) am__universal=true ;; 20776 esac 20777 20778 for depmode in $am_compiler_list; do 20779 # Setup a source with many dependencies, because some compilers 20780 # like to wrap large dependency lists on column 80 (with \), and 20781 # we should not choose a depcomp mode which is confused by this. 20782 # 20783 # We need to recreate these files for each test, as the compiler may 20784 # overwrite some of them when testing with obscure command lines. 20785 # This happens at least with the AIX C compiler. 20786 : > sub/conftest.c 20787 for i in 1 2 3 4 5 6; do 20788 echo '#include "conftst'$i'.h"' >> sub/conftest.c 20789 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 20790 # Solaris 8's {/usr,}/bin/sh. 20791 touch sub/conftst$i.h 20792 done 20793 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 20794 20795 # We check with `-c' and `-o' for the sake of the "dashmstdout" 20796 # mode. It turns out that the SunPro C++ compiler does not properly 20797 # handle `-M -o', and we need to detect this. Also, some Intel 20798 # versions had trouble with output in subdirs 20799 am__obj=sub/conftest.${OBJEXT-o} 20800 am__minus_obj="-o $am__obj" 20801 case $depmode in 20802 gcc) 20803 # This depmode causes a compiler race in universal mode. 20804 test "$am__universal" = false || continue 20805 ;; 20806 nosideeffect) 20807 # after this tag, mechanisms are not by side-effect, so they'll 20808 # only be used when explicitly requested 20809 if test "x$enable_dependency_tracking" = xyes; then 20810 continue 20811 else 20812 break 20813 fi 20814 ;; 20815 msvisualcpp | msvcmsys) 20816 # This compiler won't grok `-c -o', but also, the minuso test has 20817 # not run yet. These depmodes are late enough in the game, and 20818 # so weak that their functioning should not be impacted. 20819 am__obj=conftest.${OBJEXT-o} 20820 am__minus_obj= 20821 ;; 20822 none) break ;; 20823 esac 20824 if depmode=$depmode \ 20825 source=sub/conftest.c object=$am__obj \ 20826 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 20827 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 20828 >/dev/null 2>conftest.err && 20829 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 20830 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 20831 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 20832 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 20833 # icc doesn't choke on unknown options, it will just issue warnings 20834 # or remarks (even with -Werror). So we grep stderr for any message 20835 # that says an option was ignored or not supported. 20836 # When given -MP, icc 7.0 and 7.1 complain thusly: 20837 # icc: Command line warning: ignoring option '-M'; no argument required 20838 # The diagnosis changed in icc 8.0: 20839 # icc: Command line remark: option '-MP' not supported 20840 if (grep 'ignoring option' conftest.err || 20841 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 20842 am_cv_CC_dependencies_compiler_type=$depmode 20843 break 20844 fi 20845 fi 20846 done 20847 20848 cd .. 20849 rm -rf conftest.dir 20850else 20851 am_cv_CC_dependencies_compiler_type=none 20852fi 20853 20854fi 20855{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 20856$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 20857CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 20858 20859 if 20860 test "x$enable_dependency_tracking" != xno \ 20861 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 20862 am__fastdepCC_TRUE= 20863 am__fastdepCC_FALSE='#' 20864else 20865 am__fastdepCC_TRUE='#' 20866 am__fastdepCC_FALSE= 20867fi 20868 20869 20870 20871 20872 20873 20874 20875# Check whether --with-xorg-module-dir was given. 20876if test "${with_xorg_module_dir+set}" = set; then 20877 withval=$with_xorg_module_dir; moduledir="$withval" 20878else 20879 moduledir="$libdir/xorg/modules" 20880fi 20881 20882 20883# Check whether --enable-dri was given. 20884if test "${enable_dri+set}" = set; then 20885 enableval=$enable_dri; DRI="$enableval" 20886else 20887 DRI=auto 20888fi 20889 20890 20891# Checks for extensions 20892 20893 SAVE_CFLAGS="$CFLAGS" 20894 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20895 cat >conftest.$ac_ext <<_ACEOF 20896/* confdefs.h. */ 20897_ACEOF 20898cat confdefs.h >>conftest.$ac_ext 20899cat >>conftest.$ac_ext <<_ACEOF 20900/* end confdefs.h. */ 20901 20902#include "xorg-server.h" 20903#if !defined RANDR 20904#error RANDR not defined 20905#endif 20906 20907int 20908main () 20909{ 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 _EXT_CHECK=yes 20934else 20935 $as_echo "$as_me: failed program was:" >&5 20936sed 's/^/| /' conftest.$ac_ext >&5 20937 20938 _EXT_CHECK=no 20939fi 20940 20941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20942 CFLAGS="$SAVE_CFLAGS" 20943 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5 20944$as_echo_n "checking if RANDR is defined... " >&6; } 20945 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20946$as_echo "$_EXT_CHECK" >&6; } 20947 if test "$_EXT_CHECK" != no; then 20948 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 20949 fi 20950 20951 20952 SAVE_CFLAGS="$CFLAGS" 20953 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20954 cat >conftest.$ac_ext <<_ACEOF 20955/* confdefs.h. */ 20956_ACEOF 20957cat confdefs.h >>conftest.$ac_ext 20958cat >>conftest.$ac_ext <<_ACEOF 20959/* end confdefs.h. */ 20960 20961#include "xorg-server.h" 20962#if !defined RENDER 20963#error RENDER not defined 20964#endif 20965 20966int 20967main () 20968{ 20969 20970 ; 20971 return 0; 20972} 20973_ACEOF 20974rm -f conftest.$ac_objext 20975if { (ac_try="$ac_compile" 20976case "(($ac_try" in 20977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20978 *) ac_try_echo=$ac_try;; 20979esac 20980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20981$as_echo "$ac_try_echo") >&5 20982 (eval "$ac_compile") 2>conftest.er1 20983 ac_status=$? 20984 grep -v '^ *+' conftest.er1 >conftest.err 20985 rm -f conftest.er1 20986 cat conftest.err >&5 20987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20988 (exit $ac_status); } && { 20989 test -z "$ac_c_werror_flag" || 20990 test ! -s conftest.err 20991 } && test -s conftest.$ac_objext; then 20992 _EXT_CHECK=yes 20993else 20994 $as_echo "$as_me: failed program was:" >&5 20995sed 's/^/| /' conftest.$ac_ext >&5 20996 20997 _EXT_CHECK=no 20998fi 20999 21000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21001 CFLAGS="$SAVE_CFLAGS" 21002 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5 21003$as_echo_n "checking if RENDER is defined... " >&6; } 21004 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 21005$as_echo "$_EXT_CHECK" >&6; } 21006 if test "$_EXT_CHECK" != no; then 21007 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 21008 fi 21009 21010 21011 SAVE_CFLAGS="$CFLAGS" 21012 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 21013 cat >conftest.$ac_ext <<_ACEOF 21014/* confdefs.h. */ 21015_ACEOF 21016cat confdefs.h >>conftest.$ac_ext 21017cat >>conftest.$ac_ext <<_ACEOF 21018/* end confdefs.h. */ 21019 21020#include "xorg-server.h" 21021#if !defined XV 21022#error XV not defined 21023#endif 21024 21025int 21026main () 21027{ 21028 21029 ; 21030 return 0; 21031} 21032_ACEOF 21033rm -f conftest.$ac_objext 21034if { (ac_try="$ac_compile" 21035case "(($ac_try" in 21036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21037 *) ac_try_echo=$ac_try;; 21038esac 21039eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21040$as_echo "$ac_try_echo") >&5 21041 (eval "$ac_compile") 2>conftest.er1 21042 ac_status=$? 21043 grep -v '^ *+' conftest.er1 >conftest.err 21044 rm -f conftest.er1 21045 cat conftest.err >&5 21046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21047 (exit $ac_status); } && { 21048 test -z "$ac_c_werror_flag" || 21049 test ! -s conftest.err 21050 } && test -s conftest.$ac_objext; then 21051 _EXT_CHECK=yes 21052else 21053 $as_echo "$as_me: failed program was:" >&5 21054sed 's/^/| /' conftest.$ac_ext >&5 21055 21056 _EXT_CHECK=no 21057fi 21058 21059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21060 CFLAGS="$SAVE_CFLAGS" 21061 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5 21062$as_echo_n "checking if XV is defined... " >&6; } 21063 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 21064$as_echo "$_EXT_CHECK" >&6; } 21065 if test "$_EXT_CHECK" != no; then 21066 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 21067 fi 21068 21069 21070 SAVE_CFLAGS="$CFLAGS" 21071 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 21072 cat >conftest.$ac_ext <<_ACEOF 21073/* confdefs.h. */ 21074_ACEOF 21075cat confdefs.h >>conftest.$ac_ext 21076cat >>conftest.$ac_ext <<_ACEOF 21077/* end confdefs.h. */ 21078 21079#include "xorg-server.h" 21080#if !defined DPMSExtension 21081#error DPMSExtension not defined 21082#endif 21083 21084int 21085main () 21086{ 21087 21088 ; 21089 return 0; 21090} 21091_ACEOF 21092rm -f conftest.$ac_objext 21093if { (ac_try="$ac_compile" 21094case "(($ac_try" in 21095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21096 *) ac_try_echo=$ac_try;; 21097esac 21098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21099$as_echo "$ac_try_echo") >&5 21100 (eval "$ac_compile") 2>conftest.er1 21101 ac_status=$? 21102 grep -v '^ *+' conftest.er1 >conftest.err 21103 rm -f conftest.er1 21104 cat conftest.err >&5 21105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21106 (exit $ac_status); } && { 21107 test -z "$ac_c_werror_flag" || 21108 test ! -s conftest.err 21109 } && test -s conftest.$ac_objext; then 21110 _EXT_CHECK=yes 21111else 21112 $as_echo "$as_me: failed program was:" >&5 21113sed 's/^/| /' conftest.$ac_ext >&5 21114 21115 _EXT_CHECK=no 21116fi 21117 21118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21119 CFLAGS="$SAVE_CFLAGS" 21120 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5 21121$as_echo_n "checking if DPMSExtension is defined... " >&6; } 21122 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 21123$as_echo "$_EXT_CHECK" >&6; } 21124 if test "$_EXT_CHECK" != no; then 21125 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 21126 fi 21127 21128 21129 SAVE_CFLAGS="$CFLAGS" 21130 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 21131 cat >conftest.$ac_ext <<_ACEOF 21132/* confdefs.h. */ 21133_ACEOF 21134cat confdefs.h >>conftest.$ac_ext 21135cat >>conftest.$ac_ext <<_ACEOF 21136/* end confdefs.h. */ 21137 21138#include "xorg-server.h" 21139#if !defined XFreeXDGA 21140#error XFreeXDGA not defined 21141#endif 21142 21143int 21144main () 21145{ 21146 21147 ; 21148 return 0; 21149} 21150_ACEOF 21151rm -f conftest.$ac_objext 21152if { (ac_try="$ac_compile" 21153case "(($ac_try" in 21154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21155 *) ac_try_echo=$ac_try;; 21156esac 21157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21158$as_echo "$ac_try_echo") >&5 21159 (eval "$ac_compile") 2>conftest.er1 21160 ac_status=$? 21161 grep -v '^ *+' conftest.er1 >conftest.err 21162 rm -f conftest.er1 21163 cat conftest.err >&5 21164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21165 (exit $ac_status); } && { 21166 test -z "$ac_c_werror_flag" || 21167 test ! -s conftest.err 21168 } && test -s conftest.$ac_objext; then 21169 _EXT_CHECK=yes 21170else 21171 $as_echo "$as_me: failed program was:" >&5 21172sed 's/^/| /' conftest.$ac_ext >&5 21173 21174 _EXT_CHECK=no 21175fi 21176 21177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21178 CFLAGS="$SAVE_CFLAGS" 21179 { $as_echo "$as_me:$LINENO: checking if XFreeXDGA is defined" >&5 21180$as_echo_n "checking if XFreeXDGA is defined... " >&6; } 21181 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 21182$as_echo "$_EXT_CHECK" >&6; } 21183 if test "$_EXT_CHECK" != no; then 21184 REQUIRED_MODULES="$REQUIRED_MODULES xf86dgaproto" 21185 fi 21186 21187 21188# Checks for pkg-config packages 21189 21190 21191if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 21192 if test -n "$ac_tool_prefix"; then 21193 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 21194set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 21195{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 21196$as_echo_n "checking for $ac_word... " >&6; } 21197if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 21198 $as_echo_n "(cached) " >&6 21199else 21200 case $PKG_CONFIG in 21201 [\\/]* | ?:[\\/]*) 21202 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21203 ;; 21204 *) 21205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21206for as_dir in $PATH 21207do 21208 IFS=$as_save_IFS 21209 test -z "$as_dir" && as_dir=. 21210 for ac_exec_ext in '' $ac_executable_extensions; do 21211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21212 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21214 break 2 21215 fi 21216done 21217done 21218IFS=$as_save_IFS 21219 21220 ;; 21221esac 21222fi 21223PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21224if test -n "$PKG_CONFIG"; then 21225 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 21226$as_echo "$PKG_CONFIG" >&6; } 21227else 21228 { $as_echo "$as_me:$LINENO: result: no" >&5 21229$as_echo "no" >&6; } 21230fi 21231 21232 21233fi 21234if test -z "$ac_cv_path_PKG_CONFIG"; then 21235 ac_pt_PKG_CONFIG=$PKG_CONFIG 21236 # Extract the first word of "pkg-config", so it can be a program name with args. 21237set dummy pkg-config; ac_word=$2 21238{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 21239$as_echo_n "checking for $ac_word... " >&6; } 21240if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 21241 $as_echo_n "(cached) " >&6 21242else 21243 case $ac_pt_PKG_CONFIG in 21244 [\\/]* | ?:[\\/]*) 21245 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 21246 ;; 21247 *) 21248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21249for as_dir in $PATH 21250do 21251 IFS=$as_save_IFS 21252 test -z "$as_dir" && as_dir=. 21253 for ac_exec_ext in '' $ac_executable_extensions; do 21254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21255 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21256 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21257 break 2 21258 fi 21259done 21260done 21261IFS=$as_save_IFS 21262 21263 ;; 21264esac 21265fi 21266ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 21267if test -n "$ac_pt_PKG_CONFIG"; then 21268 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 21269$as_echo "$ac_pt_PKG_CONFIG" >&6; } 21270else 21271 { $as_echo "$as_me:$LINENO: result: no" >&5 21272$as_echo "no" >&6; } 21273fi 21274 21275 if test "x$ac_pt_PKG_CONFIG" = x; then 21276 PKG_CONFIG="" 21277 else 21278 case $cross_compiling:$ac_tool_warned in 21279yes:) 21280{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 21281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21282ac_tool_warned=yes ;; 21283esac 21284 PKG_CONFIG=$ac_pt_PKG_CONFIG 21285 fi 21286else 21287 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 21288fi 21289 21290fi 21291if test -n "$PKG_CONFIG"; then 21292 _pkg_min_version=0.9.0 21293 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 21294$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 21295 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 21296 { $as_echo "$as_me:$LINENO: result: yes" >&5 21297$as_echo "yes" >&6; } 21298 else 21299 { $as_echo "$as_me:$LINENO: result: no" >&5 21300$as_echo "no" >&6; } 21301 PKG_CONFIG="" 21302 fi 21303 21304fi 21305 21306pkg_failed=no 21307{ $as_echo "$as_me:$LINENO: checking for XORG" >&5 21308$as_echo_n "checking for XORG... " >&6; } 21309 21310if test -n "$XORG_CFLAGS"; then 21311 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 21312 elif test -n "$PKG_CONFIG"; then 21313 if test -n "$PKG_CONFIG" && \ 21314 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 21315 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 21316 ac_status=$? 21317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21318 (exit $ac_status); }; then 21319 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 21320else 21321 pkg_failed=yes 21322fi 21323 else 21324 pkg_failed=untried 21325fi 21326if test -n "$XORG_LIBS"; then 21327 pkg_cv_XORG_LIBS="$XORG_LIBS" 21328 elif test -n "$PKG_CONFIG"; then 21329 if test -n "$PKG_CONFIG" && \ 21330 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 21331 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 21332 ac_status=$? 21333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21334 (exit $ac_status); }; then 21335 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 21336else 21337 pkg_failed=yes 21338fi 21339 else 21340 pkg_failed=untried 21341fi 21342 21343 21344 21345if test $pkg_failed = yes; then 21346 21347if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21348 _pkg_short_errors_supported=yes 21349else 21350 _pkg_short_errors_supported=no 21351fi 21352 if test $_pkg_short_errors_supported = yes; then 21353 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 21354 else 21355 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 21356 fi 21357 # Put the nasty error message in config.log where it belongs 21358 echo "$XORG_PKG_ERRORS" >&5 21359 21360 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 21361 21362$XORG_PKG_ERRORS 21363 21364Consider adjusting the PKG_CONFIG_PATH environment variable if you 21365installed software in a non-standard prefix. 21366 21367Alternatively, you may set the environment variables XORG_CFLAGS 21368and XORG_LIBS to avoid the need to call pkg-config. 21369See the pkg-config man page for more details. 21370" >&5 21371$as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 21372 21373$XORG_PKG_ERRORS 21374 21375Consider adjusting the PKG_CONFIG_PATH environment variable if you 21376installed software in a non-standard prefix. 21377 21378Alternatively, you may set the environment variables XORG_CFLAGS 21379and XORG_LIBS to avoid the need to call pkg-config. 21380See the pkg-config man page for more details. 21381" >&2;} 21382 { (exit 1); exit 1; }; } 21383elif test $pkg_failed = untried; then 21384 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 21385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21386{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 21387is in your PATH or set the PKG_CONFIG environment variable to the full 21388path to pkg-config. 21389 21390Alternatively, you may set the environment variables XORG_CFLAGS 21391and XORG_LIBS to avoid the need to call pkg-config. 21392See the pkg-config man page for more details. 21393 21394To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21395See \`config.log' for more details." >&5 21396$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 21397is in your PATH or set the PKG_CONFIG environment variable to the full 21398path to pkg-config. 21399 21400Alternatively, you may set the environment variables XORG_CFLAGS 21401and XORG_LIBS to avoid the need to call pkg-config. 21402See the pkg-config man page for more details. 21403 21404To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21405See \`config.log' for more details." >&2;} 21406 { (exit 1); exit 1; }; }; } 21407else 21408 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 21409 XORG_LIBS=$pkg_cv_XORG_LIBS 21410 { $as_echo "$as_me:$LINENO: result: yes" >&5 21411$as_echo "yes" >&6; } 21412 : 21413fi 21414 21415pkg_failed=no 21416{ $as_echo "$as_me:$LINENO: checking for XEXT" >&5 21417$as_echo_n "checking for XEXT... " >&6; } 21418 21419if test -n "$XEXT_CFLAGS"; then 21420 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 21421 elif test -n "$PKG_CONFIG"; then 21422 if test -n "$PKG_CONFIG" && \ 21423 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5 21424 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 21425 ac_status=$? 21426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21427 (exit $ac_status); }; then 21428 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 21429else 21430 pkg_failed=yes 21431fi 21432 else 21433 pkg_failed=untried 21434fi 21435if test -n "$XEXT_LIBS"; then 21436 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 21437 elif test -n "$PKG_CONFIG"; then 21438 if test -n "$PKG_CONFIG" && \ 21439 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5 21440 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 21441 ac_status=$? 21442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21443 (exit $ac_status); }; then 21444 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 21445else 21446 pkg_failed=yes 21447fi 21448 else 21449 pkg_failed=untried 21450fi 21451 21452 21453 21454if test $pkg_failed = yes; then 21455 21456if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21457 _pkg_short_errors_supported=yes 21458else 21459 _pkg_short_errors_supported=no 21460fi 21461 if test $_pkg_short_errors_supported = yes; then 21462 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1` 21463 else 21464 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1` 21465 fi 21466 # Put the nasty error message in config.log where it belongs 21467 echo "$XEXT_PKG_ERRORS" >&5 21468 21469 { $as_echo "$as_me:$LINENO: result: no" >&5 21470$as_echo "no" >&6; } 21471 HAVE_XEXTPROTO_71="no" 21472elif test $pkg_failed = untried; then 21473 HAVE_XEXTPROTO_71="no" 21474else 21475 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 21476 XEXT_LIBS=$pkg_cv_XEXT_LIBS 21477 { $as_echo "$as_me:$LINENO: result: yes" >&5 21478$as_echo "yes" >&6; } 21479 HAVE_XEXTPROTO_71="yes"; 21480cat >>confdefs.h <<\_ACEOF 21481#define HAVE_XEXTPROTO_71 1 21482_ACEOF 21483 21484fi 21485 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 21486 HAVE_XEXTPROTO_71_TRUE= 21487 HAVE_XEXTPROTO_71_FALSE='#' 21488else 21489 HAVE_XEXTPROTO_71_TRUE='#' 21490 HAVE_XEXTPROTO_71_FALSE= 21491fi 21492 21493sdkdir=$(pkg-config --variable=sdkdir xorg-server) 21494 21495# Checks for libraries. 21496SAVE_CPPFLAGS="$CPPFLAGS" 21497CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 21498{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5 21499$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; } 21500if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then 21501 $as_echo_n "(cached) " >&6 21502else 21503 cat >conftest.$ac_ext <<_ACEOF 21504/* confdefs.h. */ 21505_ACEOF 21506cat confdefs.h >>conftest.$ac_ext 21507cat >>conftest.$ac_ext <<_ACEOF 21508/* end confdefs.h. */ 21509#include "xorg-server.h" 21510 21511int 21512main () 21513{ 21514#ifndef XSERVER_LIBPCIACCESS 21515 (void) XSERVER_LIBPCIACCESS; 21516#endif 21517 21518 ; 21519 return 0; 21520} 21521_ACEOF 21522rm -f conftest.$ac_objext 21523if { (ac_try="$ac_compile" 21524case "(($ac_try" in 21525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21526 *) ac_try_echo=$ac_try;; 21527esac 21528eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21529$as_echo "$ac_try_echo") >&5 21530 (eval "$ac_compile") 2>conftest.er1 21531 ac_status=$? 21532 grep -v '^ *+' conftest.er1 >conftest.err 21533 rm -f conftest.er1 21534 cat conftest.err >&5 21535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21536 (exit $ac_status); } && { 21537 test -z "$ac_c_werror_flag" || 21538 test ! -s conftest.err 21539 } && test -s conftest.$ac_objext; then 21540 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes 21541else 21542 $as_echo "$as_me: failed program was:" >&5 21543sed 's/^/| /' conftest.$ac_ext >&5 21544 21545 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no 21546fi 21547 21548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21549fi 21550{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5 21551$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; } 21552if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then 21553 XSERVER_LIBPCIACCESS=yes 21554else 21555 XSERVER_LIBPCIACCESS=no 21556fi 21557 21558if test "${ac_cv_header_cfb8_32_h+set}" = set; then 21559 { $as_echo "$as_me:$LINENO: checking for cfb8_32.h" >&5 21560$as_echo_n "checking for cfb8_32.h... " >&6; } 21561if test "${ac_cv_header_cfb8_32_h+set}" = set; then 21562 $as_echo_n "(cached) " >&6 21563fi 21564{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_cfb8_32_h" >&5 21565$as_echo "$ac_cv_header_cfb8_32_h" >&6; } 21566else 21567 # Is the header compilable? 21568{ $as_echo "$as_me:$LINENO: checking cfb8_32.h usability" >&5 21569$as_echo_n "checking cfb8_32.h usability... " >&6; } 21570cat >conftest.$ac_ext <<_ACEOF 21571/* confdefs.h. */ 21572_ACEOF 21573cat confdefs.h >>conftest.$ac_ext 21574cat >>conftest.$ac_ext <<_ACEOF 21575/* end confdefs.h. */ 21576$ac_includes_default 21577#include <cfb8_32.h> 21578_ACEOF 21579rm -f conftest.$ac_objext 21580if { (ac_try="$ac_compile" 21581case "(($ac_try" in 21582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21583 *) ac_try_echo=$ac_try;; 21584esac 21585eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21586$as_echo "$ac_try_echo") >&5 21587 (eval "$ac_compile") 2>conftest.er1 21588 ac_status=$? 21589 grep -v '^ *+' conftest.er1 >conftest.err 21590 rm -f conftest.er1 21591 cat conftest.err >&5 21592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21593 (exit $ac_status); } && { 21594 test -z "$ac_c_werror_flag" || 21595 test ! -s conftest.err 21596 } && test -s conftest.$ac_objext; then 21597 ac_header_compiler=yes 21598else 21599 $as_echo "$as_me: failed program was:" >&5 21600sed 's/^/| /' conftest.$ac_ext >&5 21601 21602 ac_header_compiler=no 21603fi 21604 21605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21606{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21607$as_echo "$ac_header_compiler" >&6; } 21608 21609# Is the header present? 21610{ $as_echo "$as_me:$LINENO: checking cfb8_32.h presence" >&5 21611$as_echo_n "checking cfb8_32.h presence... " >&6; } 21612cat >conftest.$ac_ext <<_ACEOF 21613/* confdefs.h. */ 21614_ACEOF 21615cat confdefs.h >>conftest.$ac_ext 21616cat >>conftest.$ac_ext <<_ACEOF 21617/* end confdefs.h. */ 21618#include <cfb8_32.h> 21619_ACEOF 21620if { (ac_try="$ac_cpp conftest.$ac_ext" 21621case "(($ac_try" in 21622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21623 *) ac_try_echo=$ac_try;; 21624esac 21625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21626$as_echo "$ac_try_echo") >&5 21627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21628 ac_status=$? 21629 grep -v '^ *+' conftest.er1 >conftest.err 21630 rm -f conftest.er1 21631 cat conftest.err >&5 21632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21633 (exit $ac_status); } >/dev/null && { 21634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21635 test ! -s conftest.err 21636 }; then 21637 ac_header_preproc=yes 21638else 21639 $as_echo "$as_me: failed program was:" >&5 21640sed 's/^/| /' conftest.$ac_ext >&5 21641 21642 ac_header_preproc=no 21643fi 21644 21645rm -f conftest.err conftest.$ac_ext 21646{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21647$as_echo "$ac_header_preproc" >&6; } 21648 21649# So? What about this header? 21650case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21651 yes:no: ) 21652 { $as_echo "$as_me:$LINENO: WARNING: cfb8_32.h: accepted by the compiler, rejected by the preprocessor!" >&5 21653$as_echo "$as_me: WARNING: cfb8_32.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21654 { $as_echo "$as_me:$LINENO: WARNING: cfb8_32.h: proceeding with the compiler's result" >&5 21655$as_echo "$as_me: WARNING: cfb8_32.h: proceeding with the compiler's result" >&2;} 21656 ac_header_preproc=yes 21657 ;; 21658 no:yes:* ) 21659 { $as_echo "$as_me:$LINENO: WARNING: cfb8_32.h: present but cannot be compiled" >&5 21660$as_echo "$as_me: WARNING: cfb8_32.h: present but cannot be compiled" >&2;} 21661 { $as_echo "$as_me:$LINENO: WARNING: cfb8_32.h: check for missing prerequisite headers?" >&5 21662$as_echo "$as_me: WARNING: cfb8_32.h: check for missing prerequisite headers?" >&2;} 21663 { $as_echo "$as_me:$LINENO: WARNING: cfb8_32.h: see the Autoconf documentation" >&5 21664$as_echo "$as_me: WARNING: cfb8_32.h: see the Autoconf documentation" >&2;} 21665 { $as_echo "$as_me:$LINENO: WARNING: cfb8_32.h: section \"Present But Cannot Be Compiled\"" >&5 21666$as_echo "$as_me: WARNING: cfb8_32.h: section \"Present But Cannot Be Compiled\"" >&2;} 21667 { $as_echo "$as_me:$LINENO: WARNING: cfb8_32.h: proceeding with the preprocessor's result" >&5 21668$as_echo "$as_me: WARNING: cfb8_32.h: proceeding with the preprocessor's result" >&2;} 21669 { $as_echo "$as_me:$LINENO: WARNING: cfb8_32.h: in the future, the compiler will take precedence" >&5 21670$as_echo "$as_me: WARNING: cfb8_32.h: in the future, the compiler will take precedence" >&2;} 21671 ( cat <<\_ASBOX 21672## ---------------------------------------------------------------------- ## 21673## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 21674## ---------------------------------------------------------------------- ## 21675_ASBOX 21676 ) | sed "s/^/$as_me: WARNING: /" >&2 21677 ;; 21678esac 21679{ $as_echo "$as_me:$LINENO: checking for cfb8_32.h" >&5 21680$as_echo_n "checking for cfb8_32.h... " >&6; } 21681if test "${ac_cv_header_cfb8_32_h+set}" = set; then 21682 $as_echo_n "(cached) " >&6 21683else 21684 ac_cv_header_cfb8_32_h=$ac_header_preproc 21685fi 21686{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_cfb8_32_h" >&5 21687$as_echo "$ac_cv_header_cfb8_32_h" >&6; } 21688 21689fi 21690if test "x$ac_cv_header_cfb8_32_h" = x""yes; then 21691 21692cat >>confdefs.h <<\_ACEOF 21693#define HAVE_CFB8_32 1 21694_ACEOF 21695 21696fi 21697 21698 21699CPPFLAGS="$SAVE_CPPFLAGS" 21700 21701# Checks for header files. 21702{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 21703$as_echo_n "checking for ANSI C header files... " >&6; } 21704if test "${ac_cv_header_stdc+set}" = set; then 21705 $as_echo_n "(cached) " >&6 21706else 21707 cat >conftest.$ac_ext <<_ACEOF 21708/* confdefs.h. */ 21709_ACEOF 21710cat confdefs.h >>conftest.$ac_ext 21711cat >>conftest.$ac_ext <<_ACEOF 21712/* end confdefs.h. */ 21713#include <stdlib.h> 21714#include <stdarg.h> 21715#include <string.h> 21716#include <float.h> 21717 21718int 21719main () 21720{ 21721 21722 ; 21723 return 0; 21724} 21725_ACEOF 21726rm -f conftest.$ac_objext 21727if { (ac_try="$ac_compile" 21728case "(($ac_try" in 21729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21730 *) ac_try_echo=$ac_try;; 21731esac 21732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21733$as_echo "$ac_try_echo") >&5 21734 (eval "$ac_compile") 2>conftest.er1 21735 ac_status=$? 21736 grep -v '^ *+' conftest.er1 >conftest.err 21737 rm -f conftest.er1 21738 cat conftest.err >&5 21739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21740 (exit $ac_status); } && { 21741 test -z "$ac_c_werror_flag" || 21742 test ! -s conftest.err 21743 } && test -s conftest.$ac_objext; then 21744 ac_cv_header_stdc=yes 21745else 21746 $as_echo "$as_me: failed program was:" >&5 21747sed 's/^/| /' conftest.$ac_ext >&5 21748 21749 ac_cv_header_stdc=no 21750fi 21751 21752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21753 21754if test $ac_cv_header_stdc = yes; then 21755 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 21756 cat >conftest.$ac_ext <<_ACEOF 21757/* confdefs.h. */ 21758_ACEOF 21759cat confdefs.h >>conftest.$ac_ext 21760cat >>conftest.$ac_ext <<_ACEOF 21761/* end confdefs.h. */ 21762#include <string.h> 21763 21764_ACEOF 21765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21766 $EGREP "memchr" >/dev/null 2>&1; then 21767 : 21768else 21769 ac_cv_header_stdc=no 21770fi 21771rm -f conftest* 21772 21773fi 21774 21775if test $ac_cv_header_stdc = yes; then 21776 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 21777 cat >conftest.$ac_ext <<_ACEOF 21778/* confdefs.h. */ 21779_ACEOF 21780cat confdefs.h >>conftest.$ac_ext 21781cat >>conftest.$ac_ext <<_ACEOF 21782/* end confdefs.h. */ 21783#include <stdlib.h> 21784 21785_ACEOF 21786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21787 $EGREP "free" >/dev/null 2>&1; then 21788 : 21789else 21790 ac_cv_header_stdc=no 21791fi 21792rm -f conftest* 21793 21794fi 21795 21796if test $ac_cv_header_stdc = yes; then 21797 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 21798 if test "$cross_compiling" = yes; then 21799 : 21800else 21801 cat >conftest.$ac_ext <<_ACEOF 21802/* confdefs.h. */ 21803_ACEOF 21804cat confdefs.h >>conftest.$ac_ext 21805cat >>conftest.$ac_ext <<_ACEOF 21806/* end confdefs.h. */ 21807#include <ctype.h> 21808#include <stdlib.h> 21809#if ((' ' & 0x0FF) == 0x020) 21810# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 21811# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 21812#else 21813# define ISLOWER(c) \ 21814 (('a' <= (c) && (c) <= 'i') \ 21815 || ('j' <= (c) && (c) <= 'r') \ 21816 || ('s' <= (c) && (c) <= 'z')) 21817# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 21818#endif 21819 21820#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 21821int 21822main () 21823{ 21824 int i; 21825 for (i = 0; i < 256; i++) 21826 if (XOR (islower (i), ISLOWER (i)) 21827 || toupper (i) != TOUPPER (i)) 21828 return 2; 21829 return 0; 21830} 21831_ACEOF 21832rm -f conftest$ac_exeext 21833if { (ac_try="$ac_link" 21834case "(($ac_try" in 21835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21836 *) ac_try_echo=$ac_try;; 21837esac 21838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21839$as_echo "$ac_try_echo") >&5 21840 (eval "$ac_link") 2>&5 21841 ac_status=$? 21842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21844 { (case "(($ac_try" in 21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21846 *) ac_try_echo=$ac_try;; 21847esac 21848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21849$as_echo "$ac_try_echo") >&5 21850 (eval "$ac_try") 2>&5 21851 ac_status=$? 21852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21853 (exit $ac_status); }; }; then 21854 : 21855else 21856 $as_echo "$as_me: program exited with status $ac_status" >&5 21857$as_echo "$as_me: failed program was:" >&5 21858sed 's/^/| /' conftest.$ac_ext >&5 21859 21860( exit $ac_status ) 21861ac_cv_header_stdc=no 21862fi 21863rm -rf conftest.dSYM 21864rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21865fi 21866 21867 21868fi 21869fi 21870{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 21871$as_echo "$ac_cv_header_stdc" >&6; } 21872if test $ac_cv_header_stdc = yes; then 21873 21874cat >>confdefs.h <<\_ACEOF 21875#define STDC_HEADERS 1 21876_ACEOF 21877 21878fi 21879 21880 21881if test "$DRI" != no; then 21882 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh` 21883{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5 21884$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; } 21885if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 21886 $as_echo_n "(cached) " >&6 21887else 21888 test "$cross_compiling" = yes && 21889 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 21890$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 21891 { (exit 1); exit 1; }; } 21892if test -r "${sdkdir}/dri.h"; then 21893 eval "$as_ac_File=yes" 21894else 21895 eval "$as_ac_File=no" 21896fi 21897fi 21898ac_res=`eval 'as_val=${'$as_ac_File'} 21899 $as_echo "$as_val"'` 21900 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 21901$as_echo "$ac_res" >&6; } 21902as_val=`eval 'as_val=${'$as_ac_File'} 21903 $as_echo "$as_val"'` 21904 if test "x$as_val" = x""yes; then 21905 have_dri_h="yes" 21906else 21907 have_dri_h="no" 21908fi 21909 21910 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh` 21911{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5 21912$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; } 21913if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 21914 $as_echo_n "(cached) " >&6 21915else 21916 test "$cross_compiling" = yes && 21917 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 21918$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 21919 { (exit 1); exit 1; }; } 21920if test -r "${sdkdir}/sarea.h"; then 21921 eval "$as_ac_File=yes" 21922else 21923 eval "$as_ac_File=no" 21924fi 21925fi 21926ac_res=`eval 'as_val=${'$as_ac_File'} 21927 $as_echo "$as_val"'` 21928 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 21929$as_echo "$ac_res" >&6; } 21930as_val=`eval 'as_val=${'$as_ac_File'} 21931 $as_echo "$as_val"'` 21932 if test "x$as_val" = x""yes; then 21933 have_sarea_h="yes" 21934else 21935 have_sarea_h="no" 21936fi 21937 21938 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh` 21939{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5 21940$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; } 21941if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 21942 $as_echo_n "(cached) " >&6 21943else 21944 test "$cross_compiling" = yes && 21945 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 21946$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 21947 { (exit 1); exit 1; }; } 21948if test -r "${sdkdir}/dristruct.h"; then 21949 eval "$as_ac_File=yes" 21950else 21951 eval "$as_ac_File=no" 21952fi 21953fi 21954ac_res=`eval 'as_val=${'$as_ac_File'} 21955 $as_echo "$as_val"'` 21956 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 21957$as_echo "$ac_res" >&6; } 21958as_val=`eval 'as_val=${'$as_ac_File'} 21959 $as_echo "$as_val"'` 21960 if test "x$as_val" = x""yes; then 21961 have_dristruct_h="yes" 21962else 21963 have_dristruct_h="no" 21964fi 21965 21966fi 21967 21968{ $as_echo "$as_me:$LINENO: checking whether to include DRI support" >&5 21969$as_echo_n "checking whether to include DRI support... " >&6; } 21970if test x$DRI = xauto; then 21971 if test "$have_dri_h" = yes -a \ 21972 "$have_sarea_h" = yes -a \ 21973 "$have_dristruct_h" = yes; then 21974 DRI="yes" 21975 else 21976 DRI="no" 21977 fi 21978fi 21979{ $as_echo "$as_me:$LINENO: result: $DRI" >&5 21980$as_echo "$DRI" >&6; } 21981 21982 if test x$DRI = xyes; then 21983 DRI_TRUE= 21984 DRI_FALSE='#' 21985else 21986 DRI_TRUE='#' 21987 DRI_FALSE= 21988fi 21989 21990if test "$DRI" = yes; then 21991 21992pkg_failed=no 21993{ $as_echo "$as_me:$LINENO: checking for DRI" >&5 21994$as_echo_n "checking for DRI... " >&6; } 21995 21996if test -n "$DRI_CFLAGS"; then 21997 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS" 21998 elif test -n "$PKG_CONFIG"; then 21999 if test -n "$PKG_CONFIG" && \ 22000 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5 22001 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 22002 ac_status=$? 22003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22004 (exit $ac_status); }; then 22005 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null` 22006else 22007 pkg_failed=yes 22008fi 22009 else 22010 pkg_failed=untried 22011fi 22012if test -n "$DRI_LIBS"; then 22013 pkg_cv_DRI_LIBS="$DRI_LIBS" 22014 elif test -n "$PKG_CONFIG"; then 22015 if test -n "$PKG_CONFIG" && \ 22016 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5 22017 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 22018 ac_status=$? 22019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22020 (exit $ac_status); }; then 22021 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null` 22022else 22023 pkg_failed=yes 22024fi 22025 else 22026 pkg_failed=untried 22027fi 22028 22029 22030 22031if test $pkg_failed = yes; then 22032 22033if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22034 _pkg_short_errors_supported=yes 22035else 22036 _pkg_short_errors_supported=no 22037fi 22038 if test $_pkg_short_errors_supported = yes; then 22039 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.0 xf86driproto" 2>&1` 22040 else 22041 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.0 xf86driproto" 2>&1` 22042 fi 22043 # Put the nasty error message in config.log where it belongs 22044 echo "$DRI_PKG_ERRORS" >&5 22045 22046 { { $as_echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met: 22047 22048$DRI_PKG_ERRORS 22049 22050Consider adjusting the PKG_CONFIG_PATH environment variable if you 22051installed software in a non-standard prefix. 22052 22053Alternatively, you may set the environment variables DRI_CFLAGS 22054and DRI_LIBS to avoid the need to call pkg-config. 22055See the pkg-config man page for more details. 22056" >&5 22057$as_echo "$as_me: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met: 22058 22059$DRI_PKG_ERRORS 22060 22061Consider adjusting the PKG_CONFIG_PATH environment variable if you 22062installed software in a non-standard prefix. 22063 22064Alternatively, you may set the environment variables DRI_CFLAGS 22065and DRI_LIBS to avoid the need to call pkg-config. 22066See the pkg-config man page for more details. 22067" >&2;} 22068 { (exit 1); exit 1; }; } 22069elif test $pkg_failed = untried; then 22070 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 22071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22072{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 22073is in your PATH or set the PKG_CONFIG environment variable to the full 22074path to pkg-config. 22075 22076Alternatively, you may set the environment variables DRI_CFLAGS 22077and DRI_LIBS to avoid the need to call pkg-config. 22078See the pkg-config man page for more details. 22079 22080To get pkg-config, see <http://pkg-config.freedesktop.org/>. 22081See \`config.log' for more details." >&5 22082$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 22083is in your PATH or set the PKG_CONFIG environment variable to the full 22084path to pkg-config. 22085 22086Alternatively, you may set the environment variables DRI_CFLAGS 22087and DRI_LIBS to avoid the need to call pkg-config. 22088See the pkg-config man page for more details. 22089 22090To get pkg-config, see <http://pkg-config.freedesktop.org/>. 22091See \`config.log' for more details." >&2;} 22092 { (exit 1); exit 1; }; }; } 22093else 22094 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS 22095 DRI_LIBS=$pkg_cv_DRI_LIBS 22096 { $as_echo "$as_me:$LINENO: result: yes" >&5 22097$as_echo "yes" >&6; } 22098 : 22099fi 22100 22101cat >>confdefs.h <<\_ACEOF 22102#define XF86DRI 1 22103_ACEOF 22104 22105 22106cat >>confdefs.h <<\_ACEOF 22107#define XF86DRI_DEVEL 1 22108_ACEOF 22109 22110fi 22111 22112if test "x$XSERVER_LIBPCIACCESS" = xyes; then 22113 22114pkg_failed=no 22115{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5 22116$as_echo_n "checking for PCIACCESS... " >&6; } 22117 22118if test -n "$PCIACCESS_CFLAGS"; then 22119 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 22120 elif test -n "$PKG_CONFIG"; then 22121 if test -n "$PKG_CONFIG" && \ 22122 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 22123 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 22124 ac_status=$? 22125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22126 (exit $ac_status); }; then 22127 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 22128else 22129 pkg_failed=yes 22130fi 22131 else 22132 pkg_failed=untried 22133fi 22134if test -n "$PCIACCESS_LIBS"; then 22135 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 22136 elif test -n "$PKG_CONFIG"; then 22137 if test -n "$PKG_CONFIG" && \ 22138 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 22139 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 22140 ac_status=$? 22141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 22142 (exit $ac_status); }; then 22143 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 22144else 22145 pkg_failed=yes 22146fi 22147 else 22148 pkg_failed=untried 22149fi 22150 22151 22152 22153if test $pkg_failed = yes; then 22154 22155if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22156 _pkg_short_errors_supported=yes 22157else 22158 _pkg_short_errors_supported=no 22159fi 22160 if test $_pkg_short_errors_supported = yes; then 22161 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1` 22162 else 22163 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1` 22164 fi 22165 # Put the nasty error message in config.log where it belongs 22166 echo "$PCIACCESS_PKG_ERRORS" >&5 22167 22168 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met: 22169 22170$PCIACCESS_PKG_ERRORS 22171 22172Consider adjusting the PKG_CONFIG_PATH environment variable if you 22173installed software in a non-standard prefix. 22174 22175Alternatively, you may set the environment variables PCIACCESS_CFLAGS 22176and PCIACCESS_LIBS to avoid the need to call pkg-config. 22177See the pkg-config man page for more details. 22178" >&5 22179$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met: 22180 22181$PCIACCESS_PKG_ERRORS 22182 22183Consider adjusting the PKG_CONFIG_PATH environment variable if you 22184installed software in a non-standard prefix. 22185 22186Alternatively, you may set the environment variables PCIACCESS_CFLAGS 22187and PCIACCESS_LIBS to avoid the need to call pkg-config. 22188See the pkg-config man page for more details. 22189" >&2;} 22190 { (exit 1); exit 1; }; } 22191elif test $pkg_failed = untried; then 22192 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 22193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22194{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 22195is in your PATH or set the PKG_CONFIG environment variable to the full 22196path to pkg-config. 22197 22198Alternatively, you may set the environment variables PCIACCESS_CFLAGS 22199and PCIACCESS_LIBS to avoid the need to call pkg-config. 22200See the pkg-config man page for more details. 22201 22202To get pkg-config, see <http://pkg-config.freedesktop.org/>. 22203See \`config.log' for more details." >&5 22204$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 22205is in your PATH or set the PKG_CONFIG environment variable to the full 22206path to pkg-config. 22207 22208Alternatively, you may set the environment variables PCIACCESS_CFLAGS 22209and PCIACCESS_LIBS to avoid the need to call pkg-config. 22210See the pkg-config man page for more details. 22211 22212To get pkg-config, see <http://pkg-config.freedesktop.org/>. 22213See \`config.log' for more details." >&2;} 22214 { (exit 1); exit 1; }; }; } 22215else 22216 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 22217 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 22218 { $as_echo "$as_me:$LINENO: result: yes" >&5 22219$as_echo "yes" >&6; } 22220 : 22221fi 22222 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 22223fi 22224 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 22225 XSERVER_LIBPCIACCESS_TRUE= 22226 XSERVER_LIBPCIACCESS_FALSE='#' 22227else 22228 XSERVER_LIBPCIACCESS_TRUE='#' 22229 XSERVER_LIBPCIACCESS_FALSE= 22230fi 22231 22232 22233 22234 22235 22236 22237 22238DRIVER_NAME=glint 22239 22240 22241 22242 22243 22244if test x$APP_MAN_SUFFIX = x ; then 22245 APP_MAN_SUFFIX=1 22246fi 22247if test x$APP_MAN_DIR = x ; then 22248 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 22249fi 22250 22251if test x$LIB_MAN_SUFFIX = x ; then 22252 LIB_MAN_SUFFIX=3 22253fi 22254if test x$LIB_MAN_DIR = x ; then 22255 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 22256fi 22257 22258if test x$FILE_MAN_SUFFIX = x ; then 22259 case $host_os in 22260 solaris*) FILE_MAN_SUFFIX=4 ;; 22261 *) FILE_MAN_SUFFIX=5 ;; 22262 esac 22263fi 22264if test x$FILE_MAN_DIR = x ; then 22265 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 22266fi 22267 22268if test x$MISC_MAN_SUFFIX = x ; then 22269 case $host_os in 22270 solaris*) MISC_MAN_SUFFIX=5 ;; 22271 *) MISC_MAN_SUFFIX=7 ;; 22272 esac 22273fi 22274if test x$MISC_MAN_DIR = x ; then 22275 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 22276fi 22277 22278if test x$DRIVER_MAN_SUFFIX = x ; then 22279 case $host_os in 22280 solaris*) DRIVER_MAN_SUFFIX=7 ;; 22281 *) DRIVER_MAN_SUFFIX=4 ;; 22282 esac 22283fi 22284if test x$DRIVER_MAN_DIR = x ; then 22285 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 22286fi 22287 22288if test x$ADMIN_MAN_SUFFIX = x ; then 22289 case $host_os in 22290 solaris*) ADMIN_MAN_SUFFIX=1m ;; 22291 *) ADMIN_MAN_SUFFIX=8 ;; 22292 esac 22293fi 22294if test x$ADMIN_MAN_DIR = x ; then 22295 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 22296fi 22297 22298 22299 22300 22301 22302 22303 22304 22305 22306 22307 22308 22309 22310 22311 22312 22313 22314# Check whether --with-release-version was given. 22315if test "${with_release_version+set}" = set; then 22316 withval=$with_release_version; RELEASE_VERSION="$withval" 22317else 22318 RELEASE_VERSION="" 22319fi 22320 22321 if test "x$RELEASE_VERSION" != "x"; then 22322 PACKAGE="$PACKAGE-$RELEASE_VERSION" 22323 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 22324 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 22325$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 22326 fi 22327 22328cat >>confdefs.h <<_ACEOF 22329#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 22330_ACEOF 22331 22332 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 22333 if test "x$PVM" = "x"; then 22334 PVM="0" 22335 fi 22336 22337cat >>confdefs.h <<_ACEOF 22338#define PACKAGE_VERSION_MINOR $PVM 22339_ACEOF 22340 22341 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 22342 if test "x$PVP" = "x"; then 22343 PVP="0" 22344 fi 22345 22346cat >>confdefs.h <<_ACEOF 22347#define PACKAGE_VERSION_PATCHLEVEL $PVP 22348_ACEOF 22349 22350 22351 22352ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 22353 22354cat >confcache <<\_ACEOF 22355# This file is a shell script that caches the results of configure 22356# tests run on this system so they can be shared between configure 22357# scripts and configure runs, see configure's option --config-cache. 22358# It is not useful on other systems. If it contains results you don't 22359# want to keep, you may remove or edit it. 22360# 22361# config.status only pays attention to the cache file if you give it 22362# the --recheck option to rerun configure. 22363# 22364# `ac_cv_env_foo' variables (set or unset) will be overridden when 22365# loading this file, other *unset* `ac_cv_foo' will be assigned the 22366# following values. 22367 22368_ACEOF 22369 22370# The following way of writing the cache mishandles newlines in values, 22371# but we know of no workaround that is simple, portable, and efficient. 22372# So, we kill variables containing newlines. 22373# Ultrix sh set writes to stderr and can't be redirected directly, 22374# and sets the high bit in the cache file unless we assign to the vars. 22375( 22376 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22377 eval ac_val=\$$ac_var 22378 case $ac_val in #( 22379 *${as_nl}*) 22380 case $ac_var in #( 22381 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 22382$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 22383 esac 22384 case $ac_var in #( 22385 _ | IFS | as_nl) ;; #( 22386 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 22387 *) $as_unset $ac_var ;; 22388 esac ;; 22389 esac 22390 done 22391 22392 (set) 2>&1 | 22393 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22394 *${as_nl}ac_space=\ *) 22395 # `set' does not quote correctly, so add quotes (double-quote 22396 # substitution turns \\\\ into \\, and sed turns \\ into \). 22397 sed -n \ 22398 "s/'/'\\\\''/g; 22399 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22400 ;; #( 22401 *) 22402 # `set' quotes correctly as required by POSIX, so do not add quotes. 22403 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22404 ;; 22405 esac | 22406 sort 22407) | 22408 sed ' 22409 /^ac_cv_env_/b end 22410 t clear 22411 :clear 22412 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22413 t end 22414 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22415 :end' >>confcache 22416if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22417 if test -w "$cache_file"; then 22418 test "x$cache_file" != "x/dev/null" && 22419 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 22420$as_echo "$as_me: updating cache $cache_file" >&6;} 22421 cat confcache >$cache_file 22422 else 22423 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 22424$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22425 fi 22426fi 22427rm -f confcache 22428 22429test "x$prefix" = xNONE && prefix=$ac_default_prefix 22430# Let make expand exec_prefix. 22431test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22432 22433DEFS=-DHAVE_CONFIG_H 22434 22435ac_libobjs= 22436ac_ltlibobjs= 22437for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22438 # 1. Remove the extension, and $U if already installed. 22439 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22440 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 22441 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22442 # will be set to the directory where LIBOBJS objects are built. 22443 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22444 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 22445done 22446LIBOBJS=$ac_libobjs 22447 22448LTLIBOBJS=$ac_ltlibobjs 22449 22450 22451 if test -n "$EXEEXT"; then 22452 am__EXEEXT_TRUE= 22453 am__EXEEXT_FALSE='#' 22454else 22455 am__EXEEXT_TRUE='#' 22456 am__EXEEXT_FALSE= 22457fi 22458 22459if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 22460 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 22461Usually this means the macro was only invoked conditionally." >&5 22462$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 22463Usually this means the macro was only invoked conditionally." >&2;} 22464 { (exit 1); exit 1; }; } 22465fi 22466if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22467 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22468Usually this means the macro was only invoked conditionally." >&5 22469$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 22470Usually this means the macro was only invoked conditionally." >&2;} 22471 { (exit 1); exit 1; }; } 22472fi 22473if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22474 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22475Usually this means the macro was only invoked conditionally." >&5 22476$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22477Usually this means the macro was only invoked conditionally." >&2;} 22478 { (exit 1); exit 1; }; } 22479fi 22480if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22481 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22482Usually this means the macro was only invoked conditionally." >&5 22483$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22484Usually this means the macro was only invoked conditionally." >&2;} 22485 { (exit 1); exit 1; }; } 22486fi 22487if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22488 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22489Usually this means the macro was only invoked conditionally." >&5 22490$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22491Usually this means the macro was only invoked conditionally." >&2;} 22492 { (exit 1); exit 1; }; } 22493fi 22494if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 22495 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_XEXTPROTO_71\" was never defined. 22496Usually this means the macro was only invoked conditionally." >&5 22497$as_echo "$as_me: error: conditional \"HAVE_XEXTPROTO_71\" was never defined. 22498Usually this means the macro was only invoked conditionally." >&2;} 22499 { (exit 1); exit 1; }; } 22500fi 22501if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 22502 { { $as_echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined. 22503Usually this means the macro was only invoked conditionally." >&5 22504$as_echo "$as_me: error: conditional \"DRI\" was never defined. 22505Usually this means the macro was only invoked conditionally." >&2;} 22506 { (exit 1); exit 1; }; } 22507fi 22508if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 22509 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 22510Usually this means the macro was only invoked conditionally." >&5 22511$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 22512Usually this means the macro was only invoked conditionally." >&2;} 22513 { (exit 1); exit 1; }; } 22514fi 22515 22516: ${CONFIG_STATUS=./config.status} 22517ac_write_fail=0 22518ac_clean_files_save=$ac_clean_files 22519ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22520{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22521$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 22522cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22523#! $SHELL 22524# Generated by $as_me. 22525# Run this file to recreate the current configuration. 22526# Compiler output produced by configure, useful for debugging 22527# configure, is in config.log if it exists. 22528 22529debug=false 22530ac_cs_recheck=false 22531ac_cs_silent=false 22532SHELL=\${CONFIG_SHELL-$SHELL} 22533_ACEOF 22534 22535cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22536## --------------------- ## 22537## M4sh Initialization. ## 22538## --------------------- ## 22539 22540# Be more Bourne compatible 22541DUALCASE=1; export DUALCASE # for MKS sh 22542if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22543 emulate sh 22544 NULLCMD=: 22545 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22546 # is contrary to our usage. Disable this feature. 22547 alias -g '${1+"$@"}'='"$@"' 22548 setopt NO_GLOB_SUBST 22549else 22550 case `(set -o) 2>/dev/null` in 22551 *posix*) set -o posix ;; 22552esac 22553 22554fi 22555 22556 22557 22558 22559# PATH needs CR 22560# Avoid depending upon Character Ranges. 22561as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22562as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22563as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22564as_cr_digits='0123456789' 22565as_cr_alnum=$as_cr_Letters$as_cr_digits 22566 22567as_nl=' 22568' 22569export as_nl 22570# Printing a long string crashes Solaris 7 /usr/bin/printf. 22571as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 22572as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 22573as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 22574if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22575 as_echo='printf %s\n' 22576 as_echo_n='printf %s' 22577else 22578 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22579 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22580 as_echo_n='/usr/ucb/echo -n' 22581 else 22582 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22583 as_echo_n_body='eval 22584 arg=$1; 22585 case $arg in 22586 *"$as_nl"*) 22587 expr "X$arg" : "X\\(.*\\)$as_nl"; 22588 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22589 esac; 22590 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22591 ' 22592 export as_echo_n_body 22593 as_echo_n='sh -c $as_echo_n_body as_echo' 22594 fi 22595 export as_echo_body 22596 as_echo='sh -c $as_echo_body as_echo' 22597fi 22598 22599# The user is always right. 22600if test "${PATH_SEPARATOR+set}" != set; then 22601 PATH_SEPARATOR=: 22602 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22603 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22604 PATH_SEPARATOR=';' 22605 } 22606fi 22607 22608# Support unset when possible. 22609if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22610 as_unset=unset 22611else 22612 as_unset=false 22613fi 22614 22615 22616# IFS 22617# We need space, tab and new line, in precisely that order. Quoting is 22618# there to prevent editors from complaining about space-tab. 22619# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22620# splitting by setting IFS to empty value.) 22621IFS=" "" $as_nl" 22622 22623# Find who we are. Look in the path if we contain no directory separator. 22624case $0 in 22625 *[\\/]* ) as_myself=$0 ;; 22626 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22627for as_dir in $PATH 22628do 22629 IFS=$as_save_IFS 22630 test -z "$as_dir" && as_dir=. 22631 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22632done 22633IFS=$as_save_IFS 22634 22635 ;; 22636esac 22637# We did not find ourselves, most probably we were run as `sh COMMAND' 22638# in which case we are not to be found in the path. 22639if test "x$as_myself" = x; then 22640 as_myself=$0 22641fi 22642if test ! -f "$as_myself"; then 22643 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22644 { (exit 1); exit 1; } 22645fi 22646 22647# Work around bugs in pre-3.0 UWIN ksh. 22648for as_var in ENV MAIL MAILPATH 22649do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22650done 22651PS1='$ ' 22652PS2='> ' 22653PS4='+ ' 22654 22655# NLS nuisances. 22656LC_ALL=C 22657export LC_ALL 22658LANGUAGE=C 22659export LANGUAGE 22660 22661# Required to use basename. 22662if expr a : '\(a\)' >/dev/null 2>&1 && 22663 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22664 as_expr=expr 22665else 22666 as_expr=false 22667fi 22668 22669if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22670 as_basename=basename 22671else 22672 as_basename=false 22673fi 22674 22675 22676# Name of the executable. 22677as_me=`$as_basename -- "$0" || 22678$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22679 X"$0" : 'X\(//\)$' \| \ 22680 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22681$as_echo X/"$0" | 22682 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22683 s//\1/ 22684 q 22685 } 22686 /^X\/\(\/\/\)$/{ 22687 s//\1/ 22688 q 22689 } 22690 /^X\/\(\/\).*/{ 22691 s//\1/ 22692 q 22693 } 22694 s/.*/./; q'` 22695 22696# CDPATH. 22697$as_unset CDPATH 22698 22699 22700 22701 as_lineno_1=$LINENO 22702 as_lineno_2=$LINENO 22703 test "x$as_lineno_1" != "x$as_lineno_2" && 22704 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22705 22706 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22707 # uniformly replaced by the line number. The first 'sed' inserts a 22708 # line-number line after each line using $LINENO; the second 'sed' 22709 # does the real work. The second script uses 'N' to pair each 22710 # line-number line with the line containing $LINENO, and appends 22711 # trailing '-' during substitution so that $LINENO is not a special 22712 # case at line end. 22713 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22714 # scripts with optimization help from Paolo Bonzini. Blame Lee 22715 # E. McMahon (1931-1989) for sed's syntax. :-) 22716 sed -n ' 22717 p 22718 /[$]LINENO/= 22719 ' <$as_myself | 22720 sed ' 22721 s/[$]LINENO.*/&-/ 22722 t lineno 22723 b 22724 :lineno 22725 N 22726 :loop 22727 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22728 t loop 22729 s/-\n.*// 22730 ' >$as_me.lineno && 22731 chmod +x "$as_me.lineno" || 22732 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22733 { (exit 1); exit 1; }; } 22734 22735 # Don't try to exec as it changes $[0], causing all sort of problems 22736 # (the dirname of $[0] is not the place where we might find the 22737 # original and so on. Autoconf is especially sensitive to this). 22738 . "./$as_me.lineno" 22739 # Exit status is that of the last command. 22740 exit 22741} 22742 22743 22744if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22745 as_dirname=dirname 22746else 22747 as_dirname=false 22748fi 22749 22750ECHO_C= ECHO_N= ECHO_T= 22751case `echo -n x` in 22752-n*) 22753 case `echo 'x\c'` in 22754 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22755 *) ECHO_C='\c';; 22756 esac;; 22757*) 22758 ECHO_N='-n';; 22759esac 22760if expr a : '\(a\)' >/dev/null 2>&1 && 22761 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22762 as_expr=expr 22763else 22764 as_expr=false 22765fi 22766 22767rm -f conf$$ conf$$.exe conf$$.file 22768if test -d conf$$.dir; then 22769 rm -f conf$$.dir/conf$$.file 22770else 22771 rm -f conf$$.dir 22772 mkdir conf$$.dir 2>/dev/null 22773fi 22774if (echo >conf$$.file) 2>/dev/null; then 22775 if ln -s conf$$.file conf$$ 2>/dev/null; then 22776 as_ln_s='ln -s' 22777 # ... but there are two gotchas: 22778 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22779 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22780 # In both cases, we have to default to `cp -p'. 22781 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22782 as_ln_s='cp -p' 22783 elif ln conf$$.file conf$$ 2>/dev/null; then 22784 as_ln_s=ln 22785 else 22786 as_ln_s='cp -p' 22787 fi 22788else 22789 as_ln_s='cp -p' 22790fi 22791rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22792rmdir conf$$.dir 2>/dev/null 22793 22794if mkdir -p . 2>/dev/null; then 22795 as_mkdir_p=: 22796else 22797 test -d ./-p && rmdir ./-p 22798 as_mkdir_p=false 22799fi 22800 22801if test -x / >/dev/null 2>&1; then 22802 as_test_x='test -x' 22803else 22804 if ls -dL / >/dev/null 2>&1; then 22805 as_ls_L_option=L 22806 else 22807 as_ls_L_option= 22808 fi 22809 as_test_x=' 22810 eval sh -c '\'' 22811 if test -d "$1"; then 22812 test -d "$1/."; 22813 else 22814 case $1 in 22815 -*)set "./$1";; 22816 esac; 22817 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 22818 ???[sx]*):;;*)false;;esac;fi 22819 '\'' sh 22820 ' 22821fi 22822as_executable_p=$as_test_x 22823 22824# Sed expression to map a string onto a valid CPP name. 22825as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22826 22827# Sed expression to map a string onto a valid variable name. 22828as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22829 22830 22831exec 6>&1 22832 22833# Save the log message, to keep $[0] and so on meaningful, and to 22834# report actual input values of CONFIG_FILES etc. instead of their 22835# values after options handling. 22836ac_log=" 22837This file was extended by xf86-video-glint $as_me 1.2.4, which was 22838generated by GNU Autoconf 2.63. Invocation command line was 22839 22840 CONFIG_FILES = $CONFIG_FILES 22841 CONFIG_HEADERS = $CONFIG_HEADERS 22842 CONFIG_LINKS = $CONFIG_LINKS 22843 CONFIG_COMMANDS = $CONFIG_COMMANDS 22844 $ $0 $@ 22845 22846on `(hostname || uname -n) 2>/dev/null | sed 1q` 22847" 22848 22849_ACEOF 22850 22851case $ac_config_files in *" 22852"*) set x $ac_config_files; shift; ac_config_files=$*;; 22853esac 22854 22855case $ac_config_headers in *" 22856"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22857esac 22858 22859 22860cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22861# Files that config.status was made for. 22862config_files="$ac_config_files" 22863config_headers="$ac_config_headers" 22864config_commands="$ac_config_commands" 22865 22866_ACEOF 22867 22868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22869ac_cs_usage="\ 22870\`$as_me' instantiates files from templates according to the 22871current configuration. 22872 22873Usage: $0 [OPTION]... [FILE]... 22874 22875 -h, --help print this help, then exit 22876 -V, --version print version number and configuration settings, then exit 22877 -q, --quiet, --silent 22878 do not print progress messages 22879 -d, --debug don't remove temporary files 22880 --recheck update $as_me by reconfiguring in the same conditions 22881 --file=FILE[:TEMPLATE] 22882 instantiate the configuration file FILE 22883 --header=FILE[:TEMPLATE] 22884 instantiate the configuration header FILE 22885 22886Configuration files: 22887$config_files 22888 22889Configuration headers: 22890$config_headers 22891 22892Configuration commands: 22893$config_commands 22894 22895Report bugs to <bug-autoconf@gnu.org>." 22896 22897_ACEOF 22898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22899ac_cs_version="\\ 22900xf86-video-glint config.status 1.2.4 22901configured by $0, generated by GNU Autoconf 2.63, 22902 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22903 22904Copyright (C) 2008 Free Software Foundation, Inc. 22905This config.status script is free software; the Free Software Foundation 22906gives unlimited permission to copy, distribute and modify it." 22907 22908ac_pwd='$ac_pwd' 22909srcdir='$srcdir' 22910INSTALL='$INSTALL' 22911MKDIR_P='$MKDIR_P' 22912AWK='$AWK' 22913test -n "\$AWK" || AWK=awk 22914_ACEOF 22915 22916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22917# The default lists apply if the user does not specify any file. 22918ac_need_defaults=: 22919while test $# != 0 22920do 22921 case $1 in 22922 --*=*) 22923 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22924 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22925 ac_shift=: 22926 ;; 22927 *) 22928 ac_option=$1 22929 ac_optarg=$2 22930 ac_shift=shift 22931 ;; 22932 esac 22933 22934 case $ac_option in 22935 # Handling of the options. 22936 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22937 ac_cs_recheck=: ;; 22938 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22939 $as_echo "$ac_cs_version"; exit ;; 22940 --debug | --debu | --deb | --de | --d | -d ) 22941 debug=: ;; 22942 --file | --fil | --fi | --f ) 22943 $ac_shift 22944 case $ac_optarg in 22945 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22946 esac 22947 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 22948 ac_need_defaults=false;; 22949 --header | --heade | --head | --hea ) 22950 $ac_shift 22951 case $ac_optarg in 22952 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22953 esac 22954 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 22955 ac_need_defaults=false;; 22956 --he | --h) 22957 # Conflict between --help and --header 22958 { $as_echo "$as_me: error: ambiguous option: $1 22959Try \`$0 --help' for more information." >&2 22960 { (exit 1); exit 1; }; };; 22961 --help | --hel | -h ) 22962 $as_echo "$ac_cs_usage"; exit ;; 22963 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22964 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22965 ac_cs_silent=: ;; 22966 22967 # This is an error. 22968 -*) { $as_echo "$as_me: error: unrecognized option: $1 22969Try \`$0 --help' for more information." >&2 22970 { (exit 1); exit 1; }; } ;; 22971 22972 *) ac_config_targets="$ac_config_targets $1" 22973 ac_need_defaults=false ;; 22974 22975 esac 22976 shift 22977done 22978 22979ac_configure_extra_args= 22980 22981if $ac_cs_silent; then 22982 exec 6>/dev/null 22983 ac_configure_extra_args="$ac_configure_extra_args --silent" 22984fi 22985 22986_ACEOF 22987cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22988if \$ac_cs_recheck; then 22989 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22990 shift 22991 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22992 CONFIG_SHELL='$SHELL' 22993 export CONFIG_SHELL 22994 exec "\$@" 22995fi 22996 22997_ACEOF 22998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22999exec 5>>config.log 23000{ 23001 echo 23002 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23003## Running $as_me. ## 23004_ASBOX 23005 $as_echo "$ac_log" 23006} >&5 23007 23008_ACEOF 23009cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23010# 23011# INIT-COMMANDS 23012# 23013AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23014 23015_ACEOF 23016 23017cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23018 23019# Handling of arguments. 23020for ac_config_target in $ac_config_targets 23021do 23022 case $ac_config_target in 23023 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 23024 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23025 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23026 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 23027 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 23028 23029 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23030$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23031 { (exit 1); exit 1; }; };; 23032 esac 23033done 23034 23035 23036# If the user did not use the arguments to specify the items to instantiate, 23037# then the envvar interface is used. Set only those that are not. 23038# We use the long form for the default assignment because of an extremely 23039# bizarre bug on SunOS 4.1.3. 23040if $ac_need_defaults; then 23041 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23042 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23043 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23044fi 23045 23046# Have a temporary directory for convenience. Make it in the build tree 23047# simply because there is no reason against having it here, and in addition, 23048# creating and moving files from /tmp can sometimes cause problems. 23049# Hook for its removal unless debugging. 23050# Note that there is a small window in which the directory will not be cleaned: 23051# after its creation but before its name has been assigned to `$tmp'. 23052$debug || 23053{ 23054 tmp= 23055 trap 'exit_status=$? 23056 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 23057' 0 23058 trap '{ (exit 1); exit 1; }' 1 2 13 15 23059} 23060# Create a (secure) tmp directory for tmp files. 23061 23062{ 23063 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23064 test -n "$tmp" && test -d "$tmp" 23065} || 23066{ 23067 tmp=./conf$$-$RANDOM 23068 (umask 077 && mkdir "$tmp") 23069} || 23070{ 23071 $as_echo "$as_me: cannot create a temporary directory in ." >&2 23072 { (exit 1); exit 1; } 23073} 23074 23075# Set up the scripts for CONFIG_FILES section. 23076# No need to generate them if there are no CONFIG_FILES. 23077# This happens for instance with `./config.status config.h'. 23078if test -n "$CONFIG_FILES"; then 23079 23080 23081ac_cr=' 23082' 23083ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23084if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23085 ac_cs_awk_cr='\\r' 23086else 23087 ac_cs_awk_cr=$ac_cr 23088fi 23089 23090echo 'BEGIN {' >"$tmp/subs1.awk" && 23091_ACEOF 23092 23093 23094{ 23095 echo "cat >conf$$subs.awk <<_ACEOF" && 23096 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 23097 echo "_ACEOF" 23098} >conf$$subs.sh || 23099 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23100$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23101 { (exit 1); exit 1; }; } 23102ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 23103ac_delim='%!_!# ' 23104for ac_last_try in false false false false false :; do 23105 . ./conf$$subs.sh || 23106 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23107$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23108 { (exit 1); exit 1; }; } 23109 23110 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 23111 if test $ac_delim_n = $ac_delim_num; then 23112 break 23113 elif $ac_last_try; then 23114 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23115$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23116 { (exit 1); exit 1; }; } 23117 else 23118 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23119 fi 23120done 23121rm -f conf$$subs.sh 23122 23123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23124cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 23125_ACEOF 23126sed -n ' 23127h 23128s/^/S["/; s/!.*/"]=/ 23129p 23130g 23131s/^[^!]*!// 23132:repl 23133t repl 23134s/'"$ac_delim"'$// 23135t delim 23136:nl 23137h 23138s/\(.\{148\}\).*/\1/ 23139t more1 23140s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23141p 23142n 23143b repl 23144:more1 23145s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23146p 23147g 23148s/.\{148\}// 23149t nl 23150:delim 23151h 23152s/\(.\{148\}\).*/\1/ 23153t more2 23154s/["\\]/\\&/g; s/^/"/; s/$/"/ 23155p 23156b 23157:more2 23158s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23159p 23160g 23161s/.\{148\}// 23162t delim 23163' <conf$$subs.awk | sed ' 23164/^[^""]/{ 23165 N 23166 s/\n// 23167} 23168' >>$CONFIG_STATUS || ac_write_fail=1 23169rm -f conf$$subs.awk 23170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23171_ACAWK 23172cat >>"\$tmp/subs1.awk" <<_ACAWK && 23173 for (key in S) S_is_set[key] = 1 23174 FS = "" 23175 23176} 23177{ 23178 line = $ 0 23179 nfields = split(line, field, "@") 23180 substed = 0 23181 len = length(field[1]) 23182 for (i = 2; i < nfields; i++) { 23183 key = field[i] 23184 keylen = length(key) 23185 if (S_is_set[key]) { 23186 value = S[key] 23187 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23188 len += length(value) + length(field[++i]) 23189 substed = 1 23190 } else 23191 len += 1 + keylen 23192 } 23193 23194 print line 23195} 23196 23197_ACAWK 23198_ACEOF 23199cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23200if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23201 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23202else 23203 cat 23204fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 23205 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 23206$as_echo "$as_me: error: could not setup config files machinery" >&2;} 23207 { (exit 1); exit 1; }; } 23208_ACEOF 23209 23210# VPATH may cause trouble with some makes, so we remove $(srcdir), 23211# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23212# trailing colons and then remove the whole line if VPATH becomes empty 23213# (actually we leave an empty line to preserve line numbers). 23214if test "x$srcdir" = x.; then 23215 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23216s/:*\$(srcdir):*/:/ 23217s/:*\${srcdir}:*/:/ 23218s/:*@srcdir@:*/:/ 23219s/^\([^=]*=[ ]*\):*/\1/ 23220s/:*$// 23221s/^[^=]*=[ ]*$// 23222}' 23223fi 23224 23225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23226fi # test -n "$CONFIG_FILES" 23227 23228# Set up the scripts for CONFIG_HEADERS section. 23229# No need to generate them if there are no CONFIG_HEADERS. 23230# This happens for instance with `./config.status Makefile'. 23231if test -n "$CONFIG_HEADERS"; then 23232cat >"$tmp/defines.awk" <<\_ACAWK || 23233BEGIN { 23234_ACEOF 23235 23236# Transform confdefs.h into an awk script `defines.awk', embedded as 23237# here-document in config.status, that substitutes the proper values into 23238# config.h.in to produce config.h. 23239 23240# Create a delimiter string that does not exist in confdefs.h, to ease 23241# handling of long lines. 23242ac_delim='%!_!# ' 23243for ac_last_try in false false :; do 23244 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 23245 if test -z "$ac_t"; then 23246 break 23247 elif $ac_last_try; then 23248 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 23249$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 23250 { (exit 1); exit 1; }; } 23251 else 23252 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23253 fi 23254done 23255 23256# For the awk script, D is an array of macro values keyed by name, 23257# likewise P contains macro parameters if any. Preserve backslash 23258# newline sequences. 23259 23260ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23261sed -n ' 23262s/.\{148\}/&'"$ac_delim"'/g 23263t rset 23264:rset 23265s/^[ ]*#[ ]*define[ ][ ]*/ / 23266t def 23267d 23268:def 23269s/\\$// 23270t bsnl 23271s/["\\]/\\&/g 23272s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23273D["\1"]=" \3"/p 23274s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23275d 23276:bsnl 23277s/["\\]/\\&/g 23278s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23279D["\1"]=" \3\\\\\\n"\\/p 23280t cont 23281s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23282t cont 23283d 23284:cont 23285n 23286s/.\{148\}/&'"$ac_delim"'/g 23287t clear 23288:clear 23289s/\\$// 23290t bsnlc 23291s/["\\]/\\&/g; s/^/"/; s/$/"/p 23292d 23293:bsnlc 23294s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23295b cont 23296' <confdefs.h | sed ' 23297s/'"$ac_delim"'/"\\\ 23298"/g' >>$CONFIG_STATUS || ac_write_fail=1 23299 23300cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23301 for (key in D) D_is_set[key] = 1 23302 FS = "" 23303} 23304/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23305 line = \$ 0 23306 split(line, arg, " ") 23307 if (arg[1] == "#") { 23308 defundef = arg[2] 23309 mac1 = arg[3] 23310 } else { 23311 defundef = substr(arg[1], 2) 23312 mac1 = arg[2] 23313 } 23314 split(mac1, mac2, "(") #) 23315 macro = mac2[1] 23316 prefix = substr(line, 1, index(line, defundef) - 1) 23317 if (D_is_set[macro]) { 23318 # Preserve the white space surrounding the "#". 23319 print prefix "define", macro P[macro] D[macro] 23320 next 23321 } else { 23322 # Replace #undef with comments. This is necessary, for example, 23323 # in the case of _POSIX_SOURCE, which is predefined and required 23324 # on some systems where configure will not decide to define it. 23325 if (defundef == "undef") { 23326 print "/*", prefix defundef, macro, "*/" 23327 next 23328 } 23329 } 23330} 23331{ print } 23332_ACAWK 23333_ACEOF 23334cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23335 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 23336$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 23337 { (exit 1); exit 1; }; } 23338fi # test -n "$CONFIG_HEADERS" 23339 23340 23341eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23342shift 23343for ac_tag 23344do 23345 case $ac_tag in 23346 :[FHLC]) ac_mode=$ac_tag; continue;; 23347 esac 23348 case $ac_mode$ac_tag in 23349 :[FHL]*:*);; 23350 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 23351$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 23352 { (exit 1); exit 1; }; };; 23353 :[FH]-) ac_tag=-:-;; 23354 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23355 esac 23356 ac_save_IFS=$IFS 23357 IFS=: 23358 set x $ac_tag 23359 IFS=$ac_save_IFS 23360 shift 23361 ac_file=$1 23362 shift 23363 23364 case $ac_mode in 23365 :L) ac_source=$1;; 23366 :[FH]) 23367 ac_file_inputs= 23368 for ac_f 23369 do 23370 case $ac_f in 23371 -) ac_f="$tmp/stdin";; 23372 *) # Look for the file first in the build tree, then in the source tree 23373 # (if the path is not absolute). The absolute path cannot be DOS-style, 23374 # because $ac_f cannot contain `:'. 23375 test -f "$ac_f" || 23376 case $ac_f in 23377 [\\/$]*) false;; 23378 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23379 esac || 23380 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 23381$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 23382 { (exit 1); exit 1; }; };; 23383 esac 23384 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23385 ac_file_inputs="$ac_file_inputs '$ac_f'" 23386 done 23387 23388 # Let's still pretend it is `configure' which instantiates (i.e., don't 23389 # use $as_me), people would be surprised to read: 23390 # /* config.h. Generated by config.status. */ 23391 configure_input='Generated from '` 23392 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23393 `' by configure.' 23394 if test x"$ac_file" != x-; then 23395 configure_input="$ac_file. $configure_input" 23396 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 23397$as_echo "$as_me: creating $ac_file" >&6;} 23398 fi 23399 # Neutralize special characters interpreted by sed in replacement strings. 23400 case $configure_input in #( 23401 *\&* | *\|* | *\\* ) 23402 ac_sed_conf_input=`$as_echo "$configure_input" | 23403 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23404 *) ac_sed_conf_input=$configure_input;; 23405 esac 23406 23407 case $ac_tag in 23408 *:-:* | *:-) cat >"$tmp/stdin" \ 23409 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23410$as_echo "$as_me: error: could not create $ac_file" >&2;} 23411 { (exit 1); exit 1; }; } ;; 23412 esac 23413 ;; 23414 esac 23415 23416 ac_dir=`$as_dirname -- "$ac_file" || 23417$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23418 X"$ac_file" : 'X\(//\)[^/]' \| \ 23419 X"$ac_file" : 'X\(//\)$' \| \ 23420 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23421$as_echo X"$ac_file" | 23422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23423 s//\1/ 23424 q 23425 } 23426 /^X\(\/\/\)[^/].*/{ 23427 s//\1/ 23428 q 23429 } 23430 /^X\(\/\/\)$/{ 23431 s//\1/ 23432 q 23433 } 23434 /^X\(\/\).*/{ 23435 s//\1/ 23436 q 23437 } 23438 s/.*/./; q'` 23439 { as_dir="$ac_dir" 23440 case $as_dir in #( 23441 -*) as_dir=./$as_dir;; 23442 esac 23443 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23444 as_dirs= 23445 while :; do 23446 case $as_dir in #( 23447 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23448 *) as_qdir=$as_dir;; 23449 esac 23450 as_dirs="'$as_qdir' $as_dirs" 23451 as_dir=`$as_dirname -- "$as_dir" || 23452$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23453 X"$as_dir" : 'X\(//\)[^/]' \| \ 23454 X"$as_dir" : 'X\(//\)$' \| \ 23455 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23456$as_echo X"$as_dir" | 23457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23458 s//\1/ 23459 q 23460 } 23461 /^X\(\/\/\)[^/].*/{ 23462 s//\1/ 23463 q 23464 } 23465 /^X\(\/\/\)$/{ 23466 s//\1/ 23467 q 23468 } 23469 /^X\(\/\).*/{ 23470 s//\1/ 23471 q 23472 } 23473 s/.*/./; q'` 23474 test -d "$as_dir" && break 23475 done 23476 test -z "$as_dirs" || eval "mkdir $as_dirs" 23477 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23478$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 23479 { (exit 1); exit 1; }; }; } 23480 ac_builddir=. 23481 23482case "$ac_dir" in 23483.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23484*) 23485 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 23486 # A ".." for each directory in $ac_dir_suffix. 23487 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23488 case $ac_top_builddir_sub in 23489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23491 esac ;; 23492esac 23493ac_abs_top_builddir=$ac_pwd 23494ac_abs_builddir=$ac_pwd$ac_dir_suffix 23495# for backward compatibility: 23496ac_top_builddir=$ac_top_build_prefix 23497 23498case $srcdir in 23499 .) # We are building in place. 23500 ac_srcdir=. 23501 ac_top_srcdir=$ac_top_builddir_sub 23502 ac_abs_top_srcdir=$ac_pwd ;; 23503 [\\/]* | ?:[\\/]* ) # Absolute name. 23504 ac_srcdir=$srcdir$ac_dir_suffix; 23505 ac_top_srcdir=$srcdir 23506 ac_abs_top_srcdir=$srcdir ;; 23507 *) # Relative name. 23508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23509 ac_top_srcdir=$ac_top_build_prefix$srcdir 23510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23511esac 23512ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23513 23514 23515 case $ac_mode in 23516 :F) 23517 # 23518 # CONFIG_FILE 23519 # 23520 23521 case $INSTALL in 23522 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23523 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23524 esac 23525 ac_MKDIR_P=$MKDIR_P 23526 case $MKDIR_P in 23527 [\\/$]* | ?:[\\/]* ) ;; 23528 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23529 esac 23530_ACEOF 23531 23532cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23533# If the template does not know about datarootdir, expand it. 23534# FIXME: This hack should be removed a few years after 2.60. 23535ac_datarootdir_hack=; ac_datarootdir_seen= 23536 23537ac_sed_dataroot=' 23538/datarootdir/ { 23539 p 23540 q 23541} 23542/@datadir@/p 23543/@docdir@/p 23544/@infodir@/p 23545/@localedir@/p 23546/@mandir@/p 23547' 23548case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23549*datarootdir*) ac_datarootdir_seen=yes;; 23550*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23551 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23552$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23553_ACEOF 23554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23555 ac_datarootdir_hack=' 23556 s&@datadir@&$datadir&g 23557 s&@docdir@&$docdir&g 23558 s&@infodir@&$infodir&g 23559 s&@localedir@&$localedir&g 23560 s&@mandir@&$mandir&g 23561 s&\\\${datarootdir}&$datarootdir&g' ;; 23562esac 23563_ACEOF 23564 23565# Neutralize VPATH when `$srcdir' = `.'. 23566# Shell code in configure.ac might set extrasub. 23567# FIXME: do we really want to maintain this feature? 23568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23569ac_sed_extra="$ac_vpsub 23570$extrasub 23571_ACEOF 23572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23573:t 23574/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23575s|@configure_input@|$ac_sed_conf_input|;t t 23576s&@top_builddir@&$ac_top_builddir_sub&;t t 23577s&@top_build_prefix@&$ac_top_build_prefix&;t t 23578s&@srcdir@&$ac_srcdir&;t t 23579s&@abs_srcdir@&$ac_abs_srcdir&;t t 23580s&@top_srcdir@&$ac_top_srcdir&;t t 23581s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23582s&@builddir@&$ac_builddir&;t t 23583s&@abs_builddir@&$ac_abs_builddir&;t t 23584s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23585s&@INSTALL@&$ac_INSTALL&;t t 23586s&@MKDIR_P@&$ac_MKDIR_P&;t t 23587$ac_datarootdir_hack 23588" 23589eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 23590 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23591$as_echo "$as_me: error: could not create $ac_file" >&2;} 23592 { (exit 1); exit 1; }; } 23593 23594test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23595 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23596 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23597 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23598which seems to be undefined. Please make sure it is defined." >&5 23599$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23600which seems to be undefined. Please make sure it is defined." >&2;} 23601 23602 rm -f "$tmp/stdin" 23603 case $ac_file in 23604 -) cat "$tmp/out" && rm -f "$tmp/out";; 23605 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 23606 esac \ 23607 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23608$as_echo "$as_me: error: could not create $ac_file" >&2;} 23609 { (exit 1); exit 1; }; } 23610 ;; 23611 :H) 23612 # 23613 # CONFIG_HEADER 23614 # 23615 if test x"$ac_file" != x-; then 23616 { 23617 $as_echo "/* $configure_input */" \ 23618 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 23619 } >"$tmp/config.h" \ 23620 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23621$as_echo "$as_me: error: could not create $ac_file" >&2;} 23622 { (exit 1); exit 1; }; } 23623 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 23624 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23625$as_echo "$as_me: $ac_file is unchanged" >&6;} 23626 else 23627 rm -f "$ac_file" 23628 mv "$tmp/config.h" "$ac_file" \ 23629 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23630$as_echo "$as_me: error: could not create $ac_file" >&2;} 23631 { (exit 1); exit 1; }; } 23632 fi 23633 else 23634 $as_echo "/* $configure_input */" \ 23635 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 23636 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 23637$as_echo "$as_me: error: could not create -" >&2;} 23638 { (exit 1); exit 1; }; } 23639 fi 23640# Compute "$ac_file"'s index in $config_headers. 23641_am_arg="$ac_file" 23642_am_stamp_count=1 23643for _am_header in $config_headers :; do 23644 case $_am_header in 23645 $_am_arg | $_am_arg:* ) 23646 break ;; 23647 * ) 23648 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23649 esac 23650done 23651echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23652$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23653 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23654 X"$_am_arg" : 'X\(//\)$' \| \ 23655 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23656$as_echo X"$_am_arg" | 23657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23658 s//\1/ 23659 q 23660 } 23661 /^X\(\/\/\)[^/].*/{ 23662 s//\1/ 23663 q 23664 } 23665 /^X\(\/\/\)$/{ 23666 s//\1/ 23667 q 23668 } 23669 /^X\(\/\).*/{ 23670 s//\1/ 23671 q 23672 } 23673 s/.*/./; q'`/stamp-h$_am_stamp_count 23674 ;; 23675 23676 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 23677$as_echo "$as_me: executing $ac_file commands" >&6;} 23678 ;; 23679 esac 23680 23681 23682 case $ac_file$ac_mode in 23683 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 23684 # Autoconf 2.62 quotes --file arguments for eval, but not when files 23685 # are listed without --file. Let's play safe and only enable the eval 23686 # if we detect the quoting. 23687 case $CONFIG_FILES in 23688 *\'*) eval set x "$CONFIG_FILES" ;; 23689 *) set x $CONFIG_FILES ;; 23690 esac 23691 shift 23692 for mf 23693 do 23694 # Strip MF so we end up with the name of the file. 23695 mf=`echo "$mf" | sed -e 's/:.*$//'` 23696 # Check whether this is an Automake generated Makefile or not. 23697 # We used to match only the files named `Makefile.in', but 23698 # some people rename them; so instead we look at the file content. 23699 # Grep'ing the first line is not enough: some people post-process 23700 # each Makefile.in and add a new line on top of each file to say so. 23701 # Grep'ing the whole file is not good either: AIX grep has a line 23702 # limit of 2048, but all sed's we know have understand at least 4000. 23703 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 23704 dirpart=`$as_dirname -- "$mf" || 23705$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23706 X"$mf" : 'X\(//\)[^/]' \| \ 23707 X"$mf" : 'X\(//\)$' \| \ 23708 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23709$as_echo X"$mf" | 23710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23711 s//\1/ 23712 q 23713 } 23714 /^X\(\/\/\)[^/].*/{ 23715 s//\1/ 23716 q 23717 } 23718 /^X\(\/\/\)$/{ 23719 s//\1/ 23720 q 23721 } 23722 /^X\(\/\).*/{ 23723 s//\1/ 23724 q 23725 } 23726 s/.*/./; q'` 23727 else 23728 continue 23729 fi 23730 # Extract the definition of DEPDIR, am__include, and am__quote 23731 # from the Makefile without running `make'. 23732 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23733 test -z "$DEPDIR" && continue 23734 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23735 test -z "am__include" && continue 23736 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23737 # When using ansi2knr, U may be empty or an underscore; expand it 23738 U=`sed -n 's/^U = //p' < "$mf"` 23739 # Find all dependency output files, they are included files with 23740 # $(DEPDIR) in their names. We invoke sed twice because it is the 23741 # simplest approach to changing $(DEPDIR) to its actual value in the 23742 # expansion. 23743 for file in `sed -n " 23744 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23745 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23746 # Make sure the directory exists. 23747 test -f "$dirpart/$file" && continue 23748 fdir=`$as_dirname -- "$file" || 23749$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23750 X"$file" : 'X\(//\)[^/]' \| \ 23751 X"$file" : 'X\(//\)$' \| \ 23752 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23753$as_echo X"$file" | 23754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23755 s//\1/ 23756 q 23757 } 23758 /^X\(\/\/\)[^/].*/{ 23759 s//\1/ 23760 q 23761 } 23762 /^X\(\/\/\)$/{ 23763 s//\1/ 23764 q 23765 } 23766 /^X\(\/\).*/{ 23767 s//\1/ 23768 q 23769 } 23770 s/.*/./; q'` 23771 { as_dir=$dirpart/$fdir 23772 case $as_dir in #( 23773 -*) as_dir=./$as_dir;; 23774 esac 23775 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23776 as_dirs= 23777 while :; do 23778 case $as_dir in #( 23779 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23780 *) as_qdir=$as_dir;; 23781 esac 23782 as_dirs="'$as_qdir' $as_dirs" 23783 as_dir=`$as_dirname -- "$as_dir" || 23784$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23785 X"$as_dir" : 'X\(//\)[^/]' \| \ 23786 X"$as_dir" : 'X\(//\)$' \| \ 23787 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23788$as_echo X"$as_dir" | 23789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23790 s//\1/ 23791 q 23792 } 23793 /^X\(\/\/\)[^/].*/{ 23794 s//\1/ 23795 q 23796 } 23797 /^X\(\/\/\)$/{ 23798 s//\1/ 23799 q 23800 } 23801 /^X\(\/\).*/{ 23802 s//\1/ 23803 q 23804 } 23805 s/.*/./; q'` 23806 test -d "$as_dir" && break 23807 done 23808 test -z "$as_dirs" || eval "mkdir $as_dirs" 23809 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23810$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 23811 { (exit 1); exit 1; }; }; } 23812 # echo "creating $dirpart/$file" 23813 echo '# dummy' > "$dirpart/$file" 23814 done 23815 done 23816} 23817 ;; 23818 23819 esac 23820done # for ac_tag 23821 23822 23823{ (exit 0); exit 0; } 23824_ACEOF 23825chmod +x $CONFIG_STATUS 23826ac_clean_files=$ac_clean_files_save 23827 23828test $ac_write_fail = 0 || 23829 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 23830$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 23831 { (exit 1); exit 1; }; } 23832 23833 23834# configure is writing to config.log, and then calls config.status. 23835# config.status does its own redirection, appending to config.log. 23836# Unfortunately, on DOS this fails, as config.log is still kept open 23837# by configure, so config.status won't be able to write to it; its 23838# output is simply discarded. So we exec the FD to /dev/null, 23839# effectively closing config.log, so it can be properly (re)opened and 23840# appended to by config.status. When coming back to configure, we 23841# need to make the FD available again. 23842if test "$no_create" != yes; then 23843 ac_cs_success=: 23844 ac_config_status_args= 23845 test "$silent" = yes && 23846 ac_config_status_args="$ac_config_status_args --quiet" 23847 exec 5>/dev/null 23848 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23849 exec 5>>config.log 23850 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23851 # would make configure fail if this is the last instruction. 23852 $ac_cs_success || { (exit 1); exit 1; } 23853fi 23854if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23855 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23856$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23857fi 23858 23859