configure revision b15a006b
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for xf86-input-vmmouse 12.6.5. 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-input-vmmouse' 752PACKAGE_TARNAME='xf86-input-vmmouse' 753PACKAGE_VERSION='12.6.5' 754PACKAGE_STRING='xf86-input-vmmouse 12.6.5' 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='LTLIBOBJS 795LIBOBJS 796ADMIN_MAN_DIR 797DRIVER_MAN_DIR 798MISC_MAN_DIR 799FILE_MAN_DIR 800LIB_MAN_DIR 801APP_MAN_DIR 802ADMIN_MAN_SUFFIX 803DRIVER_MAN_SUFFIX 804MISC_MAN_SUFFIX 805FILE_MAN_SUFFIX 806LIB_MAN_SUFFIX 807APP_MAN_SUFFIX 808XORG_LIBS 809XORG_CFLAGS 810PKG_CONFIG 811HAL_FDI_DIR 812HAL_CALLOUTS_DIR 813HAL_BIN_DIR 814inputdir 815LIBTOOL 816ac_ct_F77 817FFLAGS 818F77 819CXXCPP 820am__fastdepCXX_FALSE 821am__fastdepCXX_TRUE 822CXXDEPMODE 823ac_ct_CXX 824CXXFLAGS 825CXX 826CPP 827NMEDIT 828DSYMUTIL 829RANLIB 830AR 831ECHO 832LN_S 833EGREP 834GREP 835SED 836am__fastdepCC_FALSE 837am__fastdepCC_TRUE 838CCDEPMODE 839AMDEPBACKSLASH 840AMDEP_FALSE 841AMDEP_TRUE 842am__quote 843am__include 844DEPDIR 845OBJEXT 846EXEEXT 847ac_ct_CC 848CPPFLAGS 849LDFLAGS 850CFLAGS 851CC 852host_os 853host_vendor 854host_cpu 855host 856build_os 857build_vendor 858build_cpu 859build 860DRIVER_NAME 861MAINT 862MAINTAINER_MODE_FALSE 863MAINTAINER_MODE_TRUE 864am__untar 865am__tar 866AMTAR 867am__leading_dot 868SET_MAKE 869AWK 870mkdir_p 871MKDIR_P 872INSTALL_STRIP_PROGRAM 873STRIP 874install_sh 875MAKEINFO 876AUTOHEADER 877AUTOMAKE 878AUTOCONF 879ACLOCAL 880VERSION 881PACKAGE 882CYGPATH_W 883am__isrc 884INSTALL_DATA 885INSTALL_SCRIPT 886INSTALL_PROGRAM 887target_alias 888host_alias 889build_alias 890LIBS 891ECHO_T 892ECHO_N 893ECHO_C 894DEFS 895mandir 896localedir 897libdir 898psdir 899pdfdir 900dvidir 901htmldir 902infodir 903docdir 904oldincludedir 905includedir 906localstatedir 907sharedstatedir 908sysconfdir 909datadir 910datarootdir 911libexecdir 912sbindir 913bindir 914program_transform_name 915prefix 916exec_prefix 917PACKAGE_BUGREPORT 918PACKAGE_STRING 919PACKAGE_VERSION 920PACKAGE_TARNAME 921PACKAGE_NAME 922PATH_SEPARATOR 923SHELL' 924ac_subst_files='' 925ac_user_opts=' 926enable_option_checking 927enable_maintainer_mode 928enable_static 929enable_shared 930enable_fast_install 931enable_dependency_tracking 932with_gnu_ld 933enable_libtool_lock 934with_pic 935with_tags 936with_xorg_module_dir 937with_hal_bin_dir 938with_hal_callouts_dir 939with_hal_fdi_dir 940with_release_version 941' 942 ac_precious_vars='build_alias 943host_alias 944target_alias 945CC 946CFLAGS 947LDFLAGS 948LIBS 949CPPFLAGS 950CPP 951CXX 952CXXFLAGS 953CCC 954CXXCPP 955F77 956FFLAGS 957PKG_CONFIG 958XORG_CFLAGS 959XORG_LIBS' 960 961 962# Initialize some variables set by options. 963ac_init_help= 964ac_init_version=false 965ac_unrecognized_opts= 966ac_unrecognized_sep= 967# The variables have the same names as the options, with 968# dashes changed to underlines. 969cache_file=/dev/null 970exec_prefix=NONE 971no_create= 972no_recursion= 973prefix=NONE 974program_prefix=NONE 975program_suffix=NONE 976program_transform_name=s,x,x, 977silent= 978site= 979srcdir= 980verbose= 981x_includes=NONE 982x_libraries=NONE 983 984# Installation directory options. 985# These are left unexpanded so users can "make install exec_prefix=/foo" 986# and all the variables that are supposed to be based on exec_prefix 987# by default will actually change. 988# Use braces instead of parens because sh, perl, etc. also accept them. 989# (The list follows the same order as the GNU Coding Standards.) 990bindir='${exec_prefix}/bin' 991sbindir='${exec_prefix}/sbin' 992libexecdir='${exec_prefix}/libexec' 993datarootdir='${prefix}/share' 994datadir='${datarootdir}' 995sysconfdir='${prefix}/etc' 996sharedstatedir='${prefix}/com' 997localstatedir='${prefix}/var' 998includedir='${prefix}/include' 999oldincludedir='/usr/include' 1000docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1001infodir='${datarootdir}/info' 1002htmldir='${docdir}' 1003dvidir='${docdir}' 1004pdfdir='${docdir}' 1005psdir='${docdir}' 1006libdir='${exec_prefix}/lib' 1007localedir='${datarootdir}/locale' 1008mandir='${datarootdir}/man' 1009 1010ac_prev= 1011ac_dashdash= 1012for ac_option 1013do 1014 # If the previous option needs an argument, assign it. 1015 if test -n "$ac_prev"; then 1016 eval $ac_prev=\$ac_option 1017 ac_prev= 1018 continue 1019 fi 1020 1021 case $ac_option in 1022 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1023 *) ac_optarg=yes ;; 1024 esac 1025 1026 # Accept the important Cygnus configure options, so we can diagnose typos. 1027 1028 case $ac_dashdash$ac_option in 1029 --) 1030 ac_dashdash=yes ;; 1031 1032 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1033 ac_prev=bindir ;; 1034 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1035 bindir=$ac_optarg ;; 1036 1037 -build | --build | --buil | --bui | --bu) 1038 ac_prev=build_alias ;; 1039 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1040 build_alias=$ac_optarg ;; 1041 1042 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1043 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1044 ac_prev=cache_file ;; 1045 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1046 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1047 cache_file=$ac_optarg ;; 1048 1049 --config-cache | -C) 1050 cache_file=config.cache ;; 1051 1052 -datadir | --datadir | --datadi | --datad) 1053 ac_prev=datadir ;; 1054 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1055 datadir=$ac_optarg ;; 1056 1057 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1058 | --dataroo | --dataro | --datar) 1059 ac_prev=datarootdir ;; 1060 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1061 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1062 datarootdir=$ac_optarg ;; 1063 1064 -disable-* | --disable-*) 1065 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1066 # Reject names that are not valid shell variable names. 1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1068 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1069 { (exit 1); exit 1; }; } 1070 ac_useropt_orig=$ac_useropt 1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1072 case $ac_user_opts in 1073 *" 1074"enable_$ac_useropt" 1075"*) ;; 1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1077 ac_unrecognized_sep=', ';; 1078 esac 1079 eval enable_$ac_useropt=no ;; 1080 1081 -docdir | --docdir | --docdi | --doc | --do) 1082 ac_prev=docdir ;; 1083 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1084 docdir=$ac_optarg ;; 1085 1086 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1087 ac_prev=dvidir ;; 1088 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1089 dvidir=$ac_optarg ;; 1090 1091 -enable-* | --enable-*) 1092 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1093 # Reject names that are not valid shell variable names. 1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1095 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1096 { (exit 1); exit 1; }; } 1097 ac_useropt_orig=$ac_useropt 1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1099 case $ac_user_opts in 1100 *" 1101"enable_$ac_useropt" 1102"*) ;; 1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1104 ac_unrecognized_sep=', ';; 1105 esac 1106 eval enable_$ac_useropt=\$ac_optarg ;; 1107 1108 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1109 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1110 | --exec | --exe | --ex) 1111 ac_prev=exec_prefix ;; 1112 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1113 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1114 | --exec=* | --exe=* | --ex=*) 1115 exec_prefix=$ac_optarg ;; 1116 1117 -gas | --gas | --ga | --g) 1118 # Obsolete; use --with-gas. 1119 with_gas=yes ;; 1120 1121 -help | --help | --hel | --he | -h) 1122 ac_init_help=long ;; 1123 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1124 ac_init_help=recursive ;; 1125 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1126 ac_init_help=short ;; 1127 1128 -host | --host | --hos | --ho) 1129 ac_prev=host_alias ;; 1130 -host=* | --host=* | --hos=* | --ho=*) 1131 host_alias=$ac_optarg ;; 1132 1133 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1134 ac_prev=htmldir ;; 1135 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1136 | --ht=*) 1137 htmldir=$ac_optarg ;; 1138 1139 -includedir | --includedir | --includedi | --included | --include \ 1140 | --includ | --inclu | --incl | --inc) 1141 ac_prev=includedir ;; 1142 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1143 | --includ=* | --inclu=* | --incl=* | --inc=*) 1144 includedir=$ac_optarg ;; 1145 1146 -infodir | --infodir | --infodi | --infod | --info | --inf) 1147 ac_prev=infodir ;; 1148 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1149 infodir=$ac_optarg ;; 1150 1151 -libdir | --libdir | --libdi | --libd) 1152 ac_prev=libdir ;; 1153 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1154 libdir=$ac_optarg ;; 1155 1156 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1157 | --libexe | --libex | --libe) 1158 ac_prev=libexecdir ;; 1159 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1160 | --libexe=* | --libex=* | --libe=*) 1161 libexecdir=$ac_optarg ;; 1162 1163 -localedir | --localedir | --localedi | --localed | --locale) 1164 ac_prev=localedir ;; 1165 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1166 localedir=$ac_optarg ;; 1167 1168 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1169 | --localstate | --localstat | --localsta | --localst | --locals) 1170 ac_prev=localstatedir ;; 1171 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1172 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1173 localstatedir=$ac_optarg ;; 1174 1175 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1176 ac_prev=mandir ;; 1177 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1178 mandir=$ac_optarg ;; 1179 1180 -nfp | --nfp | --nf) 1181 # Obsolete; use --without-fp. 1182 with_fp=no ;; 1183 1184 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1185 | --no-cr | --no-c | -n) 1186 no_create=yes ;; 1187 1188 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1189 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1190 no_recursion=yes ;; 1191 1192 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1193 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1194 | --oldin | --oldi | --old | --ol | --o) 1195 ac_prev=oldincludedir ;; 1196 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1197 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1198 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1199 oldincludedir=$ac_optarg ;; 1200 1201 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1202 ac_prev=prefix ;; 1203 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1204 prefix=$ac_optarg ;; 1205 1206 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1207 | --program-pre | --program-pr | --program-p) 1208 ac_prev=program_prefix ;; 1209 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1210 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1211 program_prefix=$ac_optarg ;; 1212 1213 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1214 | --program-suf | --program-su | --program-s) 1215 ac_prev=program_suffix ;; 1216 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1217 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1218 program_suffix=$ac_optarg ;; 1219 1220 -program-transform-name | --program-transform-name \ 1221 | --program-transform-nam | --program-transform-na \ 1222 | --program-transform-n | --program-transform- \ 1223 | --program-transform | --program-transfor \ 1224 | --program-transfo | --program-transf \ 1225 | --program-trans | --program-tran \ 1226 | --progr-tra | --program-tr | --program-t) 1227 ac_prev=program_transform_name ;; 1228 -program-transform-name=* | --program-transform-name=* \ 1229 | --program-transform-nam=* | --program-transform-na=* \ 1230 | --program-transform-n=* | --program-transform-=* \ 1231 | --program-transform=* | --program-transfor=* \ 1232 | --program-transfo=* | --program-transf=* \ 1233 | --program-trans=* | --program-tran=* \ 1234 | --progr-tra=* | --program-tr=* | --program-t=*) 1235 program_transform_name=$ac_optarg ;; 1236 1237 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1238 ac_prev=pdfdir ;; 1239 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1240 pdfdir=$ac_optarg ;; 1241 1242 -psdir | --psdir | --psdi | --psd | --ps) 1243 ac_prev=psdir ;; 1244 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1245 psdir=$ac_optarg ;; 1246 1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1248 | -silent | --silent | --silen | --sile | --sil) 1249 silent=yes ;; 1250 1251 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1252 ac_prev=sbindir ;; 1253 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1254 | --sbi=* | --sb=*) 1255 sbindir=$ac_optarg ;; 1256 1257 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1258 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1259 | --sharedst | --shareds | --shared | --share | --shar \ 1260 | --sha | --sh) 1261 ac_prev=sharedstatedir ;; 1262 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1263 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1264 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1265 | --sha=* | --sh=*) 1266 sharedstatedir=$ac_optarg ;; 1267 1268 -site | --site | --sit) 1269 ac_prev=site ;; 1270 -site=* | --site=* | --sit=*) 1271 site=$ac_optarg ;; 1272 1273 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1274 ac_prev=srcdir ;; 1275 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1276 srcdir=$ac_optarg ;; 1277 1278 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1279 | --syscon | --sysco | --sysc | --sys | --sy) 1280 ac_prev=sysconfdir ;; 1281 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1282 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1283 sysconfdir=$ac_optarg ;; 1284 1285 -target | --target | --targe | --targ | --tar | --ta | --t) 1286 ac_prev=target_alias ;; 1287 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1288 target_alias=$ac_optarg ;; 1289 1290 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1291 verbose=yes ;; 1292 1293 -version | --version | --versio | --versi | --vers | -V) 1294 ac_init_version=: ;; 1295 1296 -with-* | --with-*) 1297 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1298 # Reject names that are not valid shell variable names. 1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1300 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1301 { (exit 1); exit 1; }; } 1302 ac_useropt_orig=$ac_useropt 1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1304 case $ac_user_opts in 1305 *" 1306"with_$ac_useropt" 1307"*) ;; 1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1309 ac_unrecognized_sep=', ';; 1310 esac 1311 eval with_$ac_useropt=\$ac_optarg ;; 1312 1313 -without-* | --without-*) 1314 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1315 # Reject names that are not valid shell variable names. 1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1317 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1318 { (exit 1); exit 1; }; } 1319 ac_useropt_orig=$ac_useropt 1320 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1321 case $ac_user_opts in 1322 *" 1323"with_$ac_useropt" 1324"*) ;; 1325 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1326 ac_unrecognized_sep=', ';; 1327 esac 1328 eval with_$ac_useropt=no ;; 1329 1330 --x) 1331 # Obsolete; use --with-x. 1332 with_x=yes ;; 1333 1334 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1335 | --x-incl | --x-inc | --x-in | --x-i) 1336 ac_prev=x_includes ;; 1337 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1338 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1339 x_includes=$ac_optarg ;; 1340 1341 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1342 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1343 ac_prev=x_libraries ;; 1344 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1345 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1346 x_libraries=$ac_optarg ;; 1347 1348 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1349Try \`$0 --help' for more information." >&2 1350 { (exit 1); exit 1; }; } 1351 ;; 1352 1353 *=*) 1354 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1355 # Reject names that are not valid shell variable names. 1356 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1357 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1358 { (exit 1); exit 1; }; } 1359 eval $ac_envvar=\$ac_optarg 1360 export $ac_envvar ;; 1361 1362 *) 1363 # FIXME: should be removed in autoconf 3.0. 1364 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1365 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1366 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1367 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1368 ;; 1369 1370 esac 1371done 1372 1373if test -n "$ac_prev"; then 1374 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1375 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1376 { (exit 1); exit 1; }; } 1377fi 1378 1379if test -n "$ac_unrecognized_opts"; then 1380 case $enable_option_checking in 1381 no) ;; 1382 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1383 { (exit 1); exit 1; }; } ;; 1384 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1385 esac 1386fi 1387 1388# Check all directory arguments for consistency. 1389for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1390 datadir sysconfdir sharedstatedir localstatedir includedir \ 1391 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1392 libdir localedir mandir 1393do 1394 eval ac_val=\$$ac_var 1395 # Remove trailing slashes. 1396 case $ac_val in 1397 */ ) 1398 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1399 eval $ac_var=\$ac_val;; 1400 esac 1401 # Be sure to have absolute directory names. 1402 case $ac_val in 1403 [\\/$]* | ?:[\\/]* ) continue;; 1404 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1405 esac 1406 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1407 { (exit 1); exit 1; }; } 1408done 1409 1410# There might be people who depend on the old broken behavior: `$host' 1411# used to hold the argument of --host etc. 1412# FIXME: To remove some day. 1413build=$build_alias 1414host=$host_alias 1415target=$target_alias 1416 1417# FIXME: To remove some day. 1418if test "x$host_alias" != x; then 1419 if test "x$build_alias" = x; then 1420 cross_compiling=maybe 1421 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1422 If a cross compiler is detected then cross compile mode will be used." >&2 1423 elif test "x$build_alias" != "x$host_alias"; then 1424 cross_compiling=yes 1425 fi 1426fi 1427 1428ac_tool_prefix= 1429test -n "$host_alias" && ac_tool_prefix=$host_alias- 1430 1431test "$silent" = yes && exec 6>/dev/null 1432 1433 1434ac_pwd=`pwd` && test -n "$ac_pwd" && 1435ac_ls_di=`ls -di .` && 1436ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1437 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1438 { (exit 1); exit 1; }; } 1439test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1440 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1441 { (exit 1); exit 1; }; } 1442 1443 1444# Find the source files, if location was not specified. 1445if test -z "$srcdir"; then 1446 ac_srcdir_defaulted=yes 1447 # Try the directory containing this script, then the parent directory. 1448 ac_confdir=`$as_dirname -- "$as_myself" || 1449$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1450 X"$as_myself" : 'X\(//\)[^/]' \| \ 1451 X"$as_myself" : 'X\(//\)$' \| \ 1452 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1453$as_echo X"$as_myself" | 1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1455 s//\1/ 1456 q 1457 } 1458 /^X\(\/\/\)[^/].*/{ 1459 s//\1/ 1460 q 1461 } 1462 /^X\(\/\/\)$/{ 1463 s//\1/ 1464 q 1465 } 1466 /^X\(\/\).*/{ 1467 s//\1/ 1468 q 1469 } 1470 s/.*/./; q'` 1471 srcdir=$ac_confdir 1472 if test ! -r "$srcdir/$ac_unique_file"; then 1473 srcdir=.. 1474 fi 1475else 1476 ac_srcdir_defaulted=no 1477fi 1478if test ! -r "$srcdir/$ac_unique_file"; then 1479 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1480 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1481 { (exit 1); exit 1; }; } 1482fi 1483ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1484ac_abs_confdir=`( 1485 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1486 { (exit 1); exit 1; }; } 1487 pwd)` 1488# When building in place, set srcdir=. 1489if test "$ac_abs_confdir" = "$ac_pwd"; then 1490 srcdir=. 1491fi 1492# Remove unnecessary trailing slashes from srcdir. 1493# Double slashes in file names in object file debugging info 1494# mess up M-x gdb in Emacs. 1495case $srcdir in 1496*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1497esac 1498for ac_var in $ac_precious_vars; do 1499 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1500 eval ac_env_${ac_var}_value=\$${ac_var} 1501 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1502 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1503done 1504 1505# 1506# Report the --help message. 1507# 1508if test "$ac_init_help" = "long"; then 1509 # Omit some internal or obsolete options to make the list less imposing. 1510 # This message is too long to be a string in the A/UX 3.1 sh. 1511 cat <<_ACEOF 1512\`configure' configures xf86-input-vmmouse 12.6.5 to adapt to many kinds of systems. 1513 1514Usage: $0 [OPTION]... [VAR=VALUE]... 1515 1516To assign environment variables (e.g., CC, CFLAGS...), specify them as 1517VAR=VALUE. See below for descriptions of some of the useful variables. 1518 1519Defaults for the options are specified in brackets. 1520 1521Configuration: 1522 -h, --help display this help and exit 1523 --help=short display options specific to this package 1524 --help=recursive display the short help of all the included packages 1525 -V, --version display version information and exit 1526 -q, --quiet, --silent do not print \`checking...' messages 1527 --cache-file=FILE cache test results in FILE [disabled] 1528 -C, --config-cache alias for \`--cache-file=config.cache' 1529 -n, --no-create do not create output files 1530 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1531 1532Installation directories: 1533 --prefix=PREFIX install architecture-independent files in PREFIX 1534 [$ac_default_prefix] 1535 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1536 [PREFIX] 1537 1538By default, \`make install' will install all the files in 1539\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1540an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1541for instance \`--prefix=\$HOME'. 1542 1543For better control, use the options below. 1544 1545Fine tuning of the installation directories: 1546 --bindir=DIR user executables [EPREFIX/bin] 1547 --sbindir=DIR system admin executables [EPREFIX/sbin] 1548 --libexecdir=DIR program executables [EPREFIX/libexec] 1549 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1550 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1551 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1552 --libdir=DIR object code libraries [EPREFIX/lib] 1553 --includedir=DIR C header files [PREFIX/include] 1554 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1555 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1556 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1557 --infodir=DIR info documentation [DATAROOTDIR/info] 1558 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1559 --mandir=DIR man documentation [DATAROOTDIR/man] 1560 --docdir=DIR documentation root 1561 [DATAROOTDIR/doc/xf86-input-vmmouse] 1562 --htmldir=DIR html documentation [DOCDIR] 1563 --dvidir=DIR dvi documentation [DOCDIR] 1564 --pdfdir=DIR pdf documentation [DOCDIR] 1565 --psdir=DIR ps documentation [DOCDIR] 1566_ACEOF 1567 1568 cat <<\_ACEOF 1569 1570Program names: 1571 --program-prefix=PREFIX prepend PREFIX to installed program names 1572 --program-suffix=SUFFIX append SUFFIX to installed program names 1573 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1574 1575System types: 1576 --build=BUILD configure for building on BUILD [guessed] 1577 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1578_ACEOF 1579fi 1580 1581if test -n "$ac_init_help"; then 1582 case $ac_init_help in 1583 short | recursive ) echo "Configuration of xf86-input-vmmouse 12.6.5:";; 1584 esac 1585 cat <<\_ACEOF 1586 1587Optional Features: 1588 --disable-option-checking ignore unrecognized --enable/--with options 1589 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1590 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1591 --enable-maintainer-mode enable make rules and dependencies not useful 1592 (and sometimes confusing) to the casual installer 1593 --enable-static[=PKGS] build static libraries [default=no] 1594 --enable-shared[=PKGS] build shared libraries [default=yes] 1595 --enable-fast-install[=PKGS] 1596 optimize for fast installation [default=yes] 1597 --disable-dependency-tracking speeds up one-time build 1598 --enable-dependency-tracking do not reject slow dependency extractors 1599 --disable-libtool-lock avoid locking (might break parallel builds) 1600 1601Optional Packages: 1602 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1603 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1604 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1605 --with-pic try to use only PIC/non-PIC objects [default=use 1606 both] 1607 --with-tags[=TAGS] include additional configurations [automatic] 1608 --with-xorg-module-dir=DIR 1609 Default xorg module directory 1610 [default=$libdir/xorg/modules] 1611 --with-hal-bin-dir=DIR Directory where HAL binaries where installed 1612 [default=$bindir] 1613 --with-hal-callouts-dir=DIR 1614 Directory where HAL expects its callout scripts to 1615 be located [default=$libdir/hal] 1616 --with-hal-fdi-dir=DIR Directory where HAL expects its fdi files to be 1617 located 1618 [default=$datadir/hal/fdi/policy/20thirdparty] 1619 --with-release-version=STRING 1620 Use release version string in package name 1621 1622Some influential environment variables: 1623 CC C compiler command 1624 CFLAGS C compiler flags 1625 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1626 nonstandard directory <lib dir> 1627 LIBS libraries to pass to the linker, e.g. -l<library> 1628 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1629 you have headers in a nonstandard directory <include dir> 1630 CPP C preprocessor 1631 CXX C++ compiler command 1632 CXXFLAGS C++ compiler flags 1633 CXXCPP C++ preprocessor 1634 F77 Fortran 77 compiler command 1635 FFLAGS Fortran 77 compiler flags 1636 PKG_CONFIG path to pkg-config utility 1637 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1638 XORG_LIBS linker flags for XORG, overriding pkg-config 1639 1640Use these variables to override the choices made by `configure' or to help 1641it to find libraries and programs with nonstandard names/locations. 1642 1643Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1644_ACEOF 1645ac_status=$? 1646fi 1647 1648if test "$ac_init_help" = "recursive"; then 1649 # If there are subdirs, report their specific --help. 1650 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1651 test -d "$ac_dir" || 1652 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1653 continue 1654 ac_builddir=. 1655 1656case "$ac_dir" in 1657.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1658*) 1659 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1660 # A ".." for each directory in $ac_dir_suffix. 1661 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1662 case $ac_top_builddir_sub in 1663 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1664 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1665 esac ;; 1666esac 1667ac_abs_top_builddir=$ac_pwd 1668ac_abs_builddir=$ac_pwd$ac_dir_suffix 1669# for backward compatibility: 1670ac_top_builddir=$ac_top_build_prefix 1671 1672case $srcdir in 1673 .) # We are building in place. 1674 ac_srcdir=. 1675 ac_top_srcdir=$ac_top_builddir_sub 1676 ac_abs_top_srcdir=$ac_pwd ;; 1677 [\\/]* | ?:[\\/]* ) # Absolute name. 1678 ac_srcdir=$srcdir$ac_dir_suffix; 1679 ac_top_srcdir=$srcdir 1680 ac_abs_top_srcdir=$srcdir ;; 1681 *) # Relative name. 1682 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1683 ac_top_srcdir=$ac_top_build_prefix$srcdir 1684 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1685esac 1686ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1687 1688 cd "$ac_dir" || { ac_status=$?; continue; } 1689 # Check for guested configure. 1690 if test -f "$ac_srcdir/configure.gnu"; then 1691 echo && 1692 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1693 elif test -f "$ac_srcdir/configure"; then 1694 echo && 1695 $SHELL "$ac_srcdir/configure" --help=recursive 1696 else 1697 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1698 fi || ac_status=$? 1699 cd "$ac_pwd" || { ac_status=$?; break; } 1700 done 1701fi 1702 1703test -n "$ac_init_help" && exit $ac_status 1704if $ac_init_version; then 1705 cat <<\_ACEOF 1706xf86-input-vmmouse configure 12.6.5 1707generated by GNU Autoconf 2.63 1708 1709Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17102002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1711This configure script is free software; the Free Software Foundation 1712gives unlimited permission to copy, distribute and modify it. 1713_ACEOF 1714 exit 1715fi 1716cat >config.log <<_ACEOF 1717This file contains any messages produced by compilers while 1718running configure, to aid debugging if configure makes a mistake. 1719 1720It was created by xf86-input-vmmouse $as_me 12.6.5, which was 1721generated by GNU Autoconf 2.63. Invocation command line was 1722 1723 $ $0 $@ 1724 1725_ACEOF 1726exec 5>>config.log 1727{ 1728cat <<_ASUNAME 1729## --------- ## 1730## Platform. ## 1731## --------- ## 1732 1733hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1734uname -m = `(uname -m) 2>/dev/null || echo unknown` 1735uname -r = `(uname -r) 2>/dev/null || echo unknown` 1736uname -s = `(uname -s) 2>/dev/null || echo unknown` 1737uname -v = `(uname -v) 2>/dev/null || echo unknown` 1738 1739/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1740/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1741 1742/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1743/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1744/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1745/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1746/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1747/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1748/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1749 1750_ASUNAME 1751 1752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1753for as_dir in $PATH 1754do 1755 IFS=$as_save_IFS 1756 test -z "$as_dir" && as_dir=. 1757 $as_echo "PATH: $as_dir" 1758done 1759IFS=$as_save_IFS 1760 1761} >&5 1762 1763cat >&5 <<_ACEOF 1764 1765 1766## ----------- ## 1767## Core tests. ## 1768## ----------- ## 1769 1770_ACEOF 1771 1772 1773# Keep a trace of the command line. 1774# Strip out --no-create and --no-recursion so they do not pile up. 1775# Strip out --silent because we don't want to record it for future runs. 1776# Also quote any args containing shell meta-characters. 1777# Make two passes to allow for proper duplicate-argument suppression. 1778ac_configure_args= 1779ac_configure_args0= 1780ac_configure_args1= 1781ac_must_keep_next=false 1782for ac_pass in 1 2 1783do 1784 for ac_arg 1785 do 1786 case $ac_arg in 1787 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1788 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1789 | -silent | --silent | --silen | --sile | --sil) 1790 continue ;; 1791 *\'*) 1792 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1793 esac 1794 case $ac_pass in 1795 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1796 2) 1797 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1798 if test $ac_must_keep_next = true; then 1799 ac_must_keep_next=false # Got value, back to normal. 1800 else 1801 case $ac_arg in 1802 *=* | --config-cache | -C | -disable-* | --disable-* \ 1803 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1804 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1805 | -with-* | --with-* | -without-* | --without-* | --x) 1806 case "$ac_configure_args0 " in 1807 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1808 esac 1809 ;; 1810 -* ) ac_must_keep_next=true ;; 1811 esac 1812 fi 1813 ac_configure_args="$ac_configure_args '$ac_arg'" 1814 ;; 1815 esac 1816 done 1817done 1818$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1819$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1820 1821# When interrupted or exit'd, cleanup temporary files, and complete 1822# config.log. We remove comments because anyway the quotes in there 1823# would cause problems or look ugly. 1824# WARNING: Use '\'' to represent an apostrophe within the trap. 1825# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1826trap 'exit_status=$? 1827 # Save into config.log some information that might help in debugging. 1828 { 1829 echo 1830 1831 cat <<\_ASBOX 1832## ---------------- ## 1833## Cache variables. ## 1834## ---------------- ## 1835_ASBOX 1836 echo 1837 # The following way of writing the cache mishandles newlines in values, 1838( 1839 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1840 eval ac_val=\$$ac_var 1841 case $ac_val in #( 1842 *${as_nl}*) 1843 case $ac_var in #( 1844 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1845$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1846 esac 1847 case $ac_var in #( 1848 _ | IFS | as_nl) ;; #( 1849 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1850 *) $as_unset $ac_var ;; 1851 esac ;; 1852 esac 1853 done 1854 (set) 2>&1 | 1855 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1856 *${as_nl}ac_space=\ *) 1857 sed -n \ 1858 "s/'\''/'\''\\\\'\'''\''/g; 1859 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1860 ;; #( 1861 *) 1862 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1863 ;; 1864 esac | 1865 sort 1866) 1867 echo 1868 1869 cat <<\_ASBOX 1870## ----------------- ## 1871## Output variables. ## 1872## ----------------- ## 1873_ASBOX 1874 echo 1875 for ac_var in $ac_subst_vars 1876 do 1877 eval ac_val=\$$ac_var 1878 case $ac_val in 1879 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1880 esac 1881 $as_echo "$ac_var='\''$ac_val'\''" 1882 done | sort 1883 echo 1884 1885 if test -n "$ac_subst_files"; then 1886 cat <<\_ASBOX 1887## ------------------- ## 1888## File substitutions. ## 1889## ------------------- ## 1890_ASBOX 1891 echo 1892 for ac_var in $ac_subst_files 1893 do 1894 eval ac_val=\$$ac_var 1895 case $ac_val in 1896 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1897 esac 1898 $as_echo "$ac_var='\''$ac_val'\''" 1899 done | sort 1900 echo 1901 fi 1902 1903 if test -s confdefs.h; then 1904 cat <<\_ASBOX 1905## ----------- ## 1906## confdefs.h. ## 1907## ----------- ## 1908_ASBOX 1909 echo 1910 cat confdefs.h 1911 echo 1912 fi 1913 test "$ac_signal" != 0 && 1914 $as_echo "$as_me: caught signal $ac_signal" 1915 $as_echo "$as_me: exit $exit_status" 1916 } >&5 1917 rm -f core *.core core.conftest.* && 1918 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1919 exit $exit_status 1920' 0 1921for ac_signal in 1 2 13 15; do 1922 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1923done 1924ac_signal=0 1925 1926# confdefs.h avoids OS command line length limits that DEFS can exceed. 1927rm -f -r conftest* confdefs.h 1928 1929# Predefined preprocessor variables. 1930 1931cat >>confdefs.h <<_ACEOF 1932#define PACKAGE_NAME "$PACKAGE_NAME" 1933_ACEOF 1934 1935 1936cat >>confdefs.h <<_ACEOF 1937#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1938_ACEOF 1939 1940 1941cat >>confdefs.h <<_ACEOF 1942#define PACKAGE_VERSION "$PACKAGE_VERSION" 1943_ACEOF 1944 1945 1946cat >>confdefs.h <<_ACEOF 1947#define PACKAGE_STRING "$PACKAGE_STRING" 1948_ACEOF 1949 1950 1951cat >>confdefs.h <<_ACEOF 1952#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1953_ACEOF 1954 1955 1956# Let the site file select an alternate cache file if it wants to. 1957# Prefer an explicitly selected file to automatically selected ones. 1958ac_site_file1=NONE 1959ac_site_file2=NONE 1960if test -n "$CONFIG_SITE"; then 1961 ac_site_file1=$CONFIG_SITE 1962elif test "x$prefix" != xNONE; then 1963 ac_site_file1=$prefix/share/config.site 1964 ac_site_file2=$prefix/etc/config.site 1965else 1966 ac_site_file1=$ac_default_prefix/share/config.site 1967 ac_site_file2=$ac_default_prefix/etc/config.site 1968fi 1969for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1970do 1971 test "x$ac_site_file" = xNONE && continue 1972 if test -r "$ac_site_file"; then 1973 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1974$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1975 sed 's/^/| /' "$ac_site_file" >&5 1976 . "$ac_site_file" 1977 fi 1978done 1979 1980if test -r "$cache_file"; then 1981 # Some versions of bash will fail to source /dev/null (special 1982 # files actually), so we avoid doing that. 1983 if test -f "$cache_file"; then 1984 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1985$as_echo "$as_me: loading cache $cache_file" >&6;} 1986 case $cache_file in 1987 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1988 *) . "./$cache_file";; 1989 esac 1990 fi 1991else 1992 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1993$as_echo "$as_me: creating cache $cache_file" >&6;} 1994 >$cache_file 1995fi 1996 1997# Check that the precious variables saved in the cache have kept the same 1998# value. 1999ac_cache_corrupted=false 2000for ac_var in $ac_precious_vars; do 2001 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2002 eval ac_new_set=\$ac_env_${ac_var}_set 2003 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2004 eval ac_new_val=\$ac_env_${ac_var}_value 2005 case $ac_old_set,$ac_new_set in 2006 set,) 2007 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2008$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2009 ac_cache_corrupted=: ;; 2010 ,set) 2011 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2012$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2013 ac_cache_corrupted=: ;; 2014 ,);; 2015 *) 2016 if test "x$ac_old_val" != "x$ac_new_val"; then 2017 # differences in whitespace do not lead to failure. 2018 ac_old_val_w=`echo x $ac_old_val` 2019 ac_new_val_w=`echo x $ac_new_val` 2020 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2021 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2022$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2023 ac_cache_corrupted=: 2024 else 2025 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2026$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2027 eval $ac_var=\$ac_old_val 2028 fi 2029 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2030$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2031 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2032$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2033 fi;; 2034 esac 2035 # Pass precious variables to config.status. 2036 if test "$ac_new_set" = set; then 2037 case $ac_new_val in 2038 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2039 *) ac_arg=$ac_var=$ac_new_val ;; 2040 esac 2041 case " $ac_configure_args " in 2042 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2043 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2044 esac 2045 fi 2046done 2047if $ac_cache_corrupted; then 2048 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2050 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2051$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2052 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2053$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2054 { (exit 1); exit 1; }; } 2055fi 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081ac_ext=c 2082ac_cpp='$CPP $CPPFLAGS' 2083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2085ac_compiler_gnu=$ac_cv_c_compiler_gnu 2086 2087 2088 2089 2090ac_aux_dir= 2091for ac_dir in . "$srcdir"/.; do 2092 if test -f "$ac_dir/install-sh"; then 2093 ac_aux_dir=$ac_dir 2094 ac_install_sh="$ac_aux_dir/install-sh -c" 2095 break 2096 elif test -f "$ac_dir/install.sh"; then 2097 ac_aux_dir=$ac_dir 2098 ac_install_sh="$ac_aux_dir/install.sh -c" 2099 break 2100 elif test -f "$ac_dir/shtool"; then 2101 ac_aux_dir=$ac_dir 2102 ac_install_sh="$ac_aux_dir/shtool install -c" 2103 break 2104 fi 2105done 2106if test -z "$ac_aux_dir"; then 2107 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 2108$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 2109 { (exit 1); exit 1; }; } 2110fi 2111 2112# These three variables are undocumented and unsupported, 2113# and are intended to be withdrawn in a future Autoconf release. 2114# They can cause serious problems if a builder's source tree is in a directory 2115# whose full name contains unusual characters. 2116ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2117ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2118ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2119 2120 2121am__api_version='1.10' 2122 2123# Find a good install program. We prefer a C program (faster), 2124# so one script is as good as another. But avoid the broken or 2125# incompatible versions: 2126# SysV /etc/install, /usr/sbin/install 2127# SunOS /usr/etc/install 2128# IRIX /sbin/install 2129# AIX /bin/install 2130# AmigaOS /C/install, which installs bootblocks on floppy discs 2131# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2132# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2133# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2134# OS/2's system install, which has a completely different semantic 2135# ./install, which can be erroneously created by make from ./install.sh. 2136# Reject install programs that cannot install multiple files. 2137{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2138$as_echo_n "checking for a BSD-compatible install... " >&6; } 2139if test -z "$INSTALL"; then 2140if test "${ac_cv_path_install+set}" = set; then 2141 $as_echo_n "(cached) " >&6 2142else 2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2144for as_dir in $PATH 2145do 2146 IFS=$as_save_IFS 2147 test -z "$as_dir" && as_dir=. 2148 # Account for people who put trailing slashes in PATH elements. 2149case $as_dir/ in 2150 ./ | .// | /cC/* | \ 2151 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2152 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2153 /usr/ucb/* ) ;; 2154 *) 2155 # OSF1 and SCO ODT 3.0 have their own names for install. 2156 # Don't use installbsd from OSF since it installs stuff as root 2157 # by default. 2158 for ac_prog in ginstall scoinst install; do 2159 for ac_exec_ext in '' $ac_executable_extensions; do 2160 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2161 if test $ac_prog = install && 2162 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2163 # AIX install. It has an incompatible calling convention. 2164 : 2165 elif test $ac_prog = install && 2166 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2167 # program-specific install script used by HP pwplus--don't use. 2168 : 2169 else 2170 rm -rf conftest.one conftest.two conftest.dir 2171 echo one > conftest.one 2172 echo two > conftest.two 2173 mkdir conftest.dir 2174 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2175 test -s conftest.one && test -s conftest.two && 2176 test -s conftest.dir/conftest.one && 2177 test -s conftest.dir/conftest.two 2178 then 2179 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2180 break 3 2181 fi 2182 fi 2183 fi 2184 done 2185 done 2186 ;; 2187esac 2188 2189done 2190IFS=$as_save_IFS 2191 2192rm -rf conftest.one conftest.two conftest.dir 2193 2194fi 2195 if test "${ac_cv_path_install+set}" = set; then 2196 INSTALL=$ac_cv_path_install 2197 else 2198 # As a last resort, use the slow shell script. Don't cache a 2199 # value for INSTALL within a source directory, because that will 2200 # break other packages using the cache if that directory is 2201 # removed, or if the value is a relative name. 2202 INSTALL=$ac_install_sh 2203 fi 2204fi 2205{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2206$as_echo "$INSTALL" >&6; } 2207 2208# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2209# It thinks the first close brace ends the variable substitution. 2210test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2211 2212test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2213 2214test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2215 2216{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2217$as_echo_n "checking whether build environment is sane... " >&6; } 2218# Just in case 2219sleep 1 2220echo timestamp > conftest.file 2221# Do `set' in a subshell so we don't clobber the current shell's 2222# arguments. Must try -L first in case configure is actually a 2223# symlink; some systems play weird games with the mod time of symlinks 2224# (eg FreeBSD returns the mod time of the symlink's containing 2225# directory). 2226if ( 2227 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2228 if test "$*" = "X"; then 2229 # -L didn't work. 2230 set X `ls -t $srcdir/configure conftest.file` 2231 fi 2232 rm -f conftest.file 2233 if test "$*" != "X $srcdir/configure conftest.file" \ 2234 && test "$*" != "X conftest.file $srcdir/configure"; then 2235 2236 # If neither matched, then we have a broken ls. This can happen 2237 # if, for instance, CONFIG_SHELL is bash and it inherits a 2238 # broken ls alias from the environment. This has actually 2239 # happened. Such a system could not be considered "sane". 2240 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2241alias in your environment" >&5 2242$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2243alias in your environment" >&2;} 2244 { (exit 1); exit 1; }; } 2245 fi 2246 2247 test "$2" = conftest.file 2248 ) 2249then 2250 # Ok. 2251 : 2252else 2253 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2254Check your system clock" >&5 2255$as_echo "$as_me: error: newly created file is older than distributed files! 2256Check your system clock" >&2;} 2257 { (exit 1); exit 1; }; } 2258fi 2259{ $as_echo "$as_me:$LINENO: result: yes" >&5 2260$as_echo "yes" >&6; } 2261test "$program_prefix" != NONE && 2262 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2263# Use a double $ so make ignores it. 2264test "$program_suffix" != NONE && 2265 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2266# Double any \ or $. 2267# By default was `s,x,x', remove it if useless. 2268ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2269program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2270 2271# expand $ac_aux_dir to an absolute path 2272am_aux_dir=`cd $ac_aux_dir && pwd` 2273 2274test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2275# Use eval to expand $SHELL 2276if eval "$MISSING --run true"; then 2277 am_missing_run="$MISSING --run " 2278else 2279 am_missing_run= 2280 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2281$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2282fi 2283 2284{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2285$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2286if test -z "$MKDIR_P"; then 2287 if test "${ac_cv_path_mkdir+set}" = set; then 2288 $as_echo_n "(cached) " >&6 2289else 2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2291for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2292do 2293 IFS=$as_save_IFS 2294 test -z "$as_dir" && as_dir=. 2295 for ac_prog in mkdir gmkdir; do 2296 for ac_exec_ext in '' $ac_executable_extensions; do 2297 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2298 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2299 'mkdir (GNU coreutils) '* | \ 2300 'mkdir (coreutils) '* | \ 2301 'mkdir (fileutils) '4.1*) 2302 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2303 break 3;; 2304 esac 2305 done 2306 done 2307done 2308IFS=$as_save_IFS 2309 2310fi 2311 2312 if test "${ac_cv_path_mkdir+set}" = set; then 2313 MKDIR_P="$ac_cv_path_mkdir -p" 2314 else 2315 # As a last resort, use the slow shell script. Don't cache a 2316 # value for MKDIR_P within a source directory, because that will 2317 # break other packages using the cache if that directory is 2318 # removed, or if the value is a relative name. 2319 test -d ./--version && rmdir ./--version 2320 MKDIR_P="$ac_install_sh -d" 2321 fi 2322fi 2323{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2324$as_echo "$MKDIR_P" >&6; } 2325 2326mkdir_p="$MKDIR_P" 2327case $mkdir_p in 2328 [\\/$]* | ?:[\\/]*) ;; 2329 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2330esac 2331 2332for ac_prog in gawk mawk nawk awk 2333do 2334 # Extract the first word of "$ac_prog", so it can be a program name with args. 2335set dummy $ac_prog; ac_word=$2 2336{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2337$as_echo_n "checking for $ac_word... " >&6; } 2338if test "${ac_cv_prog_AWK+set}" = set; then 2339 $as_echo_n "(cached) " >&6 2340else 2341 if test -n "$AWK"; then 2342 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2343else 2344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2345for as_dir in $PATH 2346do 2347 IFS=$as_save_IFS 2348 test -z "$as_dir" && as_dir=. 2349 for ac_exec_ext in '' $ac_executable_extensions; do 2350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2351 ac_cv_prog_AWK="$ac_prog" 2352 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2353 break 2 2354 fi 2355done 2356done 2357IFS=$as_save_IFS 2358 2359fi 2360fi 2361AWK=$ac_cv_prog_AWK 2362if test -n "$AWK"; then 2363 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2364$as_echo "$AWK" >&6; } 2365else 2366 { $as_echo "$as_me:$LINENO: result: no" >&5 2367$as_echo "no" >&6; } 2368fi 2369 2370 2371 test -n "$AWK" && break 2372done 2373 2374{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2375$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2376set x ${MAKE-make} 2377ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2378if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2379 $as_echo_n "(cached) " >&6 2380else 2381 cat >conftest.make <<\_ACEOF 2382SHELL = /bin/sh 2383all: 2384 @echo '@@@%%%=$(MAKE)=@@@%%%' 2385_ACEOF 2386# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2387case `${MAKE-make} -f conftest.make 2>/dev/null` in 2388 *@@@%%%=?*=@@@%%%*) 2389 eval ac_cv_prog_make_${ac_make}_set=yes;; 2390 *) 2391 eval ac_cv_prog_make_${ac_make}_set=no;; 2392esac 2393rm -f conftest.make 2394fi 2395if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2396 { $as_echo "$as_me:$LINENO: result: yes" >&5 2397$as_echo "yes" >&6; } 2398 SET_MAKE= 2399else 2400 { $as_echo "$as_me:$LINENO: result: no" >&5 2401$as_echo "no" >&6; } 2402 SET_MAKE="MAKE=${MAKE-make}" 2403fi 2404 2405rm -rf .tst 2>/dev/null 2406mkdir .tst 2>/dev/null 2407if test -d .tst; then 2408 am__leading_dot=. 2409else 2410 am__leading_dot=_ 2411fi 2412rmdir .tst 2>/dev/null 2413 2414if test "`cd $srcdir && pwd`" != "`pwd`"; then 2415 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2416 # is not polluted with repeated "-I." 2417 am__isrc=' -I$(srcdir)' 2418 # test to see if srcdir already configured 2419 if test -f $srcdir/config.status; then 2420 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2421$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2422 { (exit 1); exit 1; }; } 2423 fi 2424fi 2425 2426# test whether we have cygpath 2427if test -z "$CYGPATH_W"; then 2428 if (cygpath --version) >/dev/null 2>/dev/null; then 2429 CYGPATH_W='cygpath -w' 2430 else 2431 CYGPATH_W=echo 2432 fi 2433fi 2434 2435 2436# Define the identity of the package. 2437 PACKAGE='xf86-input-vmmouse' 2438 VERSION='12.6.5' 2439 2440 2441cat >>confdefs.h <<_ACEOF 2442#define PACKAGE "$PACKAGE" 2443_ACEOF 2444 2445 2446cat >>confdefs.h <<_ACEOF 2447#define VERSION "$VERSION" 2448_ACEOF 2449 2450# Some tools Automake needs. 2451 2452ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2453 2454 2455AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2456 2457 2458AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2459 2460 2461AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2462 2463 2464MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2465 2466install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2467 2468# Installed binaries are usually stripped using `strip' when the user 2469# run `make install-strip'. However `strip' might not be the right 2470# tool to use in cross-compilation environments, therefore Automake 2471# will honor the `STRIP' environment variable to overrule this program. 2472if test "$cross_compiling" != no; then 2473 if test -n "$ac_tool_prefix"; then 2474 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2475set dummy ${ac_tool_prefix}strip; ac_word=$2 2476{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2477$as_echo_n "checking for $ac_word... " >&6; } 2478if test "${ac_cv_prog_STRIP+set}" = set; then 2479 $as_echo_n "(cached) " >&6 2480else 2481 if test -n "$STRIP"; then 2482 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2483else 2484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2485for as_dir in $PATH 2486do 2487 IFS=$as_save_IFS 2488 test -z "$as_dir" && as_dir=. 2489 for ac_exec_ext in '' $ac_executable_extensions; do 2490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2491 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2492 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2493 break 2 2494 fi 2495done 2496done 2497IFS=$as_save_IFS 2498 2499fi 2500fi 2501STRIP=$ac_cv_prog_STRIP 2502if test -n "$STRIP"; then 2503 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2504$as_echo "$STRIP" >&6; } 2505else 2506 { $as_echo "$as_me:$LINENO: result: no" >&5 2507$as_echo "no" >&6; } 2508fi 2509 2510 2511fi 2512if test -z "$ac_cv_prog_STRIP"; then 2513 ac_ct_STRIP=$STRIP 2514 # Extract the first word of "strip", so it can be a program name with args. 2515set dummy strip; ac_word=$2 2516{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2517$as_echo_n "checking for $ac_word... " >&6; } 2518if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2519 $as_echo_n "(cached) " >&6 2520else 2521 if test -n "$ac_ct_STRIP"; then 2522 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2523else 2524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2525for as_dir in $PATH 2526do 2527 IFS=$as_save_IFS 2528 test -z "$as_dir" && as_dir=. 2529 for ac_exec_ext in '' $ac_executable_extensions; do 2530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2531 ac_cv_prog_ac_ct_STRIP="strip" 2532 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2533 break 2 2534 fi 2535done 2536done 2537IFS=$as_save_IFS 2538 2539fi 2540fi 2541ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2542if test -n "$ac_ct_STRIP"; then 2543 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2544$as_echo "$ac_ct_STRIP" >&6; } 2545else 2546 { $as_echo "$as_me:$LINENO: result: no" >&5 2547$as_echo "no" >&6; } 2548fi 2549 2550 if test "x$ac_ct_STRIP" = x; then 2551 STRIP=":" 2552 else 2553 case $cross_compiling:$ac_tool_warned in 2554yes:) 2555{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2557ac_tool_warned=yes ;; 2558esac 2559 STRIP=$ac_ct_STRIP 2560 fi 2561else 2562 STRIP="$ac_cv_prog_STRIP" 2563fi 2564 2565fi 2566INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2567 2568# We need awk for the "check" target. The system "awk" is bad on 2569# some platforms. 2570# Always define AMTAR for backward compatibility. 2571 2572AMTAR=${AMTAR-"${am_missing_run}tar"} 2573 2574am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2575 2576 2577 2578 2579 2580 2581{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2582$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2583 # Check whether --enable-maintainer-mode was given. 2584if test "${enable_maintainer_mode+set}" = set; then 2585 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2586else 2587 USE_MAINTAINER_MODE=no 2588fi 2589 2590 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2591$as_echo "$USE_MAINTAINER_MODE" >&6; } 2592 if test $USE_MAINTAINER_MODE = yes; then 2593 MAINTAINER_MODE_TRUE= 2594 MAINTAINER_MODE_FALSE='#' 2595else 2596 MAINTAINER_MODE_TRUE='#' 2597 MAINTAINER_MODE_FALSE= 2598fi 2599 2600 MAINT=$MAINTAINER_MODE_TRUE 2601 2602 2603 2604DRIVER_NAME=vmmouse 2605 2606 2607ac_config_headers="$ac_config_headers config.h" 2608 2609 2610# Checks for programs. 2611# Check whether --enable-static was given. 2612if test "${enable_static+set}" = set; then 2613 enableval=$enable_static; p=${PACKAGE-default} 2614 case $enableval in 2615 yes) enable_static=yes ;; 2616 no) enable_static=no ;; 2617 *) 2618 enable_static=no 2619 # Look at the argument we got. We use all the common list separators. 2620 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2621 for pkg in $enableval; do 2622 IFS="$lt_save_ifs" 2623 if test "X$pkg" = "X$p"; then 2624 enable_static=yes 2625 fi 2626 done 2627 IFS="$lt_save_ifs" 2628 ;; 2629 esac 2630else 2631 enable_static=no 2632fi 2633 2634 2635 2636# Check whether --enable-shared was given. 2637if test "${enable_shared+set}" = set; then 2638 enableval=$enable_shared; p=${PACKAGE-default} 2639 case $enableval in 2640 yes) enable_shared=yes ;; 2641 no) enable_shared=no ;; 2642 *) 2643 enable_shared=no 2644 # Look at the argument we got. We use all the common list separators. 2645 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2646 for pkg in $enableval; do 2647 IFS="$lt_save_ifs" 2648 if test "X$pkg" = "X$p"; then 2649 enable_shared=yes 2650 fi 2651 done 2652 IFS="$lt_save_ifs" 2653 ;; 2654 esac 2655else 2656 enable_shared=yes 2657fi 2658 2659 2660# Check whether --enable-fast-install was given. 2661if test "${enable_fast_install+set}" = set; then 2662 enableval=$enable_fast_install; p=${PACKAGE-default} 2663 case $enableval in 2664 yes) enable_fast_install=yes ;; 2665 no) enable_fast_install=no ;; 2666 *) 2667 enable_fast_install=no 2668 # Look at the argument we got. We use all the common list separators. 2669 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2670 for pkg in $enableval; do 2671 IFS="$lt_save_ifs" 2672 if test "X$pkg" = "X$p"; then 2673 enable_fast_install=yes 2674 fi 2675 done 2676 IFS="$lt_save_ifs" 2677 ;; 2678 esac 2679else 2680 enable_fast_install=yes 2681fi 2682 2683 2684# Make sure we can run config.sub. 2685$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2686 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2687$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2688 { (exit 1); exit 1; }; } 2689 2690{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2691$as_echo_n "checking build system type... " >&6; } 2692if test "${ac_cv_build+set}" = set; then 2693 $as_echo_n "(cached) " >&6 2694else 2695 ac_build_alias=$build_alias 2696test "x$ac_build_alias" = x && 2697 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2698test "x$ac_build_alias" = x && 2699 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2700$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2701 { (exit 1); exit 1; }; } 2702ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2703 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2704$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2705 { (exit 1); exit 1; }; } 2706 2707fi 2708{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2709$as_echo "$ac_cv_build" >&6; } 2710case $ac_cv_build in 2711*-*-*) ;; 2712*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2713$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2714 { (exit 1); exit 1; }; };; 2715esac 2716build=$ac_cv_build 2717ac_save_IFS=$IFS; IFS='-' 2718set x $ac_cv_build 2719shift 2720build_cpu=$1 2721build_vendor=$2 2722shift; shift 2723# Remember, the first character of IFS is used to create $*, 2724# except with old shells: 2725build_os=$* 2726IFS=$ac_save_IFS 2727case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2728 2729 2730{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2731$as_echo_n "checking host system type... " >&6; } 2732if test "${ac_cv_host+set}" = set; then 2733 $as_echo_n "(cached) " >&6 2734else 2735 if test "x$host_alias" = x; then 2736 ac_cv_host=$ac_cv_build 2737else 2738 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2739 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2740$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2741 { (exit 1); exit 1; }; } 2742fi 2743 2744fi 2745{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2746$as_echo "$ac_cv_host" >&6; } 2747case $ac_cv_host in 2748*-*-*) ;; 2749*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2750$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2751 { (exit 1); exit 1; }; };; 2752esac 2753host=$ac_cv_host 2754ac_save_IFS=$IFS; IFS='-' 2755set x $ac_cv_host 2756shift 2757host_cpu=$1 2758host_vendor=$2 2759shift; shift 2760# Remember, the first character of IFS is used to create $*, 2761# except with old shells: 2762host_os=$* 2763IFS=$ac_save_IFS 2764case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2765 2766 2767DEPDIR="${am__leading_dot}deps" 2768 2769ac_config_commands="$ac_config_commands depfiles" 2770 2771 2772am_make=${MAKE-make} 2773cat > confinc << 'END' 2774am__doit: 2775 @echo done 2776.PHONY: am__doit 2777END 2778# If we don't find an include directive, just comment out the code. 2779{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2780$as_echo_n "checking for style of include used by $am_make... " >&6; } 2781am__include="#" 2782am__quote= 2783_am_result=none 2784# First try GNU make style include. 2785echo "include confinc" > confmf 2786# We grep out `Entering directory' and `Leaving directory' 2787# messages which can occur if `w' ends up in MAKEFLAGS. 2788# In particular we don't look at `^make:' because GNU make might 2789# be invoked under some other name (usually "gmake"), in which 2790# case it prints its new name instead of `make'. 2791if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2792 am__include=include 2793 am__quote= 2794 _am_result=GNU 2795fi 2796# Now try BSD make style include. 2797if test "$am__include" = "#"; then 2798 echo '.include "confinc"' > confmf 2799 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2800 am__include=.include 2801 am__quote="\"" 2802 _am_result=BSD 2803 fi 2804fi 2805 2806 2807{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 2808$as_echo "$_am_result" >&6; } 2809rm -f confinc confmf 2810 2811# Check whether --enable-dependency-tracking was given. 2812if test "${enable_dependency_tracking+set}" = set; then 2813 enableval=$enable_dependency_tracking; 2814fi 2815 2816if test "x$enable_dependency_tracking" != xno; then 2817 am_depcomp="$ac_aux_dir/depcomp" 2818 AMDEPBACKSLASH='\' 2819fi 2820 if test "x$enable_dependency_tracking" != xno; then 2821 AMDEP_TRUE= 2822 AMDEP_FALSE='#' 2823else 2824 AMDEP_TRUE='#' 2825 AMDEP_FALSE= 2826fi 2827 2828 2829ac_ext=c 2830ac_cpp='$CPP $CPPFLAGS' 2831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2833ac_compiler_gnu=$ac_cv_c_compiler_gnu 2834if test -n "$ac_tool_prefix"; then 2835 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2836set dummy ${ac_tool_prefix}gcc; ac_word=$2 2837{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2838$as_echo_n "checking for $ac_word... " >&6; } 2839if test "${ac_cv_prog_CC+set}" = set; then 2840 $as_echo_n "(cached) " >&6 2841else 2842 if test -n "$CC"; then 2843 ac_cv_prog_CC="$CC" # Let the user override the test. 2844else 2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2846for as_dir in $PATH 2847do 2848 IFS=$as_save_IFS 2849 test -z "$as_dir" && as_dir=. 2850 for ac_exec_ext in '' $ac_executable_extensions; do 2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2852 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2853 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2854 break 2 2855 fi 2856done 2857done 2858IFS=$as_save_IFS 2859 2860fi 2861fi 2862CC=$ac_cv_prog_CC 2863if test -n "$CC"; then 2864 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2865$as_echo "$CC" >&6; } 2866else 2867 { $as_echo "$as_me:$LINENO: result: no" >&5 2868$as_echo "no" >&6; } 2869fi 2870 2871 2872fi 2873if test -z "$ac_cv_prog_CC"; then 2874 ac_ct_CC=$CC 2875 # Extract the first word of "gcc", so it can be a program name with args. 2876set dummy gcc; ac_word=$2 2877{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2878$as_echo_n "checking for $ac_word... " >&6; } 2879if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2880 $as_echo_n "(cached) " >&6 2881else 2882 if test -n "$ac_ct_CC"; then 2883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2884else 2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2886for as_dir in $PATH 2887do 2888 IFS=$as_save_IFS 2889 test -z "$as_dir" && as_dir=. 2890 for ac_exec_ext in '' $ac_executable_extensions; do 2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2892 ac_cv_prog_ac_ct_CC="gcc" 2893 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2894 break 2 2895 fi 2896done 2897done 2898IFS=$as_save_IFS 2899 2900fi 2901fi 2902ac_ct_CC=$ac_cv_prog_ac_ct_CC 2903if test -n "$ac_ct_CC"; then 2904 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2905$as_echo "$ac_ct_CC" >&6; } 2906else 2907 { $as_echo "$as_me:$LINENO: result: no" >&5 2908$as_echo "no" >&6; } 2909fi 2910 2911 if test "x$ac_ct_CC" = x; then 2912 CC="" 2913 else 2914 case $cross_compiling:$ac_tool_warned in 2915yes:) 2916{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2918ac_tool_warned=yes ;; 2919esac 2920 CC=$ac_ct_CC 2921 fi 2922else 2923 CC="$ac_cv_prog_CC" 2924fi 2925 2926if test -z "$CC"; then 2927 if test -n "$ac_tool_prefix"; then 2928 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2929set dummy ${ac_tool_prefix}cc; ac_word=$2 2930{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2931$as_echo_n "checking for $ac_word... " >&6; } 2932if test "${ac_cv_prog_CC+set}" = set; then 2933 $as_echo_n "(cached) " >&6 2934else 2935 if test -n "$CC"; then 2936 ac_cv_prog_CC="$CC" # Let the user override the test. 2937else 2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2939for as_dir in $PATH 2940do 2941 IFS=$as_save_IFS 2942 test -z "$as_dir" && as_dir=. 2943 for ac_exec_ext in '' $ac_executable_extensions; do 2944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2945 ac_cv_prog_CC="${ac_tool_prefix}cc" 2946 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2947 break 2 2948 fi 2949done 2950done 2951IFS=$as_save_IFS 2952 2953fi 2954fi 2955CC=$ac_cv_prog_CC 2956if test -n "$CC"; then 2957 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2958$as_echo "$CC" >&6; } 2959else 2960 { $as_echo "$as_me:$LINENO: result: no" >&5 2961$as_echo "no" >&6; } 2962fi 2963 2964 2965 fi 2966fi 2967if test -z "$CC"; then 2968 # Extract the first word of "cc", so it can be a program name with args. 2969set dummy cc; ac_word=$2 2970{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2971$as_echo_n "checking for $ac_word... " >&6; } 2972if test "${ac_cv_prog_CC+set}" = set; then 2973 $as_echo_n "(cached) " >&6 2974else 2975 if test -n "$CC"; then 2976 ac_cv_prog_CC="$CC" # Let the user override the test. 2977else 2978 ac_prog_rejected=no 2979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2980for as_dir in $PATH 2981do 2982 IFS=$as_save_IFS 2983 test -z "$as_dir" && as_dir=. 2984 for ac_exec_ext in '' $ac_executable_extensions; do 2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2986 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2987 ac_prog_rejected=yes 2988 continue 2989 fi 2990 ac_cv_prog_CC="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 2998if test $ac_prog_rejected = yes; then 2999 # We found a bogon in the path, so make sure we never use it. 3000 set dummy $ac_cv_prog_CC 3001 shift 3002 if test $# != 0; then 3003 # We chose a different compiler from the bogus one. 3004 # However, it has the same basename, so the bogon will be chosen 3005 # first if we set CC to just the basename; use the full file name. 3006 shift 3007 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3008 fi 3009fi 3010fi 3011fi 3012CC=$ac_cv_prog_CC 3013if test -n "$CC"; then 3014 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3015$as_echo "$CC" >&6; } 3016else 3017 { $as_echo "$as_me:$LINENO: result: no" >&5 3018$as_echo "no" >&6; } 3019fi 3020 3021 3022fi 3023if test -z "$CC"; then 3024 if test -n "$ac_tool_prefix"; then 3025 for ac_prog in cl.exe 3026 do 3027 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3028set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3029{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3030$as_echo_n "checking for $ac_word... " >&6; } 3031if test "${ac_cv_prog_CC+set}" = set; then 3032 $as_echo_n "(cached) " >&6 3033else 3034 if test -n "$CC"; then 3035 ac_cv_prog_CC="$CC" # Let the user override the test. 3036else 3037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3038for as_dir in $PATH 3039do 3040 IFS=$as_save_IFS 3041 test -z "$as_dir" && as_dir=. 3042 for ac_exec_ext in '' $ac_executable_extensions; do 3043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3044 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3045 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3046 break 2 3047 fi 3048done 3049done 3050IFS=$as_save_IFS 3051 3052fi 3053fi 3054CC=$ac_cv_prog_CC 3055if test -n "$CC"; then 3056 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3057$as_echo "$CC" >&6; } 3058else 3059 { $as_echo "$as_me:$LINENO: result: no" >&5 3060$as_echo "no" >&6; } 3061fi 3062 3063 3064 test -n "$CC" && break 3065 done 3066fi 3067if test -z "$CC"; then 3068 ac_ct_CC=$CC 3069 for ac_prog in cl.exe 3070do 3071 # Extract the first word of "$ac_prog", so it can be a program name with args. 3072set dummy $ac_prog; ac_word=$2 3073{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3074$as_echo_n "checking for $ac_word... " >&6; } 3075if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3076 $as_echo_n "(cached) " >&6 3077else 3078 if test -n "$ac_ct_CC"; then 3079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3080else 3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3082for as_dir in $PATH 3083do 3084 IFS=$as_save_IFS 3085 test -z "$as_dir" && as_dir=. 3086 for ac_exec_ext in '' $ac_executable_extensions; do 3087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3088 ac_cv_prog_ac_ct_CC="$ac_prog" 3089 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3090 break 2 3091 fi 3092done 3093done 3094IFS=$as_save_IFS 3095 3096fi 3097fi 3098ac_ct_CC=$ac_cv_prog_ac_ct_CC 3099if test -n "$ac_ct_CC"; then 3100 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3101$as_echo "$ac_ct_CC" >&6; } 3102else 3103 { $as_echo "$as_me:$LINENO: result: no" >&5 3104$as_echo "no" >&6; } 3105fi 3106 3107 3108 test -n "$ac_ct_CC" && break 3109done 3110 3111 if test "x$ac_ct_CC" = x; then 3112 CC="" 3113 else 3114 case $cross_compiling:$ac_tool_warned in 3115yes:) 3116{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3118ac_tool_warned=yes ;; 3119esac 3120 CC=$ac_ct_CC 3121 fi 3122fi 3123 3124fi 3125 3126 3127test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3129{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3130See \`config.log' for more details." >&5 3131$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3132See \`config.log' for more details." >&2;} 3133 { (exit 1); exit 1; }; }; } 3134 3135# Provide some information about the compiler. 3136$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3137set X $ac_compile 3138ac_compiler=$2 3139{ (ac_try="$ac_compiler --version >&5" 3140case "(($ac_try" in 3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3142 *) ac_try_echo=$ac_try;; 3143esac 3144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3145$as_echo "$ac_try_echo") >&5 3146 (eval "$ac_compiler --version >&5") 2>&5 3147 ac_status=$? 3148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3149 (exit $ac_status); } 3150{ (ac_try="$ac_compiler -v >&5" 3151case "(($ac_try" in 3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3153 *) ac_try_echo=$ac_try;; 3154esac 3155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3156$as_echo "$ac_try_echo") >&5 3157 (eval "$ac_compiler -v >&5") 2>&5 3158 ac_status=$? 3159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3160 (exit $ac_status); } 3161{ (ac_try="$ac_compiler -V >&5" 3162case "(($ac_try" in 3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3164 *) ac_try_echo=$ac_try;; 3165esac 3166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3167$as_echo "$ac_try_echo") >&5 3168 (eval "$ac_compiler -V >&5") 2>&5 3169 ac_status=$? 3170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3171 (exit $ac_status); } 3172 3173cat >conftest.$ac_ext <<_ACEOF 3174/* confdefs.h. */ 3175_ACEOF 3176cat confdefs.h >>conftest.$ac_ext 3177cat >>conftest.$ac_ext <<_ACEOF 3178/* end confdefs.h. */ 3179 3180int 3181main () 3182{ 3183 3184 ; 3185 return 0; 3186} 3187_ACEOF 3188ac_clean_files_save=$ac_clean_files 3189ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3190# Try to create an executable without -o first, disregard a.out. 3191# It will help us diagnose broken compilers, and finding out an intuition 3192# of exeext. 3193{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3194$as_echo_n "checking for C compiler default output file name... " >&6; } 3195ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3196 3197# The possible output files: 3198ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3199 3200ac_rmfiles= 3201for ac_file in $ac_files 3202do 3203 case $ac_file in 3204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3205 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3206 esac 3207done 3208rm -f $ac_rmfiles 3209 3210if { (ac_try="$ac_link_default" 3211case "(($ac_try" in 3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3213 *) ac_try_echo=$ac_try;; 3214esac 3215eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3216$as_echo "$ac_try_echo") >&5 3217 (eval "$ac_link_default") 2>&5 3218 ac_status=$? 3219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3220 (exit $ac_status); }; then 3221 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3222# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3223# in a Makefile. We should not override ac_cv_exeext if it was cached, 3224# so that the user can short-circuit this test for compilers unknown to 3225# Autoconf. 3226for ac_file in $ac_files '' 3227do 3228 test -f "$ac_file" || continue 3229 case $ac_file in 3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3231 ;; 3232 [ab].out ) 3233 # We found the default executable, but exeext='' is most 3234 # certainly right. 3235 break;; 3236 *.* ) 3237 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3238 then :; else 3239 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3240 fi 3241 # We set ac_cv_exeext here because the later test for it is not 3242 # safe: cross compilers may not add the suffix if given an `-o' 3243 # argument, so we may need to know it at that point already. 3244 # Even if this section looks crufty: it has the advantage of 3245 # actually working. 3246 break;; 3247 * ) 3248 break;; 3249 esac 3250done 3251test "$ac_cv_exeext" = no && ac_cv_exeext= 3252 3253else 3254 ac_file='' 3255fi 3256 3257{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3258$as_echo "$ac_file" >&6; } 3259if test -z "$ac_file"; then 3260 $as_echo "$as_me: failed program was:" >&5 3261sed 's/^/| /' conftest.$ac_ext >&5 3262 3263{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3264$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3265{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3266See \`config.log' for more details." >&5 3267$as_echo "$as_me: error: C compiler cannot create executables 3268See \`config.log' for more details." >&2;} 3269 { (exit 77); exit 77; }; }; } 3270fi 3271 3272ac_exeext=$ac_cv_exeext 3273 3274# Check that the compiler produces executables we can run. If not, either 3275# the compiler is broken, or we cross compile. 3276{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3277$as_echo_n "checking whether the C compiler works... " >&6; } 3278# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3279# If not cross compiling, check that we can run a simple program. 3280if test "$cross_compiling" != yes; then 3281 if { ac_try='./$ac_file' 3282 { (case "(($ac_try" in 3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3284 *) ac_try_echo=$ac_try;; 3285esac 3286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3287$as_echo "$ac_try_echo") >&5 3288 (eval "$ac_try") 2>&5 3289 ac_status=$? 3290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3291 (exit $ac_status); }; }; then 3292 cross_compiling=no 3293 else 3294 if test "$cross_compiling" = maybe; then 3295 cross_compiling=yes 3296 else 3297 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3299{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3300If you meant to cross compile, use \`--host'. 3301See \`config.log' for more details." >&5 3302$as_echo "$as_me: error: cannot run C compiled programs. 3303If you meant to cross compile, use \`--host'. 3304See \`config.log' for more details." >&2;} 3305 { (exit 1); exit 1; }; }; } 3306 fi 3307 fi 3308fi 3309{ $as_echo "$as_me:$LINENO: result: yes" >&5 3310$as_echo "yes" >&6; } 3311 3312rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3313ac_clean_files=$ac_clean_files_save 3314# Check that the compiler produces executables we can run. If not, either 3315# the compiler is broken, or we cross compile. 3316{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3317$as_echo_n "checking whether we are cross compiling... " >&6; } 3318{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3319$as_echo "$cross_compiling" >&6; } 3320 3321{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3322$as_echo_n "checking for suffix of executables... " >&6; } 3323if { (ac_try="$ac_link" 3324case "(($ac_try" in 3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3326 *) ac_try_echo=$ac_try;; 3327esac 3328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3329$as_echo "$ac_try_echo") >&5 3330 (eval "$ac_link") 2>&5 3331 ac_status=$? 3332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3333 (exit $ac_status); }; then 3334 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3335# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3336# work properly (i.e., refer to `conftest.exe'), while it won't with 3337# `rm'. 3338for ac_file in conftest.exe conftest conftest.*; do 3339 test -f "$ac_file" || continue 3340 case $ac_file in 3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3342 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3343 break;; 3344 * ) break;; 3345 esac 3346done 3347else 3348 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3350{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3351See \`config.log' for more details." >&5 3352$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3353See \`config.log' for more details." >&2;} 3354 { (exit 1); exit 1; }; }; } 3355fi 3356 3357rm -f conftest$ac_cv_exeext 3358{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3359$as_echo "$ac_cv_exeext" >&6; } 3360 3361rm -f conftest.$ac_ext 3362EXEEXT=$ac_cv_exeext 3363ac_exeext=$EXEEXT 3364{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3365$as_echo_n "checking for suffix of object files... " >&6; } 3366if test "${ac_cv_objext+set}" = set; then 3367 $as_echo_n "(cached) " >&6 3368else 3369 cat >conftest.$ac_ext <<_ACEOF 3370/* confdefs.h. */ 3371_ACEOF 3372cat confdefs.h >>conftest.$ac_ext 3373cat >>conftest.$ac_ext <<_ACEOF 3374/* end confdefs.h. */ 3375 3376int 3377main () 3378{ 3379 3380 ; 3381 return 0; 3382} 3383_ACEOF 3384rm -f conftest.o conftest.obj 3385if { (ac_try="$ac_compile" 3386case "(($ac_try" in 3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3388 *) ac_try_echo=$ac_try;; 3389esac 3390eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3391$as_echo "$ac_try_echo") >&5 3392 (eval "$ac_compile") 2>&5 3393 ac_status=$? 3394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3395 (exit $ac_status); }; then 3396 for ac_file in conftest.o conftest.obj conftest.*; do 3397 test -f "$ac_file" || continue; 3398 case $ac_file in 3399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3400 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3401 break;; 3402 esac 3403done 3404else 3405 $as_echo "$as_me: failed program was:" >&5 3406sed 's/^/| /' conftest.$ac_ext >&5 3407 3408{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3410{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3411See \`config.log' for more details." >&5 3412$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3413See \`config.log' for more details." >&2;} 3414 { (exit 1); exit 1; }; }; } 3415fi 3416 3417rm -f conftest.$ac_cv_objext conftest.$ac_ext 3418fi 3419{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3420$as_echo "$ac_cv_objext" >&6; } 3421OBJEXT=$ac_cv_objext 3422ac_objext=$OBJEXT 3423{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3424$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3425if test "${ac_cv_c_compiler_gnu+set}" = set; then 3426 $as_echo_n "(cached) " >&6 3427else 3428 cat >conftest.$ac_ext <<_ACEOF 3429/* confdefs.h. */ 3430_ACEOF 3431cat confdefs.h >>conftest.$ac_ext 3432cat >>conftest.$ac_ext <<_ACEOF 3433/* end confdefs.h. */ 3434 3435int 3436main () 3437{ 3438#ifndef __GNUC__ 3439 choke me 3440#endif 3441 3442 ; 3443 return 0; 3444} 3445_ACEOF 3446rm -f conftest.$ac_objext 3447if { (ac_try="$ac_compile" 3448case "(($ac_try" in 3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3450 *) ac_try_echo=$ac_try;; 3451esac 3452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3453$as_echo "$ac_try_echo") >&5 3454 (eval "$ac_compile") 2>conftest.er1 3455 ac_status=$? 3456 grep -v '^ *+' conftest.er1 >conftest.err 3457 rm -f conftest.er1 3458 cat conftest.err >&5 3459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3460 (exit $ac_status); } && { 3461 test -z "$ac_c_werror_flag" || 3462 test ! -s conftest.err 3463 } && test -s conftest.$ac_objext; then 3464 ac_compiler_gnu=yes 3465else 3466 $as_echo "$as_me: failed program was:" >&5 3467sed 's/^/| /' conftest.$ac_ext >&5 3468 3469 ac_compiler_gnu=no 3470fi 3471 3472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3473ac_cv_c_compiler_gnu=$ac_compiler_gnu 3474 3475fi 3476{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3477$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3478if test $ac_compiler_gnu = yes; then 3479 GCC=yes 3480else 3481 GCC= 3482fi 3483ac_test_CFLAGS=${CFLAGS+set} 3484ac_save_CFLAGS=$CFLAGS 3485{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3486$as_echo_n "checking whether $CC accepts -g... " >&6; } 3487if test "${ac_cv_prog_cc_g+set}" = set; then 3488 $as_echo_n "(cached) " >&6 3489else 3490 ac_save_c_werror_flag=$ac_c_werror_flag 3491 ac_c_werror_flag=yes 3492 ac_cv_prog_cc_g=no 3493 CFLAGS="-g" 3494 cat >conftest.$ac_ext <<_ACEOF 3495/* confdefs.h. */ 3496_ACEOF 3497cat confdefs.h >>conftest.$ac_ext 3498cat >>conftest.$ac_ext <<_ACEOF 3499/* end confdefs.h. */ 3500 3501int 3502main () 3503{ 3504 3505 ; 3506 return 0; 3507} 3508_ACEOF 3509rm -f conftest.$ac_objext 3510if { (ac_try="$ac_compile" 3511case "(($ac_try" in 3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3513 *) ac_try_echo=$ac_try;; 3514esac 3515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3516$as_echo "$ac_try_echo") >&5 3517 (eval "$ac_compile") 2>conftest.er1 3518 ac_status=$? 3519 grep -v '^ *+' conftest.er1 >conftest.err 3520 rm -f conftest.er1 3521 cat conftest.err >&5 3522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3523 (exit $ac_status); } && { 3524 test -z "$ac_c_werror_flag" || 3525 test ! -s conftest.err 3526 } && test -s conftest.$ac_objext; then 3527 ac_cv_prog_cc_g=yes 3528else 3529 $as_echo "$as_me: failed program was:" >&5 3530sed 's/^/| /' conftest.$ac_ext >&5 3531 3532 CFLAGS="" 3533 cat >conftest.$ac_ext <<_ACEOF 3534/* confdefs.h. */ 3535_ACEOF 3536cat confdefs.h >>conftest.$ac_ext 3537cat >>conftest.$ac_ext <<_ACEOF 3538/* end confdefs.h. */ 3539 3540int 3541main () 3542{ 3543 3544 ; 3545 return 0; 3546} 3547_ACEOF 3548rm -f conftest.$ac_objext 3549if { (ac_try="$ac_compile" 3550case "(($ac_try" in 3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3552 *) ac_try_echo=$ac_try;; 3553esac 3554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3555$as_echo "$ac_try_echo") >&5 3556 (eval "$ac_compile") 2>conftest.er1 3557 ac_status=$? 3558 grep -v '^ *+' conftest.er1 >conftest.err 3559 rm -f conftest.er1 3560 cat conftest.err >&5 3561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3562 (exit $ac_status); } && { 3563 test -z "$ac_c_werror_flag" || 3564 test ! -s conftest.err 3565 } && test -s conftest.$ac_objext; then 3566 : 3567else 3568 $as_echo "$as_me: failed program was:" >&5 3569sed 's/^/| /' conftest.$ac_ext >&5 3570 3571 ac_c_werror_flag=$ac_save_c_werror_flag 3572 CFLAGS="-g" 3573 cat >conftest.$ac_ext <<_ACEOF 3574/* confdefs.h. */ 3575_ACEOF 3576cat confdefs.h >>conftest.$ac_ext 3577cat >>conftest.$ac_ext <<_ACEOF 3578/* end confdefs.h. */ 3579 3580int 3581main () 3582{ 3583 3584 ; 3585 return 0; 3586} 3587_ACEOF 3588rm -f conftest.$ac_objext 3589if { (ac_try="$ac_compile" 3590case "(($ac_try" in 3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3592 *) ac_try_echo=$ac_try;; 3593esac 3594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3595$as_echo "$ac_try_echo") >&5 3596 (eval "$ac_compile") 2>conftest.er1 3597 ac_status=$? 3598 grep -v '^ *+' conftest.er1 >conftest.err 3599 rm -f conftest.er1 3600 cat conftest.err >&5 3601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3602 (exit $ac_status); } && { 3603 test -z "$ac_c_werror_flag" || 3604 test ! -s conftest.err 3605 } && test -s conftest.$ac_objext; then 3606 ac_cv_prog_cc_g=yes 3607else 3608 $as_echo "$as_me: failed program was:" >&5 3609sed 's/^/| /' conftest.$ac_ext >&5 3610 3611 3612fi 3613 3614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3615fi 3616 3617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3618fi 3619 3620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3621 ac_c_werror_flag=$ac_save_c_werror_flag 3622fi 3623{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3624$as_echo "$ac_cv_prog_cc_g" >&6; } 3625if test "$ac_test_CFLAGS" = set; then 3626 CFLAGS=$ac_save_CFLAGS 3627elif test $ac_cv_prog_cc_g = yes; then 3628 if test "$GCC" = yes; then 3629 CFLAGS="-g -O2" 3630 else 3631 CFLAGS="-g" 3632 fi 3633else 3634 if test "$GCC" = yes; then 3635 CFLAGS="-O2" 3636 else 3637 CFLAGS= 3638 fi 3639fi 3640{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3641$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3642if test "${ac_cv_prog_cc_c89+set}" = set; then 3643 $as_echo_n "(cached) " >&6 3644else 3645 ac_cv_prog_cc_c89=no 3646ac_save_CC=$CC 3647cat >conftest.$ac_ext <<_ACEOF 3648/* confdefs.h. */ 3649_ACEOF 3650cat confdefs.h >>conftest.$ac_ext 3651cat >>conftest.$ac_ext <<_ACEOF 3652/* end confdefs.h. */ 3653#include <stdarg.h> 3654#include <stdio.h> 3655#include <sys/types.h> 3656#include <sys/stat.h> 3657/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3658struct buf { int x; }; 3659FILE * (*rcsopen) (struct buf *, struct stat *, int); 3660static char *e (p, i) 3661 char **p; 3662 int i; 3663{ 3664 return p[i]; 3665} 3666static char *f (char * (*g) (char **, int), char **p, ...) 3667{ 3668 char *s; 3669 va_list v; 3670 va_start (v,p); 3671 s = g (p, va_arg (v,int)); 3672 va_end (v); 3673 return s; 3674} 3675 3676/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3677 function prototypes and stuff, but not '\xHH' hex character constants. 3678 These don't provoke an error unfortunately, instead are silently treated 3679 as 'x'. The following induces an error, until -std is added to get 3680 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3681 array size at least. It's necessary to write '\x00'==0 to get something 3682 that's true only with -std. */ 3683int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3684 3685/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3686 inside strings and character constants. */ 3687#define FOO(x) 'x' 3688int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3689 3690int test (int i, double x); 3691struct s1 {int (*f) (int a);}; 3692struct s2 {int (*f) (double a);}; 3693int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3694int argc; 3695char **argv; 3696int 3697main () 3698{ 3699return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3700 ; 3701 return 0; 3702} 3703_ACEOF 3704for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3705 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3706do 3707 CC="$ac_save_CC $ac_arg" 3708 rm -f conftest.$ac_objext 3709if { (ac_try="$ac_compile" 3710case "(($ac_try" in 3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3712 *) ac_try_echo=$ac_try;; 3713esac 3714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3715$as_echo "$ac_try_echo") >&5 3716 (eval "$ac_compile") 2>conftest.er1 3717 ac_status=$? 3718 grep -v '^ *+' conftest.er1 >conftest.err 3719 rm -f conftest.er1 3720 cat conftest.err >&5 3721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3722 (exit $ac_status); } && { 3723 test -z "$ac_c_werror_flag" || 3724 test ! -s conftest.err 3725 } && test -s conftest.$ac_objext; then 3726 ac_cv_prog_cc_c89=$ac_arg 3727else 3728 $as_echo "$as_me: failed program was:" >&5 3729sed 's/^/| /' conftest.$ac_ext >&5 3730 3731 3732fi 3733 3734rm -f core conftest.err conftest.$ac_objext 3735 test "x$ac_cv_prog_cc_c89" != "xno" && break 3736done 3737rm -f conftest.$ac_ext 3738CC=$ac_save_CC 3739 3740fi 3741# AC_CACHE_VAL 3742case "x$ac_cv_prog_cc_c89" in 3743 x) 3744 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3745$as_echo "none needed" >&6; } ;; 3746 xno) 3747 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3748$as_echo "unsupported" >&6; } ;; 3749 *) 3750 CC="$CC $ac_cv_prog_cc_c89" 3751 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3752$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3753esac 3754 3755 3756ac_ext=c 3757ac_cpp='$CPP $CPPFLAGS' 3758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3760ac_compiler_gnu=$ac_cv_c_compiler_gnu 3761 3762depcc="$CC" am_compiler_list= 3763 3764{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3765$as_echo_n "checking dependency style of $depcc... " >&6; } 3766if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3767 $as_echo_n "(cached) " >&6 3768else 3769 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3770 # We make a subdir and do the tests there. Otherwise we can end up 3771 # making bogus files that we don't know about and never remove. For 3772 # instance it was reported that on HP-UX the gcc test will end up 3773 # making a dummy file named `D' -- because `-MD' means `put the output 3774 # in D'. 3775 mkdir conftest.dir 3776 # Copy depcomp to subdir because otherwise we won't find it if we're 3777 # using a relative directory. 3778 cp "$am_depcomp" conftest.dir 3779 cd conftest.dir 3780 # We will build objects and dependencies in a subdirectory because 3781 # it helps to detect inapplicable dependency modes. For instance 3782 # both Tru64's cc and ICC support -MD to output dependencies as a 3783 # side effect of compilation, but ICC will put the dependencies in 3784 # the current directory while Tru64 will put them in the object 3785 # directory. 3786 mkdir sub 3787 3788 am_cv_CC_dependencies_compiler_type=none 3789 if test "$am_compiler_list" = ""; then 3790 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3791 fi 3792 for depmode in $am_compiler_list; do 3793 # Setup a source with many dependencies, because some compilers 3794 # like to wrap large dependency lists on column 80 (with \), and 3795 # we should not choose a depcomp mode which is confused by this. 3796 # 3797 # We need to recreate these files for each test, as the compiler may 3798 # overwrite some of them when testing with obscure command lines. 3799 # This happens at least with the AIX C compiler. 3800 : > sub/conftest.c 3801 for i in 1 2 3 4 5 6; do 3802 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3803 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3804 # Solaris 8's {/usr,}/bin/sh. 3805 touch sub/conftst$i.h 3806 done 3807 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3808 3809 case $depmode in 3810 nosideeffect) 3811 # after this tag, mechanisms are not by side-effect, so they'll 3812 # only be used when explicitly requested 3813 if test "x$enable_dependency_tracking" = xyes; then 3814 continue 3815 else 3816 break 3817 fi 3818 ;; 3819 none) break ;; 3820 esac 3821 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3822 # mode. It turns out that the SunPro C++ compiler does not properly 3823 # handle `-M -o', and we need to detect this. 3824 if depmode=$depmode \ 3825 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3826 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3827 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3828 >/dev/null 2>conftest.err && 3829 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3830 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3831 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3832 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3833 # icc doesn't choke on unknown options, it will just issue warnings 3834 # or remarks (even with -Werror). So we grep stderr for any message 3835 # that says an option was ignored or not supported. 3836 # When given -MP, icc 7.0 and 7.1 complain thusly: 3837 # icc: Command line warning: ignoring option '-M'; no argument required 3838 # The diagnosis changed in icc 8.0: 3839 # icc: Command line remark: option '-MP' not supported 3840 if (grep 'ignoring option' conftest.err || 3841 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3842 am_cv_CC_dependencies_compiler_type=$depmode 3843 break 3844 fi 3845 fi 3846 done 3847 3848 cd .. 3849 rm -rf conftest.dir 3850else 3851 am_cv_CC_dependencies_compiler_type=none 3852fi 3853 3854fi 3855{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3856$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3857CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3858 3859 if 3860 test "x$enable_dependency_tracking" != xno \ 3861 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3862 am__fastdepCC_TRUE= 3863 am__fastdepCC_FALSE='#' 3864else 3865 am__fastdepCC_TRUE='#' 3866 am__fastdepCC_FALSE= 3867fi 3868 3869 3870{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3871$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3872if test "${lt_cv_path_SED+set}" = set; then 3873 $as_echo_n "(cached) " >&6 3874else 3875 # Loop through the user's path and test for sed and gsed. 3876# Then use that list of sed's as ones to test for truncation. 3877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3878for as_dir in $PATH 3879do 3880 IFS=$as_save_IFS 3881 test -z "$as_dir" && as_dir=. 3882 for lt_ac_prog in sed gsed; do 3883 for ac_exec_ext in '' $ac_executable_extensions; do 3884 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3885 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3886 fi 3887 done 3888 done 3889done 3890IFS=$as_save_IFS 3891lt_ac_max=0 3892lt_ac_count=0 3893# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3894# along with /bin/sed that truncates output. 3895for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3896 test ! -f $lt_ac_sed && continue 3897 cat /dev/null > conftest.in 3898 lt_ac_count=0 3899 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3900 # Check for GNU sed and select it if it is found. 3901 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3902 lt_cv_path_SED=$lt_ac_sed 3903 break 3904 fi 3905 while true; do 3906 cat conftest.in conftest.in >conftest.tmp 3907 mv conftest.tmp conftest.in 3908 cp conftest.in conftest.nl 3909 echo >>conftest.nl 3910 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3911 cmp -s conftest.out conftest.nl || break 3912 # 10000 chars as input seems more than enough 3913 test $lt_ac_count -gt 10 && break 3914 lt_ac_count=`expr $lt_ac_count + 1` 3915 if test $lt_ac_count -gt $lt_ac_max; then 3916 lt_ac_max=$lt_ac_count 3917 lt_cv_path_SED=$lt_ac_sed 3918 fi 3919 done 3920done 3921 3922fi 3923 3924SED=$lt_cv_path_SED 3925 3926{ $as_echo "$as_me:$LINENO: result: $SED" >&5 3927$as_echo "$SED" >&6; } 3928 3929{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3930$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3931if test "${ac_cv_path_GREP+set}" = set; then 3932 $as_echo_n "(cached) " >&6 3933else 3934 if test -z "$GREP"; then 3935 ac_path_GREP_found=false 3936 # Loop through the user's path and test for each of PROGNAME-LIST 3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3938for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3939do 3940 IFS=$as_save_IFS 3941 test -z "$as_dir" && as_dir=. 3942 for ac_prog in grep ggrep; do 3943 for ac_exec_ext in '' $ac_executable_extensions; do 3944 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3945 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3946# Check for GNU ac_path_GREP and select it if it is found. 3947 # Check for GNU $ac_path_GREP 3948case `"$ac_path_GREP" --version 2>&1` in 3949*GNU*) 3950 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3951*) 3952 ac_count=0 3953 $as_echo_n 0123456789 >"conftest.in" 3954 while : 3955 do 3956 cat "conftest.in" "conftest.in" >"conftest.tmp" 3957 mv "conftest.tmp" "conftest.in" 3958 cp "conftest.in" "conftest.nl" 3959 $as_echo 'GREP' >> "conftest.nl" 3960 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3962 ac_count=`expr $ac_count + 1` 3963 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3964 # Best one so far, save it but keep looking for a better one 3965 ac_cv_path_GREP="$ac_path_GREP" 3966 ac_path_GREP_max=$ac_count 3967 fi 3968 # 10*(2^10) chars as input seems more than enough 3969 test $ac_count -gt 10 && break 3970 done 3971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3972esac 3973 3974 $ac_path_GREP_found && break 3 3975 done 3976 done 3977done 3978IFS=$as_save_IFS 3979 if test -z "$ac_cv_path_GREP"; then 3980 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3981$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3982 { (exit 1); exit 1; }; } 3983 fi 3984else 3985 ac_cv_path_GREP=$GREP 3986fi 3987 3988fi 3989{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3990$as_echo "$ac_cv_path_GREP" >&6; } 3991 GREP="$ac_cv_path_GREP" 3992 3993 3994{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3995$as_echo_n "checking for egrep... " >&6; } 3996if test "${ac_cv_path_EGREP+set}" = set; then 3997 $as_echo_n "(cached) " >&6 3998else 3999 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4000 then ac_cv_path_EGREP="$GREP -E" 4001 else 4002 if test -z "$EGREP"; then 4003 ac_path_EGREP_found=false 4004 # Loop through the user's path and test for each of PROGNAME-LIST 4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4006for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4007do 4008 IFS=$as_save_IFS 4009 test -z "$as_dir" && as_dir=. 4010 for ac_prog in egrep; do 4011 for ac_exec_ext in '' $ac_executable_extensions; do 4012 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4013 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4014# Check for GNU ac_path_EGREP and select it if it is found. 4015 # Check for GNU $ac_path_EGREP 4016case `"$ac_path_EGREP" --version 2>&1` in 4017*GNU*) 4018 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4019*) 4020 ac_count=0 4021 $as_echo_n 0123456789 >"conftest.in" 4022 while : 4023 do 4024 cat "conftest.in" "conftest.in" >"conftest.tmp" 4025 mv "conftest.tmp" "conftest.in" 4026 cp "conftest.in" "conftest.nl" 4027 $as_echo 'EGREP' >> "conftest.nl" 4028 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4030 ac_count=`expr $ac_count + 1` 4031 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4032 # Best one so far, save it but keep looking for a better one 4033 ac_cv_path_EGREP="$ac_path_EGREP" 4034 ac_path_EGREP_max=$ac_count 4035 fi 4036 # 10*(2^10) chars as input seems more than enough 4037 test $ac_count -gt 10 && break 4038 done 4039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4040esac 4041 4042 $ac_path_EGREP_found && break 3 4043 done 4044 done 4045done 4046IFS=$as_save_IFS 4047 if test -z "$ac_cv_path_EGREP"; then 4048 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4049$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4050 { (exit 1); exit 1; }; } 4051 fi 4052else 4053 ac_cv_path_EGREP=$EGREP 4054fi 4055 4056 fi 4057fi 4058{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4059$as_echo "$ac_cv_path_EGREP" >&6; } 4060 EGREP="$ac_cv_path_EGREP" 4061 4062 4063 4064# Check whether --with-gnu-ld was given. 4065if test "${with_gnu_ld+set}" = set; then 4066 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4067else 4068 with_gnu_ld=no 4069fi 4070 4071ac_prog=ld 4072if test "$GCC" = yes; then 4073 # Check if gcc -print-prog-name=ld gives a path. 4074 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4075$as_echo_n "checking for ld used by $CC... " >&6; } 4076 case $host in 4077 *-*-mingw*) 4078 # gcc leaves a trailing carriage return which upsets mingw 4079 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4080 *) 4081 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4082 esac 4083 case $ac_prog in 4084 # Accept absolute paths. 4085 [\\/]* | ?:[\\/]*) 4086 re_direlt='/[^/][^/]*/\.\./' 4087 # Canonicalize the pathname of ld 4088 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4089 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4090 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4091 done 4092 test -z "$LD" && LD="$ac_prog" 4093 ;; 4094 "") 4095 # If it fails, then pretend we aren't using GCC. 4096 ac_prog=ld 4097 ;; 4098 *) 4099 # If it is relative, then search for the first ld in PATH. 4100 with_gnu_ld=unknown 4101 ;; 4102 esac 4103elif test "$with_gnu_ld" = yes; then 4104 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4105$as_echo_n "checking for GNU ld... " >&6; } 4106else 4107 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4108$as_echo_n "checking for non-GNU ld... " >&6; } 4109fi 4110if test "${lt_cv_path_LD+set}" = set; then 4111 $as_echo_n "(cached) " >&6 4112else 4113 if test -z "$LD"; then 4114 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4115 for ac_dir in $PATH; do 4116 IFS="$lt_save_ifs" 4117 test -z "$ac_dir" && ac_dir=. 4118 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4119 lt_cv_path_LD="$ac_dir/$ac_prog" 4120 # Check to see if the program is GNU ld. I'd rather use --version, 4121 # but apparently some variants of GNU ld only accept -v. 4122 # Break only if it was the GNU/non-GNU ld that we prefer. 4123 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4124 *GNU* | *'with BFD'*) 4125 test "$with_gnu_ld" != no && break 4126 ;; 4127 *) 4128 test "$with_gnu_ld" != yes && break 4129 ;; 4130 esac 4131 fi 4132 done 4133 IFS="$lt_save_ifs" 4134else 4135 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4136fi 4137fi 4138 4139LD="$lt_cv_path_LD" 4140if test -n "$LD"; then 4141 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4142$as_echo "$LD" >&6; } 4143else 4144 { $as_echo "$as_me:$LINENO: result: no" >&5 4145$as_echo "no" >&6; } 4146fi 4147test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4148$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4149 { (exit 1); exit 1; }; } 4150{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4151$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4152if test "${lt_cv_prog_gnu_ld+set}" = set; then 4153 $as_echo_n "(cached) " >&6 4154else 4155 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4156case `$LD -v 2>&1 </dev/null` in 4157*GNU* | *'with BFD'*) 4158 lt_cv_prog_gnu_ld=yes 4159 ;; 4160*) 4161 lt_cv_prog_gnu_ld=no 4162 ;; 4163esac 4164fi 4165{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4166$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4167with_gnu_ld=$lt_cv_prog_gnu_ld 4168 4169 4170{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4171$as_echo_n "checking for $LD option to reload object files... " >&6; } 4172if test "${lt_cv_ld_reload_flag+set}" = set; then 4173 $as_echo_n "(cached) " >&6 4174else 4175 lt_cv_ld_reload_flag='-r' 4176fi 4177{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4178$as_echo "$lt_cv_ld_reload_flag" >&6; } 4179reload_flag=$lt_cv_ld_reload_flag 4180case $reload_flag in 4181"" | " "*) ;; 4182*) reload_flag=" $reload_flag" ;; 4183esac 4184reload_cmds='$LD$reload_flag -o $output$reload_objs' 4185case $host_os in 4186 darwin*) 4187 if test "$GCC" = yes; then 4188 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4189 else 4190 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4191 fi 4192 ;; 4193esac 4194 4195{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4196$as_echo_n "checking for BSD-compatible nm... " >&6; } 4197if test "${lt_cv_path_NM+set}" = set; then 4198 $as_echo_n "(cached) " >&6 4199else 4200 if test -n "$NM"; then 4201 # Let the user override the test. 4202 lt_cv_path_NM="$NM" 4203else 4204 lt_nm_to_check="${ac_tool_prefix}nm" 4205 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4206 lt_nm_to_check="$lt_nm_to_check nm" 4207 fi 4208 for lt_tmp_nm in $lt_nm_to_check; do 4209 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4210 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4211 IFS="$lt_save_ifs" 4212 test -z "$ac_dir" && ac_dir=. 4213 tmp_nm="$ac_dir/$lt_tmp_nm" 4214 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4215 # Check to see if the nm accepts a BSD-compat flag. 4216 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4217 # nm: unknown option "B" ignored 4218 # Tru64's nm complains that /dev/null is an invalid object file 4219 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4220 */dev/null* | *'Invalid file or object type'*) 4221 lt_cv_path_NM="$tmp_nm -B" 4222 break 4223 ;; 4224 *) 4225 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4226 */dev/null*) 4227 lt_cv_path_NM="$tmp_nm -p" 4228 break 4229 ;; 4230 *) 4231 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4232 continue # so that we can try to find one that supports BSD flags 4233 ;; 4234 esac 4235 ;; 4236 esac 4237 fi 4238 done 4239 IFS="$lt_save_ifs" 4240 done 4241 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4242fi 4243fi 4244{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4245$as_echo "$lt_cv_path_NM" >&6; } 4246NM="$lt_cv_path_NM" 4247 4248{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4249$as_echo_n "checking whether ln -s works... " >&6; } 4250LN_S=$as_ln_s 4251if test "$LN_S" = "ln -s"; then 4252 { $as_echo "$as_me:$LINENO: result: yes" >&5 4253$as_echo "yes" >&6; } 4254else 4255 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4256$as_echo "no, using $LN_S" >&6; } 4257fi 4258 4259{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4260$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4261if test "${lt_cv_deplibs_check_method+set}" = set; then 4262 $as_echo_n "(cached) " >&6 4263else 4264 lt_cv_file_magic_cmd='$MAGIC_CMD' 4265lt_cv_file_magic_test_file= 4266lt_cv_deplibs_check_method='unknown' 4267# Need to set the preceding variable on all platforms that support 4268# interlibrary dependencies. 4269# 'none' -- dependencies not supported. 4270# `unknown' -- same as none, but documents that we really don't know. 4271# 'pass_all' -- all dependencies passed with no checks. 4272# 'test_compile' -- check by making test program. 4273# 'file_magic [[regex]]' -- check by looking for files in library path 4274# which responds to the $file_magic_cmd with a given extended regex. 4275# If you have `file' or equivalent on your system and you're not sure 4276# whether `pass_all' will *always* work, you probably want this one. 4277 4278case $host_os in 4279aix[4-9]*) 4280 lt_cv_deplibs_check_method=pass_all 4281 ;; 4282 4283beos*) 4284 lt_cv_deplibs_check_method=pass_all 4285 ;; 4286 4287bsdi[45]*) 4288 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4289 lt_cv_file_magic_cmd='/usr/bin/file -L' 4290 lt_cv_file_magic_test_file=/shlib/libc.so 4291 ;; 4292 4293cygwin*) 4294 # func_win32_libid is a shell function defined in ltmain.sh 4295 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4296 lt_cv_file_magic_cmd='func_win32_libid' 4297 ;; 4298 4299mingw* | pw32*) 4300 # Base MSYS/MinGW do not provide the 'file' command needed by 4301 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4302 # unless we find 'file', for example because we are cross-compiling. 4303 if ( file / ) >/dev/null 2>&1; then 4304 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4305 lt_cv_file_magic_cmd='func_win32_libid' 4306 else 4307 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4308 lt_cv_file_magic_cmd='$OBJDUMP -f' 4309 fi 4310 ;; 4311 4312darwin* | rhapsody*) 4313 lt_cv_deplibs_check_method=pass_all 4314 ;; 4315 4316freebsd* | dragonfly*) 4317 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4318 case $host_cpu in 4319 i*86 ) 4320 # Not sure whether the presence of OpenBSD here was a mistake. 4321 # Let's accept both of them until this is cleared up. 4322 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4323 lt_cv_file_magic_cmd=/usr/bin/file 4324 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4325 ;; 4326 esac 4327 else 4328 lt_cv_deplibs_check_method=pass_all 4329 fi 4330 ;; 4331 4332gnu*) 4333 lt_cv_deplibs_check_method=pass_all 4334 ;; 4335 4336hpux10.20* | hpux11*) 4337 lt_cv_file_magic_cmd=/usr/bin/file 4338 case $host_cpu in 4339 ia64*) 4340 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4341 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4342 ;; 4343 hppa*64*) 4344 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]' 4345 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4346 ;; 4347 *) 4348 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4349 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4350 ;; 4351 esac 4352 ;; 4353 4354interix[3-9]*) 4355 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4357 ;; 4358 4359irix5* | irix6* | nonstopux*) 4360 case $LD in 4361 *-32|*"-32 ") libmagic=32-bit;; 4362 *-n32|*"-n32 ") libmagic=N32;; 4363 *-64|*"-64 ") libmagic=64-bit;; 4364 *) libmagic=never-match;; 4365 esac 4366 lt_cv_deplibs_check_method=pass_all 4367 ;; 4368 4369# This must be Linux ELF. 4370linux* | k*bsd*-gnu) 4371 lt_cv_deplibs_check_method=pass_all 4372 ;; 4373 4374netbsd*) 4375 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4377 else 4378 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4379 fi 4380 ;; 4381 4382newos6*) 4383 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4384 lt_cv_file_magic_cmd=/usr/bin/file 4385 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4386 ;; 4387 4388nto-qnx*) 4389 lt_cv_deplibs_check_method=unknown 4390 ;; 4391 4392openbsd*) 4393 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4394 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4395 else 4396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4397 fi 4398 ;; 4399 4400osf3* | osf4* | osf5*) 4401 lt_cv_deplibs_check_method=pass_all 4402 ;; 4403 4404rdos*) 4405 lt_cv_deplibs_check_method=pass_all 4406 ;; 4407 4408solaris*) 4409 lt_cv_deplibs_check_method=pass_all 4410 ;; 4411 4412sysv4 | sysv4.3*) 4413 case $host_vendor in 4414 motorola) 4415 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]' 4416 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4417 ;; 4418 ncr) 4419 lt_cv_deplibs_check_method=pass_all 4420 ;; 4421 sequent) 4422 lt_cv_file_magic_cmd='/bin/file' 4423 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4424 ;; 4425 sni) 4426 lt_cv_file_magic_cmd='/bin/file' 4427 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4428 lt_cv_file_magic_test_file=/lib/libc.so 4429 ;; 4430 siemens) 4431 lt_cv_deplibs_check_method=pass_all 4432 ;; 4433 pc) 4434 lt_cv_deplibs_check_method=pass_all 4435 ;; 4436 esac 4437 ;; 4438 4439sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4440 lt_cv_deplibs_check_method=pass_all 4441 ;; 4442esac 4443 4444fi 4445{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4446$as_echo "$lt_cv_deplibs_check_method" >&6; } 4447file_magic_cmd=$lt_cv_file_magic_cmd 4448deplibs_check_method=$lt_cv_deplibs_check_method 4449test -z "$deplibs_check_method" && deplibs_check_method=unknown 4450 4451 4452 4453 4454# If no C compiler was specified, use CC. 4455LTCC=${LTCC-"$CC"} 4456 4457# If no C compiler flags were specified, use CFLAGS. 4458LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4459 4460# Allow CC to be a program name with arguments. 4461compiler=$CC 4462 4463 4464# Check whether --enable-libtool-lock was given. 4465if test "${enable_libtool_lock+set}" = set; then 4466 enableval=$enable_libtool_lock; 4467fi 4468 4469test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4470 4471# Some flags need to be propagated to the compiler or linker for good 4472# libtool support. 4473case $host in 4474ia64-*-hpux*) 4475 # Find out which ABI we are using. 4476 echo 'int i;' > conftest.$ac_ext 4477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4478 (eval $ac_compile) 2>&5 4479 ac_status=$? 4480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4481 (exit $ac_status); }; then 4482 case `/usr/bin/file conftest.$ac_objext` in 4483 *ELF-32*) 4484 HPUX_IA64_MODE="32" 4485 ;; 4486 *ELF-64*) 4487 HPUX_IA64_MODE="64" 4488 ;; 4489 esac 4490 fi 4491 rm -rf conftest* 4492 ;; 4493*-*-irix6*) 4494 # Find out which ABI we are using. 4495 echo '#line 4495 "configure"' > conftest.$ac_ext 4496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4497 (eval $ac_compile) 2>&5 4498 ac_status=$? 4499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4500 (exit $ac_status); }; then 4501 if test "$lt_cv_prog_gnu_ld" = yes; then 4502 case `/usr/bin/file conftest.$ac_objext` in 4503 *32-bit*) 4504 LD="${LD-ld} -melf32bsmip" 4505 ;; 4506 *N32*) 4507 LD="${LD-ld} -melf32bmipn32" 4508 ;; 4509 *64-bit*) 4510 LD="${LD-ld} -melf64bmip" 4511 ;; 4512 esac 4513 else 4514 case `/usr/bin/file conftest.$ac_objext` in 4515 *32-bit*) 4516 LD="${LD-ld} -32" 4517 ;; 4518 *N32*) 4519 LD="${LD-ld} -n32" 4520 ;; 4521 *64-bit*) 4522 LD="${LD-ld} -64" 4523 ;; 4524 esac 4525 fi 4526 fi 4527 rm -rf conftest* 4528 ;; 4529 4530x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4531s390*-*linux*|sparc*-*linux*) 4532 # Find out which ABI we are using. 4533 echo 'int i;' > conftest.$ac_ext 4534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4535 (eval $ac_compile) 2>&5 4536 ac_status=$? 4537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4538 (exit $ac_status); }; then 4539 case `/usr/bin/file conftest.o` in 4540 *32-bit*) 4541 case $host in 4542 x86_64-*kfreebsd*-gnu) 4543 LD="${LD-ld} -m elf_i386_fbsd" 4544 ;; 4545 x86_64-*linux*) 4546 LD="${LD-ld} -m elf_i386" 4547 ;; 4548 ppc64-*linux*|powerpc64-*linux*) 4549 LD="${LD-ld} -m elf32ppclinux" 4550 ;; 4551 s390x-*linux*) 4552 LD="${LD-ld} -m elf_s390" 4553 ;; 4554 sparc64-*linux*) 4555 LD="${LD-ld} -m elf32_sparc" 4556 ;; 4557 esac 4558 ;; 4559 *64-bit*) 4560 case $host in 4561 x86_64-*kfreebsd*-gnu) 4562 LD="${LD-ld} -m elf_x86_64_fbsd" 4563 ;; 4564 x86_64-*linux*) 4565 LD="${LD-ld} -m elf_x86_64" 4566 ;; 4567 ppc*-*linux*|powerpc*-*linux*) 4568 LD="${LD-ld} -m elf64ppc" 4569 ;; 4570 s390*-*linux*) 4571 LD="${LD-ld} -m elf64_s390" 4572 ;; 4573 sparc*-*linux*) 4574 LD="${LD-ld} -m elf64_sparc" 4575 ;; 4576 esac 4577 ;; 4578 esac 4579 fi 4580 rm -rf conftest* 4581 ;; 4582 4583*-*-sco3.2v5*) 4584 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4585 SAVE_CFLAGS="$CFLAGS" 4586 CFLAGS="$CFLAGS -belf" 4587 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4588$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 4589if test "${lt_cv_cc_needs_belf+set}" = set; then 4590 $as_echo_n "(cached) " >&6 4591else 4592 ac_ext=c 4593ac_cpp='$CPP $CPPFLAGS' 4594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4596ac_compiler_gnu=$ac_cv_c_compiler_gnu 4597 4598 cat >conftest.$ac_ext <<_ACEOF 4599/* confdefs.h. */ 4600_ACEOF 4601cat confdefs.h >>conftest.$ac_ext 4602cat >>conftest.$ac_ext <<_ACEOF 4603/* end confdefs.h. */ 4604 4605int 4606main () 4607{ 4608 4609 ; 4610 return 0; 4611} 4612_ACEOF 4613rm -f conftest.$ac_objext conftest$ac_exeext 4614if { (ac_try="$ac_link" 4615case "(($ac_try" in 4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4617 *) ac_try_echo=$ac_try;; 4618esac 4619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4620$as_echo "$ac_try_echo") >&5 4621 (eval "$ac_link") 2>conftest.er1 4622 ac_status=$? 4623 grep -v '^ *+' conftest.er1 >conftest.err 4624 rm -f conftest.er1 4625 cat conftest.err >&5 4626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4627 (exit $ac_status); } && { 4628 test -z "$ac_c_werror_flag" || 4629 test ! -s conftest.err 4630 } && test -s conftest$ac_exeext && { 4631 test "$cross_compiling" = yes || 4632 $as_test_x conftest$ac_exeext 4633 }; then 4634 lt_cv_cc_needs_belf=yes 4635else 4636 $as_echo "$as_me: failed program was:" >&5 4637sed 's/^/| /' conftest.$ac_ext >&5 4638 4639 lt_cv_cc_needs_belf=no 4640fi 4641 4642rm -rf conftest.dSYM 4643rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4644 conftest$ac_exeext conftest.$ac_ext 4645 ac_ext=c 4646ac_cpp='$CPP $CPPFLAGS' 4647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4649ac_compiler_gnu=$ac_cv_c_compiler_gnu 4650 4651fi 4652{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4653$as_echo "$lt_cv_cc_needs_belf" >&6; } 4654 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4655 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4656 CFLAGS="$SAVE_CFLAGS" 4657 fi 4658 ;; 4659sparc*-*solaris*) 4660 # Find out which ABI we are using. 4661 echo 'int i;' > conftest.$ac_ext 4662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4663 (eval $ac_compile) 2>&5 4664 ac_status=$? 4665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4666 (exit $ac_status); }; then 4667 case `/usr/bin/file conftest.o` in 4668 *64-bit*) 4669 case $lt_cv_prog_gnu_ld in 4670 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4671 *) 4672 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 4673 LD="${LD-ld} -64" 4674 fi 4675 ;; 4676 esac 4677 ;; 4678 esac 4679 fi 4680 rm -rf conftest* 4681 ;; 4682 4683 4684esac 4685 4686need_locks="$enable_libtool_lock" 4687 4688 4689ac_ext=c 4690ac_cpp='$CPP $CPPFLAGS' 4691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4693ac_compiler_gnu=$ac_cv_c_compiler_gnu 4694{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4695$as_echo_n "checking how to run the C preprocessor... " >&6; } 4696# On Suns, sometimes $CPP names a directory. 4697if test -n "$CPP" && test -d "$CPP"; then 4698 CPP= 4699fi 4700if test -z "$CPP"; then 4701 if test "${ac_cv_prog_CPP+set}" = set; then 4702 $as_echo_n "(cached) " >&6 4703else 4704 # Double quotes because CPP needs to be expanded 4705 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4706 do 4707 ac_preproc_ok=false 4708for ac_c_preproc_warn_flag in '' yes 4709do 4710 # Use a header file that comes with gcc, so configuring glibc 4711 # with a fresh cross-compiler works. 4712 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4713 # <limits.h> exists even on freestanding compilers. 4714 # On the NeXT, cc -E runs the code through the compiler's parser, 4715 # not just through cpp. "Syntax error" is here to catch this case. 4716 cat >conftest.$ac_ext <<_ACEOF 4717/* confdefs.h. */ 4718_ACEOF 4719cat confdefs.h >>conftest.$ac_ext 4720cat >>conftest.$ac_ext <<_ACEOF 4721/* end confdefs.h. */ 4722#ifdef __STDC__ 4723# include <limits.h> 4724#else 4725# include <assert.h> 4726#endif 4727 Syntax error 4728_ACEOF 4729if { (ac_try="$ac_cpp conftest.$ac_ext" 4730case "(($ac_try" in 4731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4732 *) ac_try_echo=$ac_try;; 4733esac 4734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4735$as_echo "$ac_try_echo") >&5 4736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4737 ac_status=$? 4738 grep -v '^ *+' conftest.er1 >conftest.err 4739 rm -f conftest.er1 4740 cat conftest.err >&5 4741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4742 (exit $ac_status); } >/dev/null && { 4743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4744 test ! -s conftest.err 4745 }; then 4746 : 4747else 4748 $as_echo "$as_me: failed program was:" >&5 4749sed 's/^/| /' conftest.$ac_ext >&5 4750 4751 # Broken: fails on valid input. 4752continue 4753fi 4754 4755rm -f conftest.err conftest.$ac_ext 4756 4757 # OK, works on sane cases. Now check whether nonexistent headers 4758 # can be detected and how. 4759 cat >conftest.$ac_ext <<_ACEOF 4760/* confdefs.h. */ 4761_ACEOF 4762cat confdefs.h >>conftest.$ac_ext 4763cat >>conftest.$ac_ext <<_ACEOF 4764/* end confdefs.h. */ 4765#include <ac_nonexistent.h> 4766_ACEOF 4767if { (ac_try="$ac_cpp conftest.$ac_ext" 4768case "(($ac_try" in 4769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4770 *) ac_try_echo=$ac_try;; 4771esac 4772eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4773$as_echo "$ac_try_echo") >&5 4774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4775 ac_status=$? 4776 grep -v '^ *+' conftest.er1 >conftest.err 4777 rm -f conftest.er1 4778 cat conftest.err >&5 4779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4780 (exit $ac_status); } >/dev/null && { 4781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4782 test ! -s conftest.err 4783 }; then 4784 # Broken: success on invalid input. 4785continue 4786else 4787 $as_echo "$as_me: failed program was:" >&5 4788sed 's/^/| /' conftest.$ac_ext >&5 4789 4790 # Passes both tests. 4791ac_preproc_ok=: 4792break 4793fi 4794 4795rm -f conftest.err conftest.$ac_ext 4796 4797done 4798# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4799rm -f conftest.err conftest.$ac_ext 4800if $ac_preproc_ok; then 4801 break 4802fi 4803 4804 done 4805 ac_cv_prog_CPP=$CPP 4806 4807fi 4808 CPP=$ac_cv_prog_CPP 4809else 4810 ac_cv_prog_CPP=$CPP 4811fi 4812{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 4813$as_echo "$CPP" >&6; } 4814ac_preproc_ok=false 4815for ac_c_preproc_warn_flag in '' yes 4816do 4817 # Use a header file that comes with gcc, so configuring glibc 4818 # with a fresh cross-compiler works. 4819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4820 # <limits.h> exists even on freestanding compilers. 4821 # On the NeXT, cc -E runs the code through the compiler's parser, 4822 # not just through cpp. "Syntax error" is here to catch this case. 4823 cat >conftest.$ac_ext <<_ACEOF 4824/* confdefs.h. */ 4825_ACEOF 4826cat confdefs.h >>conftest.$ac_ext 4827cat >>conftest.$ac_ext <<_ACEOF 4828/* end confdefs.h. */ 4829#ifdef __STDC__ 4830# include <limits.h> 4831#else 4832# include <assert.h> 4833#endif 4834 Syntax error 4835_ACEOF 4836if { (ac_try="$ac_cpp conftest.$ac_ext" 4837case "(($ac_try" in 4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4839 *) ac_try_echo=$ac_try;; 4840esac 4841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4842$as_echo "$ac_try_echo") >&5 4843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4844 ac_status=$? 4845 grep -v '^ *+' conftest.er1 >conftest.err 4846 rm -f conftest.er1 4847 cat conftest.err >&5 4848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4849 (exit $ac_status); } >/dev/null && { 4850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4851 test ! -s conftest.err 4852 }; then 4853 : 4854else 4855 $as_echo "$as_me: failed program was:" >&5 4856sed 's/^/| /' conftest.$ac_ext >&5 4857 4858 # Broken: fails on valid input. 4859continue 4860fi 4861 4862rm -f conftest.err conftest.$ac_ext 4863 4864 # OK, works on sane cases. Now check whether nonexistent headers 4865 # can be detected and how. 4866 cat >conftest.$ac_ext <<_ACEOF 4867/* confdefs.h. */ 4868_ACEOF 4869cat confdefs.h >>conftest.$ac_ext 4870cat >>conftest.$ac_ext <<_ACEOF 4871/* end confdefs.h. */ 4872#include <ac_nonexistent.h> 4873_ACEOF 4874if { (ac_try="$ac_cpp conftest.$ac_ext" 4875case "(($ac_try" in 4876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4877 *) ac_try_echo=$ac_try;; 4878esac 4879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4880$as_echo "$ac_try_echo") >&5 4881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4882 ac_status=$? 4883 grep -v '^ *+' conftest.er1 >conftest.err 4884 rm -f conftest.er1 4885 cat conftest.err >&5 4886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4887 (exit $ac_status); } >/dev/null && { 4888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4889 test ! -s conftest.err 4890 }; then 4891 # Broken: success on invalid input. 4892continue 4893else 4894 $as_echo "$as_me: failed program was:" >&5 4895sed 's/^/| /' conftest.$ac_ext >&5 4896 4897 # Passes both tests. 4898ac_preproc_ok=: 4899break 4900fi 4901 4902rm -f conftest.err conftest.$ac_ext 4903 4904done 4905# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4906rm -f conftest.err conftest.$ac_ext 4907if $ac_preproc_ok; then 4908 : 4909else 4910 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4911$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4912{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4913See \`config.log' for more details." >&5 4914$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4915See \`config.log' for more details." >&2;} 4916 { (exit 1); exit 1; }; }; } 4917fi 4918 4919ac_ext=c 4920ac_cpp='$CPP $CPPFLAGS' 4921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4923ac_compiler_gnu=$ac_cv_c_compiler_gnu 4924 4925 4926{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4927$as_echo_n "checking for ANSI C header files... " >&6; } 4928if test "${ac_cv_header_stdc+set}" = set; then 4929 $as_echo_n "(cached) " >&6 4930else 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 <stdlib.h> 4938#include <stdarg.h> 4939#include <string.h> 4940#include <float.h> 4941 4942int 4943main () 4944{ 4945 4946 ; 4947 return 0; 4948} 4949_ACEOF 4950rm -f conftest.$ac_objext 4951if { (ac_try="$ac_compile" 4952case "(($ac_try" in 4953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4954 *) ac_try_echo=$ac_try;; 4955esac 4956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4957$as_echo "$ac_try_echo") >&5 4958 (eval "$ac_compile") 2>conftest.er1 4959 ac_status=$? 4960 grep -v '^ *+' conftest.er1 >conftest.err 4961 rm -f conftest.er1 4962 cat conftest.err >&5 4963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4964 (exit $ac_status); } && { 4965 test -z "$ac_c_werror_flag" || 4966 test ! -s conftest.err 4967 } && test -s conftest.$ac_objext; then 4968 ac_cv_header_stdc=yes 4969else 4970 $as_echo "$as_me: failed program was:" >&5 4971sed 's/^/| /' conftest.$ac_ext >&5 4972 4973 ac_cv_header_stdc=no 4974fi 4975 4976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4977 4978if test $ac_cv_header_stdc = yes; then 4979 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4980 cat >conftest.$ac_ext <<_ACEOF 4981/* confdefs.h. */ 4982_ACEOF 4983cat confdefs.h >>conftest.$ac_ext 4984cat >>conftest.$ac_ext <<_ACEOF 4985/* end confdefs.h. */ 4986#include <string.h> 4987 4988_ACEOF 4989if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4990 $EGREP "memchr" >/dev/null 2>&1; then 4991 : 4992else 4993 ac_cv_header_stdc=no 4994fi 4995rm -f conftest* 4996 4997fi 4998 4999if test $ac_cv_header_stdc = yes; then 5000 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5001 cat >conftest.$ac_ext <<_ACEOF 5002/* confdefs.h. */ 5003_ACEOF 5004cat confdefs.h >>conftest.$ac_ext 5005cat >>conftest.$ac_ext <<_ACEOF 5006/* end confdefs.h. */ 5007#include <stdlib.h> 5008 5009_ACEOF 5010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5011 $EGREP "free" >/dev/null 2>&1; then 5012 : 5013else 5014 ac_cv_header_stdc=no 5015fi 5016rm -f conftest* 5017 5018fi 5019 5020if test $ac_cv_header_stdc = yes; then 5021 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5022 if test "$cross_compiling" = yes; then 5023 : 5024else 5025 cat >conftest.$ac_ext <<_ACEOF 5026/* confdefs.h. */ 5027_ACEOF 5028cat confdefs.h >>conftest.$ac_ext 5029cat >>conftest.$ac_ext <<_ACEOF 5030/* end confdefs.h. */ 5031#include <ctype.h> 5032#include <stdlib.h> 5033#if ((' ' & 0x0FF) == 0x020) 5034# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5035# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5036#else 5037# define ISLOWER(c) \ 5038 (('a' <= (c) && (c) <= 'i') \ 5039 || ('j' <= (c) && (c) <= 'r') \ 5040 || ('s' <= (c) && (c) <= 'z')) 5041# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5042#endif 5043 5044#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5045int 5046main () 5047{ 5048 int i; 5049 for (i = 0; i < 256; i++) 5050 if (XOR (islower (i), ISLOWER (i)) 5051 || toupper (i) != TOUPPER (i)) 5052 return 2; 5053 return 0; 5054} 5055_ACEOF 5056rm -f conftest$ac_exeext 5057if { (ac_try="$ac_link" 5058case "(($ac_try" in 5059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5060 *) ac_try_echo=$ac_try;; 5061esac 5062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5063$as_echo "$ac_try_echo") >&5 5064 (eval "$ac_link") 2>&5 5065 ac_status=$? 5066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5068 { (case "(($ac_try" in 5069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5070 *) ac_try_echo=$ac_try;; 5071esac 5072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5073$as_echo "$ac_try_echo") >&5 5074 (eval "$ac_try") 2>&5 5075 ac_status=$? 5076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5077 (exit $ac_status); }; }; then 5078 : 5079else 5080 $as_echo "$as_me: program exited with status $ac_status" >&5 5081$as_echo "$as_me: failed program was:" >&5 5082sed 's/^/| /' conftest.$ac_ext >&5 5083 5084( exit $ac_status ) 5085ac_cv_header_stdc=no 5086fi 5087rm -rf conftest.dSYM 5088rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5089fi 5090 5091 5092fi 5093fi 5094{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5095$as_echo "$ac_cv_header_stdc" >&6; } 5096if test $ac_cv_header_stdc = yes; then 5097 5098cat >>confdefs.h <<\_ACEOF 5099#define STDC_HEADERS 1 5100_ACEOF 5101 5102fi 5103 5104# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5115 inttypes.h stdint.h unistd.h 5116do 5117as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5118{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5119$as_echo_n "checking for $ac_header... " >&6; } 5120if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5121 $as_echo_n "(cached) " >&6 5122else 5123 cat >conftest.$ac_ext <<_ACEOF 5124/* confdefs.h. */ 5125_ACEOF 5126cat confdefs.h >>conftest.$ac_ext 5127cat >>conftest.$ac_ext <<_ACEOF 5128/* end confdefs.h. */ 5129$ac_includes_default 5130 5131#include <$ac_header> 5132_ACEOF 5133rm -f conftest.$ac_objext 5134if { (ac_try="$ac_compile" 5135case "(($ac_try" in 5136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5137 *) ac_try_echo=$ac_try;; 5138esac 5139eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5140$as_echo "$ac_try_echo") >&5 5141 (eval "$ac_compile") 2>conftest.er1 5142 ac_status=$? 5143 grep -v '^ *+' conftest.er1 >conftest.err 5144 rm -f conftest.er1 5145 cat conftest.err >&5 5146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5147 (exit $ac_status); } && { 5148 test -z "$ac_c_werror_flag" || 5149 test ! -s conftest.err 5150 } && test -s conftest.$ac_objext; then 5151 eval "$as_ac_Header=yes" 5152else 5153 $as_echo "$as_me: failed program was:" >&5 5154sed 's/^/| /' conftest.$ac_ext >&5 5155 5156 eval "$as_ac_Header=no" 5157fi 5158 5159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5160fi 5161ac_res=`eval 'as_val=${'$as_ac_Header'} 5162 $as_echo "$as_val"'` 5163 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5164$as_echo "$ac_res" >&6; } 5165as_val=`eval 'as_val=${'$as_ac_Header'} 5166 $as_echo "$as_val"'` 5167 if test "x$as_val" = x""yes; then 5168 cat >>confdefs.h <<_ACEOF 5169#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5170_ACEOF 5171 5172fi 5173 5174done 5175 5176 5177 5178for ac_header in dlfcn.h 5179do 5180as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5181if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5182 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5183$as_echo_n "checking for $ac_header... " >&6; } 5184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5185 $as_echo_n "(cached) " >&6 5186fi 5187ac_res=`eval 'as_val=${'$as_ac_Header'} 5188 $as_echo "$as_val"'` 5189 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5190$as_echo "$ac_res" >&6; } 5191else 5192 # Is the header compilable? 5193{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 5194$as_echo_n "checking $ac_header usability... " >&6; } 5195cat >conftest.$ac_ext <<_ACEOF 5196/* confdefs.h. */ 5197_ACEOF 5198cat confdefs.h >>conftest.$ac_ext 5199cat >>conftest.$ac_ext <<_ACEOF 5200/* end confdefs.h. */ 5201$ac_includes_default 5202#include <$ac_header> 5203_ACEOF 5204rm -f conftest.$ac_objext 5205if { (ac_try="$ac_compile" 5206case "(($ac_try" in 5207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5208 *) ac_try_echo=$ac_try;; 5209esac 5210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5211$as_echo "$ac_try_echo") >&5 5212 (eval "$ac_compile") 2>conftest.er1 5213 ac_status=$? 5214 grep -v '^ *+' conftest.er1 >conftest.err 5215 rm -f conftest.er1 5216 cat conftest.err >&5 5217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5218 (exit $ac_status); } && { 5219 test -z "$ac_c_werror_flag" || 5220 test ! -s conftest.err 5221 } && test -s conftest.$ac_objext; then 5222 ac_header_compiler=yes 5223else 5224 $as_echo "$as_me: failed program was:" >&5 5225sed 's/^/| /' conftest.$ac_ext >&5 5226 5227 ac_header_compiler=no 5228fi 5229 5230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5231{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5232$as_echo "$ac_header_compiler" >&6; } 5233 5234# Is the header present? 5235{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 5236$as_echo_n "checking $ac_header presence... " >&6; } 5237cat >conftest.$ac_ext <<_ACEOF 5238/* confdefs.h. */ 5239_ACEOF 5240cat confdefs.h >>conftest.$ac_ext 5241cat >>conftest.$ac_ext <<_ACEOF 5242/* end confdefs.h. */ 5243#include <$ac_header> 5244_ACEOF 5245if { (ac_try="$ac_cpp conftest.$ac_ext" 5246case "(($ac_try" in 5247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5248 *) ac_try_echo=$ac_try;; 5249esac 5250eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5251$as_echo "$ac_try_echo") >&5 5252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5253 ac_status=$? 5254 grep -v '^ *+' conftest.er1 >conftest.err 5255 rm -f conftest.er1 5256 cat conftest.err >&5 5257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5258 (exit $ac_status); } >/dev/null && { 5259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5260 test ! -s conftest.err 5261 }; then 5262 ac_header_preproc=yes 5263else 5264 $as_echo "$as_me: failed program was:" >&5 5265sed 's/^/| /' conftest.$ac_ext >&5 5266 5267 ac_header_preproc=no 5268fi 5269 5270rm -f conftest.err conftest.$ac_ext 5271{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5272$as_echo "$ac_header_preproc" >&6; } 5273 5274# So? What about this header? 5275case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5276 yes:no: ) 5277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5278$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5280$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5281 ac_header_preproc=yes 5282 ;; 5283 no:yes:* ) 5284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5285$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5287$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5289$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5291$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5293$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5295$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5296 ( cat <<\_ASBOX 5297## ---------------------------------------------------------------------- ## 5298## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5299## ---------------------------------------------------------------------- ## 5300_ASBOX 5301 ) | sed "s/^/$as_me: WARNING: /" >&2 5302 ;; 5303esac 5304{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5305$as_echo_n "checking for $ac_header... " >&6; } 5306if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5307 $as_echo_n "(cached) " >&6 5308else 5309 eval "$as_ac_Header=\$ac_header_preproc" 5310fi 5311ac_res=`eval 'as_val=${'$as_ac_Header'} 5312 $as_echo "$as_val"'` 5313 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5314$as_echo "$ac_res" >&6; } 5315 5316fi 5317as_val=`eval 'as_val=${'$as_ac_Header'} 5318 $as_echo "$as_val"'` 5319 if test "x$as_val" = x""yes; then 5320 cat >>confdefs.h <<_ACEOF 5321#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5322_ACEOF 5323 5324fi 5325 5326done 5327 5328ac_ext=cpp 5329ac_cpp='$CXXCPP $CPPFLAGS' 5330ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5331ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5332ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5333if test -z "$CXX"; then 5334 if test -n "$CCC"; then 5335 CXX=$CCC 5336 else 5337 if test -n "$ac_tool_prefix"; then 5338 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5339 do 5340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5341set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5342{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5343$as_echo_n "checking for $ac_word... " >&6; } 5344if test "${ac_cv_prog_CXX+set}" = set; then 5345 $as_echo_n "(cached) " >&6 5346else 5347 if test -n "$CXX"; then 5348 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5349else 5350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5351for as_dir in $PATH 5352do 5353 IFS=$as_save_IFS 5354 test -z "$as_dir" && as_dir=. 5355 for ac_exec_ext in '' $ac_executable_extensions; do 5356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5357 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5358 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5359 break 2 5360 fi 5361done 5362done 5363IFS=$as_save_IFS 5364 5365fi 5366fi 5367CXX=$ac_cv_prog_CXX 5368if test -n "$CXX"; then 5369 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 5370$as_echo "$CXX" >&6; } 5371else 5372 { $as_echo "$as_me:$LINENO: result: no" >&5 5373$as_echo "no" >&6; } 5374fi 5375 5376 5377 test -n "$CXX" && break 5378 done 5379fi 5380if test -z "$CXX"; then 5381 ac_ct_CXX=$CXX 5382 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5383do 5384 # Extract the first word of "$ac_prog", so it can be a program name with args. 5385set dummy $ac_prog; ac_word=$2 5386{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5387$as_echo_n "checking for $ac_word... " >&6; } 5388if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5389 $as_echo_n "(cached) " >&6 5390else 5391 if test -n "$ac_ct_CXX"; then 5392 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5393else 5394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5395for as_dir in $PATH 5396do 5397 IFS=$as_save_IFS 5398 test -z "$as_dir" && as_dir=. 5399 for ac_exec_ext in '' $ac_executable_extensions; do 5400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5401 ac_cv_prog_ac_ct_CXX="$ac_prog" 5402 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5403 break 2 5404 fi 5405done 5406done 5407IFS=$as_save_IFS 5408 5409fi 5410fi 5411ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5412if test -n "$ac_ct_CXX"; then 5413 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5414$as_echo "$ac_ct_CXX" >&6; } 5415else 5416 { $as_echo "$as_me:$LINENO: result: no" >&5 5417$as_echo "no" >&6; } 5418fi 5419 5420 5421 test -n "$ac_ct_CXX" && break 5422done 5423 5424 if test "x$ac_ct_CXX" = x; then 5425 CXX="g++" 5426 else 5427 case $cross_compiling:$ac_tool_warned in 5428yes:) 5429{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5431ac_tool_warned=yes ;; 5432esac 5433 CXX=$ac_ct_CXX 5434 fi 5435fi 5436 5437 fi 5438fi 5439# Provide some information about the compiler. 5440$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5441set X $ac_compile 5442ac_compiler=$2 5443{ (ac_try="$ac_compiler --version >&5" 5444case "(($ac_try" in 5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5446 *) ac_try_echo=$ac_try;; 5447esac 5448eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5449$as_echo "$ac_try_echo") >&5 5450 (eval "$ac_compiler --version >&5") 2>&5 5451 ac_status=$? 5452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5453 (exit $ac_status); } 5454{ (ac_try="$ac_compiler -v >&5" 5455case "(($ac_try" in 5456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5457 *) ac_try_echo=$ac_try;; 5458esac 5459eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5460$as_echo "$ac_try_echo") >&5 5461 (eval "$ac_compiler -v >&5") 2>&5 5462 ac_status=$? 5463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5464 (exit $ac_status); } 5465{ (ac_try="$ac_compiler -V >&5" 5466case "(($ac_try" in 5467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5468 *) ac_try_echo=$ac_try;; 5469esac 5470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5471$as_echo "$ac_try_echo") >&5 5472 (eval "$ac_compiler -V >&5") 2>&5 5473 ac_status=$? 5474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5475 (exit $ac_status); } 5476 5477{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5478$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5479if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5480 $as_echo_n "(cached) " >&6 5481else 5482 cat >conftest.$ac_ext <<_ACEOF 5483/* confdefs.h. */ 5484_ACEOF 5485cat confdefs.h >>conftest.$ac_ext 5486cat >>conftest.$ac_ext <<_ACEOF 5487/* end confdefs.h. */ 5488 5489int 5490main () 5491{ 5492#ifndef __GNUC__ 5493 choke me 5494#endif 5495 5496 ; 5497 return 0; 5498} 5499_ACEOF 5500rm -f conftest.$ac_objext 5501if { (ac_try="$ac_compile" 5502case "(($ac_try" in 5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5504 *) ac_try_echo=$ac_try;; 5505esac 5506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5507$as_echo "$ac_try_echo") >&5 5508 (eval "$ac_compile") 2>conftest.er1 5509 ac_status=$? 5510 grep -v '^ *+' conftest.er1 >conftest.err 5511 rm -f conftest.er1 5512 cat conftest.err >&5 5513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5514 (exit $ac_status); } && { 5515 test -z "$ac_cxx_werror_flag" || 5516 test ! -s conftest.err 5517 } && test -s conftest.$ac_objext; then 5518 ac_compiler_gnu=yes 5519else 5520 $as_echo "$as_me: failed program was:" >&5 5521sed 's/^/| /' conftest.$ac_ext >&5 5522 5523 ac_compiler_gnu=no 5524fi 5525 5526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5527ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5528 5529fi 5530{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5531$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5532if test $ac_compiler_gnu = yes; then 5533 GXX=yes 5534else 5535 GXX= 5536fi 5537ac_test_CXXFLAGS=${CXXFLAGS+set} 5538ac_save_CXXFLAGS=$CXXFLAGS 5539{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5540$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5541if test "${ac_cv_prog_cxx_g+set}" = set; then 5542 $as_echo_n "(cached) " >&6 5543else 5544 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5545 ac_cxx_werror_flag=yes 5546 ac_cv_prog_cxx_g=no 5547 CXXFLAGS="-g" 5548 cat >conftest.$ac_ext <<_ACEOF 5549/* confdefs.h. */ 5550_ACEOF 5551cat confdefs.h >>conftest.$ac_ext 5552cat >>conftest.$ac_ext <<_ACEOF 5553/* end confdefs.h. */ 5554 5555int 5556main () 5557{ 5558 5559 ; 5560 return 0; 5561} 5562_ACEOF 5563rm -f conftest.$ac_objext 5564if { (ac_try="$ac_compile" 5565case "(($ac_try" in 5566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5567 *) ac_try_echo=$ac_try;; 5568esac 5569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5570$as_echo "$ac_try_echo") >&5 5571 (eval "$ac_compile") 2>conftest.er1 5572 ac_status=$? 5573 grep -v '^ *+' conftest.er1 >conftest.err 5574 rm -f conftest.er1 5575 cat conftest.err >&5 5576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5577 (exit $ac_status); } && { 5578 test -z "$ac_cxx_werror_flag" || 5579 test ! -s conftest.err 5580 } && test -s conftest.$ac_objext; then 5581 ac_cv_prog_cxx_g=yes 5582else 5583 $as_echo "$as_me: failed program was:" >&5 5584sed 's/^/| /' conftest.$ac_ext >&5 5585 5586 CXXFLAGS="" 5587 cat >conftest.$ac_ext <<_ACEOF 5588/* confdefs.h. */ 5589_ACEOF 5590cat confdefs.h >>conftest.$ac_ext 5591cat >>conftest.$ac_ext <<_ACEOF 5592/* end confdefs.h. */ 5593 5594int 5595main () 5596{ 5597 5598 ; 5599 return 0; 5600} 5601_ACEOF 5602rm -f conftest.$ac_objext 5603if { (ac_try="$ac_compile" 5604case "(($ac_try" in 5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5606 *) ac_try_echo=$ac_try;; 5607esac 5608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5609$as_echo "$ac_try_echo") >&5 5610 (eval "$ac_compile") 2>conftest.er1 5611 ac_status=$? 5612 grep -v '^ *+' conftest.er1 >conftest.err 5613 rm -f conftest.er1 5614 cat conftest.err >&5 5615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5616 (exit $ac_status); } && { 5617 test -z "$ac_cxx_werror_flag" || 5618 test ! -s conftest.err 5619 } && test -s conftest.$ac_objext; then 5620 : 5621else 5622 $as_echo "$as_me: failed program was:" >&5 5623sed 's/^/| /' conftest.$ac_ext >&5 5624 5625 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5626 CXXFLAGS="-g" 5627 cat >conftest.$ac_ext <<_ACEOF 5628/* confdefs.h. */ 5629_ACEOF 5630cat confdefs.h >>conftest.$ac_ext 5631cat >>conftest.$ac_ext <<_ACEOF 5632/* end confdefs.h. */ 5633 5634int 5635main () 5636{ 5637 5638 ; 5639 return 0; 5640} 5641_ACEOF 5642rm -f conftest.$ac_objext 5643if { (ac_try="$ac_compile" 5644case "(($ac_try" in 5645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5646 *) ac_try_echo=$ac_try;; 5647esac 5648eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5649$as_echo "$ac_try_echo") >&5 5650 (eval "$ac_compile") 2>conftest.er1 5651 ac_status=$? 5652 grep -v '^ *+' conftest.er1 >conftest.err 5653 rm -f conftest.er1 5654 cat conftest.err >&5 5655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5656 (exit $ac_status); } && { 5657 test -z "$ac_cxx_werror_flag" || 5658 test ! -s conftest.err 5659 } && test -s conftest.$ac_objext; then 5660 ac_cv_prog_cxx_g=yes 5661else 5662 $as_echo "$as_me: failed program was:" >&5 5663sed 's/^/| /' conftest.$ac_ext >&5 5664 5665 5666fi 5667 5668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5669fi 5670 5671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5672fi 5673 5674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5675 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5676fi 5677{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5678$as_echo "$ac_cv_prog_cxx_g" >&6; } 5679if test "$ac_test_CXXFLAGS" = set; then 5680 CXXFLAGS=$ac_save_CXXFLAGS 5681elif test $ac_cv_prog_cxx_g = yes; then 5682 if test "$GXX" = yes; then 5683 CXXFLAGS="-g -O2" 5684 else 5685 CXXFLAGS="-g" 5686 fi 5687else 5688 if test "$GXX" = yes; then 5689 CXXFLAGS="-O2" 5690 else 5691 CXXFLAGS= 5692 fi 5693fi 5694ac_ext=cpp 5695ac_cpp='$CXXCPP $CPPFLAGS' 5696ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5697ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5698ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5699 5700depcc="$CXX" am_compiler_list= 5701 5702{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5703$as_echo_n "checking dependency style of $depcc... " >&6; } 5704if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5705 $as_echo_n "(cached) " >&6 5706else 5707 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5708 # We make a subdir and do the tests there. Otherwise we can end up 5709 # making bogus files that we don't know about and never remove. For 5710 # instance it was reported that on HP-UX the gcc test will end up 5711 # making a dummy file named `D' -- because `-MD' means `put the output 5712 # in D'. 5713 mkdir conftest.dir 5714 # Copy depcomp to subdir because otherwise we won't find it if we're 5715 # using a relative directory. 5716 cp "$am_depcomp" conftest.dir 5717 cd conftest.dir 5718 # We will build objects and dependencies in a subdirectory because 5719 # it helps to detect inapplicable dependency modes. For instance 5720 # both Tru64's cc and ICC support -MD to output dependencies as a 5721 # side effect of compilation, but ICC will put the dependencies in 5722 # the current directory while Tru64 will put them in the object 5723 # directory. 5724 mkdir sub 5725 5726 am_cv_CXX_dependencies_compiler_type=none 5727 if test "$am_compiler_list" = ""; then 5728 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5729 fi 5730 for depmode in $am_compiler_list; do 5731 # Setup a source with many dependencies, because some compilers 5732 # like to wrap large dependency lists on column 80 (with \), and 5733 # we should not choose a depcomp mode which is confused by this. 5734 # 5735 # We need to recreate these files for each test, as the compiler may 5736 # overwrite some of them when testing with obscure command lines. 5737 # This happens at least with the AIX C compiler. 5738 : > sub/conftest.c 5739 for i in 1 2 3 4 5 6; do 5740 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5741 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5742 # Solaris 8's {/usr,}/bin/sh. 5743 touch sub/conftst$i.h 5744 done 5745 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5746 5747 case $depmode in 5748 nosideeffect) 5749 # after this tag, mechanisms are not by side-effect, so they'll 5750 # only be used when explicitly requested 5751 if test "x$enable_dependency_tracking" = xyes; then 5752 continue 5753 else 5754 break 5755 fi 5756 ;; 5757 none) break ;; 5758 esac 5759 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5760 # mode. It turns out that the SunPro C++ compiler does not properly 5761 # handle `-M -o', and we need to detect this. 5762 if depmode=$depmode \ 5763 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5764 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5765 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5766 >/dev/null 2>conftest.err && 5767 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5768 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5769 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5770 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5771 # icc doesn't choke on unknown options, it will just issue warnings 5772 # or remarks (even with -Werror). So we grep stderr for any message 5773 # that says an option was ignored or not supported. 5774 # When given -MP, icc 7.0 and 7.1 complain thusly: 5775 # icc: Command line warning: ignoring option '-M'; no argument required 5776 # The diagnosis changed in icc 8.0: 5777 # icc: Command line remark: option '-MP' not supported 5778 if (grep 'ignoring option' conftest.err || 5779 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5780 am_cv_CXX_dependencies_compiler_type=$depmode 5781 break 5782 fi 5783 fi 5784 done 5785 5786 cd .. 5787 rm -rf conftest.dir 5788else 5789 am_cv_CXX_dependencies_compiler_type=none 5790fi 5791 5792fi 5793{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5794$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5795CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5796 5797 if 5798 test "x$enable_dependency_tracking" != xno \ 5799 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5800 am__fastdepCXX_TRUE= 5801 am__fastdepCXX_FALSE='#' 5802else 5803 am__fastdepCXX_TRUE='#' 5804 am__fastdepCXX_FALSE= 5805fi 5806 5807 5808 5809 5810if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5811 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5812 (test "X$CXX" != "Xg++"))) ; then 5813 ac_ext=cpp 5814ac_cpp='$CXXCPP $CPPFLAGS' 5815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5818{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5819$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5820if test -z "$CXXCPP"; then 5821 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5822 $as_echo_n "(cached) " >&6 5823else 5824 # Double quotes because CXXCPP needs to be expanded 5825 for CXXCPP in "$CXX -E" "/lib/cpp" 5826 do 5827 ac_preproc_ok=false 5828for ac_cxx_preproc_warn_flag in '' yes 5829do 5830 # Use a header file that comes with gcc, so configuring glibc 5831 # with a fresh cross-compiler works. 5832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5833 # <limits.h> exists even on freestanding compilers. 5834 # On the NeXT, cc -E runs the code through the compiler's parser, 5835 # not just through cpp. "Syntax error" is here to catch this case. 5836 cat >conftest.$ac_ext <<_ACEOF 5837/* confdefs.h. */ 5838_ACEOF 5839cat confdefs.h >>conftest.$ac_ext 5840cat >>conftest.$ac_ext <<_ACEOF 5841/* end confdefs.h. */ 5842#ifdef __STDC__ 5843# include <limits.h> 5844#else 5845# include <assert.h> 5846#endif 5847 Syntax error 5848_ACEOF 5849if { (ac_try="$ac_cpp conftest.$ac_ext" 5850case "(($ac_try" in 5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5852 *) ac_try_echo=$ac_try;; 5853esac 5854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5855$as_echo "$ac_try_echo") >&5 5856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5857 ac_status=$? 5858 grep -v '^ *+' conftest.er1 >conftest.err 5859 rm -f conftest.er1 5860 cat conftest.err >&5 5861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5862 (exit $ac_status); } >/dev/null && { 5863 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5864 test ! -s conftest.err 5865 }; then 5866 : 5867else 5868 $as_echo "$as_me: failed program was:" >&5 5869sed 's/^/| /' conftest.$ac_ext >&5 5870 5871 # Broken: fails on valid input. 5872continue 5873fi 5874 5875rm -f conftest.err conftest.$ac_ext 5876 5877 # OK, works on sane cases. Now check whether nonexistent headers 5878 # can be detected and how. 5879 cat >conftest.$ac_ext <<_ACEOF 5880/* confdefs.h. */ 5881_ACEOF 5882cat confdefs.h >>conftest.$ac_ext 5883cat >>conftest.$ac_ext <<_ACEOF 5884/* end confdefs.h. */ 5885#include <ac_nonexistent.h> 5886_ACEOF 5887if { (ac_try="$ac_cpp conftest.$ac_ext" 5888case "(($ac_try" in 5889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5890 *) ac_try_echo=$ac_try;; 5891esac 5892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5893$as_echo "$ac_try_echo") >&5 5894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5895 ac_status=$? 5896 grep -v '^ *+' conftest.er1 >conftest.err 5897 rm -f conftest.er1 5898 cat conftest.err >&5 5899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5900 (exit $ac_status); } >/dev/null && { 5901 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5902 test ! -s conftest.err 5903 }; then 5904 # Broken: success on invalid input. 5905continue 5906else 5907 $as_echo "$as_me: failed program was:" >&5 5908sed 's/^/| /' conftest.$ac_ext >&5 5909 5910 # Passes both tests. 5911ac_preproc_ok=: 5912break 5913fi 5914 5915rm -f conftest.err conftest.$ac_ext 5916 5917done 5918# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5919rm -f conftest.err conftest.$ac_ext 5920if $ac_preproc_ok; then 5921 break 5922fi 5923 5924 done 5925 ac_cv_prog_CXXCPP=$CXXCPP 5926 5927fi 5928 CXXCPP=$ac_cv_prog_CXXCPP 5929else 5930 ac_cv_prog_CXXCPP=$CXXCPP 5931fi 5932{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 5933$as_echo "$CXXCPP" >&6; } 5934ac_preproc_ok=false 5935for ac_cxx_preproc_warn_flag in '' yes 5936do 5937 # Use a header file that comes with gcc, so configuring glibc 5938 # with a fresh cross-compiler works. 5939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5940 # <limits.h> exists even on freestanding compilers. 5941 # On the NeXT, cc -E runs the code through the compiler's parser, 5942 # not just through cpp. "Syntax error" is here to catch this case. 5943 cat >conftest.$ac_ext <<_ACEOF 5944/* confdefs.h. */ 5945_ACEOF 5946cat confdefs.h >>conftest.$ac_ext 5947cat >>conftest.$ac_ext <<_ACEOF 5948/* end confdefs.h. */ 5949#ifdef __STDC__ 5950# include <limits.h> 5951#else 5952# include <assert.h> 5953#endif 5954 Syntax error 5955_ACEOF 5956if { (ac_try="$ac_cpp conftest.$ac_ext" 5957case "(($ac_try" in 5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5959 *) ac_try_echo=$ac_try;; 5960esac 5961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5962$as_echo "$ac_try_echo") >&5 5963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5964 ac_status=$? 5965 grep -v '^ *+' conftest.er1 >conftest.err 5966 rm -f conftest.er1 5967 cat conftest.err >&5 5968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5969 (exit $ac_status); } >/dev/null && { 5970 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5971 test ! -s conftest.err 5972 }; then 5973 : 5974else 5975 $as_echo "$as_me: failed program was:" >&5 5976sed 's/^/| /' conftest.$ac_ext >&5 5977 5978 # Broken: fails on valid input. 5979continue 5980fi 5981 5982rm -f conftest.err conftest.$ac_ext 5983 5984 # OK, works on sane cases. Now check whether nonexistent headers 5985 # can be detected and how. 5986 cat >conftest.$ac_ext <<_ACEOF 5987/* confdefs.h. */ 5988_ACEOF 5989cat confdefs.h >>conftest.$ac_ext 5990cat >>conftest.$ac_ext <<_ACEOF 5991/* end confdefs.h. */ 5992#include <ac_nonexistent.h> 5993_ACEOF 5994if { (ac_try="$ac_cpp conftest.$ac_ext" 5995case "(($ac_try" in 5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5997 *) ac_try_echo=$ac_try;; 5998esac 5999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6000$as_echo "$ac_try_echo") >&5 6001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6002 ac_status=$? 6003 grep -v '^ *+' conftest.er1 >conftest.err 6004 rm -f conftest.er1 6005 cat conftest.err >&5 6006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6007 (exit $ac_status); } >/dev/null && { 6008 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6009 test ! -s conftest.err 6010 }; then 6011 # Broken: success on invalid input. 6012continue 6013else 6014 $as_echo "$as_me: failed program was:" >&5 6015sed 's/^/| /' conftest.$ac_ext >&5 6016 6017 # Passes both tests. 6018ac_preproc_ok=: 6019break 6020fi 6021 6022rm -f conftest.err conftest.$ac_ext 6023 6024done 6025# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6026rm -f conftest.err conftest.$ac_ext 6027if $ac_preproc_ok; then 6028 : 6029else 6030 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6032{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6033See \`config.log' for more details." >&5 6034$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6035See \`config.log' for more details." >&2;} 6036 { (exit 1); exit 1; }; }; } 6037fi 6038 6039ac_ext=cpp 6040ac_cpp='$CXXCPP $CPPFLAGS' 6041ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6042ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6043ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6044 6045fi 6046 6047 6048ac_ext=f 6049ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6050ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6051ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6052if test -n "$ac_tool_prefix"; then 6053 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 6054 do 6055 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6056set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6057{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6058$as_echo_n "checking for $ac_word... " >&6; } 6059if test "${ac_cv_prog_F77+set}" = set; then 6060 $as_echo_n "(cached) " >&6 6061else 6062 if test -n "$F77"; then 6063 ac_cv_prog_F77="$F77" # Let the user override the test. 6064else 6065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6066for as_dir in $PATH 6067do 6068 IFS=$as_save_IFS 6069 test -z "$as_dir" && as_dir=. 6070 for ac_exec_ext in '' $ac_executable_extensions; do 6071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6072 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6073 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6074 break 2 6075 fi 6076done 6077done 6078IFS=$as_save_IFS 6079 6080fi 6081fi 6082F77=$ac_cv_prog_F77 6083if test -n "$F77"; then 6084 { $as_echo "$as_me:$LINENO: result: $F77" >&5 6085$as_echo "$F77" >&6; } 6086else 6087 { $as_echo "$as_me:$LINENO: result: no" >&5 6088$as_echo "no" >&6; } 6089fi 6090 6091 6092 test -n "$F77" && break 6093 done 6094fi 6095if test -z "$F77"; then 6096 ac_ct_F77=$F77 6097 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 6098do 6099 # Extract the first word of "$ac_prog", so it can be a program name with args. 6100set dummy $ac_prog; ac_word=$2 6101{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6102$as_echo_n "checking for $ac_word... " >&6; } 6103if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6104 $as_echo_n "(cached) " >&6 6105else 6106 if test -n "$ac_ct_F77"; then 6107 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6108else 6109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6110for as_dir in $PATH 6111do 6112 IFS=$as_save_IFS 6113 test -z "$as_dir" && as_dir=. 6114 for ac_exec_ext in '' $ac_executable_extensions; do 6115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6116 ac_cv_prog_ac_ct_F77="$ac_prog" 6117 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6118 break 2 6119 fi 6120done 6121done 6122IFS=$as_save_IFS 6123 6124fi 6125fi 6126ac_ct_F77=$ac_cv_prog_ac_ct_F77 6127if test -n "$ac_ct_F77"; then 6128 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6129$as_echo "$ac_ct_F77" >&6; } 6130else 6131 { $as_echo "$as_me:$LINENO: result: no" >&5 6132$as_echo "no" >&6; } 6133fi 6134 6135 6136 test -n "$ac_ct_F77" && break 6137done 6138 6139 if test "x$ac_ct_F77" = x; then 6140 F77="" 6141 else 6142 case $cross_compiling:$ac_tool_warned in 6143yes:) 6144{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6146ac_tool_warned=yes ;; 6147esac 6148 F77=$ac_ct_F77 6149 fi 6150fi 6151 6152 6153# Provide some information about the compiler. 6154$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6155set X $ac_compile 6156ac_compiler=$2 6157{ (ac_try="$ac_compiler --version >&5" 6158case "(($ac_try" in 6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6160 *) ac_try_echo=$ac_try;; 6161esac 6162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6163$as_echo "$ac_try_echo") >&5 6164 (eval "$ac_compiler --version >&5") 2>&5 6165 ac_status=$? 6166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6167 (exit $ac_status); } 6168{ (ac_try="$ac_compiler -v >&5" 6169case "(($ac_try" in 6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6171 *) ac_try_echo=$ac_try;; 6172esac 6173eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6174$as_echo "$ac_try_echo") >&5 6175 (eval "$ac_compiler -v >&5") 2>&5 6176 ac_status=$? 6177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6178 (exit $ac_status); } 6179{ (ac_try="$ac_compiler -V >&5" 6180case "(($ac_try" in 6181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6182 *) ac_try_echo=$ac_try;; 6183esac 6184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6185$as_echo "$ac_try_echo") >&5 6186 (eval "$ac_compiler -V >&5") 2>&5 6187 ac_status=$? 6188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6189 (exit $ac_status); } 6190rm -f a.out 6191 6192# If we don't use `.F' as extension, the preprocessor is not run on the 6193# input file. (Note that this only needs to work for GNU compilers.) 6194ac_save_ext=$ac_ext 6195ac_ext=F 6196{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6197$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 6198if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6199 $as_echo_n "(cached) " >&6 6200else 6201 cat >conftest.$ac_ext <<_ACEOF 6202 program main 6203#ifndef __GNUC__ 6204 choke me 6205#endif 6206 6207 end 6208_ACEOF 6209rm -f conftest.$ac_objext 6210if { (ac_try="$ac_compile" 6211case "(($ac_try" in 6212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6213 *) ac_try_echo=$ac_try;; 6214esac 6215eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6216$as_echo "$ac_try_echo") >&5 6217 (eval "$ac_compile") 2>conftest.er1 6218 ac_status=$? 6219 grep -v '^ *+' conftest.er1 >conftest.err 6220 rm -f conftest.er1 6221 cat conftest.err >&5 6222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6223 (exit $ac_status); } && { 6224 test -z "$ac_f77_werror_flag" || 6225 test ! -s conftest.err 6226 } && test -s conftest.$ac_objext; then 6227 ac_compiler_gnu=yes 6228else 6229 $as_echo "$as_me: failed program was:" >&5 6230sed 's/^/| /' conftest.$ac_ext >&5 6231 6232 ac_compiler_gnu=no 6233fi 6234 6235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6236ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6237 6238fi 6239{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6240$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 6241ac_ext=$ac_save_ext 6242ac_test_FFLAGS=${FFLAGS+set} 6243ac_save_FFLAGS=$FFLAGS 6244FFLAGS= 6245{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6246$as_echo_n "checking whether $F77 accepts -g... " >&6; } 6247if test "${ac_cv_prog_f77_g+set}" = set; then 6248 $as_echo_n "(cached) " >&6 6249else 6250 FFLAGS=-g 6251cat >conftest.$ac_ext <<_ACEOF 6252 program main 6253 6254 end 6255_ACEOF 6256rm -f conftest.$ac_objext 6257if { (ac_try="$ac_compile" 6258case "(($ac_try" in 6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6260 *) ac_try_echo=$ac_try;; 6261esac 6262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6263$as_echo "$ac_try_echo") >&5 6264 (eval "$ac_compile") 2>conftest.er1 6265 ac_status=$? 6266 grep -v '^ *+' conftest.er1 >conftest.err 6267 rm -f conftest.er1 6268 cat conftest.err >&5 6269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6270 (exit $ac_status); } && { 6271 test -z "$ac_f77_werror_flag" || 6272 test ! -s conftest.err 6273 } && test -s conftest.$ac_objext; then 6274 ac_cv_prog_f77_g=yes 6275else 6276 $as_echo "$as_me: failed program was:" >&5 6277sed 's/^/| /' conftest.$ac_ext >&5 6278 6279 ac_cv_prog_f77_g=no 6280fi 6281 6282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6283 6284fi 6285{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6286$as_echo "$ac_cv_prog_f77_g" >&6; } 6287if test "$ac_test_FFLAGS" = set; then 6288 FFLAGS=$ac_save_FFLAGS 6289elif test $ac_cv_prog_f77_g = yes; then 6290 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6291 FFLAGS="-g -O2" 6292 else 6293 FFLAGS="-g" 6294 fi 6295else 6296 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6297 FFLAGS="-O2" 6298 else 6299 FFLAGS= 6300 fi 6301fi 6302 6303if test $ac_compiler_gnu = yes; then 6304 G77=yes 6305else 6306 G77= 6307fi 6308ac_ext=c 6309ac_cpp='$CPP $CPPFLAGS' 6310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6312ac_compiler_gnu=$ac_cv_c_compiler_gnu 6313 6314 6315 6316# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6317# find the maximum length of command line arguments 6318{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6319$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6320if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6321 $as_echo_n "(cached) " >&6 6322else 6323 i=0 6324 teststring="ABCD" 6325 6326 case $build_os in 6327 msdosdjgpp*) 6328 # On DJGPP, this test can blow up pretty badly due to problems in libc 6329 # (any single argument exceeding 2000 bytes causes a buffer overrun 6330 # during glob expansion). Even if it were fixed, the result of this 6331 # check would be larger than it should be. 6332 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6333 ;; 6334 6335 gnu*) 6336 # Under GNU Hurd, this test is not required because there is 6337 # no limit to the length of command line arguments. 6338 # Libtool will interpret -1 as no limit whatsoever 6339 lt_cv_sys_max_cmd_len=-1; 6340 ;; 6341 6342 cygwin* | mingw*) 6343 # On Win9x/ME, this test blows up -- it succeeds, but takes 6344 # about 5 minutes as the teststring grows exponentially. 6345 # Worse, since 9x/ME are not pre-emptively multitasking, 6346 # you end up with a "frozen" computer, even though with patience 6347 # the test eventually succeeds (with a max line length of 256k). 6348 # Instead, let's just punt: use the minimum linelength reported by 6349 # all of the supported platforms: 8192 (on NT/2K/XP). 6350 lt_cv_sys_max_cmd_len=8192; 6351 ;; 6352 6353 amigaos*) 6354 # On AmigaOS with pdksh, this test takes hours, literally. 6355 # So we just punt and use a minimum line length of 8192. 6356 lt_cv_sys_max_cmd_len=8192; 6357 ;; 6358 6359 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6360 # This has been around since 386BSD, at least. Likely further. 6361 if test -x /sbin/sysctl; then 6362 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6363 elif test -x /usr/sbin/sysctl; then 6364 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6365 else 6366 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6367 fi 6368 # And add a safety zone 6369 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6371 ;; 6372 6373 interix*) 6374 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6375 lt_cv_sys_max_cmd_len=196608 6376 ;; 6377 6378 osf*) 6379 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6380 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6381 # nice to cause kernel panics so lets avoid the loop below. 6382 # First set a reasonable default. 6383 lt_cv_sys_max_cmd_len=16384 6384 # 6385 if test -x /sbin/sysconfig; then 6386 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6387 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6388 esac 6389 fi 6390 ;; 6391 sco3.2v5*) 6392 lt_cv_sys_max_cmd_len=102400 6393 ;; 6394 sysv5* | sco5v6* | sysv4.2uw2*) 6395 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6396 if test -n "$kargmax"; then 6397 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6398 else 6399 lt_cv_sys_max_cmd_len=32768 6400 fi 6401 ;; 6402 *) 6403 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6404 if test -n "$lt_cv_sys_max_cmd_len"; then 6405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6407 else 6408 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6409 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6410 = "XX$teststring") >/dev/null 2>&1 && 6411 new_result=`expr "X$teststring" : ".*" 2>&1` && 6412 lt_cv_sys_max_cmd_len=$new_result && 6413 test $i != 17 # 1/2 MB should be enough 6414 do 6415 i=`expr $i + 1` 6416 teststring=$teststring$teststring 6417 done 6418 teststring= 6419 # Add a significant safety factor because C++ compilers can tack on massive 6420 # amounts of additional arguments before passing them to the linker. 6421 # It appears as though 1/2 is a usable value. 6422 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6423 fi 6424 ;; 6425 esac 6426 6427fi 6428 6429if test -n $lt_cv_sys_max_cmd_len ; then 6430 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6431$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6432else 6433 { $as_echo "$as_me:$LINENO: result: none" >&5 6434$as_echo "none" >&6; } 6435fi 6436 6437 6438 6439 6440 6441# Check for command to grab the raw symbol name followed by C symbol from nm. 6442{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6443$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6444if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6445 $as_echo_n "(cached) " >&6 6446else 6447 6448# These are sane defaults that work on at least a few old systems. 6449# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6450 6451# Character class describing NM global symbol codes. 6452symcode='[BCDEGRST]' 6453 6454# Regexp to match symbols that can be accessed directly from C. 6455sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6456 6457# Transform an extracted symbol line into a proper C declaration 6458lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6459 6460# Transform an extracted symbol line into symbol name and symbol address 6461lt_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'" 6462 6463# Define system-specific variables. 6464case $host_os in 6465aix*) 6466 symcode='[BCDT]' 6467 ;; 6468cygwin* | mingw* | pw32*) 6469 symcode='[ABCDGISTW]' 6470 ;; 6471hpux*) # Its linker distinguishes data from code symbols 6472 if test "$host_cpu" = ia64; then 6473 symcode='[ABCDEGRST]' 6474 fi 6475 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6476 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'" 6477 ;; 6478linux* | k*bsd*-gnu) 6479 if test "$host_cpu" = ia64; then 6480 symcode='[ABCDGIRSTW]' 6481 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6482 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'" 6483 fi 6484 ;; 6485irix* | nonstopux*) 6486 symcode='[BCDEGRST]' 6487 ;; 6488osf*) 6489 symcode='[BCDEGQRST]' 6490 ;; 6491solaris*) 6492 symcode='[BDRT]' 6493 ;; 6494sco3.2v5*) 6495 symcode='[DT]' 6496 ;; 6497sysv4.2uw2*) 6498 symcode='[DT]' 6499 ;; 6500sysv5* | sco5v6* | unixware* | OpenUNIX*) 6501 symcode='[ABDT]' 6502 ;; 6503sysv4) 6504 symcode='[DFNSTU]' 6505 ;; 6506esac 6507 6508# Handle CRLF in mingw tool chain 6509opt_cr= 6510case $build_os in 6511mingw*) 6512 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6513 ;; 6514esac 6515 6516# If we're using GNU nm, then use its standard symbol codes. 6517case `$NM -V 2>&1` in 6518*GNU* | *'with BFD'*) 6519 symcode='[ABCDGIRSTW]' ;; 6520esac 6521 6522# Try without a prefix undercore, then with it. 6523for ac_symprfx in "" "_"; do 6524 6525 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6526 symxfrm="\\1 $ac_symprfx\\2 \\2" 6527 6528 # Write the raw and C identifiers. 6529 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6530 6531 # Check to see that the pipe works correctly. 6532 pipe_works=no 6533 6534 rm -f conftest* 6535 cat > conftest.$ac_ext <<EOF 6536#ifdef __cplusplus 6537extern "C" { 6538#endif 6539char nm_test_var; 6540void nm_test_func(){} 6541#ifdef __cplusplus 6542} 6543#endif 6544int main(){nm_test_var='a';nm_test_func();return(0);} 6545EOF 6546 6547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6548 (eval $ac_compile) 2>&5 6549 ac_status=$? 6550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6551 (exit $ac_status); }; then 6552 # Now try to grab the symbols. 6553 nlist=conftest.nm 6554 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6555 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6556 ac_status=$? 6557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6558 (exit $ac_status); } && test -s "$nlist"; then 6559 # Try sorting and uniquifying the output. 6560 if sort "$nlist" | uniq > "$nlist"T; then 6561 mv -f "$nlist"T "$nlist" 6562 else 6563 rm -f "$nlist"T 6564 fi 6565 6566 # Make sure that we snagged all the symbols we need. 6567 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6568 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6569 cat <<EOF > conftest.$ac_ext 6570#ifdef __cplusplus 6571extern "C" { 6572#endif 6573 6574EOF 6575 # Now generate the symbol file. 6576 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6577 6578 cat <<EOF >> conftest.$ac_ext 6579#if defined (__STDC__) && __STDC__ 6580# define lt_ptr_t void * 6581#else 6582# define lt_ptr_t char * 6583# define const 6584#endif 6585 6586/* The mapping between symbol names and symbols. */ 6587const struct { 6588 const char *name; 6589 lt_ptr_t address; 6590} 6591lt_preloaded_symbols[] = 6592{ 6593EOF 6594 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6595 cat <<\EOF >> conftest.$ac_ext 6596 {0, (lt_ptr_t) 0} 6597}; 6598 6599#ifdef __cplusplus 6600} 6601#endif 6602EOF 6603 # Now try linking the two files. 6604 mv conftest.$ac_objext conftstm.$ac_objext 6605 lt_save_LIBS="$LIBS" 6606 lt_save_CFLAGS="$CFLAGS" 6607 LIBS="conftstm.$ac_objext" 6608 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6610 (eval $ac_link) 2>&5 6611 ac_status=$? 6612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6613 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6614 pipe_works=yes 6615 fi 6616 LIBS="$lt_save_LIBS" 6617 CFLAGS="$lt_save_CFLAGS" 6618 else 6619 echo "cannot find nm_test_func in $nlist" >&5 6620 fi 6621 else 6622 echo "cannot find nm_test_var in $nlist" >&5 6623 fi 6624 else 6625 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6626 fi 6627 else 6628 echo "$progname: failed program was:" >&5 6629 cat conftest.$ac_ext >&5 6630 fi 6631 rm -rf conftest* conftst* 6632 6633 # Do not use the global_symbol_pipe unless it works. 6634 if test "$pipe_works" = yes; then 6635 break 6636 else 6637 lt_cv_sys_global_symbol_pipe= 6638 fi 6639done 6640 6641fi 6642 6643if test -z "$lt_cv_sys_global_symbol_pipe"; then 6644 lt_cv_sys_global_symbol_to_cdecl= 6645fi 6646if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6647 { $as_echo "$as_me:$LINENO: result: failed" >&5 6648$as_echo "failed" >&6; } 6649else 6650 { $as_echo "$as_me:$LINENO: result: ok" >&5 6651$as_echo "ok" >&6; } 6652fi 6653 6654{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 6655$as_echo_n "checking for objdir... " >&6; } 6656if test "${lt_cv_objdir+set}" = set; then 6657 $as_echo_n "(cached) " >&6 6658else 6659 rm -f .libs 2>/dev/null 6660mkdir .libs 2>/dev/null 6661if test -d .libs; then 6662 lt_cv_objdir=.libs 6663else 6664 # MS-DOS does not allow filenames that begin with a dot. 6665 lt_cv_objdir=_libs 6666fi 6667rmdir .libs 2>/dev/null 6668fi 6669{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6670$as_echo "$lt_cv_objdir" >&6; } 6671objdir=$lt_cv_objdir 6672 6673 6674 6675 6676 6677case $host_os in 6678aix3*) 6679 # AIX sometimes has problems with the GCC collect2 program. For some 6680 # reason, if we set the COLLECT_NAMES environment variable, the problems 6681 # vanish in a puff of smoke. 6682 if test "X${COLLECT_NAMES+set}" != Xset; then 6683 COLLECT_NAMES= 6684 export COLLECT_NAMES 6685 fi 6686 ;; 6687esac 6688 6689# Sed substitution that helps us do robust quoting. It backslashifies 6690# metacharacters that are still active within double-quoted strings. 6691Xsed='sed -e 1s/^X//' 6692sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6693 6694# Same as above, but do not quote variable references. 6695double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6696 6697# Sed substitution to delay expansion of an escaped shell variable in a 6698# double_quote_subst'ed string. 6699delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6700 6701# Sed substitution to avoid accidental globbing in evaled expressions 6702no_glob_subst='s/\*/\\\*/g' 6703 6704# Constants: 6705rm="rm -f" 6706 6707# Global variables: 6708default_ofile=libtool 6709can_build_shared=yes 6710 6711# All known linkers require a `.a' archive for static linking (except MSVC, 6712# which needs '.lib'). 6713libext=a 6714ltmain="$ac_aux_dir/ltmain.sh" 6715ofile="$default_ofile" 6716with_gnu_ld="$lt_cv_prog_gnu_ld" 6717 6718if test -n "$ac_tool_prefix"; then 6719 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6720set dummy ${ac_tool_prefix}ar; ac_word=$2 6721{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6722$as_echo_n "checking for $ac_word... " >&6; } 6723if test "${ac_cv_prog_AR+set}" = set; then 6724 $as_echo_n "(cached) " >&6 6725else 6726 if test -n "$AR"; then 6727 ac_cv_prog_AR="$AR" # Let the user override the test. 6728else 6729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6730for as_dir in $PATH 6731do 6732 IFS=$as_save_IFS 6733 test -z "$as_dir" && as_dir=. 6734 for ac_exec_ext in '' $ac_executable_extensions; do 6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6736 ac_cv_prog_AR="${ac_tool_prefix}ar" 6737 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6738 break 2 6739 fi 6740done 6741done 6742IFS=$as_save_IFS 6743 6744fi 6745fi 6746AR=$ac_cv_prog_AR 6747if test -n "$AR"; then 6748 { $as_echo "$as_me:$LINENO: result: $AR" >&5 6749$as_echo "$AR" >&6; } 6750else 6751 { $as_echo "$as_me:$LINENO: result: no" >&5 6752$as_echo "no" >&6; } 6753fi 6754 6755 6756fi 6757if test -z "$ac_cv_prog_AR"; then 6758 ac_ct_AR=$AR 6759 # Extract the first word of "ar", so it can be a program name with args. 6760set dummy ar; ac_word=$2 6761{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6762$as_echo_n "checking for $ac_word... " >&6; } 6763if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6764 $as_echo_n "(cached) " >&6 6765else 6766 if test -n "$ac_ct_AR"; then 6767 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6768else 6769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6770for as_dir in $PATH 6771do 6772 IFS=$as_save_IFS 6773 test -z "$as_dir" && as_dir=. 6774 for ac_exec_ext in '' $ac_executable_extensions; do 6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6776 ac_cv_prog_ac_ct_AR="ar" 6777 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6778 break 2 6779 fi 6780done 6781done 6782IFS=$as_save_IFS 6783 6784fi 6785fi 6786ac_ct_AR=$ac_cv_prog_ac_ct_AR 6787if test -n "$ac_ct_AR"; then 6788 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6789$as_echo "$ac_ct_AR" >&6; } 6790else 6791 { $as_echo "$as_me:$LINENO: result: no" >&5 6792$as_echo "no" >&6; } 6793fi 6794 6795 if test "x$ac_ct_AR" = x; then 6796 AR="false" 6797 else 6798 case $cross_compiling:$ac_tool_warned in 6799yes:) 6800{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6802ac_tool_warned=yes ;; 6803esac 6804 AR=$ac_ct_AR 6805 fi 6806else 6807 AR="$ac_cv_prog_AR" 6808fi 6809 6810if test -n "$ac_tool_prefix"; then 6811 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6812set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6813{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6814$as_echo_n "checking for $ac_word... " >&6; } 6815if test "${ac_cv_prog_RANLIB+set}" = set; then 6816 $as_echo_n "(cached) " >&6 6817else 6818 if test -n "$RANLIB"; then 6819 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6820else 6821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6822for as_dir in $PATH 6823do 6824 IFS=$as_save_IFS 6825 test -z "$as_dir" && as_dir=. 6826 for ac_exec_ext in '' $ac_executable_extensions; do 6827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6828 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6829 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6830 break 2 6831 fi 6832done 6833done 6834IFS=$as_save_IFS 6835 6836fi 6837fi 6838RANLIB=$ac_cv_prog_RANLIB 6839if test -n "$RANLIB"; then 6840 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6841$as_echo "$RANLIB" >&6; } 6842else 6843 { $as_echo "$as_me:$LINENO: result: no" >&5 6844$as_echo "no" >&6; } 6845fi 6846 6847 6848fi 6849if test -z "$ac_cv_prog_RANLIB"; then 6850 ac_ct_RANLIB=$RANLIB 6851 # Extract the first word of "ranlib", so it can be a program name with args. 6852set dummy ranlib; ac_word=$2 6853{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6854$as_echo_n "checking for $ac_word... " >&6; } 6855if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6856 $as_echo_n "(cached) " >&6 6857else 6858 if test -n "$ac_ct_RANLIB"; then 6859 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6860else 6861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6862for as_dir in $PATH 6863do 6864 IFS=$as_save_IFS 6865 test -z "$as_dir" && as_dir=. 6866 for ac_exec_ext in '' $ac_executable_extensions; do 6867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6868 ac_cv_prog_ac_ct_RANLIB="ranlib" 6869 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6870 break 2 6871 fi 6872done 6873done 6874IFS=$as_save_IFS 6875 6876fi 6877fi 6878ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6879if test -n "$ac_ct_RANLIB"; then 6880 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6881$as_echo "$ac_ct_RANLIB" >&6; } 6882else 6883 { $as_echo "$as_me:$LINENO: result: no" >&5 6884$as_echo "no" >&6; } 6885fi 6886 6887 if test "x$ac_ct_RANLIB" = x; then 6888 RANLIB=":" 6889 else 6890 case $cross_compiling:$ac_tool_warned in 6891yes:) 6892{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6894ac_tool_warned=yes ;; 6895esac 6896 RANLIB=$ac_ct_RANLIB 6897 fi 6898else 6899 RANLIB="$ac_cv_prog_RANLIB" 6900fi 6901 6902if test -n "$ac_tool_prefix"; then 6903 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6904set dummy ${ac_tool_prefix}strip; ac_word=$2 6905{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6906$as_echo_n "checking for $ac_word... " >&6; } 6907if test "${ac_cv_prog_STRIP+set}" = set; then 6908 $as_echo_n "(cached) " >&6 6909else 6910 if test -n "$STRIP"; then 6911 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6912else 6913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6914for as_dir in $PATH 6915do 6916 IFS=$as_save_IFS 6917 test -z "$as_dir" && as_dir=. 6918 for ac_exec_ext in '' $ac_executable_extensions; do 6919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6920 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6921 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6922 break 2 6923 fi 6924done 6925done 6926IFS=$as_save_IFS 6927 6928fi 6929fi 6930STRIP=$ac_cv_prog_STRIP 6931if test -n "$STRIP"; then 6932 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 6933$as_echo "$STRIP" >&6; } 6934else 6935 { $as_echo "$as_me:$LINENO: result: no" >&5 6936$as_echo "no" >&6; } 6937fi 6938 6939 6940fi 6941if test -z "$ac_cv_prog_STRIP"; then 6942 ac_ct_STRIP=$STRIP 6943 # Extract the first word of "strip", so it can be a program name with args. 6944set dummy strip; ac_word=$2 6945{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6946$as_echo_n "checking for $ac_word... " >&6; } 6947if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6948 $as_echo_n "(cached) " >&6 6949else 6950 if test -n "$ac_ct_STRIP"; then 6951 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6952else 6953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6954for as_dir in $PATH 6955do 6956 IFS=$as_save_IFS 6957 test -z "$as_dir" && as_dir=. 6958 for ac_exec_ext in '' $ac_executable_extensions; do 6959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6960 ac_cv_prog_ac_ct_STRIP="strip" 6961 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6962 break 2 6963 fi 6964done 6965done 6966IFS=$as_save_IFS 6967 6968fi 6969fi 6970ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6971if test -n "$ac_ct_STRIP"; then 6972 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6973$as_echo "$ac_ct_STRIP" >&6; } 6974else 6975 { $as_echo "$as_me:$LINENO: result: no" >&5 6976$as_echo "no" >&6; } 6977fi 6978 6979 if test "x$ac_ct_STRIP" = x; then 6980 STRIP=":" 6981 else 6982 case $cross_compiling:$ac_tool_warned in 6983yes:) 6984{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6986ac_tool_warned=yes ;; 6987esac 6988 STRIP=$ac_ct_STRIP 6989 fi 6990else 6991 STRIP="$ac_cv_prog_STRIP" 6992fi 6993 6994 6995old_CC="$CC" 6996old_CFLAGS="$CFLAGS" 6997 6998# Set sane defaults for various variables 6999test -z "$AR" && AR=ar 7000test -z "$AR_FLAGS" && AR_FLAGS=cru 7001test -z "$AS" && AS=as 7002test -z "$CC" && CC=cc 7003test -z "$LTCC" && LTCC=$CC 7004test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7005test -z "$DLLTOOL" && DLLTOOL=dlltool 7006test -z "$LD" && LD=ld 7007test -z "$LN_S" && LN_S="ln -s" 7008test -z "$MAGIC_CMD" && MAGIC_CMD=file 7009test -z "$NM" && NM=nm 7010test -z "$SED" && SED=sed 7011test -z "$OBJDUMP" && OBJDUMP=objdump 7012test -z "$RANLIB" && RANLIB=: 7013test -z "$STRIP" && STRIP=: 7014test -z "$ac_objext" && ac_objext=o 7015 7016# Determine commands to create old-style static archives. 7017old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7018old_postinstall_cmds='chmod 644 $oldlib' 7019old_postuninstall_cmds= 7020 7021if test -n "$RANLIB"; then 7022 case $host_os in 7023 openbsd*) 7024 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7025 ;; 7026 *) 7027 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7028 ;; 7029 esac 7030 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7031fi 7032 7033for cc_temp in $compiler""; do 7034 case $cc_temp in 7035 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7036 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7037 \-*) ;; 7038 *) break;; 7039 esac 7040done 7041cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7042 7043 7044# Only perform the check for file, if the check method requires it 7045case $deplibs_check_method in 7046file_magic*) 7047 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7048 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7049$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7050if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7051 $as_echo_n "(cached) " >&6 7052else 7053 case $MAGIC_CMD in 7054[\\/*] | ?:[\\/]*) 7055 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7056 ;; 7057*) 7058 lt_save_MAGIC_CMD="$MAGIC_CMD" 7059 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7060 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7061 for ac_dir in $ac_dummy; do 7062 IFS="$lt_save_ifs" 7063 test -z "$ac_dir" && ac_dir=. 7064 if test -f $ac_dir/${ac_tool_prefix}file; then 7065 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7066 if test -n "$file_magic_test_file"; then 7067 case $deplibs_check_method in 7068 "file_magic "*) 7069 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7070 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7071 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7072 $EGREP "$file_magic_regex" > /dev/null; then 7073 : 7074 else 7075 cat <<EOF 1>&2 7076 7077*** Warning: the command libtool uses to detect shared libraries, 7078*** $file_magic_cmd, produces output that libtool cannot recognize. 7079*** The result is that libtool may fail to recognize shared libraries 7080*** as such. This will affect the creation of libtool libraries that 7081*** depend on shared libraries, but programs linked with such libtool 7082*** libraries will work regardless of this problem. Nevertheless, you 7083*** may want to report the problem to your system manager and/or to 7084*** bug-libtool@gnu.org 7085 7086EOF 7087 fi ;; 7088 esac 7089 fi 7090 break 7091 fi 7092 done 7093 IFS="$lt_save_ifs" 7094 MAGIC_CMD="$lt_save_MAGIC_CMD" 7095 ;; 7096esac 7097fi 7098 7099MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7100if test -n "$MAGIC_CMD"; then 7101 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7102$as_echo "$MAGIC_CMD" >&6; } 7103else 7104 { $as_echo "$as_me:$LINENO: result: no" >&5 7105$as_echo "no" >&6; } 7106fi 7107 7108if test -z "$lt_cv_path_MAGIC_CMD"; then 7109 if test -n "$ac_tool_prefix"; then 7110 { $as_echo "$as_me:$LINENO: checking for file" >&5 7111$as_echo_n "checking for file... " >&6; } 7112if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7113 $as_echo_n "(cached) " >&6 7114else 7115 case $MAGIC_CMD in 7116[\\/*] | ?:[\\/]*) 7117 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7118 ;; 7119*) 7120 lt_save_MAGIC_CMD="$MAGIC_CMD" 7121 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7122 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7123 for ac_dir in $ac_dummy; do 7124 IFS="$lt_save_ifs" 7125 test -z "$ac_dir" && ac_dir=. 7126 if test -f $ac_dir/file; then 7127 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7128 if test -n "$file_magic_test_file"; then 7129 case $deplibs_check_method in 7130 "file_magic "*) 7131 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7132 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7133 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7134 $EGREP "$file_magic_regex" > /dev/null; then 7135 : 7136 else 7137 cat <<EOF 1>&2 7138 7139*** Warning: the command libtool uses to detect shared libraries, 7140*** $file_magic_cmd, produces output that libtool cannot recognize. 7141*** The result is that libtool may fail to recognize shared libraries 7142*** as such. This will affect the creation of libtool libraries that 7143*** depend on shared libraries, but programs linked with such libtool 7144*** libraries will work regardless of this problem. Nevertheless, you 7145*** may want to report the problem to your system manager and/or to 7146*** bug-libtool@gnu.org 7147 7148EOF 7149 fi ;; 7150 esac 7151 fi 7152 break 7153 fi 7154 done 7155 IFS="$lt_save_ifs" 7156 MAGIC_CMD="$lt_save_MAGIC_CMD" 7157 ;; 7158esac 7159fi 7160 7161MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7162if test -n "$MAGIC_CMD"; then 7163 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7164$as_echo "$MAGIC_CMD" >&6; } 7165else 7166 { $as_echo "$as_me:$LINENO: result: no" >&5 7167$as_echo "no" >&6; } 7168fi 7169 7170 else 7171 MAGIC_CMD=: 7172 fi 7173fi 7174 7175 fi 7176 ;; 7177esac 7178 7179 7180 case $host_os in 7181 rhapsody* | darwin*) 7182 if test -n "$ac_tool_prefix"; then 7183 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7184set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7185{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7186$as_echo_n "checking for $ac_word... " >&6; } 7187if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7188 $as_echo_n "(cached) " >&6 7189else 7190 if test -n "$DSYMUTIL"; then 7191 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7192else 7193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7194for as_dir in $PATH 7195do 7196 IFS=$as_save_IFS 7197 test -z "$as_dir" && as_dir=. 7198 for ac_exec_ext in '' $ac_executable_extensions; do 7199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7200 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7201 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7202 break 2 7203 fi 7204done 7205done 7206IFS=$as_save_IFS 7207 7208fi 7209fi 7210DSYMUTIL=$ac_cv_prog_DSYMUTIL 7211if test -n "$DSYMUTIL"; then 7212 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7213$as_echo "$DSYMUTIL" >&6; } 7214else 7215 { $as_echo "$as_me:$LINENO: result: no" >&5 7216$as_echo "no" >&6; } 7217fi 7218 7219 7220fi 7221if test -z "$ac_cv_prog_DSYMUTIL"; then 7222 ac_ct_DSYMUTIL=$DSYMUTIL 7223 # Extract the first word of "dsymutil", so it can be a program name with args. 7224set dummy dsymutil; ac_word=$2 7225{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7226$as_echo_n "checking for $ac_word... " >&6; } 7227if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7228 $as_echo_n "(cached) " >&6 7229else 7230 if test -n "$ac_ct_DSYMUTIL"; then 7231 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7232else 7233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7234for as_dir in $PATH 7235do 7236 IFS=$as_save_IFS 7237 test -z "$as_dir" && as_dir=. 7238 for ac_exec_ext in '' $ac_executable_extensions; do 7239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7240 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7241 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7242 break 2 7243 fi 7244done 7245done 7246IFS=$as_save_IFS 7247 7248fi 7249fi 7250ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7251if test -n "$ac_ct_DSYMUTIL"; then 7252 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7253$as_echo "$ac_ct_DSYMUTIL" >&6; } 7254else 7255 { $as_echo "$as_me:$LINENO: result: no" >&5 7256$as_echo "no" >&6; } 7257fi 7258 7259 if test "x$ac_ct_DSYMUTIL" = x; then 7260 DSYMUTIL=":" 7261 else 7262 case $cross_compiling:$ac_tool_warned in 7263yes:) 7264{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7266ac_tool_warned=yes ;; 7267esac 7268 DSYMUTIL=$ac_ct_DSYMUTIL 7269 fi 7270else 7271 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7272fi 7273 7274 if test -n "$ac_tool_prefix"; then 7275 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7276set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7277{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7278$as_echo_n "checking for $ac_word... " >&6; } 7279if test "${ac_cv_prog_NMEDIT+set}" = set; then 7280 $as_echo_n "(cached) " >&6 7281else 7282 if test -n "$NMEDIT"; then 7283 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7284else 7285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7286for as_dir in $PATH 7287do 7288 IFS=$as_save_IFS 7289 test -z "$as_dir" && as_dir=. 7290 for ac_exec_ext in '' $ac_executable_extensions; do 7291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7292 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7293 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7294 break 2 7295 fi 7296done 7297done 7298IFS=$as_save_IFS 7299 7300fi 7301fi 7302NMEDIT=$ac_cv_prog_NMEDIT 7303if test -n "$NMEDIT"; then 7304 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 7305$as_echo "$NMEDIT" >&6; } 7306else 7307 { $as_echo "$as_me:$LINENO: result: no" >&5 7308$as_echo "no" >&6; } 7309fi 7310 7311 7312fi 7313if test -z "$ac_cv_prog_NMEDIT"; then 7314 ac_ct_NMEDIT=$NMEDIT 7315 # Extract the first word of "nmedit", so it can be a program name with args. 7316set dummy nmedit; ac_word=$2 7317{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7318$as_echo_n "checking for $ac_word... " >&6; } 7319if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7320 $as_echo_n "(cached) " >&6 7321else 7322 if test -n "$ac_ct_NMEDIT"; then 7323 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7324else 7325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7326for as_dir in $PATH 7327do 7328 IFS=$as_save_IFS 7329 test -z "$as_dir" && as_dir=. 7330 for ac_exec_ext in '' $ac_executable_extensions; do 7331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7332 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7333 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7334 break 2 7335 fi 7336done 7337done 7338IFS=$as_save_IFS 7339 7340fi 7341fi 7342ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7343if test -n "$ac_ct_NMEDIT"; then 7344 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7345$as_echo "$ac_ct_NMEDIT" >&6; } 7346else 7347 { $as_echo "$as_me:$LINENO: result: no" >&5 7348$as_echo "no" >&6; } 7349fi 7350 7351 if test "x$ac_ct_NMEDIT" = x; then 7352 NMEDIT=":" 7353 else 7354 case $cross_compiling:$ac_tool_warned in 7355yes:) 7356{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7358ac_tool_warned=yes ;; 7359esac 7360 NMEDIT=$ac_ct_NMEDIT 7361 fi 7362else 7363 NMEDIT="$ac_cv_prog_NMEDIT" 7364fi 7365 7366 7367 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7368$as_echo_n "checking for -single_module linker flag... " >&6; } 7369if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7370 $as_echo_n "(cached) " >&6 7371else 7372 lt_cv_apple_cc_single_mod=no 7373 if test -z "${LT_MULTI_MODULE}"; then 7374 # By default we will add the -single_module flag. You can override 7375 # by either setting the environment variable LT_MULTI_MODULE 7376 # non-empty at configure time, or by adding -multi_module to the 7377 # link flags. 7378 echo "int foo(void){return 1;}" > conftest.c 7379 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7380 -dynamiclib ${wl}-single_module conftest.c 7381 if test -f libconftest.dylib; then 7382 lt_cv_apple_cc_single_mod=yes 7383 rm -rf libconftest.dylib* 7384 fi 7385 rm conftest.c 7386 fi 7387fi 7388{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7389$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7390 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7391$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7392if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7393 $as_echo_n "(cached) " >&6 7394else 7395 lt_cv_ld_exported_symbols_list=no 7396 save_LDFLAGS=$LDFLAGS 7397 echo "_main" > conftest.sym 7398 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7399 cat >conftest.$ac_ext <<_ACEOF 7400/* confdefs.h. */ 7401_ACEOF 7402cat confdefs.h >>conftest.$ac_ext 7403cat >>conftest.$ac_ext <<_ACEOF 7404/* end confdefs.h. */ 7405 7406int 7407main () 7408{ 7409 7410 ; 7411 return 0; 7412} 7413_ACEOF 7414rm -f conftest.$ac_objext conftest$ac_exeext 7415if { (ac_try="$ac_link" 7416case "(($ac_try" in 7417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7418 *) ac_try_echo=$ac_try;; 7419esac 7420eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7421$as_echo "$ac_try_echo") >&5 7422 (eval "$ac_link") 2>conftest.er1 7423 ac_status=$? 7424 grep -v '^ *+' conftest.er1 >conftest.err 7425 rm -f conftest.er1 7426 cat conftest.err >&5 7427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7428 (exit $ac_status); } && { 7429 test -z "$ac_c_werror_flag" || 7430 test ! -s conftest.err 7431 } && test -s conftest$ac_exeext && { 7432 test "$cross_compiling" = yes || 7433 $as_test_x conftest$ac_exeext 7434 }; then 7435 lt_cv_ld_exported_symbols_list=yes 7436else 7437 $as_echo "$as_me: failed program was:" >&5 7438sed 's/^/| /' conftest.$ac_ext >&5 7439 7440 lt_cv_ld_exported_symbols_list=no 7441fi 7442 7443rm -rf conftest.dSYM 7444rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7445 conftest$ac_exeext conftest.$ac_ext 7446 LDFLAGS="$save_LDFLAGS" 7447 7448fi 7449{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7450$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7451 case $host_os in 7452 rhapsody* | darwin1.[0123]) 7453 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7454 darwin1.*) 7455 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7456 darwin*) 7457 # if running on 10.5 or later, the deployment target defaults 7458 # to the OS version, if on x86, and 10.4, the deployment 7459 # target defaults to 10.4. Don't you love it? 7460 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7461 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7462 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7463 10.[012]*) 7464 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7465 10.*) 7466 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7467 esac 7468 ;; 7469 esac 7470 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7471 _lt_dar_single_mod='$single_module' 7472 fi 7473 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7474 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7475 else 7476 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 7477 fi 7478 if test "$DSYMUTIL" != ":"; then 7479 _lt_dsymutil="~$DSYMUTIL \$lib || :" 7480 else 7481 _lt_dsymutil= 7482 fi 7483 ;; 7484 esac 7485 7486 7487enable_dlopen=no 7488enable_win32_dll=no 7489 7490# Check whether --enable-libtool-lock was given. 7491if test "${enable_libtool_lock+set}" = set; then 7492 enableval=$enable_libtool_lock; 7493fi 7494 7495test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7496 7497 7498# Check whether --with-pic was given. 7499if test "${with_pic+set}" = set; then 7500 withval=$with_pic; pic_mode="$withval" 7501else 7502 pic_mode=default 7503fi 7504 7505test -z "$pic_mode" && pic_mode=default 7506 7507# Use C for the default configuration in the libtool script 7508tagname= 7509lt_save_CC="$CC" 7510ac_ext=c 7511ac_cpp='$CPP $CPPFLAGS' 7512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7514ac_compiler_gnu=$ac_cv_c_compiler_gnu 7515 7516 7517# Source file extension for C test sources. 7518ac_ext=c 7519 7520# Object file extension for compiled C test sources. 7521objext=o 7522objext=$objext 7523 7524# Code to be used in simple compile tests 7525lt_simple_compile_test_code="int some_variable = 0;" 7526 7527# Code to be used in simple link tests 7528lt_simple_link_test_code='int main(){return(0);}' 7529 7530 7531# If no C compiler was specified, use CC. 7532LTCC=${LTCC-"$CC"} 7533 7534# If no C compiler flags were specified, use CFLAGS. 7535LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7536 7537# Allow CC to be a program name with arguments. 7538compiler=$CC 7539 7540 7541# save warnings/boilerplate of simple test code 7542ac_outfile=conftest.$ac_objext 7543echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7544eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7545_lt_compiler_boilerplate=`cat conftest.err` 7546$rm conftest* 7547 7548ac_outfile=conftest.$ac_objext 7549echo "$lt_simple_link_test_code" >conftest.$ac_ext 7550eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7551_lt_linker_boilerplate=`cat conftest.err` 7552$rm -r conftest* 7553 7554 7555 7556lt_prog_compiler_no_builtin_flag= 7557 7558if test "$GCC" = yes; then 7559 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7560 7561 7562{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7563$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7564if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7565 $as_echo_n "(cached) " >&6 7566else 7567 lt_cv_prog_compiler_rtti_exceptions=no 7568 ac_outfile=conftest.$ac_objext 7569 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7570 lt_compiler_flag="-fno-rtti -fno-exceptions" 7571 # Insert the option either (1) after the last *FLAGS variable, or 7572 # (2) before a word containing "conftest.", or (3) at the end. 7573 # Note that $ac_compile itself does not contain backslashes and begins 7574 # with a dollar sign (not a hyphen), so the echo should work correctly. 7575 # The option is referenced via a variable to avoid confusing sed. 7576 lt_compile=`echo "$ac_compile" | $SED \ 7577 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7579 -e 's:$: $lt_compiler_flag:'` 7580 (eval echo "\"\$as_me:7580: $lt_compile\"" >&5) 7581 (eval "$lt_compile" 2>conftest.err) 7582 ac_status=$? 7583 cat conftest.err >&5 7584 echo "$as_me:7584: \$? = $ac_status" >&5 7585 if (exit $ac_status) && test -s "$ac_outfile"; then 7586 # The compiler can only warn and ignore the option if not recognized 7587 # So say no if there are warnings other than the usual output. 7588 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7589 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7590 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7591 lt_cv_prog_compiler_rtti_exceptions=yes 7592 fi 7593 fi 7594 $rm conftest* 7595 7596fi 7597{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7598$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7599 7600if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7601 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7602else 7603 : 7604fi 7605 7606fi 7607 7608lt_prog_compiler_wl= 7609lt_prog_compiler_pic= 7610lt_prog_compiler_static= 7611 7612{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7613$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7614 7615 if test "$GCC" = yes; then 7616 lt_prog_compiler_wl='-Wl,' 7617 lt_prog_compiler_static='-static' 7618 7619 case $host_os in 7620 aix*) 7621 # All AIX code is PIC. 7622 if test "$host_cpu" = ia64; then 7623 # AIX 5 now supports IA64 processor 7624 lt_prog_compiler_static='-Bstatic' 7625 fi 7626 ;; 7627 7628 amigaos*) 7629 # FIXME: we need at least 68020 code to build shared libraries, but 7630 # adding the `-m68020' flag to GCC prevents building anything better, 7631 # like `-m68040'. 7632 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7633 ;; 7634 7635 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7636 # PIC is the default for these OSes. 7637 ;; 7638 7639 mingw* | cygwin* | pw32* | os2*) 7640 # This hack is so that the source file can tell whether it is being 7641 # built for inclusion in a dll (and should export symbols for example). 7642 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7643 # (--disable-auto-import) libraries 7644 lt_prog_compiler_pic='-DDLL_EXPORT' 7645 ;; 7646 7647 darwin* | rhapsody*) 7648 # PIC is the default on this platform 7649 # Common symbols not allowed in MH_DYLIB files 7650 lt_prog_compiler_pic='-fno-common' 7651 ;; 7652 7653 interix[3-9]*) 7654 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7655 # Instead, we relocate shared libraries at runtime. 7656 ;; 7657 7658 msdosdjgpp*) 7659 # Just because we use GCC doesn't mean we suddenly get shared libraries 7660 # on systems that don't support them. 7661 lt_prog_compiler_can_build_shared=no 7662 enable_shared=no 7663 ;; 7664 7665 sysv4*MP*) 7666 if test -d /usr/nec; then 7667 lt_prog_compiler_pic=-Kconform_pic 7668 fi 7669 ;; 7670 7671 hpux*) 7672 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7673 # not for PA HP-UX. 7674 case $host_cpu in 7675 hppa*64*|ia64*) 7676 # +Z the default 7677 ;; 7678 *) 7679 lt_prog_compiler_pic='-fPIC' 7680 ;; 7681 esac 7682 ;; 7683 7684 *) 7685 lt_prog_compiler_pic='-fPIC' 7686 ;; 7687 esac 7688 else 7689 # PORTME Check for flag to pass linker flags through the system compiler. 7690 case $host_os in 7691 aix*) 7692 lt_prog_compiler_wl='-Wl,' 7693 if test "$host_cpu" = ia64; then 7694 # AIX 5 now supports IA64 processor 7695 lt_prog_compiler_static='-Bstatic' 7696 else 7697 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7698 fi 7699 ;; 7700 darwin*) 7701 # PIC is the default on this platform 7702 # Common symbols not allowed in MH_DYLIB files 7703 case $cc_basename in 7704 xlc*) 7705 lt_prog_compiler_pic='-qnocommon' 7706 lt_prog_compiler_wl='-Wl,' 7707 ;; 7708 esac 7709 ;; 7710 7711 mingw* | cygwin* | pw32* | os2*) 7712 # This hack is so that the source file can tell whether it is being 7713 # built for inclusion in a dll (and should export symbols for example). 7714 lt_prog_compiler_pic='-DDLL_EXPORT' 7715 ;; 7716 7717 hpux9* | hpux10* | hpux11*) 7718 lt_prog_compiler_wl='-Wl,' 7719 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7720 # not for PA HP-UX. 7721 case $host_cpu in 7722 hppa*64*|ia64*) 7723 # +Z the default 7724 ;; 7725 *) 7726 lt_prog_compiler_pic='+Z' 7727 ;; 7728 esac 7729 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7730 lt_prog_compiler_static='${wl}-a ${wl}archive' 7731 ;; 7732 7733 irix5* | irix6* | nonstopux*) 7734 lt_prog_compiler_wl='-Wl,' 7735 # PIC (with -KPIC) is the default. 7736 lt_prog_compiler_static='-non_shared' 7737 ;; 7738 7739 newsos6) 7740 lt_prog_compiler_pic='-KPIC' 7741 lt_prog_compiler_static='-Bstatic' 7742 ;; 7743 7744 linux* | k*bsd*-gnu) 7745 case $cc_basename in 7746 icc* | ecc*) 7747 lt_prog_compiler_wl='-Wl,' 7748 lt_prog_compiler_pic='-KPIC' 7749 lt_prog_compiler_static='-static' 7750 ;; 7751 pgcc* | pgf77* | pgf90* | pgf95*) 7752 # Portland Group compilers (*not* the Pentium gcc compiler, 7753 # which looks to be a dead project) 7754 lt_prog_compiler_wl='-Wl,' 7755 lt_prog_compiler_pic='-fpic' 7756 lt_prog_compiler_static='-Bstatic' 7757 ;; 7758 ccc*) 7759 lt_prog_compiler_wl='-Wl,' 7760 # All Alpha code is PIC. 7761 lt_prog_compiler_static='-non_shared' 7762 ;; 7763 *) 7764 case `$CC -V 2>&1 | sed 5q` in 7765 *Sun\ C*) 7766 # Sun C 5.9 7767 lt_prog_compiler_pic='-KPIC' 7768 lt_prog_compiler_static='-Bstatic' 7769 lt_prog_compiler_wl='-Wl,' 7770 ;; 7771 *Sun\ F*) 7772 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7773 lt_prog_compiler_pic='-KPIC' 7774 lt_prog_compiler_static='-Bstatic' 7775 lt_prog_compiler_wl='' 7776 ;; 7777 esac 7778 ;; 7779 esac 7780 ;; 7781 7782 osf3* | osf4* | osf5*) 7783 lt_prog_compiler_wl='-Wl,' 7784 # All OSF/1 code is PIC. 7785 lt_prog_compiler_static='-non_shared' 7786 ;; 7787 7788 rdos*) 7789 lt_prog_compiler_static='-non_shared' 7790 ;; 7791 7792 solaris*) 7793 lt_prog_compiler_pic='-KPIC' 7794 lt_prog_compiler_static='-Bstatic' 7795 case $cc_basename in 7796 f77* | f90* | f95*) 7797 lt_prog_compiler_wl='-Qoption ld ';; 7798 *) 7799 lt_prog_compiler_wl='-Wl,';; 7800 esac 7801 ;; 7802 7803 sunos4*) 7804 lt_prog_compiler_wl='-Qoption ld ' 7805 lt_prog_compiler_pic='-PIC' 7806 lt_prog_compiler_static='-Bstatic' 7807 ;; 7808 7809 sysv4 | sysv4.2uw2* | sysv4.3*) 7810 lt_prog_compiler_wl='-Wl,' 7811 lt_prog_compiler_pic='-KPIC' 7812 lt_prog_compiler_static='-Bstatic' 7813 ;; 7814 7815 sysv4*MP*) 7816 if test -d /usr/nec ;then 7817 lt_prog_compiler_pic='-Kconform_pic' 7818 lt_prog_compiler_static='-Bstatic' 7819 fi 7820 ;; 7821 7822 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7823 lt_prog_compiler_wl='-Wl,' 7824 lt_prog_compiler_pic='-KPIC' 7825 lt_prog_compiler_static='-Bstatic' 7826 ;; 7827 7828 unicos*) 7829 lt_prog_compiler_wl='-Wl,' 7830 lt_prog_compiler_can_build_shared=no 7831 ;; 7832 7833 uts4*) 7834 lt_prog_compiler_pic='-pic' 7835 lt_prog_compiler_static='-Bstatic' 7836 ;; 7837 7838 *) 7839 lt_prog_compiler_can_build_shared=no 7840 ;; 7841 esac 7842 fi 7843 7844{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7845$as_echo "$lt_prog_compiler_pic" >&6; } 7846 7847# 7848# Check to make sure the PIC flag actually works. 7849# 7850if test -n "$lt_prog_compiler_pic"; then 7851 7852{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7853$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7854if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7855 $as_echo_n "(cached) " >&6 7856else 7857 lt_cv_prog_compiler_pic_works=no 7858 ac_outfile=conftest.$ac_objext 7859 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7860 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7861 # Insert the option either (1) after the last *FLAGS variable, or 7862 # (2) before a word containing "conftest.", or (3) at the end. 7863 # Note that $ac_compile itself does not contain backslashes and begins 7864 # with a dollar sign (not a hyphen), so the echo should work correctly. 7865 # The option is referenced via a variable to avoid confusing sed. 7866 lt_compile=`echo "$ac_compile" | $SED \ 7867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7869 -e 's:$: $lt_compiler_flag:'` 7870 (eval echo "\"\$as_me:7870: $lt_compile\"" >&5) 7871 (eval "$lt_compile" 2>conftest.err) 7872 ac_status=$? 7873 cat conftest.err >&5 7874 echo "$as_me:7874: \$? = $ac_status" >&5 7875 if (exit $ac_status) && test -s "$ac_outfile"; then 7876 # The compiler can only warn and ignore the option if not recognized 7877 # So say no if there are warnings other than the usual output. 7878 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7879 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7880 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7881 lt_cv_prog_compiler_pic_works=yes 7882 fi 7883 fi 7884 $rm conftest* 7885 7886fi 7887{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7888$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7889 7890if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7891 case $lt_prog_compiler_pic in 7892 "" | " "*) ;; 7893 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7894 esac 7895else 7896 lt_prog_compiler_pic= 7897 lt_prog_compiler_can_build_shared=no 7898fi 7899 7900fi 7901case $host_os in 7902 # For platforms which do not support PIC, -DPIC is meaningless: 7903 *djgpp*) 7904 lt_prog_compiler_pic= 7905 ;; 7906 *) 7907 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7908 ;; 7909esac 7910 7911# 7912# Check to make sure the static flag actually works. 7913# 7914wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7915{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7916$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7917if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7918 $as_echo_n "(cached) " >&6 7919else 7920 lt_cv_prog_compiler_static_works=no 7921 save_LDFLAGS="$LDFLAGS" 7922 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7923 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7924 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7925 # The linker can only warn and ignore the option if not recognized 7926 # So say no if there are warnings 7927 if test -s conftest.err; then 7928 # Append any errors to the config.log. 7929 cat conftest.err 1>&5 7930 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7932 if diff conftest.exp conftest.er2 >/dev/null; then 7933 lt_cv_prog_compiler_static_works=yes 7934 fi 7935 else 7936 lt_cv_prog_compiler_static_works=yes 7937 fi 7938 fi 7939 $rm -r conftest* 7940 LDFLAGS="$save_LDFLAGS" 7941 7942fi 7943{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7944$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7945 7946if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7947 : 7948else 7949 lt_prog_compiler_static= 7950fi 7951 7952 7953{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7954$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7955if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7956 $as_echo_n "(cached) " >&6 7957else 7958 lt_cv_prog_compiler_c_o=no 7959 $rm -r conftest 2>/dev/null 7960 mkdir conftest 7961 cd conftest 7962 mkdir out 7963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7964 7965 lt_compiler_flag="-o out/conftest2.$ac_objext" 7966 # Insert the option either (1) after the last *FLAGS variable, or 7967 # (2) before a word containing "conftest.", or (3) at the end. 7968 # Note that $ac_compile itself does not contain backslashes and begins 7969 # with a dollar sign (not a hyphen), so the echo should work correctly. 7970 lt_compile=`echo "$ac_compile" | $SED \ 7971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7973 -e 's:$: $lt_compiler_flag:'` 7974 (eval echo "\"\$as_me:7974: $lt_compile\"" >&5) 7975 (eval "$lt_compile" 2>out/conftest.err) 7976 ac_status=$? 7977 cat out/conftest.err >&5 7978 echo "$as_me:7978: \$? = $ac_status" >&5 7979 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7980 then 7981 # The compiler can only warn and ignore the option if not recognized 7982 # So say no if there are warnings 7983 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7984 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7985 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7986 lt_cv_prog_compiler_c_o=yes 7987 fi 7988 fi 7989 chmod u+w . 2>&5 7990 $rm conftest* 7991 # SGI C++ compiler will create directory out/ii_files/ for 7992 # template instantiation 7993 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7994 $rm out/* && rmdir out 7995 cd .. 7996 rmdir conftest 7997 $rm conftest* 7998 7999fi 8000{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8001$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8002 8003 8004hard_links="nottested" 8005if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8006 # do not overwrite the value of need_locks provided by the user 8007 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8008$as_echo_n "checking if we can lock with hard links... " >&6; } 8009 hard_links=yes 8010 $rm conftest* 8011 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8012 touch conftest.a 8013 ln conftest.a conftest.b 2>&5 || hard_links=no 8014 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8015 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8016$as_echo "$hard_links" >&6; } 8017 if test "$hard_links" = no; then 8018 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8019$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8020 need_locks=warn 8021 fi 8022else 8023 need_locks=no 8024fi 8025 8026{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8027$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8028 8029 runpath_var= 8030 allow_undefined_flag= 8031 enable_shared_with_static_runtimes=no 8032 archive_cmds= 8033 archive_expsym_cmds= 8034 old_archive_From_new_cmds= 8035 old_archive_from_expsyms_cmds= 8036 export_dynamic_flag_spec= 8037 whole_archive_flag_spec= 8038 thread_safe_flag_spec= 8039 hardcode_libdir_flag_spec= 8040 hardcode_libdir_flag_spec_ld= 8041 hardcode_libdir_separator= 8042 hardcode_direct=no 8043 hardcode_minus_L=no 8044 hardcode_shlibpath_var=unsupported 8045 link_all_deplibs=unknown 8046 hardcode_automatic=no 8047 module_cmds= 8048 module_expsym_cmds= 8049 always_export_symbols=no 8050 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8051 # include_expsyms should be a list of space-separated symbols to be *always* 8052 # included in the symbol list 8053 include_expsyms= 8054 # exclude_expsyms can be an extended regexp of symbols to exclude 8055 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8056 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8057 # as well as any symbol that contains `d'. 8058 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8059 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8060 # platforms (ab)use it in PIC code, but their linkers get confused if 8061 # the symbol is explicitly referenced. Since portable code cannot 8062 # rely on this symbol name, it's probably fine to never include it in 8063 # preloaded symbol tables. 8064 # Exclude shared library initialization/finalization symbols. 8065 extract_expsyms_cmds= 8066 # Just being paranoid about ensuring that cc_basename is set. 8067 for cc_temp in $compiler""; do 8068 case $cc_temp in 8069 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8070 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8071 \-*) ;; 8072 *) break;; 8073 esac 8074done 8075cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8076 8077 case $host_os in 8078 cygwin* | mingw* | pw32*) 8079 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8080 # When not using gcc, we currently assume that we are using 8081 # Microsoft Visual C++. 8082 if test "$GCC" != yes; then 8083 with_gnu_ld=no 8084 fi 8085 ;; 8086 interix*) 8087 # we just hope/assume this is gcc and not c89 (= MSVC++) 8088 with_gnu_ld=yes 8089 ;; 8090 openbsd*) 8091 with_gnu_ld=no 8092 ;; 8093 esac 8094 8095 ld_shlibs=yes 8096 if test "$with_gnu_ld" = yes; then 8097 # If archive_cmds runs LD, not CC, wlarc should be empty 8098 wlarc='${wl}' 8099 8100 # Set some defaults for GNU ld with shared library support. These 8101 # are reset later if shared libraries are not supported. Putting them 8102 # here allows them to be overridden if necessary. 8103 runpath_var=LD_RUN_PATH 8104 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8105 export_dynamic_flag_spec='${wl}--export-dynamic' 8106 # ancient GNU ld didn't support --whole-archive et. al. 8107 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8108 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8109 else 8110 whole_archive_flag_spec= 8111 fi 8112 supports_anon_versioning=no 8113 case `$LD -v 2>/dev/null` in 8114 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8115 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8116 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8117 *\ 2.11.*) ;; # other 2.11 versions 8118 *) supports_anon_versioning=yes ;; 8119 esac 8120 8121 # See if GNU ld supports shared libraries. 8122 case $host_os in 8123 aix[3-9]*) 8124 # On AIX/PPC, the GNU linker is very broken 8125 if test "$host_cpu" != ia64; then 8126 ld_shlibs=no 8127 cat <<EOF 1>&2 8128 8129*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8130*** to be unable to reliably create shared libraries on AIX. 8131*** Therefore, libtool is disabling shared libraries support. If you 8132*** really care for shared libraries, you may want to modify your PATH 8133*** so that a non-GNU linker is found, and then restart. 8134 8135EOF 8136 fi 8137 ;; 8138 8139 amigaos*) 8140 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)' 8141 hardcode_libdir_flag_spec='-L$libdir' 8142 hardcode_minus_L=yes 8143 8144 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8145 # that the semantics of dynamic libraries on AmigaOS, at least up 8146 # to version 4, is to share data among multiple programs linked 8147 # with the same dynamic library. Since this doesn't match the 8148 # behavior of shared libraries on other platforms, we can't use 8149 # them. 8150 ld_shlibs=no 8151 ;; 8152 8153 beos*) 8154 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8155 allow_undefined_flag=unsupported 8156 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8157 # support --undefined. This deserves some investigation. FIXME 8158 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8159 else 8160 ld_shlibs=no 8161 fi 8162 ;; 8163 8164 cygwin* | mingw* | pw32*) 8165 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8166 # as there is no search path for DLLs. 8167 hardcode_libdir_flag_spec='-L$libdir' 8168 allow_undefined_flag=unsupported 8169 always_export_symbols=no 8170 enable_shared_with_static_runtimes=yes 8171 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8172 8173 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8175 # If the export-symbols file already is a .def file (1st line 8176 # is EXPORTS), use it as is; otherwise, prepend... 8177 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8178 cp $export_symbols $output_objdir/$soname.def; 8179 else 8180 echo EXPORTS > $output_objdir/$soname.def; 8181 cat $export_symbols >> $output_objdir/$soname.def; 8182 fi~ 8183 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8184 else 8185 ld_shlibs=no 8186 fi 8187 ;; 8188 8189 interix[3-9]*) 8190 hardcode_direct=no 8191 hardcode_shlibpath_var=no 8192 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8193 export_dynamic_flag_spec='${wl}-E' 8194 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8195 # Instead, shared libraries are loaded at an image base (0x10000000 by 8196 # default) and relocated if they conflict, which is a slow very memory 8197 # consuming and fragmenting process. To avoid this, we pick a random, 8198 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8199 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8200 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8201 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' 8202 ;; 8203 8204 gnu* | linux* | k*bsd*-gnu) 8205 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8206 tmp_addflag= 8207 case $cc_basename,$host_cpu in 8208 pgcc*) # Portland Group C compiler 8209 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' 8210 tmp_addflag=' $pic_flag' 8211 ;; 8212 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8213 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' 8214 tmp_addflag=' $pic_flag -Mnomain' ;; 8215 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8216 tmp_addflag=' -i_dynamic' ;; 8217 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8218 tmp_addflag=' -i_dynamic -nofor_main' ;; 8219 ifc* | ifort*) # Intel Fortran compiler 8220 tmp_addflag=' -nofor_main' ;; 8221 esac 8222 case `$CC -V 2>&1 | sed 5q` in 8223 *Sun\ C*) # Sun C 5.9 8224 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' 8225 tmp_sharedflag='-G' ;; 8226 *Sun\ F*) # Sun Fortran 8.3 8227 tmp_sharedflag='-G' ;; 8228 *) 8229 tmp_sharedflag='-shared' ;; 8230 esac 8231 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8232 8233 if test $supports_anon_versioning = yes; then 8234 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8235 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8236 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8237 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8238 fi 8239 else 8240 ld_shlibs=no 8241 fi 8242 ;; 8243 8244 netbsd*) 8245 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8246 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8247 wlarc= 8248 else 8249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8250 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8251 fi 8252 ;; 8253 8254 solaris*) 8255 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8256 ld_shlibs=no 8257 cat <<EOF 1>&2 8258 8259*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8260*** create shared libraries on Solaris systems. Therefore, libtool 8261*** is disabling shared libraries support. We urge you to upgrade GNU 8262*** binutils to release 2.9.1 or newer. Another option is to modify 8263*** your PATH or compiler configuration so that the native linker is 8264*** used, and then restart. 8265 8266EOF 8267 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8269 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8270 else 8271 ld_shlibs=no 8272 fi 8273 ;; 8274 8275 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8276 case `$LD -v 2>&1` in 8277 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8278 ld_shlibs=no 8279 cat <<_LT_EOF 1>&2 8280 8281*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8282*** reliably create shared libraries on SCO systems. Therefore, libtool 8283*** is disabling shared libraries support. We urge you to upgrade GNU 8284*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8285*** your PATH or compiler configuration so that the native linker is 8286*** used, and then restart. 8287 8288_LT_EOF 8289 ;; 8290 *) 8291 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8292 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8295 else 8296 ld_shlibs=no 8297 fi 8298 ;; 8299 esac 8300 ;; 8301 8302 sunos4*) 8303 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8304 wlarc= 8305 hardcode_direct=yes 8306 hardcode_shlibpath_var=no 8307 ;; 8308 8309 *) 8310 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8312 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8313 else 8314 ld_shlibs=no 8315 fi 8316 ;; 8317 esac 8318 8319 if test "$ld_shlibs" = no; then 8320 runpath_var= 8321 hardcode_libdir_flag_spec= 8322 export_dynamic_flag_spec= 8323 whole_archive_flag_spec= 8324 fi 8325 else 8326 # PORTME fill in a description of your system's linker (not GNU ld) 8327 case $host_os in 8328 aix3*) 8329 allow_undefined_flag=unsupported 8330 always_export_symbols=yes 8331 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' 8332 # Note: this linker hardcodes the directories in LIBPATH if there 8333 # are no directories specified by -L. 8334 hardcode_minus_L=yes 8335 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8336 # Neither direct hardcoding nor static linking is supported with a 8337 # broken collect2. 8338 hardcode_direct=unsupported 8339 fi 8340 ;; 8341 8342 aix[4-9]*) 8343 if test "$host_cpu" = ia64; then 8344 # On IA64, the linker does run time linking by default, so we don't 8345 # have to do anything special. 8346 aix_use_runtimelinking=no 8347 exp_sym_flag='-Bexport' 8348 no_entry_flag="" 8349 else 8350 # If we're using GNU nm, then we don't want the "-C" option. 8351 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8352 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8353 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' 8354 else 8355 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' 8356 fi 8357 aix_use_runtimelinking=no 8358 8359 # Test if we are trying to use run time linking or normal 8360 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8361 # need to do runtime linking. 8362 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8363 for ld_flag in $LDFLAGS; do 8364 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8365 aix_use_runtimelinking=yes 8366 break 8367 fi 8368 done 8369 ;; 8370 esac 8371 8372 exp_sym_flag='-bexport' 8373 no_entry_flag='-bnoentry' 8374 fi 8375 8376 # When large executables or shared objects are built, AIX ld can 8377 # have problems creating the table of contents. If linking a library 8378 # or program results in "error TOC overflow" add -mminimal-toc to 8379 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8380 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8381 8382 archive_cmds='' 8383 hardcode_direct=yes 8384 hardcode_libdir_separator=':' 8385 link_all_deplibs=yes 8386 8387 if test "$GCC" = yes; then 8388 case $host_os in aix4.[012]|aix4.[012].*) 8389 # We only want to do this on AIX 4.2 and lower, the check 8390 # below for broken collect2 doesn't work under 4.3+ 8391 collect2name=`${CC} -print-prog-name=collect2` 8392 if test -f "$collect2name" && \ 8393 strings "$collect2name" | grep resolve_lib_name >/dev/null 8394 then 8395 # We have reworked collect2 8396 : 8397 else 8398 # We have old collect2 8399 hardcode_direct=unsupported 8400 # It fails to find uninstalled libraries when the uninstalled 8401 # path is not listed in the libpath. Setting hardcode_minus_L 8402 # to unsupported forces relinking 8403 hardcode_minus_L=yes 8404 hardcode_libdir_flag_spec='-L$libdir' 8405 hardcode_libdir_separator= 8406 fi 8407 ;; 8408 esac 8409 shared_flag='-shared' 8410 if test "$aix_use_runtimelinking" = yes; then 8411 shared_flag="$shared_flag "'${wl}-G' 8412 fi 8413 else 8414 # not using gcc 8415 if test "$host_cpu" = ia64; then 8416 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8417 # chokes on -Wl,-G. The following line is correct: 8418 shared_flag='-G' 8419 else 8420 if test "$aix_use_runtimelinking" = yes; then 8421 shared_flag='${wl}-G' 8422 else 8423 shared_flag='${wl}-bM:SRE' 8424 fi 8425 fi 8426 fi 8427 8428 # It seems that -bexpall does not export symbols beginning with 8429 # underscore (_), so it is better to generate a list of symbols to export. 8430 always_export_symbols=yes 8431 if test "$aix_use_runtimelinking" = yes; then 8432 # Warning - without using the other runtime loading flags (-brtl), 8433 # -berok will link without error, but may produce a broken library. 8434 allow_undefined_flag='-berok' 8435 # Determine the default libpath from the value encoded in an empty executable. 8436 cat >conftest.$ac_ext <<_ACEOF 8437/* confdefs.h. */ 8438_ACEOF 8439cat confdefs.h >>conftest.$ac_ext 8440cat >>conftest.$ac_ext <<_ACEOF 8441/* end confdefs.h. */ 8442 8443int 8444main () 8445{ 8446 8447 ; 8448 return 0; 8449} 8450_ACEOF 8451rm -f conftest.$ac_objext conftest$ac_exeext 8452if { (ac_try="$ac_link" 8453case "(($ac_try" in 8454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8455 *) ac_try_echo=$ac_try;; 8456esac 8457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8458$as_echo "$ac_try_echo") >&5 8459 (eval "$ac_link") 2>conftest.er1 8460 ac_status=$? 8461 grep -v '^ *+' conftest.er1 >conftest.err 8462 rm -f conftest.er1 8463 cat conftest.err >&5 8464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8465 (exit $ac_status); } && { 8466 test -z "$ac_c_werror_flag" || 8467 test ! -s conftest.err 8468 } && test -s conftest$ac_exeext && { 8469 test "$cross_compiling" = yes || 8470 $as_test_x conftest$ac_exeext 8471 }; then 8472 8473lt_aix_libpath_sed=' 8474 /Import File Strings/,/^$/ { 8475 /^0/ { 8476 s/^0 *\(.*\)$/\1/ 8477 p 8478 } 8479 }' 8480aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8481# Check for a 64-bit object if we didn't find anything. 8482if test -z "$aix_libpath"; then 8483 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8484fi 8485else 8486 $as_echo "$as_me: failed program was:" >&5 8487sed 's/^/| /' conftest.$ac_ext >&5 8488 8489 8490fi 8491 8492rm -rf conftest.dSYM 8493rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8494 conftest$ac_exeext conftest.$ac_ext 8495if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8496 8497 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8498 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" 8499 else 8500 if test "$host_cpu" = ia64; then 8501 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8502 allow_undefined_flag="-z nodefs" 8503 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" 8504 else 8505 # Determine the default libpath from the value encoded in an empty executable. 8506 cat >conftest.$ac_ext <<_ACEOF 8507/* confdefs.h. */ 8508_ACEOF 8509cat confdefs.h >>conftest.$ac_ext 8510cat >>conftest.$ac_ext <<_ACEOF 8511/* end confdefs.h. */ 8512 8513int 8514main () 8515{ 8516 8517 ; 8518 return 0; 8519} 8520_ACEOF 8521rm -f conftest.$ac_objext conftest$ac_exeext 8522if { (ac_try="$ac_link" 8523case "(($ac_try" in 8524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8525 *) ac_try_echo=$ac_try;; 8526esac 8527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8528$as_echo "$ac_try_echo") >&5 8529 (eval "$ac_link") 2>conftest.er1 8530 ac_status=$? 8531 grep -v '^ *+' conftest.er1 >conftest.err 8532 rm -f conftest.er1 8533 cat conftest.err >&5 8534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8535 (exit $ac_status); } && { 8536 test -z "$ac_c_werror_flag" || 8537 test ! -s conftest.err 8538 } && test -s conftest$ac_exeext && { 8539 test "$cross_compiling" = yes || 8540 $as_test_x conftest$ac_exeext 8541 }; then 8542 8543lt_aix_libpath_sed=' 8544 /Import File Strings/,/^$/ { 8545 /^0/ { 8546 s/^0 *\(.*\)$/\1/ 8547 p 8548 } 8549 }' 8550aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8551# Check for a 64-bit object if we didn't find anything. 8552if test -z "$aix_libpath"; then 8553 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8554fi 8555else 8556 $as_echo "$as_me: failed program was:" >&5 8557sed 's/^/| /' conftest.$ac_ext >&5 8558 8559 8560fi 8561 8562rm -rf conftest.dSYM 8563rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8564 conftest$ac_exeext conftest.$ac_ext 8565if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8566 8567 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8568 # Warning - without using the other run time loading flags, 8569 # -berok will link without error, but may produce a broken library. 8570 no_undefined_flag=' ${wl}-bernotok' 8571 allow_undefined_flag=' ${wl}-berok' 8572 # Exported symbols can be pulled into shared objects from archives 8573 whole_archive_flag_spec='$convenience' 8574 archive_cmds_need_lc=yes 8575 # This is similar to how AIX traditionally builds its shared libraries. 8576 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' 8577 fi 8578 fi 8579 ;; 8580 8581 amigaos*) 8582 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)' 8583 hardcode_libdir_flag_spec='-L$libdir' 8584 hardcode_minus_L=yes 8585 # see comment about different semantics on the GNU ld section 8586 ld_shlibs=no 8587 ;; 8588 8589 bsdi[45]*) 8590 export_dynamic_flag_spec=-rdynamic 8591 ;; 8592 8593 cygwin* | mingw* | pw32*) 8594 # When not using gcc, we currently assume that we are using 8595 # Microsoft Visual C++. 8596 # hardcode_libdir_flag_spec is actually meaningless, as there is 8597 # no search path for DLLs. 8598 hardcode_libdir_flag_spec=' ' 8599 allow_undefined_flag=unsupported 8600 # Tell ltmain to make .lib files, not .a files. 8601 libext=lib 8602 # Tell ltmain to make .dll files, not .so files. 8603 shrext_cmds=".dll" 8604 # FIXME: Setting linknames here is a bad hack. 8605 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8606 # The linker will automatically build a .lib file if we build a DLL. 8607 old_archive_From_new_cmds='true' 8608 # FIXME: Should let the user specify the lib program. 8609 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8610 fix_srcfile_path='`cygpath -w "$srcfile"`' 8611 enable_shared_with_static_runtimes=yes 8612 ;; 8613 8614 darwin* | rhapsody*) 8615 case $host_os in 8616 rhapsody* | darwin1.[012]) 8617 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8618 ;; 8619 *) # Darwin 1.3 on 8620 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8621 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8622 else 8623 case ${MACOSX_DEPLOYMENT_TARGET} in 8624 10.[012]) 8625 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8626 ;; 8627 10.*) 8628 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8629 ;; 8630 esac 8631 fi 8632 ;; 8633 esac 8634 archive_cmds_need_lc=no 8635 hardcode_direct=no 8636 hardcode_automatic=yes 8637 hardcode_shlibpath_var=unsupported 8638 whole_archive_flag_spec='' 8639 link_all_deplibs=yes 8640 if test "$GCC" = yes ; then 8641 output_verbose_link_cmd='echo' 8642 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8643 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8644 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}" 8645 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}" 8646 else 8647 case $cc_basename in 8648 xlc*) 8649 output_verbose_link_cmd='echo' 8650 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8651 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8652 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8653 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}' 8654 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}' 8655 ;; 8656 *) 8657 ld_shlibs=no 8658 ;; 8659 esac 8660 fi 8661 ;; 8662 8663 dgux*) 8664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8665 hardcode_libdir_flag_spec='-L$libdir' 8666 hardcode_shlibpath_var=no 8667 ;; 8668 8669 freebsd1*) 8670 ld_shlibs=no 8671 ;; 8672 8673 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8674 # support. Future versions do this automatically, but an explicit c++rt0.o 8675 # does not break anything, and helps significantly (at the cost of a little 8676 # extra space). 8677 freebsd2.2*) 8678 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8679 hardcode_libdir_flag_spec='-R$libdir' 8680 hardcode_direct=yes 8681 hardcode_shlibpath_var=no 8682 ;; 8683 8684 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8685 freebsd2*) 8686 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8687 hardcode_direct=yes 8688 hardcode_minus_L=yes 8689 hardcode_shlibpath_var=no 8690 ;; 8691 8692 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8693 freebsd* | dragonfly*) 8694 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8695 hardcode_libdir_flag_spec='-R$libdir' 8696 hardcode_direct=yes 8697 hardcode_shlibpath_var=no 8698 ;; 8699 8700 hpux9*) 8701 if test "$GCC" = yes; then 8702 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' 8703 else 8704 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' 8705 fi 8706 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8707 hardcode_libdir_separator=: 8708 hardcode_direct=yes 8709 8710 # hardcode_minus_L: Not really in the search PATH, 8711 # but as the default location of the library. 8712 hardcode_minus_L=yes 8713 export_dynamic_flag_spec='${wl}-E' 8714 ;; 8715 8716 hpux10*) 8717 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8718 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8719 else 8720 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8721 fi 8722 if test "$with_gnu_ld" = no; then 8723 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8724 hardcode_libdir_separator=: 8725 8726 hardcode_direct=yes 8727 export_dynamic_flag_spec='${wl}-E' 8728 8729 # hardcode_minus_L: Not really in the search PATH, 8730 # but as the default location of the library. 8731 hardcode_minus_L=yes 8732 fi 8733 ;; 8734 8735 hpux11*) 8736 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8737 case $host_cpu in 8738 hppa*64*) 8739 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8740 ;; 8741 ia64*) 8742 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8743 ;; 8744 *) 8745 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8746 ;; 8747 esac 8748 else 8749 case $host_cpu in 8750 hppa*64*) 8751 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8752 ;; 8753 ia64*) 8754 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8755 ;; 8756 *) 8757 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8758 ;; 8759 esac 8760 fi 8761 if test "$with_gnu_ld" = no; then 8762 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8763 hardcode_libdir_separator=: 8764 8765 case $host_cpu in 8766 hppa*64*|ia64*) 8767 hardcode_libdir_flag_spec_ld='+b $libdir' 8768 hardcode_direct=no 8769 hardcode_shlibpath_var=no 8770 ;; 8771 *) 8772 hardcode_direct=yes 8773 export_dynamic_flag_spec='${wl}-E' 8774 8775 # hardcode_minus_L: Not really in the search PATH, 8776 # but as the default location of the library. 8777 hardcode_minus_L=yes 8778 ;; 8779 esac 8780 fi 8781 ;; 8782 8783 irix5* | irix6* | nonstopux*) 8784 if test "$GCC" = yes; then 8785 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' 8786 else 8787 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' 8788 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8789 fi 8790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8791 hardcode_libdir_separator=: 8792 link_all_deplibs=yes 8793 ;; 8794 8795 netbsd*) 8796 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8798 else 8799 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8800 fi 8801 hardcode_libdir_flag_spec='-R$libdir' 8802 hardcode_direct=yes 8803 hardcode_shlibpath_var=no 8804 ;; 8805 8806 newsos6) 8807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8808 hardcode_direct=yes 8809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8810 hardcode_libdir_separator=: 8811 hardcode_shlibpath_var=no 8812 ;; 8813 8814 openbsd*) 8815 if test -f /usr/libexec/ld.so; then 8816 hardcode_direct=yes 8817 hardcode_shlibpath_var=no 8818 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8819 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8820 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8821 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8822 export_dynamic_flag_spec='${wl}-E' 8823 else 8824 case $host_os in 8825 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8826 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8827 hardcode_libdir_flag_spec='-R$libdir' 8828 ;; 8829 *) 8830 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8831 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8832 ;; 8833 esac 8834 fi 8835 else 8836 ld_shlibs=no 8837 fi 8838 ;; 8839 8840 os2*) 8841 hardcode_libdir_flag_spec='-L$libdir' 8842 hardcode_minus_L=yes 8843 allow_undefined_flag=unsupported 8844 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' 8845 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8846 ;; 8847 8848 osf3*) 8849 if test "$GCC" = yes; then 8850 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8851 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' 8852 else 8853 allow_undefined_flag=' -expect_unresolved \*' 8854 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' 8855 fi 8856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8857 hardcode_libdir_separator=: 8858 ;; 8859 8860 osf4* | osf5*) # as osf3* with the addition of -msym flag 8861 if test "$GCC" = yes; then 8862 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8863 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' 8864 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8865 else 8866 allow_undefined_flag=' -expect_unresolved \*' 8867 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' 8868 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8869 $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' 8870 8871 # Both c and cxx compiler support -rpath directly 8872 hardcode_libdir_flag_spec='-rpath $libdir' 8873 fi 8874 hardcode_libdir_separator=: 8875 ;; 8876 8877 solaris*) 8878 no_undefined_flag=' -z text' 8879 if test "$GCC" = yes; then 8880 wlarc='${wl}' 8881 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8882 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8883 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8884 else 8885 wlarc='' 8886 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8887 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8888 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8889 fi 8890 hardcode_libdir_flag_spec='-R$libdir' 8891 hardcode_shlibpath_var=no 8892 case $host_os in 8893 solaris2.[0-5] | solaris2.[0-5].*) ;; 8894 *) 8895 # The compiler driver will combine and reorder linker options, 8896 # but understands `-z linker_flag'. GCC discards it without `$wl', 8897 # but is careful enough not to reorder. 8898 # Supported since Solaris 2.6 (maybe 2.5.1?) 8899 if test "$GCC" = yes; then 8900 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8901 else 8902 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8903 fi 8904 ;; 8905 esac 8906 link_all_deplibs=yes 8907 ;; 8908 8909 sunos4*) 8910 if test "x$host_vendor" = xsequent; then 8911 # Use $CC to link under sequent, because it throws in some extra .o 8912 # files that make .init and .fini sections work. 8913 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8914 else 8915 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8916 fi 8917 hardcode_libdir_flag_spec='-L$libdir' 8918 hardcode_direct=yes 8919 hardcode_minus_L=yes 8920 hardcode_shlibpath_var=no 8921 ;; 8922 8923 sysv4) 8924 case $host_vendor in 8925 sni) 8926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8927 hardcode_direct=yes # is this really true??? 8928 ;; 8929 siemens) 8930 ## LD is ld it makes a PLAMLIB 8931 ## CC just makes a GrossModule. 8932 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8933 reload_cmds='$CC -r -o $output$reload_objs' 8934 hardcode_direct=no 8935 ;; 8936 motorola) 8937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8938 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8939 ;; 8940 esac 8941 runpath_var='LD_RUN_PATH' 8942 hardcode_shlibpath_var=no 8943 ;; 8944 8945 sysv4.3*) 8946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8947 hardcode_shlibpath_var=no 8948 export_dynamic_flag_spec='-Bexport' 8949 ;; 8950 8951 sysv4*MP*) 8952 if test -d /usr/nec; then 8953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8954 hardcode_shlibpath_var=no 8955 runpath_var=LD_RUN_PATH 8956 hardcode_runpath_var=yes 8957 ld_shlibs=yes 8958 fi 8959 ;; 8960 8961 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8962 no_undefined_flag='${wl}-z,text' 8963 archive_cmds_need_lc=no 8964 hardcode_shlibpath_var=no 8965 runpath_var='LD_RUN_PATH' 8966 8967 if test "$GCC" = yes; then 8968 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8969 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8970 else 8971 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8972 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8973 fi 8974 ;; 8975 8976 sysv5* | sco3.2v5* | sco5v6*) 8977 # Note: We can NOT use -z defs as we might desire, because we do not 8978 # link with -lc, and that would cause any symbols used from libc to 8979 # always be unresolved, which means just about no library would 8980 # ever link correctly. If we're not using GNU ld we use -z text 8981 # though, which does catch some bad symbols but isn't as heavy-handed 8982 # as -z defs. 8983 no_undefined_flag='${wl}-z,text' 8984 allow_undefined_flag='${wl}-z,nodefs' 8985 archive_cmds_need_lc=no 8986 hardcode_shlibpath_var=no 8987 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8988 hardcode_libdir_separator=':' 8989 link_all_deplibs=yes 8990 export_dynamic_flag_spec='${wl}-Bexport' 8991 runpath_var='LD_RUN_PATH' 8992 8993 if test "$GCC" = yes; then 8994 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8995 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8996 else 8997 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8998 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8999 fi 9000 ;; 9001 9002 uts4*) 9003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9004 hardcode_libdir_flag_spec='-L$libdir' 9005 hardcode_shlibpath_var=no 9006 ;; 9007 9008 *) 9009 ld_shlibs=no 9010 ;; 9011 esac 9012 fi 9013 9014{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9015$as_echo "$ld_shlibs" >&6; } 9016test "$ld_shlibs" = no && can_build_shared=no 9017 9018# 9019# Do we need to explicitly link libc? 9020# 9021case "x$archive_cmds_need_lc" in 9022x|xyes) 9023 # Assume -lc should be added 9024 archive_cmds_need_lc=yes 9025 9026 if test "$enable_shared" = yes && test "$GCC" = yes; then 9027 case $archive_cmds in 9028 *'~'*) 9029 # FIXME: we may have to deal with multi-command sequences. 9030 ;; 9031 '$CC '*) 9032 # Test whether the compiler implicitly links with -lc since on some 9033 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9034 # to ld, don't add -lc before -lgcc. 9035 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9036$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9037 $rm conftest* 9038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9039 9040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9041 (eval $ac_compile) 2>&5 9042 ac_status=$? 9043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9044 (exit $ac_status); } 2>conftest.err; then 9045 soname=conftest 9046 lib=conftest 9047 libobjs=conftest.$ac_objext 9048 deplibs= 9049 wl=$lt_prog_compiler_wl 9050 pic_flag=$lt_prog_compiler_pic 9051 compiler_flags=-v 9052 linker_flags=-v 9053 verstring= 9054 output_objdir=. 9055 libname=conftest 9056 lt_save_allow_undefined_flag=$allow_undefined_flag 9057 allow_undefined_flag= 9058 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9059 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9060 ac_status=$? 9061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9062 (exit $ac_status); } 9063 then 9064 archive_cmds_need_lc=no 9065 else 9066 archive_cmds_need_lc=yes 9067 fi 9068 allow_undefined_flag=$lt_save_allow_undefined_flag 9069 else 9070 cat conftest.err 1>&5 9071 fi 9072 $rm conftest* 9073 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9074$as_echo "$archive_cmds_need_lc" >&6; } 9075 ;; 9076 esac 9077 fi 9078 ;; 9079esac 9080 9081{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9082$as_echo_n "checking dynamic linker characteristics... " >&6; } 9083library_names_spec= 9084libname_spec='lib$name' 9085soname_spec= 9086shrext_cmds=".so" 9087postinstall_cmds= 9088postuninstall_cmds= 9089finish_cmds= 9090finish_eval= 9091shlibpath_var= 9092shlibpath_overrides_runpath=unknown 9093version_type=none 9094dynamic_linker="$host_os ld.so" 9095sys_lib_dlsearch_path_spec="/lib /usr/lib" 9096 9097if test "$GCC" = yes; then 9098 case $host_os in 9099 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9100 *) lt_awk_arg="/^libraries:/" ;; 9101 esac 9102 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9103 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9104 # if the path contains ";" then we assume it to be the separator 9105 # otherwise default to the standard path separator (i.e. ":") - it is 9106 # assumed that no part of a normal pathname contains ";" but that should 9107 # okay in the real world where ";" in dirpaths is itself problematic. 9108 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9109 else 9110 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9111 fi 9112 # Ok, now we have the path, separated by spaces, we can step through it 9113 # and add multilib dir if necessary. 9114 lt_tmp_lt_search_path_spec= 9115 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9116 for lt_sys_path in $lt_search_path_spec; do 9117 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9118 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9119 else 9120 test -d "$lt_sys_path" && \ 9121 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9122 fi 9123 done 9124 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9125BEGIN {RS=" "; FS="/|\n";} { 9126 lt_foo=""; 9127 lt_count=0; 9128 for (lt_i = NF; lt_i > 0; lt_i--) { 9129 if ($lt_i != "" && $lt_i != ".") { 9130 if ($lt_i == "..") { 9131 lt_count++; 9132 } else { 9133 if (lt_count == 0) { 9134 lt_foo="/" $lt_i lt_foo; 9135 } else { 9136 lt_count--; 9137 } 9138 } 9139 } 9140 } 9141 if (lt_foo != "") { lt_freq[lt_foo]++; } 9142 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9143}'` 9144 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9145else 9146 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9147fi 9148need_lib_prefix=unknown 9149hardcode_into_libs=no 9150 9151# when you set need_version to no, make sure it does not cause -set_version 9152# flags to be left without arguments 9153need_version=unknown 9154 9155case $host_os in 9156aix3*) 9157 version_type=linux 9158 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9159 shlibpath_var=LIBPATH 9160 9161 # AIX 3 has no versioning support, so we append a major version to the name. 9162 soname_spec='${libname}${release}${shared_ext}$major' 9163 ;; 9164 9165aix[4-9]*) 9166 version_type=linux 9167 need_lib_prefix=no 9168 need_version=no 9169 hardcode_into_libs=yes 9170 if test "$host_cpu" = ia64; then 9171 # AIX 5 supports IA64 9172 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9173 shlibpath_var=LD_LIBRARY_PATH 9174 else 9175 # With GCC up to 2.95.x, collect2 would create an import file 9176 # for dependence libraries. The import file would start with 9177 # the line `#! .'. This would cause the generated library to 9178 # depend on `.', always an invalid library. This was fixed in 9179 # development snapshots of GCC prior to 3.0. 9180 case $host_os in 9181 aix4 | aix4.[01] | aix4.[01].*) 9182 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9183 echo ' yes ' 9184 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9185 : 9186 else 9187 can_build_shared=no 9188 fi 9189 ;; 9190 esac 9191 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9192 # soname into executable. Probably we can add versioning support to 9193 # collect2, so additional links can be useful in future. 9194 if test "$aix_use_runtimelinking" = yes; then 9195 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9196 # instead of lib<name>.a to let people know that these are not 9197 # typical AIX shared libraries. 9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9199 else 9200 # We preserve .a as extension for shared libraries through AIX4.2 9201 # and later when we are not doing run time linking. 9202 library_names_spec='${libname}${release}.a $libname.a' 9203 soname_spec='${libname}${release}${shared_ext}$major' 9204 fi 9205 shlibpath_var=LIBPATH 9206 fi 9207 ;; 9208 9209amigaos*) 9210 library_names_spec='$libname.ixlibrary $libname.a' 9211 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9212 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' 9213 ;; 9214 9215beos*) 9216 library_names_spec='${libname}${shared_ext}' 9217 dynamic_linker="$host_os ld.so" 9218 shlibpath_var=LIBRARY_PATH 9219 ;; 9220 9221bsdi[45]*) 9222 version_type=linux 9223 need_version=no 9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9225 soname_spec='${libname}${release}${shared_ext}$major' 9226 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9227 shlibpath_var=LD_LIBRARY_PATH 9228 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9229 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9230 # the default ld.so.conf also contains /usr/contrib/lib and 9231 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9232 # libtool to hard-code these into programs 9233 ;; 9234 9235cygwin* | mingw* | pw32*) 9236 version_type=windows 9237 shrext_cmds=".dll" 9238 need_version=no 9239 need_lib_prefix=no 9240 9241 case $GCC,$host_os in 9242 yes,cygwin* | yes,mingw* | yes,pw32*) 9243 library_names_spec='$libname.dll.a' 9244 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9245 postinstall_cmds='base_file=`basename \${file}`~ 9246 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9247 dldir=$destdir/`dirname \$dlpath`~ 9248 test -d \$dldir || mkdir -p \$dldir~ 9249 $install_prog $dir/$dlname \$dldir/$dlname~ 9250 chmod a+x \$dldir/$dlname' 9251 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9252 dlpath=$dir/\$dldll~ 9253 $rm \$dlpath' 9254 shlibpath_overrides_runpath=yes 9255 9256 case $host_os in 9257 cygwin*) 9258 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9259 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9260 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9261 ;; 9262 mingw*) 9263 # MinGW DLLs use traditional 'lib' prefix 9264 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9265 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9266 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9267 # It is most probably a Windows format PATH printed by 9268 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9269 # path with ; separators, and with drive letters. We can handle the 9270 # drive letters (cygwin fileutils understands them), so leave them, 9271 # especially as we might pass files found there to a mingw objdump, 9272 # which wouldn't understand a cygwinified path. Ahh. 9273 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9274 else 9275 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9276 fi 9277 ;; 9278 pw32*) 9279 # pw32 DLLs use 'pw' prefix rather than 'lib' 9280 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9281 ;; 9282 esac 9283 ;; 9284 9285 *) 9286 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9287 ;; 9288 esac 9289 dynamic_linker='Win32 ld.exe' 9290 # FIXME: first we should search . and the directory the executable is in 9291 shlibpath_var=PATH 9292 ;; 9293 9294darwin* | rhapsody*) 9295 dynamic_linker="$host_os dyld" 9296 version_type=darwin 9297 need_lib_prefix=no 9298 need_version=no 9299 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9300 soname_spec='${libname}${release}${major}$shared_ext' 9301 shlibpath_overrides_runpath=yes 9302 shlibpath_var=DYLD_LIBRARY_PATH 9303 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9304 9305 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9306 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9307 ;; 9308 9309dgux*) 9310 version_type=linux 9311 need_lib_prefix=no 9312 need_version=no 9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9314 soname_spec='${libname}${release}${shared_ext}$major' 9315 shlibpath_var=LD_LIBRARY_PATH 9316 ;; 9317 9318freebsd1*) 9319 dynamic_linker=no 9320 ;; 9321 9322freebsd* | dragonfly*) 9323 # DragonFly does not have aout. When/if they implement a new 9324 # versioning mechanism, adjust this. 9325 if test -x /usr/bin/objformat; then 9326 objformat=`/usr/bin/objformat` 9327 else 9328 case $host_os in 9329 freebsd[123]*) objformat=aout ;; 9330 *) objformat=elf ;; 9331 esac 9332 fi 9333 version_type=freebsd-$objformat 9334 case $version_type in 9335 freebsd-elf*) 9336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9337 need_version=no 9338 need_lib_prefix=no 9339 ;; 9340 freebsd-*) 9341 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9342 need_version=yes 9343 ;; 9344 esac 9345 shlibpath_var=LD_LIBRARY_PATH 9346 case $host_os in 9347 freebsd2*) 9348 shlibpath_overrides_runpath=yes 9349 ;; 9350 freebsd3.[01]* | freebsdelf3.[01]*) 9351 shlibpath_overrides_runpath=yes 9352 hardcode_into_libs=yes 9353 ;; 9354 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9355 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9356 shlibpath_overrides_runpath=no 9357 hardcode_into_libs=yes 9358 ;; 9359 *) # from 4.6 on, and DragonFly 9360 shlibpath_overrides_runpath=yes 9361 hardcode_into_libs=yes 9362 ;; 9363 esac 9364 ;; 9365 9366gnu*) 9367 version_type=linux 9368 need_lib_prefix=no 9369 need_version=no 9370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9371 soname_spec='${libname}${release}${shared_ext}$major' 9372 shlibpath_var=LD_LIBRARY_PATH 9373 hardcode_into_libs=yes 9374 ;; 9375 9376hpux9* | hpux10* | hpux11*) 9377 # Give a soname corresponding to the major version so that dld.sl refuses to 9378 # link against other versions. 9379 version_type=sunos 9380 need_lib_prefix=no 9381 need_version=no 9382 case $host_cpu in 9383 ia64*) 9384 shrext_cmds='.so' 9385 hardcode_into_libs=yes 9386 dynamic_linker="$host_os dld.so" 9387 shlibpath_var=LD_LIBRARY_PATH 9388 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9390 soname_spec='${libname}${release}${shared_ext}$major' 9391 if test "X$HPUX_IA64_MODE" = X32; then 9392 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9393 else 9394 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9395 fi 9396 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9397 ;; 9398 hppa*64*) 9399 shrext_cmds='.sl' 9400 hardcode_into_libs=yes 9401 dynamic_linker="$host_os dld.sl" 9402 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9403 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9405 soname_spec='${libname}${release}${shared_ext}$major' 9406 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9407 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9408 ;; 9409 *) 9410 shrext_cmds='.sl' 9411 dynamic_linker="$host_os dld.sl" 9412 shlibpath_var=SHLIB_PATH 9413 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9415 soname_spec='${libname}${release}${shared_ext}$major' 9416 ;; 9417 esac 9418 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9419 postinstall_cmds='chmod 555 $lib' 9420 ;; 9421 9422interix[3-9]*) 9423 version_type=linux 9424 need_lib_prefix=no 9425 need_version=no 9426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9427 soname_spec='${libname}${release}${shared_ext}$major' 9428 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9429 shlibpath_var=LD_LIBRARY_PATH 9430 shlibpath_overrides_runpath=no 9431 hardcode_into_libs=yes 9432 ;; 9433 9434irix5* | irix6* | nonstopux*) 9435 case $host_os in 9436 nonstopux*) version_type=nonstopux ;; 9437 *) 9438 if test "$lt_cv_prog_gnu_ld" = yes; then 9439 version_type=linux 9440 else 9441 version_type=irix 9442 fi ;; 9443 esac 9444 need_lib_prefix=no 9445 need_version=no 9446 soname_spec='${libname}${release}${shared_ext}$major' 9447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9448 case $host_os in 9449 irix5* | nonstopux*) 9450 libsuff= shlibsuff= 9451 ;; 9452 *) 9453 case $LD in # libtool.m4 will add one of these switches to LD 9454 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9455 libsuff= shlibsuff= libmagic=32-bit;; 9456 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9457 libsuff=32 shlibsuff=N32 libmagic=N32;; 9458 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9459 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9460 *) libsuff= shlibsuff= libmagic=never-match;; 9461 esac 9462 ;; 9463 esac 9464 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9465 shlibpath_overrides_runpath=no 9466 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9467 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9468 hardcode_into_libs=yes 9469 ;; 9470 9471# No shared lib support for Linux oldld, aout, or coff. 9472linux*oldld* | linux*aout* | linux*coff*) 9473 dynamic_linker=no 9474 ;; 9475 9476# This must be Linux ELF. 9477linux* | k*bsd*-gnu) 9478 version_type=linux 9479 need_lib_prefix=no 9480 need_version=no 9481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9482 soname_spec='${libname}${release}${shared_ext}$major' 9483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9484 shlibpath_var=LD_LIBRARY_PATH 9485 shlibpath_overrides_runpath=no 9486 # This implies no fast_install, which is unacceptable. 9487 # Some rework will be needed to allow for fast_install 9488 # before this can be enabled. 9489 hardcode_into_libs=yes 9490 9491 # Append ld.so.conf contents to the search path 9492 if test -f /etc/ld.so.conf; then 9493 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' ' '` 9494 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9495 fi 9496 9497 # We used to test for /lib/ld.so.1 and disable shared libraries on 9498 # powerpc, because MkLinux only supported shared libraries with the 9499 # GNU dynamic linker. Since this was broken with cross compilers, 9500 # most powerpc-linux boxes support dynamic linking these days and 9501 # people can always --disable-shared, the test was removed, and we 9502 # assume the GNU/Linux dynamic linker is in use. 9503 dynamic_linker='GNU/Linux ld.so' 9504 ;; 9505 9506netbsd*) 9507 version_type=sunos 9508 need_lib_prefix=no 9509 need_version=no 9510 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9513 dynamic_linker='NetBSD (a.out) ld.so' 9514 else 9515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9516 soname_spec='${libname}${release}${shared_ext}$major' 9517 dynamic_linker='NetBSD ld.elf_so' 9518 fi 9519 shlibpath_var=LD_LIBRARY_PATH 9520 shlibpath_overrides_runpath=yes 9521 hardcode_into_libs=yes 9522 ;; 9523 9524newsos6) 9525 version_type=linux 9526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9527 shlibpath_var=LD_LIBRARY_PATH 9528 shlibpath_overrides_runpath=yes 9529 ;; 9530 9531nto-qnx*) 9532 version_type=linux 9533 need_lib_prefix=no 9534 need_version=no 9535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9536 soname_spec='${libname}${release}${shared_ext}$major' 9537 shlibpath_var=LD_LIBRARY_PATH 9538 shlibpath_overrides_runpath=yes 9539 ;; 9540 9541openbsd*) 9542 version_type=sunos 9543 sys_lib_dlsearch_path_spec="/usr/lib" 9544 need_lib_prefix=no 9545 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9546 case $host_os in 9547 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9548 *) need_version=no ;; 9549 esac 9550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9551 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9552 shlibpath_var=LD_LIBRARY_PATH 9553 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9554 case $host_os in 9555 openbsd2.[89] | openbsd2.[89].*) 9556 shlibpath_overrides_runpath=no 9557 ;; 9558 *) 9559 shlibpath_overrides_runpath=yes 9560 ;; 9561 esac 9562 else 9563 shlibpath_overrides_runpath=yes 9564 fi 9565 ;; 9566 9567os2*) 9568 libname_spec='$name' 9569 shrext_cmds=".dll" 9570 need_lib_prefix=no 9571 library_names_spec='$libname${shared_ext} $libname.a' 9572 dynamic_linker='OS/2 ld.exe' 9573 shlibpath_var=LIBPATH 9574 ;; 9575 9576osf3* | osf4* | osf5*) 9577 version_type=osf 9578 need_lib_prefix=no 9579 need_version=no 9580 soname_spec='${libname}${release}${shared_ext}$major' 9581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9582 shlibpath_var=LD_LIBRARY_PATH 9583 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9584 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9585 ;; 9586 9587rdos*) 9588 dynamic_linker=no 9589 ;; 9590 9591solaris*) 9592 version_type=linux 9593 need_lib_prefix=no 9594 need_version=no 9595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9596 soname_spec='${libname}${release}${shared_ext}$major' 9597 shlibpath_var=LD_LIBRARY_PATH 9598 shlibpath_overrides_runpath=yes 9599 hardcode_into_libs=yes 9600 # ldd complains unless libraries are executable 9601 postinstall_cmds='chmod +x $lib' 9602 ;; 9603 9604sunos4*) 9605 version_type=sunos 9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9607 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9608 shlibpath_var=LD_LIBRARY_PATH 9609 shlibpath_overrides_runpath=yes 9610 if test "$with_gnu_ld" = yes; then 9611 need_lib_prefix=no 9612 fi 9613 need_version=yes 9614 ;; 9615 9616sysv4 | sysv4.3*) 9617 version_type=linux 9618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9619 soname_spec='${libname}${release}${shared_ext}$major' 9620 shlibpath_var=LD_LIBRARY_PATH 9621 case $host_vendor in 9622 sni) 9623 shlibpath_overrides_runpath=no 9624 need_lib_prefix=no 9625 export_dynamic_flag_spec='${wl}-Blargedynsym' 9626 runpath_var=LD_RUN_PATH 9627 ;; 9628 siemens) 9629 need_lib_prefix=no 9630 ;; 9631 motorola) 9632 need_lib_prefix=no 9633 need_version=no 9634 shlibpath_overrides_runpath=no 9635 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9636 ;; 9637 esac 9638 ;; 9639 9640sysv4*MP*) 9641 if test -d /usr/nec ;then 9642 version_type=linux 9643 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9644 soname_spec='$libname${shared_ext}.$major' 9645 shlibpath_var=LD_LIBRARY_PATH 9646 fi 9647 ;; 9648 9649sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9650 version_type=freebsd-elf 9651 need_lib_prefix=no 9652 need_version=no 9653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9654 soname_spec='${libname}${release}${shared_ext}$major' 9655 shlibpath_var=LD_LIBRARY_PATH 9656 hardcode_into_libs=yes 9657 if test "$with_gnu_ld" = yes; then 9658 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9659 shlibpath_overrides_runpath=no 9660 else 9661 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9662 shlibpath_overrides_runpath=yes 9663 case $host_os in 9664 sco3.2v5*) 9665 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9666 ;; 9667 esac 9668 fi 9669 sys_lib_dlsearch_path_spec='/usr/lib' 9670 ;; 9671 9672uts4*) 9673 version_type=linux 9674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9675 soname_spec='${libname}${release}${shared_ext}$major' 9676 shlibpath_var=LD_LIBRARY_PATH 9677 ;; 9678 9679*) 9680 dynamic_linker=no 9681 ;; 9682esac 9683{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9684$as_echo "$dynamic_linker" >&6; } 9685test "$dynamic_linker" = no && can_build_shared=no 9686 9687if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9688 $as_echo_n "(cached) " >&6 9689else 9690 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 9691fi 9692 9693sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9694if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9695 $as_echo_n "(cached) " >&6 9696else 9697 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 9698fi 9699 9700sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9701 9702variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9703if test "$GCC" = yes; then 9704 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9705fi 9706 9707{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9708$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9709hardcode_action= 9710if test -n "$hardcode_libdir_flag_spec" || \ 9711 test -n "$runpath_var" || \ 9712 test "X$hardcode_automatic" = "Xyes" ; then 9713 9714 # We can hardcode non-existant directories. 9715 if test "$hardcode_direct" != no && 9716 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9717 # have to relink, otherwise we might link with an installed library 9718 # when we should be linking with a yet-to-be-installed one 9719 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9720 test "$hardcode_minus_L" != no; then 9721 # Linking always hardcodes the temporary library directory. 9722 hardcode_action=relink 9723 else 9724 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9725 hardcode_action=immediate 9726 fi 9727else 9728 # We cannot hardcode anything, or else we can only hardcode existing 9729 # directories. 9730 hardcode_action=unsupported 9731fi 9732{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 9733$as_echo "$hardcode_action" >&6; } 9734 9735if test "$hardcode_action" = relink; then 9736 # Fast installation is not supported 9737 enable_fast_install=no 9738elif test "$shlibpath_overrides_runpath" = yes || 9739 test "$enable_shared" = no; then 9740 # Fast installation is not necessary 9741 enable_fast_install=needless 9742fi 9743 9744striplib= 9745old_striplib= 9746{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9747$as_echo_n "checking whether stripping libraries is possible... " >&6; } 9748if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9749 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9750 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9751 { $as_echo "$as_me:$LINENO: result: yes" >&5 9752$as_echo "yes" >&6; } 9753else 9754# FIXME - insert some real tests, host_os isn't really good enough 9755 case $host_os in 9756 darwin*) 9757 if test -n "$STRIP" ; then 9758 striplib="$STRIP -x" 9759 old_striplib="$STRIP -S" 9760 { $as_echo "$as_me:$LINENO: result: yes" >&5 9761$as_echo "yes" >&6; } 9762 else 9763 { $as_echo "$as_me:$LINENO: result: no" >&5 9764$as_echo "no" >&6; } 9765fi 9766 ;; 9767 *) 9768 { $as_echo "$as_me:$LINENO: result: no" >&5 9769$as_echo "no" >&6; } 9770 ;; 9771 esac 9772fi 9773 9774if test "x$enable_dlopen" != xyes; then 9775 enable_dlopen=unknown 9776 enable_dlopen_self=unknown 9777 enable_dlopen_self_static=unknown 9778else 9779 lt_cv_dlopen=no 9780 lt_cv_dlopen_libs= 9781 9782 case $host_os in 9783 beos*) 9784 lt_cv_dlopen="load_add_on" 9785 lt_cv_dlopen_libs= 9786 lt_cv_dlopen_self=yes 9787 ;; 9788 9789 mingw* | pw32*) 9790 lt_cv_dlopen="LoadLibrary" 9791 lt_cv_dlopen_libs= 9792 ;; 9793 9794 cygwin*) 9795 lt_cv_dlopen="dlopen" 9796 lt_cv_dlopen_libs= 9797 ;; 9798 9799 darwin*) 9800 # if libdl is installed we need to link against it 9801 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9802$as_echo_n "checking for dlopen in -ldl... " >&6; } 9803if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9804 $as_echo_n "(cached) " >&6 9805else 9806 ac_check_lib_save_LIBS=$LIBS 9807LIBS="-ldl $LIBS" 9808cat >conftest.$ac_ext <<_ACEOF 9809/* confdefs.h. */ 9810_ACEOF 9811cat confdefs.h >>conftest.$ac_ext 9812cat >>conftest.$ac_ext <<_ACEOF 9813/* end confdefs.h. */ 9814 9815/* Override any GCC internal prototype to avoid an error. 9816 Use char because int might match the return type of a GCC 9817 builtin and then its argument prototype would still apply. */ 9818#ifdef __cplusplus 9819extern "C" 9820#endif 9821char dlopen (); 9822int 9823main () 9824{ 9825return dlopen (); 9826 ; 9827 return 0; 9828} 9829_ACEOF 9830rm -f conftest.$ac_objext conftest$ac_exeext 9831if { (ac_try="$ac_link" 9832case "(($ac_try" in 9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9834 *) ac_try_echo=$ac_try;; 9835esac 9836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9837$as_echo "$ac_try_echo") >&5 9838 (eval "$ac_link") 2>conftest.er1 9839 ac_status=$? 9840 grep -v '^ *+' conftest.er1 >conftest.err 9841 rm -f conftest.er1 9842 cat conftest.err >&5 9843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9844 (exit $ac_status); } && { 9845 test -z "$ac_c_werror_flag" || 9846 test ! -s conftest.err 9847 } && test -s conftest$ac_exeext && { 9848 test "$cross_compiling" = yes || 9849 $as_test_x conftest$ac_exeext 9850 }; then 9851 ac_cv_lib_dl_dlopen=yes 9852else 9853 $as_echo "$as_me: failed program was:" >&5 9854sed 's/^/| /' conftest.$ac_ext >&5 9855 9856 ac_cv_lib_dl_dlopen=no 9857fi 9858 9859rm -rf conftest.dSYM 9860rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9861 conftest$ac_exeext conftest.$ac_ext 9862LIBS=$ac_check_lib_save_LIBS 9863fi 9864{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9865$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9866if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 9867 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9868else 9869 9870 lt_cv_dlopen="dyld" 9871 lt_cv_dlopen_libs= 9872 lt_cv_dlopen_self=yes 9873 9874fi 9875 9876 ;; 9877 9878 *) 9879 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 9880$as_echo_n "checking for shl_load... " >&6; } 9881if test "${ac_cv_func_shl_load+set}" = set; then 9882 $as_echo_n "(cached) " >&6 9883else 9884 cat >conftest.$ac_ext <<_ACEOF 9885/* confdefs.h. */ 9886_ACEOF 9887cat confdefs.h >>conftest.$ac_ext 9888cat >>conftest.$ac_ext <<_ACEOF 9889/* end confdefs.h. */ 9890/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9891 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9892#define shl_load innocuous_shl_load 9893 9894/* System header to define __stub macros and hopefully few prototypes, 9895 which can conflict with char shl_load (); below. 9896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9897 <limits.h> exists even on freestanding compilers. */ 9898 9899#ifdef __STDC__ 9900# include <limits.h> 9901#else 9902# include <assert.h> 9903#endif 9904 9905#undef shl_load 9906 9907/* Override any GCC internal prototype to avoid an error. 9908 Use char because int might match the return type of a GCC 9909 builtin and then its argument prototype would still apply. */ 9910#ifdef __cplusplus 9911extern "C" 9912#endif 9913char shl_load (); 9914/* The GNU C library defines this for functions which it implements 9915 to always fail with ENOSYS. Some functions are actually named 9916 something starting with __ and the normal name is an alias. */ 9917#if defined __stub_shl_load || defined __stub___shl_load 9918choke me 9919#endif 9920 9921int 9922main () 9923{ 9924return shl_load (); 9925 ; 9926 return 0; 9927} 9928_ACEOF 9929rm -f conftest.$ac_objext conftest$ac_exeext 9930if { (ac_try="$ac_link" 9931case "(($ac_try" in 9932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9933 *) ac_try_echo=$ac_try;; 9934esac 9935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9936$as_echo "$ac_try_echo") >&5 9937 (eval "$ac_link") 2>conftest.er1 9938 ac_status=$? 9939 grep -v '^ *+' conftest.er1 >conftest.err 9940 rm -f conftest.er1 9941 cat conftest.err >&5 9942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9943 (exit $ac_status); } && { 9944 test -z "$ac_c_werror_flag" || 9945 test ! -s conftest.err 9946 } && test -s conftest$ac_exeext && { 9947 test "$cross_compiling" = yes || 9948 $as_test_x conftest$ac_exeext 9949 }; then 9950 ac_cv_func_shl_load=yes 9951else 9952 $as_echo "$as_me: failed program was:" >&5 9953sed 's/^/| /' conftest.$ac_ext >&5 9954 9955 ac_cv_func_shl_load=no 9956fi 9957 9958rm -rf conftest.dSYM 9959rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9960 conftest$ac_exeext conftest.$ac_ext 9961fi 9962{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9963$as_echo "$ac_cv_func_shl_load" >&6; } 9964if test "x$ac_cv_func_shl_load" = x""yes; then 9965 lt_cv_dlopen="shl_load" 9966else 9967 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9968$as_echo_n "checking for shl_load in -ldld... " >&6; } 9969if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9970 $as_echo_n "(cached) " >&6 9971else 9972 ac_check_lib_save_LIBS=$LIBS 9973LIBS="-ldld $LIBS" 9974cat >conftest.$ac_ext <<_ACEOF 9975/* confdefs.h. */ 9976_ACEOF 9977cat confdefs.h >>conftest.$ac_ext 9978cat >>conftest.$ac_ext <<_ACEOF 9979/* end confdefs.h. */ 9980 9981/* Override any GCC internal prototype to avoid an error. 9982 Use char because int might match the return type of a GCC 9983 builtin and then its argument prototype would still apply. */ 9984#ifdef __cplusplus 9985extern "C" 9986#endif 9987char shl_load (); 9988int 9989main () 9990{ 9991return shl_load (); 9992 ; 9993 return 0; 9994} 9995_ACEOF 9996rm -f conftest.$ac_objext conftest$ac_exeext 9997if { (ac_try="$ac_link" 9998case "(($ac_try" in 9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10000 *) ac_try_echo=$ac_try;; 10001esac 10002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10003$as_echo "$ac_try_echo") >&5 10004 (eval "$ac_link") 2>conftest.er1 10005 ac_status=$? 10006 grep -v '^ *+' conftest.er1 >conftest.err 10007 rm -f conftest.er1 10008 cat conftest.err >&5 10009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10010 (exit $ac_status); } && { 10011 test -z "$ac_c_werror_flag" || 10012 test ! -s conftest.err 10013 } && test -s conftest$ac_exeext && { 10014 test "$cross_compiling" = yes || 10015 $as_test_x conftest$ac_exeext 10016 }; then 10017 ac_cv_lib_dld_shl_load=yes 10018else 10019 $as_echo "$as_me: failed program was:" >&5 10020sed 's/^/| /' conftest.$ac_ext >&5 10021 10022 ac_cv_lib_dld_shl_load=no 10023fi 10024 10025rm -rf conftest.dSYM 10026rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10027 conftest$ac_exeext conftest.$ac_ext 10028LIBS=$ac_check_lib_save_LIBS 10029fi 10030{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10031$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10032if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10033 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10034else 10035 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10036$as_echo_n "checking for dlopen... " >&6; } 10037if test "${ac_cv_func_dlopen+set}" = set; then 10038 $as_echo_n "(cached) " >&6 10039else 10040 cat >conftest.$ac_ext <<_ACEOF 10041/* confdefs.h. */ 10042_ACEOF 10043cat confdefs.h >>conftest.$ac_ext 10044cat >>conftest.$ac_ext <<_ACEOF 10045/* end confdefs.h. */ 10046/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10047 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10048#define dlopen innocuous_dlopen 10049 10050/* System header to define __stub macros and hopefully few prototypes, 10051 which can conflict with char dlopen (); below. 10052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10053 <limits.h> exists even on freestanding compilers. */ 10054 10055#ifdef __STDC__ 10056# include <limits.h> 10057#else 10058# include <assert.h> 10059#endif 10060 10061#undef dlopen 10062 10063/* Override any GCC internal prototype to avoid an error. 10064 Use char because int might match the return type of a GCC 10065 builtin and then its argument prototype would still apply. */ 10066#ifdef __cplusplus 10067extern "C" 10068#endif 10069char dlopen (); 10070/* The GNU C library defines this for functions which it implements 10071 to always fail with ENOSYS. Some functions are actually named 10072 something starting with __ and the normal name is an alias. */ 10073#if defined __stub_dlopen || defined __stub___dlopen 10074choke me 10075#endif 10076 10077int 10078main () 10079{ 10080return dlopen (); 10081 ; 10082 return 0; 10083} 10084_ACEOF 10085rm -f conftest.$ac_objext conftest$ac_exeext 10086if { (ac_try="$ac_link" 10087case "(($ac_try" in 10088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10089 *) ac_try_echo=$ac_try;; 10090esac 10091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10092$as_echo "$ac_try_echo") >&5 10093 (eval "$ac_link") 2>conftest.er1 10094 ac_status=$? 10095 grep -v '^ *+' conftest.er1 >conftest.err 10096 rm -f conftest.er1 10097 cat conftest.err >&5 10098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10099 (exit $ac_status); } && { 10100 test -z "$ac_c_werror_flag" || 10101 test ! -s conftest.err 10102 } && test -s conftest$ac_exeext && { 10103 test "$cross_compiling" = yes || 10104 $as_test_x conftest$ac_exeext 10105 }; then 10106 ac_cv_func_dlopen=yes 10107else 10108 $as_echo "$as_me: failed program was:" >&5 10109sed 's/^/| /' conftest.$ac_ext >&5 10110 10111 ac_cv_func_dlopen=no 10112fi 10113 10114rm -rf conftest.dSYM 10115rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10116 conftest$ac_exeext conftest.$ac_ext 10117fi 10118{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10119$as_echo "$ac_cv_func_dlopen" >&6; } 10120if test "x$ac_cv_func_dlopen" = x""yes; then 10121 lt_cv_dlopen="dlopen" 10122else 10123 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10124$as_echo_n "checking for dlopen in -ldl... " >&6; } 10125if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10126 $as_echo_n "(cached) " >&6 10127else 10128 ac_check_lib_save_LIBS=$LIBS 10129LIBS="-ldl $LIBS" 10130cat >conftest.$ac_ext <<_ACEOF 10131/* confdefs.h. */ 10132_ACEOF 10133cat confdefs.h >>conftest.$ac_ext 10134cat >>conftest.$ac_ext <<_ACEOF 10135/* end confdefs.h. */ 10136 10137/* Override any GCC internal prototype to avoid an error. 10138 Use char because int might match the return type of a GCC 10139 builtin and then its argument prototype would still apply. */ 10140#ifdef __cplusplus 10141extern "C" 10142#endif 10143char dlopen (); 10144int 10145main () 10146{ 10147return dlopen (); 10148 ; 10149 return 0; 10150} 10151_ACEOF 10152rm -f conftest.$ac_objext conftest$ac_exeext 10153if { (ac_try="$ac_link" 10154case "(($ac_try" in 10155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10156 *) ac_try_echo=$ac_try;; 10157esac 10158eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10159$as_echo "$ac_try_echo") >&5 10160 (eval "$ac_link") 2>conftest.er1 10161 ac_status=$? 10162 grep -v '^ *+' conftest.er1 >conftest.err 10163 rm -f conftest.er1 10164 cat conftest.err >&5 10165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10166 (exit $ac_status); } && { 10167 test -z "$ac_c_werror_flag" || 10168 test ! -s conftest.err 10169 } && test -s conftest$ac_exeext && { 10170 test "$cross_compiling" = yes || 10171 $as_test_x conftest$ac_exeext 10172 }; then 10173 ac_cv_lib_dl_dlopen=yes 10174else 10175 $as_echo "$as_me: failed program was:" >&5 10176sed 's/^/| /' conftest.$ac_ext >&5 10177 10178 ac_cv_lib_dl_dlopen=no 10179fi 10180 10181rm -rf conftest.dSYM 10182rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10183 conftest$ac_exeext conftest.$ac_ext 10184LIBS=$ac_check_lib_save_LIBS 10185fi 10186{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10187$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10188if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10189 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10190else 10191 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10192$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10193if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10194 $as_echo_n "(cached) " >&6 10195else 10196 ac_check_lib_save_LIBS=$LIBS 10197LIBS="-lsvld $LIBS" 10198cat >conftest.$ac_ext <<_ACEOF 10199/* confdefs.h. */ 10200_ACEOF 10201cat confdefs.h >>conftest.$ac_ext 10202cat >>conftest.$ac_ext <<_ACEOF 10203/* end confdefs.h. */ 10204 10205/* Override any GCC internal prototype to avoid an error. 10206 Use char because int might match the return type of a GCC 10207 builtin and then its argument prototype would still apply. */ 10208#ifdef __cplusplus 10209extern "C" 10210#endif 10211char dlopen (); 10212int 10213main () 10214{ 10215return dlopen (); 10216 ; 10217 return 0; 10218} 10219_ACEOF 10220rm -f conftest.$ac_objext conftest$ac_exeext 10221if { (ac_try="$ac_link" 10222case "(($ac_try" in 10223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10224 *) ac_try_echo=$ac_try;; 10225esac 10226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10227$as_echo "$ac_try_echo") >&5 10228 (eval "$ac_link") 2>conftest.er1 10229 ac_status=$? 10230 grep -v '^ *+' conftest.er1 >conftest.err 10231 rm -f conftest.er1 10232 cat conftest.err >&5 10233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10234 (exit $ac_status); } && { 10235 test -z "$ac_c_werror_flag" || 10236 test ! -s conftest.err 10237 } && test -s conftest$ac_exeext && { 10238 test "$cross_compiling" = yes || 10239 $as_test_x conftest$ac_exeext 10240 }; then 10241 ac_cv_lib_svld_dlopen=yes 10242else 10243 $as_echo "$as_me: failed program was:" >&5 10244sed 's/^/| /' conftest.$ac_ext >&5 10245 10246 ac_cv_lib_svld_dlopen=no 10247fi 10248 10249rm -rf conftest.dSYM 10250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10251 conftest$ac_exeext conftest.$ac_ext 10252LIBS=$ac_check_lib_save_LIBS 10253fi 10254{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10255$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10256if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10257 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10258else 10259 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10260$as_echo_n "checking for dld_link in -ldld... " >&6; } 10261if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10262 $as_echo_n "(cached) " >&6 10263else 10264 ac_check_lib_save_LIBS=$LIBS 10265LIBS="-ldld $LIBS" 10266cat >conftest.$ac_ext <<_ACEOF 10267/* confdefs.h. */ 10268_ACEOF 10269cat confdefs.h >>conftest.$ac_ext 10270cat >>conftest.$ac_ext <<_ACEOF 10271/* end confdefs.h. */ 10272 10273/* Override any GCC internal prototype to avoid an error. 10274 Use char because int might match the return type of a GCC 10275 builtin and then its argument prototype would still apply. */ 10276#ifdef __cplusplus 10277extern "C" 10278#endif 10279char dld_link (); 10280int 10281main () 10282{ 10283return dld_link (); 10284 ; 10285 return 0; 10286} 10287_ACEOF 10288rm -f conftest.$ac_objext conftest$ac_exeext 10289if { (ac_try="$ac_link" 10290case "(($ac_try" in 10291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10292 *) ac_try_echo=$ac_try;; 10293esac 10294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10295$as_echo "$ac_try_echo") >&5 10296 (eval "$ac_link") 2>conftest.er1 10297 ac_status=$? 10298 grep -v '^ *+' conftest.er1 >conftest.err 10299 rm -f conftest.er1 10300 cat conftest.err >&5 10301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10302 (exit $ac_status); } && { 10303 test -z "$ac_c_werror_flag" || 10304 test ! -s conftest.err 10305 } && test -s conftest$ac_exeext && { 10306 test "$cross_compiling" = yes || 10307 $as_test_x conftest$ac_exeext 10308 }; then 10309 ac_cv_lib_dld_dld_link=yes 10310else 10311 $as_echo "$as_me: failed program was:" >&5 10312sed 's/^/| /' conftest.$ac_ext >&5 10313 10314 ac_cv_lib_dld_dld_link=no 10315fi 10316 10317rm -rf conftest.dSYM 10318rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10319 conftest$ac_exeext conftest.$ac_ext 10320LIBS=$ac_check_lib_save_LIBS 10321fi 10322{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10323$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10324if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10325 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10326fi 10327 10328 10329fi 10330 10331 10332fi 10333 10334 10335fi 10336 10337 10338fi 10339 10340 10341fi 10342 10343 ;; 10344 esac 10345 10346 if test "x$lt_cv_dlopen" != xno; then 10347 enable_dlopen=yes 10348 else 10349 enable_dlopen=no 10350 fi 10351 10352 case $lt_cv_dlopen in 10353 dlopen) 10354 save_CPPFLAGS="$CPPFLAGS" 10355 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10356 10357 save_LDFLAGS="$LDFLAGS" 10358 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10359 10360 save_LIBS="$LIBS" 10361 LIBS="$lt_cv_dlopen_libs $LIBS" 10362 10363 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10364$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10365if test "${lt_cv_dlopen_self+set}" = set; then 10366 $as_echo_n "(cached) " >&6 10367else 10368 if test "$cross_compiling" = yes; then : 10369 lt_cv_dlopen_self=cross 10370else 10371 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10372 lt_status=$lt_dlunknown 10373 cat > conftest.$ac_ext <<EOF 10374#line 10374 "configure" 10375#include "confdefs.h" 10376 10377#if HAVE_DLFCN_H 10378#include <dlfcn.h> 10379#endif 10380 10381#include <stdio.h> 10382 10383#ifdef RTLD_GLOBAL 10384# define LT_DLGLOBAL RTLD_GLOBAL 10385#else 10386# ifdef DL_GLOBAL 10387# define LT_DLGLOBAL DL_GLOBAL 10388# else 10389# define LT_DLGLOBAL 0 10390# endif 10391#endif 10392 10393/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10394 find out it does not work in some platform. */ 10395#ifndef LT_DLLAZY_OR_NOW 10396# ifdef RTLD_LAZY 10397# define LT_DLLAZY_OR_NOW RTLD_LAZY 10398# else 10399# ifdef DL_LAZY 10400# define LT_DLLAZY_OR_NOW DL_LAZY 10401# else 10402# ifdef RTLD_NOW 10403# define LT_DLLAZY_OR_NOW RTLD_NOW 10404# else 10405# ifdef DL_NOW 10406# define LT_DLLAZY_OR_NOW DL_NOW 10407# else 10408# define LT_DLLAZY_OR_NOW 0 10409# endif 10410# endif 10411# endif 10412# endif 10413#endif 10414 10415#ifdef __cplusplus 10416extern "C" void exit (int); 10417#endif 10418 10419void fnord() { int i=42;} 10420int main () 10421{ 10422 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10423 int status = $lt_dlunknown; 10424 10425 if (self) 10426 { 10427 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10428 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10429 /* dlclose (self); */ 10430 } 10431 else 10432 puts (dlerror ()); 10433 10434 exit (status); 10435} 10436EOF 10437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10438 (eval $ac_link) 2>&5 10439 ac_status=$? 10440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10441 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10442 (./conftest; exit; ) >&5 2>/dev/null 10443 lt_status=$? 10444 case x$lt_status in 10445 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10446 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10447 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10448 esac 10449 else : 10450 # compilation failed 10451 lt_cv_dlopen_self=no 10452 fi 10453fi 10454rm -fr conftest* 10455 10456 10457fi 10458{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10459$as_echo "$lt_cv_dlopen_self" >&6; } 10460 10461 if test "x$lt_cv_dlopen_self" = xyes; then 10462 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10463 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10464$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10465if test "${lt_cv_dlopen_self_static+set}" = set; then 10466 $as_echo_n "(cached) " >&6 10467else 10468 if test "$cross_compiling" = yes; then : 10469 lt_cv_dlopen_self_static=cross 10470else 10471 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10472 lt_status=$lt_dlunknown 10473 cat > conftest.$ac_ext <<EOF 10474#line 10474 "configure" 10475#include "confdefs.h" 10476 10477#if HAVE_DLFCN_H 10478#include <dlfcn.h> 10479#endif 10480 10481#include <stdio.h> 10482 10483#ifdef RTLD_GLOBAL 10484# define LT_DLGLOBAL RTLD_GLOBAL 10485#else 10486# ifdef DL_GLOBAL 10487# define LT_DLGLOBAL DL_GLOBAL 10488# else 10489# define LT_DLGLOBAL 0 10490# endif 10491#endif 10492 10493/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10494 find out it does not work in some platform. */ 10495#ifndef LT_DLLAZY_OR_NOW 10496# ifdef RTLD_LAZY 10497# define LT_DLLAZY_OR_NOW RTLD_LAZY 10498# else 10499# ifdef DL_LAZY 10500# define LT_DLLAZY_OR_NOW DL_LAZY 10501# else 10502# ifdef RTLD_NOW 10503# define LT_DLLAZY_OR_NOW RTLD_NOW 10504# else 10505# ifdef DL_NOW 10506# define LT_DLLAZY_OR_NOW DL_NOW 10507# else 10508# define LT_DLLAZY_OR_NOW 0 10509# endif 10510# endif 10511# endif 10512# endif 10513#endif 10514 10515#ifdef __cplusplus 10516extern "C" void exit (int); 10517#endif 10518 10519void fnord() { int i=42;} 10520int main () 10521{ 10522 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10523 int status = $lt_dlunknown; 10524 10525 if (self) 10526 { 10527 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10528 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10529 /* dlclose (self); */ 10530 } 10531 else 10532 puts (dlerror ()); 10533 10534 exit (status); 10535} 10536EOF 10537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10538 (eval $ac_link) 2>&5 10539 ac_status=$? 10540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10541 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10542 (./conftest; exit; ) >&5 2>/dev/null 10543 lt_status=$? 10544 case x$lt_status in 10545 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10546 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10547 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10548 esac 10549 else : 10550 # compilation failed 10551 lt_cv_dlopen_self_static=no 10552 fi 10553fi 10554rm -fr conftest* 10555 10556 10557fi 10558{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10559$as_echo "$lt_cv_dlopen_self_static" >&6; } 10560 fi 10561 10562 CPPFLAGS="$save_CPPFLAGS" 10563 LDFLAGS="$save_LDFLAGS" 10564 LIBS="$save_LIBS" 10565 ;; 10566 esac 10567 10568 case $lt_cv_dlopen_self in 10569 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10570 *) enable_dlopen_self=unknown ;; 10571 esac 10572 10573 case $lt_cv_dlopen_self_static in 10574 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10575 *) enable_dlopen_self_static=unknown ;; 10576 esac 10577fi 10578 10579 10580# Report which library types will actually be built 10581{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10582$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10583{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 10584$as_echo "$can_build_shared" >&6; } 10585 10586{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10587$as_echo_n "checking whether to build shared libraries... " >&6; } 10588test "$can_build_shared" = "no" && enable_shared=no 10589 10590# On AIX, shared libraries and static libraries use the same namespace, and 10591# are all built from PIC. 10592case $host_os in 10593aix3*) 10594 test "$enable_shared" = yes && enable_static=no 10595 if test -n "$RANLIB"; then 10596 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10597 postinstall_cmds='$RANLIB $lib' 10598 fi 10599 ;; 10600 10601aix[4-9]*) 10602 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10603 test "$enable_shared" = yes && enable_static=no 10604 fi 10605 ;; 10606esac 10607{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 10608$as_echo "$enable_shared" >&6; } 10609 10610{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10611$as_echo_n "checking whether to build static libraries... " >&6; } 10612# Make sure either enable_shared or enable_static is yes. 10613test "$enable_shared" = yes || enable_static=yes 10614{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 10615$as_echo "$enable_static" >&6; } 10616 10617# The else clause should only fire when bootstrapping the 10618# libtool distribution, otherwise you forgot to ship ltmain.sh 10619# with your package, and you will get complaints that there are 10620# no rules to generate ltmain.sh. 10621if test -f "$ltmain"; then 10622 # See if we are running on zsh, and set the options which allow our commands through 10623 # without removal of \ escapes. 10624 if test -n "${ZSH_VERSION+set}" ; then 10625 setopt NO_GLOB_SUBST 10626 fi 10627 # Now quote all the things that may contain metacharacters while being 10628 # careful not to overquote the AC_SUBSTed values. We take copies of the 10629 # variables and quote the copies for generation of the libtool script. 10630 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10631 SED SHELL STRIP \ 10632 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10633 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10634 deplibs_check_method reload_flag reload_cmds need_locks \ 10635 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10636 lt_cv_sys_global_symbol_to_c_name_address \ 10637 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10638 old_postinstall_cmds old_postuninstall_cmds \ 10639 compiler \ 10640 CC \ 10641 LD \ 10642 lt_prog_compiler_wl \ 10643 lt_prog_compiler_pic \ 10644 lt_prog_compiler_static \ 10645 lt_prog_compiler_no_builtin_flag \ 10646 export_dynamic_flag_spec \ 10647 thread_safe_flag_spec \ 10648 whole_archive_flag_spec \ 10649 enable_shared_with_static_runtimes \ 10650 old_archive_cmds \ 10651 old_archive_from_new_cmds \ 10652 predep_objects \ 10653 postdep_objects \ 10654 predeps \ 10655 postdeps \ 10656 compiler_lib_search_path \ 10657 compiler_lib_search_dirs \ 10658 archive_cmds \ 10659 archive_expsym_cmds \ 10660 postinstall_cmds \ 10661 postuninstall_cmds \ 10662 old_archive_from_expsyms_cmds \ 10663 allow_undefined_flag \ 10664 no_undefined_flag \ 10665 export_symbols_cmds \ 10666 hardcode_libdir_flag_spec \ 10667 hardcode_libdir_flag_spec_ld \ 10668 hardcode_libdir_separator \ 10669 hardcode_automatic \ 10670 module_cmds \ 10671 module_expsym_cmds \ 10672 lt_cv_prog_compiler_c_o \ 10673 fix_srcfile_path \ 10674 exclude_expsyms \ 10675 include_expsyms; do 10676 10677 case $var in 10678 old_archive_cmds | \ 10679 old_archive_from_new_cmds | \ 10680 archive_cmds | \ 10681 archive_expsym_cmds | \ 10682 module_cmds | \ 10683 module_expsym_cmds | \ 10684 old_archive_from_expsyms_cmds | \ 10685 export_symbols_cmds | \ 10686 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10687 postinstall_cmds | postuninstall_cmds | \ 10688 old_postinstall_cmds | old_postuninstall_cmds | \ 10689 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10690 # Double-quote double-evaled strings. 10691 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10692 ;; 10693 *) 10694 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10695 ;; 10696 esac 10697 done 10698 10699 case $lt_echo in 10700 *'\$0 --fallback-echo"') 10701 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10702 ;; 10703 esac 10704 10705cfgfile="${ofile}T" 10706 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10707 $rm -f "$cfgfile" 10708 { $as_echo "$as_me:$LINENO: creating $ofile" >&5 10709$as_echo "$as_me: creating $ofile" >&6;} 10710 10711 cat <<__EOF__ >> "$cfgfile" 10712#! $SHELL 10713 10714# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10715# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10716# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10717# 10718# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 10719# Free Software Foundation, Inc. 10720# 10721# This file is part of GNU Libtool: 10722# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10723# 10724# This program is free software; you can redistribute it and/or modify 10725# it under the terms of the GNU General Public License as published by 10726# the Free Software Foundation; either version 2 of the License, or 10727# (at your option) any later version. 10728# 10729# This program is distributed in the hope that it will be useful, but 10730# WITHOUT ANY WARRANTY; without even the implied warranty of 10731# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10732# General Public License for more details. 10733# 10734# You should have received a copy of the GNU General Public License 10735# along with this program; if not, write to the Free Software 10736# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10737# 10738# As a special exception to the GNU General Public License, if you 10739# distribute this file as part of a program that contains a 10740# configuration script generated by Autoconf, you may include it under 10741# the same distribution terms that you use for the rest of that program. 10742 10743# A sed program that does not truncate output. 10744SED=$lt_SED 10745 10746# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10747Xsed="$SED -e 1s/^X//" 10748 10749# The HP-UX ksh and POSIX shell print the target directory to stdout 10750# if CDPATH is set. 10751(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10752 10753# The names of the tagged configurations supported by this script. 10754available_tags= 10755 10756# ### BEGIN LIBTOOL CONFIG 10757 10758# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10759 10760# Shell to use when invoking shell scripts. 10761SHELL=$lt_SHELL 10762 10763# Whether or not to build shared libraries. 10764build_libtool_libs=$enable_shared 10765 10766# Whether or not to build static libraries. 10767build_old_libs=$enable_static 10768 10769# Whether or not to add -lc for building shared libraries. 10770build_libtool_need_lc=$archive_cmds_need_lc 10771 10772# Whether or not to disallow shared libs when runtime libs are static 10773allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10774 10775# Whether or not to optimize for fast installation. 10776fast_install=$enable_fast_install 10777 10778# The host system. 10779host_alias=$host_alias 10780host=$host 10781host_os=$host_os 10782 10783# The build system. 10784build_alias=$build_alias 10785build=$build 10786build_os=$build_os 10787 10788# An echo program that does not interpret backslashes. 10789echo=$lt_echo 10790 10791# The archiver. 10792AR=$lt_AR 10793AR_FLAGS=$lt_AR_FLAGS 10794 10795# A C compiler. 10796LTCC=$lt_LTCC 10797 10798# LTCC compiler flags. 10799LTCFLAGS=$lt_LTCFLAGS 10800 10801# A language-specific compiler. 10802CC=$lt_compiler 10803 10804# Is the compiler the GNU C compiler? 10805with_gcc=$GCC 10806 10807# An ERE matcher. 10808EGREP=$lt_EGREP 10809 10810# The linker used to build libraries. 10811LD=$lt_LD 10812 10813# Whether we need hard or soft links. 10814LN_S=$lt_LN_S 10815 10816# A BSD-compatible nm program. 10817NM=$lt_NM 10818 10819# A symbol stripping program 10820STRIP=$lt_STRIP 10821 10822# Used to examine libraries when file_magic_cmd begins "file" 10823MAGIC_CMD=$MAGIC_CMD 10824 10825# Used on cygwin: DLL creation program. 10826DLLTOOL="$DLLTOOL" 10827 10828# Used on cygwin: object dumper. 10829OBJDUMP="$OBJDUMP" 10830 10831# Used on cygwin: assembler. 10832AS="$AS" 10833 10834# The name of the directory that contains temporary libtool files. 10835objdir=$objdir 10836 10837# How to create reloadable object files. 10838reload_flag=$lt_reload_flag 10839reload_cmds=$lt_reload_cmds 10840 10841# How to pass a linker flag through the compiler. 10842wl=$lt_lt_prog_compiler_wl 10843 10844# Object file suffix (normally "o"). 10845objext="$ac_objext" 10846 10847# Old archive suffix (normally "a"). 10848libext="$libext" 10849 10850# Shared library suffix (normally ".so"). 10851shrext_cmds='$shrext_cmds' 10852 10853# Executable file suffix (normally ""). 10854exeext="$exeext" 10855 10856# Additional compiler flags for building library objects. 10857pic_flag=$lt_lt_prog_compiler_pic 10858pic_mode=$pic_mode 10859 10860# What is the maximum length of a command? 10861max_cmd_len=$lt_cv_sys_max_cmd_len 10862 10863# Does compiler simultaneously support -c and -o options? 10864compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10865 10866# Must we lock files when doing compilation? 10867need_locks=$lt_need_locks 10868 10869# Do we need the lib prefix for modules? 10870need_lib_prefix=$need_lib_prefix 10871 10872# Do we need a version for libraries? 10873need_version=$need_version 10874 10875# Whether dlopen is supported. 10876dlopen_support=$enable_dlopen 10877 10878# Whether dlopen of programs is supported. 10879dlopen_self=$enable_dlopen_self 10880 10881# Whether dlopen of statically linked programs is supported. 10882dlopen_self_static=$enable_dlopen_self_static 10883 10884# Compiler flag to prevent dynamic linking. 10885link_static_flag=$lt_lt_prog_compiler_static 10886 10887# Compiler flag to turn off builtin functions. 10888no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10889 10890# Compiler flag to allow reflexive dlopens. 10891export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10892 10893# Compiler flag to generate shared objects directly from archives. 10894whole_archive_flag_spec=$lt_whole_archive_flag_spec 10895 10896# Compiler flag to generate thread-safe objects. 10897thread_safe_flag_spec=$lt_thread_safe_flag_spec 10898 10899# Library versioning type. 10900version_type=$version_type 10901 10902# Format of library name prefix. 10903libname_spec=$lt_libname_spec 10904 10905# List of archive names. First name is the real one, the rest are links. 10906# The last name is the one that the linker finds with -lNAME. 10907library_names_spec=$lt_library_names_spec 10908 10909# The coded name of the library, if different from the real name. 10910soname_spec=$lt_soname_spec 10911 10912# Commands used to build and install an old-style archive. 10913RANLIB=$lt_RANLIB 10914old_archive_cmds=$lt_old_archive_cmds 10915old_postinstall_cmds=$lt_old_postinstall_cmds 10916old_postuninstall_cmds=$lt_old_postuninstall_cmds 10917 10918# Create an old-style archive from a shared archive. 10919old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10920 10921# Create a temporary old-style archive to link instead of a shared archive. 10922old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10923 10924# Commands used to build and install a shared archive. 10925archive_cmds=$lt_archive_cmds 10926archive_expsym_cmds=$lt_archive_expsym_cmds 10927postinstall_cmds=$lt_postinstall_cmds 10928postuninstall_cmds=$lt_postuninstall_cmds 10929 10930# Commands used to build a loadable module (assumed same as above if empty) 10931module_cmds=$lt_module_cmds 10932module_expsym_cmds=$lt_module_expsym_cmds 10933 10934# Commands to strip libraries. 10935old_striplib=$lt_old_striplib 10936striplib=$lt_striplib 10937 10938# Dependencies to place before the objects being linked to create a 10939# shared library. 10940predep_objects=$lt_predep_objects 10941 10942# Dependencies to place after the objects being linked to create a 10943# shared library. 10944postdep_objects=$lt_postdep_objects 10945 10946# Dependencies to place before the objects being linked to create a 10947# shared library. 10948predeps=$lt_predeps 10949 10950# Dependencies to place after the objects being linked to create a 10951# shared library. 10952postdeps=$lt_postdeps 10953 10954# The directories searched by this compiler when creating a shared 10955# library 10956compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 10957 10958# The library search path used internally by the compiler when linking 10959# a shared library. 10960compiler_lib_search_path=$lt_compiler_lib_search_path 10961 10962# Method to check whether dependent libraries are shared objects. 10963deplibs_check_method=$lt_deplibs_check_method 10964 10965# Command to use when deplibs_check_method == file_magic. 10966file_magic_cmd=$lt_file_magic_cmd 10967 10968# Flag that allows shared libraries with undefined symbols to be built. 10969allow_undefined_flag=$lt_allow_undefined_flag 10970 10971# Flag that forces no undefined symbols. 10972no_undefined_flag=$lt_no_undefined_flag 10973 10974# Commands used to finish a libtool library installation in a directory. 10975finish_cmds=$lt_finish_cmds 10976 10977# Same as above, but a single script fragment to be evaled but not shown. 10978finish_eval=$lt_finish_eval 10979 10980# Take the output of nm and produce a listing of raw symbols and C names. 10981global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10982 10983# Transform the output of nm in a proper C declaration 10984global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10985 10986# Transform the output of nm in a C name address pair 10987global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10988 10989# This is the shared library runtime path variable. 10990runpath_var=$runpath_var 10991 10992# This is the shared library path variable. 10993shlibpath_var=$shlibpath_var 10994 10995# Is shlibpath searched before the hard-coded library search path? 10996shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10997 10998# How to hardcode a shared library path into an executable. 10999hardcode_action=$hardcode_action 11000 11001# Whether we should hardcode library paths into libraries. 11002hardcode_into_libs=$hardcode_into_libs 11003 11004# Flag to hardcode \$libdir into a binary during linking. 11005# This must work even if \$libdir does not exist. 11006hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11007 11008# If ld is used when linking, flag to hardcode \$libdir into 11009# a binary during linking. This must work even if \$libdir does 11010# not exist. 11011hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11012 11013# Whether we need a single -rpath flag with a separated argument. 11014hardcode_libdir_separator=$lt_hardcode_libdir_separator 11015 11016# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11017# resulting binary. 11018hardcode_direct=$hardcode_direct 11019 11020# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11021# resulting binary. 11022hardcode_minus_L=$hardcode_minus_L 11023 11024# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11025# the resulting binary. 11026hardcode_shlibpath_var=$hardcode_shlibpath_var 11027 11028# Set to yes if building a shared library automatically hardcodes DIR into the library 11029# and all subsequent libraries and executables linked against it. 11030hardcode_automatic=$hardcode_automatic 11031 11032# Variables whose values should be saved in libtool wrapper scripts and 11033# restored at relink time. 11034variables_saved_for_relink="$variables_saved_for_relink" 11035 11036# Whether libtool must link a program against all its dependency libraries. 11037link_all_deplibs=$link_all_deplibs 11038 11039# Compile-time system search path for libraries 11040sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11041 11042# Run-time system search path for libraries 11043sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11044 11045# Fix the shell variable \$srcfile for the compiler. 11046fix_srcfile_path=$lt_fix_srcfile_path 11047 11048# Set to yes if exported symbols are required. 11049always_export_symbols=$always_export_symbols 11050 11051# The commands to list exported symbols. 11052export_symbols_cmds=$lt_export_symbols_cmds 11053 11054# The commands to extract the exported symbol list from a shared archive. 11055extract_expsyms_cmds=$lt_extract_expsyms_cmds 11056 11057# Symbols that should not be listed in the preloaded symbols. 11058exclude_expsyms=$lt_exclude_expsyms 11059 11060# Symbols that must always be exported. 11061include_expsyms=$lt_include_expsyms 11062 11063# ### END LIBTOOL CONFIG 11064 11065__EOF__ 11066 11067 11068 case $host_os in 11069 aix3*) 11070 cat <<\EOF >> "$cfgfile" 11071 11072# AIX sometimes has problems with the GCC collect2 program. For some 11073# reason, if we set the COLLECT_NAMES environment variable, the problems 11074# vanish in a puff of smoke. 11075if test "X${COLLECT_NAMES+set}" != Xset; then 11076 COLLECT_NAMES= 11077 export COLLECT_NAMES 11078fi 11079EOF 11080 ;; 11081 esac 11082 11083 # We use sed instead of cat because bash on DJGPP gets confused if 11084 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11085 # text mode, it properly converts lines to CR/LF. This bash problem 11086 # is reportedly fixed, but why not run on old versions too? 11087 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11088 11089 mv -f "$cfgfile" "$ofile" || \ 11090 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11091 chmod +x "$ofile" 11092 11093else 11094 # If there is no Makefile yet, we rely on a make rule to execute 11095 # `config.status --recheck' to rerun these tests and create the 11096 # libtool script then. 11097 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11098 if test -f "$ltmain_in"; then 11099 test -f Makefile && make "$ltmain" 11100 fi 11101fi 11102 11103 11104ac_ext=c 11105ac_cpp='$CPP $CPPFLAGS' 11106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11108ac_compiler_gnu=$ac_cv_c_compiler_gnu 11109 11110CC="$lt_save_CC" 11111 11112 11113# Check whether --with-tags was given. 11114if test "${with_tags+set}" = set; then 11115 withval=$with_tags; tagnames="$withval" 11116fi 11117 11118 11119if test -f "$ltmain" && test -n "$tagnames"; then 11120 if test ! -f "${ofile}"; then 11121 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11122$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11123 fi 11124 11125 if test -z "$LTCC"; then 11126 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11127 if test -z "$LTCC"; then 11128 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11129$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11130 else 11131 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11132$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11133 fi 11134 fi 11135 if test -z "$LTCFLAGS"; then 11136 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11137 fi 11138 11139 # Extract list of available tagged configurations in $ofile. 11140 # Note that this assumes the entire list is on one line. 11141 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11142 11143 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11144 for tagname in $tagnames; do 11145 IFS="$lt_save_ifs" 11146 # Check whether tagname contains only valid characters 11147 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11148 "") ;; 11149 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11150$as_echo "$as_me: error: invalid tag name: $tagname" >&2;} 11151 { (exit 1); exit 1; }; } 11152 ;; 11153 esac 11154 11155 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11156 then 11157 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11158$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11159 { (exit 1); exit 1; }; } 11160 fi 11161 11162 # Update the list of available tags. 11163 if test -n "$tagname"; then 11164 echo appending configuration tag \"$tagname\" to $ofile 11165 11166 case $tagname in 11167 CXX) 11168 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11169 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11170 (test "X$CXX" != "Xg++"))) ; then 11171 ac_ext=cpp 11172ac_cpp='$CXXCPP $CPPFLAGS' 11173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11176 11177 11178 11179 11180archive_cmds_need_lc_CXX=no 11181allow_undefined_flag_CXX= 11182always_export_symbols_CXX=no 11183archive_expsym_cmds_CXX= 11184export_dynamic_flag_spec_CXX= 11185hardcode_direct_CXX=no 11186hardcode_libdir_flag_spec_CXX= 11187hardcode_libdir_flag_spec_ld_CXX= 11188hardcode_libdir_separator_CXX= 11189hardcode_minus_L_CXX=no 11190hardcode_shlibpath_var_CXX=unsupported 11191hardcode_automatic_CXX=no 11192module_cmds_CXX= 11193module_expsym_cmds_CXX= 11194link_all_deplibs_CXX=unknown 11195old_archive_cmds_CXX=$old_archive_cmds 11196no_undefined_flag_CXX= 11197whole_archive_flag_spec_CXX= 11198enable_shared_with_static_runtimes_CXX=no 11199 11200# Dependencies to place before and after the object being linked: 11201predep_objects_CXX= 11202postdep_objects_CXX= 11203predeps_CXX= 11204postdeps_CXX= 11205compiler_lib_search_path_CXX= 11206compiler_lib_search_dirs_CXX= 11207 11208# Source file extension for C++ test sources. 11209ac_ext=cpp 11210 11211# Object file extension for compiled C++ test sources. 11212objext=o 11213objext_CXX=$objext 11214 11215# Code to be used in simple compile tests 11216lt_simple_compile_test_code="int some_variable = 0;" 11217 11218# Code to be used in simple link tests 11219lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11220 11221# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11222 11223# If no C compiler was specified, use CC. 11224LTCC=${LTCC-"$CC"} 11225 11226# If no C compiler flags were specified, use CFLAGS. 11227LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11228 11229# Allow CC to be a program name with arguments. 11230compiler=$CC 11231 11232 11233# save warnings/boilerplate of simple test code 11234ac_outfile=conftest.$ac_objext 11235echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11236eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11237_lt_compiler_boilerplate=`cat conftest.err` 11238$rm conftest* 11239 11240ac_outfile=conftest.$ac_objext 11241echo "$lt_simple_link_test_code" >conftest.$ac_ext 11242eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11243_lt_linker_boilerplate=`cat conftest.err` 11244$rm -r conftest* 11245 11246 11247# Allow CC to be a program name with arguments. 11248lt_save_CC=$CC 11249lt_save_LD=$LD 11250lt_save_GCC=$GCC 11251GCC=$GXX 11252lt_save_with_gnu_ld=$with_gnu_ld 11253lt_save_path_LD=$lt_cv_path_LD 11254if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11255 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11256else 11257 $as_unset lt_cv_prog_gnu_ld 11258fi 11259if test -n "${lt_cv_path_LDCXX+set}"; then 11260 lt_cv_path_LD=$lt_cv_path_LDCXX 11261else 11262 $as_unset lt_cv_path_LD 11263fi 11264test -z "${LDCXX+set}" || LD=$LDCXX 11265CC=${CXX-"c++"} 11266compiler=$CC 11267compiler_CXX=$CC 11268for cc_temp in $compiler""; do 11269 case $cc_temp in 11270 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11271 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11272 \-*) ;; 11273 *) break;; 11274 esac 11275done 11276cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11277 11278 11279# We don't want -fno-exception wen compiling C++ code, so set the 11280# no_builtin_flag separately 11281if test "$GXX" = yes; then 11282 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11283else 11284 lt_prog_compiler_no_builtin_flag_CXX= 11285fi 11286 11287if test "$GXX" = yes; then 11288 # Set up default GNU C++ configuration 11289 11290 11291# Check whether --with-gnu-ld was given. 11292if test "${with_gnu_ld+set}" = set; then 11293 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11294else 11295 with_gnu_ld=no 11296fi 11297 11298ac_prog=ld 11299if test "$GCC" = yes; then 11300 # Check if gcc -print-prog-name=ld gives a path. 11301 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11302$as_echo_n "checking for ld used by $CC... " >&6; } 11303 case $host in 11304 *-*-mingw*) 11305 # gcc leaves a trailing carriage return which upsets mingw 11306 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11307 *) 11308 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11309 esac 11310 case $ac_prog in 11311 # Accept absolute paths. 11312 [\\/]* | ?:[\\/]*) 11313 re_direlt='/[^/][^/]*/\.\./' 11314 # Canonicalize the pathname of ld 11315 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11316 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11317 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11318 done 11319 test -z "$LD" && LD="$ac_prog" 11320 ;; 11321 "") 11322 # If it fails, then pretend we aren't using GCC. 11323 ac_prog=ld 11324 ;; 11325 *) 11326 # If it is relative, then search for the first ld in PATH. 11327 with_gnu_ld=unknown 11328 ;; 11329 esac 11330elif test "$with_gnu_ld" = yes; then 11331 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 11332$as_echo_n "checking for GNU ld... " >&6; } 11333else 11334 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11335$as_echo_n "checking for non-GNU ld... " >&6; } 11336fi 11337if test "${lt_cv_path_LD+set}" = set; then 11338 $as_echo_n "(cached) " >&6 11339else 11340 if test -z "$LD"; then 11341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11342 for ac_dir in $PATH; do 11343 IFS="$lt_save_ifs" 11344 test -z "$ac_dir" && ac_dir=. 11345 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11346 lt_cv_path_LD="$ac_dir/$ac_prog" 11347 # Check to see if the program is GNU ld. I'd rather use --version, 11348 # but apparently some variants of GNU ld only accept -v. 11349 # Break only if it was the GNU/non-GNU ld that we prefer. 11350 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11351 *GNU* | *'with BFD'*) 11352 test "$with_gnu_ld" != no && break 11353 ;; 11354 *) 11355 test "$with_gnu_ld" != yes && break 11356 ;; 11357 esac 11358 fi 11359 done 11360 IFS="$lt_save_ifs" 11361else 11362 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11363fi 11364fi 11365 11366LD="$lt_cv_path_LD" 11367if test -n "$LD"; then 11368 { $as_echo "$as_me:$LINENO: result: $LD" >&5 11369$as_echo "$LD" >&6; } 11370else 11371 { $as_echo "$as_me:$LINENO: result: no" >&5 11372$as_echo "no" >&6; } 11373fi 11374test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11375$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11376 { (exit 1); exit 1; }; } 11377{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11378$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11379if test "${lt_cv_prog_gnu_ld+set}" = set; then 11380 $as_echo_n "(cached) " >&6 11381else 11382 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11383case `$LD -v 2>&1 </dev/null` in 11384*GNU* | *'with BFD'*) 11385 lt_cv_prog_gnu_ld=yes 11386 ;; 11387*) 11388 lt_cv_prog_gnu_ld=no 11389 ;; 11390esac 11391fi 11392{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11393$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11394with_gnu_ld=$lt_cv_prog_gnu_ld 11395 11396 11397 11398 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11399 # archiving commands below assume that GNU ld is being used. 11400 if test "$with_gnu_ld" = yes; then 11401 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11402 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' 11403 11404 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11405 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11406 11407 # If archive_cmds runs LD, not CC, wlarc should be empty 11408 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11409 # investigate it a little bit more. (MM) 11410 wlarc='${wl}' 11411 11412 # ancient GNU ld didn't support --whole-archive et. al. 11413 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11414 grep 'no-whole-archive' > /dev/null; then 11415 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11416 else 11417 whole_archive_flag_spec_CXX= 11418 fi 11419 else 11420 with_gnu_ld=no 11421 wlarc= 11422 11423 # A generic and very simple default shared library creation 11424 # command for GNU C++ for the case where it uses the native 11425 # linker, instead of GNU ld. If possible, this setting should 11426 # overridden to take advantage of the native linker features on 11427 # the platform it is being used on. 11428 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11429 fi 11430 11431 # Commands to make compiler produce verbose output that lists 11432 # what "hidden" libraries, object files and flags are used when 11433 # linking a shared library. 11434 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11435 11436else 11437 GXX=no 11438 with_gnu_ld=no 11439 wlarc= 11440fi 11441 11442# PORTME: fill in a description of your system's C++ link characteristics 11443{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11444$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11445ld_shlibs_CXX=yes 11446case $host_os in 11447 aix3*) 11448 # FIXME: insert proper C++ library support 11449 ld_shlibs_CXX=no 11450 ;; 11451 aix[4-9]*) 11452 if test "$host_cpu" = ia64; then 11453 # On IA64, the linker does run time linking by default, so we don't 11454 # have to do anything special. 11455 aix_use_runtimelinking=no 11456 exp_sym_flag='-Bexport' 11457 no_entry_flag="" 11458 else 11459 aix_use_runtimelinking=no 11460 11461 # Test if we are trying to use run time linking or normal 11462 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11463 # need to do runtime linking. 11464 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11465 for ld_flag in $LDFLAGS; do 11466 case $ld_flag in 11467 *-brtl*) 11468 aix_use_runtimelinking=yes 11469 break 11470 ;; 11471 esac 11472 done 11473 ;; 11474 esac 11475 11476 exp_sym_flag='-bexport' 11477 no_entry_flag='-bnoentry' 11478 fi 11479 11480 # When large executables or shared objects are built, AIX ld can 11481 # have problems creating the table of contents. If linking a library 11482 # or program results in "error TOC overflow" add -mminimal-toc to 11483 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11484 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11485 11486 archive_cmds_CXX='' 11487 hardcode_direct_CXX=yes 11488 hardcode_libdir_separator_CXX=':' 11489 link_all_deplibs_CXX=yes 11490 11491 if test "$GXX" = yes; then 11492 case $host_os in aix4.[012]|aix4.[012].*) 11493 # We only want to do this on AIX 4.2 and lower, the check 11494 # below for broken collect2 doesn't work under 4.3+ 11495 collect2name=`${CC} -print-prog-name=collect2` 11496 if test -f "$collect2name" && \ 11497 strings "$collect2name" | grep resolve_lib_name >/dev/null 11498 then 11499 # We have reworked collect2 11500 : 11501 else 11502 # We have old collect2 11503 hardcode_direct_CXX=unsupported 11504 # It fails to find uninstalled libraries when the uninstalled 11505 # path is not listed in the libpath. Setting hardcode_minus_L 11506 # to unsupported forces relinking 11507 hardcode_minus_L_CXX=yes 11508 hardcode_libdir_flag_spec_CXX='-L$libdir' 11509 hardcode_libdir_separator_CXX= 11510 fi 11511 ;; 11512 esac 11513 shared_flag='-shared' 11514 if test "$aix_use_runtimelinking" = yes; then 11515 shared_flag="$shared_flag "'${wl}-G' 11516 fi 11517 else 11518 # not using gcc 11519 if test "$host_cpu" = ia64; then 11520 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11521 # chokes on -Wl,-G. The following line is correct: 11522 shared_flag='-G' 11523 else 11524 if test "$aix_use_runtimelinking" = yes; then 11525 shared_flag='${wl}-G' 11526 else 11527 shared_flag='${wl}-bM:SRE' 11528 fi 11529 fi 11530 fi 11531 11532 # It seems that -bexpall does not export symbols beginning with 11533 # underscore (_), so it is better to generate a list of symbols to export. 11534 always_export_symbols_CXX=yes 11535 if test "$aix_use_runtimelinking" = yes; then 11536 # Warning - without using the other runtime loading flags (-brtl), 11537 # -berok will link without error, but may produce a broken library. 11538 allow_undefined_flag_CXX='-berok' 11539 # Determine the default libpath from the value encoded in an empty executable. 11540 cat >conftest.$ac_ext <<_ACEOF 11541/* confdefs.h. */ 11542_ACEOF 11543cat confdefs.h >>conftest.$ac_ext 11544cat >>conftest.$ac_ext <<_ACEOF 11545/* end confdefs.h. */ 11546 11547int 11548main () 11549{ 11550 11551 ; 11552 return 0; 11553} 11554_ACEOF 11555rm -f conftest.$ac_objext conftest$ac_exeext 11556if { (ac_try="$ac_link" 11557case "(($ac_try" in 11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11559 *) ac_try_echo=$ac_try;; 11560esac 11561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11562$as_echo "$ac_try_echo") >&5 11563 (eval "$ac_link") 2>conftest.er1 11564 ac_status=$? 11565 grep -v '^ *+' conftest.er1 >conftest.err 11566 rm -f conftest.er1 11567 cat conftest.err >&5 11568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11569 (exit $ac_status); } && { 11570 test -z "$ac_cxx_werror_flag" || 11571 test ! -s conftest.err 11572 } && test -s conftest$ac_exeext && { 11573 test "$cross_compiling" = yes || 11574 $as_test_x conftest$ac_exeext 11575 }; then 11576 11577lt_aix_libpath_sed=' 11578 /Import File Strings/,/^$/ { 11579 /^0/ { 11580 s/^0 *\(.*\)$/\1/ 11581 p 11582 } 11583 }' 11584aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11585# Check for a 64-bit object if we didn't find anything. 11586if test -z "$aix_libpath"; then 11587 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11588fi 11589else 11590 $as_echo "$as_me: failed program was:" >&5 11591sed 's/^/| /' conftest.$ac_ext >&5 11592 11593 11594fi 11595 11596rm -rf conftest.dSYM 11597rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11598 conftest$ac_exeext conftest.$ac_ext 11599if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11600 11601 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11602 11603 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" 11604 else 11605 if test "$host_cpu" = ia64; then 11606 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11607 allow_undefined_flag_CXX="-z nodefs" 11608 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" 11609 else 11610 # Determine the default libpath from the value encoded in an empty executable. 11611 cat >conftest.$ac_ext <<_ACEOF 11612/* confdefs.h. */ 11613_ACEOF 11614cat confdefs.h >>conftest.$ac_ext 11615cat >>conftest.$ac_ext <<_ACEOF 11616/* end confdefs.h. */ 11617 11618int 11619main () 11620{ 11621 11622 ; 11623 return 0; 11624} 11625_ACEOF 11626rm -f conftest.$ac_objext conftest$ac_exeext 11627if { (ac_try="$ac_link" 11628case "(($ac_try" in 11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11630 *) ac_try_echo=$ac_try;; 11631esac 11632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11633$as_echo "$ac_try_echo") >&5 11634 (eval "$ac_link") 2>conftest.er1 11635 ac_status=$? 11636 grep -v '^ *+' conftest.er1 >conftest.err 11637 rm -f conftest.er1 11638 cat conftest.err >&5 11639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11640 (exit $ac_status); } && { 11641 test -z "$ac_cxx_werror_flag" || 11642 test ! -s conftest.err 11643 } && test -s conftest$ac_exeext && { 11644 test "$cross_compiling" = yes || 11645 $as_test_x conftest$ac_exeext 11646 }; then 11647 11648lt_aix_libpath_sed=' 11649 /Import File Strings/,/^$/ { 11650 /^0/ { 11651 s/^0 *\(.*\)$/\1/ 11652 p 11653 } 11654 }' 11655aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11656# Check for a 64-bit object if we didn't find anything. 11657if test -z "$aix_libpath"; then 11658 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11659fi 11660else 11661 $as_echo "$as_me: failed program was:" >&5 11662sed 's/^/| /' conftest.$ac_ext >&5 11663 11664 11665fi 11666 11667rm -rf conftest.dSYM 11668rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11669 conftest$ac_exeext conftest.$ac_ext 11670if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11671 11672 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11673 # Warning - without using the other run time loading flags, 11674 # -berok will link without error, but may produce a broken library. 11675 no_undefined_flag_CXX=' ${wl}-bernotok' 11676 allow_undefined_flag_CXX=' ${wl}-berok' 11677 # Exported symbols can be pulled into shared objects from archives 11678 whole_archive_flag_spec_CXX='$convenience' 11679 archive_cmds_need_lc_CXX=yes 11680 # This is similar to how AIX traditionally builds its shared libraries. 11681 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' 11682 fi 11683 fi 11684 ;; 11685 11686 beos*) 11687 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11688 allow_undefined_flag_CXX=unsupported 11689 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11690 # support --undefined. This deserves some investigation. FIXME 11691 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11692 else 11693 ld_shlibs_CXX=no 11694 fi 11695 ;; 11696 11697 chorus*) 11698 case $cc_basename in 11699 *) 11700 # FIXME: insert proper C++ library support 11701 ld_shlibs_CXX=no 11702 ;; 11703 esac 11704 ;; 11705 11706 cygwin* | mingw* | pw32*) 11707 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11708 # as there is no search path for DLLs. 11709 hardcode_libdir_flag_spec_CXX='-L$libdir' 11710 allow_undefined_flag_CXX=unsupported 11711 always_export_symbols_CXX=no 11712 enable_shared_with_static_runtimes_CXX=yes 11713 11714 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11715 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' 11716 # If the export-symbols file already is a .def file (1st line 11717 # is EXPORTS), use it as is; otherwise, prepend... 11718 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11719 cp $export_symbols $output_objdir/$soname.def; 11720 else 11721 echo EXPORTS > $output_objdir/$soname.def; 11722 cat $export_symbols >> $output_objdir/$soname.def; 11723 fi~ 11724 $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' 11725 else 11726 ld_shlibs_CXX=no 11727 fi 11728 ;; 11729 darwin* | rhapsody*) 11730 archive_cmds_need_lc_CXX=no 11731 hardcode_direct_CXX=no 11732 hardcode_automatic_CXX=yes 11733 hardcode_shlibpath_var_CXX=unsupported 11734 whole_archive_flag_spec_CXX='' 11735 link_all_deplibs_CXX=yes 11736 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11737 if test "$GXX" = yes ; then 11738 output_verbose_link_cmd='echo' 11739 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}" 11740 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11741 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}" 11742 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}" 11743 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11744 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}" 11745 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}" 11746 fi 11747 else 11748 case $cc_basename in 11749 xlc*) 11750 output_verbose_link_cmd='echo' 11751 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' 11752 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11753 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11754 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}' 11755 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}' 11756 ;; 11757 *) 11758 ld_shlibs_CXX=no 11759 ;; 11760 esac 11761 fi 11762 ;; 11763 11764 dgux*) 11765 case $cc_basename in 11766 ec++*) 11767 # FIXME: insert proper C++ library support 11768 ld_shlibs_CXX=no 11769 ;; 11770 ghcx*) 11771 # Green Hills C++ Compiler 11772 # FIXME: insert proper C++ library support 11773 ld_shlibs_CXX=no 11774 ;; 11775 *) 11776 # FIXME: insert proper C++ library support 11777 ld_shlibs_CXX=no 11778 ;; 11779 esac 11780 ;; 11781 freebsd[12]*) 11782 # C++ shared libraries reported to be fairly broken before switch to ELF 11783 ld_shlibs_CXX=no 11784 ;; 11785 freebsd-elf*) 11786 archive_cmds_need_lc_CXX=no 11787 ;; 11788 freebsd* | dragonfly*) 11789 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11790 # conventions 11791 ld_shlibs_CXX=yes 11792 ;; 11793 gnu*) 11794 ;; 11795 hpux9*) 11796 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11797 hardcode_libdir_separator_CXX=: 11798 export_dynamic_flag_spec_CXX='${wl}-E' 11799 hardcode_direct_CXX=yes 11800 hardcode_minus_L_CXX=yes # Not in the search PATH, 11801 # but as the default 11802 # location of the library. 11803 11804 case $cc_basename in 11805 CC*) 11806 # FIXME: insert proper C++ library support 11807 ld_shlibs_CXX=no 11808 ;; 11809 aCC*) 11810 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' 11811 # Commands to make compiler produce verbose output that lists 11812 # what "hidden" libraries, object files and flags are used when 11813 # linking a shared library. 11814 # 11815 # There doesn't appear to be a way to prevent this compiler from 11816 # explicitly linking system object files so we need to strip them 11817 # from the output so that they don't get included in the library 11818 # dependencies. 11819 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' 11820 ;; 11821 *) 11822 if test "$GXX" = yes; then 11823 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' 11824 else 11825 # FIXME: insert proper C++ library support 11826 ld_shlibs_CXX=no 11827 fi 11828 ;; 11829 esac 11830 ;; 11831 hpux10*|hpux11*) 11832 if test $with_gnu_ld = no; then 11833 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11834 hardcode_libdir_separator_CXX=: 11835 11836 case $host_cpu in 11837 hppa*64*|ia64*) ;; 11838 *) 11839 export_dynamic_flag_spec_CXX='${wl}-E' 11840 ;; 11841 esac 11842 fi 11843 case $host_cpu in 11844 hppa*64*|ia64*) 11845 hardcode_direct_CXX=no 11846 hardcode_shlibpath_var_CXX=no 11847 ;; 11848 *) 11849 hardcode_direct_CXX=yes 11850 hardcode_minus_L_CXX=yes # Not in the search PATH, 11851 # but as the default 11852 # location of the library. 11853 ;; 11854 esac 11855 11856 case $cc_basename in 11857 CC*) 11858 # FIXME: insert proper C++ library support 11859 ld_shlibs_CXX=no 11860 ;; 11861 aCC*) 11862 case $host_cpu in 11863 hppa*64*) 11864 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11865 ;; 11866 ia64*) 11867 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11868 ;; 11869 *) 11870 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11871 ;; 11872 esac 11873 # Commands to make compiler produce verbose output that lists 11874 # what "hidden" libraries, object files and flags are used when 11875 # linking a shared library. 11876 # 11877 # There doesn't appear to be a way to prevent this compiler from 11878 # explicitly linking system object files so we need to strip them 11879 # from the output so that they don't get included in the library 11880 # dependencies. 11881 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' 11882 ;; 11883 *) 11884 if test "$GXX" = yes; then 11885 if test $with_gnu_ld = no; then 11886 case $host_cpu in 11887 hppa*64*) 11888 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11889 ;; 11890 ia64*) 11891 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11892 ;; 11893 *) 11894 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' 11895 ;; 11896 esac 11897 fi 11898 else 11899 # FIXME: insert proper C++ library support 11900 ld_shlibs_CXX=no 11901 fi 11902 ;; 11903 esac 11904 ;; 11905 interix[3-9]*) 11906 hardcode_direct_CXX=no 11907 hardcode_shlibpath_var_CXX=no 11908 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11909 export_dynamic_flag_spec_CXX='${wl}-E' 11910 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11911 # Instead, shared libraries are loaded at an image base (0x10000000 by 11912 # default) and relocated if they conflict, which is a slow very memory 11913 # consuming and fragmenting process. To avoid this, we pick a random, 11914 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11915 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11916 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' 11917 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' 11918 ;; 11919 irix5* | irix6*) 11920 case $cc_basename in 11921 CC*) 11922 # SGI C++ 11923 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' 11924 11925 # Archives containing C++ object files must be created using 11926 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11927 # necessary to make sure instantiated templates are included 11928 # in the archive. 11929 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11930 ;; 11931 *) 11932 if test "$GXX" = yes; then 11933 if test "$with_gnu_ld" = no; then 11934 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' 11935 else 11936 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' 11937 fi 11938 fi 11939 link_all_deplibs_CXX=yes 11940 ;; 11941 esac 11942 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11943 hardcode_libdir_separator_CXX=: 11944 ;; 11945 linux* | k*bsd*-gnu) 11946 case $cc_basename in 11947 KCC*) 11948 # Kuck and Associates, Inc. (KAI) C++ Compiler 11949 11950 # KCC will only create a shared library if the output file 11951 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11952 # to its proper name (with version) after linking. 11953 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' 11954 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' 11955 # Commands to make compiler produce verbose output that lists 11956 # what "hidden" libraries, object files and flags are used when 11957 # linking a shared library. 11958 # 11959 # There doesn't appear to be a way to prevent this compiler from 11960 # explicitly linking system object files so we need to strip them 11961 # from the output so that they don't get included in the library 11962 # dependencies. 11963 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' 11964 11965 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11966 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11967 11968 # Archives containing C++ object files must be created using 11969 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11970 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11971 ;; 11972 icpc*) 11973 # Intel C++ 11974 with_gnu_ld=yes 11975 # version 8.0 and above of icpc choke on multiply defined symbols 11976 # if we add $predep_objects and $postdep_objects, however 7.1 and 11977 # earlier do not add the objects themselves. 11978 case `$CC -V 2>&1` in 11979 *"Version 7."*) 11980 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11981 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' 11982 ;; 11983 *) # Version 8.0 or newer 11984 tmp_idyn= 11985 case $host_cpu in 11986 ia64*) tmp_idyn=' -i_dynamic';; 11987 esac 11988 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11989 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' 11990 ;; 11991 esac 11992 archive_cmds_need_lc_CXX=no 11993 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11994 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11995 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11996 ;; 11997 pgCC* | pgcpp*) 11998 # Portland Group C++ compiler 11999 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12000 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' 12001 12002 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12003 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12004 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' 12005 ;; 12006 cxx*) 12007 # Compaq C++ 12008 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12009 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' 12010 12011 runpath_var=LD_RUN_PATH 12012 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12013 hardcode_libdir_separator_CXX=: 12014 12015 # Commands to make compiler produce verbose output that lists 12016 # what "hidden" libraries, object files and flags are used when 12017 # linking a shared library. 12018 # 12019 # There doesn't appear to be a way to prevent this compiler from 12020 # explicitly linking system object files so we need to strip them 12021 # from the output so that they don't get included in the library 12022 # dependencies. 12023 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' 12024 ;; 12025 *) 12026 case `$CC -V 2>&1 | sed 5q` in 12027 *Sun\ C*) 12028 # Sun C++ 5.9 12029 no_undefined_flag_CXX=' -zdefs' 12030 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12031 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' 12032 hardcode_libdir_flag_spec_CXX='-R$libdir' 12033 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' 12034 12035 # Not sure whether something based on 12036 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12037 # would be better. 12038 output_verbose_link_cmd='echo' 12039 12040 # Archives containing C++ object files must be created using 12041 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12042 # necessary to make sure instantiated templates are included 12043 # in the archive. 12044 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12045 ;; 12046 esac 12047 ;; 12048 esac 12049 ;; 12050 lynxos*) 12051 # FIXME: insert proper C++ library support 12052 ld_shlibs_CXX=no 12053 ;; 12054 m88k*) 12055 # FIXME: insert proper C++ library support 12056 ld_shlibs_CXX=no 12057 ;; 12058 mvs*) 12059 case $cc_basename in 12060 cxx*) 12061 # FIXME: insert proper C++ library support 12062 ld_shlibs_CXX=no 12063 ;; 12064 *) 12065 # FIXME: insert proper C++ library support 12066 ld_shlibs_CXX=no 12067 ;; 12068 esac 12069 ;; 12070 netbsd*) 12071 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12072 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12073 wlarc= 12074 hardcode_libdir_flag_spec_CXX='-R$libdir' 12075 hardcode_direct_CXX=yes 12076 hardcode_shlibpath_var_CXX=no 12077 fi 12078 # Workaround some broken pre-1.5 toolchains 12079 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12080 ;; 12081 openbsd2*) 12082 # C++ shared libraries are fairly broken 12083 ld_shlibs_CXX=no 12084 ;; 12085 openbsd*) 12086 if test -f /usr/libexec/ld.so; then 12087 hardcode_direct_CXX=yes 12088 hardcode_shlibpath_var_CXX=no 12089 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12090 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12091 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12092 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12093 export_dynamic_flag_spec_CXX='${wl}-E' 12094 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12095 fi 12096 output_verbose_link_cmd='echo' 12097 else 12098 ld_shlibs_CXX=no 12099 fi 12100 ;; 12101 osf3*) 12102 case $cc_basename in 12103 KCC*) 12104 # Kuck and Associates, Inc. (KAI) C++ Compiler 12105 12106 # KCC will only create a shared library if the output file 12107 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12108 # to its proper name (with version) after linking. 12109 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' 12110 12111 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12112 hardcode_libdir_separator_CXX=: 12113 12114 # Archives containing C++ object files must be created using 12115 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12116 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12117 12118 ;; 12119 RCC*) 12120 # Rational C++ 2.4.1 12121 # FIXME: insert proper C++ library support 12122 ld_shlibs_CXX=no 12123 ;; 12124 cxx*) 12125 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12126 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' 12127 12128 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12129 hardcode_libdir_separator_CXX=: 12130 12131 # Commands to make compiler produce verbose output that lists 12132 # what "hidden" libraries, object files and flags are used when 12133 # linking a shared library. 12134 # 12135 # There doesn't appear to be a way to prevent this compiler from 12136 # explicitly linking system object files so we need to strip them 12137 # from the output so that they don't get included in the library 12138 # dependencies. 12139 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' 12140 ;; 12141 *) 12142 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12143 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12144 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' 12145 12146 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12147 hardcode_libdir_separator_CXX=: 12148 12149 # Commands to make compiler produce verbose output that lists 12150 # what "hidden" libraries, object files and flags are used when 12151 # linking a shared library. 12152 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12153 12154 else 12155 # FIXME: insert proper C++ library support 12156 ld_shlibs_CXX=no 12157 fi 12158 ;; 12159 esac 12160 ;; 12161 osf4* | osf5*) 12162 case $cc_basename in 12163 KCC*) 12164 # Kuck and Associates, Inc. (KAI) C++ Compiler 12165 12166 # KCC will only create a shared library if the output file 12167 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12168 # to its proper name (with version) after linking. 12169 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' 12170 12171 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12172 hardcode_libdir_separator_CXX=: 12173 12174 # Archives containing C++ object files must be created using 12175 # the KAI C++ compiler. 12176 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12177 ;; 12178 RCC*) 12179 # Rational C++ 2.4.1 12180 # FIXME: insert proper C++ library support 12181 ld_shlibs_CXX=no 12182 ;; 12183 cxx*) 12184 allow_undefined_flag_CXX=' -expect_unresolved \*' 12185 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' 12186 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12187 echo "-hidden">> $lib.exp~ 12188 $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~ 12189 $rm $lib.exp' 12190 12191 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12192 hardcode_libdir_separator_CXX=: 12193 12194 # Commands to make compiler produce verbose output that lists 12195 # what "hidden" libraries, object files and flags are used when 12196 # linking a shared library. 12197 # 12198 # There doesn't appear to be a way to prevent this compiler from 12199 # explicitly linking system object files so we need to strip them 12200 # from the output so that they don't get included in the library 12201 # dependencies. 12202 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' 12203 ;; 12204 *) 12205 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12206 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12207 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' 12208 12209 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12210 hardcode_libdir_separator_CXX=: 12211 12212 # Commands to make compiler produce verbose output that lists 12213 # what "hidden" libraries, object files and flags are used when 12214 # linking a shared library. 12215 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12216 12217 else 12218 # FIXME: insert proper C++ library support 12219 ld_shlibs_CXX=no 12220 fi 12221 ;; 12222 esac 12223 ;; 12224 psos*) 12225 # FIXME: insert proper C++ library support 12226 ld_shlibs_CXX=no 12227 ;; 12228 sunos4*) 12229 case $cc_basename in 12230 CC*) 12231 # Sun C++ 4.x 12232 # FIXME: insert proper C++ library support 12233 ld_shlibs_CXX=no 12234 ;; 12235 lcc*) 12236 # Lucid 12237 # FIXME: insert proper C++ library support 12238 ld_shlibs_CXX=no 12239 ;; 12240 *) 12241 # FIXME: insert proper C++ library support 12242 ld_shlibs_CXX=no 12243 ;; 12244 esac 12245 ;; 12246 solaris*) 12247 case $cc_basename in 12248 CC*) 12249 # Sun C++ 4.2, 5.x and Centerline C++ 12250 archive_cmds_need_lc_CXX=yes 12251 no_undefined_flag_CXX=' -zdefs' 12252 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12253 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12254 $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' 12255 12256 hardcode_libdir_flag_spec_CXX='-R$libdir' 12257 hardcode_shlibpath_var_CXX=no 12258 case $host_os in 12259 solaris2.[0-5] | solaris2.[0-5].*) ;; 12260 *) 12261 # The compiler driver will combine and reorder linker options, 12262 # but understands `-z linker_flag'. 12263 # Supported since Solaris 2.6 (maybe 2.5.1?) 12264 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12265 ;; 12266 esac 12267 link_all_deplibs_CXX=yes 12268 12269 output_verbose_link_cmd='echo' 12270 12271 # Archives containing C++ object files must be created using 12272 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12273 # necessary to make sure instantiated templates are included 12274 # in the archive. 12275 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12276 ;; 12277 gcx*) 12278 # Green Hills C++ Compiler 12279 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12280 12281 # The C++ compiler must be used to create the archive. 12282 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12283 ;; 12284 *) 12285 # GNU C++ compiler with Solaris linker 12286 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12287 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12288 if $CC --version | grep -v '^2\.7' > /dev/null; then 12289 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12290 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12291 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12292 12293 # Commands to make compiler produce verbose output that lists 12294 # what "hidden" libraries, object files and flags are used when 12295 # linking a shared library. 12296 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12297 else 12298 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12299 # platform. 12300 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12301 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12302 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12303 12304 # Commands to make compiler produce verbose output that lists 12305 # what "hidden" libraries, object files and flags are used when 12306 # linking a shared library. 12307 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12308 fi 12309 12310 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12311 case $host_os in 12312 solaris2.[0-5] | solaris2.[0-5].*) ;; 12313 *) 12314 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12315 ;; 12316 esac 12317 fi 12318 ;; 12319 esac 12320 ;; 12321 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12322 no_undefined_flag_CXX='${wl}-z,text' 12323 archive_cmds_need_lc_CXX=no 12324 hardcode_shlibpath_var_CXX=no 12325 runpath_var='LD_RUN_PATH' 12326 12327 case $cc_basename in 12328 CC*) 12329 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12330 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12331 ;; 12332 *) 12333 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12334 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12335 ;; 12336 esac 12337 ;; 12338 sysv5* | sco3.2v5* | sco5v6*) 12339 # Note: We can NOT use -z defs as we might desire, because we do not 12340 # link with -lc, and that would cause any symbols used from libc to 12341 # always be unresolved, which means just about no library would 12342 # ever link correctly. If we're not using GNU ld we use -z text 12343 # though, which does catch some bad symbols but isn't as heavy-handed 12344 # as -z defs. 12345 # For security reasons, it is highly recommended that you always 12346 # use absolute paths for naming shared libraries, and exclude the 12347 # DT_RUNPATH tag from executables and libraries. But doing so 12348 # requires that you compile everything twice, which is a pain. 12349 # So that behaviour is only enabled if SCOABSPATH is set to a 12350 # non-empty value in the environment. Most likely only useful for 12351 # creating official distributions of packages. 12352 # This is a hack until libtool officially supports absolute path 12353 # names for shared libraries. 12354 no_undefined_flag_CXX='${wl}-z,text' 12355 allow_undefined_flag_CXX='${wl}-z,nodefs' 12356 archive_cmds_need_lc_CXX=no 12357 hardcode_shlibpath_var_CXX=no 12358 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12359 hardcode_libdir_separator_CXX=':' 12360 link_all_deplibs_CXX=yes 12361 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12362 runpath_var='LD_RUN_PATH' 12363 12364 case $cc_basename in 12365 CC*) 12366 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12367 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12368 ;; 12369 *) 12370 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12371 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12372 ;; 12373 esac 12374 ;; 12375 tandem*) 12376 case $cc_basename in 12377 NCC*) 12378 # NonStop-UX NCC 3.20 12379 # FIXME: insert proper C++ library support 12380 ld_shlibs_CXX=no 12381 ;; 12382 *) 12383 # FIXME: insert proper C++ library support 12384 ld_shlibs_CXX=no 12385 ;; 12386 esac 12387 ;; 12388 vxworks*) 12389 # FIXME: insert proper C++ library support 12390 ld_shlibs_CXX=no 12391 ;; 12392 *) 12393 # FIXME: insert proper C++ library support 12394 ld_shlibs_CXX=no 12395 ;; 12396esac 12397{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12398$as_echo "$ld_shlibs_CXX" >&6; } 12399test "$ld_shlibs_CXX" = no && can_build_shared=no 12400 12401GCC_CXX="$GXX" 12402LD_CXX="$LD" 12403 12404cat > conftest.$ac_ext <<EOF 12405class Foo 12406{ 12407public: 12408 Foo (void) { a = 0; } 12409private: 12410 int a; 12411}; 12412EOF 12413 12414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12415 (eval $ac_compile) 2>&5 12416 ac_status=$? 12417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12418 (exit $ac_status); }; then 12419 # Parse the compiler output and extract the necessary 12420 # objects, libraries and library flags. 12421 12422 # Sentinel used to keep track of whether or not we are before 12423 # the conftest object file. 12424 pre_test_object_deps_done=no 12425 12426 # The `*' in the case matches for architectures that use `case' in 12427 # $output_verbose_cmd can trigger glob expansion during the loop 12428 # eval without this substitution. 12429 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12430 12431 for p in `eval $output_verbose_link_cmd`; do 12432 case $p in 12433 12434 -L* | -R* | -l*) 12435 # Some compilers place space between "-{L,R}" and the path. 12436 # Remove the space. 12437 if test $p = "-L" \ 12438 || test $p = "-R"; then 12439 prev=$p 12440 continue 12441 else 12442 prev= 12443 fi 12444 12445 if test "$pre_test_object_deps_done" = no; then 12446 case $p in 12447 -L* | -R*) 12448 # Internal compiler library paths should come after those 12449 # provided the user. The postdeps already come after the 12450 # user supplied libs so there is no need to process them. 12451 if test -z "$compiler_lib_search_path_CXX"; then 12452 compiler_lib_search_path_CXX="${prev}${p}" 12453 else 12454 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12455 fi 12456 ;; 12457 # The "-l" case would never come before the object being 12458 # linked, so don't bother handling this case. 12459 esac 12460 else 12461 if test -z "$postdeps_CXX"; then 12462 postdeps_CXX="${prev}${p}" 12463 else 12464 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12465 fi 12466 fi 12467 ;; 12468 12469 *.$objext) 12470 # This assumes that the test object file only shows up 12471 # once in the compiler output. 12472 if test "$p" = "conftest.$objext"; then 12473 pre_test_object_deps_done=yes 12474 continue 12475 fi 12476 12477 if test "$pre_test_object_deps_done" = no; then 12478 if test -z "$predep_objects_CXX"; then 12479 predep_objects_CXX="$p" 12480 else 12481 predep_objects_CXX="$predep_objects_CXX $p" 12482 fi 12483 else 12484 if test -z "$postdep_objects_CXX"; then 12485 postdep_objects_CXX="$p" 12486 else 12487 postdep_objects_CXX="$postdep_objects_CXX $p" 12488 fi 12489 fi 12490 ;; 12491 12492 *) ;; # Ignore the rest. 12493 12494 esac 12495 done 12496 12497 # Clean up. 12498 rm -f a.out a.exe 12499else 12500 echo "libtool.m4: error: problem compiling CXX test program" 12501fi 12502 12503$rm -f confest.$objext 12504 12505compiler_lib_search_dirs_CXX= 12506if test -n "$compiler_lib_search_path_CXX"; then 12507 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12508fi 12509 12510# PORTME: override above test on systems where it is broken 12511case $host_os in 12512interix[3-9]*) 12513 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12514 # hack all around it, let's just trust "g++" to DTRT. 12515 predep_objects_CXX= 12516 postdep_objects_CXX= 12517 postdeps_CXX= 12518 ;; 12519 12520linux*) 12521 case `$CC -V 2>&1 | sed 5q` in 12522 *Sun\ C*) 12523 # Sun C++ 5.9 12524 # 12525 # The more standards-conforming stlport4 library is 12526 # incompatible with the Cstd library. Avoid specifying 12527 # it if it's in CXXFLAGS. Ignore libCrun as 12528 # -library=stlport4 depends on it. 12529 case " $CXX $CXXFLAGS " in 12530 *" -library=stlport4 "*) 12531 solaris_use_stlport4=yes 12532 ;; 12533 esac 12534 if test "$solaris_use_stlport4" != yes; then 12535 postdeps_CXX='-library=Cstd -library=Crun' 12536 fi 12537 ;; 12538 esac 12539 ;; 12540 12541solaris*) 12542 case $cc_basename in 12543 CC*) 12544 # The more standards-conforming stlport4 library is 12545 # incompatible with the Cstd library. Avoid specifying 12546 # it if it's in CXXFLAGS. Ignore libCrun as 12547 # -library=stlport4 depends on it. 12548 case " $CXX $CXXFLAGS " in 12549 *" -library=stlport4 "*) 12550 solaris_use_stlport4=yes 12551 ;; 12552 esac 12553 12554 # Adding this requires a known-good setup of shared libraries for 12555 # Sun compiler versions before 5.6, else PIC objects from an old 12556 # archive will be linked into the output, leading to subtle bugs. 12557 if test "$solaris_use_stlport4" != yes; then 12558 postdeps_CXX='-library=Cstd -library=Crun' 12559 fi 12560 ;; 12561 esac 12562 ;; 12563esac 12564 12565case " $postdeps_CXX " in 12566*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12567esac 12568 12569lt_prog_compiler_wl_CXX= 12570lt_prog_compiler_pic_CXX= 12571lt_prog_compiler_static_CXX= 12572 12573{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12574$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12575 12576 # C++ specific cases for pic, static, wl, etc. 12577 if test "$GXX" = yes; then 12578 lt_prog_compiler_wl_CXX='-Wl,' 12579 lt_prog_compiler_static_CXX='-static' 12580 12581 case $host_os in 12582 aix*) 12583 # All AIX code is PIC. 12584 if test "$host_cpu" = ia64; then 12585 # AIX 5 now supports IA64 processor 12586 lt_prog_compiler_static_CXX='-Bstatic' 12587 fi 12588 ;; 12589 amigaos*) 12590 # FIXME: we need at least 68020 code to build shared libraries, but 12591 # adding the `-m68020' flag to GCC prevents building anything better, 12592 # like `-m68040'. 12593 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12594 ;; 12595 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12596 # PIC is the default for these OSes. 12597 ;; 12598 mingw* | cygwin* | os2* | pw32*) 12599 # This hack is so that the source file can tell whether it is being 12600 # built for inclusion in a dll (and should export symbols for example). 12601 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12602 # (--disable-auto-import) libraries 12603 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12604 ;; 12605 darwin* | rhapsody*) 12606 # PIC is the default on this platform 12607 # Common symbols not allowed in MH_DYLIB files 12608 lt_prog_compiler_pic_CXX='-fno-common' 12609 ;; 12610 *djgpp*) 12611 # DJGPP does not support shared libraries at all 12612 lt_prog_compiler_pic_CXX= 12613 ;; 12614 interix[3-9]*) 12615 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12616 # Instead, we relocate shared libraries at runtime. 12617 ;; 12618 sysv4*MP*) 12619 if test -d /usr/nec; then 12620 lt_prog_compiler_pic_CXX=-Kconform_pic 12621 fi 12622 ;; 12623 hpux*) 12624 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12625 # not for PA HP-UX. 12626 case $host_cpu in 12627 hppa*64*|ia64*) 12628 ;; 12629 *) 12630 lt_prog_compiler_pic_CXX='-fPIC' 12631 ;; 12632 esac 12633 ;; 12634 *) 12635 lt_prog_compiler_pic_CXX='-fPIC' 12636 ;; 12637 esac 12638 else 12639 case $host_os in 12640 aix[4-9]*) 12641 # All AIX code is PIC. 12642 if test "$host_cpu" = ia64; then 12643 # AIX 5 now supports IA64 processor 12644 lt_prog_compiler_static_CXX='-Bstatic' 12645 else 12646 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12647 fi 12648 ;; 12649 chorus*) 12650 case $cc_basename in 12651 cxch68*) 12652 # Green Hills C++ Compiler 12653 # _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" 12654 ;; 12655 esac 12656 ;; 12657 darwin*) 12658 # PIC is the default on this platform 12659 # Common symbols not allowed in MH_DYLIB files 12660 case $cc_basename in 12661 xlc*) 12662 lt_prog_compiler_pic_CXX='-qnocommon' 12663 lt_prog_compiler_wl_CXX='-Wl,' 12664 ;; 12665 esac 12666 ;; 12667 dgux*) 12668 case $cc_basename in 12669 ec++*) 12670 lt_prog_compiler_pic_CXX='-KPIC' 12671 ;; 12672 ghcx*) 12673 # Green Hills C++ Compiler 12674 lt_prog_compiler_pic_CXX='-pic' 12675 ;; 12676 *) 12677 ;; 12678 esac 12679 ;; 12680 freebsd* | dragonfly*) 12681 # FreeBSD uses GNU C++ 12682 ;; 12683 hpux9* | hpux10* | hpux11*) 12684 case $cc_basename in 12685 CC*) 12686 lt_prog_compiler_wl_CXX='-Wl,' 12687 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12688 if test "$host_cpu" != ia64; then 12689 lt_prog_compiler_pic_CXX='+Z' 12690 fi 12691 ;; 12692 aCC*) 12693 lt_prog_compiler_wl_CXX='-Wl,' 12694 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12695 case $host_cpu in 12696 hppa*64*|ia64*) 12697 # +Z the default 12698 ;; 12699 *) 12700 lt_prog_compiler_pic_CXX='+Z' 12701 ;; 12702 esac 12703 ;; 12704 *) 12705 ;; 12706 esac 12707 ;; 12708 interix*) 12709 # This is c89, which is MS Visual C++ (no shared libs) 12710 # Anyone wants to do a port? 12711 ;; 12712 irix5* | irix6* | nonstopux*) 12713 case $cc_basename in 12714 CC*) 12715 lt_prog_compiler_wl_CXX='-Wl,' 12716 lt_prog_compiler_static_CXX='-non_shared' 12717 # CC pic flag -KPIC is the default. 12718 ;; 12719 *) 12720 ;; 12721 esac 12722 ;; 12723 linux* | k*bsd*-gnu) 12724 case $cc_basename in 12725 KCC*) 12726 # KAI C++ Compiler 12727 lt_prog_compiler_wl_CXX='--backend -Wl,' 12728 lt_prog_compiler_pic_CXX='-fPIC' 12729 ;; 12730 icpc* | ecpc*) 12731 # Intel C++ 12732 lt_prog_compiler_wl_CXX='-Wl,' 12733 lt_prog_compiler_pic_CXX='-KPIC' 12734 lt_prog_compiler_static_CXX='-static' 12735 ;; 12736 pgCC* | pgcpp*) 12737 # Portland Group C++ compiler. 12738 lt_prog_compiler_wl_CXX='-Wl,' 12739 lt_prog_compiler_pic_CXX='-fpic' 12740 lt_prog_compiler_static_CXX='-Bstatic' 12741 ;; 12742 cxx*) 12743 # Compaq C++ 12744 # Make sure the PIC flag is empty. It appears that all Alpha 12745 # Linux and Compaq Tru64 Unix objects are PIC. 12746 lt_prog_compiler_pic_CXX= 12747 lt_prog_compiler_static_CXX='-non_shared' 12748 ;; 12749 *) 12750 case `$CC -V 2>&1 | sed 5q` in 12751 *Sun\ C*) 12752 # Sun C++ 5.9 12753 lt_prog_compiler_pic_CXX='-KPIC' 12754 lt_prog_compiler_static_CXX='-Bstatic' 12755 lt_prog_compiler_wl_CXX='-Qoption ld ' 12756 ;; 12757 esac 12758 ;; 12759 esac 12760 ;; 12761 lynxos*) 12762 ;; 12763 m88k*) 12764 ;; 12765 mvs*) 12766 case $cc_basename in 12767 cxx*) 12768 lt_prog_compiler_pic_CXX='-W c,exportall' 12769 ;; 12770 *) 12771 ;; 12772 esac 12773 ;; 12774 netbsd*) 12775 ;; 12776 osf3* | osf4* | osf5*) 12777 case $cc_basename in 12778 KCC*) 12779 lt_prog_compiler_wl_CXX='--backend -Wl,' 12780 ;; 12781 RCC*) 12782 # Rational C++ 2.4.1 12783 lt_prog_compiler_pic_CXX='-pic' 12784 ;; 12785 cxx*) 12786 # Digital/Compaq C++ 12787 lt_prog_compiler_wl_CXX='-Wl,' 12788 # Make sure the PIC flag is empty. It appears that all Alpha 12789 # Linux and Compaq Tru64 Unix objects are PIC. 12790 lt_prog_compiler_pic_CXX= 12791 lt_prog_compiler_static_CXX='-non_shared' 12792 ;; 12793 *) 12794 ;; 12795 esac 12796 ;; 12797 psos*) 12798 ;; 12799 solaris*) 12800 case $cc_basename in 12801 CC*) 12802 # Sun C++ 4.2, 5.x and Centerline C++ 12803 lt_prog_compiler_pic_CXX='-KPIC' 12804 lt_prog_compiler_static_CXX='-Bstatic' 12805 lt_prog_compiler_wl_CXX='-Qoption ld ' 12806 ;; 12807 gcx*) 12808 # Green Hills C++ Compiler 12809 lt_prog_compiler_pic_CXX='-PIC' 12810 ;; 12811 *) 12812 ;; 12813 esac 12814 ;; 12815 sunos4*) 12816 case $cc_basename in 12817 CC*) 12818 # Sun C++ 4.x 12819 lt_prog_compiler_pic_CXX='-pic' 12820 lt_prog_compiler_static_CXX='-Bstatic' 12821 ;; 12822 lcc*) 12823 # Lucid 12824 lt_prog_compiler_pic_CXX='-pic' 12825 ;; 12826 *) 12827 ;; 12828 esac 12829 ;; 12830 tandem*) 12831 case $cc_basename in 12832 NCC*) 12833 # NonStop-UX NCC 3.20 12834 lt_prog_compiler_pic_CXX='-KPIC' 12835 ;; 12836 *) 12837 ;; 12838 esac 12839 ;; 12840 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12841 case $cc_basename in 12842 CC*) 12843 lt_prog_compiler_wl_CXX='-Wl,' 12844 lt_prog_compiler_pic_CXX='-KPIC' 12845 lt_prog_compiler_static_CXX='-Bstatic' 12846 ;; 12847 esac 12848 ;; 12849 vxworks*) 12850 ;; 12851 *) 12852 lt_prog_compiler_can_build_shared_CXX=no 12853 ;; 12854 esac 12855 fi 12856 12857{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12858$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 12859 12860# 12861# Check to make sure the PIC flag actually works. 12862# 12863if test -n "$lt_prog_compiler_pic_CXX"; then 12864 12865{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12866$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 12867if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 12868 $as_echo_n "(cached) " >&6 12869else 12870 lt_cv_prog_compiler_pic_works_CXX=no 12871 ac_outfile=conftest.$ac_objext 12872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12873 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12874 # Insert the option either (1) after the last *FLAGS variable, or 12875 # (2) before a word containing "conftest.", or (3) at the end. 12876 # Note that $ac_compile itself does not contain backslashes and begins 12877 # with a dollar sign (not a hyphen), so the echo should work correctly. 12878 # The option is referenced via a variable to avoid confusing sed. 12879 lt_compile=`echo "$ac_compile" | $SED \ 12880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12882 -e 's:$: $lt_compiler_flag:'` 12883 (eval echo "\"\$as_me:12883: $lt_compile\"" >&5) 12884 (eval "$lt_compile" 2>conftest.err) 12885 ac_status=$? 12886 cat conftest.err >&5 12887 echo "$as_me:12887: \$? = $ac_status" >&5 12888 if (exit $ac_status) && test -s "$ac_outfile"; then 12889 # The compiler can only warn and ignore the option if not recognized 12890 # So say no if there are warnings other than the usual output. 12891 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12892 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12893 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12894 lt_cv_prog_compiler_pic_works_CXX=yes 12895 fi 12896 fi 12897 $rm conftest* 12898 12899fi 12900{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 12901$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 12902 12903if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 12904 case $lt_prog_compiler_pic_CXX in 12905 "" | " "*) ;; 12906 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12907 esac 12908else 12909 lt_prog_compiler_pic_CXX= 12910 lt_prog_compiler_can_build_shared_CXX=no 12911fi 12912 12913fi 12914case $host_os in 12915 # For platforms which do not support PIC, -DPIC is meaningless: 12916 *djgpp*) 12917 lt_prog_compiler_pic_CXX= 12918 ;; 12919 *) 12920 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12921 ;; 12922esac 12923 12924# 12925# Check to make sure the static flag actually works. 12926# 12927wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12928{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12929$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12930if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 12931 $as_echo_n "(cached) " >&6 12932else 12933 lt_cv_prog_compiler_static_works_CXX=no 12934 save_LDFLAGS="$LDFLAGS" 12935 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12936 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12937 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12938 # The linker can only warn and ignore the option if not recognized 12939 # So say no if there are warnings 12940 if test -s conftest.err; then 12941 # Append any errors to the config.log. 12942 cat conftest.err 1>&5 12943 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12945 if diff conftest.exp conftest.er2 >/dev/null; then 12946 lt_cv_prog_compiler_static_works_CXX=yes 12947 fi 12948 else 12949 lt_cv_prog_compiler_static_works_CXX=yes 12950 fi 12951 fi 12952 $rm -r conftest* 12953 LDFLAGS="$save_LDFLAGS" 12954 12955fi 12956{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 12957$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 12958 12959if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 12960 : 12961else 12962 lt_prog_compiler_static_CXX= 12963fi 12964 12965 12966{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12967$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12968if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12969 $as_echo_n "(cached) " >&6 12970else 12971 lt_cv_prog_compiler_c_o_CXX=no 12972 $rm -r conftest 2>/dev/null 12973 mkdir conftest 12974 cd conftest 12975 mkdir out 12976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12977 12978 lt_compiler_flag="-o out/conftest2.$ac_objext" 12979 # Insert the option either (1) after the last *FLAGS variable, or 12980 # (2) before a word containing "conftest.", or (3) at the end. 12981 # Note that $ac_compile itself does not contain backslashes and begins 12982 # with a dollar sign (not a hyphen), so the echo should work correctly. 12983 lt_compile=`echo "$ac_compile" | $SED \ 12984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12986 -e 's:$: $lt_compiler_flag:'` 12987 (eval echo "\"\$as_me:12987: $lt_compile\"" >&5) 12988 (eval "$lt_compile" 2>out/conftest.err) 12989 ac_status=$? 12990 cat out/conftest.err >&5 12991 echo "$as_me:12991: \$? = $ac_status" >&5 12992 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12993 then 12994 # The compiler can only warn and ignore the option if not recognized 12995 # So say no if there are warnings 12996 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12997 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12998 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12999 lt_cv_prog_compiler_c_o_CXX=yes 13000 fi 13001 fi 13002 chmod u+w . 2>&5 13003 $rm conftest* 13004 # SGI C++ compiler will create directory out/ii_files/ for 13005 # template instantiation 13006 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13007 $rm out/* && rmdir out 13008 cd .. 13009 rmdir conftest 13010 $rm conftest* 13011 13012fi 13013{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13014$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13015 13016 13017hard_links="nottested" 13018if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13019 # do not overwrite the value of need_locks provided by the user 13020 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13021$as_echo_n "checking if we can lock with hard links... " >&6; } 13022 hard_links=yes 13023 $rm conftest* 13024 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13025 touch conftest.a 13026 ln conftest.a conftest.b 2>&5 || hard_links=no 13027 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13028 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 13029$as_echo "$hard_links" >&6; } 13030 if test "$hard_links" = no; then 13031 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13032$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13033 need_locks=warn 13034 fi 13035else 13036 need_locks=no 13037fi 13038 13039{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13040$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13041 13042 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13043 case $host_os in 13044 aix[4-9]*) 13045 # If we're using GNU nm, then we don't want the "-C" option. 13046 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13047 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13048 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' 13049 else 13050 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' 13051 fi 13052 ;; 13053 pw32*) 13054 export_symbols_cmds_CXX="$ltdll_cmds" 13055 ;; 13056 cygwin* | mingw*) 13057 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' 13058 ;; 13059 *) 13060 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13061 ;; 13062 esac 13063 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13064 13065{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13066$as_echo "$ld_shlibs_CXX" >&6; } 13067test "$ld_shlibs_CXX" = no && can_build_shared=no 13068 13069# 13070# Do we need to explicitly link libc? 13071# 13072case "x$archive_cmds_need_lc_CXX" in 13073x|xyes) 13074 # Assume -lc should be added 13075 archive_cmds_need_lc_CXX=yes 13076 13077 if test "$enable_shared" = yes && test "$GCC" = yes; then 13078 case $archive_cmds_CXX in 13079 *'~'*) 13080 # FIXME: we may have to deal with multi-command sequences. 13081 ;; 13082 '$CC '*) 13083 # Test whether the compiler implicitly links with -lc since on some 13084 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13085 # to ld, don't add -lc before -lgcc. 13086 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13087$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13088 $rm conftest* 13089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13090 13091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13092 (eval $ac_compile) 2>&5 13093 ac_status=$? 13094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13095 (exit $ac_status); } 2>conftest.err; then 13096 soname=conftest 13097 lib=conftest 13098 libobjs=conftest.$ac_objext 13099 deplibs= 13100 wl=$lt_prog_compiler_wl_CXX 13101 pic_flag=$lt_prog_compiler_pic_CXX 13102 compiler_flags=-v 13103 linker_flags=-v 13104 verstring= 13105 output_objdir=. 13106 libname=conftest 13107 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13108 allow_undefined_flag_CXX= 13109 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13110 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13111 ac_status=$? 13112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13113 (exit $ac_status); } 13114 then 13115 archive_cmds_need_lc_CXX=no 13116 else 13117 archive_cmds_need_lc_CXX=yes 13118 fi 13119 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13120 else 13121 cat conftest.err 1>&5 13122 fi 13123 $rm conftest* 13124 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13125$as_echo "$archive_cmds_need_lc_CXX" >&6; } 13126 ;; 13127 esac 13128 fi 13129 ;; 13130esac 13131 13132{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13133$as_echo_n "checking dynamic linker characteristics... " >&6; } 13134library_names_spec= 13135libname_spec='lib$name' 13136soname_spec= 13137shrext_cmds=".so" 13138postinstall_cmds= 13139postuninstall_cmds= 13140finish_cmds= 13141finish_eval= 13142shlibpath_var= 13143shlibpath_overrides_runpath=unknown 13144version_type=none 13145dynamic_linker="$host_os ld.so" 13146sys_lib_dlsearch_path_spec="/lib /usr/lib" 13147 13148need_lib_prefix=unknown 13149hardcode_into_libs=no 13150 13151# when you set need_version to no, make sure it does not cause -set_version 13152# flags to be left without arguments 13153need_version=unknown 13154 13155case $host_os in 13156aix3*) 13157 version_type=linux 13158 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13159 shlibpath_var=LIBPATH 13160 13161 # AIX 3 has no versioning support, so we append a major version to the name. 13162 soname_spec='${libname}${release}${shared_ext}$major' 13163 ;; 13164 13165aix[4-9]*) 13166 version_type=linux 13167 need_lib_prefix=no 13168 need_version=no 13169 hardcode_into_libs=yes 13170 if test "$host_cpu" = ia64; then 13171 # AIX 5 supports IA64 13172 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13173 shlibpath_var=LD_LIBRARY_PATH 13174 else 13175 # With GCC up to 2.95.x, collect2 would create an import file 13176 # for dependence libraries. The import file would start with 13177 # the line `#! .'. This would cause the generated library to 13178 # depend on `.', always an invalid library. This was fixed in 13179 # development snapshots of GCC prior to 3.0. 13180 case $host_os in 13181 aix4 | aix4.[01] | aix4.[01].*) 13182 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13183 echo ' yes ' 13184 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13185 : 13186 else 13187 can_build_shared=no 13188 fi 13189 ;; 13190 esac 13191 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13192 # soname into executable. Probably we can add versioning support to 13193 # collect2, so additional links can be useful in future. 13194 if test "$aix_use_runtimelinking" = yes; then 13195 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13196 # instead of lib<name>.a to let people know that these are not 13197 # typical AIX shared libraries. 13198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13199 else 13200 # We preserve .a as extension for shared libraries through AIX4.2 13201 # and later when we are not doing run time linking. 13202 library_names_spec='${libname}${release}.a $libname.a' 13203 soname_spec='${libname}${release}${shared_ext}$major' 13204 fi 13205 shlibpath_var=LIBPATH 13206 fi 13207 ;; 13208 13209amigaos*) 13210 library_names_spec='$libname.ixlibrary $libname.a' 13211 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13212 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' 13213 ;; 13214 13215beos*) 13216 library_names_spec='${libname}${shared_ext}' 13217 dynamic_linker="$host_os ld.so" 13218 shlibpath_var=LIBRARY_PATH 13219 ;; 13220 13221bsdi[45]*) 13222 version_type=linux 13223 need_version=no 13224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13225 soname_spec='${libname}${release}${shared_ext}$major' 13226 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13227 shlibpath_var=LD_LIBRARY_PATH 13228 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13229 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13230 # the default ld.so.conf also contains /usr/contrib/lib and 13231 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13232 # libtool to hard-code these into programs 13233 ;; 13234 13235cygwin* | mingw* | pw32*) 13236 version_type=windows 13237 shrext_cmds=".dll" 13238 need_version=no 13239 need_lib_prefix=no 13240 13241 case $GCC,$host_os in 13242 yes,cygwin* | yes,mingw* | yes,pw32*) 13243 library_names_spec='$libname.dll.a' 13244 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13245 postinstall_cmds='base_file=`basename \${file}`~ 13246 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13247 dldir=$destdir/`dirname \$dlpath`~ 13248 test -d \$dldir || mkdir -p \$dldir~ 13249 $install_prog $dir/$dlname \$dldir/$dlname~ 13250 chmod a+x \$dldir/$dlname' 13251 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13252 dlpath=$dir/\$dldll~ 13253 $rm \$dlpath' 13254 shlibpath_overrides_runpath=yes 13255 13256 case $host_os in 13257 cygwin*) 13258 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13259 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13260 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13261 ;; 13262 mingw*) 13263 # MinGW DLLs use traditional 'lib' prefix 13264 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13265 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13266 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13267 # It is most probably a Windows format PATH printed by 13268 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13269 # path with ; separators, and with drive letters. We can handle the 13270 # drive letters (cygwin fileutils understands them), so leave them, 13271 # especially as we might pass files found there to a mingw objdump, 13272 # which wouldn't understand a cygwinified path. Ahh. 13273 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13274 else 13275 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13276 fi 13277 ;; 13278 pw32*) 13279 # pw32 DLLs use 'pw' prefix rather than 'lib' 13280 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13281 ;; 13282 esac 13283 ;; 13284 13285 *) 13286 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13287 ;; 13288 esac 13289 dynamic_linker='Win32 ld.exe' 13290 # FIXME: first we should search . and the directory the executable is in 13291 shlibpath_var=PATH 13292 ;; 13293 13294darwin* | rhapsody*) 13295 dynamic_linker="$host_os dyld" 13296 version_type=darwin 13297 need_lib_prefix=no 13298 need_version=no 13299 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13300 soname_spec='${libname}${release}${major}$shared_ext' 13301 shlibpath_overrides_runpath=yes 13302 shlibpath_var=DYLD_LIBRARY_PATH 13303 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13304 13305 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13306 ;; 13307 13308dgux*) 13309 version_type=linux 13310 need_lib_prefix=no 13311 need_version=no 13312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13313 soname_spec='${libname}${release}${shared_ext}$major' 13314 shlibpath_var=LD_LIBRARY_PATH 13315 ;; 13316 13317freebsd1*) 13318 dynamic_linker=no 13319 ;; 13320 13321freebsd* | dragonfly*) 13322 # DragonFly does not have aout. When/if they implement a new 13323 # versioning mechanism, adjust this. 13324 if test -x /usr/bin/objformat; then 13325 objformat=`/usr/bin/objformat` 13326 else 13327 case $host_os in 13328 freebsd[123]*) objformat=aout ;; 13329 *) objformat=elf ;; 13330 esac 13331 fi 13332 version_type=freebsd-$objformat 13333 case $version_type in 13334 freebsd-elf*) 13335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13336 need_version=no 13337 need_lib_prefix=no 13338 ;; 13339 freebsd-*) 13340 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13341 need_version=yes 13342 ;; 13343 esac 13344 shlibpath_var=LD_LIBRARY_PATH 13345 case $host_os in 13346 freebsd2*) 13347 shlibpath_overrides_runpath=yes 13348 ;; 13349 freebsd3.[01]* | freebsdelf3.[01]*) 13350 shlibpath_overrides_runpath=yes 13351 hardcode_into_libs=yes 13352 ;; 13353 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13354 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13355 shlibpath_overrides_runpath=no 13356 hardcode_into_libs=yes 13357 ;; 13358 *) # from 4.6 on, and DragonFly 13359 shlibpath_overrides_runpath=yes 13360 hardcode_into_libs=yes 13361 ;; 13362 esac 13363 ;; 13364 13365gnu*) 13366 version_type=linux 13367 need_lib_prefix=no 13368 need_version=no 13369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13370 soname_spec='${libname}${release}${shared_ext}$major' 13371 shlibpath_var=LD_LIBRARY_PATH 13372 hardcode_into_libs=yes 13373 ;; 13374 13375hpux9* | hpux10* | hpux11*) 13376 # Give a soname corresponding to the major version so that dld.sl refuses to 13377 # link against other versions. 13378 version_type=sunos 13379 need_lib_prefix=no 13380 need_version=no 13381 case $host_cpu in 13382 ia64*) 13383 shrext_cmds='.so' 13384 hardcode_into_libs=yes 13385 dynamic_linker="$host_os dld.so" 13386 shlibpath_var=LD_LIBRARY_PATH 13387 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13389 soname_spec='${libname}${release}${shared_ext}$major' 13390 if test "X$HPUX_IA64_MODE" = X32; then 13391 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13392 else 13393 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13394 fi 13395 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13396 ;; 13397 hppa*64*) 13398 shrext_cmds='.sl' 13399 hardcode_into_libs=yes 13400 dynamic_linker="$host_os dld.sl" 13401 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13402 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13404 soname_spec='${libname}${release}${shared_ext}$major' 13405 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13406 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13407 ;; 13408 *) 13409 shrext_cmds='.sl' 13410 dynamic_linker="$host_os dld.sl" 13411 shlibpath_var=SHLIB_PATH 13412 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13414 soname_spec='${libname}${release}${shared_ext}$major' 13415 ;; 13416 esac 13417 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13418 postinstall_cmds='chmod 555 $lib' 13419 ;; 13420 13421interix[3-9]*) 13422 version_type=linux 13423 need_lib_prefix=no 13424 need_version=no 13425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13426 soname_spec='${libname}${release}${shared_ext}$major' 13427 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13428 shlibpath_var=LD_LIBRARY_PATH 13429 shlibpath_overrides_runpath=no 13430 hardcode_into_libs=yes 13431 ;; 13432 13433irix5* | irix6* | nonstopux*) 13434 case $host_os in 13435 nonstopux*) version_type=nonstopux ;; 13436 *) 13437 if test "$lt_cv_prog_gnu_ld" = yes; then 13438 version_type=linux 13439 else 13440 version_type=irix 13441 fi ;; 13442 esac 13443 need_lib_prefix=no 13444 need_version=no 13445 soname_spec='${libname}${release}${shared_ext}$major' 13446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13447 case $host_os in 13448 irix5* | nonstopux*) 13449 libsuff= shlibsuff= 13450 ;; 13451 *) 13452 case $LD in # libtool.m4 will add one of these switches to LD 13453 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13454 libsuff= shlibsuff= libmagic=32-bit;; 13455 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13456 libsuff=32 shlibsuff=N32 libmagic=N32;; 13457 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13458 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13459 *) libsuff= shlibsuff= libmagic=never-match;; 13460 esac 13461 ;; 13462 esac 13463 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13464 shlibpath_overrides_runpath=no 13465 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13466 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13467 hardcode_into_libs=yes 13468 ;; 13469 13470# No shared lib support for Linux oldld, aout, or coff. 13471linux*oldld* | linux*aout* | linux*coff*) 13472 dynamic_linker=no 13473 ;; 13474 13475# This must be Linux ELF. 13476linux* | k*bsd*-gnu) 13477 version_type=linux 13478 need_lib_prefix=no 13479 need_version=no 13480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13481 soname_spec='${libname}${release}${shared_ext}$major' 13482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13483 shlibpath_var=LD_LIBRARY_PATH 13484 shlibpath_overrides_runpath=no 13485 # This implies no fast_install, which is unacceptable. 13486 # Some rework will be needed to allow for fast_install 13487 # before this can be enabled. 13488 hardcode_into_libs=yes 13489 13490 # Append ld.so.conf contents to the search path 13491 if test -f /etc/ld.so.conf; then 13492 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' ' '` 13493 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13494 fi 13495 13496 # We used to test for /lib/ld.so.1 and disable shared libraries on 13497 # powerpc, because MkLinux only supported shared libraries with the 13498 # GNU dynamic linker. Since this was broken with cross compilers, 13499 # most powerpc-linux boxes support dynamic linking these days and 13500 # people can always --disable-shared, the test was removed, and we 13501 # assume the GNU/Linux dynamic linker is in use. 13502 dynamic_linker='GNU/Linux ld.so' 13503 ;; 13504 13505netbsd*) 13506 version_type=sunos 13507 need_lib_prefix=no 13508 need_version=no 13509 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13512 dynamic_linker='NetBSD (a.out) ld.so' 13513 else 13514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13515 soname_spec='${libname}${release}${shared_ext}$major' 13516 dynamic_linker='NetBSD ld.elf_so' 13517 fi 13518 shlibpath_var=LD_LIBRARY_PATH 13519 shlibpath_overrides_runpath=yes 13520 hardcode_into_libs=yes 13521 ;; 13522 13523newsos6) 13524 version_type=linux 13525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13526 shlibpath_var=LD_LIBRARY_PATH 13527 shlibpath_overrides_runpath=yes 13528 ;; 13529 13530nto-qnx*) 13531 version_type=linux 13532 need_lib_prefix=no 13533 need_version=no 13534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13535 soname_spec='${libname}${release}${shared_ext}$major' 13536 shlibpath_var=LD_LIBRARY_PATH 13537 shlibpath_overrides_runpath=yes 13538 ;; 13539 13540openbsd*) 13541 version_type=sunos 13542 sys_lib_dlsearch_path_spec="/usr/lib" 13543 need_lib_prefix=no 13544 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13545 case $host_os in 13546 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13547 *) need_version=no ;; 13548 esac 13549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13551 shlibpath_var=LD_LIBRARY_PATH 13552 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13553 case $host_os in 13554 openbsd2.[89] | openbsd2.[89].*) 13555 shlibpath_overrides_runpath=no 13556 ;; 13557 *) 13558 shlibpath_overrides_runpath=yes 13559 ;; 13560 esac 13561 else 13562 shlibpath_overrides_runpath=yes 13563 fi 13564 ;; 13565 13566os2*) 13567 libname_spec='$name' 13568 shrext_cmds=".dll" 13569 need_lib_prefix=no 13570 library_names_spec='$libname${shared_ext} $libname.a' 13571 dynamic_linker='OS/2 ld.exe' 13572 shlibpath_var=LIBPATH 13573 ;; 13574 13575osf3* | osf4* | osf5*) 13576 version_type=osf 13577 need_lib_prefix=no 13578 need_version=no 13579 soname_spec='${libname}${release}${shared_ext}$major' 13580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13581 shlibpath_var=LD_LIBRARY_PATH 13582 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13583 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13584 ;; 13585 13586rdos*) 13587 dynamic_linker=no 13588 ;; 13589 13590solaris*) 13591 version_type=linux 13592 need_lib_prefix=no 13593 need_version=no 13594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13595 soname_spec='${libname}${release}${shared_ext}$major' 13596 shlibpath_var=LD_LIBRARY_PATH 13597 shlibpath_overrides_runpath=yes 13598 hardcode_into_libs=yes 13599 # ldd complains unless libraries are executable 13600 postinstall_cmds='chmod +x $lib' 13601 ;; 13602 13603sunos4*) 13604 version_type=sunos 13605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13606 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13607 shlibpath_var=LD_LIBRARY_PATH 13608 shlibpath_overrides_runpath=yes 13609 if test "$with_gnu_ld" = yes; then 13610 need_lib_prefix=no 13611 fi 13612 need_version=yes 13613 ;; 13614 13615sysv4 | sysv4.3*) 13616 version_type=linux 13617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13618 soname_spec='${libname}${release}${shared_ext}$major' 13619 shlibpath_var=LD_LIBRARY_PATH 13620 case $host_vendor in 13621 sni) 13622 shlibpath_overrides_runpath=no 13623 need_lib_prefix=no 13624 export_dynamic_flag_spec='${wl}-Blargedynsym' 13625 runpath_var=LD_RUN_PATH 13626 ;; 13627 siemens) 13628 need_lib_prefix=no 13629 ;; 13630 motorola) 13631 need_lib_prefix=no 13632 need_version=no 13633 shlibpath_overrides_runpath=no 13634 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13635 ;; 13636 esac 13637 ;; 13638 13639sysv4*MP*) 13640 if test -d /usr/nec ;then 13641 version_type=linux 13642 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13643 soname_spec='$libname${shared_ext}.$major' 13644 shlibpath_var=LD_LIBRARY_PATH 13645 fi 13646 ;; 13647 13648sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13649 version_type=freebsd-elf 13650 need_lib_prefix=no 13651 need_version=no 13652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13653 soname_spec='${libname}${release}${shared_ext}$major' 13654 shlibpath_var=LD_LIBRARY_PATH 13655 hardcode_into_libs=yes 13656 if test "$with_gnu_ld" = yes; then 13657 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13658 shlibpath_overrides_runpath=no 13659 else 13660 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13661 shlibpath_overrides_runpath=yes 13662 case $host_os in 13663 sco3.2v5*) 13664 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13665 ;; 13666 esac 13667 fi 13668 sys_lib_dlsearch_path_spec='/usr/lib' 13669 ;; 13670 13671uts4*) 13672 version_type=linux 13673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13674 soname_spec='${libname}${release}${shared_ext}$major' 13675 shlibpath_var=LD_LIBRARY_PATH 13676 ;; 13677 13678*) 13679 dynamic_linker=no 13680 ;; 13681esac 13682{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13683$as_echo "$dynamic_linker" >&6; } 13684test "$dynamic_linker" = no && can_build_shared=no 13685 13686if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13687 $as_echo_n "(cached) " >&6 13688else 13689 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 13690fi 13691 13692sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13693if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13694 $as_echo_n "(cached) " >&6 13695else 13696 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 13697fi 13698 13699sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13700 13701variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13702if test "$GCC" = yes; then 13703 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13704fi 13705 13706{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13707$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13708hardcode_action_CXX= 13709if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13710 test -n "$runpath_var_CXX" || \ 13711 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13712 13713 # We can hardcode non-existant directories. 13714 if test "$hardcode_direct_CXX" != no && 13715 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13716 # have to relink, otherwise we might link with an installed library 13717 # when we should be linking with a yet-to-be-installed one 13718 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13719 test "$hardcode_minus_L_CXX" != no; then 13720 # Linking always hardcodes the temporary library directory. 13721 hardcode_action_CXX=relink 13722 else 13723 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13724 hardcode_action_CXX=immediate 13725 fi 13726else 13727 # We cannot hardcode anything, or else we can only hardcode existing 13728 # directories. 13729 hardcode_action_CXX=unsupported 13730fi 13731{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13732$as_echo "$hardcode_action_CXX" >&6; } 13733 13734if test "$hardcode_action_CXX" = relink; then 13735 # Fast installation is not supported 13736 enable_fast_install=no 13737elif test "$shlibpath_overrides_runpath" = yes || 13738 test "$enable_shared" = no; then 13739 # Fast installation is not necessary 13740 enable_fast_install=needless 13741fi 13742 13743 13744# The else clause should only fire when bootstrapping the 13745# libtool distribution, otherwise you forgot to ship ltmain.sh 13746# with your package, and you will get complaints that there are 13747# no rules to generate ltmain.sh. 13748if test -f "$ltmain"; then 13749 # See if we are running on zsh, and set the options which allow our commands through 13750 # without removal of \ escapes. 13751 if test -n "${ZSH_VERSION+set}" ; then 13752 setopt NO_GLOB_SUBST 13753 fi 13754 # Now quote all the things that may contain metacharacters while being 13755 # careful not to overquote the AC_SUBSTed values. We take copies of the 13756 # variables and quote the copies for generation of the libtool script. 13757 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13758 SED SHELL STRIP \ 13759 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13760 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13761 deplibs_check_method reload_flag reload_cmds need_locks \ 13762 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13763 lt_cv_sys_global_symbol_to_c_name_address \ 13764 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13765 old_postinstall_cmds old_postuninstall_cmds \ 13766 compiler_CXX \ 13767 CC_CXX \ 13768 LD_CXX \ 13769 lt_prog_compiler_wl_CXX \ 13770 lt_prog_compiler_pic_CXX \ 13771 lt_prog_compiler_static_CXX \ 13772 lt_prog_compiler_no_builtin_flag_CXX \ 13773 export_dynamic_flag_spec_CXX \ 13774 thread_safe_flag_spec_CXX \ 13775 whole_archive_flag_spec_CXX \ 13776 enable_shared_with_static_runtimes_CXX \ 13777 old_archive_cmds_CXX \ 13778 old_archive_from_new_cmds_CXX \ 13779 predep_objects_CXX \ 13780 postdep_objects_CXX \ 13781 predeps_CXX \ 13782 postdeps_CXX \ 13783 compiler_lib_search_path_CXX \ 13784 compiler_lib_search_dirs_CXX \ 13785 archive_cmds_CXX \ 13786 archive_expsym_cmds_CXX \ 13787 postinstall_cmds_CXX \ 13788 postuninstall_cmds_CXX \ 13789 old_archive_from_expsyms_cmds_CXX \ 13790 allow_undefined_flag_CXX \ 13791 no_undefined_flag_CXX \ 13792 export_symbols_cmds_CXX \ 13793 hardcode_libdir_flag_spec_CXX \ 13794 hardcode_libdir_flag_spec_ld_CXX \ 13795 hardcode_libdir_separator_CXX \ 13796 hardcode_automatic_CXX \ 13797 module_cmds_CXX \ 13798 module_expsym_cmds_CXX \ 13799 lt_cv_prog_compiler_c_o_CXX \ 13800 fix_srcfile_path_CXX \ 13801 exclude_expsyms_CXX \ 13802 include_expsyms_CXX; do 13803 13804 case $var in 13805 old_archive_cmds_CXX | \ 13806 old_archive_from_new_cmds_CXX | \ 13807 archive_cmds_CXX | \ 13808 archive_expsym_cmds_CXX | \ 13809 module_cmds_CXX | \ 13810 module_expsym_cmds_CXX | \ 13811 old_archive_from_expsyms_cmds_CXX | \ 13812 export_symbols_cmds_CXX | \ 13813 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13814 postinstall_cmds | postuninstall_cmds | \ 13815 old_postinstall_cmds | old_postuninstall_cmds | \ 13816 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13817 # Double-quote double-evaled strings. 13818 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13819 ;; 13820 *) 13821 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13822 ;; 13823 esac 13824 done 13825 13826 case $lt_echo in 13827 *'\$0 --fallback-echo"') 13828 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13829 ;; 13830 esac 13831 13832cfgfile="$ofile" 13833 13834 cat <<__EOF__ >> "$cfgfile" 13835# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13836 13837# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13838 13839# Shell to use when invoking shell scripts. 13840SHELL=$lt_SHELL 13841 13842# Whether or not to build shared libraries. 13843build_libtool_libs=$enable_shared 13844 13845# Whether or not to build static libraries. 13846build_old_libs=$enable_static 13847 13848# Whether or not to add -lc for building shared libraries. 13849build_libtool_need_lc=$archive_cmds_need_lc_CXX 13850 13851# Whether or not to disallow shared libs when runtime libs are static 13852allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13853 13854# Whether or not to optimize for fast installation. 13855fast_install=$enable_fast_install 13856 13857# The host system. 13858host_alias=$host_alias 13859host=$host 13860host_os=$host_os 13861 13862# The build system. 13863build_alias=$build_alias 13864build=$build 13865build_os=$build_os 13866 13867# An echo program that does not interpret backslashes. 13868echo=$lt_echo 13869 13870# The archiver. 13871AR=$lt_AR 13872AR_FLAGS=$lt_AR_FLAGS 13873 13874# A C compiler. 13875LTCC=$lt_LTCC 13876 13877# LTCC compiler flags. 13878LTCFLAGS=$lt_LTCFLAGS 13879 13880# A language-specific compiler. 13881CC=$lt_compiler_CXX 13882 13883# Is the compiler the GNU C compiler? 13884with_gcc=$GCC_CXX 13885 13886# An ERE matcher. 13887EGREP=$lt_EGREP 13888 13889# The linker used to build libraries. 13890LD=$lt_LD_CXX 13891 13892# Whether we need hard or soft links. 13893LN_S=$lt_LN_S 13894 13895# A BSD-compatible nm program. 13896NM=$lt_NM 13897 13898# A symbol stripping program 13899STRIP=$lt_STRIP 13900 13901# Used to examine libraries when file_magic_cmd begins "file" 13902MAGIC_CMD=$MAGIC_CMD 13903 13904# Used on cygwin: DLL creation program. 13905DLLTOOL="$DLLTOOL" 13906 13907# Used on cygwin: object dumper. 13908OBJDUMP="$OBJDUMP" 13909 13910# Used on cygwin: assembler. 13911AS="$AS" 13912 13913# The name of the directory that contains temporary libtool files. 13914objdir=$objdir 13915 13916# How to create reloadable object files. 13917reload_flag=$lt_reload_flag 13918reload_cmds=$lt_reload_cmds 13919 13920# How to pass a linker flag through the compiler. 13921wl=$lt_lt_prog_compiler_wl_CXX 13922 13923# Object file suffix (normally "o"). 13924objext="$ac_objext" 13925 13926# Old archive suffix (normally "a"). 13927libext="$libext" 13928 13929# Shared library suffix (normally ".so"). 13930shrext_cmds='$shrext_cmds' 13931 13932# Executable file suffix (normally ""). 13933exeext="$exeext" 13934 13935# Additional compiler flags for building library objects. 13936pic_flag=$lt_lt_prog_compiler_pic_CXX 13937pic_mode=$pic_mode 13938 13939# What is the maximum length of a command? 13940max_cmd_len=$lt_cv_sys_max_cmd_len 13941 13942# Does compiler simultaneously support -c and -o options? 13943compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13944 13945# Must we lock files when doing compilation? 13946need_locks=$lt_need_locks 13947 13948# Do we need the lib prefix for modules? 13949need_lib_prefix=$need_lib_prefix 13950 13951# Do we need a version for libraries? 13952need_version=$need_version 13953 13954# Whether dlopen is supported. 13955dlopen_support=$enable_dlopen 13956 13957# Whether dlopen of programs is supported. 13958dlopen_self=$enable_dlopen_self 13959 13960# Whether dlopen of statically linked programs is supported. 13961dlopen_self_static=$enable_dlopen_self_static 13962 13963# Compiler flag to prevent dynamic linking. 13964link_static_flag=$lt_lt_prog_compiler_static_CXX 13965 13966# Compiler flag to turn off builtin functions. 13967no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13968 13969# Compiler flag to allow reflexive dlopens. 13970export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13971 13972# Compiler flag to generate shared objects directly from archives. 13973whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13974 13975# Compiler flag to generate thread-safe objects. 13976thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13977 13978# Library versioning type. 13979version_type=$version_type 13980 13981# Format of library name prefix. 13982libname_spec=$lt_libname_spec 13983 13984# List of archive names. First name is the real one, the rest are links. 13985# The last name is the one that the linker finds with -lNAME. 13986library_names_spec=$lt_library_names_spec 13987 13988# The coded name of the library, if different from the real name. 13989soname_spec=$lt_soname_spec 13990 13991# Commands used to build and install an old-style archive. 13992RANLIB=$lt_RANLIB 13993old_archive_cmds=$lt_old_archive_cmds_CXX 13994old_postinstall_cmds=$lt_old_postinstall_cmds 13995old_postuninstall_cmds=$lt_old_postuninstall_cmds 13996 13997# Create an old-style archive from a shared archive. 13998old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13999 14000# Create a temporary old-style archive to link instead of a shared archive. 14001old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14002 14003# Commands used to build and install a shared archive. 14004archive_cmds=$lt_archive_cmds_CXX 14005archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14006postinstall_cmds=$lt_postinstall_cmds 14007postuninstall_cmds=$lt_postuninstall_cmds 14008 14009# Commands used to build a loadable module (assumed same as above if empty) 14010module_cmds=$lt_module_cmds_CXX 14011module_expsym_cmds=$lt_module_expsym_cmds_CXX 14012 14013# Commands to strip libraries. 14014old_striplib=$lt_old_striplib 14015striplib=$lt_striplib 14016 14017# Dependencies to place before the objects being linked to create a 14018# shared library. 14019predep_objects=$lt_predep_objects_CXX 14020 14021# Dependencies to place after the objects being linked to create a 14022# shared library. 14023postdep_objects=$lt_postdep_objects_CXX 14024 14025# Dependencies to place before the objects being linked to create a 14026# shared library. 14027predeps=$lt_predeps_CXX 14028 14029# Dependencies to place after the objects being linked to create a 14030# shared library. 14031postdeps=$lt_postdeps_CXX 14032 14033# The directories searched by this compiler when creating a shared 14034# library 14035compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 14036 14037# The library search path used internally by the compiler when linking 14038# a shared library. 14039compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14040 14041# Method to check whether dependent libraries are shared objects. 14042deplibs_check_method=$lt_deplibs_check_method 14043 14044# Command to use when deplibs_check_method == file_magic. 14045file_magic_cmd=$lt_file_magic_cmd 14046 14047# Flag that allows shared libraries with undefined symbols to be built. 14048allow_undefined_flag=$lt_allow_undefined_flag_CXX 14049 14050# Flag that forces no undefined symbols. 14051no_undefined_flag=$lt_no_undefined_flag_CXX 14052 14053# Commands used to finish a libtool library installation in a directory. 14054finish_cmds=$lt_finish_cmds 14055 14056# Same as above, but a single script fragment to be evaled but not shown. 14057finish_eval=$lt_finish_eval 14058 14059# Take the output of nm and produce a listing of raw symbols and C names. 14060global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14061 14062# Transform the output of nm in a proper C declaration 14063global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14064 14065# Transform the output of nm in a C name address pair 14066global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14067 14068# This is the shared library runtime path variable. 14069runpath_var=$runpath_var 14070 14071# This is the shared library path variable. 14072shlibpath_var=$shlibpath_var 14073 14074# Is shlibpath searched before the hard-coded library search path? 14075shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14076 14077# How to hardcode a shared library path into an executable. 14078hardcode_action=$hardcode_action_CXX 14079 14080# Whether we should hardcode library paths into libraries. 14081hardcode_into_libs=$hardcode_into_libs 14082 14083# Flag to hardcode \$libdir into a binary during linking. 14084# This must work even if \$libdir does not exist. 14085hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14086 14087# If ld is used when linking, flag to hardcode \$libdir into 14088# a binary during linking. This must work even if \$libdir does 14089# not exist. 14090hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14091 14092# Whether we need a single -rpath flag with a separated argument. 14093hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14094 14095# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14096# resulting binary. 14097hardcode_direct=$hardcode_direct_CXX 14098 14099# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14100# resulting binary. 14101hardcode_minus_L=$hardcode_minus_L_CXX 14102 14103# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14104# the resulting binary. 14105hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14106 14107# Set to yes if building a shared library automatically hardcodes DIR into the library 14108# and all subsequent libraries and executables linked against it. 14109hardcode_automatic=$hardcode_automatic_CXX 14110 14111# Variables whose values should be saved in libtool wrapper scripts and 14112# restored at relink time. 14113variables_saved_for_relink="$variables_saved_for_relink" 14114 14115# Whether libtool must link a program against all its dependency libraries. 14116link_all_deplibs=$link_all_deplibs_CXX 14117 14118# Compile-time system search path for libraries 14119sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14120 14121# Run-time system search path for libraries 14122sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14123 14124# Fix the shell variable \$srcfile for the compiler. 14125fix_srcfile_path=$lt_fix_srcfile_path 14126 14127# Set to yes if exported symbols are required. 14128always_export_symbols=$always_export_symbols_CXX 14129 14130# The commands to list exported symbols. 14131export_symbols_cmds=$lt_export_symbols_cmds_CXX 14132 14133# The commands to extract the exported symbol list from a shared archive. 14134extract_expsyms_cmds=$lt_extract_expsyms_cmds 14135 14136# Symbols that should not be listed in the preloaded symbols. 14137exclude_expsyms=$lt_exclude_expsyms_CXX 14138 14139# Symbols that must always be exported. 14140include_expsyms=$lt_include_expsyms_CXX 14141 14142# ### END LIBTOOL TAG CONFIG: $tagname 14143 14144__EOF__ 14145 14146 14147else 14148 # If there is no Makefile yet, we rely on a make rule to execute 14149 # `config.status --recheck' to rerun these tests and create the 14150 # libtool script then. 14151 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14152 if test -f "$ltmain_in"; then 14153 test -f Makefile && make "$ltmain" 14154 fi 14155fi 14156 14157 14158ac_ext=c 14159ac_cpp='$CPP $CPPFLAGS' 14160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14162ac_compiler_gnu=$ac_cv_c_compiler_gnu 14163 14164CC=$lt_save_CC 14165LDCXX=$LD 14166LD=$lt_save_LD 14167GCC=$lt_save_GCC 14168with_gnu_ldcxx=$with_gnu_ld 14169with_gnu_ld=$lt_save_with_gnu_ld 14170lt_cv_path_LDCXX=$lt_cv_path_LD 14171lt_cv_path_LD=$lt_save_path_LD 14172lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14173lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14174 14175 else 14176 tagname="" 14177 fi 14178 ;; 14179 14180 F77) 14181 if test -n "$F77" && test "X$F77" != "Xno"; then 14182 14183ac_ext=f 14184ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14185ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14186ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14187 14188 14189archive_cmds_need_lc_F77=no 14190allow_undefined_flag_F77= 14191always_export_symbols_F77=no 14192archive_expsym_cmds_F77= 14193export_dynamic_flag_spec_F77= 14194hardcode_direct_F77=no 14195hardcode_libdir_flag_spec_F77= 14196hardcode_libdir_flag_spec_ld_F77= 14197hardcode_libdir_separator_F77= 14198hardcode_minus_L_F77=no 14199hardcode_automatic_F77=no 14200module_cmds_F77= 14201module_expsym_cmds_F77= 14202link_all_deplibs_F77=unknown 14203old_archive_cmds_F77=$old_archive_cmds 14204no_undefined_flag_F77= 14205whole_archive_flag_spec_F77= 14206enable_shared_with_static_runtimes_F77=no 14207 14208# Source file extension for f77 test sources. 14209ac_ext=f 14210 14211# Object file extension for compiled f77 test sources. 14212objext=o 14213objext_F77=$objext 14214 14215# Code to be used in simple compile tests 14216lt_simple_compile_test_code="\ 14217 subroutine t 14218 return 14219 end 14220" 14221 14222# Code to be used in simple link tests 14223lt_simple_link_test_code="\ 14224 program t 14225 end 14226" 14227 14228# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14229 14230# If no C compiler was specified, use CC. 14231LTCC=${LTCC-"$CC"} 14232 14233# If no C compiler flags were specified, use CFLAGS. 14234LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14235 14236# Allow CC to be a program name with arguments. 14237compiler=$CC 14238 14239 14240# save warnings/boilerplate of simple test code 14241ac_outfile=conftest.$ac_objext 14242echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14243eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14244_lt_compiler_boilerplate=`cat conftest.err` 14245$rm conftest* 14246 14247ac_outfile=conftest.$ac_objext 14248echo "$lt_simple_link_test_code" >conftest.$ac_ext 14249eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14250_lt_linker_boilerplate=`cat conftest.err` 14251$rm -r conftest* 14252 14253 14254# Allow CC to be a program name with arguments. 14255lt_save_CC="$CC" 14256CC=${F77-"f77"} 14257compiler=$CC 14258compiler_F77=$CC 14259for cc_temp in $compiler""; do 14260 case $cc_temp in 14261 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14262 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14263 \-*) ;; 14264 *) break;; 14265 esac 14266done 14267cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14268 14269 14270{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14271$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14272{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 14273$as_echo "$can_build_shared" >&6; } 14274 14275{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14276$as_echo_n "checking whether to build shared libraries... " >&6; } 14277test "$can_build_shared" = "no" && enable_shared=no 14278 14279# On AIX, shared libraries and static libraries use the same namespace, and 14280# are all built from PIC. 14281case $host_os in 14282aix3*) 14283 test "$enable_shared" = yes && enable_static=no 14284 if test -n "$RANLIB"; then 14285 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14286 postinstall_cmds='$RANLIB $lib' 14287 fi 14288 ;; 14289aix[4-9]*) 14290 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14291 test "$enable_shared" = yes && enable_static=no 14292 fi 14293 ;; 14294esac 14295{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 14296$as_echo "$enable_shared" >&6; } 14297 14298{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14299$as_echo_n "checking whether to build static libraries... " >&6; } 14300# Make sure either enable_shared or enable_static is yes. 14301test "$enable_shared" = yes || enable_static=yes 14302{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 14303$as_echo "$enable_static" >&6; } 14304 14305GCC_F77="$G77" 14306LD_F77="$LD" 14307 14308lt_prog_compiler_wl_F77= 14309lt_prog_compiler_pic_F77= 14310lt_prog_compiler_static_F77= 14311 14312{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14313$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14314 14315 if test "$GCC" = yes; then 14316 lt_prog_compiler_wl_F77='-Wl,' 14317 lt_prog_compiler_static_F77='-static' 14318 14319 case $host_os in 14320 aix*) 14321 # All AIX code is PIC. 14322 if test "$host_cpu" = ia64; then 14323 # AIX 5 now supports IA64 processor 14324 lt_prog_compiler_static_F77='-Bstatic' 14325 fi 14326 ;; 14327 14328 amigaos*) 14329 # FIXME: we need at least 68020 code to build shared libraries, but 14330 # adding the `-m68020' flag to GCC prevents building anything better, 14331 # like `-m68040'. 14332 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14333 ;; 14334 14335 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14336 # PIC is the default for these OSes. 14337 ;; 14338 14339 mingw* | cygwin* | pw32* | os2*) 14340 # This hack is so that the source file can tell whether it is being 14341 # built for inclusion in a dll (and should export symbols for example). 14342 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14343 # (--disable-auto-import) libraries 14344 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14345 ;; 14346 14347 darwin* | rhapsody*) 14348 # PIC is the default on this platform 14349 # Common symbols not allowed in MH_DYLIB files 14350 lt_prog_compiler_pic_F77='-fno-common' 14351 ;; 14352 14353 interix[3-9]*) 14354 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14355 # Instead, we relocate shared libraries at runtime. 14356 ;; 14357 14358 msdosdjgpp*) 14359 # Just because we use GCC doesn't mean we suddenly get shared libraries 14360 # on systems that don't support them. 14361 lt_prog_compiler_can_build_shared_F77=no 14362 enable_shared=no 14363 ;; 14364 14365 sysv4*MP*) 14366 if test -d /usr/nec; then 14367 lt_prog_compiler_pic_F77=-Kconform_pic 14368 fi 14369 ;; 14370 14371 hpux*) 14372 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14373 # not for PA HP-UX. 14374 case $host_cpu in 14375 hppa*64*|ia64*) 14376 # +Z the default 14377 ;; 14378 *) 14379 lt_prog_compiler_pic_F77='-fPIC' 14380 ;; 14381 esac 14382 ;; 14383 14384 *) 14385 lt_prog_compiler_pic_F77='-fPIC' 14386 ;; 14387 esac 14388 else 14389 # PORTME Check for flag to pass linker flags through the system compiler. 14390 case $host_os in 14391 aix*) 14392 lt_prog_compiler_wl_F77='-Wl,' 14393 if test "$host_cpu" = ia64; then 14394 # AIX 5 now supports IA64 processor 14395 lt_prog_compiler_static_F77='-Bstatic' 14396 else 14397 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14398 fi 14399 ;; 14400 darwin*) 14401 # PIC is the default on this platform 14402 # Common symbols not allowed in MH_DYLIB files 14403 case $cc_basename in 14404 xlc*) 14405 lt_prog_compiler_pic_F77='-qnocommon' 14406 lt_prog_compiler_wl_F77='-Wl,' 14407 ;; 14408 esac 14409 ;; 14410 14411 mingw* | cygwin* | pw32* | os2*) 14412 # This hack is so that the source file can tell whether it is being 14413 # built for inclusion in a dll (and should export symbols for example). 14414 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14415 ;; 14416 14417 hpux9* | hpux10* | hpux11*) 14418 lt_prog_compiler_wl_F77='-Wl,' 14419 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14420 # not for PA HP-UX. 14421 case $host_cpu in 14422 hppa*64*|ia64*) 14423 # +Z the default 14424 ;; 14425 *) 14426 lt_prog_compiler_pic_F77='+Z' 14427 ;; 14428 esac 14429 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14430 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14431 ;; 14432 14433 irix5* | irix6* | nonstopux*) 14434 lt_prog_compiler_wl_F77='-Wl,' 14435 # PIC (with -KPIC) is the default. 14436 lt_prog_compiler_static_F77='-non_shared' 14437 ;; 14438 14439 newsos6) 14440 lt_prog_compiler_pic_F77='-KPIC' 14441 lt_prog_compiler_static_F77='-Bstatic' 14442 ;; 14443 14444 linux* | k*bsd*-gnu) 14445 case $cc_basename in 14446 icc* | ecc*) 14447 lt_prog_compiler_wl_F77='-Wl,' 14448 lt_prog_compiler_pic_F77='-KPIC' 14449 lt_prog_compiler_static_F77='-static' 14450 ;; 14451 pgcc* | pgf77* | pgf90* | pgf95*) 14452 # Portland Group compilers (*not* the Pentium gcc compiler, 14453 # which looks to be a dead project) 14454 lt_prog_compiler_wl_F77='-Wl,' 14455 lt_prog_compiler_pic_F77='-fpic' 14456 lt_prog_compiler_static_F77='-Bstatic' 14457 ;; 14458 ccc*) 14459 lt_prog_compiler_wl_F77='-Wl,' 14460 # All Alpha code is PIC. 14461 lt_prog_compiler_static_F77='-non_shared' 14462 ;; 14463 *) 14464 case `$CC -V 2>&1 | sed 5q` in 14465 *Sun\ C*) 14466 # Sun C 5.9 14467 lt_prog_compiler_pic_F77='-KPIC' 14468 lt_prog_compiler_static_F77='-Bstatic' 14469 lt_prog_compiler_wl_F77='-Wl,' 14470 ;; 14471 *Sun\ F*) 14472 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14473 lt_prog_compiler_pic_F77='-KPIC' 14474 lt_prog_compiler_static_F77='-Bstatic' 14475 lt_prog_compiler_wl_F77='' 14476 ;; 14477 esac 14478 ;; 14479 esac 14480 ;; 14481 14482 osf3* | osf4* | osf5*) 14483 lt_prog_compiler_wl_F77='-Wl,' 14484 # All OSF/1 code is PIC. 14485 lt_prog_compiler_static_F77='-non_shared' 14486 ;; 14487 14488 rdos*) 14489 lt_prog_compiler_static_F77='-non_shared' 14490 ;; 14491 14492 solaris*) 14493 lt_prog_compiler_pic_F77='-KPIC' 14494 lt_prog_compiler_static_F77='-Bstatic' 14495 case $cc_basename in 14496 f77* | f90* | f95*) 14497 lt_prog_compiler_wl_F77='-Qoption ld ';; 14498 *) 14499 lt_prog_compiler_wl_F77='-Wl,';; 14500 esac 14501 ;; 14502 14503 sunos4*) 14504 lt_prog_compiler_wl_F77='-Qoption ld ' 14505 lt_prog_compiler_pic_F77='-PIC' 14506 lt_prog_compiler_static_F77='-Bstatic' 14507 ;; 14508 14509 sysv4 | sysv4.2uw2* | sysv4.3*) 14510 lt_prog_compiler_wl_F77='-Wl,' 14511 lt_prog_compiler_pic_F77='-KPIC' 14512 lt_prog_compiler_static_F77='-Bstatic' 14513 ;; 14514 14515 sysv4*MP*) 14516 if test -d /usr/nec ;then 14517 lt_prog_compiler_pic_F77='-Kconform_pic' 14518 lt_prog_compiler_static_F77='-Bstatic' 14519 fi 14520 ;; 14521 14522 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14523 lt_prog_compiler_wl_F77='-Wl,' 14524 lt_prog_compiler_pic_F77='-KPIC' 14525 lt_prog_compiler_static_F77='-Bstatic' 14526 ;; 14527 14528 unicos*) 14529 lt_prog_compiler_wl_F77='-Wl,' 14530 lt_prog_compiler_can_build_shared_F77=no 14531 ;; 14532 14533 uts4*) 14534 lt_prog_compiler_pic_F77='-pic' 14535 lt_prog_compiler_static_F77='-Bstatic' 14536 ;; 14537 14538 *) 14539 lt_prog_compiler_can_build_shared_F77=no 14540 ;; 14541 esac 14542 fi 14543 14544{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14545$as_echo "$lt_prog_compiler_pic_F77" >&6; } 14546 14547# 14548# Check to make sure the PIC flag actually works. 14549# 14550if test -n "$lt_prog_compiler_pic_F77"; then 14551 14552{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14553$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 14554if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 14555 $as_echo_n "(cached) " >&6 14556else 14557 lt_cv_prog_compiler_pic_works_F77=no 14558 ac_outfile=conftest.$ac_objext 14559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14560 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14561 # Insert the option either (1) after the last *FLAGS variable, or 14562 # (2) before a word containing "conftest.", or (3) at the end. 14563 # Note that $ac_compile itself does not contain backslashes and begins 14564 # with a dollar sign (not a hyphen), so the echo should work correctly. 14565 # The option is referenced via a variable to avoid confusing sed. 14566 lt_compile=`echo "$ac_compile" | $SED \ 14567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14569 -e 's:$: $lt_compiler_flag:'` 14570 (eval echo "\"\$as_me:14570: $lt_compile\"" >&5) 14571 (eval "$lt_compile" 2>conftest.err) 14572 ac_status=$? 14573 cat conftest.err >&5 14574 echo "$as_me:14574: \$? = $ac_status" >&5 14575 if (exit $ac_status) && test -s "$ac_outfile"; then 14576 # The compiler can only warn and ignore the option if not recognized 14577 # So say no if there are warnings other than the usual output. 14578 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14579 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14580 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14581 lt_cv_prog_compiler_pic_works_F77=yes 14582 fi 14583 fi 14584 $rm conftest* 14585 14586fi 14587{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 14588$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 14589 14590if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 14591 case $lt_prog_compiler_pic_F77 in 14592 "" | " "*) ;; 14593 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14594 esac 14595else 14596 lt_prog_compiler_pic_F77= 14597 lt_prog_compiler_can_build_shared_F77=no 14598fi 14599 14600fi 14601case $host_os in 14602 # For platforms which do not support PIC, -DPIC is meaningless: 14603 *djgpp*) 14604 lt_prog_compiler_pic_F77= 14605 ;; 14606 *) 14607 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14608 ;; 14609esac 14610 14611# 14612# Check to make sure the static flag actually works. 14613# 14614wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14615{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14616$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14617if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 14618 $as_echo_n "(cached) " >&6 14619else 14620 lt_cv_prog_compiler_static_works_F77=no 14621 save_LDFLAGS="$LDFLAGS" 14622 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14623 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14624 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14625 # The linker can only warn and ignore the option if not recognized 14626 # So say no if there are warnings 14627 if test -s conftest.err; then 14628 # Append any errors to the config.log. 14629 cat conftest.err 1>&5 14630 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14631 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14632 if diff conftest.exp conftest.er2 >/dev/null; then 14633 lt_cv_prog_compiler_static_works_F77=yes 14634 fi 14635 else 14636 lt_cv_prog_compiler_static_works_F77=yes 14637 fi 14638 fi 14639 $rm -r conftest* 14640 LDFLAGS="$save_LDFLAGS" 14641 14642fi 14643{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 14644$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 14645 14646if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 14647 : 14648else 14649 lt_prog_compiler_static_F77= 14650fi 14651 14652 14653{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14654$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14655if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14656 $as_echo_n "(cached) " >&6 14657else 14658 lt_cv_prog_compiler_c_o_F77=no 14659 $rm -r conftest 2>/dev/null 14660 mkdir conftest 14661 cd conftest 14662 mkdir out 14663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14664 14665 lt_compiler_flag="-o out/conftest2.$ac_objext" 14666 # Insert the option either (1) after the last *FLAGS variable, or 14667 # (2) before a word containing "conftest.", or (3) at the end. 14668 # Note that $ac_compile itself does not contain backslashes and begins 14669 # with a dollar sign (not a hyphen), so the echo should work correctly. 14670 lt_compile=`echo "$ac_compile" | $SED \ 14671 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14672 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14673 -e 's:$: $lt_compiler_flag:'` 14674 (eval echo "\"\$as_me:14674: $lt_compile\"" >&5) 14675 (eval "$lt_compile" 2>out/conftest.err) 14676 ac_status=$? 14677 cat out/conftest.err >&5 14678 echo "$as_me:14678: \$? = $ac_status" >&5 14679 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14680 then 14681 # The compiler can only warn and ignore the option if not recognized 14682 # So say no if there are warnings 14683 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14684 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14685 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14686 lt_cv_prog_compiler_c_o_F77=yes 14687 fi 14688 fi 14689 chmod u+w . 2>&5 14690 $rm conftest* 14691 # SGI C++ compiler will create directory out/ii_files/ for 14692 # template instantiation 14693 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14694 $rm out/* && rmdir out 14695 cd .. 14696 rmdir conftest 14697 $rm conftest* 14698 14699fi 14700{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14701$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 14702 14703 14704hard_links="nottested" 14705if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14706 # do not overwrite the value of need_locks provided by the user 14707 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14708$as_echo_n "checking if we can lock with hard links... " >&6; } 14709 hard_links=yes 14710 $rm conftest* 14711 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14712 touch conftest.a 14713 ln conftest.a conftest.b 2>&5 || hard_links=no 14714 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14715 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 14716$as_echo "$hard_links" >&6; } 14717 if test "$hard_links" = no; then 14718 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14719$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14720 need_locks=warn 14721 fi 14722else 14723 need_locks=no 14724fi 14725 14726{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14727$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14728 14729 runpath_var= 14730 allow_undefined_flag_F77= 14731 enable_shared_with_static_runtimes_F77=no 14732 archive_cmds_F77= 14733 archive_expsym_cmds_F77= 14734 old_archive_From_new_cmds_F77= 14735 old_archive_from_expsyms_cmds_F77= 14736 export_dynamic_flag_spec_F77= 14737 whole_archive_flag_spec_F77= 14738 thread_safe_flag_spec_F77= 14739 hardcode_libdir_flag_spec_F77= 14740 hardcode_libdir_flag_spec_ld_F77= 14741 hardcode_libdir_separator_F77= 14742 hardcode_direct_F77=no 14743 hardcode_minus_L_F77=no 14744 hardcode_shlibpath_var_F77=unsupported 14745 link_all_deplibs_F77=unknown 14746 hardcode_automatic_F77=no 14747 module_cmds_F77= 14748 module_expsym_cmds_F77= 14749 always_export_symbols_F77=no 14750 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14751 # include_expsyms should be a list of space-separated symbols to be *always* 14752 # included in the symbol list 14753 include_expsyms_F77= 14754 # exclude_expsyms can be an extended regexp of symbols to exclude 14755 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14756 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14757 # as well as any symbol that contains `d'. 14758 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14759 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14760 # platforms (ab)use it in PIC code, but their linkers get confused if 14761 # the symbol is explicitly referenced. Since portable code cannot 14762 # rely on this symbol name, it's probably fine to never include it in 14763 # preloaded symbol tables. 14764 # Exclude shared library initialization/finalization symbols. 14765 extract_expsyms_cmds= 14766 # Just being paranoid about ensuring that cc_basename is set. 14767 for cc_temp in $compiler""; do 14768 case $cc_temp in 14769 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14770 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14771 \-*) ;; 14772 *) break;; 14773 esac 14774done 14775cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14776 14777 case $host_os in 14778 cygwin* | mingw* | pw32*) 14779 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14780 # When not using gcc, we currently assume that we are using 14781 # Microsoft Visual C++. 14782 if test "$GCC" != yes; then 14783 with_gnu_ld=no 14784 fi 14785 ;; 14786 interix*) 14787 # we just hope/assume this is gcc and not c89 (= MSVC++) 14788 with_gnu_ld=yes 14789 ;; 14790 openbsd*) 14791 with_gnu_ld=no 14792 ;; 14793 esac 14794 14795 ld_shlibs_F77=yes 14796 if test "$with_gnu_ld" = yes; then 14797 # If archive_cmds runs LD, not CC, wlarc should be empty 14798 wlarc='${wl}' 14799 14800 # Set some defaults for GNU ld with shared library support. These 14801 # are reset later if shared libraries are not supported. Putting them 14802 # here allows them to be overridden if necessary. 14803 runpath_var=LD_RUN_PATH 14804 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14805 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14806 # ancient GNU ld didn't support --whole-archive et. al. 14807 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14808 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14809 else 14810 whole_archive_flag_spec_F77= 14811 fi 14812 supports_anon_versioning=no 14813 case `$LD -v 2>/dev/null` in 14814 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14815 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14816 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14817 *\ 2.11.*) ;; # other 2.11 versions 14818 *) supports_anon_versioning=yes ;; 14819 esac 14820 14821 # See if GNU ld supports shared libraries. 14822 case $host_os in 14823 aix[3-9]*) 14824 # On AIX/PPC, the GNU linker is very broken 14825 if test "$host_cpu" != ia64; then 14826 ld_shlibs_F77=no 14827 cat <<EOF 1>&2 14828 14829*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14830*** to be unable to reliably create shared libraries on AIX. 14831*** Therefore, libtool is disabling shared libraries support. If you 14832*** really care for shared libraries, you may want to modify your PATH 14833*** so that a non-GNU linker is found, and then restart. 14834 14835EOF 14836 fi 14837 ;; 14838 14839 amigaos*) 14840 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)' 14841 hardcode_libdir_flag_spec_F77='-L$libdir' 14842 hardcode_minus_L_F77=yes 14843 14844 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14845 # that the semantics of dynamic libraries on AmigaOS, at least up 14846 # to version 4, is to share data among multiple programs linked 14847 # with the same dynamic library. Since this doesn't match the 14848 # behavior of shared libraries on other platforms, we can't use 14849 # them. 14850 ld_shlibs_F77=no 14851 ;; 14852 14853 beos*) 14854 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14855 allow_undefined_flag_F77=unsupported 14856 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14857 # support --undefined. This deserves some investigation. FIXME 14858 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14859 else 14860 ld_shlibs_F77=no 14861 fi 14862 ;; 14863 14864 cygwin* | mingw* | pw32*) 14865 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14866 # as there is no search path for DLLs. 14867 hardcode_libdir_flag_spec_F77='-L$libdir' 14868 allow_undefined_flag_F77=unsupported 14869 always_export_symbols_F77=no 14870 enable_shared_with_static_runtimes_F77=yes 14871 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14872 14873 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14874 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14875 # If the export-symbols file already is a .def file (1st line 14876 # is EXPORTS), use it as is; otherwise, prepend... 14877 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14878 cp $export_symbols $output_objdir/$soname.def; 14879 else 14880 echo EXPORTS > $output_objdir/$soname.def; 14881 cat $export_symbols >> $output_objdir/$soname.def; 14882 fi~ 14883 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14884 else 14885 ld_shlibs_F77=no 14886 fi 14887 ;; 14888 14889 interix[3-9]*) 14890 hardcode_direct_F77=no 14891 hardcode_shlibpath_var_F77=no 14892 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14893 export_dynamic_flag_spec_F77='${wl}-E' 14894 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14895 # Instead, shared libraries are loaded at an image base (0x10000000 by 14896 # default) and relocated if they conflict, which is a slow very memory 14897 # consuming and fragmenting process. To avoid this, we pick a random, 14898 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14899 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14900 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' 14901 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' 14902 ;; 14903 14904 gnu* | linux* | k*bsd*-gnu) 14905 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14906 tmp_addflag= 14907 case $cc_basename,$host_cpu in 14908 pgcc*) # Portland Group C compiler 14909 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' 14910 tmp_addflag=' $pic_flag' 14911 ;; 14912 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14913 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' 14914 tmp_addflag=' $pic_flag -Mnomain' ;; 14915 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14916 tmp_addflag=' -i_dynamic' ;; 14917 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14918 tmp_addflag=' -i_dynamic -nofor_main' ;; 14919 ifc* | ifort*) # Intel Fortran compiler 14920 tmp_addflag=' -nofor_main' ;; 14921 esac 14922 case `$CC -V 2>&1 | sed 5q` in 14923 *Sun\ C*) # Sun C 5.9 14924 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' 14925 tmp_sharedflag='-G' ;; 14926 *Sun\ F*) # Sun Fortran 8.3 14927 tmp_sharedflag='-G' ;; 14928 *) 14929 tmp_sharedflag='-shared' ;; 14930 esac 14931 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14932 14933 if test $supports_anon_versioning = yes; then 14934 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14935 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14936 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14937 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14938 fi 14939 else 14940 ld_shlibs_F77=no 14941 fi 14942 ;; 14943 14944 netbsd*) 14945 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14946 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14947 wlarc= 14948 else 14949 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14950 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14951 fi 14952 ;; 14953 14954 solaris*) 14955 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14956 ld_shlibs_F77=no 14957 cat <<EOF 1>&2 14958 14959*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14960*** create shared libraries on Solaris systems. Therefore, libtool 14961*** is disabling shared libraries support. We urge you to upgrade GNU 14962*** binutils to release 2.9.1 or newer. Another option is to modify 14963*** your PATH or compiler configuration so that the native linker is 14964*** used, and then restart. 14965 14966EOF 14967 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14968 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14969 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14970 else 14971 ld_shlibs_F77=no 14972 fi 14973 ;; 14974 14975 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14976 case `$LD -v 2>&1` in 14977 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14978 ld_shlibs_F77=no 14979 cat <<_LT_EOF 1>&2 14980 14981*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14982*** reliably create shared libraries on SCO systems. Therefore, libtool 14983*** is disabling shared libraries support. We urge you to upgrade GNU 14984*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14985*** your PATH or compiler configuration so that the native linker is 14986*** used, and then restart. 14987 14988_LT_EOF 14989 ;; 14990 *) 14991 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14992 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14993 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14994 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14995 else 14996 ld_shlibs_F77=no 14997 fi 14998 ;; 14999 esac 15000 ;; 15001 15002 sunos4*) 15003 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15004 wlarc= 15005 hardcode_direct_F77=yes 15006 hardcode_shlibpath_var_F77=no 15007 ;; 15008 15009 *) 15010 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15011 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15012 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15013 else 15014 ld_shlibs_F77=no 15015 fi 15016 ;; 15017 esac 15018 15019 if test "$ld_shlibs_F77" = no; then 15020 runpath_var= 15021 hardcode_libdir_flag_spec_F77= 15022 export_dynamic_flag_spec_F77= 15023 whole_archive_flag_spec_F77= 15024 fi 15025 else 15026 # PORTME fill in a description of your system's linker (not GNU ld) 15027 case $host_os in 15028 aix3*) 15029 allow_undefined_flag_F77=unsupported 15030 always_export_symbols_F77=yes 15031 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' 15032 # Note: this linker hardcodes the directories in LIBPATH if there 15033 # are no directories specified by -L. 15034 hardcode_minus_L_F77=yes 15035 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15036 # Neither direct hardcoding nor static linking is supported with a 15037 # broken collect2. 15038 hardcode_direct_F77=unsupported 15039 fi 15040 ;; 15041 15042 aix[4-9]*) 15043 if test "$host_cpu" = ia64; then 15044 # On IA64, the linker does run time linking by default, so we don't 15045 # have to do anything special. 15046 aix_use_runtimelinking=no 15047 exp_sym_flag='-Bexport' 15048 no_entry_flag="" 15049 else 15050 # If we're using GNU nm, then we don't want the "-C" option. 15051 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15052 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15053 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' 15054 else 15055 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' 15056 fi 15057 aix_use_runtimelinking=no 15058 15059 # Test if we are trying to use run time linking or normal 15060 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15061 # need to do runtime linking. 15062 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15063 for ld_flag in $LDFLAGS; do 15064 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15065 aix_use_runtimelinking=yes 15066 break 15067 fi 15068 done 15069 ;; 15070 esac 15071 15072 exp_sym_flag='-bexport' 15073 no_entry_flag='-bnoentry' 15074 fi 15075 15076 # When large executables or shared objects are built, AIX ld can 15077 # have problems creating the table of contents. If linking a library 15078 # or program results in "error TOC overflow" add -mminimal-toc to 15079 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15080 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15081 15082 archive_cmds_F77='' 15083 hardcode_direct_F77=yes 15084 hardcode_libdir_separator_F77=':' 15085 link_all_deplibs_F77=yes 15086 15087 if test "$GCC" = yes; then 15088 case $host_os in aix4.[012]|aix4.[012].*) 15089 # We only want to do this on AIX 4.2 and lower, the check 15090 # below for broken collect2 doesn't work under 4.3+ 15091 collect2name=`${CC} -print-prog-name=collect2` 15092 if test -f "$collect2name" && \ 15093 strings "$collect2name" | grep resolve_lib_name >/dev/null 15094 then 15095 # We have reworked collect2 15096 : 15097 else 15098 # We have old collect2 15099 hardcode_direct_F77=unsupported 15100 # It fails to find uninstalled libraries when the uninstalled 15101 # path is not listed in the libpath. Setting hardcode_minus_L 15102 # to unsupported forces relinking 15103 hardcode_minus_L_F77=yes 15104 hardcode_libdir_flag_spec_F77='-L$libdir' 15105 hardcode_libdir_separator_F77= 15106 fi 15107 ;; 15108 esac 15109 shared_flag='-shared' 15110 if test "$aix_use_runtimelinking" = yes; then 15111 shared_flag="$shared_flag "'${wl}-G' 15112 fi 15113 else 15114 # not using gcc 15115 if test "$host_cpu" = ia64; then 15116 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15117 # chokes on -Wl,-G. The following line is correct: 15118 shared_flag='-G' 15119 else 15120 if test "$aix_use_runtimelinking" = yes; then 15121 shared_flag='${wl}-G' 15122 else 15123 shared_flag='${wl}-bM:SRE' 15124 fi 15125 fi 15126 fi 15127 15128 # It seems that -bexpall does not export symbols beginning with 15129 # underscore (_), so it is better to generate a list of symbols to export. 15130 always_export_symbols_F77=yes 15131 if test "$aix_use_runtimelinking" = yes; then 15132 # Warning - without using the other runtime loading flags (-brtl), 15133 # -berok will link without error, but may produce a broken library. 15134 allow_undefined_flag_F77='-berok' 15135 # Determine the default libpath from the value encoded in an empty executable. 15136 cat >conftest.$ac_ext <<_ACEOF 15137 program main 15138 15139 end 15140_ACEOF 15141rm -f conftest.$ac_objext conftest$ac_exeext 15142if { (ac_try="$ac_link" 15143case "(($ac_try" in 15144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15145 *) ac_try_echo=$ac_try;; 15146esac 15147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15148$as_echo "$ac_try_echo") >&5 15149 (eval "$ac_link") 2>conftest.er1 15150 ac_status=$? 15151 grep -v '^ *+' conftest.er1 >conftest.err 15152 rm -f conftest.er1 15153 cat conftest.err >&5 15154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15155 (exit $ac_status); } && { 15156 test -z "$ac_f77_werror_flag" || 15157 test ! -s conftest.err 15158 } && test -s conftest$ac_exeext && { 15159 test "$cross_compiling" = yes || 15160 $as_test_x conftest$ac_exeext 15161 }; then 15162 15163lt_aix_libpath_sed=' 15164 /Import File Strings/,/^$/ { 15165 /^0/ { 15166 s/^0 *\(.*\)$/\1/ 15167 p 15168 } 15169 }' 15170aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15171# Check for a 64-bit object if we didn't find anything. 15172if test -z "$aix_libpath"; then 15173 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15174fi 15175else 15176 $as_echo "$as_me: failed program was:" >&5 15177sed 's/^/| /' conftest.$ac_ext >&5 15178 15179 15180fi 15181 15182rm -rf conftest.dSYM 15183rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15184 conftest$ac_exeext conftest.$ac_ext 15185if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15186 15187 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15188 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" 15189 else 15190 if test "$host_cpu" = ia64; then 15191 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15192 allow_undefined_flag_F77="-z nodefs" 15193 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" 15194 else 15195 # Determine the default libpath from the value encoded in an empty executable. 15196 cat >conftest.$ac_ext <<_ACEOF 15197 program main 15198 15199 end 15200_ACEOF 15201rm -f conftest.$ac_objext conftest$ac_exeext 15202if { (ac_try="$ac_link" 15203case "(($ac_try" in 15204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15205 *) ac_try_echo=$ac_try;; 15206esac 15207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15208$as_echo "$ac_try_echo") >&5 15209 (eval "$ac_link") 2>conftest.er1 15210 ac_status=$? 15211 grep -v '^ *+' conftest.er1 >conftest.err 15212 rm -f conftest.er1 15213 cat conftest.err >&5 15214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15215 (exit $ac_status); } && { 15216 test -z "$ac_f77_werror_flag" || 15217 test ! -s conftest.err 15218 } && test -s conftest$ac_exeext && { 15219 test "$cross_compiling" = yes || 15220 $as_test_x conftest$ac_exeext 15221 }; then 15222 15223lt_aix_libpath_sed=' 15224 /Import File Strings/,/^$/ { 15225 /^0/ { 15226 s/^0 *\(.*\)$/\1/ 15227 p 15228 } 15229 }' 15230aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15231# Check for a 64-bit object if we didn't find anything. 15232if test -z "$aix_libpath"; then 15233 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15234fi 15235else 15236 $as_echo "$as_me: failed program was:" >&5 15237sed 's/^/| /' conftest.$ac_ext >&5 15238 15239 15240fi 15241 15242rm -rf conftest.dSYM 15243rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15244 conftest$ac_exeext conftest.$ac_ext 15245if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15246 15247 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15248 # Warning - without using the other run time loading flags, 15249 # -berok will link without error, but may produce a broken library. 15250 no_undefined_flag_F77=' ${wl}-bernotok' 15251 allow_undefined_flag_F77=' ${wl}-berok' 15252 # Exported symbols can be pulled into shared objects from archives 15253 whole_archive_flag_spec_F77='$convenience' 15254 archive_cmds_need_lc_F77=yes 15255 # This is similar to how AIX traditionally builds its shared libraries. 15256 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' 15257 fi 15258 fi 15259 ;; 15260 15261 amigaos*) 15262 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)' 15263 hardcode_libdir_flag_spec_F77='-L$libdir' 15264 hardcode_minus_L_F77=yes 15265 # see comment about different semantics on the GNU ld section 15266 ld_shlibs_F77=no 15267 ;; 15268 15269 bsdi[45]*) 15270 export_dynamic_flag_spec_F77=-rdynamic 15271 ;; 15272 15273 cygwin* | mingw* | pw32*) 15274 # When not using gcc, we currently assume that we are using 15275 # Microsoft Visual C++. 15276 # hardcode_libdir_flag_spec is actually meaningless, as there is 15277 # no search path for DLLs. 15278 hardcode_libdir_flag_spec_F77=' ' 15279 allow_undefined_flag_F77=unsupported 15280 # Tell ltmain to make .lib files, not .a files. 15281 libext=lib 15282 # Tell ltmain to make .dll files, not .so files. 15283 shrext_cmds=".dll" 15284 # FIXME: Setting linknames here is a bad hack. 15285 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15286 # The linker will automatically build a .lib file if we build a DLL. 15287 old_archive_From_new_cmds_F77='true' 15288 # FIXME: Should let the user specify the lib program. 15289 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15290 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15291 enable_shared_with_static_runtimes_F77=yes 15292 ;; 15293 15294 darwin* | rhapsody*) 15295 case $host_os in 15296 rhapsody* | darwin1.[012]) 15297 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15298 ;; 15299 *) # Darwin 1.3 on 15300 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15301 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15302 else 15303 case ${MACOSX_DEPLOYMENT_TARGET} in 15304 10.[012]) 15305 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15306 ;; 15307 10.*) 15308 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15309 ;; 15310 esac 15311 fi 15312 ;; 15313 esac 15314 archive_cmds_need_lc_F77=no 15315 hardcode_direct_F77=no 15316 hardcode_automatic_F77=yes 15317 hardcode_shlibpath_var_F77=unsupported 15318 whole_archive_flag_spec_F77='' 15319 link_all_deplibs_F77=yes 15320 if test "$GCC" = yes ; then 15321 output_verbose_link_cmd='echo' 15322 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}" 15323 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15324 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}" 15325 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}" 15326 else 15327 case $cc_basename in 15328 xlc*) 15329 output_verbose_link_cmd='echo' 15330 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15331 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15332 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15333 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}' 15334 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}' 15335 ;; 15336 *) 15337 ld_shlibs_F77=no 15338 ;; 15339 esac 15340 fi 15341 ;; 15342 15343 dgux*) 15344 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15345 hardcode_libdir_flag_spec_F77='-L$libdir' 15346 hardcode_shlibpath_var_F77=no 15347 ;; 15348 15349 freebsd1*) 15350 ld_shlibs_F77=no 15351 ;; 15352 15353 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15354 # support. Future versions do this automatically, but an explicit c++rt0.o 15355 # does not break anything, and helps significantly (at the cost of a little 15356 # extra space). 15357 freebsd2.2*) 15358 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15359 hardcode_libdir_flag_spec_F77='-R$libdir' 15360 hardcode_direct_F77=yes 15361 hardcode_shlibpath_var_F77=no 15362 ;; 15363 15364 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15365 freebsd2*) 15366 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15367 hardcode_direct_F77=yes 15368 hardcode_minus_L_F77=yes 15369 hardcode_shlibpath_var_F77=no 15370 ;; 15371 15372 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15373 freebsd* | dragonfly*) 15374 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15375 hardcode_libdir_flag_spec_F77='-R$libdir' 15376 hardcode_direct_F77=yes 15377 hardcode_shlibpath_var_F77=no 15378 ;; 15379 15380 hpux9*) 15381 if test "$GCC" = yes; then 15382 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' 15383 else 15384 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' 15385 fi 15386 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15387 hardcode_libdir_separator_F77=: 15388 hardcode_direct_F77=yes 15389 15390 # hardcode_minus_L: Not really in the search PATH, 15391 # but as the default location of the library. 15392 hardcode_minus_L_F77=yes 15393 export_dynamic_flag_spec_F77='${wl}-E' 15394 ;; 15395 15396 hpux10*) 15397 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15398 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15399 else 15400 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15401 fi 15402 if test "$with_gnu_ld" = no; then 15403 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15404 hardcode_libdir_separator_F77=: 15405 15406 hardcode_direct_F77=yes 15407 export_dynamic_flag_spec_F77='${wl}-E' 15408 15409 # hardcode_minus_L: Not really in the search PATH, 15410 # but as the default location of the library. 15411 hardcode_minus_L_F77=yes 15412 fi 15413 ;; 15414 15415 hpux11*) 15416 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15417 case $host_cpu in 15418 hppa*64*) 15419 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15420 ;; 15421 ia64*) 15422 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15423 ;; 15424 *) 15425 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15426 ;; 15427 esac 15428 else 15429 case $host_cpu in 15430 hppa*64*) 15431 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15432 ;; 15433 ia64*) 15434 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15435 ;; 15436 *) 15437 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15438 ;; 15439 esac 15440 fi 15441 if test "$with_gnu_ld" = no; then 15442 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15443 hardcode_libdir_separator_F77=: 15444 15445 case $host_cpu in 15446 hppa*64*|ia64*) 15447 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15448 hardcode_direct_F77=no 15449 hardcode_shlibpath_var_F77=no 15450 ;; 15451 *) 15452 hardcode_direct_F77=yes 15453 export_dynamic_flag_spec_F77='${wl}-E' 15454 15455 # hardcode_minus_L: Not really in the search PATH, 15456 # but as the default location of the library. 15457 hardcode_minus_L_F77=yes 15458 ;; 15459 esac 15460 fi 15461 ;; 15462 15463 irix5* | irix6* | nonstopux*) 15464 if test "$GCC" = yes; then 15465 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' 15466 else 15467 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' 15468 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15469 fi 15470 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15471 hardcode_libdir_separator_F77=: 15472 link_all_deplibs_F77=yes 15473 ;; 15474 15475 netbsd*) 15476 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15477 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15478 else 15479 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15480 fi 15481 hardcode_libdir_flag_spec_F77='-R$libdir' 15482 hardcode_direct_F77=yes 15483 hardcode_shlibpath_var_F77=no 15484 ;; 15485 15486 newsos6) 15487 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15488 hardcode_direct_F77=yes 15489 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15490 hardcode_libdir_separator_F77=: 15491 hardcode_shlibpath_var_F77=no 15492 ;; 15493 15494 openbsd*) 15495 if test -f /usr/libexec/ld.so; then 15496 hardcode_direct_F77=yes 15497 hardcode_shlibpath_var_F77=no 15498 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15499 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15500 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15501 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15502 export_dynamic_flag_spec_F77='${wl}-E' 15503 else 15504 case $host_os in 15505 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15506 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15507 hardcode_libdir_flag_spec_F77='-R$libdir' 15508 ;; 15509 *) 15510 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15511 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15512 ;; 15513 esac 15514 fi 15515 else 15516 ld_shlibs_F77=no 15517 fi 15518 ;; 15519 15520 os2*) 15521 hardcode_libdir_flag_spec_F77='-L$libdir' 15522 hardcode_minus_L_F77=yes 15523 allow_undefined_flag_F77=unsupported 15524 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' 15525 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15526 ;; 15527 15528 osf3*) 15529 if test "$GCC" = yes; then 15530 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15531 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' 15532 else 15533 allow_undefined_flag_F77=' -expect_unresolved \*' 15534 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' 15535 fi 15536 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15537 hardcode_libdir_separator_F77=: 15538 ;; 15539 15540 osf4* | osf5*) # as osf3* with the addition of -msym flag 15541 if test "$GCC" = yes; then 15542 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15543 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' 15544 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15545 else 15546 allow_undefined_flag_F77=' -expect_unresolved \*' 15547 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' 15548 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~ 15549 $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' 15550 15551 # Both c and cxx compiler support -rpath directly 15552 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15553 fi 15554 hardcode_libdir_separator_F77=: 15555 ;; 15556 15557 solaris*) 15558 no_undefined_flag_F77=' -z text' 15559 if test "$GCC" = yes; then 15560 wlarc='${wl}' 15561 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15562 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15563 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15564 else 15565 wlarc='' 15566 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15567 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15568 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15569 fi 15570 hardcode_libdir_flag_spec_F77='-R$libdir' 15571 hardcode_shlibpath_var_F77=no 15572 case $host_os in 15573 solaris2.[0-5] | solaris2.[0-5].*) ;; 15574 *) 15575 # The compiler driver will combine and reorder linker options, 15576 # but understands `-z linker_flag'. GCC discards it without `$wl', 15577 # but is careful enough not to reorder. 15578 # Supported since Solaris 2.6 (maybe 2.5.1?) 15579 if test "$GCC" = yes; then 15580 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15581 else 15582 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15583 fi 15584 ;; 15585 esac 15586 link_all_deplibs_F77=yes 15587 ;; 15588 15589 sunos4*) 15590 if test "x$host_vendor" = xsequent; then 15591 # Use $CC to link under sequent, because it throws in some extra .o 15592 # files that make .init and .fini sections work. 15593 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15594 else 15595 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15596 fi 15597 hardcode_libdir_flag_spec_F77='-L$libdir' 15598 hardcode_direct_F77=yes 15599 hardcode_minus_L_F77=yes 15600 hardcode_shlibpath_var_F77=no 15601 ;; 15602 15603 sysv4) 15604 case $host_vendor in 15605 sni) 15606 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15607 hardcode_direct_F77=yes # is this really true??? 15608 ;; 15609 siemens) 15610 ## LD is ld it makes a PLAMLIB 15611 ## CC just makes a GrossModule. 15612 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15613 reload_cmds_F77='$CC -r -o $output$reload_objs' 15614 hardcode_direct_F77=no 15615 ;; 15616 motorola) 15617 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15618 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15619 ;; 15620 esac 15621 runpath_var='LD_RUN_PATH' 15622 hardcode_shlibpath_var_F77=no 15623 ;; 15624 15625 sysv4.3*) 15626 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15627 hardcode_shlibpath_var_F77=no 15628 export_dynamic_flag_spec_F77='-Bexport' 15629 ;; 15630 15631 sysv4*MP*) 15632 if test -d /usr/nec; then 15633 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15634 hardcode_shlibpath_var_F77=no 15635 runpath_var=LD_RUN_PATH 15636 hardcode_runpath_var=yes 15637 ld_shlibs_F77=yes 15638 fi 15639 ;; 15640 15641 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15642 no_undefined_flag_F77='${wl}-z,text' 15643 archive_cmds_need_lc_F77=no 15644 hardcode_shlibpath_var_F77=no 15645 runpath_var='LD_RUN_PATH' 15646 15647 if test "$GCC" = yes; then 15648 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15649 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15650 else 15651 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15652 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15653 fi 15654 ;; 15655 15656 sysv5* | sco3.2v5* | sco5v6*) 15657 # Note: We can NOT use -z defs as we might desire, because we do not 15658 # link with -lc, and that would cause any symbols used from libc to 15659 # always be unresolved, which means just about no library would 15660 # ever link correctly. If we're not using GNU ld we use -z text 15661 # though, which does catch some bad symbols but isn't as heavy-handed 15662 # as -z defs. 15663 no_undefined_flag_F77='${wl}-z,text' 15664 allow_undefined_flag_F77='${wl}-z,nodefs' 15665 archive_cmds_need_lc_F77=no 15666 hardcode_shlibpath_var_F77=no 15667 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15668 hardcode_libdir_separator_F77=':' 15669 link_all_deplibs_F77=yes 15670 export_dynamic_flag_spec_F77='${wl}-Bexport' 15671 runpath_var='LD_RUN_PATH' 15672 15673 if test "$GCC" = yes; then 15674 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15675 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15676 else 15677 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15678 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15679 fi 15680 ;; 15681 15682 uts4*) 15683 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15684 hardcode_libdir_flag_spec_F77='-L$libdir' 15685 hardcode_shlibpath_var_F77=no 15686 ;; 15687 15688 *) 15689 ld_shlibs_F77=no 15690 ;; 15691 esac 15692 fi 15693 15694{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15695$as_echo "$ld_shlibs_F77" >&6; } 15696test "$ld_shlibs_F77" = no && can_build_shared=no 15697 15698# 15699# Do we need to explicitly link libc? 15700# 15701case "x$archive_cmds_need_lc_F77" in 15702x|xyes) 15703 # Assume -lc should be added 15704 archive_cmds_need_lc_F77=yes 15705 15706 if test "$enable_shared" = yes && test "$GCC" = yes; then 15707 case $archive_cmds_F77 in 15708 *'~'*) 15709 # FIXME: we may have to deal with multi-command sequences. 15710 ;; 15711 '$CC '*) 15712 # Test whether the compiler implicitly links with -lc since on some 15713 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15714 # to ld, don't add -lc before -lgcc. 15715 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15716$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15717 $rm conftest* 15718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15719 15720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15721 (eval $ac_compile) 2>&5 15722 ac_status=$? 15723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15724 (exit $ac_status); } 2>conftest.err; then 15725 soname=conftest 15726 lib=conftest 15727 libobjs=conftest.$ac_objext 15728 deplibs= 15729 wl=$lt_prog_compiler_wl_F77 15730 pic_flag=$lt_prog_compiler_pic_F77 15731 compiler_flags=-v 15732 linker_flags=-v 15733 verstring= 15734 output_objdir=. 15735 libname=conftest 15736 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15737 allow_undefined_flag_F77= 15738 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15739 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15740 ac_status=$? 15741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15742 (exit $ac_status); } 15743 then 15744 archive_cmds_need_lc_F77=no 15745 else 15746 archive_cmds_need_lc_F77=yes 15747 fi 15748 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15749 else 15750 cat conftest.err 1>&5 15751 fi 15752 $rm conftest* 15753 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15754$as_echo "$archive_cmds_need_lc_F77" >&6; } 15755 ;; 15756 esac 15757 fi 15758 ;; 15759esac 15760 15761{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15762$as_echo_n "checking dynamic linker characteristics... " >&6; } 15763library_names_spec= 15764libname_spec='lib$name' 15765soname_spec= 15766shrext_cmds=".so" 15767postinstall_cmds= 15768postuninstall_cmds= 15769finish_cmds= 15770finish_eval= 15771shlibpath_var= 15772shlibpath_overrides_runpath=unknown 15773version_type=none 15774dynamic_linker="$host_os ld.so" 15775sys_lib_dlsearch_path_spec="/lib /usr/lib" 15776 15777need_lib_prefix=unknown 15778hardcode_into_libs=no 15779 15780# when you set need_version to no, make sure it does not cause -set_version 15781# flags to be left without arguments 15782need_version=unknown 15783 15784case $host_os in 15785aix3*) 15786 version_type=linux 15787 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15788 shlibpath_var=LIBPATH 15789 15790 # AIX 3 has no versioning support, so we append a major version to the name. 15791 soname_spec='${libname}${release}${shared_ext}$major' 15792 ;; 15793 15794aix[4-9]*) 15795 version_type=linux 15796 need_lib_prefix=no 15797 need_version=no 15798 hardcode_into_libs=yes 15799 if test "$host_cpu" = ia64; then 15800 # AIX 5 supports IA64 15801 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15802 shlibpath_var=LD_LIBRARY_PATH 15803 else 15804 # With GCC up to 2.95.x, collect2 would create an import file 15805 # for dependence libraries. The import file would start with 15806 # the line `#! .'. This would cause the generated library to 15807 # depend on `.', always an invalid library. This was fixed in 15808 # development snapshots of GCC prior to 3.0. 15809 case $host_os in 15810 aix4 | aix4.[01] | aix4.[01].*) 15811 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15812 echo ' yes ' 15813 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15814 : 15815 else 15816 can_build_shared=no 15817 fi 15818 ;; 15819 esac 15820 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15821 # soname into executable. Probably we can add versioning support to 15822 # collect2, so additional links can be useful in future. 15823 if test "$aix_use_runtimelinking" = yes; then 15824 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15825 # instead of lib<name>.a to let people know that these are not 15826 # typical AIX shared libraries. 15827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15828 else 15829 # We preserve .a as extension for shared libraries through AIX4.2 15830 # and later when we are not doing run time linking. 15831 library_names_spec='${libname}${release}.a $libname.a' 15832 soname_spec='${libname}${release}${shared_ext}$major' 15833 fi 15834 shlibpath_var=LIBPATH 15835 fi 15836 ;; 15837 15838amigaos*) 15839 library_names_spec='$libname.ixlibrary $libname.a' 15840 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15841 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' 15842 ;; 15843 15844beos*) 15845 library_names_spec='${libname}${shared_ext}' 15846 dynamic_linker="$host_os ld.so" 15847 shlibpath_var=LIBRARY_PATH 15848 ;; 15849 15850bsdi[45]*) 15851 version_type=linux 15852 need_version=no 15853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15854 soname_spec='${libname}${release}${shared_ext}$major' 15855 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15856 shlibpath_var=LD_LIBRARY_PATH 15857 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15858 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15859 # the default ld.so.conf also contains /usr/contrib/lib and 15860 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15861 # libtool to hard-code these into programs 15862 ;; 15863 15864cygwin* | mingw* | pw32*) 15865 version_type=windows 15866 shrext_cmds=".dll" 15867 need_version=no 15868 need_lib_prefix=no 15869 15870 case $GCC,$host_os in 15871 yes,cygwin* | yes,mingw* | yes,pw32*) 15872 library_names_spec='$libname.dll.a' 15873 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15874 postinstall_cmds='base_file=`basename \${file}`~ 15875 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15876 dldir=$destdir/`dirname \$dlpath`~ 15877 test -d \$dldir || mkdir -p \$dldir~ 15878 $install_prog $dir/$dlname \$dldir/$dlname~ 15879 chmod a+x \$dldir/$dlname' 15880 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15881 dlpath=$dir/\$dldll~ 15882 $rm \$dlpath' 15883 shlibpath_overrides_runpath=yes 15884 15885 case $host_os in 15886 cygwin*) 15887 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15888 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15889 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15890 ;; 15891 mingw*) 15892 # MinGW DLLs use traditional 'lib' prefix 15893 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15894 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15895 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15896 # It is most probably a Windows format PATH printed by 15897 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15898 # path with ; separators, and with drive letters. We can handle the 15899 # drive letters (cygwin fileutils understands them), so leave them, 15900 # especially as we might pass files found there to a mingw objdump, 15901 # which wouldn't understand a cygwinified path. Ahh. 15902 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15903 else 15904 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15905 fi 15906 ;; 15907 pw32*) 15908 # pw32 DLLs use 'pw' prefix rather than 'lib' 15909 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15910 ;; 15911 esac 15912 ;; 15913 15914 *) 15915 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15916 ;; 15917 esac 15918 dynamic_linker='Win32 ld.exe' 15919 # FIXME: first we should search . and the directory the executable is in 15920 shlibpath_var=PATH 15921 ;; 15922 15923darwin* | rhapsody*) 15924 dynamic_linker="$host_os dyld" 15925 version_type=darwin 15926 need_lib_prefix=no 15927 need_version=no 15928 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15929 soname_spec='${libname}${release}${major}$shared_ext' 15930 shlibpath_overrides_runpath=yes 15931 shlibpath_var=DYLD_LIBRARY_PATH 15932 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15933 15934 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15935 ;; 15936 15937dgux*) 15938 version_type=linux 15939 need_lib_prefix=no 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 shlibpath_var=LD_LIBRARY_PATH 15944 ;; 15945 15946freebsd1*) 15947 dynamic_linker=no 15948 ;; 15949 15950freebsd* | dragonfly*) 15951 # DragonFly does not have aout. When/if they implement a new 15952 # versioning mechanism, adjust this. 15953 if test -x /usr/bin/objformat; then 15954 objformat=`/usr/bin/objformat` 15955 else 15956 case $host_os in 15957 freebsd[123]*) objformat=aout ;; 15958 *) objformat=elf ;; 15959 esac 15960 fi 15961 version_type=freebsd-$objformat 15962 case $version_type in 15963 freebsd-elf*) 15964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15965 need_version=no 15966 need_lib_prefix=no 15967 ;; 15968 freebsd-*) 15969 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15970 need_version=yes 15971 ;; 15972 esac 15973 shlibpath_var=LD_LIBRARY_PATH 15974 case $host_os in 15975 freebsd2*) 15976 shlibpath_overrides_runpath=yes 15977 ;; 15978 freebsd3.[01]* | freebsdelf3.[01]*) 15979 shlibpath_overrides_runpath=yes 15980 hardcode_into_libs=yes 15981 ;; 15982 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15983 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15984 shlibpath_overrides_runpath=no 15985 hardcode_into_libs=yes 15986 ;; 15987 *) # from 4.6 on, and DragonFly 15988 shlibpath_overrides_runpath=yes 15989 hardcode_into_libs=yes 15990 ;; 15991 esac 15992 ;; 15993 15994gnu*) 15995 version_type=linux 15996 need_lib_prefix=no 15997 need_version=no 15998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15999 soname_spec='${libname}${release}${shared_ext}$major' 16000 shlibpath_var=LD_LIBRARY_PATH 16001 hardcode_into_libs=yes 16002 ;; 16003 16004hpux9* | hpux10* | hpux11*) 16005 # Give a soname corresponding to the major version so that dld.sl refuses to 16006 # link against other versions. 16007 version_type=sunos 16008 need_lib_prefix=no 16009 need_version=no 16010 case $host_cpu in 16011 ia64*) 16012 shrext_cmds='.so' 16013 hardcode_into_libs=yes 16014 dynamic_linker="$host_os dld.so" 16015 shlibpath_var=LD_LIBRARY_PATH 16016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16018 soname_spec='${libname}${release}${shared_ext}$major' 16019 if test "X$HPUX_IA64_MODE" = X32; then 16020 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16021 else 16022 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16023 fi 16024 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16025 ;; 16026 hppa*64*) 16027 shrext_cmds='.sl' 16028 hardcode_into_libs=yes 16029 dynamic_linker="$host_os dld.sl" 16030 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16031 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16033 soname_spec='${libname}${release}${shared_ext}$major' 16034 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16035 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16036 ;; 16037 *) 16038 shrext_cmds='.sl' 16039 dynamic_linker="$host_os dld.sl" 16040 shlibpath_var=SHLIB_PATH 16041 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16043 soname_spec='${libname}${release}${shared_ext}$major' 16044 ;; 16045 esac 16046 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16047 postinstall_cmds='chmod 555 $lib' 16048 ;; 16049 16050interix[3-9]*) 16051 version_type=linux 16052 need_lib_prefix=no 16053 need_version=no 16054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16055 soname_spec='${libname}${release}${shared_ext}$major' 16056 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16057 shlibpath_var=LD_LIBRARY_PATH 16058 shlibpath_overrides_runpath=no 16059 hardcode_into_libs=yes 16060 ;; 16061 16062irix5* | irix6* | nonstopux*) 16063 case $host_os in 16064 nonstopux*) version_type=nonstopux ;; 16065 *) 16066 if test "$lt_cv_prog_gnu_ld" = yes; then 16067 version_type=linux 16068 else 16069 version_type=irix 16070 fi ;; 16071 esac 16072 need_lib_prefix=no 16073 need_version=no 16074 soname_spec='${libname}${release}${shared_ext}$major' 16075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16076 case $host_os in 16077 irix5* | nonstopux*) 16078 libsuff= shlibsuff= 16079 ;; 16080 *) 16081 case $LD in # libtool.m4 will add one of these switches to LD 16082 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16083 libsuff= shlibsuff= libmagic=32-bit;; 16084 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16085 libsuff=32 shlibsuff=N32 libmagic=N32;; 16086 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16087 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16088 *) libsuff= shlibsuff= libmagic=never-match;; 16089 esac 16090 ;; 16091 esac 16092 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16093 shlibpath_overrides_runpath=no 16094 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16095 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16096 hardcode_into_libs=yes 16097 ;; 16098 16099# No shared lib support for Linux oldld, aout, or coff. 16100linux*oldld* | linux*aout* | linux*coff*) 16101 dynamic_linker=no 16102 ;; 16103 16104# This must be Linux ELF. 16105linux* | k*bsd*-gnu) 16106 version_type=linux 16107 need_lib_prefix=no 16108 need_version=no 16109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16110 soname_spec='${libname}${release}${shared_ext}$major' 16111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16112 shlibpath_var=LD_LIBRARY_PATH 16113 shlibpath_overrides_runpath=no 16114 # This implies no fast_install, which is unacceptable. 16115 # Some rework will be needed to allow for fast_install 16116 # before this can be enabled. 16117 hardcode_into_libs=yes 16118 16119 # Append ld.so.conf contents to the search path 16120 if test -f /etc/ld.so.conf; then 16121 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' ' '` 16122 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16123 fi 16124 16125 # We used to test for /lib/ld.so.1 and disable shared libraries on 16126 # powerpc, because MkLinux only supported shared libraries with the 16127 # GNU dynamic linker. Since this was broken with cross compilers, 16128 # most powerpc-linux boxes support dynamic linking these days and 16129 # people can always --disable-shared, the test was removed, and we 16130 # assume the GNU/Linux dynamic linker is in use. 16131 dynamic_linker='GNU/Linux ld.so' 16132 ;; 16133 16134netbsd*) 16135 version_type=sunos 16136 need_lib_prefix=no 16137 need_version=no 16138 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16141 dynamic_linker='NetBSD (a.out) ld.so' 16142 else 16143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16144 soname_spec='${libname}${release}${shared_ext}$major' 16145 dynamic_linker='NetBSD ld.elf_so' 16146 fi 16147 shlibpath_var=LD_LIBRARY_PATH 16148 shlibpath_overrides_runpath=yes 16149 hardcode_into_libs=yes 16150 ;; 16151 16152newsos6) 16153 version_type=linux 16154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16155 shlibpath_var=LD_LIBRARY_PATH 16156 shlibpath_overrides_runpath=yes 16157 ;; 16158 16159nto-qnx*) 16160 version_type=linux 16161 need_lib_prefix=no 16162 need_version=no 16163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16164 soname_spec='${libname}${release}${shared_ext}$major' 16165 shlibpath_var=LD_LIBRARY_PATH 16166 shlibpath_overrides_runpath=yes 16167 ;; 16168 16169openbsd*) 16170 version_type=sunos 16171 sys_lib_dlsearch_path_spec="/usr/lib" 16172 need_lib_prefix=no 16173 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16174 case $host_os in 16175 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16176 *) need_version=no ;; 16177 esac 16178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16180 shlibpath_var=LD_LIBRARY_PATH 16181 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16182 case $host_os in 16183 openbsd2.[89] | openbsd2.[89].*) 16184 shlibpath_overrides_runpath=no 16185 ;; 16186 *) 16187 shlibpath_overrides_runpath=yes 16188 ;; 16189 esac 16190 else 16191 shlibpath_overrides_runpath=yes 16192 fi 16193 ;; 16194 16195os2*) 16196 libname_spec='$name' 16197 shrext_cmds=".dll" 16198 need_lib_prefix=no 16199 library_names_spec='$libname${shared_ext} $libname.a' 16200 dynamic_linker='OS/2 ld.exe' 16201 shlibpath_var=LIBPATH 16202 ;; 16203 16204osf3* | osf4* | osf5*) 16205 version_type=osf 16206 need_lib_prefix=no 16207 need_version=no 16208 soname_spec='${libname}${release}${shared_ext}$major' 16209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16210 shlibpath_var=LD_LIBRARY_PATH 16211 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16212 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16213 ;; 16214 16215rdos*) 16216 dynamic_linker=no 16217 ;; 16218 16219solaris*) 16220 version_type=linux 16221 need_lib_prefix=no 16222 need_version=no 16223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16224 soname_spec='${libname}${release}${shared_ext}$major' 16225 shlibpath_var=LD_LIBRARY_PATH 16226 shlibpath_overrides_runpath=yes 16227 hardcode_into_libs=yes 16228 # ldd complains unless libraries are executable 16229 postinstall_cmds='chmod +x $lib' 16230 ;; 16231 16232sunos4*) 16233 version_type=sunos 16234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16235 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16236 shlibpath_var=LD_LIBRARY_PATH 16237 shlibpath_overrides_runpath=yes 16238 if test "$with_gnu_ld" = yes; then 16239 need_lib_prefix=no 16240 fi 16241 need_version=yes 16242 ;; 16243 16244sysv4 | sysv4.3*) 16245 version_type=linux 16246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16247 soname_spec='${libname}${release}${shared_ext}$major' 16248 shlibpath_var=LD_LIBRARY_PATH 16249 case $host_vendor in 16250 sni) 16251 shlibpath_overrides_runpath=no 16252 need_lib_prefix=no 16253 export_dynamic_flag_spec='${wl}-Blargedynsym' 16254 runpath_var=LD_RUN_PATH 16255 ;; 16256 siemens) 16257 need_lib_prefix=no 16258 ;; 16259 motorola) 16260 need_lib_prefix=no 16261 need_version=no 16262 shlibpath_overrides_runpath=no 16263 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16264 ;; 16265 esac 16266 ;; 16267 16268sysv4*MP*) 16269 if test -d /usr/nec ;then 16270 version_type=linux 16271 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16272 soname_spec='$libname${shared_ext}.$major' 16273 shlibpath_var=LD_LIBRARY_PATH 16274 fi 16275 ;; 16276 16277sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16278 version_type=freebsd-elf 16279 need_lib_prefix=no 16280 need_version=no 16281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16282 soname_spec='${libname}${release}${shared_ext}$major' 16283 shlibpath_var=LD_LIBRARY_PATH 16284 hardcode_into_libs=yes 16285 if test "$with_gnu_ld" = yes; then 16286 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16287 shlibpath_overrides_runpath=no 16288 else 16289 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16290 shlibpath_overrides_runpath=yes 16291 case $host_os in 16292 sco3.2v5*) 16293 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16294 ;; 16295 esac 16296 fi 16297 sys_lib_dlsearch_path_spec='/usr/lib' 16298 ;; 16299 16300uts4*) 16301 version_type=linux 16302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16303 soname_spec='${libname}${release}${shared_ext}$major' 16304 shlibpath_var=LD_LIBRARY_PATH 16305 ;; 16306 16307*) 16308 dynamic_linker=no 16309 ;; 16310esac 16311{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16312$as_echo "$dynamic_linker" >&6; } 16313test "$dynamic_linker" = no && can_build_shared=no 16314 16315if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16316 $as_echo_n "(cached) " >&6 16317else 16318 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 16319fi 16320 16321sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16322if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16323 $as_echo_n "(cached) " >&6 16324else 16325 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 16326fi 16327 16328sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16329 16330variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16331if test "$GCC" = yes; then 16332 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16333fi 16334 16335{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16336$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16337hardcode_action_F77= 16338if test -n "$hardcode_libdir_flag_spec_F77" || \ 16339 test -n "$runpath_var_F77" || \ 16340 test "X$hardcode_automatic_F77" = "Xyes" ; then 16341 16342 # We can hardcode non-existant directories. 16343 if test "$hardcode_direct_F77" != no && 16344 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16345 # have to relink, otherwise we might link with an installed library 16346 # when we should be linking with a yet-to-be-installed one 16347 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16348 test "$hardcode_minus_L_F77" != no; then 16349 # Linking always hardcodes the temporary library directory. 16350 hardcode_action_F77=relink 16351 else 16352 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16353 hardcode_action_F77=immediate 16354 fi 16355else 16356 # We cannot hardcode anything, or else we can only hardcode existing 16357 # directories. 16358 hardcode_action_F77=unsupported 16359fi 16360{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16361$as_echo "$hardcode_action_F77" >&6; } 16362 16363if test "$hardcode_action_F77" = relink; then 16364 # Fast installation is not supported 16365 enable_fast_install=no 16366elif test "$shlibpath_overrides_runpath" = yes || 16367 test "$enable_shared" = no; then 16368 # Fast installation is not necessary 16369 enable_fast_install=needless 16370fi 16371 16372 16373# The else clause should only fire when bootstrapping the 16374# libtool distribution, otherwise you forgot to ship ltmain.sh 16375# with your package, and you will get complaints that there are 16376# no rules to generate ltmain.sh. 16377if test -f "$ltmain"; then 16378 # See if we are running on zsh, and set the options which allow our commands through 16379 # without removal of \ escapes. 16380 if test -n "${ZSH_VERSION+set}" ; then 16381 setopt NO_GLOB_SUBST 16382 fi 16383 # Now quote all the things that may contain metacharacters while being 16384 # careful not to overquote the AC_SUBSTed values. We take copies of the 16385 # variables and quote the copies for generation of the libtool script. 16386 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16387 SED SHELL STRIP \ 16388 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16389 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16390 deplibs_check_method reload_flag reload_cmds need_locks \ 16391 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16392 lt_cv_sys_global_symbol_to_c_name_address \ 16393 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16394 old_postinstall_cmds old_postuninstall_cmds \ 16395 compiler_F77 \ 16396 CC_F77 \ 16397 LD_F77 \ 16398 lt_prog_compiler_wl_F77 \ 16399 lt_prog_compiler_pic_F77 \ 16400 lt_prog_compiler_static_F77 \ 16401 lt_prog_compiler_no_builtin_flag_F77 \ 16402 export_dynamic_flag_spec_F77 \ 16403 thread_safe_flag_spec_F77 \ 16404 whole_archive_flag_spec_F77 \ 16405 enable_shared_with_static_runtimes_F77 \ 16406 old_archive_cmds_F77 \ 16407 old_archive_from_new_cmds_F77 \ 16408 predep_objects_F77 \ 16409 postdep_objects_F77 \ 16410 predeps_F77 \ 16411 postdeps_F77 \ 16412 compiler_lib_search_path_F77 \ 16413 compiler_lib_search_dirs_F77 \ 16414 archive_cmds_F77 \ 16415 archive_expsym_cmds_F77 \ 16416 postinstall_cmds_F77 \ 16417 postuninstall_cmds_F77 \ 16418 old_archive_from_expsyms_cmds_F77 \ 16419 allow_undefined_flag_F77 \ 16420 no_undefined_flag_F77 \ 16421 export_symbols_cmds_F77 \ 16422 hardcode_libdir_flag_spec_F77 \ 16423 hardcode_libdir_flag_spec_ld_F77 \ 16424 hardcode_libdir_separator_F77 \ 16425 hardcode_automatic_F77 \ 16426 module_cmds_F77 \ 16427 module_expsym_cmds_F77 \ 16428 lt_cv_prog_compiler_c_o_F77 \ 16429 fix_srcfile_path_F77 \ 16430 exclude_expsyms_F77 \ 16431 include_expsyms_F77; do 16432 16433 case $var in 16434 old_archive_cmds_F77 | \ 16435 old_archive_from_new_cmds_F77 | \ 16436 archive_cmds_F77 | \ 16437 archive_expsym_cmds_F77 | \ 16438 module_cmds_F77 | \ 16439 module_expsym_cmds_F77 | \ 16440 old_archive_from_expsyms_cmds_F77 | \ 16441 export_symbols_cmds_F77 | \ 16442 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16443 postinstall_cmds | postuninstall_cmds | \ 16444 old_postinstall_cmds | old_postuninstall_cmds | \ 16445 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16446 # Double-quote double-evaled strings. 16447 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16448 ;; 16449 *) 16450 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16451 ;; 16452 esac 16453 done 16454 16455 case $lt_echo in 16456 *'\$0 --fallback-echo"') 16457 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16458 ;; 16459 esac 16460 16461cfgfile="$ofile" 16462 16463 cat <<__EOF__ >> "$cfgfile" 16464# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16465 16466# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16467 16468# Shell to use when invoking shell scripts. 16469SHELL=$lt_SHELL 16470 16471# Whether or not to build shared libraries. 16472build_libtool_libs=$enable_shared 16473 16474# Whether or not to build static libraries. 16475build_old_libs=$enable_static 16476 16477# Whether or not to add -lc for building shared libraries. 16478build_libtool_need_lc=$archive_cmds_need_lc_F77 16479 16480# Whether or not to disallow shared libs when runtime libs are static 16481allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16482 16483# Whether or not to optimize for fast installation. 16484fast_install=$enable_fast_install 16485 16486# The host system. 16487host_alias=$host_alias 16488host=$host 16489host_os=$host_os 16490 16491# The build system. 16492build_alias=$build_alias 16493build=$build 16494build_os=$build_os 16495 16496# An echo program that does not interpret backslashes. 16497echo=$lt_echo 16498 16499# The archiver. 16500AR=$lt_AR 16501AR_FLAGS=$lt_AR_FLAGS 16502 16503# A C compiler. 16504LTCC=$lt_LTCC 16505 16506# LTCC compiler flags. 16507LTCFLAGS=$lt_LTCFLAGS 16508 16509# A language-specific compiler. 16510CC=$lt_compiler_F77 16511 16512# Is the compiler the GNU C compiler? 16513with_gcc=$GCC_F77 16514 16515# An ERE matcher. 16516EGREP=$lt_EGREP 16517 16518# The linker used to build libraries. 16519LD=$lt_LD_F77 16520 16521# Whether we need hard or soft links. 16522LN_S=$lt_LN_S 16523 16524# A BSD-compatible nm program. 16525NM=$lt_NM 16526 16527# A symbol stripping program 16528STRIP=$lt_STRIP 16529 16530# Used to examine libraries when file_magic_cmd begins "file" 16531MAGIC_CMD=$MAGIC_CMD 16532 16533# Used on cygwin: DLL creation program. 16534DLLTOOL="$DLLTOOL" 16535 16536# Used on cygwin: object dumper. 16537OBJDUMP="$OBJDUMP" 16538 16539# Used on cygwin: assembler. 16540AS="$AS" 16541 16542# The name of the directory that contains temporary libtool files. 16543objdir=$objdir 16544 16545# How to create reloadable object files. 16546reload_flag=$lt_reload_flag 16547reload_cmds=$lt_reload_cmds 16548 16549# How to pass a linker flag through the compiler. 16550wl=$lt_lt_prog_compiler_wl_F77 16551 16552# Object file suffix (normally "o"). 16553objext="$ac_objext" 16554 16555# Old archive suffix (normally "a"). 16556libext="$libext" 16557 16558# Shared library suffix (normally ".so"). 16559shrext_cmds='$shrext_cmds' 16560 16561# Executable file suffix (normally ""). 16562exeext="$exeext" 16563 16564# Additional compiler flags for building library objects. 16565pic_flag=$lt_lt_prog_compiler_pic_F77 16566pic_mode=$pic_mode 16567 16568# What is the maximum length of a command? 16569max_cmd_len=$lt_cv_sys_max_cmd_len 16570 16571# Does compiler simultaneously support -c and -o options? 16572compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16573 16574# Must we lock files when doing compilation? 16575need_locks=$lt_need_locks 16576 16577# Do we need the lib prefix for modules? 16578need_lib_prefix=$need_lib_prefix 16579 16580# Do we need a version for libraries? 16581need_version=$need_version 16582 16583# Whether dlopen is supported. 16584dlopen_support=$enable_dlopen 16585 16586# Whether dlopen of programs is supported. 16587dlopen_self=$enable_dlopen_self 16588 16589# Whether dlopen of statically linked programs is supported. 16590dlopen_self_static=$enable_dlopen_self_static 16591 16592# Compiler flag to prevent dynamic linking. 16593link_static_flag=$lt_lt_prog_compiler_static_F77 16594 16595# Compiler flag to turn off builtin functions. 16596no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16597 16598# Compiler flag to allow reflexive dlopens. 16599export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16600 16601# Compiler flag to generate shared objects directly from archives. 16602whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16603 16604# Compiler flag to generate thread-safe objects. 16605thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16606 16607# Library versioning type. 16608version_type=$version_type 16609 16610# Format of library name prefix. 16611libname_spec=$lt_libname_spec 16612 16613# List of archive names. First name is the real one, the rest are links. 16614# The last name is the one that the linker finds with -lNAME. 16615library_names_spec=$lt_library_names_spec 16616 16617# The coded name of the library, if different from the real name. 16618soname_spec=$lt_soname_spec 16619 16620# Commands used to build and install an old-style archive. 16621RANLIB=$lt_RANLIB 16622old_archive_cmds=$lt_old_archive_cmds_F77 16623old_postinstall_cmds=$lt_old_postinstall_cmds 16624old_postuninstall_cmds=$lt_old_postuninstall_cmds 16625 16626# Create an old-style archive from a shared archive. 16627old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16628 16629# Create a temporary old-style archive to link instead of a shared archive. 16630old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16631 16632# Commands used to build and install a shared archive. 16633archive_cmds=$lt_archive_cmds_F77 16634archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16635postinstall_cmds=$lt_postinstall_cmds 16636postuninstall_cmds=$lt_postuninstall_cmds 16637 16638# Commands used to build a loadable module (assumed same as above if empty) 16639module_cmds=$lt_module_cmds_F77 16640module_expsym_cmds=$lt_module_expsym_cmds_F77 16641 16642# Commands to strip libraries. 16643old_striplib=$lt_old_striplib 16644striplib=$lt_striplib 16645 16646# Dependencies to place before the objects being linked to create a 16647# shared library. 16648predep_objects=$lt_predep_objects_F77 16649 16650# Dependencies to place after the objects being linked to create a 16651# shared library. 16652postdep_objects=$lt_postdep_objects_F77 16653 16654# Dependencies to place before the objects being linked to create a 16655# shared library. 16656predeps=$lt_predeps_F77 16657 16658# Dependencies to place after the objects being linked to create a 16659# shared library. 16660postdeps=$lt_postdeps_F77 16661 16662# The directories searched by this compiler when creating a shared 16663# library 16664compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 16665 16666# The library search path used internally by the compiler when linking 16667# a shared library. 16668compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16669 16670# Method to check whether dependent libraries are shared objects. 16671deplibs_check_method=$lt_deplibs_check_method 16672 16673# Command to use when deplibs_check_method == file_magic. 16674file_magic_cmd=$lt_file_magic_cmd 16675 16676# Flag that allows shared libraries with undefined symbols to be built. 16677allow_undefined_flag=$lt_allow_undefined_flag_F77 16678 16679# Flag that forces no undefined symbols. 16680no_undefined_flag=$lt_no_undefined_flag_F77 16681 16682# Commands used to finish a libtool library installation in a directory. 16683finish_cmds=$lt_finish_cmds 16684 16685# Same as above, but a single script fragment to be evaled but not shown. 16686finish_eval=$lt_finish_eval 16687 16688# Take the output of nm and produce a listing of raw symbols and C names. 16689global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16690 16691# Transform the output of nm in a proper C declaration 16692global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16693 16694# Transform the output of nm in a C name address pair 16695global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16696 16697# This is the shared library runtime path variable. 16698runpath_var=$runpath_var 16699 16700# This is the shared library path variable. 16701shlibpath_var=$shlibpath_var 16702 16703# Is shlibpath searched before the hard-coded library search path? 16704shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16705 16706# How to hardcode a shared library path into an executable. 16707hardcode_action=$hardcode_action_F77 16708 16709# Whether we should hardcode library paths into libraries. 16710hardcode_into_libs=$hardcode_into_libs 16711 16712# Flag to hardcode \$libdir into a binary during linking. 16713# This must work even if \$libdir does not exist. 16714hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16715 16716# If ld is used when linking, flag to hardcode \$libdir into 16717# a binary during linking. This must work even if \$libdir does 16718# not exist. 16719hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16720 16721# Whether we need a single -rpath flag with a separated argument. 16722hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16723 16724# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16725# resulting binary. 16726hardcode_direct=$hardcode_direct_F77 16727 16728# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16729# resulting binary. 16730hardcode_minus_L=$hardcode_minus_L_F77 16731 16732# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16733# the resulting binary. 16734hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16735 16736# Set to yes if building a shared library automatically hardcodes DIR into the library 16737# and all subsequent libraries and executables linked against it. 16738hardcode_automatic=$hardcode_automatic_F77 16739 16740# Variables whose values should be saved in libtool wrapper scripts and 16741# restored at relink time. 16742variables_saved_for_relink="$variables_saved_for_relink" 16743 16744# Whether libtool must link a program against all its dependency libraries. 16745link_all_deplibs=$link_all_deplibs_F77 16746 16747# Compile-time system search path for libraries 16748sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16749 16750# Run-time system search path for libraries 16751sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16752 16753# Fix the shell variable \$srcfile for the compiler. 16754fix_srcfile_path=$lt_fix_srcfile_path 16755 16756# Set to yes if exported symbols are required. 16757always_export_symbols=$always_export_symbols_F77 16758 16759# The commands to list exported symbols. 16760export_symbols_cmds=$lt_export_symbols_cmds_F77 16761 16762# The commands to extract the exported symbol list from a shared archive. 16763extract_expsyms_cmds=$lt_extract_expsyms_cmds 16764 16765# Symbols that should not be listed in the preloaded symbols. 16766exclude_expsyms=$lt_exclude_expsyms_F77 16767 16768# Symbols that must always be exported. 16769include_expsyms=$lt_include_expsyms_F77 16770 16771# ### END LIBTOOL TAG CONFIG: $tagname 16772 16773__EOF__ 16774 16775 16776else 16777 # If there is no Makefile yet, we rely on a make rule to execute 16778 # `config.status --recheck' to rerun these tests and create the 16779 # libtool script then. 16780 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16781 if test -f "$ltmain_in"; then 16782 test -f Makefile && make "$ltmain" 16783 fi 16784fi 16785 16786 16787ac_ext=c 16788ac_cpp='$CPP $CPPFLAGS' 16789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16791ac_compiler_gnu=$ac_cv_c_compiler_gnu 16792 16793CC="$lt_save_CC" 16794 16795 else 16796 tagname="" 16797 fi 16798 ;; 16799 16800 GCJ) 16801 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16802 16803 16804# Source file extension for Java test sources. 16805ac_ext=java 16806 16807# Object file extension for compiled Java test sources. 16808objext=o 16809objext_GCJ=$objext 16810 16811# Code to be used in simple compile tests 16812lt_simple_compile_test_code="class foo {}" 16813 16814# Code to be used in simple link tests 16815lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16816 16817# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16818 16819# If no C compiler was specified, use CC. 16820LTCC=${LTCC-"$CC"} 16821 16822# If no C compiler flags were specified, use CFLAGS. 16823LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16824 16825# Allow CC to be a program name with arguments. 16826compiler=$CC 16827 16828 16829# save warnings/boilerplate of simple test code 16830ac_outfile=conftest.$ac_objext 16831echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16832eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16833_lt_compiler_boilerplate=`cat conftest.err` 16834$rm conftest* 16835 16836ac_outfile=conftest.$ac_objext 16837echo "$lt_simple_link_test_code" >conftest.$ac_ext 16838eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16839_lt_linker_boilerplate=`cat conftest.err` 16840$rm -r conftest* 16841 16842 16843# Allow CC to be a program name with arguments. 16844lt_save_CC="$CC" 16845CC=${GCJ-"gcj"} 16846compiler=$CC 16847compiler_GCJ=$CC 16848for cc_temp in $compiler""; do 16849 case $cc_temp in 16850 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16851 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16852 \-*) ;; 16853 *) break;; 16854 esac 16855done 16856cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16857 16858 16859# GCJ did not exist at the time GCC didn't implicitly link libc in. 16860archive_cmds_need_lc_GCJ=no 16861 16862old_archive_cmds_GCJ=$old_archive_cmds 16863 16864 16865lt_prog_compiler_no_builtin_flag_GCJ= 16866 16867if test "$GCC" = yes; then 16868 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16869 16870 16871{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16872$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16873if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16874 $as_echo_n "(cached) " >&6 16875else 16876 lt_cv_prog_compiler_rtti_exceptions=no 16877 ac_outfile=conftest.$ac_objext 16878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16879 lt_compiler_flag="-fno-rtti -fno-exceptions" 16880 # Insert the option either (1) after the last *FLAGS variable, or 16881 # (2) before a word containing "conftest.", or (3) at the end. 16882 # Note that $ac_compile itself does not contain backslashes and begins 16883 # with a dollar sign (not a hyphen), so the echo should work correctly. 16884 # The option is referenced via a variable to avoid confusing sed. 16885 lt_compile=`echo "$ac_compile" | $SED \ 16886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16888 -e 's:$: $lt_compiler_flag:'` 16889 (eval echo "\"\$as_me:16889: $lt_compile\"" >&5) 16890 (eval "$lt_compile" 2>conftest.err) 16891 ac_status=$? 16892 cat conftest.err >&5 16893 echo "$as_me:16893: \$? = $ac_status" >&5 16894 if (exit $ac_status) && test -s "$ac_outfile"; then 16895 # The compiler can only warn and ignore the option if not recognized 16896 # So say no if there are warnings other than the usual output. 16897 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16899 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16900 lt_cv_prog_compiler_rtti_exceptions=yes 16901 fi 16902 fi 16903 $rm conftest* 16904 16905fi 16906{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16907$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16908 16909if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16910 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16911else 16912 : 16913fi 16914 16915fi 16916 16917lt_prog_compiler_wl_GCJ= 16918lt_prog_compiler_pic_GCJ= 16919lt_prog_compiler_static_GCJ= 16920 16921{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16922$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16923 16924 if test "$GCC" = yes; then 16925 lt_prog_compiler_wl_GCJ='-Wl,' 16926 lt_prog_compiler_static_GCJ='-static' 16927 16928 case $host_os in 16929 aix*) 16930 # All AIX code is PIC. 16931 if test "$host_cpu" = ia64; then 16932 # AIX 5 now supports IA64 processor 16933 lt_prog_compiler_static_GCJ='-Bstatic' 16934 fi 16935 ;; 16936 16937 amigaos*) 16938 # FIXME: we need at least 68020 code to build shared libraries, but 16939 # adding the `-m68020' flag to GCC prevents building anything better, 16940 # like `-m68040'. 16941 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16942 ;; 16943 16944 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16945 # PIC is the default for these OSes. 16946 ;; 16947 16948 mingw* | cygwin* | pw32* | os2*) 16949 # This hack is so that the source file can tell whether it is being 16950 # built for inclusion in a dll (and should export symbols for example). 16951 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16952 # (--disable-auto-import) libraries 16953 16954 ;; 16955 16956 darwin* | rhapsody*) 16957 # PIC is the default on this platform 16958 # Common symbols not allowed in MH_DYLIB files 16959 lt_prog_compiler_pic_GCJ='-fno-common' 16960 ;; 16961 16962 interix[3-9]*) 16963 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16964 # Instead, we relocate shared libraries at runtime. 16965 ;; 16966 16967 msdosdjgpp*) 16968 # Just because we use GCC doesn't mean we suddenly get shared libraries 16969 # on systems that don't support them. 16970 lt_prog_compiler_can_build_shared_GCJ=no 16971 enable_shared=no 16972 ;; 16973 16974 sysv4*MP*) 16975 if test -d /usr/nec; then 16976 lt_prog_compiler_pic_GCJ=-Kconform_pic 16977 fi 16978 ;; 16979 16980 hpux*) 16981 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16982 # not for PA HP-UX. 16983 case $host_cpu in 16984 hppa*64*|ia64*) 16985 # +Z the default 16986 ;; 16987 *) 16988 lt_prog_compiler_pic_GCJ='-fPIC' 16989 ;; 16990 esac 16991 ;; 16992 16993 *) 16994 lt_prog_compiler_pic_GCJ='-fPIC' 16995 ;; 16996 esac 16997 else 16998 # PORTME Check for flag to pass linker flags through the system compiler. 16999 case $host_os in 17000 aix*) 17001 lt_prog_compiler_wl_GCJ='-Wl,' 17002 if test "$host_cpu" = ia64; then 17003 # AIX 5 now supports IA64 processor 17004 lt_prog_compiler_static_GCJ='-Bstatic' 17005 else 17006 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17007 fi 17008 ;; 17009 darwin*) 17010 # PIC is the default on this platform 17011 # Common symbols not allowed in MH_DYLIB files 17012 case $cc_basename in 17013 xlc*) 17014 lt_prog_compiler_pic_GCJ='-qnocommon' 17015 lt_prog_compiler_wl_GCJ='-Wl,' 17016 ;; 17017 esac 17018 ;; 17019 17020 mingw* | cygwin* | pw32* | os2*) 17021 # This hack is so that the source file can tell whether it is being 17022 # built for inclusion in a dll (and should export symbols for example). 17023 17024 ;; 17025 17026 hpux9* | hpux10* | hpux11*) 17027 lt_prog_compiler_wl_GCJ='-Wl,' 17028 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17029 # not for PA HP-UX. 17030 case $host_cpu in 17031 hppa*64*|ia64*) 17032 # +Z the default 17033 ;; 17034 *) 17035 lt_prog_compiler_pic_GCJ='+Z' 17036 ;; 17037 esac 17038 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17039 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17040 ;; 17041 17042 irix5* | irix6* | nonstopux*) 17043 lt_prog_compiler_wl_GCJ='-Wl,' 17044 # PIC (with -KPIC) is the default. 17045 lt_prog_compiler_static_GCJ='-non_shared' 17046 ;; 17047 17048 newsos6) 17049 lt_prog_compiler_pic_GCJ='-KPIC' 17050 lt_prog_compiler_static_GCJ='-Bstatic' 17051 ;; 17052 17053 linux* | k*bsd*-gnu) 17054 case $cc_basename in 17055 icc* | ecc*) 17056 lt_prog_compiler_wl_GCJ='-Wl,' 17057 lt_prog_compiler_pic_GCJ='-KPIC' 17058 lt_prog_compiler_static_GCJ='-static' 17059 ;; 17060 pgcc* | pgf77* | pgf90* | pgf95*) 17061 # Portland Group compilers (*not* the Pentium gcc compiler, 17062 # which looks to be a dead project) 17063 lt_prog_compiler_wl_GCJ='-Wl,' 17064 lt_prog_compiler_pic_GCJ='-fpic' 17065 lt_prog_compiler_static_GCJ='-Bstatic' 17066 ;; 17067 ccc*) 17068 lt_prog_compiler_wl_GCJ='-Wl,' 17069 # All Alpha code is PIC. 17070 lt_prog_compiler_static_GCJ='-non_shared' 17071 ;; 17072 *) 17073 case `$CC -V 2>&1 | sed 5q` in 17074 *Sun\ C*) 17075 # Sun C 5.9 17076 lt_prog_compiler_pic_GCJ='-KPIC' 17077 lt_prog_compiler_static_GCJ='-Bstatic' 17078 lt_prog_compiler_wl_GCJ='-Wl,' 17079 ;; 17080 *Sun\ F*) 17081 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17082 lt_prog_compiler_pic_GCJ='-KPIC' 17083 lt_prog_compiler_static_GCJ='-Bstatic' 17084 lt_prog_compiler_wl_GCJ='' 17085 ;; 17086 esac 17087 ;; 17088 esac 17089 ;; 17090 17091 osf3* | osf4* | osf5*) 17092 lt_prog_compiler_wl_GCJ='-Wl,' 17093 # All OSF/1 code is PIC. 17094 lt_prog_compiler_static_GCJ='-non_shared' 17095 ;; 17096 17097 rdos*) 17098 lt_prog_compiler_static_GCJ='-non_shared' 17099 ;; 17100 17101 solaris*) 17102 lt_prog_compiler_pic_GCJ='-KPIC' 17103 lt_prog_compiler_static_GCJ='-Bstatic' 17104 case $cc_basename in 17105 f77* | f90* | f95*) 17106 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17107 *) 17108 lt_prog_compiler_wl_GCJ='-Wl,';; 17109 esac 17110 ;; 17111 17112 sunos4*) 17113 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17114 lt_prog_compiler_pic_GCJ='-PIC' 17115 lt_prog_compiler_static_GCJ='-Bstatic' 17116 ;; 17117 17118 sysv4 | sysv4.2uw2* | sysv4.3*) 17119 lt_prog_compiler_wl_GCJ='-Wl,' 17120 lt_prog_compiler_pic_GCJ='-KPIC' 17121 lt_prog_compiler_static_GCJ='-Bstatic' 17122 ;; 17123 17124 sysv4*MP*) 17125 if test -d /usr/nec ;then 17126 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17127 lt_prog_compiler_static_GCJ='-Bstatic' 17128 fi 17129 ;; 17130 17131 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17132 lt_prog_compiler_wl_GCJ='-Wl,' 17133 lt_prog_compiler_pic_GCJ='-KPIC' 17134 lt_prog_compiler_static_GCJ='-Bstatic' 17135 ;; 17136 17137 unicos*) 17138 lt_prog_compiler_wl_GCJ='-Wl,' 17139 lt_prog_compiler_can_build_shared_GCJ=no 17140 ;; 17141 17142 uts4*) 17143 lt_prog_compiler_pic_GCJ='-pic' 17144 lt_prog_compiler_static_GCJ='-Bstatic' 17145 ;; 17146 17147 *) 17148 lt_prog_compiler_can_build_shared_GCJ=no 17149 ;; 17150 esac 17151 fi 17152 17153{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17154$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 17155 17156# 17157# Check to make sure the PIC flag actually works. 17158# 17159if test -n "$lt_prog_compiler_pic_GCJ"; then 17160 17161{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17162$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 17163if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 17164 $as_echo_n "(cached) " >&6 17165else 17166 lt_cv_prog_compiler_pic_works_GCJ=no 17167 ac_outfile=conftest.$ac_objext 17168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17169 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17170 # Insert the option either (1) after the last *FLAGS variable, or 17171 # (2) before a word containing "conftest.", or (3) at the end. 17172 # Note that $ac_compile itself does not contain backslashes and begins 17173 # with a dollar sign (not a hyphen), so the echo should work correctly. 17174 # The option is referenced via a variable to avoid confusing sed. 17175 lt_compile=`echo "$ac_compile" | $SED \ 17176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17178 -e 's:$: $lt_compiler_flag:'` 17179 (eval echo "\"\$as_me:17179: $lt_compile\"" >&5) 17180 (eval "$lt_compile" 2>conftest.err) 17181 ac_status=$? 17182 cat conftest.err >&5 17183 echo "$as_me:17183: \$? = $ac_status" >&5 17184 if (exit $ac_status) && test -s "$ac_outfile"; then 17185 # The compiler can only warn and ignore the option if not recognized 17186 # So say no if there are warnings other than the usual output. 17187 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17188 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17189 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17190 lt_cv_prog_compiler_pic_works_GCJ=yes 17191 fi 17192 fi 17193 $rm conftest* 17194 17195fi 17196{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 17197$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 17198 17199if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 17200 case $lt_prog_compiler_pic_GCJ in 17201 "" | " "*) ;; 17202 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17203 esac 17204else 17205 lt_prog_compiler_pic_GCJ= 17206 lt_prog_compiler_can_build_shared_GCJ=no 17207fi 17208 17209fi 17210case $host_os in 17211 # For platforms which do not support PIC, -DPIC is meaningless: 17212 *djgpp*) 17213 lt_prog_compiler_pic_GCJ= 17214 ;; 17215 *) 17216 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17217 ;; 17218esac 17219 17220# 17221# Check to make sure the static flag actually works. 17222# 17223wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17224{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17225$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17226if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 17227 $as_echo_n "(cached) " >&6 17228else 17229 lt_cv_prog_compiler_static_works_GCJ=no 17230 save_LDFLAGS="$LDFLAGS" 17231 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17232 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17233 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17234 # The linker can only warn and ignore the option if not recognized 17235 # So say no if there are warnings 17236 if test -s conftest.err; then 17237 # Append any errors to the config.log. 17238 cat conftest.err 1>&5 17239 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17240 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17241 if diff conftest.exp conftest.er2 >/dev/null; then 17242 lt_cv_prog_compiler_static_works_GCJ=yes 17243 fi 17244 else 17245 lt_cv_prog_compiler_static_works_GCJ=yes 17246 fi 17247 fi 17248 $rm -r conftest* 17249 LDFLAGS="$save_LDFLAGS" 17250 17251fi 17252{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 17253$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; } 17254 17255if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 17256 : 17257else 17258 lt_prog_compiler_static_GCJ= 17259fi 17260 17261 17262{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17263$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17264if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17265 $as_echo_n "(cached) " >&6 17266else 17267 lt_cv_prog_compiler_c_o_GCJ=no 17268 $rm -r conftest 2>/dev/null 17269 mkdir conftest 17270 cd conftest 17271 mkdir out 17272 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17273 17274 lt_compiler_flag="-o out/conftest2.$ac_objext" 17275 # Insert the option either (1) after the last *FLAGS variable, or 17276 # (2) before a word containing "conftest.", or (3) at the end. 17277 # Note that $ac_compile itself does not contain backslashes and begins 17278 # with a dollar sign (not a hyphen), so the echo should work correctly. 17279 lt_compile=`echo "$ac_compile" | $SED \ 17280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17282 -e 's:$: $lt_compiler_flag:'` 17283 (eval echo "\"\$as_me:17283: $lt_compile\"" >&5) 17284 (eval "$lt_compile" 2>out/conftest.err) 17285 ac_status=$? 17286 cat out/conftest.err >&5 17287 echo "$as_me:17287: \$? = $ac_status" >&5 17288 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17289 then 17290 # The compiler can only warn and ignore the option if not recognized 17291 # So say no if there are warnings 17292 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17293 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17294 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17295 lt_cv_prog_compiler_c_o_GCJ=yes 17296 fi 17297 fi 17298 chmod u+w . 2>&5 17299 $rm conftest* 17300 # SGI C++ compiler will create directory out/ii_files/ for 17301 # template instantiation 17302 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17303 $rm out/* && rmdir out 17304 cd .. 17305 rmdir conftest 17306 $rm conftest* 17307 17308fi 17309{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17310$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17311 17312 17313hard_links="nottested" 17314if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17315 # do not overwrite the value of need_locks provided by the user 17316 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17317$as_echo_n "checking if we can lock with hard links... " >&6; } 17318 hard_links=yes 17319 $rm conftest* 17320 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17321 touch conftest.a 17322 ln conftest.a conftest.b 2>&5 || hard_links=no 17323 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17324 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 17325$as_echo "$hard_links" >&6; } 17326 if test "$hard_links" = no; then 17327 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17328$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17329 need_locks=warn 17330 fi 17331else 17332 need_locks=no 17333fi 17334 17335{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17336$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17337 17338 runpath_var= 17339 allow_undefined_flag_GCJ= 17340 enable_shared_with_static_runtimes_GCJ=no 17341 archive_cmds_GCJ= 17342 archive_expsym_cmds_GCJ= 17343 old_archive_From_new_cmds_GCJ= 17344 old_archive_from_expsyms_cmds_GCJ= 17345 export_dynamic_flag_spec_GCJ= 17346 whole_archive_flag_spec_GCJ= 17347 thread_safe_flag_spec_GCJ= 17348 hardcode_libdir_flag_spec_GCJ= 17349 hardcode_libdir_flag_spec_ld_GCJ= 17350 hardcode_libdir_separator_GCJ= 17351 hardcode_direct_GCJ=no 17352 hardcode_minus_L_GCJ=no 17353 hardcode_shlibpath_var_GCJ=unsupported 17354 link_all_deplibs_GCJ=unknown 17355 hardcode_automatic_GCJ=no 17356 module_cmds_GCJ= 17357 module_expsym_cmds_GCJ= 17358 always_export_symbols_GCJ=no 17359 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17360 # include_expsyms should be a list of space-separated symbols to be *always* 17361 # included in the symbol list 17362 include_expsyms_GCJ= 17363 # exclude_expsyms can be an extended regexp of symbols to exclude 17364 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17365 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17366 # as well as any symbol that contains `d'. 17367 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17368 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17369 # platforms (ab)use it in PIC code, but their linkers get confused if 17370 # the symbol is explicitly referenced. Since portable code cannot 17371 # rely on this symbol name, it's probably fine to never include it in 17372 # preloaded symbol tables. 17373 # Exclude shared library initialization/finalization symbols. 17374 extract_expsyms_cmds= 17375 # Just being paranoid about ensuring that cc_basename is set. 17376 for cc_temp in $compiler""; do 17377 case $cc_temp in 17378 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17379 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17380 \-*) ;; 17381 *) break;; 17382 esac 17383done 17384cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17385 17386 case $host_os in 17387 cygwin* | mingw* | pw32*) 17388 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17389 # When not using gcc, we currently assume that we are using 17390 # Microsoft Visual C++. 17391 if test "$GCC" != yes; then 17392 with_gnu_ld=no 17393 fi 17394 ;; 17395 interix*) 17396 # we just hope/assume this is gcc and not c89 (= MSVC++) 17397 with_gnu_ld=yes 17398 ;; 17399 openbsd*) 17400 with_gnu_ld=no 17401 ;; 17402 esac 17403 17404 ld_shlibs_GCJ=yes 17405 if test "$with_gnu_ld" = yes; then 17406 # If archive_cmds runs LD, not CC, wlarc should be empty 17407 wlarc='${wl}' 17408 17409 # Set some defaults for GNU ld with shared library support. These 17410 # are reset later if shared libraries are not supported. Putting them 17411 # here allows them to be overridden if necessary. 17412 runpath_var=LD_RUN_PATH 17413 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17414 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17415 # ancient GNU ld didn't support --whole-archive et. al. 17416 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17417 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17418 else 17419 whole_archive_flag_spec_GCJ= 17420 fi 17421 supports_anon_versioning=no 17422 case `$LD -v 2>/dev/null` in 17423 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17424 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17425 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17426 *\ 2.11.*) ;; # other 2.11 versions 17427 *) supports_anon_versioning=yes ;; 17428 esac 17429 17430 # See if GNU ld supports shared libraries. 17431 case $host_os in 17432 aix[3-9]*) 17433 # On AIX/PPC, the GNU linker is very broken 17434 if test "$host_cpu" != ia64; then 17435 ld_shlibs_GCJ=no 17436 cat <<EOF 1>&2 17437 17438*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17439*** to be unable to reliably create shared libraries on AIX. 17440*** Therefore, libtool is disabling shared libraries support. If you 17441*** really care for shared libraries, you may want to modify your PATH 17442*** so that a non-GNU linker is found, and then restart. 17443 17444EOF 17445 fi 17446 ;; 17447 17448 amigaos*) 17449 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)' 17450 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17451 hardcode_minus_L_GCJ=yes 17452 17453 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17454 # that the semantics of dynamic libraries on AmigaOS, at least up 17455 # to version 4, is to share data among multiple programs linked 17456 # with the same dynamic library. Since this doesn't match the 17457 # behavior of shared libraries on other platforms, we can't use 17458 # them. 17459 ld_shlibs_GCJ=no 17460 ;; 17461 17462 beos*) 17463 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17464 allow_undefined_flag_GCJ=unsupported 17465 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17466 # support --undefined. This deserves some investigation. FIXME 17467 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17468 else 17469 ld_shlibs_GCJ=no 17470 fi 17471 ;; 17472 17473 cygwin* | mingw* | pw32*) 17474 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17475 # as there is no search path for DLLs. 17476 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17477 allow_undefined_flag_GCJ=unsupported 17478 always_export_symbols_GCJ=no 17479 enable_shared_with_static_runtimes_GCJ=yes 17480 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17481 17482 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17483 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17484 # If the export-symbols file already is a .def file (1st line 17485 # is EXPORTS), use it as is; otherwise, prepend... 17486 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17487 cp $export_symbols $output_objdir/$soname.def; 17488 else 17489 echo EXPORTS > $output_objdir/$soname.def; 17490 cat $export_symbols >> $output_objdir/$soname.def; 17491 fi~ 17492 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17493 else 17494 ld_shlibs_GCJ=no 17495 fi 17496 ;; 17497 17498 interix[3-9]*) 17499 hardcode_direct_GCJ=no 17500 hardcode_shlibpath_var_GCJ=no 17501 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17502 export_dynamic_flag_spec_GCJ='${wl}-E' 17503 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17504 # Instead, shared libraries are loaded at an image base (0x10000000 by 17505 # default) and relocated if they conflict, which is a slow very memory 17506 # consuming and fragmenting process. To avoid this, we pick a random, 17507 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17508 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17509 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' 17510 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' 17511 ;; 17512 17513 gnu* | linux* | k*bsd*-gnu) 17514 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17515 tmp_addflag= 17516 case $cc_basename,$host_cpu in 17517 pgcc*) # Portland Group C compiler 17518 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' 17519 tmp_addflag=' $pic_flag' 17520 ;; 17521 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17522 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' 17523 tmp_addflag=' $pic_flag -Mnomain' ;; 17524 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17525 tmp_addflag=' -i_dynamic' ;; 17526 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17527 tmp_addflag=' -i_dynamic -nofor_main' ;; 17528 ifc* | ifort*) # Intel Fortran compiler 17529 tmp_addflag=' -nofor_main' ;; 17530 esac 17531 case `$CC -V 2>&1 | sed 5q` in 17532 *Sun\ C*) # Sun C 5.9 17533 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' 17534 tmp_sharedflag='-G' ;; 17535 *Sun\ F*) # Sun Fortran 8.3 17536 tmp_sharedflag='-G' ;; 17537 *) 17538 tmp_sharedflag='-shared' ;; 17539 esac 17540 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17541 17542 if test $supports_anon_versioning = yes; then 17543 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17544 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17545 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17546 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17547 fi 17548 else 17549 ld_shlibs_GCJ=no 17550 fi 17551 ;; 17552 17553 netbsd*) 17554 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17555 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17556 wlarc= 17557 else 17558 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17559 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17560 fi 17561 ;; 17562 17563 solaris*) 17564 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17565 ld_shlibs_GCJ=no 17566 cat <<EOF 1>&2 17567 17568*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17569*** create shared libraries on Solaris systems. Therefore, libtool 17570*** is disabling shared libraries support. We urge you to upgrade GNU 17571*** binutils to release 2.9.1 or newer. Another option is to modify 17572*** your PATH or compiler configuration so that the native linker is 17573*** used, and then restart. 17574 17575EOF 17576 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17577 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17578 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17579 else 17580 ld_shlibs_GCJ=no 17581 fi 17582 ;; 17583 17584 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17585 case `$LD -v 2>&1` in 17586 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17587 ld_shlibs_GCJ=no 17588 cat <<_LT_EOF 1>&2 17589 17590*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17591*** reliably create shared libraries on SCO systems. Therefore, libtool 17592*** is disabling shared libraries support. We urge you to upgrade GNU 17593*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17594*** your PATH or compiler configuration so that the native linker is 17595*** used, and then restart. 17596 17597_LT_EOF 17598 ;; 17599 *) 17600 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17601 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17602 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17603 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17604 else 17605 ld_shlibs_GCJ=no 17606 fi 17607 ;; 17608 esac 17609 ;; 17610 17611 sunos4*) 17612 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17613 wlarc= 17614 hardcode_direct_GCJ=yes 17615 hardcode_shlibpath_var_GCJ=no 17616 ;; 17617 17618 *) 17619 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17620 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17621 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17622 else 17623 ld_shlibs_GCJ=no 17624 fi 17625 ;; 17626 esac 17627 17628 if test "$ld_shlibs_GCJ" = no; then 17629 runpath_var= 17630 hardcode_libdir_flag_spec_GCJ= 17631 export_dynamic_flag_spec_GCJ= 17632 whole_archive_flag_spec_GCJ= 17633 fi 17634 else 17635 # PORTME fill in a description of your system's linker (not GNU ld) 17636 case $host_os in 17637 aix3*) 17638 allow_undefined_flag_GCJ=unsupported 17639 always_export_symbols_GCJ=yes 17640 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' 17641 # Note: this linker hardcodes the directories in LIBPATH if there 17642 # are no directories specified by -L. 17643 hardcode_minus_L_GCJ=yes 17644 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17645 # Neither direct hardcoding nor static linking is supported with a 17646 # broken collect2. 17647 hardcode_direct_GCJ=unsupported 17648 fi 17649 ;; 17650 17651 aix[4-9]*) 17652 if test "$host_cpu" = ia64; then 17653 # On IA64, the linker does run time linking by default, so we don't 17654 # have to do anything special. 17655 aix_use_runtimelinking=no 17656 exp_sym_flag='-Bexport' 17657 no_entry_flag="" 17658 else 17659 # If we're using GNU nm, then we don't want the "-C" option. 17660 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17661 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17662 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' 17663 else 17664 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' 17665 fi 17666 aix_use_runtimelinking=no 17667 17668 # Test if we are trying to use run time linking or normal 17669 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17670 # need to do runtime linking. 17671 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17672 for ld_flag in $LDFLAGS; do 17673 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17674 aix_use_runtimelinking=yes 17675 break 17676 fi 17677 done 17678 ;; 17679 esac 17680 17681 exp_sym_flag='-bexport' 17682 no_entry_flag='-bnoentry' 17683 fi 17684 17685 # When large executables or shared objects are built, AIX ld can 17686 # have problems creating the table of contents. If linking a library 17687 # or program results in "error TOC overflow" add -mminimal-toc to 17688 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17689 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17690 17691 archive_cmds_GCJ='' 17692 hardcode_direct_GCJ=yes 17693 hardcode_libdir_separator_GCJ=':' 17694 link_all_deplibs_GCJ=yes 17695 17696 if test "$GCC" = yes; then 17697 case $host_os in aix4.[012]|aix4.[012].*) 17698 # We only want to do this on AIX 4.2 and lower, the check 17699 # below for broken collect2 doesn't work under 4.3+ 17700 collect2name=`${CC} -print-prog-name=collect2` 17701 if test -f "$collect2name" && \ 17702 strings "$collect2name" | grep resolve_lib_name >/dev/null 17703 then 17704 # We have reworked collect2 17705 : 17706 else 17707 # We have old collect2 17708 hardcode_direct_GCJ=unsupported 17709 # It fails to find uninstalled libraries when the uninstalled 17710 # path is not listed in the libpath. Setting hardcode_minus_L 17711 # to unsupported forces relinking 17712 hardcode_minus_L_GCJ=yes 17713 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17714 hardcode_libdir_separator_GCJ= 17715 fi 17716 ;; 17717 esac 17718 shared_flag='-shared' 17719 if test "$aix_use_runtimelinking" = yes; then 17720 shared_flag="$shared_flag "'${wl}-G' 17721 fi 17722 else 17723 # not using gcc 17724 if test "$host_cpu" = ia64; then 17725 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17726 # chokes on -Wl,-G. The following line is correct: 17727 shared_flag='-G' 17728 else 17729 if test "$aix_use_runtimelinking" = yes; then 17730 shared_flag='${wl}-G' 17731 else 17732 shared_flag='${wl}-bM:SRE' 17733 fi 17734 fi 17735 fi 17736 17737 # It seems that -bexpall does not export symbols beginning with 17738 # underscore (_), so it is better to generate a list of symbols to export. 17739 always_export_symbols_GCJ=yes 17740 if test "$aix_use_runtimelinking" = yes; then 17741 # Warning - without using the other runtime loading flags (-brtl), 17742 # -berok will link without error, but may produce a broken library. 17743 allow_undefined_flag_GCJ='-berok' 17744 # Determine the default libpath from the value encoded in an empty executable. 17745 cat >conftest.$ac_ext <<_ACEOF 17746/* confdefs.h. */ 17747_ACEOF 17748cat confdefs.h >>conftest.$ac_ext 17749cat >>conftest.$ac_ext <<_ACEOF 17750/* end confdefs.h. */ 17751 17752int 17753main () 17754{ 17755 17756 ; 17757 return 0; 17758} 17759_ACEOF 17760rm -f conftest.$ac_objext conftest$ac_exeext 17761if { (ac_try="$ac_link" 17762case "(($ac_try" in 17763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17764 *) ac_try_echo=$ac_try;; 17765esac 17766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17767$as_echo "$ac_try_echo") >&5 17768 (eval "$ac_link") 2>conftest.er1 17769 ac_status=$? 17770 grep -v '^ *+' conftest.er1 >conftest.err 17771 rm -f conftest.er1 17772 cat conftest.err >&5 17773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17774 (exit $ac_status); } && { 17775 test -z "$ac_c_werror_flag" || 17776 test ! -s conftest.err 17777 } && test -s conftest$ac_exeext && { 17778 test "$cross_compiling" = yes || 17779 $as_test_x conftest$ac_exeext 17780 }; then 17781 17782lt_aix_libpath_sed=' 17783 /Import File Strings/,/^$/ { 17784 /^0/ { 17785 s/^0 *\(.*\)$/\1/ 17786 p 17787 } 17788 }' 17789aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17790# Check for a 64-bit object if we didn't find anything. 17791if test -z "$aix_libpath"; then 17792 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17793fi 17794else 17795 $as_echo "$as_me: failed program was:" >&5 17796sed 's/^/| /' conftest.$ac_ext >&5 17797 17798 17799fi 17800 17801rm -rf conftest.dSYM 17802rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17803 conftest$ac_exeext conftest.$ac_ext 17804if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17805 17806 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17807 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" 17808 else 17809 if test "$host_cpu" = ia64; then 17810 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17811 allow_undefined_flag_GCJ="-z nodefs" 17812 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" 17813 else 17814 # Determine the default libpath from the value encoded in an empty executable. 17815 cat >conftest.$ac_ext <<_ACEOF 17816/* confdefs.h. */ 17817_ACEOF 17818cat confdefs.h >>conftest.$ac_ext 17819cat >>conftest.$ac_ext <<_ACEOF 17820/* end confdefs.h. */ 17821 17822int 17823main () 17824{ 17825 17826 ; 17827 return 0; 17828} 17829_ACEOF 17830rm -f conftest.$ac_objext conftest$ac_exeext 17831if { (ac_try="$ac_link" 17832case "(($ac_try" in 17833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17834 *) ac_try_echo=$ac_try;; 17835esac 17836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17837$as_echo "$ac_try_echo") >&5 17838 (eval "$ac_link") 2>conftest.er1 17839 ac_status=$? 17840 grep -v '^ *+' conftest.er1 >conftest.err 17841 rm -f conftest.er1 17842 cat conftest.err >&5 17843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17844 (exit $ac_status); } && { 17845 test -z "$ac_c_werror_flag" || 17846 test ! -s conftest.err 17847 } && test -s conftest$ac_exeext && { 17848 test "$cross_compiling" = yes || 17849 $as_test_x conftest$ac_exeext 17850 }; then 17851 17852lt_aix_libpath_sed=' 17853 /Import File Strings/,/^$/ { 17854 /^0/ { 17855 s/^0 *\(.*\)$/\1/ 17856 p 17857 } 17858 }' 17859aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17860# Check for a 64-bit object if we didn't find anything. 17861if test -z "$aix_libpath"; then 17862 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17863fi 17864else 17865 $as_echo "$as_me: failed program was:" >&5 17866sed 's/^/| /' conftest.$ac_ext >&5 17867 17868 17869fi 17870 17871rm -rf conftest.dSYM 17872rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17873 conftest$ac_exeext conftest.$ac_ext 17874if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17875 17876 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17877 # Warning - without using the other run time loading flags, 17878 # -berok will link without error, but may produce a broken library. 17879 no_undefined_flag_GCJ=' ${wl}-bernotok' 17880 allow_undefined_flag_GCJ=' ${wl}-berok' 17881 # Exported symbols can be pulled into shared objects from archives 17882 whole_archive_flag_spec_GCJ='$convenience' 17883 archive_cmds_need_lc_GCJ=yes 17884 # This is similar to how AIX traditionally builds its shared libraries. 17885 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' 17886 fi 17887 fi 17888 ;; 17889 17890 amigaos*) 17891 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)' 17892 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17893 hardcode_minus_L_GCJ=yes 17894 # see comment about different semantics on the GNU ld section 17895 ld_shlibs_GCJ=no 17896 ;; 17897 17898 bsdi[45]*) 17899 export_dynamic_flag_spec_GCJ=-rdynamic 17900 ;; 17901 17902 cygwin* | mingw* | pw32*) 17903 # When not using gcc, we currently assume that we are using 17904 # Microsoft Visual C++. 17905 # hardcode_libdir_flag_spec is actually meaningless, as there is 17906 # no search path for DLLs. 17907 hardcode_libdir_flag_spec_GCJ=' ' 17908 allow_undefined_flag_GCJ=unsupported 17909 # Tell ltmain to make .lib files, not .a files. 17910 libext=lib 17911 # Tell ltmain to make .dll files, not .so files. 17912 shrext_cmds=".dll" 17913 # FIXME: Setting linknames here is a bad hack. 17914 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17915 # The linker will automatically build a .lib file if we build a DLL. 17916 old_archive_From_new_cmds_GCJ='true' 17917 # FIXME: Should let the user specify the lib program. 17918 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17919 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17920 enable_shared_with_static_runtimes_GCJ=yes 17921 ;; 17922 17923 darwin* | rhapsody*) 17924 case $host_os in 17925 rhapsody* | darwin1.[012]) 17926 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17927 ;; 17928 *) # Darwin 1.3 on 17929 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17930 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17931 else 17932 case ${MACOSX_DEPLOYMENT_TARGET} in 17933 10.[012]) 17934 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17935 ;; 17936 10.*) 17937 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17938 ;; 17939 esac 17940 fi 17941 ;; 17942 esac 17943 archive_cmds_need_lc_GCJ=no 17944 hardcode_direct_GCJ=no 17945 hardcode_automatic_GCJ=yes 17946 hardcode_shlibpath_var_GCJ=unsupported 17947 whole_archive_flag_spec_GCJ='' 17948 link_all_deplibs_GCJ=yes 17949 if test "$GCC" = yes ; then 17950 output_verbose_link_cmd='echo' 17951 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}" 17952 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 17953 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}" 17954 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}" 17955 else 17956 case $cc_basename in 17957 xlc*) 17958 output_verbose_link_cmd='echo' 17959 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17960 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17961 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17962 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}' 17963 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}' 17964 ;; 17965 *) 17966 ld_shlibs_GCJ=no 17967 ;; 17968 esac 17969 fi 17970 ;; 17971 17972 dgux*) 17973 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17974 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17975 hardcode_shlibpath_var_GCJ=no 17976 ;; 17977 17978 freebsd1*) 17979 ld_shlibs_GCJ=no 17980 ;; 17981 17982 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17983 # support. Future versions do this automatically, but an explicit c++rt0.o 17984 # does not break anything, and helps significantly (at the cost of a little 17985 # extra space). 17986 freebsd2.2*) 17987 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17988 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17989 hardcode_direct_GCJ=yes 17990 hardcode_shlibpath_var_GCJ=no 17991 ;; 17992 17993 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17994 freebsd2*) 17995 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17996 hardcode_direct_GCJ=yes 17997 hardcode_minus_L_GCJ=yes 17998 hardcode_shlibpath_var_GCJ=no 17999 ;; 18000 18001 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18002 freebsd* | dragonfly*) 18003 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18004 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18005 hardcode_direct_GCJ=yes 18006 hardcode_shlibpath_var_GCJ=no 18007 ;; 18008 18009 hpux9*) 18010 if test "$GCC" = yes; then 18011 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' 18012 else 18013 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' 18014 fi 18015 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18016 hardcode_libdir_separator_GCJ=: 18017 hardcode_direct_GCJ=yes 18018 18019 # hardcode_minus_L: Not really in the search PATH, 18020 # but as the default location of the library. 18021 hardcode_minus_L_GCJ=yes 18022 export_dynamic_flag_spec_GCJ='${wl}-E' 18023 ;; 18024 18025 hpux10*) 18026 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18027 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18028 else 18029 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18030 fi 18031 if test "$with_gnu_ld" = no; then 18032 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18033 hardcode_libdir_separator_GCJ=: 18034 18035 hardcode_direct_GCJ=yes 18036 export_dynamic_flag_spec_GCJ='${wl}-E' 18037 18038 # hardcode_minus_L: Not really in the search PATH, 18039 # but as the default location of the library. 18040 hardcode_minus_L_GCJ=yes 18041 fi 18042 ;; 18043 18044 hpux11*) 18045 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18046 case $host_cpu in 18047 hppa*64*) 18048 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18049 ;; 18050 ia64*) 18051 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18052 ;; 18053 *) 18054 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18055 ;; 18056 esac 18057 else 18058 case $host_cpu in 18059 hppa*64*) 18060 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18061 ;; 18062 ia64*) 18063 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18064 ;; 18065 *) 18066 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18067 ;; 18068 esac 18069 fi 18070 if test "$with_gnu_ld" = no; then 18071 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18072 hardcode_libdir_separator_GCJ=: 18073 18074 case $host_cpu in 18075 hppa*64*|ia64*) 18076 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18077 hardcode_direct_GCJ=no 18078 hardcode_shlibpath_var_GCJ=no 18079 ;; 18080 *) 18081 hardcode_direct_GCJ=yes 18082 export_dynamic_flag_spec_GCJ='${wl}-E' 18083 18084 # hardcode_minus_L: Not really in the search PATH, 18085 # but as the default location of the library. 18086 hardcode_minus_L_GCJ=yes 18087 ;; 18088 esac 18089 fi 18090 ;; 18091 18092 irix5* | irix6* | nonstopux*) 18093 if test "$GCC" = yes; then 18094 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' 18095 else 18096 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' 18097 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18098 fi 18099 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18100 hardcode_libdir_separator_GCJ=: 18101 link_all_deplibs_GCJ=yes 18102 ;; 18103 18104 netbsd*) 18105 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18106 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18107 else 18108 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18109 fi 18110 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18111 hardcode_direct_GCJ=yes 18112 hardcode_shlibpath_var_GCJ=no 18113 ;; 18114 18115 newsos6) 18116 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18117 hardcode_direct_GCJ=yes 18118 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18119 hardcode_libdir_separator_GCJ=: 18120 hardcode_shlibpath_var_GCJ=no 18121 ;; 18122 18123 openbsd*) 18124 if test -f /usr/libexec/ld.so; then 18125 hardcode_direct_GCJ=yes 18126 hardcode_shlibpath_var_GCJ=no 18127 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18128 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18129 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18130 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18131 export_dynamic_flag_spec_GCJ='${wl}-E' 18132 else 18133 case $host_os in 18134 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18135 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18136 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18137 ;; 18138 *) 18139 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18140 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18141 ;; 18142 esac 18143 fi 18144 else 18145 ld_shlibs_GCJ=no 18146 fi 18147 ;; 18148 18149 os2*) 18150 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18151 hardcode_minus_L_GCJ=yes 18152 allow_undefined_flag_GCJ=unsupported 18153 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' 18154 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18155 ;; 18156 18157 osf3*) 18158 if test "$GCC" = yes; then 18159 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18160 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' 18161 else 18162 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18163 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' 18164 fi 18165 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18166 hardcode_libdir_separator_GCJ=: 18167 ;; 18168 18169 osf4* | osf5*) # as osf3* with the addition of -msym flag 18170 if test "$GCC" = yes; then 18171 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18172 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' 18173 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18174 else 18175 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18176 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' 18177 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~ 18178 $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' 18179 18180 # Both c and cxx compiler support -rpath directly 18181 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18182 fi 18183 hardcode_libdir_separator_GCJ=: 18184 ;; 18185 18186 solaris*) 18187 no_undefined_flag_GCJ=' -z text' 18188 if test "$GCC" = yes; then 18189 wlarc='${wl}' 18190 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18191 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18192 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18193 else 18194 wlarc='' 18195 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18196 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18197 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18198 fi 18199 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18200 hardcode_shlibpath_var_GCJ=no 18201 case $host_os in 18202 solaris2.[0-5] | solaris2.[0-5].*) ;; 18203 *) 18204 # The compiler driver will combine and reorder linker options, 18205 # but understands `-z linker_flag'. GCC discards it without `$wl', 18206 # but is careful enough not to reorder. 18207 # Supported since Solaris 2.6 (maybe 2.5.1?) 18208 if test "$GCC" = yes; then 18209 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18210 else 18211 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18212 fi 18213 ;; 18214 esac 18215 link_all_deplibs_GCJ=yes 18216 ;; 18217 18218 sunos4*) 18219 if test "x$host_vendor" = xsequent; then 18220 # Use $CC to link under sequent, because it throws in some extra .o 18221 # files that make .init and .fini sections work. 18222 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18223 else 18224 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18225 fi 18226 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18227 hardcode_direct_GCJ=yes 18228 hardcode_minus_L_GCJ=yes 18229 hardcode_shlibpath_var_GCJ=no 18230 ;; 18231 18232 sysv4) 18233 case $host_vendor in 18234 sni) 18235 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18236 hardcode_direct_GCJ=yes # is this really true??? 18237 ;; 18238 siemens) 18239 ## LD is ld it makes a PLAMLIB 18240 ## CC just makes a GrossModule. 18241 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18242 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18243 hardcode_direct_GCJ=no 18244 ;; 18245 motorola) 18246 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18247 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18248 ;; 18249 esac 18250 runpath_var='LD_RUN_PATH' 18251 hardcode_shlibpath_var_GCJ=no 18252 ;; 18253 18254 sysv4.3*) 18255 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18256 hardcode_shlibpath_var_GCJ=no 18257 export_dynamic_flag_spec_GCJ='-Bexport' 18258 ;; 18259 18260 sysv4*MP*) 18261 if test -d /usr/nec; then 18262 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18263 hardcode_shlibpath_var_GCJ=no 18264 runpath_var=LD_RUN_PATH 18265 hardcode_runpath_var=yes 18266 ld_shlibs_GCJ=yes 18267 fi 18268 ;; 18269 18270 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18271 no_undefined_flag_GCJ='${wl}-z,text' 18272 archive_cmds_need_lc_GCJ=no 18273 hardcode_shlibpath_var_GCJ=no 18274 runpath_var='LD_RUN_PATH' 18275 18276 if test "$GCC" = yes; then 18277 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18278 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18279 else 18280 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18281 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18282 fi 18283 ;; 18284 18285 sysv5* | sco3.2v5* | sco5v6*) 18286 # Note: We can NOT use -z defs as we might desire, because we do not 18287 # link with -lc, and that would cause any symbols used from libc to 18288 # always be unresolved, which means just about no library would 18289 # ever link correctly. If we're not using GNU ld we use -z text 18290 # though, which does catch some bad symbols but isn't as heavy-handed 18291 # as -z defs. 18292 no_undefined_flag_GCJ='${wl}-z,text' 18293 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18294 archive_cmds_need_lc_GCJ=no 18295 hardcode_shlibpath_var_GCJ=no 18296 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18297 hardcode_libdir_separator_GCJ=':' 18298 link_all_deplibs_GCJ=yes 18299 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18300 runpath_var='LD_RUN_PATH' 18301 18302 if test "$GCC" = yes; then 18303 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18304 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18305 else 18306 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18307 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18308 fi 18309 ;; 18310 18311 uts4*) 18312 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18313 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18314 hardcode_shlibpath_var_GCJ=no 18315 ;; 18316 18317 *) 18318 ld_shlibs_GCJ=no 18319 ;; 18320 esac 18321 fi 18322 18323{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18324$as_echo "$ld_shlibs_GCJ" >&6; } 18325test "$ld_shlibs_GCJ" = no && can_build_shared=no 18326 18327# 18328# Do we need to explicitly link libc? 18329# 18330case "x$archive_cmds_need_lc_GCJ" in 18331x|xyes) 18332 # Assume -lc should be added 18333 archive_cmds_need_lc_GCJ=yes 18334 18335 if test "$enable_shared" = yes && test "$GCC" = yes; then 18336 case $archive_cmds_GCJ in 18337 *'~'*) 18338 # FIXME: we may have to deal with multi-command sequences. 18339 ;; 18340 '$CC '*) 18341 # Test whether the compiler implicitly links with -lc since on some 18342 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18343 # to ld, don't add -lc before -lgcc. 18344 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18345$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18346 $rm conftest* 18347 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18348 18349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18350 (eval $ac_compile) 2>&5 18351 ac_status=$? 18352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18353 (exit $ac_status); } 2>conftest.err; then 18354 soname=conftest 18355 lib=conftest 18356 libobjs=conftest.$ac_objext 18357 deplibs= 18358 wl=$lt_prog_compiler_wl_GCJ 18359 pic_flag=$lt_prog_compiler_pic_GCJ 18360 compiler_flags=-v 18361 linker_flags=-v 18362 verstring= 18363 output_objdir=. 18364 libname=conftest 18365 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18366 allow_undefined_flag_GCJ= 18367 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18368 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18369 ac_status=$? 18370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18371 (exit $ac_status); } 18372 then 18373 archive_cmds_need_lc_GCJ=no 18374 else 18375 archive_cmds_need_lc_GCJ=yes 18376 fi 18377 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18378 else 18379 cat conftest.err 1>&5 18380 fi 18381 $rm conftest* 18382 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18383$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 18384 ;; 18385 esac 18386 fi 18387 ;; 18388esac 18389 18390{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18391$as_echo_n "checking dynamic linker characteristics... " >&6; } 18392library_names_spec= 18393libname_spec='lib$name' 18394soname_spec= 18395shrext_cmds=".so" 18396postinstall_cmds= 18397postuninstall_cmds= 18398finish_cmds= 18399finish_eval= 18400shlibpath_var= 18401shlibpath_overrides_runpath=unknown 18402version_type=none 18403dynamic_linker="$host_os ld.so" 18404sys_lib_dlsearch_path_spec="/lib /usr/lib" 18405 18406need_lib_prefix=unknown 18407hardcode_into_libs=no 18408 18409# when you set need_version to no, make sure it does not cause -set_version 18410# flags to be left without arguments 18411need_version=unknown 18412 18413case $host_os in 18414aix3*) 18415 version_type=linux 18416 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18417 shlibpath_var=LIBPATH 18418 18419 # AIX 3 has no versioning support, so we append a major version to the name. 18420 soname_spec='${libname}${release}${shared_ext}$major' 18421 ;; 18422 18423aix[4-9]*) 18424 version_type=linux 18425 need_lib_prefix=no 18426 need_version=no 18427 hardcode_into_libs=yes 18428 if test "$host_cpu" = ia64; then 18429 # AIX 5 supports IA64 18430 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18431 shlibpath_var=LD_LIBRARY_PATH 18432 else 18433 # With GCC up to 2.95.x, collect2 would create an import file 18434 # for dependence libraries. The import file would start with 18435 # the line `#! .'. This would cause the generated library to 18436 # depend on `.', always an invalid library. This was fixed in 18437 # development snapshots of GCC prior to 3.0. 18438 case $host_os in 18439 aix4 | aix4.[01] | aix4.[01].*) 18440 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18441 echo ' yes ' 18442 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18443 : 18444 else 18445 can_build_shared=no 18446 fi 18447 ;; 18448 esac 18449 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18450 # soname into executable. Probably we can add versioning support to 18451 # collect2, so additional links can be useful in future. 18452 if test "$aix_use_runtimelinking" = yes; then 18453 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18454 # instead of lib<name>.a to let people know that these are not 18455 # typical AIX shared libraries. 18456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18457 else 18458 # We preserve .a as extension for shared libraries through AIX4.2 18459 # and later when we are not doing run time linking. 18460 library_names_spec='${libname}${release}.a $libname.a' 18461 soname_spec='${libname}${release}${shared_ext}$major' 18462 fi 18463 shlibpath_var=LIBPATH 18464 fi 18465 ;; 18466 18467amigaos*) 18468 library_names_spec='$libname.ixlibrary $libname.a' 18469 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18470 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' 18471 ;; 18472 18473beos*) 18474 library_names_spec='${libname}${shared_ext}' 18475 dynamic_linker="$host_os ld.so" 18476 shlibpath_var=LIBRARY_PATH 18477 ;; 18478 18479bsdi[45]*) 18480 version_type=linux 18481 need_version=no 18482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18483 soname_spec='${libname}${release}${shared_ext}$major' 18484 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18485 shlibpath_var=LD_LIBRARY_PATH 18486 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18487 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18488 # the default ld.so.conf also contains /usr/contrib/lib and 18489 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18490 # libtool to hard-code these into programs 18491 ;; 18492 18493cygwin* | mingw* | pw32*) 18494 version_type=windows 18495 shrext_cmds=".dll" 18496 need_version=no 18497 need_lib_prefix=no 18498 18499 case $GCC,$host_os in 18500 yes,cygwin* | yes,mingw* | yes,pw32*) 18501 library_names_spec='$libname.dll.a' 18502 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18503 postinstall_cmds='base_file=`basename \${file}`~ 18504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18505 dldir=$destdir/`dirname \$dlpath`~ 18506 test -d \$dldir || mkdir -p \$dldir~ 18507 $install_prog $dir/$dlname \$dldir/$dlname~ 18508 chmod a+x \$dldir/$dlname' 18509 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18510 dlpath=$dir/\$dldll~ 18511 $rm \$dlpath' 18512 shlibpath_overrides_runpath=yes 18513 18514 case $host_os in 18515 cygwin*) 18516 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18517 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18518 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18519 ;; 18520 mingw*) 18521 # MinGW DLLs use traditional 'lib' prefix 18522 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18523 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18524 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18525 # It is most probably a Windows format PATH printed by 18526 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18527 # path with ; separators, and with drive letters. We can handle the 18528 # drive letters (cygwin fileutils understands them), so leave them, 18529 # especially as we might pass files found there to a mingw objdump, 18530 # which wouldn't understand a cygwinified path. Ahh. 18531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18532 else 18533 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18534 fi 18535 ;; 18536 pw32*) 18537 # pw32 DLLs use 'pw' prefix rather than 'lib' 18538 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18539 ;; 18540 esac 18541 ;; 18542 18543 *) 18544 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18545 ;; 18546 esac 18547 dynamic_linker='Win32 ld.exe' 18548 # FIXME: first we should search . and the directory the executable is in 18549 shlibpath_var=PATH 18550 ;; 18551 18552darwin* | rhapsody*) 18553 dynamic_linker="$host_os dyld" 18554 version_type=darwin 18555 need_lib_prefix=no 18556 need_version=no 18557 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18558 soname_spec='${libname}${release}${major}$shared_ext' 18559 shlibpath_overrides_runpath=yes 18560 shlibpath_var=DYLD_LIBRARY_PATH 18561 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18562 18563 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18564 ;; 18565 18566dgux*) 18567 version_type=linux 18568 need_lib_prefix=no 18569 need_version=no 18570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18571 soname_spec='${libname}${release}${shared_ext}$major' 18572 shlibpath_var=LD_LIBRARY_PATH 18573 ;; 18574 18575freebsd1*) 18576 dynamic_linker=no 18577 ;; 18578 18579freebsd* | dragonfly*) 18580 # DragonFly does not have aout. When/if they implement a new 18581 # versioning mechanism, adjust this. 18582 if test -x /usr/bin/objformat; then 18583 objformat=`/usr/bin/objformat` 18584 else 18585 case $host_os in 18586 freebsd[123]*) objformat=aout ;; 18587 *) objformat=elf ;; 18588 esac 18589 fi 18590 version_type=freebsd-$objformat 18591 case $version_type in 18592 freebsd-elf*) 18593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18594 need_version=no 18595 need_lib_prefix=no 18596 ;; 18597 freebsd-*) 18598 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18599 need_version=yes 18600 ;; 18601 esac 18602 shlibpath_var=LD_LIBRARY_PATH 18603 case $host_os in 18604 freebsd2*) 18605 shlibpath_overrides_runpath=yes 18606 ;; 18607 freebsd3.[01]* | freebsdelf3.[01]*) 18608 shlibpath_overrides_runpath=yes 18609 hardcode_into_libs=yes 18610 ;; 18611 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18612 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18613 shlibpath_overrides_runpath=no 18614 hardcode_into_libs=yes 18615 ;; 18616 *) # from 4.6 on, and DragonFly 18617 shlibpath_overrides_runpath=yes 18618 hardcode_into_libs=yes 18619 ;; 18620 esac 18621 ;; 18622 18623gnu*) 18624 version_type=linux 18625 need_lib_prefix=no 18626 need_version=no 18627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18628 soname_spec='${libname}${release}${shared_ext}$major' 18629 shlibpath_var=LD_LIBRARY_PATH 18630 hardcode_into_libs=yes 18631 ;; 18632 18633hpux9* | hpux10* | hpux11*) 18634 # Give a soname corresponding to the major version so that dld.sl refuses to 18635 # link against other versions. 18636 version_type=sunos 18637 need_lib_prefix=no 18638 need_version=no 18639 case $host_cpu in 18640 ia64*) 18641 shrext_cmds='.so' 18642 hardcode_into_libs=yes 18643 dynamic_linker="$host_os dld.so" 18644 shlibpath_var=LD_LIBRARY_PATH 18645 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18647 soname_spec='${libname}${release}${shared_ext}$major' 18648 if test "X$HPUX_IA64_MODE" = X32; then 18649 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18650 else 18651 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18652 fi 18653 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18654 ;; 18655 hppa*64*) 18656 shrext_cmds='.sl' 18657 hardcode_into_libs=yes 18658 dynamic_linker="$host_os dld.sl" 18659 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18660 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18662 soname_spec='${libname}${release}${shared_ext}$major' 18663 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18664 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18665 ;; 18666 *) 18667 shrext_cmds='.sl' 18668 dynamic_linker="$host_os dld.sl" 18669 shlibpath_var=SHLIB_PATH 18670 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18672 soname_spec='${libname}${release}${shared_ext}$major' 18673 ;; 18674 esac 18675 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18676 postinstall_cmds='chmod 555 $lib' 18677 ;; 18678 18679interix[3-9]*) 18680 version_type=linux 18681 need_lib_prefix=no 18682 need_version=no 18683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18684 soname_spec='${libname}${release}${shared_ext}$major' 18685 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18686 shlibpath_var=LD_LIBRARY_PATH 18687 shlibpath_overrides_runpath=no 18688 hardcode_into_libs=yes 18689 ;; 18690 18691irix5* | irix6* | nonstopux*) 18692 case $host_os in 18693 nonstopux*) version_type=nonstopux ;; 18694 *) 18695 if test "$lt_cv_prog_gnu_ld" = yes; then 18696 version_type=linux 18697 else 18698 version_type=irix 18699 fi ;; 18700 esac 18701 need_lib_prefix=no 18702 need_version=no 18703 soname_spec='${libname}${release}${shared_ext}$major' 18704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18705 case $host_os in 18706 irix5* | nonstopux*) 18707 libsuff= shlibsuff= 18708 ;; 18709 *) 18710 case $LD in # libtool.m4 will add one of these switches to LD 18711 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18712 libsuff= shlibsuff= libmagic=32-bit;; 18713 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18714 libsuff=32 shlibsuff=N32 libmagic=N32;; 18715 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18716 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18717 *) libsuff= shlibsuff= libmagic=never-match;; 18718 esac 18719 ;; 18720 esac 18721 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18722 shlibpath_overrides_runpath=no 18723 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18724 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18725 hardcode_into_libs=yes 18726 ;; 18727 18728# No shared lib support for Linux oldld, aout, or coff. 18729linux*oldld* | linux*aout* | linux*coff*) 18730 dynamic_linker=no 18731 ;; 18732 18733# This must be Linux ELF. 18734linux* | k*bsd*-gnu) 18735 version_type=linux 18736 need_lib_prefix=no 18737 need_version=no 18738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18739 soname_spec='${libname}${release}${shared_ext}$major' 18740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18741 shlibpath_var=LD_LIBRARY_PATH 18742 shlibpath_overrides_runpath=no 18743 # This implies no fast_install, which is unacceptable. 18744 # Some rework will be needed to allow for fast_install 18745 # before this can be enabled. 18746 hardcode_into_libs=yes 18747 18748 # Append ld.so.conf contents to the search path 18749 if test -f /etc/ld.so.conf; then 18750 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' ' '` 18751 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18752 fi 18753 18754 # We used to test for /lib/ld.so.1 and disable shared libraries on 18755 # powerpc, because MkLinux only supported shared libraries with the 18756 # GNU dynamic linker. Since this was broken with cross compilers, 18757 # most powerpc-linux boxes support dynamic linking these days and 18758 # people can always --disable-shared, the test was removed, and we 18759 # assume the GNU/Linux dynamic linker is in use. 18760 dynamic_linker='GNU/Linux ld.so' 18761 ;; 18762 18763netbsd*) 18764 version_type=sunos 18765 need_lib_prefix=no 18766 need_version=no 18767 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18769 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18770 dynamic_linker='NetBSD (a.out) ld.so' 18771 else 18772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18773 soname_spec='${libname}${release}${shared_ext}$major' 18774 dynamic_linker='NetBSD ld.elf_so' 18775 fi 18776 shlibpath_var=LD_LIBRARY_PATH 18777 shlibpath_overrides_runpath=yes 18778 hardcode_into_libs=yes 18779 ;; 18780 18781newsos6) 18782 version_type=linux 18783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18784 shlibpath_var=LD_LIBRARY_PATH 18785 shlibpath_overrides_runpath=yes 18786 ;; 18787 18788nto-qnx*) 18789 version_type=linux 18790 need_lib_prefix=no 18791 need_version=no 18792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18793 soname_spec='${libname}${release}${shared_ext}$major' 18794 shlibpath_var=LD_LIBRARY_PATH 18795 shlibpath_overrides_runpath=yes 18796 ;; 18797 18798openbsd*) 18799 version_type=sunos 18800 sys_lib_dlsearch_path_spec="/usr/lib" 18801 need_lib_prefix=no 18802 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18803 case $host_os in 18804 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18805 *) need_version=no ;; 18806 esac 18807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18809 shlibpath_var=LD_LIBRARY_PATH 18810 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18811 case $host_os in 18812 openbsd2.[89] | openbsd2.[89].*) 18813 shlibpath_overrides_runpath=no 18814 ;; 18815 *) 18816 shlibpath_overrides_runpath=yes 18817 ;; 18818 esac 18819 else 18820 shlibpath_overrides_runpath=yes 18821 fi 18822 ;; 18823 18824os2*) 18825 libname_spec='$name' 18826 shrext_cmds=".dll" 18827 need_lib_prefix=no 18828 library_names_spec='$libname${shared_ext} $libname.a' 18829 dynamic_linker='OS/2 ld.exe' 18830 shlibpath_var=LIBPATH 18831 ;; 18832 18833osf3* | osf4* | osf5*) 18834 version_type=osf 18835 need_lib_prefix=no 18836 need_version=no 18837 soname_spec='${libname}${release}${shared_ext}$major' 18838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18839 shlibpath_var=LD_LIBRARY_PATH 18840 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18841 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18842 ;; 18843 18844rdos*) 18845 dynamic_linker=no 18846 ;; 18847 18848solaris*) 18849 version_type=linux 18850 need_lib_prefix=no 18851 need_version=no 18852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18853 soname_spec='${libname}${release}${shared_ext}$major' 18854 shlibpath_var=LD_LIBRARY_PATH 18855 shlibpath_overrides_runpath=yes 18856 hardcode_into_libs=yes 18857 # ldd complains unless libraries are executable 18858 postinstall_cmds='chmod +x $lib' 18859 ;; 18860 18861sunos4*) 18862 version_type=sunos 18863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18864 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18865 shlibpath_var=LD_LIBRARY_PATH 18866 shlibpath_overrides_runpath=yes 18867 if test "$with_gnu_ld" = yes; then 18868 need_lib_prefix=no 18869 fi 18870 need_version=yes 18871 ;; 18872 18873sysv4 | sysv4.3*) 18874 version_type=linux 18875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18876 soname_spec='${libname}${release}${shared_ext}$major' 18877 shlibpath_var=LD_LIBRARY_PATH 18878 case $host_vendor in 18879 sni) 18880 shlibpath_overrides_runpath=no 18881 need_lib_prefix=no 18882 export_dynamic_flag_spec='${wl}-Blargedynsym' 18883 runpath_var=LD_RUN_PATH 18884 ;; 18885 siemens) 18886 need_lib_prefix=no 18887 ;; 18888 motorola) 18889 need_lib_prefix=no 18890 need_version=no 18891 shlibpath_overrides_runpath=no 18892 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18893 ;; 18894 esac 18895 ;; 18896 18897sysv4*MP*) 18898 if test -d /usr/nec ;then 18899 version_type=linux 18900 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18901 soname_spec='$libname${shared_ext}.$major' 18902 shlibpath_var=LD_LIBRARY_PATH 18903 fi 18904 ;; 18905 18906sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18907 version_type=freebsd-elf 18908 need_lib_prefix=no 18909 need_version=no 18910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18911 soname_spec='${libname}${release}${shared_ext}$major' 18912 shlibpath_var=LD_LIBRARY_PATH 18913 hardcode_into_libs=yes 18914 if test "$with_gnu_ld" = yes; then 18915 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18916 shlibpath_overrides_runpath=no 18917 else 18918 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18919 shlibpath_overrides_runpath=yes 18920 case $host_os in 18921 sco3.2v5*) 18922 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18923 ;; 18924 esac 18925 fi 18926 sys_lib_dlsearch_path_spec='/usr/lib' 18927 ;; 18928 18929uts4*) 18930 version_type=linux 18931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18932 soname_spec='${libname}${release}${shared_ext}$major' 18933 shlibpath_var=LD_LIBRARY_PATH 18934 ;; 18935 18936*) 18937 dynamic_linker=no 18938 ;; 18939esac 18940{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18941$as_echo "$dynamic_linker" >&6; } 18942test "$dynamic_linker" = no && can_build_shared=no 18943 18944if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 18945 $as_echo_n "(cached) " >&6 18946else 18947 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 18948fi 18949 18950sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 18951if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 18952 $as_echo_n "(cached) " >&6 18953else 18954 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 18955fi 18956 18957sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 18958 18959variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18960if test "$GCC" = yes; then 18961 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18962fi 18963 18964{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18965$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18966hardcode_action_GCJ= 18967if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18968 test -n "$runpath_var_GCJ" || \ 18969 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18970 18971 # We can hardcode non-existant directories. 18972 if test "$hardcode_direct_GCJ" != no && 18973 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18974 # have to relink, otherwise we might link with an installed library 18975 # when we should be linking with a yet-to-be-installed one 18976 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18977 test "$hardcode_minus_L_GCJ" != no; then 18978 # Linking always hardcodes the temporary library directory. 18979 hardcode_action_GCJ=relink 18980 else 18981 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18982 hardcode_action_GCJ=immediate 18983 fi 18984else 18985 # We cannot hardcode anything, or else we can only hardcode existing 18986 # directories. 18987 hardcode_action_GCJ=unsupported 18988fi 18989{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18990$as_echo "$hardcode_action_GCJ" >&6; } 18991 18992if test "$hardcode_action_GCJ" = relink; then 18993 # Fast installation is not supported 18994 enable_fast_install=no 18995elif test "$shlibpath_overrides_runpath" = yes || 18996 test "$enable_shared" = no; then 18997 # Fast installation is not necessary 18998 enable_fast_install=needless 18999fi 19000 19001 19002# The else clause should only fire when bootstrapping the 19003# libtool distribution, otherwise you forgot to ship ltmain.sh 19004# with your package, and you will get complaints that there are 19005# no rules to generate ltmain.sh. 19006if test -f "$ltmain"; then 19007 # See if we are running on zsh, and set the options which allow our commands through 19008 # without removal of \ escapes. 19009 if test -n "${ZSH_VERSION+set}" ; then 19010 setopt NO_GLOB_SUBST 19011 fi 19012 # Now quote all the things that may contain metacharacters while being 19013 # careful not to overquote the AC_SUBSTed values. We take copies of the 19014 # variables and quote the copies for generation of the libtool script. 19015 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19016 SED SHELL STRIP \ 19017 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19018 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19019 deplibs_check_method reload_flag reload_cmds need_locks \ 19020 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19021 lt_cv_sys_global_symbol_to_c_name_address \ 19022 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19023 old_postinstall_cmds old_postuninstall_cmds \ 19024 compiler_GCJ \ 19025 CC_GCJ \ 19026 LD_GCJ \ 19027 lt_prog_compiler_wl_GCJ \ 19028 lt_prog_compiler_pic_GCJ \ 19029 lt_prog_compiler_static_GCJ \ 19030 lt_prog_compiler_no_builtin_flag_GCJ \ 19031 export_dynamic_flag_spec_GCJ \ 19032 thread_safe_flag_spec_GCJ \ 19033 whole_archive_flag_spec_GCJ \ 19034 enable_shared_with_static_runtimes_GCJ \ 19035 old_archive_cmds_GCJ \ 19036 old_archive_from_new_cmds_GCJ \ 19037 predep_objects_GCJ \ 19038 postdep_objects_GCJ \ 19039 predeps_GCJ \ 19040 postdeps_GCJ \ 19041 compiler_lib_search_path_GCJ \ 19042 compiler_lib_search_dirs_GCJ \ 19043 archive_cmds_GCJ \ 19044 archive_expsym_cmds_GCJ \ 19045 postinstall_cmds_GCJ \ 19046 postuninstall_cmds_GCJ \ 19047 old_archive_from_expsyms_cmds_GCJ \ 19048 allow_undefined_flag_GCJ \ 19049 no_undefined_flag_GCJ \ 19050 export_symbols_cmds_GCJ \ 19051 hardcode_libdir_flag_spec_GCJ \ 19052 hardcode_libdir_flag_spec_ld_GCJ \ 19053 hardcode_libdir_separator_GCJ \ 19054 hardcode_automatic_GCJ \ 19055 module_cmds_GCJ \ 19056 module_expsym_cmds_GCJ \ 19057 lt_cv_prog_compiler_c_o_GCJ \ 19058 fix_srcfile_path_GCJ \ 19059 exclude_expsyms_GCJ \ 19060 include_expsyms_GCJ; do 19061 19062 case $var in 19063 old_archive_cmds_GCJ | \ 19064 old_archive_from_new_cmds_GCJ | \ 19065 archive_cmds_GCJ | \ 19066 archive_expsym_cmds_GCJ | \ 19067 module_cmds_GCJ | \ 19068 module_expsym_cmds_GCJ | \ 19069 old_archive_from_expsyms_cmds_GCJ | \ 19070 export_symbols_cmds_GCJ | \ 19071 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19072 postinstall_cmds | postuninstall_cmds | \ 19073 old_postinstall_cmds | old_postuninstall_cmds | \ 19074 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19075 # Double-quote double-evaled strings. 19076 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19077 ;; 19078 *) 19079 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19080 ;; 19081 esac 19082 done 19083 19084 case $lt_echo in 19085 *'\$0 --fallback-echo"') 19086 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19087 ;; 19088 esac 19089 19090cfgfile="$ofile" 19091 19092 cat <<__EOF__ >> "$cfgfile" 19093# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19094 19095# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19096 19097# Shell to use when invoking shell scripts. 19098SHELL=$lt_SHELL 19099 19100# Whether or not to build shared libraries. 19101build_libtool_libs=$enable_shared 19102 19103# Whether or not to build static libraries. 19104build_old_libs=$enable_static 19105 19106# Whether or not to add -lc for building shared libraries. 19107build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19108 19109# Whether or not to disallow shared libs when runtime libs are static 19110allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19111 19112# Whether or not to optimize for fast installation. 19113fast_install=$enable_fast_install 19114 19115# The host system. 19116host_alias=$host_alias 19117host=$host 19118host_os=$host_os 19119 19120# The build system. 19121build_alias=$build_alias 19122build=$build 19123build_os=$build_os 19124 19125# An echo program that does not interpret backslashes. 19126echo=$lt_echo 19127 19128# The archiver. 19129AR=$lt_AR 19130AR_FLAGS=$lt_AR_FLAGS 19131 19132# A C compiler. 19133LTCC=$lt_LTCC 19134 19135# LTCC compiler flags. 19136LTCFLAGS=$lt_LTCFLAGS 19137 19138# A language-specific compiler. 19139CC=$lt_compiler_GCJ 19140 19141# Is the compiler the GNU C compiler? 19142with_gcc=$GCC_GCJ 19143 19144# An ERE matcher. 19145EGREP=$lt_EGREP 19146 19147# The linker used to build libraries. 19148LD=$lt_LD_GCJ 19149 19150# Whether we need hard or soft links. 19151LN_S=$lt_LN_S 19152 19153# A BSD-compatible nm program. 19154NM=$lt_NM 19155 19156# A symbol stripping program 19157STRIP=$lt_STRIP 19158 19159# Used to examine libraries when file_magic_cmd begins "file" 19160MAGIC_CMD=$MAGIC_CMD 19161 19162# Used on cygwin: DLL creation program. 19163DLLTOOL="$DLLTOOL" 19164 19165# Used on cygwin: object dumper. 19166OBJDUMP="$OBJDUMP" 19167 19168# Used on cygwin: assembler. 19169AS="$AS" 19170 19171# The name of the directory that contains temporary libtool files. 19172objdir=$objdir 19173 19174# How to create reloadable object files. 19175reload_flag=$lt_reload_flag 19176reload_cmds=$lt_reload_cmds 19177 19178# How to pass a linker flag through the compiler. 19179wl=$lt_lt_prog_compiler_wl_GCJ 19180 19181# Object file suffix (normally "o"). 19182objext="$ac_objext" 19183 19184# Old archive suffix (normally "a"). 19185libext="$libext" 19186 19187# Shared library suffix (normally ".so"). 19188shrext_cmds='$shrext_cmds' 19189 19190# Executable file suffix (normally ""). 19191exeext="$exeext" 19192 19193# Additional compiler flags for building library objects. 19194pic_flag=$lt_lt_prog_compiler_pic_GCJ 19195pic_mode=$pic_mode 19196 19197# What is the maximum length of a command? 19198max_cmd_len=$lt_cv_sys_max_cmd_len 19199 19200# Does compiler simultaneously support -c and -o options? 19201compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19202 19203# Must we lock files when doing compilation? 19204need_locks=$lt_need_locks 19205 19206# Do we need the lib prefix for modules? 19207need_lib_prefix=$need_lib_prefix 19208 19209# Do we need a version for libraries? 19210need_version=$need_version 19211 19212# Whether dlopen is supported. 19213dlopen_support=$enable_dlopen 19214 19215# Whether dlopen of programs is supported. 19216dlopen_self=$enable_dlopen_self 19217 19218# Whether dlopen of statically linked programs is supported. 19219dlopen_self_static=$enable_dlopen_self_static 19220 19221# Compiler flag to prevent dynamic linking. 19222link_static_flag=$lt_lt_prog_compiler_static_GCJ 19223 19224# Compiler flag to turn off builtin functions. 19225no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19226 19227# Compiler flag to allow reflexive dlopens. 19228export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19229 19230# Compiler flag to generate shared objects directly from archives. 19231whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19232 19233# Compiler flag to generate thread-safe objects. 19234thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19235 19236# Library versioning type. 19237version_type=$version_type 19238 19239# Format of library name prefix. 19240libname_spec=$lt_libname_spec 19241 19242# List of archive names. First name is the real one, the rest are links. 19243# The last name is the one that the linker finds with -lNAME. 19244library_names_spec=$lt_library_names_spec 19245 19246# The coded name of the library, if different from the real name. 19247soname_spec=$lt_soname_spec 19248 19249# Commands used to build and install an old-style archive. 19250RANLIB=$lt_RANLIB 19251old_archive_cmds=$lt_old_archive_cmds_GCJ 19252old_postinstall_cmds=$lt_old_postinstall_cmds 19253old_postuninstall_cmds=$lt_old_postuninstall_cmds 19254 19255# Create an old-style archive from a shared archive. 19256old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19257 19258# Create a temporary old-style archive to link instead of a shared archive. 19259old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19260 19261# Commands used to build and install a shared archive. 19262archive_cmds=$lt_archive_cmds_GCJ 19263archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19264postinstall_cmds=$lt_postinstall_cmds 19265postuninstall_cmds=$lt_postuninstall_cmds 19266 19267# Commands used to build a loadable module (assumed same as above if empty) 19268module_cmds=$lt_module_cmds_GCJ 19269module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19270 19271# Commands to strip libraries. 19272old_striplib=$lt_old_striplib 19273striplib=$lt_striplib 19274 19275# Dependencies to place before the objects being linked to create a 19276# shared library. 19277predep_objects=$lt_predep_objects_GCJ 19278 19279# Dependencies to place after the objects being linked to create a 19280# shared library. 19281postdep_objects=$lt_postdep_objects_GCJ 19282 19283# Dependencies to place before the objects being linked to create a 19284# shared library. 19285predeps=$lt_predeps_GCJ 19286 19287# Dependencies to place after the objects being linked to create a 19288# shared library. 19289postdeps=$lt_postdeps_GCJ 19290 19291# The directories searched by this compiler when creating a shared 19292# library 19293compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 19294 19295# The library search path used internally by the compiler when linking 19296# a shared library. 19297compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19298 19299# Method to check whether dependent libraries are shared objects. 19300deplibs_check_method=$lt_deplibs_check_method 19301 19302# Command to use when deplibs_check_method == file_magic. 19303file_magic_cmd=$lt_file_magic_cmd 19304 19305# Flag that allows shared libraries with undefined symbols to be built. 19306allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19307 19308# Flag that forces no undefined symbols. 19309no_undefined_flag=$lt_no_undefined_flag_GCJ 19310 19311# Commands used to finish a libtool library installation in a directory. 19312finish_cmds=$lt_finish_cmds 19313 19314# Same as above, but a single script fragment to be evaled but not shown. 19315finish_eval=$lt_finish_eval 19316 19317# Take the output of nm and produce a listing of raw symbols and C names. 19318global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19319 19320# Transform the output of nm in a proper C declaration 19321global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19322 19323# Transform the output of nm in a C name address pair 19324global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19325 19326# This is the shared library runtime path variable. 19327runpath_var=$runpath_var 19328 19329# This is the shared library path variable. 19330shlibpath_var=$shlibpath_var 19331 19332# Is shlibpath searched before the hard-coded library search path? 19333shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19334 19335# How to hardcode a shared library path into an executable. 19336hardcode_action=$hardcode_action_GCJ 19337 19338# Whether we should hardcode library paths into libraries. 19339hardcode_into_libs=$hardcode_into_libs 19340 19341# Flag to hardcode \$libdir into a binary during linking. 19342# This must work even if \$libdir does not exist. 19343hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19344 19345# If ld is used when linking, flag to hardcode \$libdir into 19346# a binary during linking. This must work even if \$libdir does 19347# not exist. 19348hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19349 19350# Whether we need a single -rpath flag with a separated argument. 19351hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19352 19353# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19354# resulting binary. 19355hardcode_direct=$hardcode_direct_GCJ 19356 19357# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19358# resulting binary. 19359hardcode_minus_L=$hardcode_minus_L_GCJ 19360 19361# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19362# the resulting binary. 19363hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19364 19365# Set to yes if building a shared library automatically hardcodes DIR into the library 19366# and all subsequent libraries and executables linked against it. 19367hardcode_automatic=$hardcode_automatic_GCJ 19368 19369# Variables whose values should be saved in libtool wrapper scripts and 19370# restored at relink time. 19371variables_saved_for_relink="$variables_saved_for_relink" 19372 19373# Whether libtool must link a program against all its dependency libraries. 19374link_all_deplibs=$link_all_deplibs_GCJ 19375 19376# Compile-time system search path for libraries 19377sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19378 19379# Run-time system search path for libraries 19380sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19381 19382# Fix the shell variable \$srcfile for the compiler. 19383fix_srcfile_path=$lt_fix_srcfile_path 19384 19385# Set to yes if exported symbols are required. 19386always_export_symbols=$always_export_symbols_GCJ 19387 19388# The commands to list exported symbols. 19389export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19390 19391# The commands to extract the exported symbol list from a shared archive. 19392extract_expsyms_cmds=$lt_extract_expsyms_cmds 19393 19394# Symbols that should not be listed in the preloaded symbols. 19395exclude_expsyms=$lt_exclude_expsyms_GCJ 19396 19397# Symbols that must always be exported. 19398include_expsyms=$lt_include_expsyms_GCJ 19399 19400# ### END LIBTOOL TAG CONFIG: $tagname 19401 19402__EOF__ 19403 19404 19405else 19406 # If there is no Makefile yet, we rely on a make rule to execute 19407 # `config.status --recheck' to rerun these tests and create the 19408 # libtool script then. 19409 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19410 if test -f "$ltmain_in"; then 19411 test -f Makefile && make "$ltmain" 19412 fi 19413fi 19414 19415 19416ac_ext=c 19417ac_cpp='$CPP $CPPFLAGS' 19418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19420ac_compiler_gnu=$ac_cv_c_compiler_gnu 19421 19422CC="$lt_save_CC" 19423 19424 else 19425 tagname="" 19426 fi 19427 ;; 19428 19429 RC) 19430 19431 19432# Source file extension for RC test sources. 19433ac_ext=rc 19434 19435# Object file extension for compiled RC test sources. 19436objext=o 19437objext_RC=$objext 19438 19439# Code to be used in simple compile tests 19440lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19441 19442# Code to be used in simple link tests 19443lt_simple_link_test_code="$lt_simple_compile_test_code" 19444 19445# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19446 19447# If no C compiler was specified, use CC. 19448LTCC=${LTCC-"$CC"} 19449 19450# If no C compiler flags were specified, use CFLAGS. 19451LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19452 19453# Allow CC to be a program name with arguments. 19454compiler=$CC 19455 19456 19457# save warnings/boilerplate of simple test code 19458ac_outfile=conftest.$ac_objext 19459echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19460eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19461_lt_compiler_boilerplate=`cat conftest.err` 19462$rm conftest* 19463 19464ac_outfile=conftest.$ac_objext 19465echo "$lt_simple_link_test_code" >conftest.$ac_ext 19466eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19467_lt_linker_boilerplate=`cat conftest.err` 19468$rm -r conftest* 19469 19470 19471# Allow CC to be a program name with arguments. 19472lt_save_CC="$CC" 19473CC=${RC-"windres"} 19474compiler=$CC 19475compiler_RC=$CC 19476for cc_temp in $compiler""; do 19477 case $cc_temp in 19478 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19479 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19480 \-*) ;; 19481 *) break;; 19482 esac 19483done 19484cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19485 19486lt_cv_prog_compiler_c_o_RC=yes 19487 19488# The else clause should only fire when bootstrapping the 19489# libtool distribution, otherwise you forgot to ship ltmain.sh 19490# with your package, and you will get complaints that there are 19491# no rules to generate ltmain.sh. 19492if test -f "$ltmain"; then 19493 # See if we are running on zsh, and set the options which allow our commands through 19494 # without removal of \ escapes. 19495 if test -n "${ZSH_VERSION+set}" ; then 19496 setopt NO_GLOB_SUBST 19497 fi 19498 # Now quote all the things that may contain metacharacters while being 19499 # careful not to overquote the AC_SUBSTed values. We take copies of the 19500 # variables and quote the copies for generation of the libtool script. 19501 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19502 SED SHELL STRIP \ 19503 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19504 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19505 deplibs_check_method reload_flag reload_cmds need_locks \ 19506 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19507 lt_cv_sys_global_symbol_to_c_name_address \ 19508 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19509 old_postinstall_cmds old_postuninstall_cmds \ 19510 compiler_RC \ 19511 CC_RC \ 19512 LD_RC \ 19513 lt_prog_compiler_wl_RC \ 19514 lt_prog_compiler_pic_RC \ 19515 lt_prog_compiler_static_RC \ 19516 lt_prog_compiler_no_builtin_flag_RC \ 19517 export_dynamic_flag_spec_RC \ 19518 thread_safe_flag_spec_RC \ 19519 whole_archive_flag_spec_RC \ 19520 enable_shared_with_static_runtimes_RC \ 19521 old_archive_cmds_RC \ 19522 old_archive_from_new_cmds_RC \ 19523 predep_objects_RC \ 19524 postdep_objects_RC \ 19525 predeps_RC \ 19526 postdeps_RC \ 19527 compiler_lib_search_path_RC \ 19528 compiler_lib_search_dirs_RC \ 19529 archive_cmds_RC \ 19530 archive_expsym_cmds_RC \ 19531 postinstall_cmds_RC \ 19532 postuninstall_cmds_RC \ 19533 old_archive_from_expsyms_cmds_RC \ 19534 allow_undefined_flag_RC \ 19535 no_undefined_flag_RC \ 19536 export_symbols_cmds_RC \ 19537 hardcode_libdir_flag_spec_RC \ 19538 hardcode_libdir_flag_spec_ld_RC \ 19539 hardcode_libdir_separator_RC \ 19540 hardcode_automatic_RC \ 19541 module_cmds_RC \ 19542 module_expsym_cmds_RC \ 19543 lt_cv_prog_compiler_c_o_RC \ 19544 fix_srcfile_path_RC \ 19545 exclude_expsyms_RC \ 19546 include_expsyms_RC; do 19547 19548 case $var in 19549 old_archive_cmds_RC | \ 19550 old_archive_from_new_cmds_RC | \ 19551 archive_cmds_RC | \ 19552 archive_expsym_cmds_RC | \ 19553 module_cmds_RC | \ 19554 module_expsym_cmds_RC | \ 19555 old_archive_from_expsyms_cmds_RC | \ 19556 export_symbols_cmds_RC | \ 19557 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19558 postinstall_cmds | postuninstall_cmds | \ 19559 old_postinstall_cmds | old_postuninstall_cmds | \ 19560 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19561 # Double-quote double-evaled strings. 19562 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19563 ;; 19564 *) 19565 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19566 ;; 19567 esac 19568 done 19569 19570 case $lt_echo in 19571 *'\$0 --fallback-echo"') 19572 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19573 ;; 19574 esac 19575 19576cfgfile="$ofile" 19577 19578 cat <<__EOF__ >> "$cfgfile" 19579# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19580 19581# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19582 19583# Shell to use when invoking shell scripts. 19584SHELL=$lt_SHELL 19585 19586# Whether or not to build shared libraries. 19587build_libtool_libs=$enable_shared 19588 19589# Whether or not to build static libraries. 19590build_old_libs=$enable_static 19591 19592# Whether or not to add -lc for building shared libraries. 19593build_libtool_need_lc=$archive_cmds_need_lc_RC 19594 19595# Whether or not to disallow shared libs when runtime libs are static 19596allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19597 19598# Whether or not to optimize for fast installation. 19599fast_install=$enable_fast_install 19600 19601# The host system. 19602host_alias=$host_alias 19603host=$host 19604host_os=$host_os 19605 19606# The build system. 19607build_alias=$build_alias 19608build=$build 19609build_os=$build_os 19610 19611# An echo program that does not interpret backslashes. 19612echo=$lt_echo 19613 19614# The archiver. 19615AR=$lt_AR 19616AR_FLAGS=$lt_AR_FLAGS 19617 19618# A C compiler. 19619LTCC=$lt_LTCC 19620 19621# LTCC compiler flags. 19622LTCFLAGS=$lt_LTCFLAGS 19623 19624# A language-specific compiler. 19625CC=$lt_compiler_RC 19626 19627# Is the compiler the GNU C compiler? 19628with_gcc=$GCC_RC 19629 19630# An ERE matcher. 19631EGREP=$lt_EGREP 19632 19633# The linker used to build libraries. 19634LD=$lt_LD_RC 19635 19636# Whether we need hard or soft links. 19637LN_S=$lt_LN_S 19638 19639# A BSD-compatible nm program. 19640NM=$lt_NM 19641 19642# A symbol stripping program 19643STRIP=$lt_STRIP 19644 19645# Used to examine libraries when file_magic_cmd begins "file" 19646MAGIC_CMD=$MAGIC_CMD 19647 19648# Used on cygwin: DLL creation program. 19649DLLTOOL="$DLLTOOL" 19650 19651# Used on cygwin: object dumper. 19652OBJDUMP="$OBJDUMP" 19653 19654# Used on cygwin: assembler. 19655AS="$AS" 19656 19657# The name of the directory that contains temporary libtool files. 19658objdir=$objdir 19659 19660# How to create reloadable object files. 19661reload_flag=$lt_reload_flag 19662reload_cmds=$lt_reload_cmds 19663 19664# How to pass a linker flag through the compiler. 19665wl=$lt_lt_prog_compiler_wl_RC 19666 19667# Object file suffix (normally "o"). 19668objext="$ac_objext" 19669 19670# Old archive suffix (normally "a"). 19671libext="$libext" 19672 19673# Shared library suffix (normally ".so"). 19674shrext_cmds='$shrext_cmds' 19675 19676# Executable file suffix (normally ""). 19677exeext="$exeext" 19678 19679# Additional compiler flags for building library objects. 19680pic_flag=$lt_lt_prog_compiler_pic_RC 19681pic_mode=$pic_mode 19682 19683# What is the maximum length of a command? 19684max_cmd_len=$lt_cv_sys_max_cmd_len 19685 19686# Does compiler simultaneously support -c and -o options? 19687compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19688 19689# Must we lock files when doing compilation? 19690need_locks=$lt_need_locks 19691 19692# Do we need the lib prefix for modules? 19693need_lib_prefix=$need_lib_prefix 19694 19695# Do we need a version for libraries? 19696need_version=$need_version 19697 19698# Whether dlopen is supported. 19699dlopen_support=$enable_dlopen 19700 19701# Whether dlopen of programs is supported. 19702dlopen_self=$enable_dlopen_self 19703 19704# Whether dlopen of statically linked programs is supported. 19705dlopen_self_static=$enable_dlopen_self_static 19706 19707# Compiler flag to prevent dynamic linking. 19708link_static_flag=$lt_lt_prog_compiler_static_RC 19709 19710# Compiler flag to turn off builtin functions. 19711no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19712 19713# Compiler flag to allow reflexive dlopens. 19714export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19715 19716# Compiler flag to generate shared objects directly from archives. 19717whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19718 19719# Compiler flag to generate thread-safe objects. 19720thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19721 19722# Library versioning type. 19723version_type=$version_type 19724 19725# Format of library name prefix. 19726libname_spec=$lt_libname_spec 19727 19728# List of archive names. First name is the real one, the rest are links. 19729# The last name is the one that the linker finds with -lNAME. 19730library_names_spec=$lt_library_names_spec 19731 19732# The coded name of the library, if different from the real name. 19733soname_spec=$lt_soname_spec 19734 19735# Commands used to build and install an old-style archive. 19736RANLIB=$lt_RANLIB 19737old_archive_cmds=$lt_old_archive_cmds_RC 19738old_postinstall_cmds=$lt_old_postinstall_cmds 19739old_postuninstall_cmds=$lt_old_postuninstall_cmds 19740 19741# Create an old-style archive from a shared archive. 19742old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19743 19744# Create a temporary old-style archive to link instead of a shared archive. 19745old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19746 19747# Commands used to build and install a shared archive. 19748archive_cmds=$lt_archive_cmds_RC 19749archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19750postinstall_cmds=$lt_postinstall_cmds 19751postuninstall_cmds=$lt_postuninstall_cmds 19752 19753# Commands used to build a loadable module (assumed same as above if empty) 19754module_cmds=$lt_module_cmds_RC 19755module_expsym_cmds=$lt_module_expsym_cmds_RC 19756 19757# Commands to strip libraries. 19758old_striplib=$lt_old_striplib 19759striplib=$lt_striplib 19760 19761# Dependencies to place before the objects being linked to create a 19762# shared library. 19763predep_objects=$lt_predep_objects_RC 19764 19765# Dependencies to place after the objects being linked to create a 19766# shared library. 19767postdep_objects=$lt_postdep_objects_RC 19768 19769# Dependencies to place before the objects being linked to create a 19770# shared library. 19771predeps=$lt_predeps_RC 19772 19773# Dependencies to place after the objects being linked to create a 19774# shared library. 19775postdeps=$lt_postdeps_RC 19776 19777# The directories searched by this compiler when creating a shared 19778# library 19779compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 19780 19781# The library search path used internally by the compiler when linking 19782# a shared library. 19783compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19784 19785# Method to check whether dependent libraries are shared objects. 19786deplibs_check_method=$lt_deplibs_check_method 19787 19788# Command to use when deplibs_check_method == file_magic. 19789file_magic_cmd=$lt_file_magic_cmd 19790 19791# Flag that allows shared libraries with undefined symbols to be built. 19792allow_undefined_flag=$lt_allow_undefined_flag_RC 19793 19794# Flag that forces no undefined symbols. 19795no_undefined_flag=$lt_no_undefined_flag_RC 19796 19797# Commands used to finish a libtool library installation in a directory. 19798finish_cmds=$lt_finish_cmds 19799 19800# Same as above, but a single script fragment to be evaled but not shown. 19801finish_eval=$lt_finish_eval 19802 19803# Take the output of nm and produce a listing of raw symbols and C names. 19804global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19805 19806# Transform the output of nm in a proper C declaration 19807global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19808 19809# Transform the output of nm in a C name address pair 19810global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19811 19812# This is the shared library runtime path variable. 19813runpath_var=$runpath_var 19814 19815# This is the shared library path variable. 19816shlibpath_var=$shlibpath_var 19817 19818# Is shlibpath searched before the hard-coded library search path? 19819shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19820 19821# How to hardcode a shared library path into an executable. 19822hardcode_action=$hardcode_action_RC 19823 19824# Whether we should hardcode library paths into libraries. 19825hardcode_into_libs=$hardcode_into_libs 19826 19827# Flag to hardcode \$libdir into a binary during linking. 19828# This must work even if \$libdir does not exist. 19829hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19830 19831# If ld is used when linking, flag to hardcode \$libdir into 19832# a binary during linking. This must work even if \$libdir does 19833# not exist. 19834hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19835 19836# Whether we need a single -rpath flag with a separated argument. 19837hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19838 19839# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19840# resulting binary. 19841hardcode_direct=$hardcode_direct_RC 19842 19843# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19844# resulting binary. 19845hardcode_minus_L=$hardcode_minus_L_RC 19846 19847# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19848# the resulting binary. 19849hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19850 19851# Set to yes if building a shared library automatically hardcodes DIR into the library 19852# and all subsequent libraries and executables linked against it. 19853hardcode_automatic=$hardcode_automatic_RC 19854 19855# Variables whose values should be saved in libtool wrapper scripts and 19856# restored at relink time. 19857variables_saved_for_relink="$variables_saved_for_relink" 19858 19859# Whether libtool must link a program against all its dependency libraries. 19860link_all_deplibs=$link_all_deplibs_RC 19861 19862# Compile-time system search path for libraries 19863sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19864 19865# Run-time system search path for libraries 19866sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19867 19868# Fix the shell variable \$srcfile for the compiler. 19869fix_srcfile_path=$lt_fix_srcfile_path 19870 19871# Set to yes if exported symbols are required. 19872always_export_symbols=$always_export_symbols_RC 19873 19874# The commands to list exported symbols. 19875export_symbols_cmds=$lt_export_symbols_cmds_RC 19876 19877# The commands to extract the exported symbol list from a shared archive. 19878extract_expsyms_cmds=$lt_extract_expsyms_cmds 19879 19880# Symbols that should not be listed in the preloaded symbols. 19881exclude_expsyms=$lt_exclude_expsyms_RC 19882 19883# Symbols that must always be exported. 19884include_expsyms=$lt_include_expsyms_RC 19885 19886# ### END LIBTOOL TAG CONFIG: $tagname 19887 19888__EOF__ 19889 19890 19891else 19892 # If there is no Makefile yet, we rely on a make rule to execute 19893 # `config.status --recheck' to rerun these tests and create the 19894 # libtool script then. 19895 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19896 if test -f "$ltmain_in"; then 19897 test -f Makefile && make "$ltmain" 19898 fi 19899fi 19900 19901 19902ac_ext=c 19903ac_cpp='$CPP $CPPFLAGS' 19904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19906ac_compiler_gnu=$ac_cv_c_compiler_gnu 19907 19908CC="$lt_save_CC" 19909 19910 ;; 19911 19912 *) 19913 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19914$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19915 { (exit 1); exit 1; }; } 19916 ;; 19917 esac 19918 19919 # Append the new tag name to the list of available tags. 19920 if test -n "$tagname" ; then 19921 available_tags="$available_tags $tagname" 19922 fi 19923 fi 19924 done 19925 IFS="$lt_save_ifs" 19926 19927 # Now substitute the updated list of available tags. 19928 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19929 mv "${ofile}T" "$ofile" 19930 chmod +x "$ofile" 19931 else 19932 rm -f "${ofile}T" 19933 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19934$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19935 { (exit 1); exit 1; }; } 19936 fi 19937fi 19938 19939 19940 19941# This can be used to rebuild libtool when needed 19942LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19943 19944# Always use our own libtool. 19945LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19946 19947# Prevent multiple expansion 19948 19949 19950 19951 19952 19953 19954 19955 19956 19957 19958 19959 19960 19961 19962 19963 19964 19965 19966 19967 19968ac_ext=c 19969ac_cpp='$CPP $CPPFLAGS' 19970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19972ac_compiler_gnu=$ac_cv_c_compiler_gnu 19973if test -n "$ac_tool_prefix"; then 19974 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 19975set dummy ${ac_tool_prefix}gcc; ac_word=$2 19976{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 19977$as_echo_n "checking for $ac_word... " >&6; } 19978if test "${ac_cv_prog_CC+set}" = set; then 19979 $as_echo_n "(cached) " >&6 19980else 19981 if test -n "$CC"; then 19982 ac_cv_prog_CC="$CC" # Let the user override the test. 19983else 19984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19985for as_dir in $PATH 19986do 19987 IFS=$as_save_IFS 19988 test -z "$as_dir" && as_dir=. 19989 for ac_exec_ext in '' $ac_executable_extensions; do 19990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19991 ac_cv_prog_CC="${ac_tool_prefix}gcc" 19992 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19993 break 2 19994 fi 19995done 19996done 19997IFS=$as_save_IFS 19998 19999fi 20000fi 20001CC=$ac_cv_prog_CC 20002if test -n "$CC"; then 20003 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20004$as_echo "$CC" >&6; } 20005else 20006 { $as_echo "$as_me:$LINENO: result: no" >&5 20007$as_echo "no" >&6; } 20008fi 20009 20010 20011fi 20012if test -z "$ac_cv_prog_CC"; then 20013 ac_ct_CC=$CC 20014 # Extract the first word of "gcc", so it can be a program name with args. 20015set dummy gcc; ac_word=$2 20016{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20017$as_echo_n "checking for $ac_word... " >&6; } 20018if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 20019 $as_echo_n "(cached) " >&6 20020else 20021 if test -n "$ac_ct_CC"; then 20022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20023else 20024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20025for as_dir in $PATH 20026do 20027 IFS=$as_save_IFS 20028 test -z "$as_dir" && as_dir=. 20029 for ac_exec_ext in '' $ac_executable_extensions; do 20030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20031 ac_cv_prog_ac_ct_CC="gcc" 20032 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20033 break 2 20034 fi 20035done 20036done 20037IFS=$as_save_IFS 20038 20039fi 20040fi 20041ac_ct_CC=$ac_cv_prog_ac_ct_CC 20042if test -n "$ac_ct_CC"; then 20043 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20044$as_echo "$ac_ct_CC" >&6; } 20045else 20046 { $as_echo "$as_me:$LINENO: result: no" >&5 20047$as_echo "no" >&6; } 20048fi 20049 20050 if test "x$ac_ct_CC" = x; then 20051 CC="" 20052 else 20053 case $cross_compiling:$ac_tool_warned in 20054yes:) 20055{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 20056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20057ac_tool_warned=yes ;; 20058esac 20059 CC=$ac_ct_CC 20060 fi 20061else 20062 CC="$ac_cv_prog_CC" 20063fi 20064 20065if test -z "$CC"; then 20066 if test -n "$ac_tool_prefix"; then 20067 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 20068set dummy ${ac_tool_prefix}cc; ac_word=$2 20069{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20070$as_echo_n "checking for $ac_word... " >&6; } 20071if test "${ac_cv_prog_CC+set}" = set; then 20072 $as_echo_n "(cached) " >&6 20073else 20074 if test -n "$CC"; then 20075 ac_cv_prog_CC="$CC" # Let the user override the test. 20076else 20077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20078for as_dir in $PATH 20079do 20080 IFS=$as_save_IFS 20081 test -z "$as_dir" && as_dir=. 20082 for ac_exec_ext in '' $ac_executable_extensions; do 20083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20084 ac_cv_prog_CC="${ac_tool_prefix}cc" 20085 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20086 break 2 20087 fi 20088done 20089done 20090IFS=$as_save_IFS 20091 20092fi 20093fi 20094CC=$ac_cv_prog_CC 20095if test -n "$CC"; then 20096 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20097$as_echo "$CC" >&6; } 20098else 20099 { $as_echo "$as_me:$LINENO: result: no" >&5 20100$as_echo "no" >&6; } 20101fi 20102 20103 20104 fi 20105fi 20106if test -z "$CC"; then 20107 # Extract the first word of "cc", so it can be a program name with args. 20108set dummy cc; ac_word=$2 20109{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20110$as_echo_n "checking for $ac_word... " >&6; } 20111if test "${ac_cv_prog_CC+set}" = set; then 20112 $as_echo_n "(cached) " >&6 20113else 20114 if test -n "$CC"; then 20115 ac_cv_prog_CC="$CC" # Let the user override the test. 20116else 20117 ac_prog_rejected=no 20118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20119for as_dir in $PATH 20120do 20121 IFS=$as_save_IFS 20122 test -z "$as_dir" && as_dir=. 20123 for ac_exec_ext in '' $ac_executable_extensions; do 20124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20125 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 20126 ac_prog_rejected=yes 20127 continue 20128 fi 20129 ac_cv_prog_CC="cc" 20130 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20131 break 2 20132 fi 20133done 20134done 20135IFS=$as_save_IFS 20136 20137if test $ac_prog_rejected = yes; then 20138 # We found a bogon in the path, so make sure we never use it. 20139 set dummy $ac_cv_prog_CC 20140 shift 20141 if test $# != 0; then 20142 # We chose a different compiler from the bogus one. 20143 # However, it has the same basename, so the bogon will be chosen 20144 # first if we set CC to just the basename; use the full file name. 20145 shift 20146 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 20147 fi 20148fi 20149fi 20150fi 20151CC=$ac_cv_prog_CC 20152if test -n "$CC"; then 20153 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20154$as_echo "$CC" >&6; } 20155else 20156 { $as_echo "$as_me:$LINENO: result: no" >&5 20157$as_echo "no" >&6; } 20158fi 20159 20160 20161fi 20162if test -z "$CC"; then 20163 if test -n "$ac_tool_prefix"; then 20164 for ac_prog in cl.exe 20165 do 20166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 20167set dummy $ac_tool_prefix$ac_prog; ac_word=$2 20168{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20169$as_echo_n "checking for $ac_word... " >&6; } 20170if test "${ac_cv_prog_CC+set}" = set; then 20171 $as_echo_n "(cached) " >&6 20172else 20173 if test -n "$CC"; then 20174 ac_cv_prog_CC="$CC" # Let the user override the test. 20175else 20176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20177for as_dir in $PATH 20178do 20179 IFS=$as_save_IFS 20180 test -z "$as_dir" && as_dir=. 20181 for ac_exec_ext in '' $ac_executable_extensions; do 20182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20183 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 20184 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20185 break 2 20186 fi 20187done 20188done 20189IFS=$as_save_IFS 20190 20191fi 20192fi 20193CC=$ac_cv_prog_CC 20194if test -n "$CC"; then 20195 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20196$as_echo "$CC" >&6; } 20197else 20198 { $as_echo "$as_me:$LINENO: result: no" >&5 20199$as_echo "no" >&6; } 20200fi 20201 20202 20203 test -n "$CC" && break 20204 done 20205fi 20206if test -z "$CC"; then 20207 ac_ct_CC=$CC 20208 for ac_prog in cl.exe 20209do 20210 # Extract the first word of "$ac_prog", so it can be a program name with args. 20211set dummy $ac_prog; ac_word=$2 20212{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20213$as_echo_n "checking for $ac_word... " >&6; } 20214if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 20215 $as_echo_n "(cached) " >&6 20216else 20217 if test -n "$ac_ct_CC"; then 20218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20219else 20220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20221for as_dir in $PATH 20222do 20223 IFS=$as_save_IFS 20224 test -z "$as_dir" && as_dir=. 20225 for ac_exec_ext in '' $ac_executable_extensions; do 20226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20227 ac_cv_prog_ac_ct_CC="$ac_prog" 20228 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20229 break 2 20230 fi 20231done 20232done 20233IFS=$as_save_IFS 20234 20235fi 20236fi 20237ac_ct_CC=$ac_cv_prog_ac_ct_CC 20238if test -n "$ac_ct_CC"; then 20239 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20240$as_echo "$ac_ct_CC" >&6; } 20241else 20242 { $as_echo "$as_me:$LINENO: result: no" >&5 20243$as_echo "no" >&6; } 20244fi 20245 20246 20247 test -n "$ac_ct_CC" && break 20248done 20249 20250 if test "x$ac_ct_CC" = x; then 20251 CC="" 20252 else 20253 case $cross_compiling:$ac_tool_warned in 20254yes:) 20255{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 20256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20257ac_tool_warned=yes ;; 20258esac 20259 CC=$ac_ct_CC 20260 fi 20261fi 20262 20263fi 20264 20265 20266test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 20267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20268{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 20269See \`config.log' for more details." >&5 20270$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 20271See \`config.log' for more details." >&2;} 20272 { (exit 1); exit 1; }; }; } 20273 20274# Provide some information about the compiler. 20275$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 20276set X $ac_compile 20277ac_compiler=$2 20278{ (ac_try="$ac_compiler --version >&5" 20279case "(($ac_try" in 20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20281 *) ac_try_echo=$ac_try;; 20282esac 20283eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20284$as_echo "$ac_try_echo") >&5 20285 (eval "$ac_compiler --version >&5") 2>&5 20286 ac_status=$? 20287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20288 (exit $ac_status); } 20289{ (ac_try="$ac_compiler -v >&5" 20290case "(($ac_try" in 20291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20292 *) ac_try_echo=$ac_try;; 20293esac 20294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20295$as_echo "$ac_try_echo") >&5 20296 (eval "$ac_compiler -v >&5") 2>&5 20297 ac_status=$? 20298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20299 (exit $ac_status); } 20300{ (ac_try="$ac_compiler -V >&5" 20301case "(($ac_try" in 20302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20303 *) ac_try_echo=$ac_try;; 20304esac 20305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20306$as_echo "$ac_try_echo") >&5 20307 (eval "$ac_compiler -V >&5") 2>&5 20308 ac_status=$? 20309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20310 (exit $ac_status); } 20311 20312{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 20313$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 20314if test "${ac_cv_c_compiler_gnu+set}" = set; then 20315 $as_echo_n "(cached) " >&6 20316else 20317 cat >conftest.$ac_ext <<_ACEOF 20318/* confdefs.h. */ 20319_ACEOF 20320cat confdefs.h >>conftest.$ac_ext 20321cat >>conftest.$ac_ext <<_ACEOF 20322/* end confdefs.h. */ 20323 20324int 20325main () 20326{ 20327#ifndef __GNUC__ 20328 choke me 20329#endif 20330 20331 ; 20332 return 0; 20333} 20334_ACEOF 20335rm -f conftest.$ac_objext 20336if { (ac_try="$ac_compile" 20337case "(($ac_try" in 20338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20339 *) ac_try_echo=$ac_try;; 20340esac 20341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20342$as_echo "$ac_try_echo") >&5 20343 (eval "$ac_compile") 2>conftest.er1 20344 ac_status=$? 20345 grep -v '^ *+' conftest.er1 >conftest.err 20346 rm -f conftest.er1 20347 cat conftest.err >&5 20348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20349 (exit $ac_status); } && { 20350 test -z "$ac_c_werror_flag" || 20351 test ! -s conftest.err 20352 } && test -s conftest.$ac_objext; then 20353 ac_compiler_gnu=yes 20354else 20355 $as_echo "$as_me: failed program was:" >&5 20356sed 's/^/| /' conftest.$ac_ext >&5 20357 20358 ac_compiler_gnu=no 20359fi 20360 20361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20362ac_cv_c_compiler_gnu=$ac_compiler_gnu 20363 20364fi 20365{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 20366$as_echo "$ac_cv_c_compiler_gnu" >&6; } 20367if test $ac_compiler_gnu = yes; then 20368 GCC=yes 20369else 20370 GCC= 20371fi 20372ac_test_CFLAGS=${CFLAGS+set} 20373ac_save_CFLAGS=$CFLAGS 20374{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 20375$as_echo_n "checking whether $CC accepts -g... " >&6; } 20376if test "${ac_cv_prog_cc_g+set}" = set; then 20377 $as_echo_n "(cached) " >&6 20378else 20379 ac_save_c_werror_flag=$ac_c_werror_flag 20380 ac_c_werror_flag=yes 20381 ac_cv_prog_cc_g=no 20382 CFLAGS="-g" 20383 cat >conftest.$ac_ext <<_ACEOF 20384/* confdefs.h. */ 20385_ACEOF 20386cat confdefs.h >>conftest.$ac_ext 20387cat >>conftest.$ac_ext <<_ACEOF 20388/* end confdefs.h. */ 20389 20390int 20391main () 20392{ 20393 20394 ; 20395 return 0; 20396} 20397_ACEOF 20398rm -f conftest.$ac_objext 20399if { (ac_try="$ac_compile" 20400case "(($ac_try" in 20401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20402 *) ac_try_echo=$ac_try;; 20403esac 20404eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20405$as_echo "$ac_try_echo") >&5 20406 (eval "$ac_compile") 2>conftest.er1 20407 ac_status=$? 20408 grep -v '^ *+' conftest.er1 >conftest.err 20409 rm -f conftest.er1 20410 cat conftest.err >&5 20411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20412 (exit $ac_status); } && { 20413 test -z "$ac_c_werror_flag" || 20414 test ! -s conftest.err 20415 } && test -s conftest.$ac_objext; then 20416 ac_cv_prog_cc_g=yes 20417else 20418 $as_echo "$as_me: failed program was:" >&5 20419sed 's/^/| /' conftest.$ac_ext >&5 20420 20421 CFLAGS="" 20422 cat >conftest.$ac_ext <<_ACEOF 20423/* confdefs.h. */ 20424_ACEOF 20425cat confdefs.h >>conftest.$ac_ext 20426cat >>conftest.$ac_ext <<_ACEOF 20427/* end confdefs.h. */ 20428 20429int 20430main () 20431{ 20432 20433 ; 20434 return 0; 20435} 20436_ACEOF 20437rm -f conftest.$ac_objext 20438if { (ac_try="$ac_compile" 20439case "(($ac_try" in 20440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20441 *) ac_try_echo=$ac_try;; 20442esac 20443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20444$as_echo "$ac_try_echo") >&5 20445 (eval "$ac_compile") 2>conftest.er1 20446 ac_status=$? 20447 grep -v '^ *+' conftest.er1 >conftest.err 20448 rm -f conftest.er1 20449 cat conftest.err >&5 20450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20451 (exit $ac_status); } && { 20452 test -z "$ac_c_werror_flag" || 20453 test ! -s conftest.err 20454 } && test -s conftest.$ac_objext; then 20455 : 20456else 20457 $as_echo "$as_me: failed program was:" >&5 20458sed 's/^/| /' conftest.$ac_ext >&5 20459 20460 ac_c_werror_flag=$ac_save_c_werror_flag 20461 CFLAGS="-g" 20462 cat >conftest.$ac_ext <<_ACEOF 20463/* confdefs.h. */ 20464_ACEOF 20465cat confdefs.h >>conftest.$ac_ext 20466cat >>conftest.$ac_ext <<_ACEOF 20467/* end confdefs.h. */ 20468 20469int 20470main () 20471{ 20472 20473 ; 20474 return 0; 20475} 20476_ACEOF 20477rm -f conftest.$ac_objext 20478if { (ac_try="$ac_compile" 20479case "(($ac_try" in 20480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20481 *) ac_try_echo=$ac_try;; 20482esac 20483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20484$as_echo "$ac_try_echo") >&5 20485 (eval "$ac_compile") 2>conftest.er1 20486 ac_status=$? 20487 grep -v '^ *+' conftest.er1 >conftest.err 20488 rm -f conftest.er1 20489 cat conftest.err >&5 20490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20491 (exit $ac_status); } && { 20492 test -z "$ac_c_werror_flag" || 20493 test ! -s conftest.err 20494 } && test -s conftest.$ac_objext; then 20495 ac_cv_prog_cc_g=yes 20496else 20497 $as_echo "$as_me: failed program was:" >&5 20498sed 's/^/| /' conftest.$ac_ext >&5 20499 20500 20501fi 20502 20503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20504fi 20505 20506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20507fi 20508 20509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20510 ac_c_werror_flag=$ac_save_c_werror_flag 20511fi 20512{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 20513$as_echo "$ac_cv_prog_cc_g" >&6; } 20514if test "$ac_test_CFLAGS" = set; then 20515 CFLAGS=$ac_save_CFLAGS 20516elif test $ac_cv_prog_cc_g = yes; then 20517 if test "$GCC" = yes; then 20518 CFLAGS="-g -O2" 20519 else 20520 CFLAGS="-g" 20521 fi 20522else 20523 if test "$GCC" = yes; then 20524 CFLAGS="-O2" 20525 else 20526 CFLAGS= 20527 fi 20528fi 20529{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 20530$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 20531if test "${ac_cv_prog_cc_c89+set}" = set; then 20532 $as_echo_n "(cached) " >&6 20533else 20534 ac_cv_prog_cc_c89=no 20535ac_save_CC=$CC 20536cat >conftest.$ac_ext <<_ACEOF 20537/* confdefs.h. */ 20538_ACEOF 20539cat confdefs.h >>conftest.$ac_ext 20540cat >>conftest.$ac_ext <<_ACEOF 20541/* end confdefs.h. */ 20542#include <stdarg.h> 20543#include <stdio.h> 20544#include <sys/types.h> 20545#include <sys/stat.h> 20546/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 20547struct buf { int x; }; 20548FILE * (*rcsopen) (struct buf *, struct stat *, int); 20549static char *e (p, i) 20550 char **p; 20551 int i; 20552{ 20553 return p[i]; 20554} 20555static char *f (char * (*g) (char **, int), char **p, ...) 20556{ 20557 char *s; 20558 va_list v; 20559 va_start (v,p); 20560 s = g (p, va_arg (v,int)); 20561 va_end (v); 20562 return s; 20563} 20564 20565/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20566 function prototypes and stuff, but not '\xHH' hex character constants. 20567 These don't provoke an error unfortunately, instead are silently treated 20568 as 'x'. The following induces an error, until -std is added to get 20569 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 20570 array size at least. It's necessary to write '\x00'==0 to get something 20571 that's true only with -std. */ 20572int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 20573 20574/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20575 inside strings and character constants. */ 20576#define FOO(x) 'x' 20577int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 20578 20579int test (int i, double x); 20580struct s1 {int (*f) (int a);}; 20581struct s2 {int (*f) (double a);}; 20582int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 20583int argc; 20584char **argv; 20585int 20586main () 20587{ 20588return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 20589 ; 20590 return 0; 20591} 20592_ACEOF 20593for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 20594 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 20595do 20596 CC="$ac_save_CC $ac_arg" 20597 rm -f conftest.$ac_objext 20598if { (ac_try="$ac_compile" 20599case "(($ac_try" in 20600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20601 *) ac_try_echo=$ac_try;; 20602esac 20603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20604$as_echo "$ac_try_echo") >&5 20605 (eval "$ac_compile") 2>conftest.er1 20606 ac_status=$? 20607 grep -v '^ *+' conftest.er1 >conftest.err 20608 rm -f conftest.er1 20609 cat conftest.err >&5 20610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20611 (exit $ac_status); } && { 20612 test -z "$ac_c_werror_flag" || 20613 test ! -s conftest.err 20614 } && test -s conftest.$ac_objext; then 20615 ac_cv_prog_cc_c89=$ac_arg 20616else 20617 $as_echo "$as_me: failed program was:" >&5 20618sed 's/^/| /' conftest.$ac_ext >&5 20619 20620 20621fi 20622 20623rm -f core conftest.err conftest.$ac_objext 20624 test "x$ac_cv_prog_cc_c89" != "xno" && break 20625done 20626rm -f conftest.$ac_ext 20627CC=$ac_save_CC 20628 20629fi 20630# AC_CACHE_VAL 20631case "x$ac_cv_prog_cc_c89" in 20632 x) 20633 { $as_echo "$as_me:$LINENO: result: none needed" >&5 20634$as_echo "none needed" >&6; } ;; 20635 xno) 20636 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 20637$as_echo "unsupported" >&6; } ;; 20638 *) 20639 CC="$CC $ac_cv_prog_cc_c89" 20640 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 20641$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 20642esac 20643 20644 20645ac_ext=c 20646ac_cpp='$CPP $CPPFLAGS' 20647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20649ac_compiler_gnu=$ac_cv_c_compiler_gnu 20650 20651depcc="$CC" am_compiler_list= 20652 20653{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 20654$as_echo_n "checking dependency style of $depcc... " >&6; } 20655if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 20656 $as_echo_n "(cached) " >&6 20657else 20658 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 20659 # We make a subdir and do the tests there. Otherwise we can end up 20660 # making bogus files that we don't know about and never remove. For 20661 # instance it was reported that on HP-UX the gcc test will end up 20662 # making a dummy file named `D' -- because `-MD' means `put the output 20663 # in D'. 20664 mkdir conftest.dir 20665 # Copy depcomp to subdir because otherwise we won't find it if we're 20666 # using a relative directory. 20667 cp "$am_depcomp" conftest.dir 20668 cd conftest.dir 20669 # We will build objects and dependencies in a subdirectory because 20670 # it helps to detect inapplicable dependency modes. For instance 20671 # both Tru64's cc and ICC support -MD to output dependencies as a 20672 # side effect of compilation, but ICC will put the dependencies in 20673 # the current directory while Tru64 will put them in the object 20674 # directory. 20675 mkdir sub 20676 20677 am_cv_CC_dependencies_compiler_type=none 20678 if test "$am_compiler_list" = ""; then 20679 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 20680 fi 20681 for depmode in $am_compiler_list; do 20682 # Setup a source with many dependencies, because some compilers 20683 # like to wrap large dependency lists on column 80 (with \), and 20684 # we should not choose a depcomp mode which is confused by this. 20685 # 20686 # We need to recreate these files for each test, as the compiler may 20687 # overwrite some of them when testing with obscure command lines. 20688 # This happens at least with the AIX C compiler. 20689 : > sub/conftest.c 20690 for i in 1 2 3 4 5 6; do 20691 echo '#include "conftst'$i'.h"' >> sub/conftest.c 20692 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 20693 # Solaris 8's {/usr,}/bin/sh. 20694 touch sub/conftst$i.h 20695 done 20696 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 20697 20698 case $depmode in 20699 nosideeffect) 20700 # after this tag, mechanisms are not by side-effect, so they'll 20701 # only be used when explicitly requested 20702 if test "x$enable_dependency_tracking" = xyes; then 20703 continue 20704 else 20705 break 20706 fi 20707 ;; 20708 none) break ;; 20709 esac 20710 # We check with `-c' and `-o' for the sake of the "dashmstdout" 20711 # mode. It turns out that the SunPro C++ compiler does not properly 20712 # handle `-M -o', and we need to detect this. 20713 if depmode=$depmode \ 20714 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 20715 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 20716 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 20717 >/dev/null 2>conftest.err && 20718 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 20719 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 20720 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 20721 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 20722 # icc doesn't choke on unknown options, it will just issue warnings 20723 # or remarks (even with -Werror). So we grep stderr for any message 20724 # that says an option was ignored or not supported. 20725 # When given -MP, icc 7.0 and 7.1 complain thusly: 20726 # icc: Command line warning: ignoring option '-M'; no argument required 20727 # The diagnosis changed in icc 8.0: 20728 # icc: Command line remark: option '-MP' not supported 20729 if (grep 'ignoring option' conftest.err || 20730 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 20731 am_cv_CC_dependencies_compiler_type=$depmode 20732 break 20733 fi 20734 fi 20735 done 20736 20737 cd .. 20738 rm -rf conftest.dir 20739else 20740 am_cv_CC_dependencies_compiler_type=none 20741fi 20742 20743fi 20744{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 20745$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 20746CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 20747 20748 if 20749 test "x$enable_dependency_tracking" != xno \ 20750 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 20751 am__fastdepCC_TRUE= 20752 am__fastdepCC_FALSE='#' 20753else 20754 am__fastdepCC_TRUE='#' 20755 am__fastdepCC_FALSE= 20756fi 20757 20758 20759 20760 20761 20762 20763#AC_DEFINE(XFree86LOADER,1,[Stub define for loadable drivers]) 20764# 20765#AC_ARG_ENABLE(XINPUT, AS_HELP_STRING([--enable-xinput], 20766# [Build XInput support (default: yes)]), 20767# [XINPUT=$enableval],[XINPUT=yes]) 20768#AM_CONDITIONAL(XINPUT, test "x$XINPUT" = "xyes") 20769#if test "x$XINPUT" = "xyes" ; then 20770# AC_DEFINE(XINPUT,1,[Enable XInput support]) 20771#fi 20772# 20773#AC_ARG_ENABLE(XKB, AS_HELP_STRING([--enable-xkb], 20774# [Build XKB support (default: yes)]), 20775# [XKB=$enableval],[XKB=yes]) 20776#AM_CONDITIONAL(XKB, test "x$XKB" = "xyes") 20777#if test "x$XKB" = "xyes" ; then 20778# AC_DEFINE(XKB,1,[Enable XKB support]) 20779#fi 20780 20781 20782# Check whether --with-xorg-module-dir was given. 20783if test "${with_xorg_module_dir+set}" = set; then 20784 withval=$with_xorg_module_dir; moduledir="$withval" 20785else 20786 moduledir="$libdir/xorg/modules" 20787fi 20788 20789inputdir=${moduledir}/input 20790 20791 20792 20793# Check whether --with-hal-bin-dir was given. 20794if test "${with_hal_bin_dir+set}" = set; then 20795 withval=$with_hal_bin_dir; halbindir="$withval" 20796else 20797 halbindir="$bindir" 20798fi 20799 20800HAL_BIN_DIR=${halbindir} 20801 20802 20803 20804# Check whether --with-hal-callouts-dir was given. 20805if test "${with_hal_callouts_dir+set}" = set; then 20806 withval=$with_hal_callouts_dir; halcalloutsdir="$withval" 20807else 20808 halcalloutsdir="$libdir/hal" 20809fi 20810 20811HAL_CALLOUTS_DIR=${halcalloutsdir} 20812 20813 20814 20815# Check whether --with-hal-fdi-dir was given. 20816if test "${with_hal_fdi_dir+set}" = set; then 20817 withval=$with_hal_fdi_dir; halfdidir="$withval" 20818else 20819 halfdidir="$datadir/hal/fdi/policy/20thirdparty" 20820fi 20821 20822HAL_FDI_DIR=${halfdidir} 20823 20824 20825# Checks for extensions 20826 20827 SAVE_CFLAGS="$CFLAGS" 20828 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20829 cat >conftest.$ac_ext <<_ACEOF 20830/* confdefs.h. */ 20831_ACEOF 20832cat confdefs.h >>conftest.$ac_ext 20833cat >>conftest.$ac_ext <<_ACEOF 20834/* end confdefs.h. */ 20835 20836#include "xorg-server.h" 20837#if !defined RANDR 20838#error RANDR not defined 20839#endif 20840 20841int 20842main () 20843{ 20844 20845 ; 20846 return 0; 20847} 20848_ACEOF 20849rm -f conftest.$ac_objext 20850if { (ac_try="$ac_compile" 20851case "(($ac_try" in 20852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20853 *) ac_try_echo=$ac_try;; 20854esac 20855eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20856$as_echo "$ac_try_echo") >&5 20857 (eval "$ac_compile") 2>conftest.er1 20858 ac_status=$? 20859 grep -v '^ *+' conftest.er1 >conftest.err 20860 rm -f conftest.er1 20861 cat conftest.err >&5 20862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20863 (exit $ac_status); } && { 20864 test -z "$ac_c_werror_flag" || 20865 test ! -s conftest.err 20866 } && test -s conftest.$ac_objext; then 20867 _EXT_CHECK=yes 20868else 20869 $as_echo "$as_me: failed program was:" >&5 20870sed 's/^/| /' conftest.$ac_ext >&5 20871 20872 _EXT_CHECK=no 20873fi 20874 20875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20876 CFLAGS="$SAVE_CFLAGS" 20877 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5 20878$as_echo_n "checking if RANDR is defined... " >&6; } 20879 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20880$as_echo "$_EXT_CHECK" >&6; } 20881 if test "$_EXT_CHECK" != no; then 20882 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 20883 fi 20884 20885 20886 SAVE_CFLAGS="$CFLAGS" 20887 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20888 cat >conftest.$ac_ext <<_ACEOF 20889/* confdefs.h. */ 20890_ACEOF 20891cat confdefs.h >>conftest.$ac_ext 20892cat >>conftest.$ac_ext <<_ACEOF 20893/* end confdefs.h. */ 20894 20895#include "xorg-server.h" 20896#if !defined XINPUT 20897#error XINPUT not defined 20898#endif 20899 20900int 20901main () 20902{ 20903 20904 ; 20905 return 0; 20906} 20907_ACEOF 20908rm -f conftest.$ac_objext 20909if { (ac_try="$ac_compile" 20910case "(($ac_try" in 20911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20912 *) ac_try_echo=$ac_try;; 20913esac 20914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20915$as_echo "$ac_try_echo") >&5 20916 (eval "$ac_compile") 2>conftest.er1 20917 ac_status=$? 20918 grep -v '^ *+' conftest.er1 >conftest.err 20919 rm -f conftest.er1 20920 cat conftest.err >&5 20921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20922 (exit $ac_status); } && { 20923 test -z "$ac_c_werror_flag" || 20924 test ! -s conftest.err 20925 } && test -s conftest.$ac_objext; then 20926 _EXT_CHECK=yes 20927else 20928 $as_echo "$as_me: failed program was:" >&5 20929sed 's/^/| /' conftest.$ac_ext >&5 20930 20931 _EXT_CHECK=no 20932fi 20933 20934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20935 CFLAGS="$SAVE_CFLAGS" 20936 { $as_echo "$as_me:$LINENO: checking if XINPUT is defined" >&5 20937$as_echo_n "checking if XINPUT is defined... " >&6; } 20938 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20939$as_echo "$_EXT_CHECK" >&6; } 20940 if test "$_EXT_CHECK" != no; then 20941 REQUIRED_MODULES="$REQUIRED_MODULES inputproto" 20942 fi 20943 20944 20945# Checks for pkg-config packages 20946 20947 20948if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 20949 if test -n "$ac_tool_prefix"; then 20950 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20951set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20952{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20953$as_echo_n "checking for $ac_word... " >&6; } 20954if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 20955 $as_echo_n "(cached) " >&6 20956else 20957 case $PKG_CONFIG in 20958 [\\/]* | ?:[\\/]*) 20959 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20960 ;; 20961 *) 20962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20963for as_dir in $PATH 20964do 20965 IFS=$as_save_IFS 20966 test -z "$as_dir" && as_dir=. 20967 for ac_exec_ext in '' $ac_executable_extensions; do 20968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20969 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20970 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20971 break 2 20972 fi 20973done 20974done 20975IFS=$as_save_IFS 20976 20977 ;; 20978esac 20979fi 20980PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20981if test -n "$PKG_CONFIG"; then 20982 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 20983$as_echo "$PKG_CONFIG" >&6; } 20984else 20985 { $as_echo "$as_me:$LINENO: result: no" >&5 20986$as_echo "no" >&6; } 20987fi 20988 20989 20990fi 20991if test -z "$ac_cv_path_PKG_CONFIG"; then 20992 ac_pt_PKG_CONFIG=$PKG_CONFIG 20993 # Extract the first word of "pkg-config", so it can be a program name with args. 20994set dummy pkg-config; ac_word=$2 20995{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20996$as_echo_n "checking for $ac_word... " >&6; } 20997if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 20998 $as_echo_n "(cached) " >&6 20999else 21000 case $ac_pt_PKG_CONFIG in 21001 [\\/]* | ?:[\\/]*) 21002 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 21003 ;; 21004 *) 21005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21006for as_dir in $PATH 21007do 21008 IFS=$as_save_IFS 21009 test -z "$as_dir" && as_dir=. 21010 for ac_exec_ext in '' $ac_executable_extensions; do 21011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21012 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21014 break 2 21015 fi 21016done 21017done 21018IFS=$as_save_IFS 21019 21020 ;; 21021esac 21022fi 21023ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 21024if test -n "$ac_pt_PKG_CONFIG"; then 21025 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 21026$as_echo "$ac_pt_PKG_CONFIG" >&6; } 21027else 21028 { $as_echo "$as_me:$LINENO: result: no" >&5 21029$as_echo "no" >&6; } 21030fi 21031 21032 if test "x$ac_pt_PKG_CONFIG" = x; then 21033 PKG_CONFIG="" 21034 else 21035 case $cross_compiling:$ac_tool_warned in 21036yes:) 21037{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 21038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21039ac_tool_warned=yes ;; 21040esac 21041 PKG_CONFIG=$ac_pt_PKG_CONFIG 21042 fi 21043else 21044 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 21045fi 21046 21047fi 21048if test -n "$PKG_CONFIG"; then 21049 _pkg_min_version=0.9.0 21050 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 21051$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 21052 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 21053 { $as_echo "$as_me:$LINENO: result: yes" >&5 21054$as_echo "yes" >&6; } 21055 else 21056 { $as_echo "$as_me:$LINENO: result: no" >&5 21057$as_echo "no" >&6; } 21058 PKG_CONFIG="" 21059 fi 21060 21061fi 21062 21063pkg_failed=no 21064{ $as_echo "$as_me:$LINENO: checking for XORG" >&5 21065$as_echo_n "checking for XORG... " >&6; } 21066 21067if test -n "$XORG_CFLAGS"; then 21068 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 21069 elif test -n "$PKG_CONFIG"; then 21070 if test -n "$PKG_CONFIG" && \ 21071 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto \$REQUIRED_MODULES\"") >&5 21072 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES") 2>&5 21073 ac_status=$? 21074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21075 (exit $ac_status); }; then 21076 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>/dev/null` 21077else 21078 pkg_failed=yes 21079fi 21080 else 21081 pkg_failed=untried 21082fi 21083if test -n "$XORG_LIBS"; then 21084 pkg_cv_XORG_LIBS="$XORG_LIBS" 21085 elif test -n "$PKG_CONFIG"; then 21086 if test -n "$PKG_CONFIG" && \ 21087 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto \$REQUIRED_MODULES\"") >&5 21088 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES") 2>&5 21089 ac_status=$? 21090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21091 (exit $ac_status); }; then 21092 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>/dev/null` 21093else 21094 pkg_failed=yes 21095fi 21096 else 21097 pkg_failed=untried 21098fi 21099 21100 21101 21102if test $pkg_failed = yes; then 21103 21104if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21105 _pkg_short_errors_supported=yes 21106else 21107 _pkg_short_errors_supported=no 21108fi 21109 if test $_pkg_short_errors_supported = yes; then 21110 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>&1` 21111 else 21112 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>&1` 21113 fi 21114 # Put the nasty error message in config.log where it belongs 21115 echo "$XORG_PKG_ERRORS" >&5 21116 21117 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.1 xproto $REQUIRED_MODULES) were not met: 21118 21119$XORG_PKG_ERRORS 21120 21121Consider adjusting the PKG_CONFIG_PATH environment variable if you 21122installed software in a non-standard prefix. 21123 21124Alternatively, you may set the environment variables XORG_CFLAGS 21125and XORG_LIBS to avoid the need to call pkg-config. 21126See the pkg-config man page for more details. 21127" >&5 21128$as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.1 xproto $REQUIRED_MODULES) were not met: 21129 21130$XORG_PKG_ERRORS 21131 21132Consider adjusting the PKG_CONFIG_PATH environment variable if you 21133installed software in a non-standard prefix. 21134 21135Alternatively, you may set the environment variables XORG_CFLAGS 21136and XORG_LIBS to avoid the need to call pkg-config. 21137See the pkg-config man page for more details. 21138" >&2;} 21139 { (exit 1); exit 1; }; } 21140elif test $pkg_failed = untried; then 21141 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 21142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21143{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 21144is in your PATH or set the PKG_CONFIG environment variable to the full 21145path to pkg-config. 21146 21147Alternatively, you may set the environment variables XORG_CFLAGS 21148and XORG_LIBS to avoid the need to call pkg-config. 21149See the pkg-config man page for more details. 21150 21151To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21152See \`config.log' for more details." >&5 21153$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 21154is in your PATH or set the PKG_CONFIG environment variable to the full 21155path to pkg-config. 21156 21157Alternatively, you may set the environment variables XORG_CFLAGS 21158and XORG_LIBS to avoid the need to call pkg-config. 21159See the pkg-config man page for more details. 21160 21161To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21162See \`config.log' for more details." >&2;} 21163 { (exit 1); exit 1; }; }; } 21164else 21165 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 21166 XORG_LIBS=$pkg_cv_XORG_LIBS 21167 { $as_echo "$as_me:$LINENO: result: yes" >&5 21168$as_echo "yes" >&6; } 21169 : 21170fi 21171sdkdir=$(pkg-config --variable=sdkdir xorg-server) 21172 21173if test -n "$PKG_CONFIG" && \ 21174 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0\"") >&5 21175 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0") 2>&5 21176 ac_status=$? 21177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21178 (exit $ac_status); }; then 21179 21180cat >>confdefs.h <<\_ACEOF 21181#define HAVE_XORG_SERVER_1_1_0 1 21182_ACEOF 21183 21184fi 21185 21186if test -n "$PKG_CONFIG" && \ 21187 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3.99.0 xorg-server <= 1.4.0.90\"") >&5 21188 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3.99.0 xorg-server <= 1.4.0.90") 2>&5 21189 ac_status=$? 21190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21191 (exit $ac_status); }; then 21192 21193cat >>confdefs.h <<\_ACEOF 21194#define CALL_CONVERSION_PROC 1 21195_ACEOF 21196 21197fi 21198if test -n "$PKG_CONFIG" && \ 21199 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server > 1.4.0.90\"") >&5 21200 ($PKG_CONFIG --exists --print-errors "xorg-server > 1.4.0.90") 2>&5 21201 ac_status=$? 21202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21203 (exit $ac_status); }; then 21204 21205cat >>confdefs.h <<\_ACEOF 21206#define ABS_VALUATOR_AXES 1 21207_ACEOF 21208 21209fi 21210if test -n "$PKG_CONFIG" && \ 21211 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6.0\"") >&5 21212 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6.0") 2>&5 21213 ac_status=$? 21214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21215 (exit $ac_status); }; then 21216 21217cat >>confdefs.h <<\_ACEOF 21218#define NO_MOUSE_MODULE 1 21219_ACEOF 21220 21221fi 21222 21223CFLAGS="$CFLAGS $XORG_CFLAGS "' -I$(top_srcdir)/src' 21224 21225 21226# Checks for libraries. 21227 21228# Checks for header files. 21229{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 21230$as_echo_n "checking for ANSI C header files... " >&6; } 21231if test "${ac_cv_header_stdc+set}" = set; then 21232 $as_echo_n "(cached) " >&6 21233else 21234 cat >conftest.$ac_ext <<_ACEOF 21235/* confdefs.h. */ 21236_ACEOF 21237cat confdefs.h >>conftest.$ac_ext 21238cat >>conftest.$ac_ext <<_ACEOF 21239/* end confdefs.h. */ 21240#include <stdlib.h> 21241#include <stdarg.h> 21242#include <string.h> 21243#include <float.h> 21244 21245int 21246main () 21247{ 21248 21249 ; 21250 return 0; 21251} 21252_ACEOF 21253rm -f conftest.$ac_objext 21254if { (ac_try="$ac_compile" 21255case "(($ac_try" in 21256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21257 *) ac_try_echo=$ac_try;; 21258esac 21259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21260$as_echo "$ac_try_echo") >&5 21261 (eval "$ac_compile") 2>conftest.er1 21262 ac_status=$? 21263 grep -v '^ *+' conftest.er1 >conftest.err 21264 rm -f conftest.er1 21265 cat conftest.err >&5 21266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21267 (exit $ac_status); } && { 21268 test -z "$ac_c_werror_flag" || 21269 test ! -s conftest.err 21270 } && test -s conftest.$ac_objext; then 21271 ac_cv_header_stdc=yes 21272else 21273 $as_echo "$as_me: failed program was:" >&5 21274sed 's/^/| /' conftest.$ac_ext >&5 21275 21276 ac_cv_header_stdc=no 21277fi 21278 21279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21280 21281if test $ac_cv_header_stdc = yes; then 21282 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 21283 cat >conftest.$ac_ext <<_ACEOF 21284/* confdefs.h. */ 21285_ACEOF 21286cat confdefs.h >>conftest.$ac_ext 21287cat >>conftest.$ac_ext <<_ACEOF 21288/* end confdefs.h. */ 21289#include <string.h> 21290 21291_ACEOF 21292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21293 $EGREP "memchr" >/dev/null 2>&1; then 21294 : 21295else 21296 ac_cv_header_stdc=no 21297fi 21298rm -f conftest* 21299 21300fi 21301 21302if test $ac_cv_header_stdc = yes; then 21303 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 21304 cat >conftest.$ac_ext <<_ACEOF 21305/* confdefs.h. */ 21306_ACEOF 21307cat confdefs.h >>conftest.$ac_ext 21308cat >>conftest.$ac_ext <<_ACEOF 21309/* end confdefs.h. */ 21310#include <stdlib.h> 21311 21312_ACEOF 21313if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21314 $EGREP "free" >/dev/null 2>&1; then 21315 : 21316else 21317 ac_cv_header_stdc=no 21318fi 21319rm -f conftest* 21320 21321fi 21322 21323if test $ac_cv_header_stdc = yes; then 21324 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 21325 if test "$cross_compiling" = yes; then 21326 : 21327else 21328 cat >conftest.$ac_ext <<_ACEOF 21329/* confdefs.h. */ 21330_ACEOF 21331cat confdefs.h >>conftest.$ac_ext 21332cat >>conftest.$ac_ext <<_ACEOF 21333/* end confdefs.h. */ 21334#include <ctype.h> 21335#include <stdlib.h> 21336#if ((' ' & 0x0FF) == 0x020) 21337# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 21338# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 21339#else 21340# define ISLOWER(c) \ 21341 (('a' <= (c) && (c) <= 'i') \ 21342 || ('j' <= (c) && (c) <= 'r') \ 21343 || ('s' <= (c) && (c) <= 'z')) 21344# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 21345#endif 21346 21347#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 21348int 21349main () 21350{ 21351 int i; 21352 for (i = 0; i < 256; i++) 21353 if (XOR (islower (i), ISLOWER (i)) 21354 || toupper (i) != TOUPPER (i)) 21355 return 2; 21356 return 0; 21357} 21358_ACEOF 21359rm -f conftest$ac_exeext 21360if { (ac_try="$ac_link" 21361case "(($ac_try" in 21362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21363 *) ac_try_echo=$ac_try;; 21364esac 21365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21366$as_echo "$ac_try_echo") >&5 21367 (eval "$ac_link") 2>&5 21368 ac_status=$? 21369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21371 { (case "(($ac_try" in 21372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21373 *) ac_try_echo=$ac_try;; 21374esac 21375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21376$as_echo "$ac_try_echo") >&5 21377 (eval "$ac_try") 2>&5 21378 ac_status=$? 21379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21380 (exit $ac_status); }; }; then 21381 : 21382else 21383 $as_echo "$as_me: program exited with status $ac_status" >&5 21384$as_echo "$as_me: failed program was:" >&5 21385sed 's/^/| /' conftest.$ac_ext >&5 21386 21387( exit $ac_status ) 21388ac_cv_header_stdc=no 21389fi 21390rm -rf conftest.dSYM 21391rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21392fi 21393 21394 21395fi 21396fi 21397{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 21398$as_echo "$ac_cv_header_stdc" >&6; } 21399if test $ac_cv_header_stdc = yes; then 21400 21401cat >>confdefs.h <<\_ACEOF 21402#define STDC_HEADERS 1 21403_ACEOF 21404 21405fi 21406 21407 21408 21409 21410 21411if test x$APP_MAN_SUFFIX = x ; then 21412 APP_MAN_SUFFIX=1 21413fi 21414if test x$APP_MAN_DIR = x ; then 21415 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 21416fi 21417 21418if test x$LIB_MAN_SUFFIX = x ; then 21419 LIB_MAN_SUFFIX=3 21420fi 21421if test x$LIB_MAN_DIR = x ; then 21422 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 21423fi 21424 21425if test x$FILE_MAN_SUFFIX = x ; then 21426 case $host_os in 21427 solaris*) FILE_MAN_SUFFIX=4 ;; 21428 *) FILE_MAN_SUFFIX=5 ;; 21429 esac 21430fi 21431if test x$FILE_MAN_DIR = x ; then 21432 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 21433fi 21434 21435if test x$MISC_MAN_SUFFIX = x ; then 21436 case $host_os in 21437 solaris*) MISC_MAN_SUFFIX=5 ;; 21438 *) MISC_MAN_SUFFIX=7 ;; 21439 esac 21440fi 21441if test x$MISC_MAN_DIR = x ; then 21442 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 21443fi 21444 21445if test x$DRIVER_MAN_SUFFIX = x ; then 21446 case $host_os in 21447 solaris*) DRIVER_MAN_SUFFIX=7 ;; 21448 *) DRIVER_MAN_SUFFIX=4 ;; 21449 esac 21450fi 21451if test x$DRIVER_MAN_DIR = x ; then 21452 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 21453fi 21454 21455if test x$ADMIN_MAN_SUFFIX = x ; then 21456 case $host_os in 21457 solaris*) ADMIN_MAN_SUFFIX=1m ;; 21458 *) ADMIN_MAN_SUFFIX=8 ;; 21459 esac 21460fi 21461if test x$ADMIN_MAN_DIR = x ; then 21462 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 21463fi 21464 21465 21466 21467 21468 21469 21470 21471 21472 21473 21474 21475 21476 21477 21478 21479 21480 21481# Check whether --with-release-version was given. 21482if test "${with_release_version+set}" = set; then 21483 withval=$with_release_version; RELEASE_VERSION="$withval" 21484else 21485 RELEASE_VERSION="" 21486fi 21487 21488 if test "x$RELEASE_VERSION" != "x"; then 21489 PACKAGE="$PACKAGE-$RELEASE_VERSION" 21490 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 21491 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 21492$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 21493 fi 21494 21495cat >>confdefs.h <<_ACEOF 21496#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 21497_ACEOF 21498 21499 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 21500 if test "x$PVM" = "x"; then 21501 PVM="0" 21502 fi 21503 21504cat >>confdefs.h <<_ACEOF 21505#define PACKAGE_VERSION_MINOR $PVM 21506_ACEOF 21507 21508 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 21509 if test "x$PVP" = "x"; then 21510 PVP="0" 21511 fi 21512 21513cat >>confdefs.h <<_ACEOF 21514#define PACKAGE_VERSION_PATCHLEVEL $PVP 21515_ACEOF 21516 21517 21518 21519ac_config_files="$ac_config_files Makefile shared/Makefile src/Makefile tools/Makefile fdi/Makefile man/Makefile" 21520 21521cat >confcache <<\_ACEOF 21522# This file is a shell script that caches the results of configure 21523# tests run on this system so they can be shared between configure 21524# scripts and configure runs, see configure's option --config-cache. 21525# It is not useful on other systems. If it contains results you don't 21526# want to keep, you may remove or edit it. 21527# 21528# config.status only pays attention to the cache file if you give it 21529# the --recheck option to rerun configure. 21530# 21531# `ac_cv_env_foo' variables (set or unset) will be overridden when 21532# loading this file, other *unset* `ac_cv_foo' will be assigned the 21533# following values. 21534 21535_ACEOF 21536 21537# The following way of writing the cache mishandles newlines in values, 21538# but we know of no workaround that is simple, portable, and efficient. 21539# So, we kill variables containing newlines. 21540# Ultrix sh set writes to stderr and can't be redirected directly, 21541# and sets the high bit in the cache file unless we assign to the vars. 21542( 21543 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21544 eval ac_val=\$$ac_var 21545 case $ac_val in #( 21546 *${as_nl}*) 21547 case $ac_var in #( 21548 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 21549$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21550 esac 21551 case $ac_var in #( 21552 _ | IFS | as_nl) ;; #( 21553 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21554 *) $as_unset $ac_var ;; 21555 esac ;; 21556 esac 21557 done 21558 21559 (set) 2>&1 | 21560 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21561 *${as_nl}ac_space=\ *) 21562 # `set' does not quote correctly, so add quotes (double-quote 21563 # substitution turns \\\\ into \\, and sed turns \\ into \). 21564 sed -n \ 21565 "s/'/'\\\\''/g; 21566 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21567 ;; #( 21568 *) 21569 # `set' quotes correctly as required by POSIX, so do not add quotes. 21570 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21571 ;; 21572 esac | 21573 sort 21574) | 21575 sed ' 21576 /^ac_cv_env_/b end 21577 t clear 21578 :clear 21579 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21580 t end 21581 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21582 :end' >>confcache 21583if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21584 if test -w "$cache_file"; then 21585 test "x$cache_file" != "x/dev/null" && 21586 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 21587$as_echo "$as_me: updating cache $cache_file" >&6;} 21588 cat confcache >$cache_file 21589 else 21590 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21591$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21592 fi 21593fi 21594rm -f confcache 21595 21596test "x$prefix" = xNONE && prefix=$ac_default_prefix 21597# Let make expand exec_prefix. 21598test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21599 21600DEFS=-DHAVE_CONFIG_H 21601 21602ac_libobjs= 21603ac_ltlibobjs= 21604for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21605 # 1. Remove the extension, and $U if already installed. 21606 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21607 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21608 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21609 # will be set to the directory where LIBOBJS objects are built. 21610 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21611 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21612done 21613LIBOBJS=$ac_libobjs 21614 21615LTLIBOBJS=$ac_ltlibobjs 21616 21617 21618if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21619 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 21620Usually this means the macro was only invoked conditionally." >&5 21621$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 21622Usually this means the macro was only invoked conditionally." >&2;} 21623 { (exit 1); exit 1; }; } 21624fi 21625if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21626 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21627Usually this means the macro was only invoked conditionally." >&5 21628$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 21629Usually this means the macro was only invoked conditionally." >&2;} 21630 { (exit 1); exit 1; }; } 21631fi 21632if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21633 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21634Usually this means the macro was only invoked conditionally." >&5 21635$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21636Usually this means the macro was only invoked conditionally." >&2;} 21637 { (exit 1); exit 1; }; } 21638fi 21639if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21640 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21641Usually this means the macro was only invoked conditionally." >&5 21642$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21643Usually this means the macro was only invoked conditionally." >&2;} 21644 { (exit 1); exit 1; }; } 21645fi 21646if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21647 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21648Usually this means the macro was only invoked conditionally." >&5 21649$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21650Usually this means the macro was only invoked conditionally." >&2;} 21651 { (exit 1); exit 1; }; } 21652fi 21653 21654: ${CONFIG_STATUS=./config.status} 21655ac_write_fail=0 21656ac_clean_files_save=$ac_clean_files 21657ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21658{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21659$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21660cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21661#! $SHELL 21662# Generated by $as_me. 21663# Run this file to recreate the current configuration. 21664# Compiler output produced by configure, useful for debugging 21665# configure, is in config.log if it exists. 21666 21667debug=false 21668ac_cs_recheck=false 21669ac_cs_silent=false 21670SHELL=\${CONFIG_SHELL-$SHELL} 21671_ACEOF 21672 21673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21674## --------------------- ## 21675## M4sh Initialization. ## 21676## --------------------- ## 21677 21678# Be more Bourne compatible 21679DUALCASE=1; export DUALCASE # for MKS sh 21680if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21681 emulate sh 21682 NULLCMD=: 21683 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21684 # is contrary to our usage. Disable this feature. 21685 alias -g '${1+"$@"}'='"$@"' 21686 setopt NO_GLOB_SUBST 21687else 21688 case `(set -o) 2>/dev/null` in 21689 *posix*) set -o posix ;; 21690esac 21691 21692fi 21693 21694 21695 21696 21697# PATH needs CR 21698# Avoid depending upon Character Ranges. 21699as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21700as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21701as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21702as_cr_digits='0123456789' 21703as_cr_alnum=$as_cr_Letters$as_cr_digits 21704 21705as_nl=' 21706' 21707export as_nl 21708# Printing a long string crashes Solaris 7 /usr/bin/printf. 21709as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21710as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21711as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21712if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21713 as_echo='printf %s\n' 21714 as_echo_n='printf %s' 21715else 21716 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21717 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21718 as_echo_n='/usr/ucb/echo -n' 21719 else 21720 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21721 as_echo_n_body='eval 21722 arg=$1; 21723 case $arg in 21724 *"$as_nl"*) 21725 expr "X$arg" : "X\\(.*\\)$as_nl"; 21726 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21727 esac; 21728 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21729 ' 21730 export as_echo_n_body 21731 as_echo_n='sh -c $as_echo_n_body as_echo' 21732 fi 21733 export as_echo_body 21734 as_echo='sh -c $as_echo_body as_echo' 21735fi 21736 21737# The user is always right. 21738if test "${PATH_SEPARATOR+set}" != set; then 21739 PATH_SEPARATOR=: 21740 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21741 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21742 PATH_SEPARATOR=';' 21743 } 21744fi 21745 21746# Support unset when possible. 21747if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21748 as_unset=unset 21749else 21750 as_unset=false 21751fi 21752 21753 21754# IFS 21755# We need space, tab and new line, in precisely that order. Quoting is 21756# there to prevent editors from complaining about space-tab. 21757# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21758# splitting by setting IFS to empty value.) 21759IFS=" "" $as_nl" 21760 21761# Find who we are. Look in the path if we contain no directory separator. 21762case $0 in 21763 *[\\/]* ) as_myself=$0 ;; 21764 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21765for as_dir in $PATH 21766do 21767 IFS=$as_save_IFS 21768 test -z "$as_dir" && as_dir=. 21769 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21770done 21771IFS=$as_save_IFS 21772 21773 ;; 21774esac 21775# We did not find ourselves, most probably we were run as `sh COMMAND' 21776# in which case we are not to be found in the path. 21777if test "x$as_myself" = x; then 21778 as_myself=$0 21779fi 21780if test ! -f "$as_myself"; then 21781 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21782 { (exit 1); exit 1; } 21783fi 21784 21785# Work around bugs in pre-3.0 UWIN ksh. 21786for as_var in ENV MAIL MAILPATH 21787do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21788done 21789PS1='$ ' 21790PS2='> ' 21791PS4='+ ' 21792 21793# NLS nuisances. 21794LC_ALL=C 21795export LC_ALL 21796LANGUAGE=C 21797export LANGUAGE 21798 21799# Required to use basename. 21800if expr a : '\(a\)' >/dev/null 2>&1 && 21801 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21802 as_expr=expr 21803else 21804 as_expr=false 21805fi 21806 21807if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21808 as_basename=basename 21809else 21810 as_basename=false 21811fi 21812 21813 21814# Name of the executable. 21815as_me=`$as_basename -- "$0" || 21816$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21817 X"$0" : 'X\(//\)$' \| \ 21818 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21819$as_echo X/"$0" | 21820 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21821 s//\1/ 21822 q 21823 } 21824 /^X\/\(\/\/\)$/{ 21825 s//\1/ 21826 q 21827 } 21828 /^X\/\(\/\).*/{ 21829 s//\1/ 21830 q 21831 } 21832 s/.*/./; q'` 21833 21834# CDPATH. 21835$as_unset CDPATH 21836 21837 21838 21839 as_lineno_1=$LINENO 21840 as_lineno_2=$LINENO 21841 test "x$as_lineno_1" != "x$as_lineno_2" && 21842 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21843 21844 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21845 # uniformly replaced by the line number. The first 'sed' inserts a 21846 # line-number line after each line using $LINENO; the second 'sed' 21847 # does the real work. The second script uses 'N' to pair each 21848 # line-number line with the line containing $LINENO, and appends 21849 # trailing '-' during substitution so that $LINENO is not a special 21850 # case at line end. 21851 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21852 # scripts with optimization help from Paolo Bonzini. Blame Lee 21853 # E. McMahon (1931-1989) for sed's syntax. :-) 21854 sed -n ' 21855 p 21856 /[$]LINENO/= 21857 ' <$as_myself | 21858 sed ' 21859 s/[$]LINENO.*/&-/ 21860 t lineno 21861 b 21862 :lineno 21863 N 21864 :loop 21865 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21866 t loop 21867 s/-\n.*// 21868 ' >$as_me.lineno && 21869 chmod +x "$as_me.lineno" || 21870 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21871 { (exit 1); exit 1; }; } 21872 21873 # Don't try to exec as it changes $[0], causing all sort of problems 21874 # (the dirname of $[0] is not the place where we might find the 21875 # original and so on. Autoconf is especially sensitive to this). 21876 . "./$as_me.lineno" 21877 # Exit status is that of the last command. 21878 exit 21879} 21880 21881 21882if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21883 as_dirname=dirname 21884else 21885 as_dirname=false 21886fi 21887 21888ECHO_C= ECHO_N= ECHO_T= 21889case `echo -n x` in 21890-n*) 21891 case `echo 'x\c'` in 21892 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21893 *) ECHO_C='\c';; 21894 esac;; 21895*) 21896 ECHO_N='-n';; 21897esac 21898if expr a : '\(a\)' >/dev/null 2>&1 && 21899 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21900 as_expr=expr 21901else 21902 as_expr=false 21903fi 21904 21905rm -f conf$$ conf$$.exe conf$$.file 21906if test -d conf$$.dir; then 21907 rm -f conf$$.dir/conf$$.file 21908else 21909 rm -f conf$$.dir 21910 mkdir conf$$.dir 2>/dev/null 21911fi 21912if (echo >conf$$.file) 2>/dev/null; then 21913 if ln -s conf$$.file conf$$ 2>/dev/null; then 21914 as_ln_s='ln -s' 21915 # ... but there are two gotchas: 21916 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21917 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21918 # In both cases, we have to default to `cp -p'. 21919 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21920 as_ln_s='cp -p' 21921 elif ln conf$$.file conf$$ 2>/dev/null; then 21922 as_ln_s=ln 21923 else 21924 as_ln_s='cp -p' 21925 fi 21926else 21927 as_ln_s='cp -p' 21928fi 21929rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21930rmdir conf$$.dir 2>/dev/null 21931 21932if mkdir -p . 2>/dev/null; then 21933 as_mkdir_p=: 21934else 21935 test -d ./-p && rmdir ./-p 21936 as_mkdir_p=false 21937fi 21938 21939if test -x / >/dev/null 2>&1; then 21940 as_test_x='test -x' 21941else 21942 if ls -dL / >/dev/null 2>&1; then 21943 as_ls_L_option=L 21944 else 21945 as_ls_L_option= 21946 fi 21947 as_test_x=' 21948 eval sh -c '\'' 21949 if test -d "$1"; then 21950 test -d "$1/."; 21951 else 21952 case $1 in 21953 -*)set "./$1";; 21954 esac; 21955 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 21956 ???[sx]*):;;*)false;;esac;fi 21957 '\'' sh 21958 ' 21959fi 21960as_executable_p=$as_test_x 21961 21962# Sed expression to map a string onto a valid CPP name. 21963as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21964 21965# Sed expression to map a string onto a valid variable name. 21966as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21967 21968 21969exec 6>&1 21970 21971# Save the log message, to keep $[0] and so on meaningful, and to 21972# report actual input values of CONFIG_FILES etc. instead of their 21973# values after options handling. 21974ac_log=" 21975This file was extended by xf86-input-vmmouse $as_me 12.6.5, which was 21976generated by GNU Autoconf 2.63. Invocation command line was 21977 21978 CONFIG_FILES = $CONFIG_FILES 21979 CONFIG_HEADERS = $CONFIG_HEADERS 21980 CONFIG_LINKS = $CONFIG_LINKS 21981 CONFIG_COMMANDS = $CONFIG_COMMANDS 21982 $ $0 $@ 21983 21984on `(hostname || uname -n) 2>/dev/null | sed 1q` 21985" 21986 21987_ACEOF 21988 21989case $ac_config_files in *" 21990"*) set x $ac_config_files; shift; ac_config_files=$*;; 21991esac 21992 21993case $ac_config_headers in *" 21994"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21995esac 21996 21997 21998cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21999# Files that config.status was made for. 22000config_files="$ac_config_files" 22001config_headers="$ac_config_headers" 22002config_commands="$ac_config_commands" 22003 22004_ACEOF 22005 22006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22007ac_cs_usage="\ 22008\`$as_me' instantiates files from templates according to the 22009current configuration. 22010 22011Usage: $0 [OPTION]... [FILE]... 22012 22013 -h, --help print this help, then exit 22014 -V, --version print version number and configuration settings, then exit 22015 -q, --quiet, --silent 22016 do not print progress messages 22017 -d, --debug don't remove temporary files 22018 --recheck update $as_me by reconfiguring in the same conditions 22019 --file=FILE[:TEMPLATE] 22020 instantiate the configuration file FILE 22021 --header=FILE[:TEMPLATE] 22022 instantiate the configuration header FILE 22023 22024Configuration files: 22025$config_files 22026 22027Configuration headers: 22028$config_headers 22029 22030Configuration commands: 22031$config_commands 22032 22033Report bugs to <bug-autoconf@gnu.org>." 22034 22035_ACEOF 22036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22037ac_cs_version="\\ 22038xf86-input-vmmouse config.status 12.6.5 22039configured by $0, generated by GNU Autoconf 2.63, 22040 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22041 22042Copyright (C) 2008 Free Software Foundation, Inc. 22043This config.status script is free software; the Free Software Foundation 22044gives unlimited permission to copy, distribute and modify it." 22045 22046ac_pwd='$ac_pwd' 22047srcdir='$srcdir' 22048INSTALL='$INSTALL' 22049MKDIR_P='$MKDIR_P' 22050AWK='$AWK' 22051test -n "\$AWK" || AWK=awk 22052_ACEOF 22053 22054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22055# The default lists apply if the user does not specify any file. 22056ac_need_defaults=: 22057while test $# != 0 22058do 22059 case $1 in 22060 --*=*) 22061 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22062 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22063 ac_shift=: 22064 ;; 22065 *) 22066 ac_option=$1 22067 ac_optarg=$2 22068 ac_shift=shift 22069 ;; 22070 esac 22071 22072 case $ac_option in 22073 # Handling of the options. 22074 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22075 ac_cs_recheck=: ;; 22076 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22077 $as_echo "$ac_cs_version"; exit ;; 22078 --debug | --debu | --deb | --de | --d | -d ) 22079 debug=: ;; 22080 --file | --fil | --fi | --f ) 22081 $ac_shift 22082 case $ac_optarg in 22083 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22084 esac 22085 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 22086 ac_need_defaults=false;; 22087 --header | --heade | --head | --hea ) 22088 $ac_shift 22089 case $ac_optarg in 22090 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22091 esac 22092 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 22093 ac_need_defaults=false;; 22094 --he | --h) 22095 # Conflict between --help and --header 22096 { $as_echo "$as_me: error: ambiguous option: $1 22097Try \`$0 --help' for more information." >&2 22098 { (exit 1); exit 1; }; };; 22099 --help | --hel | -h ) 22100 $as_echo "$ac_cs_usage"; exit ;; 22101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22102 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22103 ac_cs_silent=: ;; 22104 22105 # This is an error. 22106 -*) { $as_echo "$as_me: error: unrecognized option: $1 22107Try \`$0 --help' for more information." >&2 22108 { (exit 1); exit 1; }; } ;; 22109 22110 *) ac_config_targets="$ac_config_targets $1" 22111 ac_need_defaults=false ;; 22112 22113 esac 22114 shift 22115done 22116 22117ac_configure_extra_args= 22118 22119if $ac_cs_silent; then 22120 exec 6>/dev/null 22121 ac_configure_extra_args="$ac_configure_extra_args --silent" 22122fi 22123 22124_ACEOF 22125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22126if \$ac_cs_recheck; then 22127 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22128 shift 22129 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22130 CONFIG_SHELL='$SHELL' 22131 export CONFIG_SHELL 22132 exec "\$@" 22133fi 22134 22135_ACEOF 22136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22137exec 5>>config.log 22138{ 22139 echo 22140 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22141## Running $as_me. ## 22142_ASBOX 22143 $as_echo "$ac_log" 22144} >&5 22145 22146_ACEOF 22147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22148# 22149# INIT-COMMANDS 22150# 22151AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22152 22153_ACEOF 22154 22155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22156 22157# Handling of arguments. 22158for ac_config_target in $ac_config_targets 22159do 22160 case $ac_config_target in 22161 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22162 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22163 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22164 "shared/Makefile") CONFIG_FILES="$CONFIG_FILES shared/Makefile" ;; 22165 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22166 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 22167 "fdi/Makefile") CONFIG_FILES="$CONFIG_FILES fdi/Makefile" ;; 22168 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22169 22170 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22171$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22172 { (exit 1); exit 1; }; };; 22173 esac 22174done 22175 22176 22177# If the user did not use the arguments to specify the items to instantiate, 22178# then the envvar interface is used. Set only those that are not. 22179# We use the long form for the default assignment because of an extremely 22180# bizarre bug on SunOS 4.1.3. 22181if $ac_need_defaults; then 22182 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22183 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22184 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22185fi 22186 22187# Have a temporary directory for convenience. Make it in the build tree 22188# simply because there is no reason against having it here, and in addition, 22189# creating and moving files from /tmp can sometimes cause problems. 22190# Hook for its removal unless debugging. 22191# Note that there is a small window in which the directory will not be cleaned: 22192# after its creation but before its name has been assigned to `$tmp'. 22193$debug || 22194{ 22195 tmp= 22196 trap 'exit_status=$? 22197 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22198' 0 22199 trap '{ (exit 1); exit 1; }' 1 2 13 15 22200} 22201# Create a (secure) tmp directory for tmp files. 22202 22203{ 22204 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22205 test -n "$tmp" && test -d "$tmp" 22206} || 22207{ 22208 tmp=./conf$$-$RANDOM 22209 (umask 077 && mkdir "$tmp") 22210} || 22211{ 22212 $as_echo "$as_me: cannot create a temporary directory in ." >&2 22213 { (exit 1); exit 1; } 22214} 22215 22216# Set up the scripts for CONFIG_FILES section. 22217# No need to generate them if there are no CONFIG_FILES. 22218# This happens for instance with `./config.status config.h'. 22219if test -n "$CONFIG_FILES"; then 22220 22221 22222ac_cr=' 22223' 22224ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22225if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22226 ac_cs_awk_cr='\\r' 22227else 22228 ac_cs_awk_cr=$ac_cr 22229fi 22230 22231echo 'BEGIN {' >"$tmp/subs1.awk" && 22232_ACEOF 22233 22234 22235{ 22236 echo "cat >conf$$subs.awk <<_ACEOF" && 22237 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22238 echo "_ACEOF" 22239} >conf$$subs.sh || 22240 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22241$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22242 { (exit 1); exit 1; }; } 22243ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 22244ac_delim='%!_!# ' 22245for ac_last_try in false false false false false :; do 22246 . ./conf$$subs.sh || 22247 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22248$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22249 { (exit 1); exit 1; }; } 22250 22251 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22252 if test $ac_delim_n = $ac_delim_num; then 22253 break 22254 elif $ac_last_try; then 22255 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22256$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22257 { (exit 1); exit 1; }; } 22258 else 22259 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22260 fi 22261done 22262rm -f conf$$subs.sh 22263 22264cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22265cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 22266_ACEOF 22267sed -n ' 22268h 22269s/^/S["/; s/!.*/"]=/ 22270p 22271g 22272s/^[^!]*!// 22273:repl 22274t repl 22275s/'"$ac_delim"'$// 22276t delim 22277:nl 22278h 22279s/\(.\{148\}\).*/\1/ 22280t more1 22281s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22282p 22283n 22284b repl 22285:more1 22286s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22287p 22288g 22289s/.\{148\}// 22290t nl 22291:delim 22292h 22293s/\(.\{148\}\).*/\1/ 22294t more2 22295s/["\\]/\\&/g; s/^/"/; s/$/"/ 22296p 22297b 22298:more2 22299s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22300p 22301g 22302s/.\{148\}// 22303t delim 22304' <conf$$subs.awk | sed ' 22305/^[^""]/{ 22306 N 22307 s/\n// 22308} 22309' >>$CONFIG_STATUS || ac_write_fail=1 22310rm -f conf$$subs.awk 22311cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22312_ACAWK 22313cat >>"\$tmp/subs1.awk" <<_ACAWK && 22314 for (key in S) S_is_set[key] = 1 22315 FS = "" 22316 22317} 22318{ 22319 line = $ 0 22320 nfields = split(line, field, "@") 22321 substed = 0 22322 len = length(field[1]) 22323 for (i = 2; i < nfields; i++) { 22324 key = field[i] 22325 keylen = length(key) 22326 if (S_is_set[key]) { 22327 value = S[key] 22328 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22329 len += length(value) + length(field[++i]) 22330 substed = 1 22331 } else 22332 len += 1 + keylen 22333 } 22334 22335 print line 22336} 22337 22338_ACAWK 22339_ACEOF 22340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22341if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22342 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22343else 22344 cat 22345fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 22346 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 22347$as_echo "$as_me: error: could not setup config files machinery" >&2;} 22348 { (exit 1); exit 1; }; } 22349_ACEOF 22350 22351# VPATH may cause trouble with some makes, so we remove $(srcdir), 22352# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22353# trailing colons and then remove the whole line if VPATH becomes empty 22354# (actually we leave an empty line to preserve line numbers). 22355if test "x$srcdir" = x.; then 22356 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22357s/:*\$(srcdir):*/:/ 22358s/:*\${srcdir}:*/:/ 22359s/:*@srcdir@:*/:/ 22360s/^\([^=]*=[ ]*\):*/\1/ 22361s/:*$// 22362s/^[^=]*=[ ]*$// 22363}' 22364fi 22365 22366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22367fi # test -n "$CONFIG_FILES" 22368 22369# Set up the scripts for CONFIG_HEADERS section. 22370# No need to generate them if there are no CONFIG_HEADERS. 22371# This happens for instance with `./config.status Makefile'. 22372if test -n "$CONFIG_HEADERS"; then 22373cat >"$tmp/defines.awk" <<\_ACAWK || 22374BEGIN { 22375_ACEOF 22376 22377# Transform confdefs.h into an awk script `defines.awk', embedded as 22378# here-document in config.status, that substitutes the proper values into 22379# config.h.in to produce config.h. 22380 22381# Create a delimiter string that does not exist in confdefs.h, to ease 22382# handling of long lines. 22383ac_delim='%!_!# ' 22384for ac_last_try in false false :; do 22385 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 22386 if test -z "$ac_t"; then 22387 break 22388 elif $ac_last_try; then 22389 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 22390$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 22391 { (exit 1); exit 1; }; } 22392 else 22393 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22394 fi 22395done 22396 22397# For the awk script, D is an array of macro values keyed by name, 22398# likewise P contains macro parameters if any. Preserve backslash 22399# newline sequences. 22400 22401ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22402sed -n ' 22403s/.\{148\}/&'"$ac_delim"'/g 22404t rset 22405:rset 22406s/^[ ]*#[ ]*define[ ][ ]*/ / 22407t def 22408d 22409:def 22410s/\\$// 22411t bsnl 22412s/["\\]/\\&/g 22413s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22414D["\1"]=" \3"/p 22415s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22416d 22417:bsnl 22418s/["\\]/\\&/g 22419s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22420D["\1"]=" \3\\\\\\n"\\/p 22421t cont 22422s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22423t cont 22424d 22425:cont 22426n 22427s/.\{148\}/&'"$ac_delim"'/g 22428t clear 22429:clear 22430s/\\$// 22431t bsnlc 22432s/["\\]/\\&/g; s/^/"/; s/$/"/p 22433d 22434:bsnlc 22435s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22436b cont 22437' <confdefs.h | sed ' 22438s/'"$ac_delim"'/"\\\ 22439"/g' >>$CONFIG_STATUS || ac_write_fail=1 22440 22441cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22442 for (key in D) D_is_set[key] = 1 22443 FS = "" 22444} 22445/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22446 line = \$ 0 22447 split(line, arg, " ") 22448 if (arg[1] == "#") { 22449 defundef = arg[2] 22450 mac1 = arg[3] 22451 } else { 22452 defundef = substr(arg[1], 2) 22453 mac1 = arg[2] 22454 } 22455 split(mac1, mac2, "(") #) 22456 macro = mac2[1] 22457 prefix = substr(line, 1, index(line, defundef) - 1) 22458 if (D_is_set[macro]) { 22459 # Preserve the white space surrounding the "#". 22460 print prefix "define", macro P[macro] D[macro] 22461 next 22462 } else { 22463 # Replace #undef with comments. This is necessary, for example, 22464 # in the case of _POSIX_SOURCE, which is predefined and required 22465 # on some systems where configure will not decide to define it. 22466 if (defundef == "undef") { 22467 print "/*", prefix defundef, macro, "*/" 22468 next 22469 } 22470 } 22471} 22472{ print } 22473_ACAWK 22474_ACEOF 22475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22476 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 22477$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 22478 { (exit 1); exit 1; }; } 22479fi # test -n "$CONFIG_HEADERS" 22480 22481 22482eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22483shift 22484for ac_tag 22485do 22486 case $ac_tag in 22487 :[FHLC]) ac_mode=$ac_tag; continue;; 22488 esac 22489 case $ac_mode$ac_tag in 22490 :[FHL]*:*);; 22491 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 22492$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 22493 { (exit 1); exit 1; }; };; 22494 :[FH]-) ac_tag=-:-;; 22495 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22496 esac 22497 ac_save_IFS=$IFS 22498 IFS=: 22499 set x $ac_tag 22500 IFS=$ac_save_IFS 22501 shift 22502 ac_file=$1 22503 shift 22504 22505 case $ac_mode in 22506 :L) ac_source=$1;; 22507 :[FH]) 22508 ac_file_inputs= 22509 for ac_f 22510 do 22511 case $ac_f in 22512 -) ac_f="$tmp/stdin";; 22513 *) # Look for the file first in the build tree, then in the source tree 22514 # (if the path is not absolute). The absolute path cannot be DOS-style, 22515 # because $ac_f cannot contain `:'. 22516 test -f "$ac_f" || 22517 case $ac_f in 22518 [\\/$]*) false;; 22519 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22520 esac || 22521 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22522$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22523 { (exit 1); exit 1; }; };; 22524 esac 22525 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22526 ac_file_inputs="$ac_file_inputs '$ac_f'" 22527 done 22528 22529 # Let's still pretend it is `configure' which instantiates (i.e., don't 22530 # use $as_me), people would be surprised to read: 22531 # /* config.h. Generated by config.status. */ 22532 configure_input='Generated from '` 22533 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22534 `' by configure.' 22535 if test x"$ac_file" != x-; then 22536 configure_input="$ac_file. $configure_input" 22537 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 22538$as_echo "$as_me: creating $ac_file" >&6;} 22539 fi 22540 # Neutralize special characters interpreted by sed in replacement strings. 22541 case $configure_input in #( 22542 *\&* | *\|* | *\\* ) 22543 ac_sed_conf_input=`$as_echo "$configure_input" | 22544 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22545 *) ac_sed_conf_input=$configure_input;; 22546 esac 22547 22548 case $ac_tag in 22549 *:-:* | *:-) cat >"$tmp/stdin" \ 22550 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22551$as_echo "$as_me: error: could not create $ac_file" >&2;} 22552 { (exit 1); exit 1; }; } ;; 22553 esac 22554 ;; 22555 esac 22556 22557 ac_dir=`$as_dirname -- "$ac_file" || 22558$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22559 X"$ac_file" : 'X\(//\)[^/]' \| \ 22560 X"$ac_file" : 'X\(//\)$' \| \ 22561 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22562$as_echo X"$ac_file" | 22563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22564 s//\1/ 22565 q 22566 } 22567 /^X\(\/\/\)[^/].*/{ 22568 s//\1/ 22569 q 22570 } 22571 /^X\(\/\/\)$/{ 22572 s//\1/ 22573 q 22574 } 22575 /^X\(\/\).*/{ 22576 s//\1/ 22577 q 22578 } 22579 s/.*/./; q'` 22580 { as_dir="$ac_dir" 22581 case $as_dir in #( 22582 -*) as_dir=./$as_dir;; 22583 esac 22584 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22585 as_dirs= 22586 while :; do 22587 case $as_dir in #( 22588 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22589 *) as_qdir=$as_dir;; 22590 esac 22591 as_dirs="'$as_qdir' $as_dirs" 22592 as_dir=`$as_dirname -- "$as_dir" || 22593$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22594 X"$as_dir" : 'X\(//\)[^/]' \| \ 22595 X"$as_dir" : 'X\(//\)$' \| \ 22596 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22597$as_echo X"$as_dir" | 22598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22599 s//\1/ 22600 q 22601 } 22602 /^X\(\/\/\)[^/].*/{ 22603 s//\1/ 22604 q 22605 } 22606 /^X\(\/\/\)$/{ 22607 s//\1/ 22608 q 22609 } 22610 /^X\(\/\).*/{ 22611 s//\1/ 22612 q 22613 } 22614 s/.*/./; q'` 22615 test -d "$as_dir" && break 22616 done 22617 test -z "$as_dirs" || eval "mkdir $as_dirs" 22618 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22619$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 22620 { (exit 1); exit 1; }; }; } 22621 ac_builddir=. 22622 22623case "$ac_dir" in 22624.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22625*) 22626 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22627 # A ".." for each directory in $ac_dir_suffix. 22628 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22629 case $ac_top_builddir_sub in 22630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22632 esac ;; 22633esac 22634ac_abs_top_builddir=$ac_pwd 22635ac_abs_builddir=$ac_pwd$ac_dir_suffix 22636# for backward compatibility: 22637ac_top_builddir=$ac_top_build_prefix 22638 22639case $srcdir in 22640 .) # We are building in place. 22641 ac_srcdir=. 22642 ac_top_srcdir=$ac_top_builddir_sub 22643 ac_abs_top_srcdir=$ac_pwd ;; 22644 [\\/]* | ?:[\\/]* ) # Absolute name. 22645 ac_srcdir=$srcdir$ac_dir_suffix; 22646 ac_top_srcdir=$srcdir 22647 ac_abs_top_srcdir=$srcdir ;; 22648 *) # Relative name. 22649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22650 ac_top_srcdir=$ac_top_build_prefix$srcdir 22651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22652esac 22653ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22654 22655 22656 case $ac_mode in 22657 :F) 22658 # 22659 # CONFIG_FILE 22660 # 22661 22662 case $INSTALL in 22663 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22664 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22665 esac 22666 ac_MKDIR_P=$MKDIR_P 22667 case $MKDIR_P in 22668 [\\/$]* | ?:[\\/]* ) ;; 22669 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22670 esac 22671_ACEOF 22672 22673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22674# If the template does not know about datarootdir, expand it. 22675# FIXME: This hack should be removed a few years after 2.60. 22676ac_datarootdir_hack=; ac_datarootdir_seen= 22677 22678ac_sed_dataroot=' 22679/datarootdir/ { 22680 p 22681 q 22682} 22683/@datadir@/p 22684/@docdir@/p 22685/@infodir@/p 22686/@localedir@/p 22687/@mandir@/p 22688' 22689case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22690*datarootdir*) ac_datarootdir_seen=yes;; 22691*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22692 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22693$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22694_ACEOF 22695cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22696 ac_datarootdir_hack=' 22697 s&@datadir@&$datadir&g 22698 s&@docdir@&$docdir&g 22699 s&@infodir@&$infodir&g 22700 s&@localedir@&$localedir&g 22701 s&@mandir@&$mandir&g 22702 s&\\\${datarootdir}&$datarootdir&g' ;; 22703esac 22704_ACEOF 22705 22706# Neutralize VPATH when `$srcdir' = `.'. 22707# Shell code in configure.ac might set extrasub. 22708# FIXME: do we really want to maintain this feature? 22709cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22710ac_sed_extra="$ac_vpsub 22711$extrasub 22712_ACEOF 22713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22714:t 22715/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22716s|@configure_input@|$ac_sed_conf_input|;t t 22717s&@top_builddir@&$ac_top_builddir_sub&;t t 22718s&@top_build_prefix@&$ac_top_build_prefix&;t t 22719s&@srcdir@&$ac_srcdir&;t t 22720s&@abs_srcdir@&$ac_abs_srcdir&;t t 22721s&@top_srcdir@&$ac_top_srcdir&;t t 22722s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22723s&@builddir@&$ac_builddir&;t t 22724s&@abs_builddir@&$ac_abs_builddir&;t t 22725s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22726s&@INSTALL@&$ac_INSTALL&;t t 22727s&@MKDIR_P@&$ac_MKDIR_P&;t t 22728$ac_datarootdir_hack 22729" 22730eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 22731 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22732$as_echo "$as_me: error: could not create $ac_file" >&2;} 22733 { (exit 1); exit 1; }; } 22734 22735test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22736 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22737 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22738 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22739which seems to be undefined. Please make sure it is defined." >&5 22740$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22741which seems to be undefined. Please make sure it is defined." >&2;} 22742 22743 rm -f "$tmp/stdin" 22744 case $ac_file in 22745 -) cat "$tmp/out" && rm -f "$tmp/out";; 22746 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 22747 esac \ 22748 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22749$as_echo "$as_me: error: could not create $ac_file" >&2;} 22750 { (exit 1); exit 1; }; } 22751 ;; 22752 :H) 22753 # 22754 # CONFIG_HEADER 22755 # 22756 if test x"$ac_file" != x-; then 22757 { 22758 $as_echo "/* $configure_input */" \ 22759 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 22760 } >"$tmp/config.h" \ 22761 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22762$as_echo "$as_me: error: could not create $ac_file" >&2;} 22763 { (exit 1); exit 1; }; } 22764 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 22765 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22766$as_echo "$as_me: $ac_file is unchanged" >&6;} 22767 else 22768 rm -f "$ac_file" 22769 mv "$tmp/config.h" "$ac_file" \ 22770 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22771$as_echo "$as_me: error: could not create $ac_file" >&2;} 22772 { (exit 1); exit 1; }; } 22773 fi 22774 else 22775 $as_echo "/* $configure_input */" \ 22776 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 22777 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 22778$as_echo "$as_me: error: could not create -" >&2;} 22779 { (exit 1); exit 1; }; } 22780 fi 22781# Compute "$ac_file"'s index in $config_headers. 22782_am_arg="$ac_file" 22783_am_stamp_count=1 22784for _am_header in $config_headers :; do 22785 case $_am_header in 22786 $_am_arg | $_am_arg:* ) 22787 break ;; 22788 * ) 22789 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22790 esac 22791done 22792echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22793$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22794 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22795 X"$_am_arg" : 'X\(//\)$' \| \ 22796 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22797$as_echo X"$_am_arg" | 22798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22799 s//\1/ 22800 q 22801 } 22802 /^X\(\/\/\)[^/].*/{ 22803 s//\1/ 22804 q 22805 } 22806 /^X\(\/\/\)$/{ 22807 s//\1/ 22808 q 22809 } 22810 /^X\(\/\).*/{ 22811 s//\1/ 22812 q 22813 } 22814 s/.*/./; q'`/stamp-h$_am_stamp_count 22815 ;; 22816 22817 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 22818$as_echo "$as_me: executing $ac_file commands" >&6;} 22819 ;; 22820 esac 22821 22822 22823 case $ac_file$ac_mode in 22824 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 22825 # Strip MF so we end up with the name of the file. 22826 mf=`echo "$mf" | sed -e 's/:.*$//'` 22827 # Check whether this is an Automake generated Makefile or not. 22828 # We used to match only the files named `Makefile.in', but 22829 # some people rename them; so instead we look at the file content. 22830 # Grep'ing the first line is not enough: some people post-process 22831 # each Makefile.in and add a new line on top of each file to say so. 22832 # Grep'ing the whole file is not good either: AIX grep has a line 22833 # limit of 2048, but all sed's we know have understand at least 4000. 22834 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22835 dirpart=`$as_dirname -- "$mf" || 22836$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22837 X"$mf" : 'X\(//\)[^/]' \| \ 22838 X"$mf" : 'X\(//\)$' \| \ 22839 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22840$as_echo X"$mf" | 22841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22842 s//\1/ 22843 q 22844 } 22845 /^X\(\/\/\)[^/].*/{ 22846 s//\1/ 22847 q 22848 } 22849 /^X\(\/\/\)$/{ 22850 s//\1/ 22851 q 22852 } 22853 /^X\(\/\).*/{ 22854 s//\1/ 22855 q 22856 } 22857 s/.*/./; q'` 22858 else 22859 continue 22860 fi 22861 # Extract the definition of DEPDIR, am__include, and am__quote 22862 # from the Makefile without running `make'. 22863 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22864 test -z "$DEPDIR" && continue 22865 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22866 test -z "am__include" && continue 22867 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22868 # When using ansi2knr, U may be empty or an underscore; expand it 22869 U=`sed -n 's/^U = //p' < "$mf"` 22870 # Find all dependency output files, they are included files with 22871 # $(DEPDIR) in their names. We invoke sed twice because it is the 22872 # simplest approach to changing $(DEPDIR) to its actual value in the 22873 # expansion. 22874 for file in `sed -n " 22875 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22876 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22877 # Make sure the directory exists. 22878 test -f "$dirpart/$file" && continue 22879 fdir=`$as_dirname -- "$file" || 22880$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22881 X"$file" : 'X\(//\)[^/]' \| \ 22882 X"$file" : 'X\(//\)$' \| \ 22883 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22884$as_echo X"$file" | 22885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22886 s//\1/ 22887 q 22888 } 22889 /^X\(\/\/\)[^/].*/{ 22890 s//\1/ 22891 q 22892 } 22893 /^X\(\/\/\)$/{ 22894 s//\1/ 22895 q 22896 } 22897 /^X\(\/\).*/{ 22898 s//\1/ 22899 q 22900 } 22901 s/.*/./; q'` 22902 { as_dir=$dirpart/$fdir 22903 case $as_dir in #( 22904 -*) as_dir=./$as_dir;; 22905 esac 22906 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22907 as_dirs= 22908 while :; do 22909 case $as_dir in #( 22910 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22911 *) as_qdir=$as_dir;; 22912 esac 22913 as_dirs="'$as_qdir' $as_dirs" 22914 as_dir=`$as_dirname -- "$as_dir" || 22915$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22916 X"$as_dir" : 'X\(//\)[^/]' \| \ 22917 X"$as_dir" : 'X\(//\)$' \| \ 22918 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22919$as_echo X"$as_dir" | 22920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22921 s//\1/ 22922 q 22923 } 22924 /^X\(\/\/\)[^/].*/{ 22925 s//\1/ 22926 q 22927 } 22928 /^X\(\/\/\)$/{ 22929 s//\1/ 22930 q 22931 } 22932 /^X\(\/\).*/{ 22933 s//\1/ 22934 q 22935 } 22936 s/.*/./; q'` 22937 test -d "$as_dir" && break 22938 done 22939 test -z "$as_dirs" || eval "mkdir $as_dirs" 22940 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22941$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 22942 { (exit 1); exit 1; }; }; } 22943 # echo "creating $dirpart/$file" 22944 echo '# dummy' > "$dirpart/$file" 22945 done 22946done 22947 ;; 22948 22949 esac 22950done # for ac_tag 22951 22952 22953{ (exit 0); exit 0; } 22954_ACEOF 22955chmod +x $CONFIG_STATUS 22956ac_clean_files=$ac_clean_files_save 22957 22958test $ac_write_fail = 0 || 22959 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 22960$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 22961 { (exit 1); exit 1; }; } 22962 22963 22964# configure is writing to config.log, and then calls config.status. 22965# config.status does its own redirection, appending to config.log. 22966# Unfortunately, on DOS this fails, as config.log is still kept open 22967# by configure, so config.status won't be able to write to it; its 22968# output is simply discarded. So we exec the FD to /dev/null, 22969# effectively closing config.log, so it can be properly (re)opened and 22970# appended to by config.status. When coming back to configure, we 22971# need to make the FD available again. 22972if test "$no_create" != yes; then 22973 ac_cs_success=: 22974 ac_config_status_args= 22975 test "$silent" = yes && 22976 ac_config_status_args="$ac_config_status_args --quiet" 22977 exec 5>/dev/null 22978 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22979 exec 5>>config.log 22980 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22981 # would make configure fail if this is the last instruction. 22982 $ac_cs_success || { (exit 1); exit 1; } 22983fi 22984if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22985 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22986$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22987fi 22988 22989