configure revision 240a9a23
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.62 for xf86-input-ws 1.2.9. 4# 5# Report bugs to <http://www.openbsd.org/>. 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-ws' 752PACKAGE_TARNAME='xf86-input-ws' 753PACKAGE_VERSION='1.2.9' 754PACKAGE_STRING='xf86-input-ws 1.2.9' 755PACKAGE_BUGREPORT='http://www.openbsd.org/' 756 757ac_unique_file="Makefile.am" 758# Factoring default headers for most tests. 759ac_includes_default="\ 760#include <stdio.h> 761#ifdef HAVE_SYS_TYPES_H 762# include <sys/types.h> 763#endif 764#ifdef HAVE_SYS_STAT_H 765# include <sys/stat.h> 766#endif 767#ifdef STDC_HEADERS 768# include <stdlib.h> 769# include <stddef.h> 770#else 771# ifdef HAVE_STDLIB_H 772# include <stdlib.h> 773# endif 774#endif 775#ifdef HAVE_STRING_H 776# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 777# include <memory.h> 778# endif 779# include <string.h> 780#endif 781#ifdef HAVE_STRINGS_H 782# include <strings.h> 783#endif 784#ifdef HAVE_INTTYPES_H 785# include <inttypes.h> 786#endif 787#ifdef HAVE_STDINT_H 788# include <stdint.h> 789#endif 790#ifdef HAVE_UNISTD_H 791# include <unistd.h> 792#endif" 793 794ac_subst_vars='SHELL 795PATH_SEPARATOR 796PACKAGE_NAME 797PACKAGE_TARNAME 798PACKAGE_VERSION 799PACKAGE_STRING 800PACKAGE_BUGREPORT 801exec_prefix 802prefix 803program_transform_name 804bindir 805sbindir 806libexecdir 807datarootdir 808datadir 809sysconfdir 810sharedstatedir 811localstatedir 812includedir 813oldincludedir 814docdir 815infodir 816htmldir 817dvidir 818pdfdir 819psdir 820libdir 821localedir 822mandir 823DEFS 824ECHO_C 825ECHO_N 826ECHO_T 827LIBS 828build_alias 829host_alias 830target_alias 831INSTALL_PROGRAM 832INSTALL_SCRIPT 833INSTALL_DATA 834CYGPATH_W 835PACKAGE 836VERSION 837ACLOCAL 838AUTOCONF 839AUTOMAKE 840AUTOHEADER 841MAKEINFO 842install_sh 843STRIP 844INSTALL_STRIP_PROGRAM 845mkdir_p 846AWK 847SET_MAKE 848am__leading_dot 849AMTAR 850am__tar 851am__untar 852MAINTAINER_MODE_TRUE 853MAINTAINER_MODE_FALSE 854MAINT 855DRIVER_NAME 856CC 857CFLAGS 858LDFLAGS 859CPPFLAGS 860ac_ct_CC 861EXEEXT 862OBJEXT 863DEPDIR 864am__include 865am__quote 866AMDEP_TRUE 867AMDEP_FALSE 868AMDEPBACKSLASH 869CCDEPMODE 870am__fastdepCC_TRUE 871am__fastdepCC_FALSE 872CPP 873GREP 874EGREP 875CWARNFLAGS 876CHANGELOG_CMD 877distcleancheck_listfiles 878build 879build_cpu 880build_vendor 881build_os 882host 883host_cpu 884host_vendor 885host_os 886APP_MAN_SUFFIX 887LIB_MAN_SUFFIX 888FILE_MAN_SUFFIX 889MISC_MAN_SUFFIX 890DRIVER_MAN_SUFFIX 891ADMIN_MAN_SUFFIX 892APP_MAN_DIR 893LIB_MAN_DIR 894FILE_MAN_DIR 895MISC_MAN_DIR 896DRIVER_MAN_DIR 897ADMIN_MAN_DIR 898SED 899LN_S 900ECHO 901AR 902RANLIB 903DSYMUTIL 904NMEDIT 905CXX 906CXXFLAGS 907ac_ct_CXX 908CXXDEPMODE 909am__fastdepCXX_TRUE 910am__fastdepCXX_FALSE 911CXXCPP 912F77 913FFLAGS 914ac_ct_F77 915LIBTOOL 916XINPUT_TRUE 917XINPUT_FALSE 918inputdir 919PKG_CONFIG 920XORG_CFLAGS 921XORG_LIBS 922sdkdir 923LIBOBJS 924LTLIBOBJS' 925ac_subst_files='' 926ac_user_opts=' 927enable_option_checking 928enable_maintainer_mode 929enable_dependency_tracking 930enable_strict_compilation 931with_release_version 932enable_static 933enable_shared 934enable_fast_install 935with_gnu_ld 936enable_libtool_lock 937with_pic 938with_tags 939enable_XINPUT 940with_xorg_module_dir 941with_sdkdir 942' 943 ac_precious_vars='build_alias 944host_alias 945target_alias 946CC 947CFLAGS 948LDFLAGS 949LIBS 950CPPFLAGS 951CPP 952CXX 953CXXFLAGS 954CCC 955CXXCPP 956F77 957FFLAGS 958PKG_CONFIG 959XORG_CFLAGS 960XORG_LIBS' 961 962 963# Initialize some variables set by options. 964ac_init_help= 965ac_init_version=false 966ac_unrecognized_opts= 967ac_unrecognized_sep= 968# The variables have the same names as the options, with 969# dashes changed to underlines. 970cache_file=/dev/null 971exec_prefix=NONE 972no_create= 973no_recursion= 974prefix=NONE 975program_prefix=NONE 976program_suffix=NONE 977program_transform_name=s,x,x, 978silent= 979site= 980srcdir= 981verbose= 982x_includes=NONE 983x_libraries=NONE 984 985# Installation directory options. 986# These are left unexpanded so users can "make install exec_prefix=/foo" 987# and all the variables that are supposed to be based on exec_prefix 988# by default will actually change. 989# Use braces instead of parens because sh, perl, etc. also accept them. 990# (The list follows the same order as the GNU Coding Standards.) 991bindir='${exec_prefix}/bin' 992sbindir='${exec_prefix}/sbin' 993libexecdir='${exec_prefix}/libexec' 994datarootdir='${prefix}/share' 995datadir='${datarootdir}' 996sysconfdir='${prefix}/etc' 997sharedstatedir='${prefix}/com' 998localstatedir='${prefix}/var' 999includedir='${prefix}/include' 1000oldincludedir='/usr/include' 1001docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1002infodir='${datarootdir}/info' 1003htmldir='${docdir}' 1004dvidir='${docdir}' 1005pdfdir='${docdir}' 1006psdir='${docdir}' 1007libdir='${exec_prefix}/lib' 1008localedir='${datarootdir}/locale' 1009mandir='${datarootdir}/man' 1010 1011ac_prev= 1012ac_dashdash= 1013for ac_option 1014do 1015 # If the previous option needs an argument, assign it. 1016 if test -n "$ac_prev"; then 1017 eval $ac_prev=\$ac_option 1018 ac_prev= 1019 continue 1020 fi 1021 1022 case $ac_option in 1023 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1024 *) ac_optarg=yes ;; 1025 esac 1026 1027 # Accept the important Cygnus configure options, so we can diagnose typos. 1028 1029 case $ac_dashdash$ac_option in 1030 --) 1031 ac_dashdash=yes ;; 1032 1033 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1034 ac_prev=bindir ;; 1035 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1036 bindir=$ac_optarg ;; 1037 1038 -build | --build | --buil | --bui | --bu) 1039 ac_prev=build_alias ;; 1040 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1041 build_alias=$ac_optarg ;; 1042 1043 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1044 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1045 ac_prev=cache_file ;; 1046 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1047 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1048 cache_file=$ac_optarg ;; 1049 1050 --config-cache | -C) 1051 cache_file=config.cache ;; 1052 1053 -datadir | --datadir | --datadi | --datad) 1054 ac_prev=datadir ;; 1055 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1056 datadir=$ac_optarg ;; 1057 1058 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1059 | --dataroo | --dataro | --datar) 1060 ac_prev=datarootdir ;; 1061 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1062 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1063 datarootdir=$ac_optarg ;; 1064 1065 -disable-* | --disable-*) 1066 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1067 # Reject names that are not valid shell variable names. 1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1069 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1070 { (exit 1); exit 1; }; } 1071 ac_useropt_orig=$ac_useropt 1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1073 case $ac_user_opts in 1074 *" 1075"enable_$ac_useropt" 1076"*) ;; 1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1078 ac_unrecognized_sep=', ';; 1079 esac 1080 eval enable_$ac_useropt=no ;; 1081 1082 -docdir | --docdir | --docdi | --doc | --do) 1083 ac_prev=docdir ;; 1084 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1085 docdir=$ac_optarg ;; 1086 1087 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1088 ac_prev=dvidir ;; 1089 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1090 dvidir=$ac_optarg ;; 1091 1092 -enable-* | --enable-*) 1093 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1094 # Reject names that are not valid shell variable names. 1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1096 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1097 { (exit 1); exit 1; }; } 1098 ac_useropt_orig=$ac_useropt 1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1100 case $ac_user_opts in 1101 *" 1102"enable_$ac_useropt" 1103"*) ;; 1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1105 ac_unrecognized_sep=', ';; 1106 esac 1107 eval enable_$ac_useropt=\$ac_optarg ;; 1108 1109 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1110 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1111 | --exec | --exe | --ex) 1112 ac_prev=exec_prefix ;; 1113 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1114 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1115 | --exec=* | --exe=* | --ex=*) 1116 exec_prefix=$ac_optarg ;; 1117 1118 -gas | --gas | --ga | --g) 1119 # Obsolete; use --with-gas. 1120 with_gas=yes ;; 1121 1122 -help | --help | --hel | --he | -h) 1123 ac_init_help=long ;; 1124 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1125 ac_init_help=recursive ;; 1126 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1127 ac_init_help=short ;; 1128 1129 -host | --host | --hos | --ho) 1130 ac_prev=host_alias ;; 1131 -host=* | --host=* | --hos=* | --ho=*) 1132 host_alias=$ac_optarg ;; 1133 1134 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1135 ac_prev=htmldir ;; 1136 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1137 | --ht=*) 1138 htmldir=$ac_optarg ;; 1139 1140 -includedir | --includedir | --includedi | --included | --include \ 1141 | --includ | --inclu | --incl | --inc) 1142 ac_prev=includedir ;; 1143 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1144 | --includ=* | --inclu=* | --incl=* | --inc=*) 1145 includedir=$ac_optarg ;; 1146 1147 -infodir | --infodir | --infodi | --infod | --info | --inf) 1148 ac_prev=infodir ;; 1149 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1150 infodir=$ac_optarg ;; 1151 1152 -libdir | --libdir | --libdi | --libd) 1153 ac_prev=libdir ;; 1154 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1155 libdir=$ac_optarg ;; 1156 1157 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1158 | --libexe | --libex | --libe) 1159 ac_prev=libexecdir ;; 1160 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1161 | --libexe=* | --libex=* | --libe=*) 1162 libexecdir=$ac_optarg ;; 1163 1164 -localedir | --localedir | --localedi | --localed | --locale) 1165 ac_prev=localedir ;; 1166 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1167 localedir=$ac_optarg ;; 1168 1169 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1170 | --localstate | --localstat | --localsta | --localst | --locals) 1171 ac_prev=localstatedir ;; 1172 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1173 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1174 localstatedir=$ac_optarg ;; 1175 1176 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1177 ac_prev=mandir ;; 1178 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1179 mandir=$ac_optarg ;; 1180 1181 -nfp | --nfp | --nf) 1182 # Obsolete; use --without-fp. 1183 with_fp=no ;; 1184 1185 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1186 | --no-cr | --no-c | -n) 1187 no_create=yes ;; 1188 1189 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1190 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1191 no_recursion=yes ;; 1192 1193 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1194 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1195 | --oldin | --oldi | --old | --ol | --o) 1196 ac_prev=oldincludedir ;; 1197 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1198 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1199 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1200 oldincludedir=$ac_optarg ;; 1201 1202 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1203 ac_prev=prefix ;; 1204 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1205 prefix=$ac_optarg ;; 1206 1207 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1208 | --program-pre | --program-pr | --program-p) 1209 ac_prev=program_prefix ;; 1210 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1211 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1212 program_prefix=$ac_optarg ;; 1213 1214 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1215 | --program-suf | --program-su | --program-s) 1216 ac_prev=program_suffix ;; 1217 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1218 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1219 program_suffix=$ac_optarg ;; 1220 1221 -program-transform-name | --program-transform-name \ 1222 | --program-transform-nam | --program-transform-na \ 1223 | --program-transform-n | --program-transform- \ 1224 | --program-transform | --program-transfor \ 1225 | --program-transfo | --program-transf \ 1226 | --program-trans | --program-tran \ 1227 | --progr-tra | --program-tr | --program-t) 1228 ac_prev=program_transform_name ;; 1229 -program-transform-name=* | --program-transform-name=* \ 1230 | --program-transform-nam=* | --program-transform-na=* \ 1231 | --program-transform-n=* | --program-transform-=* \ 1232 | --program-transform=* | --program-transfor=* \ 1233 | --program-transfo=* | --program-transf=* \ 1234 | --program-trans=* | --program-tran=* \ 1235 | --progr-tra=* | --program-tr=* | --program-t=*) 1236 program_transform_name=$ac_optarg ;; 1237 1238 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1239 ac_prev=pdfdir ;; 1240 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1241 pdfdir=$ac_optarg ;; 1242 1243 -psdir | --psdir | --psdi | --psd | --ps) 1244 ac_prev=psdir ;; 1245 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1246 psdir=$ac_optarg ;; 1247 1248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1249 | -silent | --silent | --silen | --sile | --sil) 1250 silent=yes ;; 1251 1252 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1253 ac_prev=sbindir ;; 1254 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1255 | --sbi=* | --sb=*) 1256 sbindir=$ac_optarg ;; 1257 1258 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1259 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1260 | --sharedst | --shareds | --shared | --share | --shar \ 1261 | --sha | --sh) 1262 ac_prev=sharedstatedir ;; 1263 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1264 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1265 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1266 | --sha=* | --sh=*) 1267 sharedstatedir=$ac_optarg ;; 1268 1269 -site | --site | --sit) 1270 ac_prev=site ;; 1271 -site=* | --site=* | --sit=*) 1272 site=$ac_optarg ;; 1273 1274 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1275 ac_prev=srcdir ;; 1276 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1277 srcdir=$ac_optarg ;; 1278 1279 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1280 | --syscon | --sysco | --sysc | --sys | --sy) 1281 ac_prev=sysconfdir ;; 1282 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1283 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1284 sysconfdir=$ac_optarg ;; 1285 1286 -target | --target | --targe | --targ | --tar | --ta | --t) 1287 ac_prev=target_alias ;; 1288 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1289 target_alias=$ac_optarg ;; 1290 1291 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1292 verbose=yes ;; 1293 1294 -version | --version | --versio | --versi | --vers | -V) 1295 ac_init_version=: ;; 1296 1297 -with-* | --with-*) 1298 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1299 # Reject names that are not valid shell variable names. 1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1301 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1302 { (exit 1); exit 1; }; } 1303 ac_useropt_orig=$ac_useropt 1304 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1305 case $ac_user_opts in 1306 *" 1307"with_$ac_useropt" 1308"*) ;; 1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1310 ac_unrecognized_sep=', ';; 1311 esac 1312 eval with_$ac_useropt=\$ac_optarg ;; 1313 1314 -without-* | --without-*) 1315 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1316 # Reject names that are not valid shell variable names. 1317 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1318 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1319 { (exit 1); exit 1; }; } 1320 ac_useropt_orig=$ac_useropt 1321 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1322 case $ac_user_opts in 1323 *" 1324"with_$ac_useropt" 1325"*) ;; 1326 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1327 ac_unrecognized_sep=', ';; 1328 esac 1329 eval with_$ac_useropt=no ;; 1330 1331 --x) 1332 # Obsolete; use --with-x. 1333 with_x=yes ;; 1334 1335 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1336 | --x-incl | --x-inc | --x-in | --x-i) 1337 ac_prev=x_includes ;; 1338 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1339 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1340 x_includes=$ac_optarg ;; 1341 1342 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1343 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1344 ac_prev=x_libraries ;; 1345 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1346 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1347 x_libraries=$ac_optarg ;; 1348 1349 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1350Try \`$0 --help' for more information." >&2 1351 { (exit 1); exit 1; }; } 1352 ;; 1353 1354 *=*) 1355 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1356 # Reject names that are not valid shell variable names. 1357 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1358 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1359 { (exit 1); exit 1; }; } 1360 eval $ac_envvar=\$ac_optarg 1361 export $ac_envvar ;; 1362 1363 *) 1364 # FIXME: should be removed in autoconf 3.0. 1365 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1366 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1367 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1368 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1369 ;; 1370 1371 esac 1372done 1373 1374if test -n "$ac_prev"; then 1375 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1376 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1377 { (exit 1); exit 1; }; } 1378fi 1379 1380if test -n "$ac_unrecognized_opts"; then 1381 case $enable_option_checking in 1382 no) ;; 1383 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 1384 { (exit 1); exit 1; }; } ;; 1385 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; 1386 esac 1387fi 1388 1389# Check all directory arguments for consistency. 1390for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1391 datadir sysconfdir sharedstatedir localstatedir includedir \ 1392 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1393 libdir localedir mandir 1394do 1395 eval ac_val=\$$ac_var 1396 # Remove trailing slashes. 1397 case $ac_val in 1398 */ ) 1399 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1400 eval $ac_var=\$ac_val;; 1401 esac 1402 # Be sure to have absolute directory names. 1403 case $ac_val in 1404 [\\/$]* | ?:[\\/]* ) continue;; 1405 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1406 esac 1407 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1408 { (exit 1); exit 1; }; } 1409done 1410 1411# There might be people who depend on the old broken behavior: `$host' 1412# used to hold the argument of --host etc. 1413# FIXME: To remove some day. 1414build=$build_alias 1415host=$host_alias 1416target=$target_alias 1417 1418# FIXME: To remove some day. 1419if test "x$host_alias" != x; then 1420 if test "x$build_alias" = x; then 1421 cross_compiling=maybe 1422 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1423 If a cross compiler is detected then cross compile mode will be used." >&2 1424 elif test "x$build_alias" != "x$host_alias"; then 1425 cross_compiling=yes 1426 fi 1427fi 1428 1429ac_tool_prefix= 1430test -n "$host_alias" && ac_tool_prefix=$host_alias- 1431 1432test "$silent" = yes && exec 6>/dev/null 1433 1434 1435ac_pwd=`pwd` && test -n "$ac_pwd" && 1436ac_ls_di=`ls -di .` && 1437ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1438 { $as_echo "$as_me: error: Working directory cannot be determined" >&2 1439 { (exit 1); exit 1; }; } 1440test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1441 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1442 { (exit 1); exit 1; }; } 1443 1444 1445# Find the source files, if location was not specified. 1446if test -z "$srcdir"; then 1447 ac_srcdir_defaulted=yes 1448 # Try the directory containing this script, then the parent directory. 1449 ac_confdir=`$as_dirname -- "$as_myself" || 1450$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1451 X"$as_myself" : 'X\(//\)[^/]' \| \ 1452 X"$as_myself" : 'X\(//\)$' \| \ 1453 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1454$as_echo X"$as_myself" | 1455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1456 s//\1/ 1457 q 1458 } 1459 /^X\(\/\/\)[^/].*/{ 1460 s//\1/ 1461 q 1462 } 1463 /^X\(\/\/\)$/{ 1464 s//\1/ 1465 q 1466 } 1467 /^X\(\/\).*/{ 1468 s//\1/ 1469 q 1470 } 1471 s/.*/./; q'` 1472 srcdir=$ac_confdir 1473 if test ! -r "$srcdir/$ac_unique_file"; then 1474 srcdir=.. 1475 fi 1476else 1477 ac_srcdir_defaulted=no 1478fi 1479if test ! -r "$srcdir/$ac_unique_file"; then 1480 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1481 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1482 { (exit 1); exit 1; }; } 1483fi 1484ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1485ac_abs_confdir=`( 1486 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1487 { (exit 1); exit 1; }; } 1488 pwd)` 1489# When building in place, set srcdir=. 1490if test "$ac_abs_confdir" = "$ac_pwd"; then 1491 srcdir=. 1492fi 1493# Remove unnecessary trailing slashes from srcdir. 1494# Double slashes in file names in object file debugging info 1495# mess up M-x gdb in Emacs. 1496case $srcdir in 1497*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1498esac 1499for ac_var in $ac_precious_vars; do 1500 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1501 eval ac_env_${ac_var}_value=\$${ac_var} 1502 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1503 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1504done 1505 1506# 1507# Report the --help message. 1508# 1509if test "$ac_init_help" = "long"; then 1510 # Omit some internal or obsolete options to make the list less imposing. 1511 # This message is too long to be a string in the A/UX 3.1 sh. 1512 cat <<_ACEOF 1513\`configure' configures xf86-input-ws 1.2.9 to adapt to many kinds of systems. 1514 1515Usage: $0 [OPTION]... [VAR=VALUE]... 1516 1517To assign environment variables (e.g., CC, CFLAGS...), specify them as 1518VAR=VALUE. See below for descriptions of some of the useful variables. 1519 1520Defaults for the options are specified in brackets. 1521 1522Configuration: 1523 -h, --help display this help and exit 1524 --help=short display options specific to this package 1525 --help=recursive display the short help of all the included packages 1526 -V, --version display version information and exit 1527 -q, --quiet, --silent do not print \`checking...' messages 1528 --cache-file=FILE cache test results in FILE [disabled] 1529 -C, --config-cache alias for \`--cache-file=config.cache' 1530 -n, --no-create do not create output files 1531 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1532 1533Installation directories: 1534 --prefix=PREFIX install architecture-independent files in PREFIX 1535 [$ac_default_prefix] 1536 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1537 [PREFIX] 1538 1539By default, \`make install' will install all the files in 1540\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1541an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1542for instance \`--prefix=\$HOME'. 1543 1544For better control, use the options below. 1545 1546Fine tuning of the installation directories: 1547 --bindir=DIR user executables [EPREFIX/bin] 1548 --sbindir=DIR system admin executables [EPREFIX/sbin] 1549 --libexecdir=DIR program executables [EPREFIX/libexec] 1550 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1551 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1552 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1553 --libdir=DIR object code libraries [EPREFIX/lib] 1554 --includedir=DIR C header files [PREFIX/include] 1555 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1556 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1557 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1558 --infodir=DIR info documentation [DATAROOTDIR/info] 1559 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1560 --mandir=DIR man documentation [DATAROOTDIR/man] 1561 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-input-ws] 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-ws 1.2.9:";; 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 --disable-dependency-tracking speeds up one-time build 1594 --enable-dependency-tracking do not reject slow dependency extractors 1595 --enable-strict-compilation 1596 Enable all warnings from compiler and make them 1597 errors (default: disabled) 1598 --enable-static[=PKGS] build static libraries [default=no] 1599 --enable-shared[=PKGS] build shared libraries [default=yes] 1600 --enable-fast-install[=PKGS] 1601 optimize for fast installation [default=yes] 1602 --disable-libtool-lock avoid locking (might break parallel builds) 1603 --enable-xinput Build XInput support (default: yes) 1604 1605Optional Packages: 1606 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1607 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1608 --with-release-version=STRING 1609 Use release version string in package name 1610 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1611 --with-pic try to use only PIC/non-PIC objects [default=use 1612 both] 1613 --with-tags[=TAGS] include additional configurations [automatic] 1614 --with-xorg-module-dir=DIR 1615 Default xorg module directory 1616 [default=$libdir/xorg/modules] 1617 1618 1619Some influential environment variables: 1620 CC C compiler command 1621 CFLAGS C compiler flags 1622 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1623 nonstandard directory <lib dir> 1624 LIBS libraries to pass to the linker, e.g. -l<library> 1625 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1626 you have headers in a nonstandard directory <include dir> 1627 CPP C preprocessor 1628 CXX C++ compiler command 1629 CXXFLAGS C++ compiler flags 1630 CXXCPP C++ preprocessor 1631 F77 Fortran 77 compiler command 1632 FFLAGS Fortran 77 compiler flags 1633 PKG_CONFIG path to pkg-config utility 1634 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1635 XORG_LIBS linker flags for XORG, overriding pkg-config 1636 1637Use these variables to override the choices made by `configure' or to help 1638it to find libraries and programs with nonstandard names/locations. 1639 1640Report bugs to <http://www.openbsd.org/>. 1641_ACEOF 1642ac_status=$? 1643fi 1644 1645if test "$ac_init_help" = "recursive"; then 1646 # If there are subdirs, report their specific --help. 1647 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1648 test -d "$ac_dir" || 1649 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1650 continue 1651 ac_builddir=. 1652 1653case "$ac_dir" in 1654.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1655*) 1656 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1657 # A ".." for each directory in $ac_dir_suffix. 1658 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1659 case $ac_top_builddir_sub in 1660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1662 esac ;; 1663esac 1664ac_abs_top_builddir=$ac_pwd 1665ac_abs_builddir=$ac_pwd$ac_dir_suffix 1666# for backward compatibility: 1667ac_top_builddir=$ac_top_build_prefix 1668 1669case $srcdir in 1670 .) # We are building in place. 1671 ac_srcdir=. 1672 ac_top_srcdir=$ac_top_builddir_sub 1673 ac_abs_top_srcdir=$ac_pwd ;; 1674 [\\/]* | ?:[\\/]* ) # Absolute name. 1675 ac_srcdir=$srcdir$ac_dir_suffix; 1676 ac_top_srcdir=$srcdir 1677 ac_abs_top_srcdir=$srcdir ;; 1678 *) # Relative name. 1679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1680 ac_top_srcdir=$ac_top_build_prefix$srcdir 1681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1682esac 1683ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1684 1685 cd "$ac_dir" || { ac_status=$?; continue; } 1686 # Check for guested configure. 1687 if test -f "$ac_srcdir/configure.gnu"; then 1688 echo && 1689 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1690 elif test -f "$ac_srcdir/configure"; then 1691 echo && 1692 $SHELL "$ac_srcdir/configure" --help=recursive 1693 else 1694 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1695 fi || ac_status=$? 1696 cd "$ac_pwd" || { ac_status=$?; break; } 1697 done 1698fi 1699 1700test -n "$ac_init_help" && exit $ac_status 1701if $ac_init_version; then 1702 cat <<\_ACEOF 1703xf86-input-ws configure 1.2.9 1704generated by GNU Autoconf 2.62 1705 1706Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17072002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1708This configure script is free software; the Free Software Foundation 1709gives unlimited permission to copy, distribute and modify it. 1710_ACEOF 1711 exit 1712fi 1713cat >config.log <<_ACEOF 1714This file contains any messages produced by compilers while 1715running configure, to aid debugging if configure makes a mistake. 1716 1717It was created by xf86-input-ws $as_me 1.2.9, which was 1718generated by GNU Autoconf 2.62. Invocation command line was 1719 1720 $ $0 $@ 1721 1722_ACEOF 1723exec 5>>config.log 1724{ 1725cat <<_ASUNAME 1726## --------- ## 1727## Platform. ## 1728## --------- ## 1729 1730hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1731uname -m = `(uname -m) 2>/dev/null || echo unknown` 1732uname -r = `(uname -r) 2>/dev/null || echo unknown` 1733uname -s = `(uname -s) 2>/dev/null || echo unknown` 1734uname -v = `(uname -v) 2>/dev/null || echo unknown` 1735 1736/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1737/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1738 1739/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1740/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1741/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1742/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1743/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1744/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1745/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1746 1747_ASUNAME 1748 1749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1750for as_dir in $PATH 1751do 1752 IFS=$as_save_IFS 1753 test -z "$as_dir" && as_dir=. 1754 $as_echo "PATH: $as_dir" 1755done 1756IFS=$as_save_IFS 1757 1758} >&5 1759 1760cat >&5 <<_ACEOF 1761 1762 1763## ----------- ## 1764## Core tests. ## 1765## ----------- ## 1766 1767_ACEOF 1768 1769 1770# Keep a trace of the command line. 1771# Strip out --no-create and --no-recursion so they do not pile up. 1772# Strip out --silent because we don't want to record it for future runs. 1773# Also quote any args containing shell meta-characters. 1774# Make two passes to allow for proper duplicate-argument suppression. 1775ac_configure_args= 1776ac_configure_args0= 1777ac_configure_args1= 1778ac_must_keep_next=false 1779for ac_pass in 1 2 1780do 1781 for ac_arg 1782 do 1783 case $ac_arg in 1784 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1785 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1786 | -silent | --silent | --silen | --sile | --sil) 1787 continue ;; 1788 *\'*) 1789 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1790 esac 1791 case $ac_pass in 1792 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1793 2) 1794 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1795 if test $ac_must_keep_next = true; then 1796 ac_must_keep_next=false # Got value, back to normal. 1797 else 1798 case $ac_arg in 1799 *=* | --config-cache | -C | -disable-* | --disable-* \ 1800 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1801 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1802 | -with-* | --with-* | -without-* | --without-* | --x) 1803 case "$ac_configure_args0 " in 1804 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1805 esac 1806 ;; 1807 -* ) ac_must_keep_next=true ;; 1808 esac 1809 fi 1810 ac_configure_args="$ac_configure_args '$ac_arg'" 1811 ;; 1812 esac 1813 done 1814done 1815$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1816$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1817 1818# When interrupted or exit'd, cleanup temporary files, and complete 1819# config.log. We remove comments because anyway the quotes in there 1820# would cause problems or look ugly. 1821# WARNING: Use '\'' to represent an apostrophe within the trap. 1822# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1823trap 'exit_status=$? 1824 # Save into config.log some information that might help in debugging. 1825 { 1826 echo 1827 1828 cat <<\_ASBOX 1829## ---------------- ## 1830## Cache variables. ## 1831## ---------------- ## 1832_ASBOX 1833 echo 1834 # The following way of writing the cache mishandles newlines in values, 1835( 1836 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1837 eval ac_val=\$$ac_var 1838 case $ac_val in #( 1839 *${as_nl}*) 1840 case $ac_var in #( 1841 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1842$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1843 esac 1844 case $ac_var in #( 1845 _ | IFS | as_nl) ;; #( 1846 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1847 *) $as_unset $ac_var ;; 1848 esac ;; 1849 esac 1850 done 1851 (set) 2>&1 | 1852 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1853 *${as_nl}ac_space=\ *) 1854 sed -n \ 1855 "s/'\''/'\''\\\\'\'''\''/g; 1856 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1857 ;; #( 1858 *) 1859 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1860 ;; 1861 esac | 1862 sort 1863) 1864 echo 1865 1866 cat <<\_ASBOX 1867## ----------------- ## 1868## Output variables. ## 1869## ----------------- ## 1870_ASBOX 1871 echo 1872 for ac_var in $ac_subst_vars 1873 do 1874 eval ac_val=\$$ac_var 1875 case $ac_val in 1876 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1877 esac 1878 $as_echo "$ac_var='\''$ac_val'\''" 1879 done | sort 1880 echo 1881 1882 if test -n "$ac_subst_files"; then 1883 cat <<\_ASBOX 1884## ------------------- ## 1885## File substitutions. ## 1886## ------------------- ## 1887_ASBOX 1888 echo 1889 for ac_var in $ac_subst_files 1890 do 1891 eval ac_val=\$$ac_var 1892 case $ac_val in 1893 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1894 esac 1895 $as_echo "$ac_var='\''$ac_val'\''" 1896 done | sort 1897 echo 1898 fi 1899 1900 if test -s confdefs.h; then 1901 cat <<\_ASBOX 1902## ----------- ## 1903## confdefs.h. ## 1904## ----------- ## 1905_ASBOX 1906 echo 1907 cat confdefs.h 1908 echo 1909 fi 1910 test "$ac_signal" != 0 && 1911 $as_echo "$as_me: caught signal $ac_signal" 1912 $as_echo "$as_me: exit $exit_status" 1913 } >&5 1914 rm -f core *.core core.conftest.* && 1915 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1916 exit $exit_status 1917' 0 1918for ac_signal in 1 2 13 15; do 1919 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1920done 1921ac_signal=0 1922 1923# confdefs.h avoids OS command line length limits that DEFS can exceed. 1924rm -f -r conftest* confdefs.h 1925 1926# Predefined preprocessor variables. 1927 1928cat >>confdefs.h <<_ACEOF 1929#define PACKAGE_NAME "$PACKAGE_NAME" 1930_ACEOF 1931 1932 1933cat >>confdefs.h <<_ACEOF 1934#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1935_ACEOF 1936 1937 1938cat >>confdefs.h <<_ACEOF 1939#define PACKAGE_VERSION "$PACKAGE_VERSION" 1940_ACEOF 1941 1942 1943cat >>confdefs.h <<_ACEOF 1944#define PACKAGE_STRING "$PACKAGE_STRING" 1945_ACEOF 1946 1947 1948cat >>confdefs.h <<_ACEOF 1949#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1950_ACEOF 1951 1952 1953# Let the site file select an alternate cache file if it wants to. 1954# Prefer an explicitly selected file to automatically selected ones. 1955ac_site_file1=NONE 1956ac_site_file2=NONE 1957if test -n "$CONFIG_SITE"; then 1958 ac_site_file1=$CONFIG_SITE 1959elif test "x$prefix" != xNONE; then 1960 ac_site_file1=$prefix/share/config.site 1961 ac_site_file2=$prefix/etc/config.site 1962else 1963 ac_site_file1=$ac_default_prefix/share/config.site 1964 ac_site_file2=$ac_default_prefix/etc/config.site 1965fi 1966for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1967do 1968 test "x$ac_site_file" = xNONE && continue 1969 if test -r "$ac_site_file"; then 1970 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1971$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1972 sed 's/^/| /' "$ac_site_file" >&5 1973 . "$ac_site_file" 1974 fi 1975done 1976 1977if test -r "$cache_file"; then 1978 # Some versions of bash will fail to source /dev/null (special 1979 # files actually), so we avoid doing that. 1980 if test -f "$cache_file"; then 1981 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1982$as_echo "$as_me: loading cache $cache_file" >&6;} 1983 case $cache_file in 1984 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1985 *) . "./$cache_file";; 1986 esac 1987 fi 1988else 1989 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1990$as_echo "$as_me: creating cache $cache_file" >&6;} 1991 >$cache_file 1992fi 1993 1994# Check that the precious variables saved in the cache have kept the same 1995# value. 1996ac_cache_corrupted=false 1997for ac_var in $ac_precious_vars; do 1998 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1999 eval ac_new_set=\$ac_env_${ac_var}_set 2000 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2001 eval ac_new_val=\$ac_env_${ac_var}_value 2002 case $ac_old_set,$ac_new_set in 2003 set,) 2004 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2005$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2006 ac_cache_corrupted=: ;; 2007 ,set) 2008 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2009$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2010 ac_cache_corrupted=: ;; 2011 ,);; 2012 *) 2013 if test "x$ac_old_val" != "x$ac_new_val"; then 2014 # differences in whitespace do not lead to failure. 2015 ac_old_val_w=`echo x $ac_old_val` 2016 ac_new_val_w=`echo x $ac_new_val` 2017 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2018 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2019$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2020 ac_cache_corrupted=: 2021 else 2022 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2023$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2024 eval $ac_var=\$ac_old_val 2025 fi 2026 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2027$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2028 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2029$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2030 fi;; 2031 esac 2032 # Pass precious variables to config.status. 2033 if test "$ac_new_set" = set; then 2034 case $ac_new_val in 2035 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2036 *) ac_arg=$ac_var=$ac_new_val ;; 2037 esac 2038 case " $ac_configure_args " in 2039 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2040 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2041 esac 2042 fi 2043done 2044if $ac_cache_corrupted; then 2045 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2046$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2047 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2048$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2049 { (exit 1); exit 1; }; } 2050fi 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076ac_ext=c 2077ac_cpp='$CPP $CPPFLAGS' 2078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2080ac_compiler_gnu=$ac_cv_c_compiler_gnu 2081 2082 2083 2084 2085ac_aux_dir= 2086for ac_dir in . "$srcdir"/.; do 2087 if test -f "$ac_dir/install-sh"; then 2088 ac_aux_dir=$ac_dir 2089 ac_install_sh="$ac_aux_dir/install-sh -c" 2090 break 2091 elif test -f "$ac_dir/install.sh"; then 2092 ac_aux_dir=$ac_dir 2093 ac_install_sh="$ac_aux_dir/install.sh -c" 2094 break 2095 elif test -f "$ac_dir/shtool"; then 2096 ac_aux_dir=$ac_dir 2097 ac_install_sh="$ac_aux_dir/shtool install -c" 2098 break 2099 fi 2100done 2101if test -z "$ac_aux_dir"; then 2102 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 2103$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 2104 { (exit 1); exit 1; }; } 2105fi 2106 2107# These three variables are undocumented and unsupported, 2108# and are intended to be withdrawn in a future Autoconf release. 2109# They can cause serious problems if a builder's source tree is in a directory 2110# whose full name contains unusual characters. 2111ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2112ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2113ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2114 2115 2116am__api_version="1.9" 2117# Find a good install program. We prefer a C program (faster), 2118# so one script is as good as another. But avoid the broken or 2119# incompatible versions: 2120# SysV /etc/install, /usr/sbin/install 2121# SunOS /usr/etc/install 2122# IRIX /sbin/install 2123# AIX /bin/install 2124# AmigaOS /C/install, which installs bootblocks on floppy discs 2125# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2126# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2127# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2128# OS/2's system install, which has a completely different semantic 2129# ./install, which can be erroneously created by make from ./install.sh. 2130# Reject install programs that cannot install multiple files. 2131{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2132$as_echo_n "checking for a BSD-compatible install... " >&6; } 2133if test -z "$INSTALL"; then 2134if test "${ac_cv_path_install+set}" = set; then 2135 $as_echo_n "(cached) " >&6 2136else 2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2138for as_dir in $PATH 2139do 2140 IFS=$as_save_IFS 2141 test -z "$as_dir" && as_dir=. 2142 # Account for people who put trailing slashes in PATH elements. 2143case $as_dir/ in 2144 ./ | .// | /cC/* | \ 2145 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2146 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2147 /usr/ucb/* ) ;; 2148 *) 2149 # OSF1 and SCO ODT 3.0 have their own names for install. 2150 # Don't use installbsd from OSF since it installs stuff as root 2151 # by default. 2152 for ac_prog in ginstall scoinst install; do 2153 for ac_exec_ext in '' $ac_executable_extensions; do 2154 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2155 if test $ac_prog = install && 2156 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2157 # AIX install. It has an incompatible calling convention. 2158 : 2159 elif test $ac_prog = install && 2160 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2161 # program-specific install script used by HP pwplus--don't use. 2162 : 2163 else 2164 rm -rf conftest.one conftest.two conftest.dir 2165 echo one > conftest.one 2166 echo two > conftest.two 2167 mkdir conftest.dir 2168 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2169 test -s conftest.one && test -s conftest.two && 2170 test -s conftest.dir/conftest.one && 2171 test -s conftest.dir/conftest.two 2172 then 2173 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2174 break 3 2175 fi 2176 fi 2177 fi 2178 done 2179 done 2180 ;; 2181esac 2182 2183done 2184IFS=$as_save_IFS 2185 2186rm -rf conftest.one conftest.two conftest.dir 2187 2188fi 2189 if test "${ac_cv_path_install+set}" = set; then 2190 INSTALL=$ac_cv_path_install 2191 else 2192 # As a last resort, use the slow shell script. Don't cache a 2193 # value for INSTALL within a source directory, because that will 2194 # break other packages using the cache if that directory is 2195 # removed, or if the value is a relative name. 2196 INSTALL=$ac_install_sh 2197 fi 2198fi 2199{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2200$as_echo "$INSTALL" >&6; } 2201 2202# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2203# It thinks the first close brace ends the variable substitution. 2204test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2205 2206test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2207 2208test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2209 2210test "$program_prefix" != NONE && 2211 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2212# Use a double $ so make ignores it. 2213test "$program_suffix" != NONE && 2214 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2215# Double any \ or $. 2216# By default was `s,x,x', remove it if useless. 2217ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2218program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2219 2220# expand $ac_aux_dir to an absolute path 2221am_aux_dir=`cd $ac_aux_dir && pwd` 2222 2223test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2224# Use eval to expand $SHELL 2225if eval "$MISSING --run true"; then 2226 am_missing_run="$MISSING --run " 2227else 2228 am_missing_run= 2229 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2230$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2231fi 2232 2233if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2234 # We used to keeping the `.' as first argument, in order to 2235 # allow $(mkdir_p) to be used without argument. As in 2236 # $(mkdir_p) $(somedir) 2237 # where $(somedir) is conditionally defined. However this is wrong 2238 # for two reasons: 2239 # 1. if the package is installed by a user who cannot write `.' 2240 # make install will fail, 2241 # 2. the above comment should most certainly read 2242 # $(mkdir_p) $(DESTDIR)$(somedir) 2243 # so it does not work when $(somedir) is undefined and 2244 # $(DESTDIR) is not. 2245 # To support the latter case, we have to write 2246 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2247 # so the `.' trick is pointless. 2248 mkdir_p='mkdir -p --' 2249else 2250 # On NextStep and OpenStep, the `mkdir' command does not 2251 # recognize any option. It will interpret all options as 2252 # directories to create, and then abort because `.' already 2253 # exists. 2254 for d in ./-p ./--version; 2255 do 2256 test -d $d && rmdir $d 2257 done 2258 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2259 if test -f "$ac_aux_dir/mkinstalldirs"; then 2260 mkdir_p='$(mkinstalldirs)' 2261 else 2262 mkdir_p='$(SHELL) $(install_sh) -d' 2263 fi 2264fi 2265 2266for ac_prog in gawk mawk nawk awk 2267do 2268 # Extract the first word of "$ac_prog", so it can be a program name with args. 2269set dummy $ac_prog; ac_word=$2 2270{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2271$as_echo_n "checking for $ac_word... " >&6; } 2272if test "${ac_cv_prog_AWK+set}" = set; then 2273 $as_echo_n "(cached) " >&6 2274else 2275 if test -n "$AWK"; then 2276 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2277else 2278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2279for as_dir in $PATH 2280do 2281 IFS=$as_save_IFS 2282 test -z "$as_dir" && as_dir=. 2283 for ac_exec_ext in '' $ac_executable_extensions; do 2284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2285 ac_cv_prog_AWK="$ac_prog" 2286 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2287 break 2 2288 fi 2289done 2290done 2291IFS=$as_save_IFS 2292 2293fi 2294fi 2295AWK=$ac_cv_prog_AWK 2296if test -n "$AWK"; then 2297 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2298$as_echo "$AWK" >&6; } 2299else 2300 { $as_echo "$as_me:$LINENO: result: no" >&5 2301$as_echo "no" >&6; } 2302fi 2303 2304 2305 test -n "$AWK" && break 2306done 2307 2308{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2309$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2310set x ${MAKE-make} 2311ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2312if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2313 $as_echo_n "(cached) " >&6 2314else 2315 cat >conftest.make <<\_ACEOF 2316SHELL = /bin/sh 2317all: 2318 @echo '@@@%%%=$(MAKE)=@@@%%%' 2319_ACEOF 2320# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2321case `${MAKE-make} -f conftest.make 2>/dev/null` in 2322 *@@@%%%=?*=@@@%%%*) 2323 eval ac_cv_prog_make_${ac_make}_set=yes;; 2324 *) 2325 eval ac_cv_prog_make_${ac_make}_set=no;; 2326esac 2327rm -f conftest.make 2328fi 2329if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2330 { $as_echo "$as_me:$LINENO: result: yes" >&5 2331$as_echo "yes" >&6; } 2332 SET_MAKE= 2333else 2334 { $as_echo "$as_me:$LINENO: result: no" >&5 2335$as_echo "no" >&6; } 2336 SET_MAKE="MAKE=${MAKE-make}" 2337fi 2338 2339rm -rf .tst 2>/dev/null 2340mkdir .tst 2>/dev/null 2341if test -d .tst; then 2342 am__leading_dot=. 2343else 2344 am__leading_dot=_ 2345fi 2346rmdir .tst 2>/dev/null 2347 2348# test to see if srcdir already configured 2349if test "`cd $srcdir && pwd`" != "`pwd`" && 2350 test -f $srcdir/config.status; then 2351 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2352$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2353 { (exit 1); exit 1; }; } 2354fi 2355 2356# test whether we have cygpath 2357if test -z "$CYGPATH_W"; then 2358 if (cygpath --version) >/dev/null 2>/dev/null; then 2359 CYGPATH_W='cygpath -w' 2360 else 2361 CYGPATH_W=echo 2362 fi 2363fi 2364 2365 2366# Define the identity of the package. 2367 PACKAGE='xf86-input-ws' 2368 VERSION='1.2.9' 2369 2370 2371cat >>confdefs.h <<_ACEOF 2372#define PACKAGE "$PACKAGE" 2373_ACEOF 2374 2375 2376cat >>confdefs.h <<_ACEOF 2377#define VERSION "$VERSION" 2378_ACEOF 2379 2380# Some tools Automake needs. 2381 2382ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2383 2384 2385AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2386 2387 2388AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2389 2390 2391AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2392 2393 2394MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2395 2396install_sh=${install_sh-"$am_aux_dir/install-sh"} 2397 2398# Installed binaries are usually stripped using `strip' when the user 2399# run `make install-strip'. However `strip' might not be the right 2400# tool to use in cross-compilation environments, therefore Automake 2401# will honor the `STRIP' environment variable to overrule this program. 2402if test "$cross_compiling" != no; then 2403 if test -n "$ac_tool_prefix"; then 2404 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2405set dummy ${ac_tool_prefix}strip; ac_word=$2 2406{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2407$as_echo_n "checking for $ac_word... " >&6; } 2408if test "${ac_cv_prog_STRIP+set}" = set; then 2409 $as_echo_n "(cached) " >&6 2410else 2411 if test -n "$STRIP"; then 2412 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2413else 2414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2415for as_dir in $PATH 2416do 2417 IFS=$as_save_IFS 2418 test -z "$as_dir" && as_dir=. 2419 for ac_exec_ext in '' $ac_executable_extensions; do 2420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2421 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2423 break 2 2424 fi 2425done 2426done 2427IFS=$as_save_IFS 2428 2429fi 2430fi 2431STRIP=$ac_cv_prog_STRIP 2432if test -n "$STRIP"; then 2433 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2434$as_echo "$STRIP" >&6; } 2435else 2436 { $as_echo "$as_me:$LINENO: result: no" >&5 2437$as_echo "no" >&6; } 2438fi 2439 2440 2441fi 2442if test -z "$ac_cv_prog_STRIP"; then 2443 ac_ct_STRIP=$STRIP 2444 # Extract the first word of "strip", so it can be a program name with args. 2445set dummy strip; ac_word=$2 2446{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2447$as_echo_n "checking for $ac_word... " >&6; } 2448if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2449 $as_echo_n "(cached) " >&6 2450else 2451 if test -n "$ac_ct_STRIP"; then 2452 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2453else 2454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2455for as_dir in $PATH 2456do 2457 IFS=$as_save_IFS 2458 test -z "$as_dir" && as_dir=. 2459 for ac_exec_ext in '' $ac_executable_extensions; do 2460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2461 ac_cv_prog_ac_ct_STRIP="strip" 2462 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2463 break 2 2464 fi 2465done 2466done 2467IFS=$as_save_IFS 2468 2469fi 2470fi 2471ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2472if test -n "$ac_ct_STRIP"; then 2473 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2474$as_echo "$ac_ct_STRIP" >&6; } 2475else 2476 { $as_echo "$as_me:$LINENO: result: no" >&5 2477$as_echo "no" >&6; } 2478fi 2479 2480 if test "x$ac_ct_STRIP" = x; then 2481 STRIP=":" 2482 else 2483 case $cross_compiling:$ac_tool_warned in 2484yes:) 2485{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2486whose name does not start with the host triplet. If you think this 2487configuration is useful to you, please write to autoconf@gnu.org." >&5 2488$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2489whose name does not start with the host triplet. If you think this 2490configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2491ac_tool_warned=yes ;; 2492esac 2493 STRIP=$ac_ct_STRIP 2494 fi 2495else 2496 STRIP="$ac_cv_prog_STRIP" 2497fi 2498 2499fi 2500INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2501 2502# We need awk for the "check" target. The system "awk" is bad on 2503# some platforms. 2504# Always define AMTAR for backward compatibility. 2505 2506AMTAR=${AMTAR-"${am_missing_run}tar"} 2507 2508am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2509 2510 2511 2512 2513 2514 2515{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2516$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2517 # Check whether --enable-maintainer-mode was given. 2518if test "${enable_maintainer_mode+set}" = set; then 2519 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2520else 2521 USE_MAINTAINER_MODE=no 2522fi 2523 2524 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2525$as_echo "$USE_MAINTAINER_MODE" >&6; } 2526 2527 2528if test $USE_MAINTAINER_MODE = yes; then 2529 MAINTAINER_MODE_TRUE= 2530 MAINTAINER_MODE_FALSE='#' 2531else 2532 MAINTAINER_MODE_TRUE='#' 2533 MAINTAINER_MODE_FALSE= 2534fi 2535 2536 MAINT=$MAINTAINER_MODE_TRUE 2537 2538 2539 2540DRIVER_NAME=ws 2541 2542 2543# Require xorg-macros: XORG_DEFAULT_OPTIONS 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555DEPDIR="${am__leading_dot}deps" 2556 2557ac_config_commands="$ac_config_commands depfiles" 2558 2559 2560am_make=${MAKE-make} 2561cat > confinc << 'END' 2562am__doit: 2563 @echo done 2564.PHONY: am__doit 2565END 2566# If we don't find an include directive, just comment out the code. 2567{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2568$as_echo_n "checking for style of include used by $am_make... " >&6; } 2569am__include="#" 2570am__quote= 2571_am_result=none 2572# First try GNU make style include. 2573echo "include confinc" > confmf 2574# We grep out `Entering directory' and `Leaving directory' 2575# messages which can occur if `w' ends up in MAKEFLAGS. 2576# In particular we don't look at `^make:' because GNU make might 2577# be invoked under some other name (usually "gmake"), in which 2578# case it prints its new name instead of `make'. 2579if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2580 am__include=include 2581 am__quote= 2582 _am_result=GNU 2583fi 2584# Now try BSD make style include. 2585if test "$am__include" = "#"; then 2586 echo '.include "confinc"' > confmf 2587 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2588 am__include=.include 2589 am__quote="\"" 2590 _am_result=BSD 2591 fi 2592fi 2593 2594 2595{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 2596$as_echo "$_am_result" >&6; } 2597rm -f confinc confmf 2598 2599# Check whether --enable-dependency-tracking was given. 2600if test "${enable_dependency_tracking+set}" = set; then 2601 enableval=$enable_dependency_tracking; 2602fi 2603 2604if test "x$enable_dependency_tracking" != xno; then 2605 am_depcomp="$ac_aux_dir/depcomp" 2606 AMDEPBACKSLASH='\' 2607fi 2608 2609 2610if test "x$enable_dependency_tracking" != xno; then 2611 AMDEP_TRUE= 2612 AMDEP_FALSE='#' 2613else 2614 AMDEP_TRUE='#' 2615 AMDEP_FALSE= 2616fi 2617 2618 2619 2620ac_ext=c 2621ac_cpp='$CPP $CPPFLAGS' 2622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2624ac_compiler_gnu=$ac_cv_c_compiler_gnu 2625if test -n "$ac_tool_prefix"; then 2626 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2627set dummy ${ac_tool_prefix}gcc; ac_word=$2 2628{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2629$as_echo_n "checking for $ac_word... " >&6; } 2630if test "${ac_cv_prog_CC+set}" = set; then 2631 $as_echo_n "(cached) " >&6 2632else 2633 if test -n "$CC"; then 2634 ac_cv_prog_CC="$CC" # Let the user override the test. 2635else 2636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2637for as_dir in $PATH 2638do 2639 IFS=$as_save_IFS 2640 test -z "$as_dir" && as_dir=. 2641 for ac_exec_ext in '' $ac_executable_extensions; do 2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2643 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2644 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2645 break 2 2646 fi 2647done 2648done 2649IFS=$as_save_IFS 2650 2651fi 2652fi 2653CC=$ac_cv_prog_CC 2654if test -n "$CC"; then 2655 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2656$as_echo "$CC" >&6; } 2657else 2658 { $as_echo "$as_me:$LINENO: result: no" >&5 2659$as_echo "no" >&6; } 2660fi 2661 2662 2663fi 2664if test -z "$ac_cv_prog_CC"; then 2665 ac_ct_CC=$CC 2666 # Extract the first word of "gcc", so it can be a program name with args. 2667set dummy gcc; ac_word=$2 2668{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2669$as_echo_n "checking for $ac_word... " >&6; } 2670if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2671 $as_echo_n "(cached) " >&6 2672else 2673 if test -n "$ac_ct_CC"; then 2674 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2675else 2676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2677for as_dir in $PATH 2678do 2679 IFS=$as_save_IFS 2680 test -z "$as_dir" && as_dir=. 2681 for ac_exec_ext in '' $ac_executable_extensions; do 2682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2683 ac_cv_prog_ac_ct_CC="gcc" 2684 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2685 break 2 2686 fi 2687done 2688done 2689IFS=$as_save_IFS 2690 2691fi 2692fi 2693ac_ct_CC=$ac_cv_prog_ac_ct_CC 2694if test -n "$ac_ct_CC"; then 2695 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2696$as_echo "$ac_ct_CC" >&6; } 2697else 2698 { $as_echo "$as_me:$LINENO: result: no" >&5 2699$as_echo "no" >&6; } 2700fi 2701 2702 if test "x$ac_ct_CC" = x; then 2703 CC="" 2704 else 2705 case $cross_compiling:$ac_tool_warned in 2706yes:) 2707{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2708whose name does not start with the host triplet. If you think this 2709configuration is useful to you, please write to autoconf@gnu.org." >&5 2710$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2711whose name does not start with the host triplet. If you think this 2712configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2713ac_tool_warned=yes ;; 2714esac 2715 CC=$ac_ct_CC 2716 fi 2717else 2718 CC="$ac_cv_prog_CC" 2719fi 2720 2721if test -z "$CC"; then 2722 if test -n "$ac_tool_prefix"; then 2723 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2724set dummy ${ac_tool_prefix}cc; ac_word=$2 2725{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2726$as_echo_n "checking for $ac_word... " >&6; } 2727if test "${ac_cv_prog_CC+set}" = set; then 2728 $as_echo_n "(cached) " >&6 2729else 2730 if test -n "$CC"; then 2731 ac_cv_prog_CC="$CC" # Let the user override the test. 2732else 2733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2734for as_dir in $PATH 2735do 2736 IFS=$as_save_IFS 2737 test -z "$as_dir" && as_dir=. 2738 for ac_exec_ext in '' $ac_executable_extensions; do 2739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2740 ac_cv_prog_CC="${ac_tool_prefix}cc" 2741 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2742 break 2 2743 fi 2744done 2745done 2746IFS=$as_save_IFS 2747 2748fi 2749fi 2750CC=$ac_cv_prog_CC 2751if test -n "$CC"; then 2752 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2753$as_echo "$CC" >&6; } 2754else 2755 { $as_echo "$as_me:$LINENO: result: no" >&5 2756$as_echo "no" >&6; } 2757fi 2758 2759 2760 fi 2761fi 2762if test -z "$CC"; then 2763 # Extract the first word of "cc", so it can be a program name with args. 2764set dummy cc; ac_word=$2 2765{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2766$as_echo_n "checking for $ac_word... " >&6; } 2767if test "${ac_cv_prog_CC+set}" = set; then 2768 $as_echo_n "(cached) " >&6 2769else 2770 if test -n "$CC"; then 2771 ac_cv_prog_CC="$CC" # Let the user override the test. 2772else 2773 ac_prog_rejected=no 2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2775for as_dir in $PATH 2776do 2777 IFS=$as_save_IFS 2778 test -z "$as_dir" && as_dir=. 2779 for ac_exec_ext in '' $ac_executable_extensions; do 2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2781 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2782 ac_prog_rejected=yes 2783 continue 2784 fi 2785 ac_cv_prog_CC="cc" 2786 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2787 break 2 2788 fi 2789done 2790done 2791IFS=$as_save_IFS 2792 2793if test $ac_prog_rejected = yes; then 2794 # We found a bogon in the path, so make sure we never use it. 2795 set dummy $ac_cv_prog_CC 2796 shift 2797 if test $# != 0; then 2798 # We chose a different compiler from the bogus one. 2799 # However, it has the same basename, so the bogon will be chosen 2800 # first if we set CC to just the basename; use the full file name. 2801 shift 2802 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2803 fi 2804fi 2805fi 2806fi 2807CC=$ac_cv_prog_CC 2808if test -n "$CC"; then 2809 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2810$as_echo "$CC" >&6; } 2811else 2812 { $as_echo "$as_me:$LINENO: result: no" >&5 2813$as_echo "no" >&6; } 2814fi 2815 2816 2817fi 2818if test -z "$CC"; then 2819 if test -n "$ac_tool_prefix"; then 2820 for ac_prog in cl.exe 2821 do 2822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2823set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2824{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2825$as_echo_n "checking for $ac_word... " >&6; } 2826if test "${ac_cv_prog_CC+set}" = set; then 2827 $as_echo_n "(cached) " >&6 2828else 2829 if test -n "$CC"; then 2830 ac_cv_prog_CC="$CC" # Let the user override the test. 2831else 2832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2833for as_dir in $PATH 2834do 2835 IFS=$as_save_IFS 2836 test -z "$as_dir" && as_dir=. 2837 for ac_exec_ext in '' $ac_executable_extensions; do 2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2839 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2840 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2841 break 2 2842 fi 2843done 2844done 2845IFS=$as_save_IFS 2846 2847fi 2848fi 2849CC=$ac_cv_prog_CC 2850if test -n "$CC"; then 2851 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2852$as_echo "$CC" >&6; } 2853else 2854 { $as_echo "$as_me:$LINENO: result: no" >&5 2855$as_echo "no" >&6; } 2856fi 2857 2858 2859 test -n "$CC" && break 2860 done 2861fi 2862if test -z "$CC"; then 2863 ac_ct_CC=$CC 2864 for ac_prog in cl.exe 2865do 2866 # Extract the first word of "$ac_prog", so it can be a program name with args. 2867set dummy $ac_prog; ac_word=$2 2868{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2869$as_echo_n "checking for $ac_word... " >&6; } 2870if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2871 $as_echo_n "(cached) " >&6 2872else 2873 if test -n "$ac_ct_CC"; then 2874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2875else 2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2877for as_dir in $PATH 2878do 2879 IFS=$as_save_IFS 2880 test -z "$as_dir" && as_dir=. 2881 for ac_exec_ext in '' $ac_executable_extensions; do 2882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2883 ac_cv_prog_ac_ct_CC="$ac_prog" 2884 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2885 break 2 2886 fi 2887done 2888done 2889IFS=$as_save_IFS 2890 2891fi 2892fi 2893ac_ct_CC=$ac_cv_prog_ac_ct_CC 2894if test -n "$ac_ct_CC"; then 2895 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2896$as_echo "$ac_ct_CC" >&6; } 2897else 2898 { $as_echo "$as_me:$LINENO: result: no" >&5 2899$as_echo "no" >&6; } 2900fi 2901 2902 2903 test -n "$ac_ct_CC" && break 2904done 2905 2906 if test "x$ac_ct_CC" = x; then 2907 CC="" 2908 else 2909 case $cross_compiling:$ac_tool_warned in 2910yes:) 2911{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2912whose name does not start with the host triplet. If you think this 2913configuration is useful to you, please write to autoconf@gnu.org." >&5 2914$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2915whose name does not start with the host triplet. If you think this 2916configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2917ac_tool_warned=yes ;; 2918esac 2919 CC=$ac_ct_CC 2920 fi 2921fi 2922 2923fi 2924 2925 2926test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2927See \`config.log' for more details." >&5 2928$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2929See \`config.log' for more details." >&2;} 2930 { (exit 1); exit 1; }; } 2931 2932# Provide some information about the compiler. 2933$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2934set X $ac_compile 2935ac_compiler=$2 2936{ (ac_try="$ac_compiler --version >&5" 2937case "(($ac_try" in 2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2939 *) ac_try_echo=$ac_try;; 2940esac 2941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2942$as_echo "$ac_try_echo") >&5 2943 (eval "$ac_compiler --version >&5") 2>&5 2944 ac_status=$? 2945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2946 (exit $ac_status); } 2947{ (ac_try="$ac_compiler -v >&5" 2948case "(($ac_try" in 2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2950 *) ac_try_echo=$ac_try;; 2951esac 2952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2953$as_echo "$ac_try_echo") >&5 2954 (eval "$ac_compiler -v >&5") 2>&5 2955 ac_status=$? 2956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2957 (exit $ac_status); } 2958{ (ac_try="$ac_compiler -V >&5" 2959case "(($ac_try" in 2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2961 *) ac_try_echo=$ac_try;; 2962esac 2963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2964$as_echo "$ac_try_echo") >&5 2965 (eval "$ac_compiler -V >&5") 2>&5 2966 ac_status=$? 2967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2968 (exit $ac_status); } 2969 2970cat >conftest.$ac_ext <<_ACEOF 2971/* confdefs.h. */ 2972_ACEOF 2973cat confdefs.h >>conftest.$ac_ext 2974cat >>conftest.$ac_ext <<_ACEOF 2975/* end confdefs.h. */ 2976 2977int 2978main () 2979{ 2980 2981 ; 2982 return 0; 2983} 2984_ACEOF 2985ac_clean_files_save=$ac_clean_files 2986ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2987# Try to create an executable without -o first, disregard a.out. 2988# It will help us diagnose broken compilers, and finding out an intuition 2989# of exeext. 2990{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2991$as_echo_n "checking for C compiler default output file name... " >&6; } 2992ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2993 2994# The possible output files: 2995ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2996 2997ac_rmfiles= 2998for ac_file in $ac_files 2999do 3000 case $ac_file in 3001 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3002 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3003 esac 3004done 3005rm -f $ac_rmfiles 3006 3007if { (ac_try="$ac_link_default" 3008case "(($ac_try" in 3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3010 *) ac_try_echo=$ac_try;; 3011esac 3012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3013$as_echo "$ac_try_echo") >&5 3014 (eval "$ac_link_default") 2>&5 3015 ac_status=$? 3016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3017 (exit $ac_status); }; then 3018 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3019# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3020# in a Makefile. We should not override ac_cv_exeext if it was cached, 3021# so that the user can short-circuit this test for compilers unknown to 3022# Autoconf. 3023for ac_file in $ac_files '' 3024do 3025 test -f "$ac_file" || continue 3026 case $ac_file in 3027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3028 ;; 3029 [ab].out ) 3030 # We found the default executable, but exeext='' is most 3031 # certainly right. 3032 break;; 3033 *.* ) 3034 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3035 then :; else 3036 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3037 fi 3038 # We set ac_cv_exeext here because the later test for it is not 3039 # safe: cross compilers may not add the suffix if given an `-o' 3040 # argument, so we may need to know it at that point already. 3041 # Even if this section looks crufty: it has the advantage of 3042 # actually working. 3043 break;; 3044 * ) 3045 break;; 3046 esac 3047done 3048test "$ac_cv_exeext" = no && ac_cv_exeext= 3049 3050else 3051 ac_file='' 3052fi 3053 3054{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3055$as_echo "$ac_file" >&6; } 3056if test -z "$ac_file"; then 3057 $as_echo "$as_me: failed program was:" >&5 3058sed 's/^/| /' conftest.$ac_ext >&5 3059 3060{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3061See \`config.log' for more details." >&5 3062$as_echo "$as_me: error: C compiler cannot create executables 3063See \`config.log' for more details." >&2;} 3064 { (exit 77); exit 77; }; } 3065fi 3066 3067ac_exeext=$ac_cv_exeext 3068 3069# Check that the compiler produces executables we can run. If not, either 3070# the compiler is broken, or we cross compile. 3071{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3072$as_echo_n "checking whether the C compiler works... " >&6; } 3073# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3074# If not cross compiling, check that we can run a simple program. 3075if test "$cross_compiling" != yes; then 3076 if { ac_try='./$ac_file' 3077 { (case "(($ac_try" in 3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3079 *) ac_try_echo=$ac_try;; 3080esac 3081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3082$as_echo "$ac_try_echo") >&5 3083 (eval "$ac_try") 2>&5 3084 ac_status=$? 3085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3086 (exit $ac_status); }; }; then 3087 cross_compiling=no 3088 else 3089 if test "$cross_compiling" = maybe; then 3090 cross_compiling=yes 3091 else 3092 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3093If you meant to cross compile, use \`--host'. 3094See \`config.log' for more details." >&5 3095$as_echo "$as_me: error: cannot run C compiled programs. 3096If you meant to cross compile, use \`--host'. 3097See \`config.log' for more details." >&2;} 3098 { (exit 1); exit 1; }; } 3099 fi 3100 fi 3101fi 3102{ $as_echo "$as_me:$LINENO: result: yes" >&5 3103$as_echo "yes" >&6; } 3104 3105rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3106ac_clean_files=$ac_clean_files_save 3107# Check that the compiler produces executables we can run. If not, either 3108# the compiler is broken, or we cross compile. 3109{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3110$as_echo_n "checking whether we are cross compiling... " >&6; } 3111{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3112$as_echo "$cross_compiling" >&6; } 3113 3114{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3115$as_echo_n "checking for suffix of executables... " >&6; } 3116if { (ac_try="$ac_link" 3117case "(($ac_try" in 3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3119 *) ac_try_echo=$ac_try;; 3120esac 3121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3122$as_echo "$ac_try_echo") >&5 3123 (eval "$ac_link") 2>&5 3124 ac_status=$? 3125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3126 (exit $ac_status); }; then 3127 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3128# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3129# work properly (i.e., refer to `conftest.exe'), while it won't with 3130# `rm'. 3131for ac_file in conftest.exe conftest conftest.*; do 3132 test -f "$ac_file" || continue 3133 case $ac_file in 3134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3135 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3136 break;; 3137 * ) break;; 3138 esac 3139done 3140else 3141 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3142See \`config.log' for more details." >&5 3143$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3144See \`config.log' for more details." >&2;} 3145 { (exit 1); exit 1; }; } 3146fi 3147 3148rm -f conftest$ac_cv_exeext 3149{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3150$as_echo "$ac_cv_exeext" >&6; } 3151 3152rm -f conftest.$ac_ext 3153EXEEXT=$ac_cv_exeext 3154ac_exeext=$EXEEXT 3155{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3156$as_echo_n "checking for suffix of object files... " >&6; } 3157if test "${ac_cv_objext+set}" = set; then 3158 $as_echo_n "(cached) " >&6 3159else 3160 cat >conftest.$ac_ext <<_ACEOF 3161/* confdefs.h. */ 3162_ACEOF 3163cat confdefs.h >>conftest.$ac_ext 3164cat >>conftest.$ac_ext <<_ACEOF 3165/* end confdefs.h. */ 3166 3167int 3168main () 3169{ 3170 3171 ; 3172 return 0; 3173} 3174_ACEOF 3175rm -f conftest.o conftest.obj 3176if { (ac_try="$ac_compile" 3177case "(($ac_try" in 3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3179 *) ac_try_echo=$ac_try;; 3180esac 3181eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3182$as_echo "$ac_try_echo") >&5 3183 (eval "$ac_compile") 2>&5 3184 ac_status=$? 3185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3186 (exit $ac_status); }; then 3187 for ac_file in conftest.o conftest.obj conftest.*; do 3188 test -f "$ac_file" || continue; 3189 case $ac_file in 3190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3191 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3192 break;; 3193 esac 3194done 3195else 3196 $as_echo "$as_me: failed program was:" >&5 3197sed 's/^/| /' conftest.$ac_ext >&5 3198 3199{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3200See \`config.log' for more details." >&5 3201$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3202See \`config.log' for more details." >&2;} 3203 { (exit 1); exit 1; }; } 3204fi 3205 3206rm -f conftest.$ac_cv_objext conftest.$ac_ext 3207fi 3208{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3209$as_echo "$ac_cv_objext" >&6; } 3210OBJEXT=$ac_cv_objext 3211ac_objext=$OBJEXT 3212{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3213$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3214if test "${ac_cv_c_compiler_gnu+set}" = set; then 3215 $as_echo_n "(cached) " >&6 3216else 3217 cat >conftest.$ac_ext <<_ACEOF 3218/* confdefs.h. */ 3219_ACEOF 3220cat confdefs.h >>conftest.$ac_ext 3221cat >>conftest.$ac_ext <<_ACEOF 3222/* end confdefs.h. */ 3223 3224int 3225main () 3226{ 3227#ifndef __GNUC__ 3228 choke me 3229#endif 3230 3231 ; 3232 return 0; 3233} 3234_ACEOF 3235rm -f conftest.$ac_objext 3236if { (ac_try="$ac_compile" 3237case "(($ac_try" in 3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3239 *) ac_try_echo=$ac_try;; 3240esac 3241eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3242$as_echo "$ac_try_echo") >&5 3243 (eval "$ac_compile") 2>conftest.er1 3244 ac_status=$? 3245 grep -v '^ *+' conftest.er1 >conftest.err 3246 rm -f conftest.er1 3247 cat conftest.err >&5 3248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3249 (exit $ac_status); } && { 3250 test -z "$ac_c_werror_flag" || 3251 test ! -s conftest.err 3252 } && test -s conftest.$ac_objext; then 3253 ac_compiler_gnu=yes 3254else 3255 $as_echo "$as_me: failed program was:" >&5 3256sed 's/^/| /' conftest.$ac_ext >&5 3257 3258 ac_compiler_gnu=no 3259fi 3260 3261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3262ac_cv_c_compiler_gnu=$ac_compiler_gnu 3263 3264fi 3265{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3266$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3267if test $ac_compiler_gnu = yes; then 3268 GCC=yes 3269else 3270 GCC= 3271fi 3272ac_test_CFLAGS=${CFLAGS+set} 3273ac_save_CFLAGS=$CFLAGS 3274{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3275$as_echo_n "checking whether $CC accepts -g... " >&6; } 3276if test "${ac_cv_prog_cc_g+set}" = set; then 3277 $as_echo_n "(cached) " >&6 3278else 3279 ac_save_c_werror_flag=$ac_c_werror_flag 3280 ac_c_werror_flag=yes 3281 ac_cv_prog_cc_g=no 3282 CFLAGS="-g" 3283 cat >conftest.$ac_ext <<_ACEOF 3284/* confdefs.h. */ 3285_ACEOF 3286cat confdefs.h >>conftest.$ac_ext 3287cat >>conftest.$ac_ext <<_ACEOF 3288/* end confdefs.h. */ 3289 3290int 3291main () 3292{ 3293 3294 ; 3295 return 0; 3296} 3297_ACEOF 3298rm -f conftest.$ac_objext 3299if { (ac_try="$ac_compile" 3300case "(($ac_try" in 3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3302 *) ac_try_echo=$ac_try;; 3303esac 3304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3305$as_echo "$ac_try_echo") >&5 3306 (eval "$ac_compile") 2>conftest.er1 3307 ac_status=$? 3308 grep -v '^ *+' conftest.er1 >conftest.err 3309 rm -f conftest.er1 3310 cat conftest.err >&5 3311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3312 (exit $ac_status); } && { 3313 test -z "$ac_c_werror_flag" || 3314 test ! -s conftest.err 3315 } && test -s conftest.$ac_objext; then 3316 ac_cv_prog_cc_g=yes 3317else 3318 $as_echo "$as_me: failed program was:" >&5 3319sed 's/^/| /' conftest.$ac_ext >&5 3320 3321 CFLAGS="" 3322 cat >conftest.$ac_ext <<_ACEOF 3323/* confdefs.h. */ 3324_ACEOF 3325cat confdefs.h >>conftest.$ac_ext 3326cat >>conftest.$ac_ext <<_ACEOF 3327/* end confdefs.h. */ 3328 3329int 3330main () 3331{ 3332 3333 ; 3334 return 0; 3335} 3336_ACEOF 3337rm -f conftest.$ac_objext 3338if { (ac_try="$ac_compile" 3339case "(($ac_try" in 3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3341 *) ac_try_echo=$ac_try;; 3342esac 3343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3344$as_echo "$ac_try_echo") >&5 3345 (eval "$ac_compile") 2>conftest.er1 3346 ac_status=$? 3347 grep -v '^ *+' conftest.er1 >conftest.err 3348 rm -f conftest.er1 3349 cat conftest.err >&5 3350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3351 (exit $ac_status); } && { 3352 test -z "$ac_c_werror_flag" || 3353 test ! -s conftest.err 3354 } && test -s conftest.$ac_objext; then 3355 : 3356else 3357 $as_echo "$as_me: failed program was:" >&5 3358sed 's/^/| /' conftest.$ac_ext >&5 3359 3360 ac_c_werror_flag=$ac_save_c_werror_flag 3361 CFLAGS="-g" 3362 cat >conftest.$ac_ext <<_ACEOF 3363/* confdefs.h. */ 3364_ACEOF 3365cat confdefs.h >>conftest.$ac_ext 3366cat >>conftest.$ac_ext <<_ACEOF 3367/* end confdefs.h. */ 3368 3369int 3370main () 3371{ 3372 3373 ; 3374 return 0; 3375} 3376_ACEOF 3377rm -f conftest.$ac_objext 3378if { (ac_try="$ac_compile" 3379case "(($ac_try" in 3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3381 *) ac_try_echo=$ac_try;; 3382esac 3383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3384$as_echo "$ac_try_echo") >&5 3385 (eval "$ac_compile") 2>conftest.er1 3386 ac_status=$? 3387 grep -v '^ *+' conftest.er1 >conftest.err 3388 rm -f conftest.er1 3389 cat conftest.err >&5 3390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3391 (exit $ac_status); } && { 3392 test -z "$ac_c_werror_flag" || 3393 test ! -s conftest.err 3394 } && test -s conftest.$ac_objext; then 3395 ac_cv_prog_cc_g=yes 3396else 3397 $as_echo "$as_me: failed program was:" >&5 3398sed 's/^/| /' conftest.$ac_ext >&5 3399 3400 3401fi 3402 3403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3404fi 3405 3406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3407fi 3408 3409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3410 ac_c_werror_flag=$ac_save_c_werror_flag 3411fi 3412{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3413$as_echo "$ac_cv_prog_cc_g" >&6; } 3414if test "$ac_test_CFLAGS" = set; then 3415 CFLAGS=$ac_save_CFLAGS 3416elif test $ac_cv_prog_cc_g = yes; then 3417 if test "$GCC" = yes; then 3418 CFLAGS="-g -O2" 3419 else 3420 CFLAGS="-g" 3421 fi 3422else 3423 if test "$GCC" = yes; then 3424 CFLAGS="-O2" 3425 else 3426 CFLAGS= 3427 fi 3428fi 3429{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3430$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3431if test "${ac_cv_prog_cc_c89+set}" = set; then 3432 $as_echo_n "(cached) " >&6 3433else 3434 ac_cv_prog_cc_c89=no 3435ac_save_CC=$CC 3436cat >conftest.$ac_ext <<_ACEOF 3437/* confdefs.h. */ 3438_ACEOF 3439cat confdefs.h >>conftest.$ac_ext 3440cat >>conftest.$ac_ext <<_ACEOF 3441/* end confdefs.h. */ 3442#include <stdarg.h> 3443#include <stdio.h> 3444#include <sys/types.h> 3445#include <sys/stat.h> 3446/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3447struct buf { int x; }; 3448FILE * (*rcsopen) (struct buf *, struct stat *, int); 3449static char *e (p, i) 3450 char **p; 3451 int i; 3452{ 3453 return p[i]; 3454} 3455static char *f (char * (*g) (char **, int), char **p, ...) 3456{ 3457 char *s; 3458 va_list v; 3459 va_start (v,p); 3460 s = g (p, va_arg (v,int)); 3461 va_end (v); 3462 return s; 3463} 3464 3465/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3466 function prototypes and stuff, but not '\xHH' hex character constants. 3467 These don't provoke an error unfortunately, instead are silently treated 3468 as 'x'. The following induces an error, until -std is added to get 3469 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3470 array size at least. It's necessary to write '\x00'==0 to get something 3471 that's true only with -std. */ 3472int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3473 3474/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3475 inside strings and character constants. */ 3476#define FOO(x) 'x' 3477int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3478 3479int test (int i, double x); 3480struct s1 {int (*f) (int a);}; 3481struct s2 {int (*f) (double a);}; 3482int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3483int argc; 3484char **argv; 3485int 3486main () 3487{ 3488return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3489 ; 3490 return 0; 3491} 3492_ACEOF 3493for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3494 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3495do 3496 CC="$ac_save_CC $ac_arg" 3497 rm -f conftest.$ac_objext 3498if { (ac_try="$ac_compile" 3499case "(($ac_try" in 3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3501 *) ac_try_echo=$ac_try;; 3502esac 3503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3504$as_echo "$ac_try_echo") >&5 3505 (eval "$ac_compile") 2>conftest.er1 3506 ac_status=$? 3507 grep -v '^ *+' conftest.er1 >conftest.err 3508 rm -f conftest.er1 3509 cat conftest.err >&5 3510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3511 (exit $ac_status); } && { 3512 test -z "$ac_c_werror_flag" || 3513 test ! -s conftest.err 3514 } && test -s conftest.$ac_objext; then 3515 ac_cv_prog_cc_c89=$ac_arg 3516else 3517 $as_echo "$as_me: failed program was:" >&5 3518sed 's/^/| /' conftest.$ac_ext >&5 3519 3520 3521fi 3522 3523rm -f core conftest.err conftest.$ac_objext 3524 test "x$ac_cv_prog_cc_c89" != "xno" && break 3525done 3526rm -f conftest.$ac_ext 3527CC=$ac_save_CC 3528 3529fi 3530# AC_CACHE_VAL 3531case "x$ac_cv_prog_cc_c89" in 3532 x) 3533 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3534$as_echo "none needed" >&6; } ;; 3535 xno) 3536 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3537$as_echo "unsupported" >&6; } ;; 3538 *) 3539 CC="$CC $ac_cv_prog_cc_c89" 3540 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3541$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3542esac 3543 3544 3545ac_ext=c 3546ac_cpp='$CPP $CPPFLAGS' 3547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3549ac_compiler_gnu=$ac_cv_c_compiler_gnu 3550 3551depcc="$CC" am_compiler_list= 3552 3553{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3554$as_echo_n "checking dependency style of $depcc... " >&6; } 3555if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3556 $as_echo_n "(cached) " >&6 3557else 3558 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3559 # We make a subdir and do the tests there. Otherwise we can end up 3560 # making bogus files that we don't know about and never remove. For 3561 # instance it was reported that on HP-UX the gcc test will end up 3562 # making a dummy file named `D' -- because `-MD' means `put the output 3563 # in D'. 3564 mkdir conftest.dir 3565 # Copy depcomp to subdir because otherwise we won't find it if we're 3566 # using a relative directory. 3567 cp "$am_depcomp" conftest.dir 3568 cd conftest.dir 3569 # We will build objects and dependencies in a subdirectory because 3570 # it helps to detect inapplicable dependency modes. For instance 3571 # both Tru64's cc and ICC support -MD to output dependencies as a 3572 # side effect of compilation, but ICC will put the dependencies in 3573 # the current directory while Tru64 will put them in the object 3574 # directory. 3575 mkdir sub 3576 3577 am_cv_CC_dependencies_compiler_type=none 3578 if test "$am_compiler_list" = ""; then 3579 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3580 fi 3581 for depmode in $am_compiler_list; do 3582 # Setup a source with many dependencies, because some compilers 3583 # like to wrap large dependency lists on column 80 (with \), and 3584 # we should not choose a depcomp mode which is confused by this. 3585 # 3586 # We need to recreate these files for each test, as the compiler may 3587 # overwrite some of them when testing with obscure command lines. 3588 # This happens at least with the AIX C compiler. 3589 : > sub/conftest.c 3590 for i in 1 2 3 4 5 6; do 3591 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3592 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3593 # Solaris 8's {/usr,}/bin/sh. 3594 touch sub/conftst$i.h 3595 done 3596 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3597 3598 case $depmode in 3599 nosideeffect) 3600 # after this tag, mechanisms are not by side-effect, so they'll 3601 # only be used when explicitly requested 3602 if test "x$enable_dependency_tracking" = xyes; then 3603 continue 3604 else 3605 break 3606 fi 3607 ;; 3608 none) break ;; 3609 esac 3610 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3611 # mode. It turns out that the SunPro C++ compiler does not properly 3612 # handle `-M -o', and we need to detect this. 3613 if depmode=$depmode \ 3614 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3615 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3616 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3617 >/dev/null 2>conftest.err && 3618 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3619 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3620 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3621 # icc doesn't choke on unknown options, it will just issue warnings 3622 # or remarks (even with -Werror). So we grep stderr for any message 3623 # that says an option was ignored or not supported. 3624 # When given -MP, icc 7.0 and 7.1 complain thusly: 3625 # icc: Command line warning: ignoring option '-M'; no argument required 3626 # The diagnosis changed in icc 8.0: 3627 # icc: Command line remark: option '-MP' not supported 3628 if (grep 'ignoring option' conftest.err || 3629 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3630 am_cv_CC_dependencies_compiler_type=$depmode 3631 break 3632 fi 3633 fi 3634 done 3635 3636 cd .. 3637 rm -rf conftest.dir 3638else 3639 am_cv_CC_dependencies_compiler_type=none 3640fi 3641 3642fi 3643{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3644$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3645CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3646 3647 3648 3649if 3650 test "x$enable_dependency_tracking" != xno \ 3651 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3652 am__fastdepCC_TRUE= 3653 am__fastdepCC_FALSE='#' 3654else 3655 am__fastdepCC_TRUE='#' 3656 am__fastdepCC_FALSE= 3657fi 3658 3659 3660 3661ac_ext=c 3662ac_cpp='$CPP $CPPFLAGS' 3663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3665ac_compiler_gnu=$ac_cv_c_compiler_gnu 3666{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3667$as_echo_n "checking how to run the C preprocessor... " >&6; } 3668# On Suns, sometimes $CPP names a directory. 3669if test -n "$CPP" && test -d "$CPP"; then 3670 CPP= 3671fi 3672if test -z "$CPP"; then 3673 if test "${ac_cv_prog_CPP+set}" = set; then 3674 $as_echo_n "(cached) " >&6 3675else 3676 # Double quotes because CPP needs to be expanded 3677 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3678 do 3679 ac_preproc_ok=false 3680for ac_c_preproc_warn_flag in '' yes 3681do 3682 # Use a header file that comes with gcc, so configuring glibc 3683 # with a fresh cross-compiler works. 3684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3685 # <limits.h> exists even on freestanding compilers. 3686 # On the NeXT, cc -E runs the code through the compiler's parser, 3687 # not just through cpp. "Syntax error" is here to catch this case. 3688 cat >conftest.$ac_ext <<_ACEOF 3689/* confdefs.h. */ 3690_ACEOF 3691cat confdefs.h >>conftest.$ac_ext 3692cat >>conftest.$ac_ext <<_ACEOF 3693/* end confdefs.h. */ 3694#ifdef __STDC__ 3695# include <limits.h> 3696#else 3697# include <assert.h> 3698#endif 3699 Syntax error 3700_ACEOF 3701if { (ac_try="$ac_cpp conftest.$ac_ext" 3702case "(($ac_try" in 3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3704 *) ac_try_echo=$ac_try;; 3705esac 3706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3707$as_echo "$ac_try_echo") >&5 3708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3709 ac_status=$? 3710 grep -v '^ *+' conftest.er1 >conftest.err 3711 rm -f conftest.er1 3712 cat conftest.err >&5 3713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3714 (exit $ac_status); } >/dev/null && { 3715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3716 test ! -s conftest.err 3717 }; then 3718 : 3719else 3720 $as_echo "$as_me: failed program was:" >&5 3721sed 's/^/| /' conftest.$ac_ext >&5 3722 3723 # Broken: fails on valid input. 3724continue 3725fi 3726 3727rm -f conftest.err conftest.$ac_ext 3728 3729 # OK, works on sane cases. Now check whether nonexistent headers 3730 # can be detected and how. 3731 cat >conftest.$ac_ext <<_ACEOF 3732/* confdefs.h. */ 3733_ACEOF 3734cat confdefs.h >>conftest.$ac_ext 3735cat >>conftest.$ac_ext <<_ACEOF 3736/* end confdefs.h. */ 3737#include <ac_nonexistent.h> 3738_ACEOF 3739if { (ac_try="$ac_cpp conftest.$ac_ext" 3740case "(($ac_try" in 3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3742 *) ac_try_echo=$ac_try;; 3743esac 3744eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3745$as_echo "$ac_try_echo") >&5 3746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3747 ac_status=$? 3748 grep -v '^ *+' conftest.er1 >conftest.err 3749 rm -f conftest.er1 3750 cat conftest.err >&5 3751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3752 (exit $ac_status); } >/dev/null && { 3753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3754 test ! -s conftest.err 3755 }; then 3756 # Broken: success on invalid input. 3757continue 3758else 3759 $as_echo "$as_me: failed program was:" >&5 3760sed 's/^/| /' conftest.$ac_ext >&5 3761 3762 # Passes both tests. 3763ac_preproc_ok=: 3764break 3765fi 3766 3767rm -f conftest.err conftest.$ac_ext 3768 3769done 3770# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3771rm -f conftest.err conftest.$ac_ext 3772if $ac_preproc_ok; then 3773 break 3774fi 3775 3776 done 3777 ac_cv_prog_CPP=$CPP 3778 3779fi 3780 CPP=$ac_cv_prog_CPP 3781else 3782 ac_cv_prog_CPP=$CPP 3783fi 3784{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 3785$as_echo "$CPP" >&6; } 3786ac_preproc_ok=false 3787for ac_c_preproc_warn_flag in '' yes 3788do 3789 # Use a header file that comes with gcc, so configuring glibc 3790 # with a fresh cross-compiler works. 3791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3792 # <limits.h> exists even on freestanding compilers. 3793 # On the NeXT, cc -E runs the code through the compiler's parser, 3794 # not just through cpp. "Syntax error" is here to catch this case. 3795 cat >conftest.$ac_ext <<_ACEOF 3796/* confdefs.h. */ 3797_ACEOF 3798cat confdefs.h >>conftest.$ac_ext 3799cat >>conftest.$ac_ext <<_ACEOF 3800/* end confdefs.h. */ 3801#ifdef __STDC__ 3802# include <limits.h> 3803#else 3804# include <assert.h> 3805#endif 3806 Syntax error 3807_ACEOF 3808if { (ac_try="$ac_cpp conftest.$ac_ext" 3809case "(($ac_try" in 3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3811 *) ac_try_echo=$ac_try;; 3812esac 3813eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3814$as_echo "$ac_try_echo") >&5 3815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3816 ac_status=$? 3817 grep -v '^ *+' conftest.er1 >conftest.err 3818 rm -f conftest.er1 3819 cat conftest.err >&5 3820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3821 (exit $ac_status); } >/dev/null && { 3822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3823 test ! -s conftest.err 3824 }; then 3825 : 3826else 3827 $as_echo "$as_me: failed program was:" >&5 3828sed 's/^/| /' conftest.$ac_ext >&5 3829 3830 # Broken: fails on valid input. 3831continue 3832fi 3833 3834rm -f conftest.err conftest.$ac_ext 3835 3836 # OK, works on sane cases. Now check whether nonexistent headers 3837 # can be detected and how. 3838 cat >conftest.$ac_ext <<_ACEOF 3839/* confdefs.h. */ 3840_ACEOF 3841cat confdefs.h >>conftest.$ac_ext 3842cat >>conftest.$ac_ext <<_ACEOF 3843/* end confdefs.h. */ 3844#include <ac_nonexistent.h> 3845_ACEOF 3846if { (ac_try="$ac_cpp conftest.$ac_ext" 3847case "(($ac_try" in 3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3849 *) ac_try_echo=$ac_try;; 3850esac 3851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3852$as_echo "$ac_try_echo") >&5 3853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3854 ac_status=$? 3855 grep -v '^ *+' conftest.er1 >conftest.err 3856 rm -f conftest.er1 3857 cat conftest.err >&5 3858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3859 (exit $ac_status); } >/dev/null && { 3860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3861 test ! -s conftest.err 3862 }; then 3863 # Broken: success on invalid input. 3864continue 3865else 3866 $as_echo "$as_me: failed program was:" >&5 3867sed 's/^/| /' conftest.$ac_ext >&5 3868 3869 # Passes both tests. 3870ac_preproc_ok=: 3871break 3872fi 3873 3874rm -f conftest.err conftest.$ac_ext 3875 3876done 3877# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3878rm -f conftest.err conftest.$ac_ext 3879if $ac_preproc_ok; then 3880 : 3881else 3882 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3883See \`config.log' for more details." >&5 3884$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3885See \`config.log' for more details." >&2;} 3886 { (exit 1); exit 1; }; } 3887fi 3888 3889ac_ext=c 3890ac_cpp='$CPP $CPPFLAGS' 3891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3893ac_compiler_gnu=$ac_cv_c_compiler_gnu 3894 3895 3896{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3897$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3898if test "${ac_cv_path_GREP+set}" = set; then 3899 $as_echo_n "(cached) " >&6 3900else 3901 if test -z "$GREP"; then 3902 ac_path_GREP_found=false 3903 # Loop through the user's path and test for each of PROGNAME-LIST 3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3905for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3906do 3907 IFS=$as_save_IFS 3908 test -z "$as_dir" && as_dir=. 3909 for ac_prog in grep ggrep; do 3910 for ac_exec_ext in '' $ac_executable_extensions; do 3911 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3912 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3913# Check for GNU ac_path_GREP and select it if it is found. 3914 # Check for GNU $ac_path_GREP 3915case `"$ac_path_GREP" --version 2>&1` in 3916*GNU*) 3917 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3918*) 3919 ac_count=0 3920 $as_echo_n 0123456789 >"conftest.in" 3921 while : 3922 do 3923 cat "conftest.in" "conftest.in" >"conftest.tmp" 3924 mv "conftest.tmp" "conftest.in" 3925 cp "conftest.in" "conftest.nl" 3926 $as_echo 'GREP' >> "conftest.nl" 3927 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3928 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3929 ac_count=`expr $ac_count + 1` 3930 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3931 # Best one so far, save it but keep looking for a better one 3932 ac_cv_path_GREP="$ac_path_GREP" 3933 ac_path_GREP_max=$ac_count 3934 fi 3935 # 10*(2^10) chars as input seems more than enough 3936 test $ac_count -gt 10 && break 3937 done 3938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3939esac 3940 3941 $ac_path_GREP_found && break 3 3942 done 3943 done 3944done 3945IFS=$as_save_IFS 3946 if test -z "$ac_cv_path_GREP"; then 3947 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3948$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3949 { (exit 1); exit 1; }; } 3950 fi 3951else 3952 ac_cv_path_GREP=$GREP 3953fi 3954 3955fi 3956{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3957$as_echo "$ac_cv_path_GREP" >&6; } 3958 GREP="$ac_cv_path_GREP" 3959 3960 3961{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3962$as_echo_n "checking for egrep... " >&6; } 3963if test "${ac_cv_path_EGREP+set}" = set; then 3964 $as_echo_n "(cached) " >&6 3965else 3966 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3967 then ac_cv_path_EGREP="$GREP -E" 3968 else 3969 if test -z "$EGREP"; then 3970 ac_path_EGREP_found=false 3971 # Loop through the user's path and test for each of PROGNAME-LIST 3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3973for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3974do 3975 IFS=$as_save_IFS 3976 test -z "$as_dir" && as_dir=. 3977 for ac_prog in egrep; do 3978 for ac_exec_ext in '' $ac_executable_extensions; do 3979 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3980 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3981# Check for GNU ac_path_EGREP and select it if it is found. 3982 # Check for GNU $ac_path_EGREP 3983case `"$ac_path_EGREP" --version 2>&1` in 3984*GNU*) 3985 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3986*) 3987 ac_count=0 3988 $as_echo_n 0123456789 >"conftest.in" 3989 while : 3990 do 3991 cat "conftest.in" "conftest.in" >"conftest.tmp" 3992 mv "conftest.tmp" "conftest.in" 3993 cp "conftest.in" "conftest.nl" 3994 $as_echo 'EGREP' >> "conftest.nl" 3995 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3996 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3997 ac_count=`expr $ac_count + 1` 3998 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3999 # Best one so far, save it but keep looking for a better one 4000 ac_cv_path_EGREP="$ac_path_EGREP" 4001 ac_path_EGREP_max=$ac_count 4002 fi 4003 # 10*(2^10) chars as input seems more than enough 4004 test $ac_count -gt 10 && break 4005 done 4006 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4007esac 4008 4009 $ac_path_EGREP_found && break 3 4010 done 4011 done 4012done 4013IFS=$as_save_IFS 4014 if test -z "$ac_cv_path_EGREP"; then 4015 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4016$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4017 { (exit 1); exit 1; }; } 4018 fi 4019else 4020 ac_cv_path_EGREP=$EGREP 4021fi 4022 4023 fi 4024fi 4025{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4026$as_echo "$ac_cv_path_EGREP" >&6; } 4027 EGREP="$ac_cv_path_EGREP" 4028 4029 4030{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4031$as_echo_n "checking for ANSI C header files... " >&6; } 4032if test "${ac_cv_header_stdc+set}" = set; then 4033 $as_echo_n "(cached) " >&6 4034else 4035 cat >conftest.$ac_ext <<_ACEOF 4036/* confdefs.h. */ 4037_ACEOF 4038cat confdefs.h >>conftest.$ac_ext 4039cat >>conftest.$ac_ext <<_ACEOF 4040/* end confdefs.h. */ 4041#include <stdlib.h> 4042#include <stdarg.h> 4043#include <string.h> 4044#include <float.h> 4045 4046int 4047main () 4048{ 4049 4050 ; 4051 return 0; 4052} 4053_ACEOF 4054rm -f conftest.$ac_objext 4055if { (ac_try="$ac_compile" 4056case "(($ac_try" in 4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4058 *) ac_try_echo=$ac_try;; 4059esac 4060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4061$as_echo "$ac_try_echo") >&5 4062 (eval "$ac_compile") 2>conftest.er1 4063 ac_status=$? 4064 grep -v '^ *+' conftest.er1 >conftest.err 4065 rm -f conftest.er1 4066 cat conftest.err >&5 4067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4068 (exit $ac_status); } && { 4069 test -z "$ac_c_werror_flag" || 4070 test ! -s conftest.err 4071 } && test -s conftest.$ac_objext; then 4072 ac_cv_header_stdc=yes 4073else 4074 $as_echo "$as_me: failed program was:" >&5 4075sed 's/^/| /' conftest.$ac_ext >&5 4076 4077 ac_cv_header_stdc=no 4078fi 4079 4080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4081 4082if test $ac_cv_header_stdc = yes; then 4083 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4084 cat >conftest.$ac_ext <<_ACEOF 4085/* confdefs.h. */ 4086_ACEOF 4087cat confdefs.h >>conftest.$ac_ext 4088cat >>conftest.$ac_ext <<_ACEOF 4089/* end confdefs.h. */ 4090#include <string.h> 4091 4092_ACEOF 4093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4094 $EGREP "memchr" >/dev/null 2>&1; then 4095 : 4096else 4097 ac_cv_header_stdc=no 4098fi 4099rm -f conftest* 4100 4101fi 4102 4103if test $ac_cv_header_stdc = yes; then 4104 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4105 cat >conftest.$ac_ext <<_ACEOF 4106/* confdefs.h. */ 4107_ACEOF 4108cat confdefs.h >>conftest.$ac_ext 4109cat >>conftest.$ac_ext <<_ACEOF 4110/* end confdefs.h. */ 4111#include <stdlib.h> 4112 4113_ACEOF 4114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4115 $EGREP "free" >/dev/null 2>&1; then 4116 : 4117else 4118 ac_cv_header_stdc=no 4119fi 4120rm -f conftest* 4121 4122fi 4123 4124if test $ac_cv_header_stdc = yes; then 4125 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4126 if test "$cross_compiling" = yes; then 4127 : 4128else 4129 cat >conftest.$ac_ext <<_ACEOF 4130/* confdefs.h. */ 4131_ACEOF 4132cat confdefs.h >>conftest.$ac_ext 4133cat >>conftest.$ac_ext <<_ACEOF 4134/* end confdefs.h. */ 4135#include <ctype.h> 4136#include <stdlib.h> 4137#if ((' ' & 0x0FF) == 0x020) 4138# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4139# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4140#else 4141# define ISLOWER(c) \ 4142 (('a' <= (c) && (c) <= 'i') \ 4143 || ('j' <= (c) && (c) <= 'r') \ 4144 || ('s' <= (c) && (c) <= 'z')) 4145# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4146#endif 4147 4148#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4149int 4150main () 4151{ 4152 int i; 4153 for (i = 0; i < 256; i++) 4154 if (XOR (islower (i), ISLOWER (i)) 4155 || toupper (i) != TOUPPER (i)) 4156 return 2; 4157 return 0; 4158} 4159_ACEOF 4160rm -f conftest$ac_exeext 4161if { (ac_try="$ac_link" 4162case "(($ac_try" in 4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4164 *) ac_try_echo=$ac_try;; 4165esac 4166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4167$as_echo "$ac_try_echo") >&5 4168 (eval "$ac_link") 2>&5 4169 ac_status=$? 4170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4172 { (case "(($ac_try" in 4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4174 *) ac_try_echo=$ac_try;; 4175esac 4176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4177$as_echo "$ac_try_echo") >&5 4178 (eval "$ac_try") 2>&5 4179 ac_status=$? 4180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4181 (exit $ac_status); }; }; then 4182 : 4183else 4184 $as_echo "$as_me: program exited with status $ac_status" >&5 4185$as_echo "$as_me: failed program was:" >&5 4186sed 's/^/| /' conftest.$ac_ext >&5 4187 4188( exit $ac_status ) 4189ac_cv_header_stdc=no 4190fi 4191rm -rf conftest.dSYM 4192rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4193fi 4194 4195 4196fi 4197fi 4198{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4199$as_echo "$ac_cv_header_stdc" >&6; } 4200if test $ac_cv_header_stdc = yes; then 4201 4202cat >>confdefs.h <<\_ACEOF 4203#define STDC_HEADERS 1 4204_ACEOF 4205 4206fi 4207 4208# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4219 inttypes.h stdint.h unistd.h 4220do 4221as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4222{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4223$as_echo_n "checking for $ac_header... " >&6; } 4224if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4225 $as_echo_n "(cached) " >&6 4226else 4227 cat >conftest.$ac_ext <<_ACEOF 4228/* confdefs.h. */ 4229_ACEOF 4230cat confdefs.h >>conftest.$ac_ext 4231cat >>conftest.$ac_ext <<_ACEOF 4232/* end confdefs.h. */ 4233$ac_includes_default 4234 4235#include <$ac_header> 4236_ACEOF 4237rm -f conftest.$ac_objext 4238if { (ac_try="$ac_compile" 4239case "(($ac_try" in 4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4241 *) ac_try_echo=$ac_try;; 4242esac 4243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4244$as_echo "$ac_try_echo") >&5 4245 (eval "$ac_compile") 2>conftest.er1 4246 ac_status=$? 4247 grep -v '^ *+' conftest.er1 >conftest.err 4248 rm -f conftest.er1 4249 cat conftest.err >&5 4250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4251 (exit $ac_status); } && { 4252 test -z "$ac_c_werror_flag" || 4253 test ! -s conftest.err 4254 } && test -s conftest.$ac_objext; then 4255 eval "$as_ac_Header=yes" 4256else 4257 $as_echo "$as_me: failed program was:" >&5 4258sed 's/^/| /' conftest.$ac_ext >&5 4259 4260 eval "$as_ac_Header=no" 4261fi 4262 4263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4264fi 4265ac_res=`eval 'as_val=${'$as_ac_Header'} 4266 $as_echo "$as_val"'` 4267 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4268$as_echo "$ac_res" >&6; } 4269if test `eval 'as_val=${'$as_ac_Header'} 4270 $as_echo "$as_val"'` = yes; then 4271 cat >>confdefs.h <<_ACEOF 4272#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4273_ACEOF 4274 4275fi 4276 4277done 4278 4279 4280 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 4281$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4282if test "${ac_cv_prog_cc_c99+set}" = set; then 4283 $as_echo_n "(cached) " >&6 4284else 4285 ac_cv_prog_cc_c99=no 4286ac_save_CC=$CC 4287cat >conftest.$ac_ext <<_ACEOF 4288/* confdefs.h. */ 4289_ACEOF 4290cat confdefs.h >>conftest.$ac_ext 4291cat >>conftest.$ac_ext <<_ACEOF 4292/* end confdefs.h. */ 4293#include <stdarg.h> 4294#include <stdbool.h> 4295#include <stdlib.h> 4296#include <wchar.h> 4297#include <stdio.h> 4298 4299// Check varargs macros. These examples are taken from C99 6.10.3.5. 4300#define debug(...) fprintf (stderr, __VA_ARGS__) 4301#define showlist(...) puts (#__VA_ARGS__) 4302#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4303static void 4304test_varargs_macros (void) 4305{ 4306 int x = 1234; 4307 int y = 5678; 4308 debug ("Flag"); 4309 debug ("X = %d\n", x); 4310 showlist (The first, second, and third items.); 4311 report (x>y, "x is %d but y is %d", x, y); 4312} 4313 4314// Check long long types. 4315#define BIG64 18446744073709551615ull 4316#define BIG32 4294967295ul 4317#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4318#if !BIG_OK 4319 your preprocessor is broken; 4320#endif 4321#if BIG_OK 4322#else 4323 your preprocessor is broken; 4324#endif 4325static long long int bignum = -9223372036854775807LL; 4326static unsigned long long int ubignum = BIG64; 4327 4328struct incomplete_array 4329{ 4330 int datasize; 4331 double data[]; 4332}; 4333 4334struct named_init { 4335 int number; 4336 const wchar_t *name; 4337 double average; 4338}; 4339 4340typedef const char *ccp; 4341 4342static inline int 4343test_restrict (ccp restrict text) 4344{ 4345 // See if C++-style comments work. 4346 // Iterate through items via the restricted pointer. 4347 // Also check for declarations in for loops. 4348 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4349 continue; 4350 return 0; 4351} 4352 4353// Check varargs and va_copy. 4354static void 4355test_varargs (const char *format, ...) 4356{ 4357 va_list args; 4358 va_start (args, format); 4359 va_list args_copy; 4360 va_copy (args_copy, args); 4361 4362 const char *str; 4363 int number; 4364 float fnumber; 4365 4366 while (*format) 4367 { 4368 switch (*format++) 4369 { 4370 case 's': // string 4371 str = va_arg (args_copy, const char *); 4372 break; 4373 case 'd': // int 4374 number = va_arg (args_copy, int); 4375 break; 4376 case 'f': // float 4377 fnumber = va_arg (args_copy, double); 4378 break; 4379 default: 4380 break; 4381 } 4382 } 4383 va_end (args_copy); 4384 va_end (args); 4385} 4386 4387int 4388main () 4389{ 4390 4391 // Check bool. 4392 _Bool success = false; 4393 4394 // Check restrict. 4395 if (test_restrict ("String literal") == 0) 4396 success = true; 4397 char *restrict newvar = "Another string"; 4398 4399 // Check varargs. 4400 test_varargs ("s, d' f .", "string", 65, 34.234); 4401 test_varargs_macros (); 4402 4403 // Check flexible array members. 4404 struct incomplete_array *ia = 4405 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4406 ia->datasize = 10; 4407 for (int i = 0; i < ia->datasize; ++i) 4408 ia->data[i] = i * 1.234; 4409 4410 // Check named initializers. 4411 struct named_init ni = { 4412 .number = 34, 4413 .name = L"Test wide string", 4414 .average = 543.34343, 4415 }; 4416 4417 ni.number = 58; 4418 4419 int dynamic_array[ni.number]; 4420 dynamic_array[ni.number - 1] = 543; 4421 4422 // work around unused variable warnings 4423 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4424 || dynamic_array[ni.number - 1] != 543); 4425 4426 ; 4427 return 0; 4428} 4429_ACEOF 4430for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4431do 4432 CC="$ac_save_CC $ac_arg" 4433 rm -f conftest.$ac_objext 4434if { (ac_try="$ac_compile" 4435case "(($ac_try" in 4436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4437 *) ac_try_echo=$ac_try;; 4438esac 4439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4440$as_echo "$ac_try_echo") >&5 4441 (eval "$ac_compile") 2>conftest.er1 4442 ac_status=$? 4443 grep -v '^ *+' conftest.er1 >conftest.err 4444 rm -f conftest.er1 4445 cat conftest.err >&5 4446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4447 (exit $ac_status); } && { 4448 test -z "$ac_c_werror_flag" || 4449 test ! -s conftest.err 4450 } && test -s conftest.$ac_objext; then 4451 ac_cv_prog_cc_c99=$ac_arg 4452else 4453 $as_echo "$as_me: failed program was:" >&5 4454sed 's/^/| /' conftest.$ac_ext >&5 4455 4456 4457fi 4458 4459rm -f core conftest.err conftest.$ac_objext 4460 test "x$ac_cv_prog_cc_c99" != "xno" && break 4461done 4462rm -f conftest.$ac_ext 4463CC=$ac_save_CC 4464 4465fi 4466# AC_CACHE_VAL 4467case "x$ac_cv_prog_cc_c99" in 4468 x) 4469 { $as_echo "$as_me:$LINENO: result: none needed" >&5 4470$as_echo "none needed" >&6; } ;; 4471 xno) 4472 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 4473$as_echo "unsupported" >&6; } ;; 4474 *) 4475 CC="$CC $ac_cv_prog_cc_c99" 4476 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 4477$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4478esac 4479 4480 4481 4482# Make sure we can run config.sub. 4483$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4484 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 4485$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 4486 { (exit 1); exit 1; }; } 4487 4488{ $as_echo "$as_me:$LINENO: checking build system type" >&5 4489$as_echo_n "checking build system type... " >&6; } 4490if test "${ac_cv_build+set}" = set; then 4491 $as_echo_n "(cached) " >&6 4492else 4493 ac_build_alias=$build_alias 4494test "x$ac_build_alias" = x && 4495 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4496test "x$ac_build_alias" = x && 4497 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 4498$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 4499 { (exit 1); exit 1; }; } 4500ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4501 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 4502$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 4503 { (exit 1); exit 1; }; } 4504 4505fi 4506{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 4507$as_echo "$ac_cv_build" >&6; } 4508case $ac_cv_build in 4509*-*-*) ;; 4510*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 4511$as_echo "$as_me: error: invalid value of canonical build" >&2;} 4512 { (exit 1); exit 1; }; };; 4513esac 4514build=$ac_cv_build 4515ac_save_IFS=$IFS; IFS='-' 4516set x $ac_cv_build 4517shift 4518build_cpu=$1 4519build_vendor=$2 4520shift; shift 4521# Remember, the first character of IFS is used to create $*, 4522# except with old shells: 4523build_os=$* 4524IFS=$ac_save_IFS 4525case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4526 4527 4528{ $as_echo "$as_me:$LINENO: checking host system type" >&5 4529$as_echo_n "checking host system type... " >&6; } 4530if test "${ac_cv_host+set}" = set; then 4531 $as_echo_n "(cached) " >&6 4532else 4533 if test "x$host_alias" = x; then 4534 ac_cv_host=$ac_cv_build 4535else 4536 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4537 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 4538$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 4539 { (exit 1); exit 1; }; } 4540fi 4541 4542fi 4543{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 4544$as_echo "$ac_cv_host" >&6; } 4545case $ac_cv_host in 4546*-*-*) ;; 4547*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 4548$as_echo "$as_me: error: invalid value of canonical host" >&2;} 4549 { (exit 1); exit 1; }; };; 4550esac 4551host=$ac_cv_host 4552ac_save_IFS=$IFS; IFS='-' 4553set x $ac_cv_host 4554shift 4555host_cpu=$1 4556host_vendor=$2 4557shift; shift 4558# Remember, the first character of IFS is used to create $*, 4559# except with old shells: 4560host_os=$* 4561IFS=$ac_save_IFS 4562case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4563 4564 4565 4566 4567 4568if test "x$GCC" = xyes ; then 4569 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4570-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4571-Wbad-function-cast" 4572 case `$CC -dumpversion` in 4573 3.4.* | 4.*) 4574 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4575 ;; 4576 esac 4577else 4578 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 4579$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 4580if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 4581 $as_echo_n "(cached) " >&6 4582else 4583 cat >conftest.$ac_ext <<_ACEOF 4584/* confdefs.h. */ 4585_ACEOF 4586cat confdefs.h >>conftest.$ac_ext 4587cat >>conftest.$ac_ext <<_ACEOF 4588/* end confdefs.h. */ 4589$ac_includes_default 4590int 4591main () 4592{ 4593#ifndef __SUNPRO_C 4594 (void) __SUNPRO_C; 4595#endif 4596 4597 ; 4598 return 0; 4599} 4600_ACEOF 4601rm -f conftest.$ac_objext 4602if { (ac_try="$ac_compile" 4603case "(($ac_try" in 4604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4605 *) ac_try_echo=$ac_try;; 4606esac 4607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4608$as_echo "$ac_try_echo") >&5 4609 (eval "$ac_compile") 2>conftest.er1 4610 ac_status=$? 4611 grep -v '^ *+' conftest.er1 >conftest.err 4612 rm -f conftest.er1 4613 cat conftest.err >&5 4614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4615 (exit $ac_status); } && { 4616 test -z "$ac_c_werror_flag" || 4617 test ! -s conftest.err 4618 } && test -s conftest.$ac_objext; then 4619 ac_cv_have_decl___SUNPRO_C=yes 4620else 4621 $as_echo "$as_me: failed program was:" >&5 4622sed 's/^/| /' conftest.$ac_ext >&5 4623 4624 ac_cv_have_decl___SUNPRO_C=no 4625fi 4626 4627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4628fi 4629{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 4630$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 4631if test $ac_cv_have_decl___SUNPRO_C = yes; then 4632 SUNCC="yes" 4633else 4634 SUNCC="no" 4635fi 4636 4637 if test "x$SUNCC" = "xyes"; then 4638 CWARNFLAGS="-v" 4639 fi 4640fi 4641 4642 4643 4644 4645 4646 4647 4648 4649# Check whether --enable-strict-compilation was given. 4650if test "${enable_strict_compilation+set}" = set; then 4651 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4652else 4653 STRICT_COMPILE=no 4654fi 4655 4656if test "x$STRICT_COMPILE" = "xyes"; then 4657 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 4658$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 4659if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 4660 $as_echo_n "(cached) " >&6 4661else 4662 cat >conftest.$ac_ext <<_ACEOF 4663/* confdefs.h. */ 4664_ACEOF 4665cat confdefs.h >>conftest.$ac_ext 4666cat >>conftest.$ac_ext <<_ACEOF 4667/* end confdefs.h. */ 4668$ac_includes_default 4669int 4670main () 4671{ 4672#ifndef __SUNPRO_C 4673 (void) __SUNPRO_C; 4674#endif 4675 4676 ; 4677 return 0; 4678} 4679_ACEOF 4680rm -f conftest.$ac_objext 4681if { (ac_try="$ac_compile" 4682case "(($ac_try" in 4683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4684 *) ac_try_echo=$ac_try;; 4685esac 4686eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4687$as_echo "$ac_try_echo") >&5 4688 (eval "$ac_compile") 2>conftest.er1 4689 ac_status=$? 4690 grep -v '^ *+' conftest.er1 >conftest.err 4691 rm -f conftest.er1 4692 cat conftest.err >&5 4693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4694 (exit $ac_status); } && { 4695 test -z "$ac_c_werror_flag" || 4696 test ! -s conftest.err 4697 } && test -s conftest.$ac_objext; then 4698 ac_cv_have_decl___SUNPRO_C=yes 4699else 4700 $as_echo "$as_me: failed program was:" >&5 4701sed 's/^/| /' conftest.$ac_ext >&5 4702 4703 ac_cv_have_decl___SUNPRO_C=no 4704fi 4705 4706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4707fi 4708{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 4709$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 4710if test $ac_cv_have_decl___SUNPRO_C = yes; then 4711 SUNCC="yes" 4712else 4713 SUNCC="no" 4714fi 4715 4716 { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5 4717$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; } 4718if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then 4719 $as_echo_n "(cached) " >&6 4720else 4721 cat >conftest.$ac_ext <<_ACEOF 4722/* confdefs.h. */ 4723_ACEOF 4724cat confdefs.h >>conftest.$ac_ext 4725cat >>conftest.$ac_ext <<_ACEOF 4726/* end confdefs.h. */ 4727$ac_includes_default 4728int 4729main () 4730{ 4731#ifndef __INTEL_COMPILER 4732 (void) __INTEL_COMPILER; 4733#endif 4734 4735 ; 4736 return 0; 4737} 4738_ACEOF 4739rm -f conftest.$ac_objext 4740if { (ac_try="$ac_compile" 4741case "(($ac_try" in 4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4743 *) ac_try_echo=$ac_try;; 4744esac 4745eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4746$as_echo "$ac_try_echo") >&5 4747 (eval "$ac_compile") 2>conftest.er1 4748 ac_status=$? 4749 grep -v '^ *+' conftest.er1 >conftest.err 4750 rm -f conftest.er1 4751 cat conftest.err >&5 4752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4753 (exit $ac_status); } && { 4754 test -z "$ac_c_werror_flag" || 4755 test ! -s conftest.err 4756 } && test -s conftest.$ac_objext; then 4757 ac_cv_have_decl___INTEL_COMPILER=yes 4758else 4759 $as_echo "$as_me: failed program was:" >&5 4760sed 's/^/| /' conftest.$ac_ext >&5 4761 4762 ac_cv_have_decl___INTEL_COMPILER=no 4763fi 4764 4765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4766fi 4767{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5 4768$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; } 4769if test $ac_cv_have_decl___INTEL_COMPILER = yes; then 4770 INTELCC="yes" 4771else 4772 INTELCC="no" 4773fi 4774 4775 if test "x$GCC" = xyes ; then 4776 STRICT_CFLAGS="-pedantic -Werror" 4777 elif test "x$SUNCC" = "xyes"; then 4778 STRICT_CFLAGS="-errwarn" 4779 elif test "x$INTELCC" = "xyes"; then 4780 STRICT_CFLAGS="-Werror" 4781 fi 4782fi 4783CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4784 4785 4786 4787 4788# Check whether --with-release-version was given. 4789if test "${with_release_version+set}" = set; then 4790 withval=$with_release_version; RELEASE_VERSION="$withval" 4791else 4792 RELEASE_VERSION="" 4793fi 4794 4795 if test "x$RELEASE_VERSION" != "x"; then 4796 PACKAGE="$PACKAGE-$RELEASE_VERSION" 4797 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 4798 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 4799$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 4800 fi 4801 4802cat >>confdefs.h <<_ACEOF 4803#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4804_ACEOF 4805 4806 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4807 if test "x$PVM" = "x"; then 4808 PVM="0" 4809 fi 4810 4811cat >>confdefs.h <<_ACEOF 4812#define PACKAGE_VERSION_MINOR $PVM 4813_ACEOF 4814 4815 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4816 if test "x$PVP" = "x"; then 4817 PVP="0" 4818 fi 4819 4820cat >>confdefs.h <<_ACEOF 4821#define PACKAGE_VERSION_PATCHLEVEL $PVP 4822_ACEOF 4823 4824 4825 4826CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 4827mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 4828echo 'git directory not found: installing possibly empty changelog.' >&2)" 4829 4830distcleancheck_listfiles='find . -type f ! -name ChangeLog -print' 4831 4832 4833 4834 4835 4836if test x$APP_MAN_SUFFIX = x ; then 4837 APP_MAN_SUFFIX=1 4838fi 4839if test x$APP_MAN_DIR = x ; then 4840 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4841fi 4842 4843if test x$LIB_MAN_SUFFIX = x ; then 4844 LIB_MAN_SUFFIX=3 4845fi 4846if test x$LIB_MAN_DIR = x ; then 4847 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4848fi 4849 4850if test x$FILE_MAN_SUFFIX = x ; then 4851 case $host_os in 4852 solaris*) FILE_MAN_SUFFIX=4 ;; 4853 *) FILE_MAN_SUFFIX=5 ;; 4854 esac 4855fi 4856if test x$FILE_MAN_DIR = x ; then 4857 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4858fi 4859 4860if test x$MISC_MAN_SUFFIX = x ; then 4861 case $host_os in 4862 solaris*) MISC_MAN_SUFFIX=5 ;; 4863 *) MISC_MAN_SUFFIX=7 ;; 4864 esac 4865fi 4866if test x$MISC_MAN_DIR = x ; then 4867 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4868fi 4869 4870if test x$DRIVER_MAN_SUFFIX = x ; then 4871 case $host_os in 4872 solaris*) DRIVER_MAN_SUFFIX=7 ;; 4873 *) DRIVER_MAN_SUFFIX=4 ;; 4874 esac 4875fi 4876if test x$DRIVER_MAN_DIR = x ; then 4877 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4878fi 4879 4880if test x$ADMIN_MAN_SUFFIX = x ; then 4881 case $host_os in 4882 solaris*) ADMIN_MAN_SUFFIX=1m ;; 4883 *) ADMIN_MAN_SUFFIX=8 ;; 4884 esac 4885fi 4886if test x$ADMIN_MAN_DIR = x ; then 4887 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4888fi 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906ac_config_headers="$ac_config_headers config.h" 4907 4908 4909# Checks for programs. 4910# Check whether --enable-static was given. 4911if test "${enable_static+set}" = set; then 4912 enableval=$enable_static; p=${PACKAGE-default} 4913 case $enableval in 4914 yes) enable_static=yes ;; 4915 no) enable_static=no ;; 4916 *) 4917 enable_static=no 4918 # Look at the argument we got. We use all the common list separators. 4919 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4920 for pkg in $enableval; do 4921 IFS="$lt_save_ifs" 4922 if test "X$pkg" = "X$p"; then 4923 enable_static=yes 4924 fi 4925 done 4926 IFS="$lt_save_ifs" 4927 ;; 4928 esac 4929else 4930 enable_static=no 4931fi 4932 4933 4934 4935# Check whether --enable-shared was given. 4936if test "${enable_shared+set}" = set; then 4937 enableval=$enable_shared; p=${PACKAGE-default} 4938 case $enableval in 4939 yes) enable_shared=yes ;; 4940 no) enable_shared=no ;; 4941 *) 4942 enable_shared=no 4943 # Look at the argument we got. We use all the common list separators. 4944 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4945 for pkg in $enableval; do 4946 IFS="$lt_save_ifs" 4947 if test "X$pkg" = "X$p"; then 4948 enable_shared=yes 4949 fi 4950 done 4951 IFS="$lt_save_ifs" 4952 ;; 4953 esac 4954else 4955 enable_shared=yes 4956fi 4957 4958 4959# Check whether --enable-fast-install was given. 4960if test "${enable_fast_install+set}" = set; then 4961 enableval=$enable_fast_install; p=${PACKAGE-default} 4962 case $enableval in 4963 yes) enable_fast_install=yes ;; 4964 no) enable_fast_install=no ;; 4965 *) 4966 enable_fast_install=no 4967 # Look at the argument we got. We use all the common list separators. 4968 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4969 for pkg in $enableval; do 4970 IFS="$lt_save_ifs" 4971 if test "X$pkg" = "X$p"; then 4972 enable_fast_install=yes 4973 fi 4974 done 4975 IFS="$lt_save_ifs" 4976 ;; 4977 esac 4978else 4979 enable_fast_install=yes 4980fi 4981 4982 4983{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4984$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4985if test "${lt_cv_path_SED+set}" = set; then 4986 $as_echo_n "(cached) " >&6 4987else 4988 # Loop through the user's path and test for sed and gsed. 4989# Then use that list of sed's as ones to test for truncation. 4990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4991for as_dir in $PATH 4992do 4993 IFS=$as_save_IFS 4994 test -z "$as_dir" && as_dir=. 4995 for lt_ac_prog in sed gsed; do 4996 for ac_exec_ext in '' $ac_executable_extensions; do 4997 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 4998 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4999 fi 5000 done 5001 done 5002done 5003IFS=$as_save_IFS 5004lt_ac_max=0 5005lt_ac_count=0 5006# Add /usr/xpg4/bin/sed as it is typically found on Solaris 5007# along with /bin/sed that truncates output. 5008for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 5009 test ! -f $lt_ac_sed && continue 5010 cat /dev/null > conftest.in 5011 lt_ac_count=0 5012 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 5013 # Check for GNU sed and select it if it is found. 5014 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 5015 lt_cv_path_SED=$lt_ac_sed 5016 break 5017 fi 5018 while true; do 5019 cat conftest.in conftest.in >conftest.tmp 5020 mv conftest.tmp conftest.in 5021 cp conftest.in conftest.nl 5022 echo >>conftest.nl 5023 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 5024 cmp -s conftest.out conftest.nl || break 5025 # 10000 chars as input seems more than enough 5026 test $lt_ac_count -gt 10 && break 5027 lt_ac_count=`expr $lt_ac_count + 1` 5028 if test $lt_ac_count -gt $lt_ac_max; then 5029 lt_ac_max=$lt_ac_count 5030 lt_cv_path_SED=$lt_ac_sed 5031 fi 5032 done 5033done 5034 5035fi 5036 5037SED=$lt_cv_path_SED 5038 5039{ $as_echo "$as_me:$LINENO: result: $SED" >&5 5040$as_echo "$SED" >&6; } 5041 5042 5043# Check whether --with-gnu-ld was given. 5044if test "${with_gnu_ld+set}" = set; then 5045 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5046else 5047 with_gnu_ld=no 5048fi 5049 5050ac_prog=ld 5051if test "$GCC" = yes; then 5052 # Check if gcc -print-prog-name=ld gives a path. 5053 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 5054$as_echo_n "checking for ld used by $CC... " >&6; } 5055 case $host in 5056 *-*-mingw*) 5057 # gcc leaves a trailing carriage return which upsets mingw 5058 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5059 *) 5060 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5061 esac 5062 case $ac_prog in 5063 # Accept absolute paths. 5064 [\\/]* | ?:[\\/]*) 5065 re_direlt='/[^/][^/]*/\.\./' 5066 # Canonicalize the pathname of ld 5067 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 5068 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 5069 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 5070 done 5071 test -z "$LD" && LD="$ac_prog" 5072 ;; 5073 "") 5074 # If it fails, then pretend we aren't using GCC. 5075 ac_prog=ld 5076 ;; 5077 *) 5078 # If it is relative, then search for the first ld in PATH. 5079 with_gnu_ld=unknown 5080 ;; 5081 esac 5082elif test "$with_gnu_ld" = yes; then 5083 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 5084$as_echo_n "checking for GNU ld... " >&6; } 5085else 5086 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 5087$as_echo_n "checking for non-GNU ld... " >&6; } 5088fi 5089if test "${lt_cv_path_LD+set}" = set; then 5090 $as_echo_n "(cached) " >&6 5091else 5092 if test -z "$LD"; then 5093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5094 for ac_dir in $PATH; do 5095 IFS="$lt_save_ifs" 5096 test -z "$ac_dir" && ac_dir=. 5097 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5098 lt_cv_path_LD="$ac_dir/$ac_prog" 5099 # Check to see if the program is GNU ld. I'd rather use --version, 5100 # but apparently some variants of GNU ld only accept -v. 5101 # Break only if it was the GNU/non-GNU ld that we prefer. 5102 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5103 *GNU* | *'with BFD'*) 5104 test "$with_gnu_ld" != no && break 5105 ;; 5106 *) 5107 test "$with_gnu_ld" != yes && break 5108 ;; 5109 esac 5110 fi 5111 done 5112 IFS="$lt_save_ifs" 5113else 5114 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5115fi 5116fi 5117 5118LD="$lt_cv_path_LD" 5119if test -n "$LD"; then 5120 { $as_echo "$as_me:$LINENO: result: $LD" >&5 5121$as_echo "$LD" >&6; } 5122else 5123 { $as_echo "$as_me:$LINENO: result: no" >&5 5124$as_echo "no" >&6; } 5125fi 5126test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 5127$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 5128 { (exit 1); exit 1; }; } 5129{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 5130$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5131if test "${lt_cv_prog_gnu_ld+set}" = set; then 5132 $as_echo_n "(cached) " >&6 5133else 5134 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5135case `$LD -v 2>&1 </dev/null` in 5136*GNU* | *'with BFD'*) 5137 lt_cv_prog_gnu_ld=yes 5138 ;; 5139*) 5140 lt_cv_prog_gnu_ld=no 5141 ;; 5142esac 5143fi 5144{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 5145$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5146with_gnu_ld=$lt_cv_prog_gnu_ld 5147 5148 5149{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5150$as_echo_n "checking for $LD option to reload object files... " >&6; } 5151if test "${lt_cv_ld_reload_flag+set}" = set; then 5152 $as_echo_n "(cached) " >&6 5153else 5154 lt_cv_ld_reload_flag='-r' 5155fi 5156{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5157$as_echo "$lt_cv_ld_reload_flag" >&6; } 5158reload_flag=$lt_cv_ld_reload_flag 5159case $reload_flag in 5160"" | " "*) ;; 5161*) reload_flag=" $reload_flag" ;; 5162esac 5163reload_cmds='$LD$reload_flag -o $output$reload_objs' 5164case $host_os in 5165 darwin*) 5166 if test "$GCC" = yes; then 5167 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5168 else 5169 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5170 fi 5171 ;; 5172esac 5173 5174{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 5175$as_echo_n "checking for BSD-compatible nm... " >&6; } 5176if test "${lt_cv_path_NM+set}" = set; then 5177 $as_echo_n "(cached) " >&6 5178else 5179 if test -n "$NM"; then 5180 # Let the user override the test. 5181 lt_cv_path_NM="$NM" 5182else 5183 lt_nm_to_check="${ac_tool_prefix}nm" 5184 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5185 lt_nm_to_check="$lt_nm_to_check nm" 5186 fi 5187 for lt_tmp_nm in $lt_nm_to_check; do 5188 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5189 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5190 IFS="$lt_save_ifs" 5191 test -z "$ac_dir" && ac_dir=. 5192 tmp_nm="$ac_dir/$lt_tmp_nm" 5193 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5194 # Check to see if the nm accepts a BSD-compat flag. 5195 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5196 # nm: unknown option "B" ignored 5197 # Tru64's nm complains that /dev/null is an invalid object file 5198 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5199 */dev/null* | *'Invalid file or object type'*) 5200 lt_cv_path_NM="$tmp_nm -B" 5201 break 5202 ;; 5203 *) 5204 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5205 */dev/null*) 5206 lt_cv_path_NM="$tmp_nm -p" 5207 break 5208 ;; 5209 *) 5210 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5211 continue # so that we can try to find one that supports BSD flags 5212 ;; 5213 esac 5214 ;; 5215 esac 5216 fi 5217 done 5218 IFS="$lt_save_ifs" 5219 done 5220 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 5221fi 5222fi 5223{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5224$as_echo "$lt_cv_path_NM" >&6; } 5225NM="$lt_cv_path_NM" 5226 5227{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 5228$as_echo_n "checking whether ln -s works... " >&6; } 5229LN_S=$as_ln_s 5230if test "$LN_S" = "ln -s"; then 5231 { $as_echo "$as_me:$LINENO: result: yes" >&5 5232$as_echo "yes" >&6; } 5233else 5234 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5235$as_echo "no, using $LN_S" >&6; } 5236fi 5237 5238{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 5239$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5240if test "${lt_cv_deplibs_check_method+set}" = set; then 5241 $as_echo_n "(cached) " >&6 5242else 5243 lt_cv_file_magic_cmd='$MAGIC_CMD' 5244lt_cv_file_magic_test_file= 5245lt_cv_deplibs_check_method='unknown' 5246# Need to set the preceding variable on all platforms that support 5247# interlibrary dependencies. 5248# 'none' -- dependencies not supported. 5249# `unknown' -- same as none, but documents that we really don't know. 5250# 'pass_all' -- all dependencies passed with no checks. 5251# 'test_compile' -- check by making test program. 5252# 'file_magic [[regex]]' -- check by looking for files in library path 5253# which responds to the $file_magic_cmd with a given extended regex. 5254# If you have `file' or equivalent on your system and you're not sure 5255# whether `pass_all' will *always* work, you probably want this one. 5256 5257case $host_os in 5258aix[4-9]*) 5259 lt_cv_deplibs_check_method=pass_all 5260 ;; 5261 5262beos*) 5263 lt_cv_deplibs_check_method=pass_all 5264 ;; 5265 5266bsdi[45]*) 5267 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5268 lt_cv_file_magic_cmd='/usr/bin/file -L' 5269 lt_cv_file_magic_test_file=/shlib/libc.so 5270 ;; 5271 5272cygwin*) 5273 # func_win32_libid is a shell function defined in ltmain.sh 5274 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5275 lt_cv_file_magic_cmd='func_win32_libid' 5276 ;; 5277 5278mingw* | pw32*) 5279 # Base MSYS/MinGW do not provide the 'file' command needed by 5280 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5281 # unless we find 'file', for example because we are cross-compiling. 5282 if ( file / ) >/dev/null 2>&1; then 5283 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5284 lt_cv_file_magic_cmd='func_win32_libid' 5285 else 5286 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5287 lt_cv_file_magic_cmd='$OBJDUMP -f' 5288 fi 5289 ;; 5290 5291darwin* | rhapsody*) 5292 lt_cv_deplibs_check_method=pass_all 5293 ;; 5294 5295freebsd* | dragonfly*) 5296 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5297 case $host_cpu in 5298 i*86 ) 5299 # Not sure whether the presence of OpenBSD here was a mistake. 5300 # Let's accept both of them until this is cleared up. 5301 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5302 lt_cv_file_magic_cmd=/usr/bin/file 5303 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5304 ;; 5305 esac 5306 else 5307 lt_cv_deplibs_check_method=pass_all 5308 fi 5309 ;; 5310 5311gnu*) 5312 lt_cv_deplibs_check_method=pass_all 5313 ;; 5314 5315hpux10.20* | hpux11*) 5316 lt_cv_file_magic_cmd=/usr/bin/file 5317 case $host_cpu in 5318 ia64*) 5319 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5320 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5321 ;; 5322 hppa*64*) 5323 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]' 5324 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5325 ;; 5326 *) 5327 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5328 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5329 ;; 5330 esac 5331 ;; 5332 5333interix[3-9]*) 5334 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5336 ;; 5337 5338irix5* | irix6* | nonstopux*) 5339 case $LD in 5340 *-32|*"-32 ") libmagic=32-bit;; 5341 *-n32|*"-n32 ") libmagic=N32;; 5342 *-64|*"-64 ") libmagic=64-bit;; 5343 *) libmagic=never-match;; 5344 esac 5345 lt_cv_deplibs_check_method=pass_all 5346 ;; 5347 5348# This must be Linux ELF. 5349linux* | k*bsd*-gnu) 5350 lt_cv_deplibs_check_method=pass_all 5351 ;; 5352 5353netbsd*) 5354 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5356 else 5357 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5358 fi 5359 ;; 5360 5361newos6*) 5362 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5363 lt_cv_file_magic_cmd=/usr/bin/file 5364 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5365 ;; 5366 5367nto-qnx*) 5368 lt_cv_deplibs_check_method=unknown 5369 ;; 5370 5371openbsd*) 5372 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5374 else 5375 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5376 fi 5377 ;; 5378 5379osf3* | osf4* | osf5*) 5380 lt_cv_deplibs_check_method=pass_all 5381 ;; 5382 5383rdos*) 5384 lt_cv_deplibs_check_method=pass_all 5385 ;; 5386 5387solaris*) 5388 lt_cv_deplibs_check_method=pass_all 5389 ;; 5390 5391sysv4 | sysv4.3*) 5392 case $host_vendor in 5393 motorola) 5394 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]' 5395 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5396 ;; 5397 ncr) 5398 lt_cv_deplibs_check_method=pass_all 5399 ;; 5400 sequent) 5401 lt_cv_file_magic_cmd='/bin/file' 5402 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5403 ;; 5404 sni) 5405 lt_cv_file_magic_cmd='/bin/file' 5406 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5407 lt_cv_file_magic_test_file=/lib/libc.so 5408 ;; 5409 siemens) 5410 lt_cv_deplibs_check_method=pass_all 5411 ;; 5412 pc) 5413 lt_cv_deplibs_check_method=pass_all 5414 ;; 5415 esac 5416 ;; 5417 5418sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5419 lt_cv_deplibs_check_method=pass_all 5420 ;; 5421esac 5422 5423fi 5424{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5425$as_echo "$lt_cv_deplibs_check_method" >&6; } 5426file_magic_cmd=$lt_cv_file_magic_cmd 5427deplibs_check_method=$lt_cv_deplibs_check_method 5428test -z "$deplibs_check_method" && deplibs_check_method=unknown 5429 5430 5431 5432 5433# If no C compiler was specified, use CC. 5434LTCC=${LTCC-"$CC"} 5435 5436# If no C compiler flags were specified, use CFLAGS. 5437LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5438 5439# Allow CC to be a program name with arguments. 5440compiler=$CC 5441 5442# Check whether --enable-libtool-lock was given. 5443if test "${enable_libtool_lock+set}" = set; then 5444 enableval=$enable_libtool_lock; 5445fi 5446 5447test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5448 5449# Some flags need to be propagated to the compiler or linker for good 5450# libtool support. 5451case $host in 5452ia64-*-hpux*) 5453 # Find out which ABI we are using. 5454 echo 'int i;' > conftest.$ac_ext 5455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5456 (eval $ac_compile) 2>&5 5457 ac_status=$? 5458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5459 (exit $ac_status); }; then 5460 case `/usr/bin/file conftest.$ac_objext` in 5461 *ELF-32*) 5462 HPUX_IA64_MODE="32" 5463 ;; 5464 *ELF-64*) 5465 HPUX_IA64_MODE="64" 5466 ;; 5467 esac 5468 fi 5469 rm -rf conftest* 5470 ;; 5471*-*-irix6*) 5472 # Find out which ABI we are using. 5473 echo '#line 5473 "configure"' > conftest.$ac_ext 5474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5475 (eval $ac_compile) 2>&5 5476 ac_status=$? 5477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5478 (exit $ac_status); }; then 5479 if test "$lt_cv_prog_gnu_ld" = yes; then 5480 case `/usr/bin/file conftest.$ac_objext` in 5481 *32-bit*) 5482 LD="${LD-ld} -melf32bsmip" 5483 ;; 5484 *N32*) 5485 LD="${LD-ld} -melf32bmipn32" 5486 ;; 5487 *64-bit*) 5488 LD="${LD-ld} -melf64bmip" 5489 ;; 5490 esac 5491 else 5492 case `/usr/bin/file conftest.$ac_objext` in 5493 *32-bit*) 5494 LD="${LD-ld} -32" 5495 ;; 5496 *N32*) 5497 LD="${LD-ld} -n32" 5498 ;; 5499 *64-bit*) 5500 LD="${LD-ld} -64" 5501 ;; 5502 esac 5503 fi 5504 fi 5505 rm -rf conftest* 5506 ;; 5507 5508x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5509s390*-*linux*|sparc*-*linux*) 5510 # Find out which ABI we are using. 5511 echo 'int i;' > conftest.$ac_ext 5512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5513 (eval $ac_compile) 2>&5 5514 ac_status=$? 5515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5516 (exit $ac_status); }; then 5517 case `/usr/bin/file conftest.o` in 5518 *32-bit*) 5519 case $host in 5520 x86_64-*kfreebsd*-gnu) 5521 LD="${LD-ld} -m elf_i386_fbsd" 5522 ;; 5523 x86_64-*linux*) 5524 LD="${LD-ld} -m elf_i386" 5525 ;; 5526 ppc64-*linux*|powerpc64-*linux*) 5527 LD="${LD-ld} -m elf32ppclinux" 5528 ;; 5529 s390x-*linux*) 5530 LD="${LD-ld} -m elf_s390" 5531 ;; 5532 sparc64-*linux*) 5533 LD="${LD-ld} -m elf32_sparc" 5534 ;; 5535 esac 5536 ;; 5537 *64-bit*) 5538 case $host in 5539 x86_64-*kfreebsd*-gnu) 5540 LD="${LD-ld} -m elf_x86_64_fbsd" 5541 ;; 5542 x86_64-*linux*) 5543 LD="${LD-ld} -m elf_x86_64" 5544 ;; 5545 ppc*-*linux*|powerpc*-*linux*) 5546 LD="${LD-ld} -m elf64ppc" 5547 ;; 5548 s390*-*linux*) 5549 LD="${LD-ld} -m elf64_s390" 5550 ;; 5551 sparc*-*linux*) 5552 LD="${LD-ld} -m elf64_sparc" 5553 ;; 5554 esac 5555 ;; 5556 esac 5557 fi 5558 rm -rf conftest* 5559 ;; 5560 5561*-*-sco3.2v5*) 5562 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5563 SAVE_CFLAGS="$CFLAGS" 5564 CFLAGS="$CFLAGS -belf" 5565 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5566$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5567if test "${lt_cv_cc_needs_belf+set}" = set; then 5568 $as_echo_n "(cached) " >&6 5569else 5570 ac_ext=c 5571ac_cpp='$CPP $CPPFLAGS' 5572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5574ac_compiler_gnu=$ac_cv_c_compiler_gnu 5575 5576 cat >conftest.$ac_ext <<_ACEOF 5577/* confdefs.h. */ 5578_ACEOF 5579cat confdefs.h >>conftest.$ac_ext 5580cat >>conftest.$ac_ext <<_ACEOF 5581/* end confdefs.h. */ 5582 5583int 5584main () 5585{ 5586 5587 ; 5588 return 0; 5589} 5590_ACEOF 5591rm -f conftest.$ac_objext conftest$ac_exeext 5592if { (ac_try="$ac_link" 5593case "(($ac_try" in 5594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5595 *) ac_try_echo=$ac_try;; 5596esac 5597eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5598$as_echo "$ac_try_echo") >&5 5599 (eval "$ac_link") 2>conftest.er1 5600 ac_status=$? 5601 grep -v '^ *+' conftest.er1 >conftest.err 5602 rm -f conftest.er1 5603 cat conftest.err >&5 5604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5605 (exit $ac_status); } && { 5606 test -z "$ac_c_werror_flag" || 5607 test ! -s conftest.err 5608 } && test -s conftest$ac_exeext && { 5609 test "$cross_compiling" = yes || 5610 $as_test_x conftest$ac_exeext 5611 }; then 5612 lt_cv_cc_needs_belf=yes 5613else 5614 $as_echo "$as_me: failed program was:" >&5 5615sed 's/^/| /' conftest.$ac_ext >&5 5616 5617 lt_cv_cc_needs_belf=no 5618fi 5619 5620rm -rf conftest.dSYM 5621rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5622 conftest$ac_exeext conftest.$ac_ext 5623 ac_ext=c 5624ac_cpp='$CPP $CPPFLAGS' 5625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5627ac_compiler_gnu=$ac_cv_c_compiler_gnu 5628 5629fi 5630{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5631$as_echo "$lt_cv_cc_needs_belf" >&6; } 5632 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5633 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5634 CFLAGS="$SAVE_CFLAGS" 5635 fi 5636 ;; 5637sparc*-*solaris*) 5638 # Find out which ABI we are using. 5639 echo 'int i;' > conftest.$ac_ext 5640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5641 (eval $ac_compile) 2>&5 5642 ac_status=$? 5643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5644 (exit $ac_status); }; then 5645 case `/usr/bin/file conftest.o` in 5646 *64-bit*) 5647 case $lt_cv_prog_gnu_ld in 5648 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5649 *) 5650 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5651 LD="${LD-ld} -64" 5652 fi 5653 ;; 5654 esac 5655 ;; 5656 esac 5657 fi 5658 rm -rf conftest* 5659 ;; 5660 5661 5662esac 5663 5664need_locks="$enable_libtool_lock" 5665 5666 5667 5668for ac_header in dlfcn.h 5669do 5670as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5672 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5673$as_echo_n "checking for $ac_header... " >&6; } 5674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5675 $as_echo_n "(cached) " >&6 5676fi 5677ac_res=`eval 'as_val=${'$as_ac_Header'} 5678 $as_echo "$as_val"'` 5679 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5680$as_echo "$ac_res" >&6; } 5681else 5682 # Is the header compilable? 5683{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 5684$as_echo_n "checking $ac_header usability... " >&6; } 5685cat >conftest.$ac_ext <<_ACEOF 5686/* confdefs.h. */ 5687_ACEOF 5688cat confdefs.h >>conftest.$ac_ext 5689cat >>conftest.$ac_ext <<_ACEOF 5690/* end confdefs.h. */ 5691$ac_includes_default 5692#include <$ac_header> 5693_ACEOF 5694rm -f conftest.$ac_objext 5695if { (ac_try="$ac_compile" 5696case "(($ac_try" in 5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5698 *) ac_try_echo=$ac_try;; 5699esac 5700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5701$as_echo "$ac_try_echo") >&5 5702 (eval "$ac_compile") 2>conftest.er1 5703 ac_status=$? 5704 grep -v '^ *+' conftest.er1 >conftest.err 5705 rm -f conftest.er1 5706 cat conftest.err >&5 5707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5708 (exit $ac_status); } && { 5709 test -z "$ac_c_werror_flag" || 5710 test ! -s conftest.err 5711 } && test -s conftest.$ac_objext; then 5712 ac_header_compiler=yes 5713else 5714 $as_echo "$as_me: failed program was:" >&5 5715sed 's/^/| /' conftest.$ac_ext >&5 5716 5717 ac_header_compiler=no 5718fi 5719 5720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5721{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5722$as_echo "$ac_header_compiler" >&6; } 5723 5724# Is the header present? 5725{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 5726$as_echo_n "checking $ac_header presence... " >&6; } 5727cat >conftest.$ac_ext <<_ACEOF 5728/* confdefs.h. */ 5729_ACEOF 5730cat confdefs.h >>conftest.$ac_ext 5731cat >>conftest.$ac_ext <<_ACEOF 5732/* end confdefs.h. */ 5733#include <$ac_header> 5734_ACEOF 5735if { (ac_try="$ac_cpp conftest.$ac_ext" 5736case "(($ac_try" in 5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5738 *) ac_try_echo=$ac_try;; 5739esac 5740eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5741$as_echo "$ac_try_echo") >&5 5742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5743 ac_status=$? 5744 grep -v '^ *+' conftest.er1 >conftest.err 5745 rm -f conftest.er1 5746 cat conftest.err >&5 5747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5748 (exit $ac_status); } >/dev/null && { 5749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5750 test ! -s conftest.err 5751 }; then 5752 ac_header_preproc=yes 5753else 5754 $as_echo "$as_me: failed program was:" >&5 5755sed 's/^/| /' conftest.$ac_ext >&5 5756 5757 ac_header_preproc=no 5758fi 5759 5760rm -f conftest.err conftest.$ac_ext 5761{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5762$as_echo "$ac_header_preproc" >&6; } 5763 5764# So? What about this header? 5765case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5766 yes:no: ) 5767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5768$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5770$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5771 ac_header_preproc=yes 5772 ;; 5773 no:yes:* ) 5774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5775$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5777$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5779$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5781$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5783$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5785$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5786 ( cat <<\_ASBOX 5787## -------------------------------------- ## 5788## Report this to http://www.openbsd.org/ ## 5789## -------------------------------------- ## 5790_ASBOX 5791 ) | sed "s/^/$as_me: WARNING: /" >&2 5792 ;; 5793esac 5794{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5795$as_echo_n "checking for $ac_header... " >&6; } 5796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5797 $as_echo_n "(cached) " >&6 5798else 5799 eval "$as_ac_Header=\$ac_header_preproc" 5800fi 5801ac_res=`eval 'as_val=${'$as_ac_Header'} 5802 $as_echo "$as_val"'` 5803 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5804$as_echo "$ac_res" >&6; } 5805 5806fi 5807if test `eval 'as_val=${'$as_ac_Header'} 5808 $as_echo "$as_val"'` = yes; then 5809 cat >>confdefs.h <<_ACEOF 5810#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5811_ACEOF 5812 5813fi 5814 5815done 5816 5817ac_ext=cpp 5818ac_cpp='$CXXCPP $CPPFLAGS' 5819ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5820ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5821ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5822if test -z "$CXX"; then 5823 if test -n "$CCC"; then 5824 CXX=$CCC 5825 else 5826 if test -n "$ac_tool_prefix"; then 5827 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5828 do 5829 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5830set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5831{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5832$as_echo_n "checking for $ac_word... " >&6; } 5833if test "${ac_cv_prog_CXX+set}" = set; then 5834 $as_echo_n "(cached) " >&6 5835else 5836 if test -n "$CXX"; then 5837 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5838else 5839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5840for as_dir in $PATH 5841do 5842 IFS=$as_save_IFS 5843 test -z "$as_dir" && as_dir=. 5844 for ac_exec_ext in '' $ac_executable_extensions; do 5845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5846 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5847 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5848 break 2 5849 fi 5850done 5851done 5852IFS=$as_save_IFS 5853 5854fi 5855fi 5856CXX=$ac_cv_prog_CXX 5857if test -n "$CXX"; then 5858 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 5859$as_echo "$CXX" >&6; } 5860else 5861 { $as_echo "$as_me:$LINENO: result: no" >&5 5862$as_echo "no" >&6; } 5863fi 5864 5865 5866 test -n "$CXX" && break 5867 done 5868fi 5869if test -z "$CXX"; then 5870 ac_ct_CXX=$CXX 5871 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5872do 5873 # Extract the first word of "$ac_prog", so it can be a program name with args. 5874set dummy $ac_prog; ac_word=$2 5875{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5876$as_echo_n "checking for $ac_word... " >&6; } 5877if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5878 $as_echo_n "(cached) " >&6 5879else 5880 if test -n "$ac_ct_CXX"; then 5881 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5882else 5883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5884for as_dir in $PATH 5885do 5886 IFS=$as_save_IFS 5887 test -z "$as_dir" && as_dir=. 5888 for ac_exec_ext in '' $ac_executable_extensions; do 5889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5890 ac_cv_prog_ac_ct_CXX="$ac_prog" 5891 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5892 break 2 5893 fi 5894done 5895done 5896IFS=$as_save_IFS 5897 5898fi 5899fi 5900ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5901if test -n "$ac_ct_CXX"; then 5902 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5903$as_echo "$ac_ct_CXX" >&6; } 5904else 5905 { $as_echo "$as_me:$LINENO: result: no" >&5 5906$as_echo "no" >&6; } 5907fi 5908 5909 5910 test -n "$ac_ct_CXX" && break 5911done 5912 5913 if test "x$ac_ct_CXX" = x; then 5914 CXX="g++" 5915 else 5916 case $cross_compiling:$ac_tool_warned in 5917yes:) 5918{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5919whose name does not start with the host triplet. If you think this 5920configuration is useful to you, please write to autoconf@gnu.org." >&5 5921$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5922whose name does not start with the host triplet. If you think this 5923configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5924ac_tool_warned=yes ;; 5925esac 5926 CXX=$ac_ct_CXX 5927 fi 5928fi 5929 5930 fi 5931fi 5932# Provide some information about the compiler. 5933$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5934set X $ac_compile 5935ac_compiler=$2 5936{ (ac_try="$ac_compiler --version >&5" 5937case "(($ac_try" in 5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5939 *) ac_try_echo=$ac_try;; 5940esac 5941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5942$as_echo "$ac_try_echo") >&5 5943 (eval "$ac_compiler --version >&5") 2>&5 5944 ac_status=$? 5945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5946 (exit $ac_status); } 5947{ (ac_try="$ac_compiler -v >&5" 5948case "(($ac_try" in 5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5950 *) ac_try_echo=$ac_try;; 5951esac 5952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5953$as_echo "$ac_try_echo") >&5 5954 (eval "$ac_compiler -v >&5") 2>&5 5955 ac_status=$? 5956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5957 (exit $ac_status); } 5958{ (ac_try="$ac_compiler -V >&5" 5959case "(($ac_try" in 5960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5961 *) ac_try_echo=$ac_try;; 5962esac 5963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5964$as_echo "$ac_try_echo") >&5 5965 (eval "$ac_compiler -V >&5") 2>&5 5966 ac_status=$? 5967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5968 (exit $ac_status); } 5969 5970{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5971$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5972if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5973 $as_echo_n "(cached) " >&6 5974else 5975 cat >conftest.$ac_ext <<_ACEOF 5976/* confdefs.h. */ 5977_ACEOF 5978cat confdefs.h >>conftest.$ac_ext 5979cat >>conftest.$ac_ext <<_ACEOF 5980/* end confdefs.h. */ 5981 5982int 5983main () 5984{ 5985#ifndef __GNUC__ 5986 choke me 5987#endif 5988 5989 ; 5990 return 0; 5991} 5992_ACEOF 5993rm -f conftest.$ac_objext 5994if { (ac_try="$ac_compile" 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_compile") 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); } && { 6008 test -z "$ac_cxx_werror_flag" || 6009 test ! -s conftest.err 6010 } && test -s conftest.$ac_objext; then 6011 ac_compiler_gnu=yes 6012else 6013 $as_echo "$as_me: failed program was:" >&5 6014sed 's/^/| /' conftest.$ac_ext >&5 6015 6016 ac_compiler_gnu=no 6017fi 6018 6019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6020ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6021 6022fi 6023{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 6024$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 6025if test $ac_compiler_gnu = yes; then 6026 GXX=yes 6027else 6028 GXX= 6029fi 6030ac_test_CXXFLAGS=${CXXFLAGS+set} 6031ac_save_CXXFLAGS=$CXXFLAGS 6032{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 6033$as_echo_n "checking whether $CXX accepts -g... " >&6; } 6034if test "${ac_cv_prog_cxx_g+set}" = set; then 6035 $as_echo_n "(cached) " >&6 6036else 6037 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6038 ac_cxx_werror_flag=yes 6039 ac_cv_prog_cxx_g=no 6040 CXXFLAGS="-g" 6041 cat >conftest.$ac_ext <<_ACEOF 6042/* confdefs.h. */ 6043_ACEOF 6044cat confdefs.h >>conftest.$ac_ext 6045cat >>conftest.$ac_ext <<_ACEOF 6046/* end confdefs.h. */ 6047 6048int 6049main () 6050{ 6051 6052 ; 6053 return 0; 6054} 6055_ACEOF 6056rm -f conftest.$ac_objext 6057if { (ac_try="$ac_compile" 6058case "(($ac_try" in 6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6060 *) ac_try_echo=$ac_try;; 6061esac 6062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6063$as_echo "$ac_try_echo") >&5 6064 (eval "$ac_compile") 2>conftest.er1 6065 ac_status=$? 6066 grep -v '^ *+' conftest.er1 >conftest.err 6067 rm -f conftest.er1 6068 cat conftest.err >&5 6069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6070 (exit $ac_status); } && { 6071 test -z "$ac_cxx_werror_flag" || 6072 test ! -s conftest.err 6073 } && test -s conftest.$ac_objext; then 6074 ac_cv_prog_cxx_g=yes 6075else 6076 $as_echo "$as_me: failed program was:" >&5 6077sed 's/^/| /' conftest.$ac_ext >&5 6078 6079 CXXFLAGS="" 6080 cat >conftest.$ac_ext <<_ACEOF 6081/* confdefs.h. */ 6082_ACEOF 6083cat confdefs.h >>conftest.$ac_ext 6084cat >>conftest.$ac_ext <<_ACEOF 6085/* end confdefs.h. */ 6086 6087int 6088main () 6089{ 6090 6091 ; 6092 return 0; 6093} 6094_ACEOF 6095rm -f conftest.$ac_objext 6096if { (ac_try="$ac_compile" 6097case "(($ac_try" in 6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6099 *) ac_try_echo=$ac_try;; 6100esac 6101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6102$as_echo "$ac_try_echo") >&5 6103 (eval "$ac_compile") 2>conftest.er1 6104 ac_status=$? 6105 grep -v '^ *+' conftest.er1 >conftest.err 6106 rm -f conftest.er1 6107 cat conftest.err >&5 6108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6109 (exit $ac_status); } && { 6110 test -z "$ac_cxx_werror_flag" || 6111 test ! -s conftest.err 6112 } && test -s conftest.$ac_objext; then 6113 : 6114else 6115 $as_echo "$as_me: failed program was:" >&5 6116sed 's/^/| /' conftest.$ac_ext >&5 6117 6118 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6119 CXXFLAGS="-g" 6120 cat >conftest.$ac_ext <<_ACEOF 6121/* confdefs.h. */ 6122_ACEOF 6123cat confdefs.h >>conftest.$ac_ext 6124cat >>conftest.$ac_ext <<_ACEOF 6125/* end confdefs.h. */ 6126 6127int 6128main () 6129{ 6130 6131 ; 6132 return 0; 6133} 6134_ACEOF 6135rm -f conftest.$ac_objext 6136if { (ac_try="$ac_compile" 6137case "(($ac_try" in 6138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6139 *) ac_try_echo=$ac_try;; 6140esac 6141eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6142$as_echo "$ac_try_echo") >&5 6143 (eval "$ac_compile") 2>conftest.er1 6144 ac_status=$? 6145 grep -v '^ *+' conftest.er1 >conftest.err 6146 rm -f conftest.er1 6147 cat conftest.err >&5 6148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6149 (exit $ac_status); } && { 6150 test -z "$ac_cxx_werror_flag" || 6151 test ! -s conftest.err 6152 } && test -s conftest.$ac_objext; then 6153 ac_cv_prog_cxx_g=yes 6154else 6155 $as_echo "$as_me: failed program was:" >&5 6156sed 's/^/| /' conftest.$ac_ext >&5 6157 6158 6159fi 6160 6161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6162fi 6163 6164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6165fi 6166 6167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6168 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6169fi 6170{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 6171$as_echo "$ac_cv_prog_cxx_g" >&6; } 6172if test "$ac_test_CXXFLAGS" = set; then 6173 CXXFLAGS=$ac_save_CXXFLAGS 6174elif test $ac_cv_prog_cxx_g = yes; then 6175 if test "$GXX" = yes; then 6176 CXXFLAGS="-g -O2" 6177 else 6178 CXXFLAGS="-g" 6179 fi 6180else 6181 if test "$GXX" = yes; then 6182 CXXFLAGS="-O2" 6183 else 6184 CXXFLAGS= 6185 fi 6186fi 6187ac_ext=cpp 6188ac_cpp='$CXXCPP $CPPFLAGS' 6189ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6190ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6191ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6192 6193depcc="$CXX" am_compiler_list= 6194 6195{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 6196$as_echo_n "checking dependency style of $depcc... " >&6; } 6197if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 6198 $as_echo_n "(cached) " >&6 6199else 6200 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6201 # We make a subdir and do the tests there. Otherwise we can end up 6202 # making bogus files that we don't know about and never remove. For 6203 # instance it was reported that on HP-UX the gcc test will end up 6204 # making a dummy file named `D' -- because `-MD' means `put the output 6205 # in D'. 6206 mkdir conftest.dir 6207 # Copy depcomp to subdir because otherwise we won't find it if we're 6208 # using a relative directory. 6209 cp "$am_depcomp" conftest.dir 6210 cd conftest.dir 6211 # We will build objects and dependencies in a subdirectory because 6212 # it helps to detect inapplicable dependency modes. For instance 6213 # both Tru64's cc and ICC support -MD to output dependencies as a 6214 # side effect of compilation, but ICC will put the dependencies in 6215 # the current directory while Tru64 will put them in the object 6216 # directory. 6217 mkdir sub 6218 6219 am_cv_CXX_dependencies_compiler_type=none 6220 if test "$am_compiler_list" = ""; then 6221 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6222 fi 6223 for depmode in $am_compiler_list; do 6224 # Setup a source with many dependencies, because some compilers 6225 # like to wrap large dependency lists on column 80 (with \), and 6226 # we should not choose a depcomp mode which is confused by this. 6227 # 6228 # We need to recreate these files for each test, as the compiler may 6229 # overwrite some of them when testing with obscure command lines. 6230 # This happens at least with the AIX C compiler. 6231 : > sub/conftest.c 6232 for i in 1 2 3 4 5 6; do 6233 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6234 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 6235 # Solaris 8's {/usr,}/bin/sh. 6236 touch sub/conftst$i.h 6237 done 6238 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6239 6240 case $depmode in 6241 nosideeffect) 6242 # after this tag, mechanisms are not by side-effect, so they'll 6243 # only be used when explicitly requested 6244 if test "x$enable_dependency_tracking" = xyes; then 6245 continue 6246 else 6247 break 6248 fi 6249 ;; 6250 none) break ;; 6251 esac 6252 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6253 # mode. It turns out that the SunPro C++ compiler does not properly 6254 # handle `-M -o', and we need to detect this. 6255 if depmode=$depmode \ 6256 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 6257 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6258 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 6259 >/dev/null 2>conftest.err && 6260 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6261 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 6262 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6263 # icc doesn't choke on unknown options, it will just issue warnings 6264 # or remarks (even with -Werror). So we grep stderr for any message 6265 # that says an option was ignored or not supported. 6266 # When given -MP, icc 7.0 and 7.1 complain thusly: 6267 # icc: Command line warning: ignoring option '-M'; no argument required 6268 # The diagnosis changed in icc 8.0: 6269 # icc: Command line remark: option '-MP' not supported 6270 if (grep 'ignoring option' conftest.err || 6271 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6272 am_cv_CXX_dependencies_compiler_type=$depmode 6273 break 6274 fi 6275 fi 6276 done 6277 6278 cd .. 6279 rm -rf conftest.dir 6280else 6281 am_cv_CXX_dependencies_compiler_type=none 6282fi 6283 6284fi 6285{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 6286$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 6287CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6288 6289 6290 6291if 6292 test "x$enable_dependency_tracking" != xno \ 6293 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6294 am__fastdepCXX_TRUE= 6295 am__fastdepCXX_FALSE='#' 6296else 6297 am__fastdepCXX_TRUE='#' 6298 am__fastdepCXX_FALSE= 6299fi 6300 6301 6302 6303 6304if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6305 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6306 (test "X$CXX" != "Xg++"))) ; then 6307 ac_ext=cpp 6308ac_cpp='$CXXCPP $CPPFLAGS' 6309ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6310ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6311ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6312{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6313$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 6314if test -z "$CXXCPP"; then 6315 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6316 $as_echo_n "(cached) " >&6 6317else 6318 # Double quotes because CXXCPP needs to be expanded 6319 for CXXCPP in "$CXX -E" "/lib/cpp" 6320 do 6321 ac_preproc_ok=false 6322for ac_cxx_preproc_warn_flag in '' yes 6323do 6324 # Use a header file that comes with gcc, so configuring glibc 6325 # with a fresh cross-compiler works. 6326 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6327 # <limits.h> exists even on freestanding compilers. 6328 # On the NeXT, cc -E runs the code through the compiler's parser, 6329 # not just through cpp. "Syntax error" is here to catch this case. 6330 cat >conftest.$ac_ext <<_ACEOF 6331/* confdefs.h. */ 6332_ACEOF 6333cat confdefs.h >>conftest.$ac_ext 6334cat >>conftest.$ac_ext <<_ACEOF 6335/* end confdefs.h. */ 6336#ifdef __STDC__ 6337# include <limits.h> 6338#else 6339# include <assert.h> 6340#endif 6341 Syntax error 6342_ACEOF 6343if { (ac_try="$ac_cpp conftest.$ac_ext" 6344case "(($ac_try" in 6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6346 *) ac_try_echo=$ac_try;; 6347esac 6348eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6349$as_echo "$ac_try_echo") >&5 6350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6351 ac_status=$? 6352 grep -v '^ *+' conftest.er1 >conftest.err 6353 rm -f conftest.er1 6354 cat conftest.err >&5 6355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6356 (exit $ac_status); } >/dev/null && { 6357 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6358 test ! -s conftest.err 6359 }; then 6360 : 6361else 6362 $as_echo "$as_me: failed program was:" >&5 6363sed 's/^/| /' conftest.$ac_ext >&5 6364 6365 # Broken: fails on valid input. 6366continue 6367fi 6368 6369rm -f conftest.err conftest.$ac_ext 6370 6371 # OK, works on sane cases. Now check whether nonexistent headers 6372 # can be detected and how. 6373 cat >conftest.$ac_ext <<_ACEOF 6374/* confdefs.h. */ 6375_ACEOF 6376cat confdefs.h >>conftest.$ac_ext 6377cat >>conftest.$ac_ext <<_ACEOF 6378/* end confdefs.h. */ 6379#include <ac_nonexistent.h> 6380_ACEOF 6381if { (ac_try="$ac_cpp conftest.$ac_ext" 6382case "(($ac_try" in 6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6384 *) ac_try_echo=$ac_try;; 6385esac 6386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6387$as_echo "$ac_try_echo") >&5 6388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6389 ac_status=$? 6390 grep -v '^ *+' conftest.er1 >conftest.err 6391 rm -f conftest.er1 6392 cat conftest.err >&5 6393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6394 (exit $ac_status); } >/dev/null && { 6395 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6396 test ! -s conftest.err 6397 }; then 6398 # Broken: success on invalid input. 6399continue 6400else 6401 $as_echo "$as_me: failed program was:" >&5 6402sed 's/^/| /' conftest.$ac_ext >&5 6403 6404 # Passes both tests. 6405ac_preproc_ok=: 6406break 6407fi 6408 6409rm -f conftest.err conftest.$ac_ext 6410 6411done 6412# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6413rm -f conftest.err conftest.$ac_ext 6414if $ac_preproc_ok; then 6415 break 6416fi 6417 6418 done 6419 ac_cv_prog_CXXCPP=$CXXCPP 6420 6421fi 6422 CXXCPP=$ac_cv_prog_CXXCPP 6423else 6424 ac_cv_prog_CXXCPP=$CXXCPP 6425fi 6426{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 6427$as_echo "$CXXCPP" >&6; } 6428ac_preproc_ok=false 6429for ac_cxx_preproc_warn_flag in '' yes 6430do 6431 # Use a header file that comes with gcc, so configuring glibc 6432 # with a fresh cross-compiler works. 6433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6434 # <limits.h> exists even on freestanding compilers. 6435 # On the NeXT, cc -E runs the code through the compiler's parser, 6436 # not just through cpp. "Syntax error" is here to catch this case. 6437 cat >conftest.$ac_ext <<_ACEOF 6438/* confdefs.h. */ 6439_ACEOF 6440cat confdefs.h >>conftest.$ac_ext 6441cat >>conftest.$ac_ext <<_ACEOF 6442/* end confdefs.h. */ 6443#ifdef __STDC__ 6444# include <limits.h> 6445#else 6446# include <assert.h> 6447#endif 6448 Syntax error 6449_ACEOF 6450if { (ac_try="$ac_cpp conftest.$ac_ext" 6451case "(($ac_try" in 6452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6453 *) ac_try_echo=$ac_try;; 6454esac 6455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6456$as_echo "$ac_try_echo") >&5 6457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6458 ac_status=$? 6459 grep -v '^ *+' conftest.er1 >conftest.err 6460 rm -f conftest.er1 6461 cat conftest.err >&5 6462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6463 (exit $ac_status); } >/dev/null && { 6464 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6465 test ! -s conftest.err 6466 }; then 6467 : 6468else 6469 $as_echo "$as_me: failed program was:" >&5 6470sed 's/^/| /' conftest.$ac_ext >&5 6471 6472 # Broken: fails on valid input. 6473continue 6474fi 6475 6476rm -f conftest.err conftest.$ac_ext 6477 6478 # OK, works on sane cases. Now check whether nonexistent headers 6479 # can be detected and how. 6480 cat >conftest.$ac_ext <<_ACEOF 6481/* confdefs.h. */ 6482_ACEOF 6483cat confdefs.h >>conftest.$ac_ext 6484cat >>conftest.$ac_ext <<_ACEOF 6485/* end confdefs.h. */ 6486#include <ac_nonexistent.h> 6487_ACEOF 6488if { (ac_try="$ac_cpp conftest.$ac_ext" 6489case "(($ac_try" in 6490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6491 *) ac_try_echo=$ac_try;; 6492esac 6493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6494$as_echo "$ac_try_echo") >&5 6495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6496 ac_status=$? 6497 grep -v '^ *+' conftest.er1 >conftest.err 6498 rm -f conftest.er1 6499 cat conftest.err >&5 6500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6501 (exit $ac_status); } >/dev/null && { 6502 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6503 test ! -s conftest.err 6504 }; then 6505 # Broken: success on invalid input. 6506continue 6507else 6508 $as_echo "$as_me: failed program was:" >&5 6509sed 's/^/| /' conftest.$ac_ext >&5 6510 6511 # Passes both tests. 6512ac_preproc_ok=: 6513break 6514fi 6515 6516rm -f conftest.err conftest.$ac_ext 6517 6518done 6519# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6520rm -f conftest.err conftest.$ac_ext 6521if $ac_preproc_ok; then 6522 : 6523else 6524 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6525See \`config.log' for more details." >&5 6526$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6527See \`config.log' for more details." >&2;} 6528 { (exit 1); exit 1; }; } 6529fi 6530 6531ac_ext=cpp 6532ac_cpp='$CXXCPP $CPPFLAGS' 6533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6536 6537fi 6538 6539 6540ac_ext=f 6541ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6542ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6543ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6544if test -n "$ac_tool_prefix"; then 6545 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 6546 do 6547 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6548set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6549{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6550$as_echo_n "checking for $ac_word... " >&6; } 6551if test "${ac_cv_prog_F77+set}" = set; then 6552 $as_echo_n "(cached) " >&6 6553else 6554 if test -n "$F77"; then 6555 ac_cv_prog_F77="$F77" # Let the user override the test. 6556else 6557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6558for as_dir in $PATH 6559do 6560 IFS=$as_save_IFS 6561 test -z "$as_dir" && as_dir=. 6562 for ac_exec_ext in '' $ac_executable_extensions; do 6563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6564 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6565 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6566 break 2 6567 fi 6568done 6569done 6570IFS=$as_save_IFS 6571 6572fi 6573fi 6574F77=$ac_cv_prog_F77 6575if test -n "$F77"; then 6576 { $as_echo "$as_me:$LINENO: result: $F77" >&5 6577$as_echo "$F77" >&6; } 6578else 6579 { $as_echo "$as_me:$LINENO: result: no" >&5 6580$as_echo "no" >&6; } 6581fi 6582 6583 6584 test -n "$F77" && break 6585 done 6586fi 6587if test -z "$F77"; then 6588 ac_ct_F77=$F77 6589 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 6590do 6591 # Extract the first word of "$ac_prog", so it can be a program name with args. 6592set dummy $ac_prog; ac_word=$2 6593{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6594$as_echo_n "checking for $ac_word... " >&6; } 6595if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6596 $as_echo_n "(cached) " >&6 6597else 6598 if test -n "$ac_ct_F77"; then 6599 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6600else 6601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6602for as_dir in $PATH 6603do 6604 IFS=$as_save_IFS 6605 test -z "$as_dir" && as_dir=. 6606 for ac_exec_ext in '' $ac_executable_extensions; do 6607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6608 ac_cv_prog_ac_ct_F77="$ac_prog" 6609 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6610 break 2 6611 fi 6612done 6613done 6614IFS=$as_save_IFS 6615 6616fi 6617fi 6618ac_ct_F77=$ac_cv_prog_ac_ct_F77 6619if test -n "$ac_ct_F77"; then 6620 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6621$as_echo "$ac_ct_F77" >&6; } 6622else 6623 { $as_echo "$as_me:$LINENO: result: no" >&5 6624$as_echo "no" >&6; } 6625fi 6626 6627 6628 test -n "$ac_ct_F77" && break 6629done 6630 6631 if test "x$ac_ct_F77" = x; then 6632 F77="" 6633 else 6634 case $cross_compiling:$ac_tool_warned in 6635yes:) 6636{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6637whose name does not start with the host triplet. If you think this 6638configuration is useful to you, please write to autoconf@gnu.org." >&5 6639$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6640whose name does not start with the host triplet. If you think this 6641configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6642ac_tool_warned=yes ;; 6643esac 6644 F77=$ac_ct_F77 6645 fi 6646fi 6647 6648 6649# Provide some information about the compiler. 6650$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6651set X $ac_compile 6652ac_compiler=$2 6653{ (ac_try="$ac_compiler --version >&5" 6654case "(($ac_try" in 6655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6656 *) ac_try_echo=$ac_try;; 6657esac 6658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6659$as_echo "$ac_try_echo") >&5 6660 (eval "$ac_compiler --version >&5") 2>&5 6661 ac_status=$? 6662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6663 (exit $ac_status); } 6664{ (ac_try="$ac_compiler -v >&5" 6665case "(($ac_try" in 6666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6667 *) ac_try_echo=$ac_try;; 6668esac 6669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6670$as_echo "$ac_try_echo") >&5 6671 (eval "$ac_compiler -v >&5") 2>&5 6672 ac_status=$? 6673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6674 (exit $ac_status); } 6675{ (ac_try="$ac_compiler -V >&5" 6676case "(($ac_try" in 6677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6678 *) ac_try_echo=$ac_try;; 6679esac 6680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6681$as_echo "$ac_try_echo") >&5 6682 (eval "$ac_compiler -V >&5") 2>&5 6683 ac_status=$? 6684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6685 (exit $ac_status); } 6686rm -f a.out 6687 6688# If we don't use `.F' as extension, the preprocessor is not run on the 6689# input file. (Note that this only needs to work for GNU compilers.) 6690ac_save_ext=$ac_ext 6691ac_ext=F 6692{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6693$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 6694if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6695 $as_echo_n "(cached) " >&6 6696else 6697 cat >conftest.$ac_ext <<_ACEOF 6698 program main 6699#ifndef __GNUC__ 6700 choke me 6701#endif 6702 6703 end 6704_ACEOF 6705rm -f conftest.$ac_objext 6706if { (ac_try="$ac_compile" 6707case "(($ac_try" in 6708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6709 *) ac_try_echo=$ac_try;; 6710esac 6711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6712$as_echo "$ac_try_echo") >&5 6713 (eval "$ac_compile") 2>conftest.er1 6714 ac_status=$? 6715 grep -v '^ *+' conftest.er1 >conftest.err 6716 rm -f conftest.er1 6717 cat conftest.err >&5 6718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6719 (exit $ac_status); } && { 6720 test -z "$ac_f77_werror_flag" || 6721 test ! -s conftest.err 6722 } && test -s conftest.$ac_objext; then 6723 ac_compiler_gnu=yes 6724else 6725 $as_echo "$as_me: failed program was:" >&5 6726sed 's/^/| /' conftest.$ac_ext >&5 6727 6728 ac_compiler_gnu=no 6729fi 6730 6731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6732ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6733 6734fi 6735{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6736$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 6737ac_ext=$ac_save_ext 6738ac_test_FFLAGS=${FFLAGS+set} 6739ac_save_FFLAGS=$FFLAGS 6740FFLAGS= 6741{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6742$as_echo_n "checking whether $F77 accepts -g... " >&6; } 6743if test "${ac_cv_prog_f77_g+set}" = set; then 6744 $as_echo_n "(cached) " >&6 6745else 6746 FFLAGS=-g 6747cat >conftest.$ac_ext <<_ACEOF 6748 program main 6749 6750 end 6751_ACEOF 6752rm -f conftest.$ac_objext 6753if { (ac_try="$ac_compile" 6754case "(($ac_try" in 6755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6756 *) ac_try_echo=$ac_try;; 6757esac 6758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6759$as_echo "$ac_try_echo") >&5 6760 (eval "$ac_compile") 2>conftest.er1 6761 ac_status=$? 6762 grep -v '^ *+' conftest.er1 >conftest.err 6763 rm -f conftest.er1 6764 cat conftest.err >&5 6765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6766 (exit $ac_status); } && { 6767 test -z "$ac_f77_werror_flag" || 6768 test ! -s conftest.err 6769 } && test -s conftest.$ac_objext; then 6770 ac_cv_prog_f77_g=yes 6771else 6772 $as_echo "$as_me: failed program was:" >&5 6773sed 's/^/| /' conftest.$ac_ext >&5 6774 6775 ac_cv_prog_f77_g=no 6776fi 6777 6778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6779 6780fi 6781{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6782$as_echo "$ac_cv_prog_f77_g" >&6; } 6783if test "$ac_test_FFLAGS" = set; then 6784 FFLAGS=$ac_save_FFLAGS 6785elif test $ac_cv_prog_f77_g = yes; then 6786 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6787 FFLAGS="-g -O2" 6788 else 6789 FFLAGS="-g" 6790 fi 6791else 6792 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6793 FFLAGS="-O2" 6794 else 6795 FFLAGS= 6796 fi 6797fi 6798 6799if test $ac_compiler_gnu = yes; then 6800 G77=yes 6801else 6802 G77= 6803fi 6804ac_ext=c 6805ac_cpp='$CPP $CPPFLAGS' 6806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6808ac_compiler_gnu=$ac_cv_c_compiler_gnu 6809 6810 6811 6812# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6813# find the maximum length of command line arguments 6814{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6815$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6816if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6817 $as_echo_n "(cached) " >&6 6818else 6819 i=0 6820 teststring="ABCD" 6821 6822 case $build_os in 6823 msdosdjgpp*) 6824 # On DJGPP, this test can blow up pretty badly due to problems in libc 6825 # (any single argument exceeding 2000 bytes causes a buffer overrun 6826 # during glob expansion). Even if it were fixed, the result of this 6827 # check would be larger than it should be. 6828 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6829 ;; 6830 6831 gnu*) 6832 # Under GNU Hurd, this test is not required because there is 6833 # no limit to the length of command line arguments. 6834 # Libtool will interpret -1 as no limit whatsoever 6835 lt_cv_sys_max_cmd_len=-1; 6836 ;; 6837 6838 cygwin* | mingw*) 6839 # On Win9x/ME, this test blows up -- it succeeds, but takes 6840 # about 5 minutes as the teststring grows exponentially. 6841 # Worse, since 9x/ME are not pre-emptively multitasking, 6842 # you end up with a "frozen" computer, even though with patience 6843 # the test eventually succeeds (with a max line length of 256k). 6844 # Instead, let's just punt: use the minimum linelength reported by 6845 # all of the supported platforms: 8192 (on NT/2K/XP). 6846 lt_cv_sys_max_cmd_len=8192; 6847 ;; 6848 6849 amigaos*) 6850 # On AmigaOS with pdksh, this test takes hours, literally. 6851 # So we just punt and use a minimum line length of 8192. 6852 lt_cv_sys_max_cmd_len=8192; 6853 ;; 6854 6855 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6856 # This has been around since 386BSD, at least. Likely further. 6857 if test -x /sbin/sysctl; then 6858 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6859 elif test -x /usr/sbin/sysctl; then 6860 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6861 else 6862 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6863 fi 6864 # And add a safety zone 6865 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6866 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6867 ;; 6868 6869 interix*) 6870 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6871 lt_cv_sys_max_cmd_len=196608 6872 ;; 6873 6874 osf*) 6875 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6876 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6877 # nice to cause kernel panics so lets avoid the loop below. 6878 # First set a reasonable default. 6879 lt_cv_sys_max_cmd_len=16384 6880 # 6881 if test -x /sbin/sysconfig; then 6882 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6883 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6884 esac 6885 fi 6886 ;; 6887 sco3.2v5*) 6888 lt_cv_sys_max_cmd_len=102400 6889 ;; 6890 sysv5* | sco5v6* | sysv4.2uw2*) 6891 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6892 if test -n "$kargmax"; then 6893 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6894 else 6895 lt_cv_sys_max_cmd_len=32768 6896 fi 6897 ;; 6898 *) 6899 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6900 if test -n "$lt_cv_sys_max_cmd_len"; then 6901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6903 else 6904 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6905 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6906 = "XX$teststring") >/dev/null 2>&1 && 6907 new_result=`expr "X$teststring" : ".*" 2>&1` && 6908 lt_cv_sys_max_cmd_len=$new_result && 6909 test $i != 17 # 1/2 MB should be enough 6910 do 6911 i=`expr $i + 1` 6912 teststring=$teststring$teststring 6913 done 6914 teststring= 6915 # Add a significant safety factor because C++ compilers can tack on massive 6916 # amounts of additional arguments before passing them to the linker. 6917 # It appears as though 1/2 is a usable value. 6918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6919 fi 6920 ;; 6921 esac 6922 6923fi 6924 6925if test -n $lt_cv_sys_max_cmd_len ; then 6926 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6927$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6928else 6929 { $as_echo "$as_me:$LINENO: result: none" >&5 6930$as_echo "none" >&6; } 6931fi 6932 6933 6934 6935 6936 6937# Check for command to grab the raw symbol name followed by C symbol from nm. 6938{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6939$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6940if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6941 $as_echo_n "(cached) " >&6 6942else 6943 6944# These are sane defaults that work on at least a few old systems. 6945# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6946 6947# Character class describing NM global symbol codes. 6948symcode='[BCDEGRST]' 6949 6950# Regexp to match symbols that can be accessed directly from C. 6951sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6952 6953# Transform an extracted symbol line into a proper C declaration 6954lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6955 6956# Transform an extracted symbol line into symbol name and symbol address 6957lt_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'" 6958 6959# Define system-specific variables. 6960case $host_os in 6961aix*) 6962 symcode='[BCDT]' 6963 ;; 6964cygwin* | mingw* | pw32*) 6965 symcode='[ABCDGISTW]' 6966 ;; 6967hpux*) # Its linker distinguishes data from code symbols 6968 if test "$host_cpu" = ia64; then 6969 symcode='[ABCDEGRST]' 6970 fi 6971 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6972 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'" 6973 ;; 6974linux* | k*bsd*-gnu) 6975 if test "$host_cpu" = ia64; then 6976 symcode='[ABCDGIRSTW]' 6977 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6978 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'" 6979 fi 6980 ;; 6981irix* | nonstopux*) 6982 symcode='[BCDEGRST]' 6983 ;; 6984osf*) 6985 symcode='[BCDEGQRST]' 6986 ;; 6987solaris*) 6988 symcode='[BDRT]' 6989 ;; 6990sco3.2v5*) 6991 symcode='[DT]' 6992 ;; 6993sysv4.2uw2*) 6994 symcode='[DT]' 6995 ;; 6996sysv5* | sco5v6* | unixware* | OpenUNIX*) 6997 symcode='[ABDT]' 6998 ;; 6999sysv4) 7000 symcode='[DFNSTU]' 7001 ;; 7002esac 7003 7004# Handle CRLF in mingw tool chain 7005opt_cr= 7006case $build_os in 7007mingw*) 7008 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7009 ;; 7010esac 7011 7012# If we're using GNU nm, then use its standard symbol codes. 7013case `$NM -V 2>&1` in 7014*GNU* | *'with BFD'*) 7015 symcode='[ABCDGIRSTW]' ;; 7016esac 7017 7018# Try without a prefix undercore, then with it. 7019for ac_symprfx in "" "_"; do 7020 7021 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7022 symxfrm="\\1 $ac_symprfx\\2 \\2" 7023 7024 # Write the raw and C identifiers. 7025 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7026 7027 # Check to see that the pipe works correctly. 7028 pipe_works=no 7029 7030 rm -f conftest* 7031 cat > conftest.$ac_ext <<EOF 7032#ifdef __cplusplus 7033extern "C" { 7034#endif 7035char nm_test_var; 7036void nm_test_func(){} 7037#ifdef __cplusplus 7038} 7039#endif 7040int main(){nm_test_var='a';nm_test_func();return(0);} 7041EOF 7042 7043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7044 (eval $ac_compile) 2>&5 7045 ac_status=$? 7046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7047 (exit $ac_status); }; then 7048 # Now try to grab the symbols. 7049 nlist=conftest.nm 7050 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 7051 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7052 ac_status=$? 7053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7054 (exit $ac_status); } && test -s "$nlist"; then 7055 # Try sorting and uniquifying the output. 7056 if sort "$nlist" | uniq > "$nlist"T; then 7057 mv -f "$nlist"T "$nlist" 7058 else 7059 rm -f "$nlist"T 7060 fi 7061 7062 # Make sure that we snagged all the symbols we need. 7063 if grep ' nm_test_var$' "$nlist" >/dev/null; then 7064 if grep ' nm_test_func$' "$nlist" >/dev/null; then 7065 cat <<EOF > conftest.$ac_ext 7066#ifdef __cplusplus 7067extern "C" { 7068#endif 7069 7070EOF 7071 # Now generate the symbol file. 7072 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 7073 7074 cat <<EOF >> conftest.$ac_ext 7075#if defined (__STDC__) && __STDC__ 7076# define lt_ptr_t void * 7077#else 7078# define lt_ptr_t char * 7079# define const 7080#endif 7081 7082/* The mapping between symbol names and symbols. */ 7083const struct { 7084 const char *name; 7085 lt_ptr_t address; 7086} 7087lt_preloaded_symbols[] = 7088{ 7089EOF 7090 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 7091 cat <<\EOF >> conftest.$ac_ext 7092 {0, (lt_ptr_t) 0} 7093}; 7094 7095#ifdef __cplusplus 7096} 7097#endif 7098EOF 7099 # Now try linking the two files. 7100 mv conftest.$ac_objext conftstm.$ac_objext 7101 lt_save_LIBS="$LIBS" 7102 lt_save_CFLAGS="$CFLAGS" 7103 LIBS="conftstm.$ac_objext" 7104 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7106 (eval $ac_link) 2>&5 7107 ac_status=$? 7108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7109 (exit $ac_status); } && test -s conftest${ac_exeext}; then 7110 pipe_works=yes 7111 fi 7112 LIBS="$lt_save_LIBS" 7113 CFLAGS="$lt_save_CFLAGS" 7114 else 7115 echo "cannot find nm_test_func in $nlist" >&5 7116 fi 7117 else 7118 echo "cannot find nm_test_var in $nlist" >&5 7119 fi 7120 else 7121 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7122 fi 7123 else 7124 echo "$progname: failed program was:" >&5 7125 cat conftest.$ac_ext >&5 7126 fi 7127 rm -rf conftest* conftst* 7128 7129 # Do not use the global_symbol_pipe unless it works. 7130 if test "$pipe_works" = yes; then 7131 break 7132 else 7133 lt_cv_sys_global_symbol_pipe= 7134 fi 7135done 7136 7137fi 7138 7139if test -z "$lt_cv_sys_global_symbol_pipe"; then 7140 lt_cv_sys_global_symbol_to_cdecl= 7141fi 7142if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7143 { $as_echo "$as_me:$LINENO: result: failed" >&5 7144$as_echo "failed" >&6; } 7145else 7146 { $as_echo "$as_me:$LINENO: result: ok" >&5 7147$as_echo "ok" >&6; } 7148fi 7149 7150{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 7151$as_echo_n "checking for objdir... " >&6; } 7152if test "${lt_cv_objdir+set}" = set; then 7153 $as_echo_n "(cached) " >&6 7154else 7155 rm -f .libs 2>/dev/null 7156mkdir .libs 2>/dev/null 7157if test -d .libs; then 7158 lt_cv_objdir=.libs 7159else 7160 # MS-DOS does not allow filenames that begin with a dot. 7161 lt_cv_objdir=_libs 7162fi 7163rmdir .libs 2>/dev/null 7164fi 7165{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7166$as_echo "$lt_cv_objdir" >&6; } 7167objdir=$lt_cv_objdir 7168 7169 7170 7171 7172 7173case $host_os in 7174aix3*) 7175 # AIX sometimes has problems with the GCC collect2 program. For some 7176 # reason, if we set the COLLECT_NAMES environment variable, the problems 7177 # vanish in a puff of smoke. 7178 if test "X${COLLECT_NAMES+set}" != Xset; then 7179 COLLECT_NAMES= 7180 export COLLECT_NAMES 7181 fi 7182 ;; 7183esac 7184 7185# Sed substitution that helps us do robust quoting. It backslashifies 7186# metacharacters that are still active within double-quoted strings. 7187Xsed='sed -e 1s/^X//' 7188sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 7189 7190# Same as above, but do not quote variable references. 7191double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 7192 7193# Sed substitution to delay expansion of an escaped shell variable in a 7194# double_quote_subst'ed string. 7195delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7196 7197# Sed substitution to avoid accidental globbing in evaled expressions 7198no_glob_subst='s/\*/\\\*/g' 7199 7200# Constants: 7201rm="rm -f" 7202 7203# Global variables: 7204default_ofile=libtool 7205can_build_shared=yes 7206 7207# All known linkers require a `.a' archive for static linking (except MSVC, 7208# which needs '.lib'). 7209libext=a 7210ltmain="$ac_aux_dir/ltmain.sh" 7211ofile="$default_ofile" 7212with_gnu_ld="$lt_cv_prog_gnu_ld" 7213 7214if test -n "$ac_tool_prefix"; then 7215 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7216set dummy ${ac_tool_prefix}ar; ac_word=$2 7217{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7218$as_echo_n "checking for $ac_word... " >&6; } 7219if test "${ac_cv_prog_AR+set}" = set; then 7220 $as_echo_n "(cached) " >&6 7221else 7222 if test -n "$AR"; then 7223 ac_cv_prog_AR="$AR" # Let the user override the test. 7224else 7225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7226for as_dir in $PATH 7227do 7228 IFS=$as_save_IFS 7229 test -z "$as_dir" && as_dir=. 7230 for ac_exec_ext in '' $ac_executable_extensions; do 7231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7232 ac_cv_prog_AR="${ac_tool_prefix}ar" 7233 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7234 break 2 7235 fi 7236done 7237done 7238IFS=$as_save_IFS 7239 7240fi 7241fi 7242AR=$ac_cv_prog_AR 7243if test -n "$AR"; then 7244 { $as_echo "$as_me:$LINENO: result: $AR" >&5 7245$as_echo "$AR" >&6; } 7246else 7247 { $as_echo "$as_me:$LINENO: result: no" >&5 7248$as_echo "no" >&6; } 7249fi 7250 7251 7252fi 7253if test -z "$ac_cv_prog_AR"; then 7254 ac_ct_AR=$AR 7255 # Extract the first word of "ar", so it can be a program name with args. 7256set dummy ar; ac_word=$2 7257{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7258$as_echo_n "checking for $ac_word... " >&6; } 7259if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7260 $as_echo_n "(cached) " >&6 7261else 7262 if test -n "$ac_ct_AR"; then 7263 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7264else 7265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7266for as_dir in $PATH 7267do 7268 IFS=$as_save_IFS 7269 test -z "$as_dir" && as_dir=. 7270 for ac_exec_ext in '' $ac_executable_extensions; do 7271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7272 ac_cv_prog_ac_ct_AR="ar" 7273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7274 break 2 7275 fi 7276done 7277done 7278IFS=$as_save_IFS 7279 7280fi 7281fi 7282ac_ct_AR=$ac_cv_prog_ac_ct_AR 7283if test -n "$ac_ct_AR"; then 7284 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7285$as_echo "$ac_ct_AR" >&6; } 7286else 7287 { $as_echo "$as_me:$LINENO: result: no" >&5 7288$as_echo "no" >&6; } 7289fi 7290 7291 if test "x$ac_ct_AR" = x; then 7292 AR="false" 7293 else 7294 case $cross_compiling:$ac_tool_warned in 7295yes:) 7296{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7297whose name does not start with the host triplet. If you think this 7298configuration is useful to you, please write to autoconf@gnu.org." >&5 7299$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7300whose name does not start with the host triplet. If you think this 7301configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7302ac_tool_warned=yes ;; 7303esac 7304 AR=$ac_ct_AR 7305 fi 7306else 7307 AR="$ac_cv_prog_AR" 7308fi 7309 7310if test -n "$ac_tool_prefix"; then 7311 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7312set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7313{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7314$as_echo_n "checking for $ac_word... " >&6; } 7315if test "${ac_cv_prog_RANLIB+set}" = set; then 7316 $as_echo_n "(cached) " >&6 7317else 7318 if test -n "$RANLIB"; then 7319 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7320else 7321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7322for as_dir in $PATH 7323do 7324 IFS=$as_save_IFS 7325 test -z "$as_dir" && as_dir=. 7326 for ac_exec_ext in '' $ac_executable_extensions; do 7327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7328 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7329 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7330 break 2 7331 fi 7332done 7333done 7334IFS=$as_save_IFS 7335 7336fi 7337fi 7338RANLIB=$ac_cv_prog_RANLIB 7339if test -n "$RANLIB"; then 7340 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 7341$as_echo "$RANLIB" >&6; } 7342else 7343 { $as_echo "$as_me:$LINENO: result: no" >&5 7344$as_echo "no" >&6; } 7345fi 7346 7347 7348fi 7349if test -z "$ac_cv_prog_RANLIB"; then 7350 ac_ct_RANLIB=$RANLIB 7351 # Extract the first word of "ranlib", so it can be a program name with args. 7352set dummy ranlib; ac_word=$2 7353{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7354$as_echo_n "checking for $ac_word... " >&6; } 7355if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7356 $as_echo_n "(cached) " >&6 7357else 7358 if test -n "$ac_ct_RANLIB"; then 7359 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7360else 7361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7362for as_dir in $PATH 7363do 7364 IFS=$as_save_IFS 7365 test -z "$as_dir" && as_dir=. 7366 for ac_exec_ext in '' $ac_executable_extensions; do 7367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7368 ac_cv_prog_ac_ct_RANLIB="ranlib" 7369 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7370 break 2 7371 fi 7372done 7373done 7374IFS=$as_save_IFS 7375 7376fi 7377fi 7378ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7379if test -n "$ac_ct_RANLIB"; then 7380 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7381$as_echo "$ac_ct_RANLIB" >&6; } 7382else 7383 { $as_echo "$as_me:$LINENO: result: no" >&5 7384$as_echo "no" >&6; } 7385fi 7386 7387 if test "x$ac_ct_RANLIB" = x; then 7388 RANLIB=":" 7389 else 7390 case $cross_compiling:$ac_tool_warned in 7391yes:) 7392{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7393whose name does not start with the host triplet. If you think this 7394configuration is useful to you, please write to autoconf@gnu.org." >&5 7395$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7396whose name does not start with the host triplet. If you think this 7397configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7398ac_tool_warned=yes ;; 7399esac 7400 RANLIB=$ac_ct_RANLIB 7401 fi 7402else 7403 RANLIB="$ac_cv_prog_RANLIB" 7404fi 7405 7406if test -n "$ac_tool_prefix"; then 7407 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7408set dummy ${ac_tool_prefix}strip; ac_word=$2 7409{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7410$as_echo_n "checking for $ac_word... " >&6; } 7411if test "${ac_cv_prog_STRIP+set}" = set; then 7412 $as_echo_n "(cached) " >&6 7413else 7414 if test -n "$STRIP"; then 7415 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7416else 7417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7418for as_dir in $PATH 7419do 7420 IFS=$as_save_IFS 7421 test -z "$as_dir" && as_dir=. 7422 for ac_exec_ext in '' $ac_executable_extensions; do 7423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7424 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7425 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7426 break 2 7427 fi 7428done 7429done 7430IFS=$as_save_IFS 7431 7432fi 7433fi 7434STRIP=$ac_cv_prog_STRIP 7435if test -n "$STRIP"; then 7436 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 7437$as_echo "$STRIP" >&6; } 7438else 7439 { $as_echo "$as_me:$LINENO: result: no" >&5 7440$as_echo "no" >&6; } 7441fi 7442 7443 7444fi 7445if test -z "$ac_cv_prog_STRIP"; then 7446 ac_ct_STRIP=$STRIP 7447 # Extract the first word of "strip", so it can be a program name with args. 7448set dummy strip; ac_word=$2 7449{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7450$as_echo_n "checking for $ac_word... " >&6; } 7451if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7452 $as_echo_n "(cached) " >&6 7453else 7454 if test -n "$ac_ct_STRIP"; then 7455 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7456else 7457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7458for as_dir in $PATH 7459do 7460 IFS=$as_save_IFS 7461 test -z "$as_dir" && as_dir=. 7462 for ac_exec_ext in '' $ac_executable_extensions; do 7463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7464 ac_cv_prog_ac_ct_STRIP="strip" 7465 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7466 break 2 7467 fi 7468done 7469done 7470IFS=$as_save_IFS 7471 7472fi 7473fi 7474ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7475if test -n "$ac_ct_STRIP"; then 7476 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7477$as_echo "$ac_ct_STRIP" >&6; } 7478else 7479 { $as_echo "$as_me:$LINENO: result: no" >&5 7480$as_echo "no" >&6; } 7481fi 7482 7483 if test "x$ac_ct_STRIP" = x; then 7484 STRIP=":" 7485 else 7486 case $cross_compiling:$ac_tool_warned in 7487yes:) 7488{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7489whose name does not start with the host triplet. If you think this 7490configuration is useful to you, please write to autoconf@gnu.org." >&5 7491$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7492whose name does not start with the host triplet. If you think this 7493configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7494ac_tool_warned=yes ;; 7495esac 7496 STRIP=$ac_ct_STRIP 7497 fi 7498else 7499 STRIP="$ac_cv_prog_STRIP" 7500fi 7501 7502 7503old_CC="$CC" 7504old_CFLAGS="$CFLAGS" 7505 7506# Set sane defaults for various variables 7507test -z "$AR" && AR=ar 7508test -z "$AR_FLAGS" && AR_FLAGS=cru 7509test -z "$AS" && AS=as 7510test -z "$CC" && CC=cc 7511test -z "$LTCC" && LTCC=$CC 7512test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7513test -z "$DLLTOOL" && DLLTOOL=dlltool 7514test -z "$LD" && LD=ld 7515test -z "$LN_S" && LN_S="ln -s" 7516test -z "$MAGIC_CMD" && MAGIC_CMD=file 7517test -z "$NM" && NM=nm 7518test -z "$SED" && SED=sed 7519test -z "$OBJDUMP" && OBJDUMP=objdump 7520test -z "$RANLIB" && RANLIB=: 7521test -z "$STRIP" && STRIP=: 7522test -z "$ac_objext" && ac_objext=o 7523 7524# Determine commands to create old-style static archives. 7525old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7526old_postinstall_cmds='chmod 644 $oldlib' 7527old_postuninstall_cmds= 7528 7529if test -n "$RANLIB"; then 7530 case $host_os in 7531 openbsd*) 7532 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7533 ;; 7534 *) 7535 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7536 ;; 7537 esac 7538 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7539fi 7540 7541for cc_temp in $compiler""; do 7542 case $cc_temp in 7543 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7544 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7545 \-*) ;; 7546 *) break;; 7547 esac 7548done 7549cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7550 7551 7552# Only perform the check for file, if the check method requires it 7553case $deplibs_check_method in 7554file_magic*) 7555 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7556 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7557$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7558if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7559 $as_echo_n "(cached) " >&6 7560else 7561 case $MAGIC_CMD in 7562[\\/*] | ?:[\\/]*) 7563 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7564 ;; 7565*) 7566 lt_save_MAGIC_CMD="$MAGIC_CMD" 7567 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7568 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7569 for ac_dir in $ac_dummy; do 7570 IFS="$lt_save_ifs" 7571 test -z "$ac_dir" && ac_dir=. 7572 if test -f $ac_dir/${ac_tool_prefix}file; then 7573 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7574 if test -n "$file_magic_test_file"; then 7575 case $deplibs_check_method in 7576 "file_magic "*) 7577 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7578 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7579 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7580 $EGREP "$file_magic_regex" > /dev/null; then 7581 : 7582 else 7583 cat <<EOF 1>&2 7584 7585*** Warning: the command libtool uses to detect shared libraries, 7586*** $file_magic_cmd, produces output that libtool cannot recognize. 7587*** The result is that libtool may fail to recognize shared libraries 7588*** as such. This will affect the creation of libtool libraries that 7589*** depend on shared libraries, but programs linked with such libtool 7590*** libraries will work regardless of this problem. Nevertheless, you 7591*** may want to report the problem to your system manager and/or to 7592*** bug-libtool@gnu.org 7593 7594EOF 7595 fi ;; 7596 esac 7597 fi 7598 break 7599 fi 7600 done 7601 IFS="$lt_save_ifs" 7602 MAGIC_CMD="$lt_save_MAGIC_CMD" 7603 ;; 7604esac 7605fi 7606 7607MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7608if test -n "$MAGIC_CMD"; then 7609 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7610$as_echo "$MAGIC_CMD" >&6; } 7611else 7612 { $as_echo "$as_me:$LINENO: result: no" >&5 7613$as_echo "no" >&6; } 7614fi 7615 7616if test -z "$lt_cv_path_MAGIC_CMD"; then 7617 if test -n "$ac_tool_prefix"; then 7618 { $as_echo "$as_me:$LINENO: checking for file" >&5 7619$as_echo_n "checking for file... " >&6; } 7620if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7621 $as_echo_n "(cached) " >&6 7622else 7623 case $MAGIC_CMD in 7624[\\/*] | ?:[\\/]*) 7625 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7626 ;; 7627*) 7628 lt_save_MAGIC_CMD="$MAGIC_CMD" 7629 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7630 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7631 for ac_dir in $ac_dummy; do 7632 IFS="$lt_save_ifs" 7633 test -z "$ac_dir" && ac_dir=. 7634 if test -f $ac_dir/file; then 7635 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7636 if test -n "$file_magic_test_file"; then 7637 case $deplibs_check_method in 7638 "file_magic "*) 7639 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7640 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7641 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7642 $EGREP "$file_magic_regex" > /dev/null; then 7643 : 7644 else 7645 cat <<EOF 1>&2 7646 7647*** Warning: the command libtool uses to detect shared libraries, 7648*** $file_magic_cmd, produces output that libtool cannot recognize. 7649*** The result is that libtool may fail to recognize shared libraries 7650*** as such. This will affect the creation of libtool libraries that 7651*** depend on shared libraries, but programs linked with such libtool 7652*** libraries will work regardless of this problem. Nevertheless, you 7653*** may want to report the problem to your system manager and/or to 7654*** bug-libtool@gnu.org 7655 7656EOF 7657 fi ;; 7658 esac 7659 fi 7660 break 7661 fi 7662 done 7663 IFS="$lt_save_ifs" 7664 MAGIC_CMD="$lt_save_MAGIC_CMD" 7665 ;; 7666esac 7667fi 7668 7669MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7670if test -n "$MAGIC_CMD"; then 7671 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7672$as_echo "$MAGIC_CMD" >&6; } 7673else 7674 { $as_echo "$as_me:$LINENO: result: no" >&5 7675$as_echo "no" >&6; } 7676fi 7677 7678 else 7679 MAGIC_CMD=: 7680 fi 7681fi 7682 7683 fi 7684 ;; 7685esac 7686 7687 7688 case $host_os in 7689 rhapsody* | darwin*) 7690 if test -n "$ac_tool_prefix"; then 7691 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7692set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7693{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7694$as_echo_n "checking for $ac_word... " >&6; } 7695if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7696 $as_echo_n "(cached) " >&6 7697else 7698 if test -n "$DSYMUTIL"; then 7699 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7700else 7701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7702for as_dir in $PATH 7703do 7704 IFS=$as_save_IFS 7705 test -z "$as_dir" && as_dir=. 7706 for ac_exec_ext in '' $ac_executable_extensions; do 7707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7708 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7709 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7710 break 2 7711 fi 7712done 7713done 7714IFS=$as_save_IFS 7715 7716fi 7717fi 7718DSYMUTIL=$ac_cv_prog_DSYMUTIL 7719if test -n "$DSYMUTIL"; then 7720 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7721$as_echo "$DSYMUTIL" >&6; } 7722else 7723 { $as_echo "$as_me:$LINENO: result: no" >&5 7724$as_echo "no" >&6; } 7725fi 7726 7727 7728fi 7729if test -z "$ac_cv_prog_DSYMUTIL"; then 7730 ac_ct_DSYMUTIL=$DSYMUTIL 7731 # Extract the first word of "dsymutil", so it can be a program name with args. 7732set dummy dsymutil; ac_word=$2 7733{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7734$as_echo_n "checking for $ac_word... " >&6; } 7735if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7736 $as_echo_n "(cached) " >&6 7737else 7738 if test -n "$ac_ct_DSYMUTIL"; then 7739 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7740else 7741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7742for as_dir in $PATH 7743do 7744 IFS=$as_save_IFS 7745 test -z "$as_dir" && as_dir=. 7746 for ac_exec_ext in '' $ac_executable_extensions; do 7747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7748 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7749 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7750 break 2 7751 fi 7752done 7753done 7754IFS=$as_save_IFS 7755 7756fi 7757fi 7758ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7759if test -n "$ac_ct_DSYMUTIL"; then 7760 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7761$as_echo "$ac_ct_DSYMUTIL" >&6; } 7762else 7763 { $as_echo "$as_me:$LINENO: result: no" >&5 7764$as_echo "no" >&6; } 7765fi 7766 7767 if test "x$ac_ct_DSYMUTIL" = x; then 7768 DSYMUTIL=":" 7769 else 7770 case $cross_compiling:$ac_tool_warned in 7771yes:) 7772{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7773whose name does not start with the host triplet. If you think this 7774configuration is useful to you, please write to autoconf@gnu.org." >&5 7775$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7776whose name does not start with the host triplet. If you think this 7777configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7778ac_tool_warned=yes ;; 7779esac 7780 DSYMUTIL=$ac_ct_DSYMUTIL 7781 fi 7782else 7783 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7784fi 7785 7786 if test -n "$ac_tool_prefix"; then 7787 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7788set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7789{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7790$as_echo_n "checking for $ac_word... " >&6; } 7791if test "${ac_cv_prog_NMEDIT+set}" = set; then 7792 $as_echo_n "(cached) " >&6 7793else 7794 if test -n "$NMEDIT"; then 7795 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7796else 7797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7798for as_dir in $PATH 7799do 7800 IFS=$as_save_IFS 7801 test -z "$as_dir" && as_dir=. 7802 for ac_exec_ext in '' $ac_executable_extensions; do 7803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7804 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7805 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7806 break 2 7807 fi 7808done 7809done 7810IFS=$as_save_IFS 7811 7812fi 7813fi 7814NMEDIT=$ac_cv_prog_NMEDIT 7815if test -n "$NMEDIT"; then 7816 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 7817$as_echo "$NMEDIT" >&6; } 7818else 7819 { $as_echo "$as_me:$LINENO: result: no" >&5 7820$as_echo "no" >&6; } 7821fi 7822 7823 7824fi 7825if test -z "$ac_cv_prog_NMEDIT"; then 7826 ac_ct_NMEDIT=$NMEDIT 7827 # Extract the first word of "nmedit", so it can be a program name with args. 7828set dummy nmedit; ac_word=$2 7829{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7830$as_echo_n "checking for $ac_word... " >&6; } 7831if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7832 $as_echo_n "(cached) " >&6 7833else 7834 if test -n "$ac_ct_NMEDIT"; then 7835 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7836else 7837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7838for as_dir in $PATH 7839do 7840 IFS=$as_save_IFS 7841 test -z "$as_dir" && as_dir=. 7842 for ac_exec_ext in '' $ac_executable_extensions; do 7843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7844 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7845 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7846 break 2 7847 fi 7848done 7849done 7850IFS=$as_save_IFS 7851 7852fi 7853fi 7854ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7855if test -n "$ac_ct_NMEDIT"; then 7856 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7857$as_echo "$ac_ct_NMEDIT" >&6; } 7858else 7859 { $as_echo "$as_me:$LINENO: result: no" >&5 7860$as_echo "no" >&6; } 7861fi 7862 7863 if test "x$ac_ct_NMEDIT" = x; then 7864 NMEDIT=":" 7865 else 7866 case $cross_compiling:$ac_tool_warned in 7867yes:) 7868{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7869whose name does not start with the host triplet. If you think this 7870configuration is useful to you, please write to autoconf@gnu.org." >&5 7871$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7872whose name does not start with the host triplet. If you think this 7873configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7874ac_tool_warned=yes ;; 7875esac 7876 NMEDIT=$ac_ct_NMEDIT 7877 fi 7878else 7879 NMEDIT="$ac_cv_prog_NMEDIT" 7880fi 7881 7882 7883 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7884$as_echo_n "checking for -single_module linker flag... " >&6; } 7885if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7886 $as_echo_n "(cached) " >&6 7887else 7888 lt_cv_apple_cc_single_mod=no 7889 if test -z "${LT_MULTI_MODULE}"; then 7890 # By default we will add the -single_module flag. You can override 7891 # by either setting the environment variable LT_MULTI_MODULE 7892 # non-empty at configure time, or by adding -multi_module to the 7893 # link flags. 7894 echo "int foo(void){return 1;}" > conftest.c 7895 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7896 -dynamiclib ${wl}-single_module conftest.c 7897 if test -f libconftest.dylib; then 7898 lt_cv_apple_cc_single_mod=yes 7899 rm -rf libconftest.dylib* 7900 fi 7901 rm conftest.c 7902 fi 7903fi 7904{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7905$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7906 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7907$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7908if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7909 $as_echo_n "(cached) " >&6 7910else 7911 lt_cv_ld_exported_symbols_list=no 7912 save_LDFLAGS=$LDFLAGS 7913 echo "_main" > conftest.sym 7914 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7915 cat >conftest.$ac_ext <<_ACEOF 7916/* confdefs.h. */ 7917_ACEOF 7918cat confdefs.h >>conftest.$ac_ext 7919cat >>conftest.$ac_ext <<_ACEOF 7920/* end confdefs.h. */ 7921 7922int 7923main () 7924{ 7925 7926 ; 7927 return 0; 7928} 7929_ACEOF 7930rm -f conftest.$ac_objext conftest$ac_exeext 7931if { (ac_try="$ac_link" 7932case "(($ac_try" in 7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7934 *) ac_try_echo=$ac_try;; 7935esac 7936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7937$as_echo "$ac_try_echo") >&5 7938 (eval "$ac_link") 2>conftest.er1 7939 ac_status=$? 7940 grep -v '^ *+' conftest.er1 >conftest.err 7941 rm -f conftest.er1 7942 cat conftest.err >&5 7943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7944 (exit $ac_status); } && { 7945 test -z "$ac_c_werror_flag" || 7946 test ! -s conftest.err 7947 } && test -s conftest$ac_exeext && { 7948 test "$cross_compiling" = yes || 7949 $as_test_x conftest$ac_exeext 7950 }; then 7951 lt_cv_ld_exported_symbols_list=yes 7952else 7953 $as_echo "$as_me: failed program was:" >&5 7954sed 's/^/| /' conftest.$ac_ext >&5 7955 7956 lt_cv_ld_exported_symbols_list=no 7957fi 7958 7959rm -rf conftest.dSYM 7960rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7961 conftest$ac_exeext conftest.$ac_ext 7962 LDFLAGS="$save_LDFLAGS" 7963 7964fi 7965{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7966$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7967 case $host_os in 7968 rhapsody* | darwin1.[0123]) 7969 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7970 darwin1.*) 7971 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7972 darwin*) 7973 # if running on 10.5 or later, the deployment target defaults 7974 # to the OS version, if on x86, and 10.4, the deployment 7975 # target defaults to 10.4. Don't you love it? 7976 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7977 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7978 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7979 10.[012]*) 7980 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7981 10.*) 7982 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7983 esac 7984 ;; 7985 esac 7986 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7987 _lt_dar_single_mod='$single_module' 7988 fi 7989 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7990 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7991 else 7992 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 7993 fi 7994 if test "$DSYMUTIL" != ":"; then 7995 _lt_dsymutil="~$DSYMUTIL \$lib || :" 7996 else 7997 _lt_dsymutil= 7998 fi 7999 ;; 8000 esac 8001 8002 8003enable_dlopen=no 8004enable_win32_dll=no 8005 8006# Check whether --enable-libtool-lock was given. 8007if test "${enable_libtool_lock+set}" = set; then 8008 enableval=$enable_libtool_lock; 8009fi 8010 8011test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8012 8013 8014# Check whether --with-pic was given. 8015if test "${with_pic+set}" = set; then 8016 withval=$with_pic; pic_mode="$withval" 8017else 8018 pic_mode=default 8019fi 8020 8021test -z "$pic_mode" && pic_mode=default 8022 8023# Use C for the default configuration in the libtool script 8024tagname= 8025lt_save_CC="$CC" 8026ac_ext=c 8027ac_cpp='$CPP $CPPFLAGS' 8028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8030ac_compiler_gnu=$ac_cv_c_compiler_gnu 8031 8032 8033# Source file extension for C test sources. 8034ac_ext=c 8035 8036# Object file extension for compiled C test sources. 8037objext=o 8038objext=$objext 8039 8040# Code to be used in simple compile tests 8041lt_simple_compile_test_code="int some_variable = 0;" 8042 8043# Code to be used in simple link tests 8044lt_simple_link_test_code='int main(){return(0);}' 8045 8046 8047# If no C compiler was specified, use CC. 8048LTCC=${LTCC-"$CC"} 8049 8050# If no C compiler flags were specified, use CFLAGS. 8051LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8052 8053# Allow CC to be a program name with arguments. 8054compiler=$CC 8055 8056 8057# save warnings/boilerplate of simple test code 8058ac_outfile=conftest.$ac_objext 8059echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8060eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8061_lt_compiler_boilerplate=`cat conftest.err` 8062$rm conftest* 8063 8064ac_outfile=conftest.$ac_objext 8065echo "$lt_simple_link_test_code" >conftest.$ac_ext 8066eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8067_lt_linker_boilerplate=`cat conftest.err` 8068$rm -r conftest* 8069 8070 8071 8072lt_prog_compiler_no_builtin_flag= 8073 8074if test "$GCC" = yes; then 8075 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8076 8077 8078{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8079$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8080if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8081 $as_echo_n "(cached) " >&6 8082else 8083 lt_cv_prog_compiler_rtti_exceptions=no 8084 ac_outfile=conftest.$ac_objext 8085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8086 lt_compiler_flag="-fno-rtti -fno-exceptions" 8087 # Insert the option either (1) after the last *FLAGS variable, or 8088 # (2) before a word containing "conftest.", or (3) at the end. 8089 # Note that $ac_compile itself does not contain backslashes and begins 8090 # with a dollar sign (not a hyphen), so the echo should work correctly. 8091 # The option is referenced via a variable to avoid confusing sed. 8092 lt_compile=`echo "$ac_compile" | $SED \ 8093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8095 -e 's:$: $lt_compiler_flag:'` 8096 (eval echo "\"\$as_me:8096: $lt_compile\"" >&5) 8097 (eval "$lt_compile" 2>conftest.err) 8098 ac_status=$? 8099 cat conftest.err >&5 8100 echo "$as_me:8100: \$? = $ac_status" >&5 8101 if (exit $ac_status) && test -s "$ac_outfile"; then 8102 # The compiler can only warn and ignore the option if not recognized 8103 # So say no if there are warnings other than the usual output. 8104 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8106 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8107 lt_cv_prog_compiler_rtti_exceptions=yes 8108 fi 8109 fi 8110 $rm conftest* 8111 8112fi 8113{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8114$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8115 8116if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8117 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8118else 8119 : 8120fi 8121 8122fi 8123 8124lt_prog_compiler_wl= 8125lt_prog_compiler_pic= 8126lt_prog_compiler_static= 8127 8128{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8129$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8130 8131 if test "$GCC" = yes; then 8132 lt_prog_compiler_wl='-Wl,' 8133 lt_prog_compiler_static='-static' 8134 8135 case $host_os in 8136 aix*) 8137 # All AIX code is PIC. 8138 if test "$host_cpu" = ia64; then 8139 # AIX 5 now supports IA64 processor 8140 lt_prog_compiler_static='-Bstatic' 8141 fi 8142 ;; 8143 8144 amigaos*) 8145 # FIXME: we need at least 68020 code to build shared libraries, but 8146 # adding the `-m68020' flag to GCC prevents building anything better, 8147 # like `-m68040'. 8148 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8149 ;; 8150 8151 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8152 # PIC is the default for these OSes. 8153 ;; 8154 8155 mingw* | cygwin* | pw32* | os2*) 8156 # This hack is so that the source file can tell whether it is being 8157 # built for inclusion in a dll (and should export symbols for example). 8158 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8159 # (--disable-auto-import) libraries 8160 lt_prog_compiler_pic='-DDLL_EXPORT' 8161 ;; 8162 8163 darwin* | rhapsody*) 8164 # PIC is the default on this platform 8165 # Common symbols not allowed in MH_DYLIB files 8166 lt_prog_compiler_pic='-fno-common' 8167 ;; 8168 8169 interix[3-9]*) 8170 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8171 # Instead, we relocate shared libraries at runtime. 8172 ;; 8173 8174 msdosdjgpp*) 8175 # Just because we use GCC doesn't mean we suddenly get shared libraries 8176 # on systems that don't support them. 8177 lt_prog_compiler_can_build_shared=no 8178 enable_shared=no 8179 ;; 8180 8181 sysv4*MP*) 8182 if test -d /usr/nec; then 8183 lt_prog_compiler_pic=-Kconform_pic 8184 fi 8185 ;; 8186 8187 hpux*) 8188 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8189 # not for PA HP-UX. 8190 case $host_cpu in 8191 hppa*64*|ia64*) 8192 # +Z the default 8193 ;; 8194 *) 8195 lt_prog_compiler_pic='-fPIC' 8196 ;; 8197 esac 8198 ;; 8199 8200 *) 8201 lt_prog_compiler_pic='-fPIC' 8202 ;; 8203 esac 8204 else 8205 # PORTME Check for flag to pass linker flags through the system compiler. 8206 case $host_os in 8207 aix*) 8208 lt_prog_compiler_wl='-Wl,' 8209 if test "$host_cpu" = ia64; then 8210 # AIX 5 now supports IA64 processor 8211 lt_prog_compiler_static='-Bstatic' 8212 else 8213 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8214 fi 8215 ;; 8216 darwin*) 8217 # PIC is the default on this platform 8218 # Common symbols not allowed in MH_DYLIB files 8219 case $cc_basename in 8220 xlc*) 8221 lt_prog_compiler_pic='-qnocommon' 8222 lt_prog_compiler_wl='-Wl,' 8223 ;; 8224 esac 8225 ;; 8226 8227 mingw* | cygwin* | pw32* | os2*) 8228 # This hack is so that the source file can tell whether it is being 8229 # built for inclusion in a dll (and should export symbols for example). 8230 lt_prog_compiler_pic='-DDLL_EXPORT' 8231 ;; 8232 8233 hpux9* | hpux10* | hpux11*) 8234 lt_prog_compiler_wl='-Wl,' 8235 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8236 # not for PA HP-UX. 8237 case $host_cpu in 8238 hppa*64*|ia64*) 8239 # +Z the default 8240 ;; 8241 *) 8242 lt_prog_compiler_pic='+Z' 8243 ;; 8244 esac 8245 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8246 lt_prog_compiler_static='${wl}-a ${wl}archive' 8247 ;; 8248 8249 irix5* | irix6* | nonstopux*) 8250 lt_prog_compiler_wl='-Wl,' 8251 # PIC (with -KPIC) is the default. 8252 lt_prog_compiler_static='-non_shared' 8253 ;; 8254 8255 newsos6) 8256 lt_prog_compiler_pic='-KPIC' 8257 lt_prog_compiler_static='-Bstatic' 8258 ;; 8259 8260 linux* | k*bsd*-gnu) 8261 case $cc_basename in 8262 icc* | ecc*) 8263 lt_prog_compiler_wl='-Wl,' 8264 lt_prog_compiler_pic='-KPIC' 8265 lt_prog_compiler_static='-static' 8266 ;; 8267 pgcc* | pgf77* | pgf90* | pgf95*) 8268 # Portland Group compilers (*not* the Pentium gcc compiler, 8269 # which looks to be a dead project) 8270 lt_prog_compiler_wl='-Wl,' 8271 lt_prog_compiler_pic='-fpic' 8272 lt_prog_compiler_static='-Bstatic' 8273 ;; 8274 ccc*) 8275 lt_prog_compiler_wl='-Wl,' 8276 # All Alpha code is PIC. 8277 lt_prog_compiler_static='-non_shared' 8278 ;; 8279 *) 8280 case `$CC -V 2>&1 | sed 5q` in 8281 *Sun\ C*) 8282 # Sun C 5.9 8283 lt_prog_compiler_pic='-KPIC' 8284 lt_prog_compiler_static='-Bstatic' 8285 lt_prog_compiler_wl='-Wl,' 8286 ;; 8287 *Sun\ F*) 8288 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8289 lt_prog_compiler_pic='-KPIC' 8290 lt_prog_compiler_static='-Bstatic' 8291 lt_prog_compiler_wl='' 8292 ;; 8293 esac 8294 ;; 8295 esac 8296 ;; 8297 8298 osf3* | osf4* | osf5*) 8299 lt_prog_compiler_wl='-Wl,' 8300 # All OSF/1 code is PIC. 8301 lt_prog_compiler_static='-non_shared' 8302 ;; 8303 8304 rdos*) 8305 lt_prog_compiler_static='-non_shared' 8306 ;; 8307 8308 solaris*) 8309 lt_prog_compiler_pic='-KPIC' 8310 lt_prog_compiler_static='-Bstatic' 8311 case $cc_basename in 8312 f77* | f90* | f95*) 8313 lt_prog_compiler_wl='-Qoption ld ';; 8314 *) 8315 lt_prog_compiler_wl='-Wl,';; 8316 esac 8317 ;; 8318 8319 sunos4*) 8320 lt_prog_compiler_wl='-Qoption ld ' 8321 lt_prog_compiler_pic='-PIC' 8322 lt_prog_compiler_static='-Bstatic' 8323 ;; 8324 8325 sysv4 | sysv4.2uw2* | sysv4.3*) 8326 lt_prog_compiler_wl='-Wl,' 8327 lt_prog_compiler_pic='-KPIC' 8328 lt_prog_compiler_static='-Bstatic' 8329 ;; 8330 8331 sysv4*MP*) 8332 if test -d /usr/nec ;then 8333 lt_prog_compiler_pic='-Kconform_pic' 8334 lt_prog_compiler_static='-Bstatic' 8335 fi 8336 ;; 8337 8338 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8339 lt_prog_compiler_wl='-Wl,' 8340 lt_prog_compiler_pic='-KPIC' 8341 lt_prog_compiler_static='-Bstatic' 8342 ;; 8343 8344 unicos*) 8345 lt_prog_compiler_wl='-Wl,' 8346 lt_prog_compiler_can_build_shared=no 8347 ;; 8348 8349 uts4*) 8350 lt_prog_compiler_pic='-pic' 8351 lt_prog_compiler_static='-Bstatic' 8352 ;; 8353 8354 *) 8355 lt_prog_compiler_can_build_shared=no 8356 ;; 8357 esac 8358 fi 8359 8360{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8361$as_echo "$lt_prog_compiler_pic" >&6; } 8362 8363# 8364# Check to make sure the PIC flag actually works. 8365# 8366if test -n "$lt_prog_compiler_pic"; then 8367 8368{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8369$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8370if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 8371 $as_echo_n "(cached) " >&6 8372else 8373 lt_cv_prog_compiler_pic_works=no 8374 ac_outfile=conftest.$ac_objext 8375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8376 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8377 # Insert the option either (1) after the last *FLAGS variable, or 8378 # (2) before a word containing "conftest.", or (3) at the end. 8379 # Note that $ac_compile itself does not contain backslashes and begins 8380 # with a dollar sign (not a hyphen), so the echo should work correctly. 8381 # The option is referenced via a variable to avoid confusing sed. 8382 lt_compile=`echo "$ac_compile" | $SED \ 8383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8385 -e 's:$: $lt_compiler_flag:'` 8386 (eval echo "\"\$as_me:8386: $lt_compile\"" >&5) 8387 (eval "$lt_compile" 2>conftest.err) 8388 ac_status=$? 8389 cat conftest.err >&5 8390 echo "$as_me:8390: \$? = $ac_status" >&5 8391 if (exit $ac_status) && test -s "$ac_outfile"; then 8392 # The compiler can only warn and ignore the option if not recognized 8393 # So say no if there are warnings other than the usual output. 8394 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8396 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8397 lt_cv_prog_compiler_pic_works=yes 8398 fi 8399 fi 8400 $rm conftest* 8401 8402fi 8403{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 8404$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8405 8406if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8407 case $lt_prog_compiler_pic in 8408 "" | " "*) ;; 8409 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8410 esac 8411else 8412 lt_prog_compiler_pic= 8413 lt_prog_compiler_can_build_shared=no 8414fi 8415 8416fi 8417case $host_os in 8418 # For platforms which do not support PIC, -DPIC is meaningless: 8419 *djgpp*) 8420 lt_prog_compiler_pic= 8421 ;; 8422 *) 8423 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8424 ;; 8425esac 8426 8427# 8428# Check to make sure the static flag actually works. 8429# 8430wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8431{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8432$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8433if test "${lt_cv_prog_compiler_static_works+set}" = set; then 8434 $as_echo_n "(cached) " >&6 8435else 8436 lt_cv_prog_compiler_static_works=no 8437 save_LDFLAGS="$LDFLAGS" 8438 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8439 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8440 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8441 # The linker can only warn and ignore the option if not recognized 8442 # So say no if there are warnings 8443 if test -s conftest.err; then 8444 # Append any errors to the config.log. 8445 cat conftest.err 1>&5 8446 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8448 if diff conftest.exp conftest.er2 >/dev/null; then 8449 lt_cv_prog_compiler_static_works=yes 8450 fi 8451 else 8452 lt_cv_prog_compiler_static_works=yes 8453 fi 8454 fi 8455 $rm -r conftest* 8456 LDFLAGS="$save_LDFLAGS" 8457 8458fi 8459{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 8460$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8461 8462if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8463 : 8464else 8465 lt_prog_compiler_static= 8466fi 8467 8468 8469{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8470$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8471if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8472 $as_echo_n "(cached) " >&6 8473else 8474 lt_cv_prog_compiler_c_o=no 8475 $rm -r conftest 2>/dev/null 8476 mkdir conftest 8477 cd conftest 8478 mkdir out 8479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8480 8481 lt_compiler_flag="-o out/conftest2.$ac_objext" 8482 # Insert the option either (1) after the last *FLAGS variable, or 8483 # (2) before a word containing "conftest.", or (3) at the end. 8484 # Note that $ac_compile itself does not contain backslashes and begins 8485 # with a dollar sign (not a hyphen), so the echo should work correctly. 8486 lt_compile=`echo "$ac_compile" | $SED \ 8487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8489 -e 's:$: $lt_compiler_flag:'` 8490 (eval echo "\"\$as_me:8490: $lt_compile\"" >&5) 8491 (eval "$lt_compile" 2>out/conftest.err) 8492 ac_status=$? 8493 cat out/conftest.err >&5 8494 echo "$as_me:8494: \$? = $ac_status" >&5 8495 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8496 then 8497 # The compiler can only warn and ignore the option if not recognized 8498 # So say no if there are warnings 8499 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8500 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8501 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8502 lt_cv_prog_compiler_c_o=yes 8503 fi 8504 fi 8505 chmod u+w . 2>&5 8506 $rm conftest* 8507 # SGI C++ compiler will create directory out/ii_files/ for 8508 # template instantiation 8509 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8510 $rm out/* && rmdir out 8511 cd .. 8512 rmdir conftest 8513 $rm conftest* 8514 8515fi 8516{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8517$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8518 8519 8520hard_links="nottested" 8521if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8522 # do not overwrite the value of need_locks provided by the user 8523 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8524$as_echo_n "checking if we can lock with hard links... " >&6; } 8525 hard_links=yes 8526 $rm conftest* 8527 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8528 touch conftest.a 8529 ln conftest.a conftest.b 2>&5 || hard_links=no 8530 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8531 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8532$as_echo "$hard_links" >&6; } 8533 if test "$hard_links" = no; then 8534 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8535$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8536 need_locks=warn 8537 fi 8538else 8539 need_locks=no 8540fi 8541 8542{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8543$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8544 8545 runpath_var= 8546 allow_undefined_flag= 8547 enable_shared_with_static_runtimes=no 8548 archive_cmds= 8549 archive_expsym_cmds= 8550 old_archive_From_new_cmds= 8551 old_archive_from_expsyms_cmds= 8552 export_dynamic_flag_spec= 8553 whole_archive_flag_spec= 8554 thread_safe_flag_spec= 8555 hardcode_libdir_flag_spec= 8556 hardcode_libdir_flag_spec_ld= 8557 hardcode_libdir_separator= 8558 hardcode_direct=no 8559 hardcode_minus_L=no 8560 hardcode_shlibpath_var=unsupported 8561 link_all_deplibs=unknown 8562 hardcode_automatic=no 8563 module_cmds= 8564 module_expsym_cmds= 8565 always_export_symbols=no 8566 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8567 # include_expsyms should be a list of space-separated symbols to be *always* 8568 # included in the symbol list 8569 include_expsyms= 8570 # exclude_expsyms can be an extended regexp of symbols to exclude 8571 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8572 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8573 # as well as any symbol that contains `d'. 8574 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8575 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8576 # platforms (ab)use it in PIC code, but their linkers get confused if 8577 # the symbol is explicitly referenced. Since portable code cannot 8578 # rely on this symbol name, it's probably fine to never include it in 8579 # preloaded symbol tables. 8580 # Exclude shared library initialization/finalization symbols. 8581 extract_expsyms_cmds= 8582 # Just being paranoid about ensuring that cc_basename is set. 8583 for cc_temp in $compiler""; do 8584 case $cc_temp in 8585 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8586 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8587 \-*) ;; 8588 *) break;; 8589 esac 8590done 8591cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8592 8593 case $host_os in 8594 cygwin* | mingw* | pw32*) 8595 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8596 # When not using gcc, we currently assume that we are using 8597 # Microsoft Visual C++. 8598 if test "$GCC" != yes; then 8599 with_gnu_ld=no 8600 fi 8601 ;; 8602 interix*) 8603 # we just hope/assume this is gcc and not c89 (= MSVC++) 8604 with_gnu_ld=yes 8605 ;; 8606 openbsd*) 8607 with_gnu_ld=no 8608 ;; 8609 esac 8610 8611 ld_shlibs=yes 8612 if test "$with_gnu_ld" = yes; then 8613 # If archive_cmds runs LD, not CC, wlarc should be empty 8614 wlarc='${wl}' 8615 8616 # Set some defaults for GNU ld with shared library support. These 8617 # are reset later if shared libraries are not supported. Putting them 8618 # here allows them to be overridden if necessary. 8619 runpath_var=LD_RUN_PATH 8620 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8621 export_dynamic_flag_spec='${wl}--export-dynamic' 8622 # ancient GNU ld didn't support --whole-archive et. al. 8623 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8624 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8625 else 8626 whole_archive_flag_spec= 8627 fi 8628 supports_anon_versioning=no 8629 case `$LD -v 2>/dev/null` in 8630 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8631 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8632 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8633 *\ 2.11.*) ;; # other 2.11 versions 8634 *) supports_anon_versioning=yes ;; 8635 esac 8636 8637 # See if GNU ld supports shared libraries. 8638 case $host_os in 8639 aix[3-9]*) 8640 # On AIX/PPC, the GNU linker is very broken 8641 if test "$host_cpu" != ia64; then 8642 ld_shlibs=no 8643 cat <<EOF 1>&2 8644 8645*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8646*** to be unable to reliably create shared libraries on AIX. 8647*** Therefore, libtool is disabling shared libraries support. If you 8648*** really care for shared libraries, you may want to modify your PATH 8649*** so that a non-GNU linker is found, and then restart. 8650 8651EOF 8652 fi 8653 ;; 8654 8655 amigaos*) 8656 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)' 8657 hardcode_libdir_flag_spec='-L$libdir' 8658 hardcode_minus_L=yes 8659 8660 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8661 # that the semantics of dynamic libraries on AmigaOS, at least up 8662 # to version 4, is to share data among multiple programs linked 8663 # with the same dynamic library. Since this doesn't match the 8664 # behavior of shared libraries on other platforms, we can't use 8665 # them. 8666 ld_shlibs=no 8667 ;; 8668 8669 beos*) 8670 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8671 allow_undefined_flag=unsupported 8672 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8673 # support --undefined. This deserves some investigation. FIXME 8674 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8675 else 8676 ld_shlibs=no 8677 fi 8678 ;; 8679 8680 cygwin* | mingw* | pw32*) 8681 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8682 # as there is no search path for DLLs. 8683 hardcode_libdir_flag_spec='-L$libdir' 8684 allow_undefined_flag=unsupported 8685 always_export_symbols=no 8686 enable_shared_with_static_runtimes=yes 8687 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8688 8689 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8691 # If the export-symbols file already is a .def file (1st line 8692 # is EXPORTS), use it as is; otherwise, prepend... 8693 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8694 cp $export_symbols $output_objdir/$soname.def; 8695 else 8696 echo EXPORTS > $output_objdir/$soname.def; 8697 cat $export_symbols >> $output_objdir/$soname.def; 8698 fi~ 8699 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8700 else 8701 ld_shlibs=no 8702 fi 8703 ;; 8704 8705 interix[3-9]*) 8706 hardcode_direct=no 8707 hardcode_shlibpath_var=no 8708 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8709 export_dynamic_flag_spec='${wl}-E' 8710 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8711 # Instead, shared libraries are loaded at an image base (0x10000000 by 8712 # default) and relocated if they conflict, which is a slow very memory 8713 # consuming and fragmenting process. To avoid this, we pick a random, 8714 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8715 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8716 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8717 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' 8718 ;; 8719 8720 gnu* | linux* | k*bsd*-gnu) 8721 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8722 tmp_addflag= 8723 case $cc_basename,$host_cpu in 8724 pgcc*) # Portland Group C compiler 8725 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' 8726 tmp_addflag=' $pic_flag' 8727 ;; 8728 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8729 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' 8730 tmp_addflag=' $pic_flag -Mnomain' ;; 8731 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8732 tmp_addflag=' -i_dynamic' ;; 8733 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8734 tmp_addflag=' -i_dynamic -nofor_main' ;; 8735 ifc* | ifort*) # Intel Fortran compiler 8736 tmp_addflag=' -nofor_main' ;; 8737 esac 8738 case `$CC -V 2>&1 | sed 5q` in 8739 *Sun\ C*) # Sun C 5.9 8740 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' 8741 tmp_sharedflag='-G' ;; 8742 *Sun\ F*) # Sun Fortran 8.3 8743 tmp_sharedflag='-G' ;; 8744 *) 8745 tmp_sharedflag='-shared' ;; 8746 esac 8747 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8748 8749 if test $supports_anon_versioning = yes; then 8750 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8751 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8752 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8753 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8754 fi 8755 else 8756 ld_shlibs=no 8757 fi 8758 ;; 8759 8760 netbsd*) 8761 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8762 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8763 wlarc= 8764 else 8765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8766 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8767 fi 8768 ;; 8769 8770 solaris*) 8771 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8772 ld_shlibs=no 8773 cat <<EOF 1>&2 8774 8775*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8776*** create shared libraries on Solaris systems. Therefore, libtool 8777*** is disabling shared libraries support. We urge you to upgrade GNU 8778*** binutils to release 2.9.1 or newer. Another option is to modify 8779*** your PATH or compiler configuration so that the native linker is 8780*** used, and then restart. 8781 8782EOF 8783 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8785 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8786 else 8787 ld_shlibs=no 8788 fi 8789 ;; 8790 8791 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8792 case `$LD -v 2>&1` in 8793 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8794 ld_shlibs=no 8795 cat <<_LT_EOF 1>&2 8796 8797*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8798*** reliably create shared libraries on SCO systems. Therefore, libtool 8799*** is disabling shared libraries support. We urge you to upgrade GNU 8800*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8801*** your PATH or compiler configuration so that the native linker is 8802*** used, and then restart. 8803 8804_LT_EOF 8805 ;; 8806 *) 8807 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8808 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8810 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8811 else 8812 ld_shlibs=no 8813 fi 8814 ;; 8815 esac 8816 ;; 8817 8818 sunos4*) 8819 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8820 wlarc= 8821 hardcode_direct=yes 8822 hardcode_shlibpath_var=no 8823 ;; 8824 8825 *) 8826 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8828 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8829 else 8830 ld_shlibs=no 8831 fi 8832 ;; 8833 esac 8834 8835 if test "$ld_shlibs" = no; then 8836 runpath_var= 8837 hardcode_libdir_flag_spec= 8838 export_dynamic_flag_spec= 8839 whole_archive_flag_spec= 8840 fi 8841 else 8842 # PORTME fill in a description of your system's linker (not GNU ld) 8843 case $host_os in 8844 aix3*) 8845 allow_undefined_flag=unsupported 8846 always_export_symbols=yes 8847 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' 8848 # Note: this linker hardcodes the directories in LIBPATH if there 8849 # are no directories specified by -L. 8850 hardcode_minus_L=yes 8851 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8852 # Neither direct hardcoding nor static linking is supported with a 8853 # broken collect2. 8854 hardcode_direct=unsupported 8855 fi 8856 ;; 8857 8858 aix[4-9]*) 8859 if test "$host_cpu" = ia64; then 8860 # On IA64, the linker does run time linking by default, so we don't 8861 # have to do anything special. 8862 aix_use_runtimelinking=no 8863 exp_sym_flag='-Bexport' 8864 no_entry_flag="" 8865 else 8866 # If we're using GNU nm, then we don't want the "-C" option. 8867 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8868 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8869 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' 8870 else 8871 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' 8872 fi 8873 aix_use_runtimelinking=no 8874 8875 # Test if we are trying to use run time linking or normal 8876 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8877 # need to do runtime linking. 8878 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8879 for ld_flag in $LDFLAGS; do 8880 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8881 aix_use_runtimelinking=yes 8882 break 8883 fi 8884 done 8885 ;; 8886 esac 8887 8888 exp_sym_flag='-bexport' 8889 no_entry_flag='-bnoentry' 8890 fi 8891 8892 # When large executables or shared objects are built, AIX ld can 8893 # have problems creating the table of contents. If linking a library 8894 # or program results in "error TOC overflow" add -mminimal-toc to 8895 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8896 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8897 8898 archive_cmds='' 8899 hardcode_direct=yes 8900 hardcode_libdir_separator=':' 8901 link_all_deplibs=yes 8902 8903 if test "$GCC" = yes; then 8904 case $host_os in aix4.[012]|aix4.[012].*) 8905 # We only want to do this on AIX 4.2 and lower, the check 8906 # below for broken collect2 doesn't work under 4.3+ 8907 collect2name=`${CC} -print-prog-name=collect2` 8908 if test -f "$collect2name" && \ 8909 strings "$collect2name" | grep resolve_lib_name >/dev/null 8910 then 8911 # We have reworked collect2 8912 : 8913 else 8914 # We have old collect2 8915 hardcode_direct=unsupported 8916 # It fails to find uninstalled libraries when the uninstalled 8917 # path is not listed in the libpath. Setting hardcode_minus_L 8918 # to unsupported forces relinking 8919 hardcode_minus_L=yes 8920 hardcode_libdir_flag_spec='-L$libdir' 8921 hardcode_libdir_separator= 8922 fi 8923 ;; 8924 esac 8925 shared_flag='-shared' 8926 if test "$aix_use_runtimelinking" = yes; then 8927 shared_flag="$shared_flag "'${wl}-G' 8928 fi 8929 else 8930 # not using gcc 8931 if test "$host_cpu" = ia64; then 8932 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8933 # chokes on -Wl,-G. The following line is correct: 8934 shared_flag='-G' 8935 else 8936 if test "$aix_use_runtimelinking" = yes; then 8937 shared_flag='${wl}-G' 8938 else 8939 shared_flag='${wl}-bM:SRE' 8940 fi 8941 fi 8942 fi 8943 8944 # It seems that -bexpall does not export symbols beginning with 8945 # underscore (_), so it is better to generate a list of symbols to export. 8946 always_export_symbols=yes 8947 if test "$aix_use_runtimelinking" = yes; then 8948 # Warning - without using the other runtime loading flags (-brtl), 8949 # -berok will link without error, but may produce a broken library. 8950 allow_undefined_flag='-berok' 8951 # Determine the default libpath from the value encoded in an empty executable. 8952 cat >conftest.$ac_ext <<_ACEOF 8953/* confdefs.h. */ 8954_ACEOF 8955cat confdefs.h >>conftest.$ac_ext 8956cat >>conftest.$ac_ext <<_ACEOF 8957/* end confdefs.h. */ 8958 8959int 8960main () 8961{ 8962 8963 ; 8964 return 0; 8965} 8966_ACEOF 8967rm -f conftest.$ac_objext conftest$ac_exeext 8968if { (ac_try="$ac_link" 8969case "(($ac_try" in 8970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8971 *) ac_try_echo=$ac_try;; 8972esac 8973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8974$as_echo "$ac_try_echo") >&5 8975 (eval "$ac_link") 2>conftest.er1 8976 ac_status=$? 8977 grep -v '^ *+' conftest.er1 >conftest.err 8978 rm -f conftest.er1 8979 cat conftest.err >&5 8980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8981 (exit $ac_status); } && { 8982 test -z "$ac_c_werror_flag" || 8983 test ! -s conftest.err 8984 } && test -s conftest$ac_exeext && { 8985 test "$cross_compiling" = yes || 8986 $as_test_x conftest$ac_exeext 8987 }; then 8988 8989lt_aix_libpath_sed=' 8990 /Import File Strings/,/^$/ { 8991 /^0/ { 8992 s/^0 *\(.*\)$/\1/ 8993 p 8994 } 8995 }' 8996aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8997# Check for a 64-bit object if we didn't find anything. 8998if test -z "$aix_libpath"; then 8999 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9000fi 9001else 9002 $as_echo "$as_me: failed program was:" >&5 9003sed 's/^/| /' conftest.$ac_ext >&5 9004 9005 9006fi 9007 9008rm -rf conftest.dSYM 9009rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9010 conftest$ac_exeext conftest.$ac_ext 9011if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9012 9013 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9014 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" 9015 else 9016 if test "$host_cpu" = ia64; then 9017 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9018 allow_undefined_flag="-z nodefs" 9019 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" 9020 else 9021 # Determine the default libpath from the value encoded in an empty executable. 9022 cat >conftest.$ac_ext <<_ACEOF 9023/* confdefs.h. */ 9024_ACEOF 9025cat confdefs.h >>conftest.$ac_ext 9026cat >>conftest.$ac_ext <<_ACEOF 9027/* end confdefs.h. */ 9028 9029int 9030main () 9031{ 9032 9033 ; 9034 return 0; 9035} 9036_ACEOF 9037rm -f conftest.$ac_objext conftest$ac_exeext 9038if { (ac_try="$ac_link" 9039case "(($ac_try" in 9040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9041 *) ac_try_echo=$ac_try;; 9042esac 9043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9044$as_echo "$ac_try_echo") >&5 9045 (eval "$ac_link") 2>conftest.er1 9046 ac_status=$? 9047 grep -v '^ *+' conftest.er1 >conftest.err 9048 rm -f conftest.er1 9049 cat conftest.err >&5 9050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9051 (exit $ac_status); } && { 9052 test -z "$ac_c_werror_flag" || 9053 test ! -s conftest.err 9054 } && test -s conftest$ac_exeext && { 9055 test "$cross_compiling" = yes || 9056 $as_test_x conftest$ac_exeext 9057 }; then 9058 9059lt_aix_libpath_sed=' 9060 /Import File Strings/,/^$/ { 9061 /^0/ { 9062 s/^0 *\(.*\)$/\1/ 9063 p 9064 } 9065 }' 9066aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9067# Check for a 64-bit object if we didn't find anything. 9068if test -z "$aix_libpath"; then 9069 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9070fi 9071else 9072 $as_echo "$as_me: failed program was:" >&5 9073sed 's/^/| /' conftest.$ac_ext >&5 9074 9075 9076fi 9077 9078rm -rf conftest.dSYM 9079rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9080 conftest$ac_exeext conftest.$ac_ext 9081if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9082 9083 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9084 # Warning - without using the other run time loading flags, 9085 # -berok will link without error, but may produce a broken library. 9086 no_undefined_flag=' ${wl}-bernotok' 9087 allow_undefined_flag=' ${wl}-berok' 9088 # Exported symbols can be pulled into shared objects from archives 9089 whole_archive_flag_spec='$convenience' 9090 archive_cmds_need_lc=yes 9091 # This is similar to how AIX traditionally builds its shared libraries. 9092 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' 9093 fi 9094 fi 9095 ;; 9096 9097 amigaos*) 9098 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)' 9099 hardcode_libdir_flag_spec='-L$libdir' 9100 hardcode_minus_L=yes 9101 # see comment about different semantics on the GNU ld section 9102 ld_shlibs=no 9103 ;; 9104 9105 bsdi[45]*) 9106 export_dynamic_flag_spec=-rdynamic 9107 ;; 9108 9109 cygwin* | mingw* | pw32*) 9110 # When not using gcc, we currently assume that we are using 9111 # Microsoft Visual C++. 9112 # hardcode_libdir_flag_spec is actually meaningless, as there is 9113 # no search path for DLLs. 9114 hardcode_libdir_flag_spec=' ' 9115 allow_undefined_flag=unsupported 9116 # Tell ltmain to make .lib files, not .a files. 9117 libext=lib 9118 # Tell ltmain to make .dll files, not .so files. 9119 shrext_cmds=".dll" 9120 # FIXME: Setting linknames here is a bad hack. 9121 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9122 # The linker will automatically build a .lib file if we build a DLL. 9123 old_archive_From_new_cmds='true' 9124 # FIXME: Should let the user specify the lib program. 9125 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9126 fix_srcfile_path='`cygpath -w "$srcfile"`' 9127 enable_shared_with_static_runtimes=yes 9128 ;; 9129 9130 darwin* | rhapsody*) 9131 case $host_os in 9132 rhapsody* | darwin1.[012]) 9133 allow_undefined_flag='${wl}-undefined ${wl}suppress' 9134 ;; 9135 *) # Darwin 1.3 on 9136 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9137 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9138 else 9139 case ${MACOSX_DEPLOYMENT_TARGET} in 9140 10.[012]) 9141 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9142 ;; 9143 10.*) 9144 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 9145 ;; 9146 esac 9147 fi 9148 ;; 9149 esac 9150 archive_cmds_need_lc=no 9151 hardcode_direct=no 9152 hardcode_automatic=yes 9153 hardcode_shlibpath_var=unsupported 9154 whole_archive_flag_spec='' 9155 link_all_deplibs=yes 9156 if test "$GCC" = yes ; then 9157 output_verbose_link_cmd='echo' 9158 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9159 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9160 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}" 9161 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}" 9162 else 9163 case $cc_basename in 9164 xlc*) 9165 output_verbose_link_cmd='echo' 9166 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 9167 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9168 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9169 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}' 9170 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}' 9171 ;; 9172 *) 9173 ld_shlibs=no 9174 ;; 9175 esac 9176 fi 9177 ;; 9178 9179 dgux*) 9180 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9181 hardcode_libdir_flag_spec='-L$libdir' 9182 hardcode_shlibpath_var=no 9183 ;; 9184 9185 freebsd1*) 9186 ld_shlibs=no 9187 ;; 9188 9189 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9190 # support. Future versions do this automatically, but an explicit c++rt0.o 9191 # does not break anything, and helps significantly (at the cost of a little 9192 # extra space). 9193 freebsd2.2*) 9194 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9195 hardcode_libdir_flag_spec='-R$libdir' 9196 hardcode_direct=yes 9197 hardcode_shlibpath_var=no 9198 ;; 9199 9200 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9201 freebsd2*) 9202 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9203 hardcode_direct=yes 9204 hardcode_minus_L=yes 9205 hardcode_shlibpath_var=no 9206 ;; 9207 9208 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9209 freebsd* | dragonfly*) 9210 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9211 hardcode_libdir_flag_spec='-R$libdir' 9212 hardcode_direct=yes 9213 hardcode_shlibpath_var=no 9214 ;; 9215 9216 hpux9*) 9217 if test "$GCC" = yes; then 9218 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' 9219 else 9220 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' 9221 fi 9222 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9223 hardcode_libdir_separator=: 9224 hardcode_direct=yes 9225 9226 # hardcode_minus_L: Not really in the search PATH, 9227 # but as the default location of the library. 9228 hardcode_minus_L=yes 9229 export_dynamic_flag_spec='${wl}-E' 9230 ;; 9231 9232 hpux10*) 9233 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9234 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9235 else 9236 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9237 fi 9238 if test "$with_gnu_ld" = no; then 9239 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9240 hardcode_libdir_separator=: 9241 9242 hardcode_direct=yes 9243 export_dynamic_flag_spec='${wl}-E' 9244 9245 # hardcode_minus_L: Not really in the search PATH, 9246 # but as the default location of the library. 9247 hardcode_minus_L=yes 9248 fi 9249 ;; 9250 9251 hpux11*) 9252 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9253 case $host_cpu in 9254 hppa*64*) 9255 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9256 ;; 9257 ia64*) 9258 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9259 ;; 9260 *) 9261 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9262 ;; 9263 esac 9264 else 9265 case $host_cpu in 9266 hppa*64*) 9267 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9268 ;; 9269 ia64*) 9270 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9271 ;; 9272 *) 9273 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9274 ;; 9275 esac 9276 fi 9277 if test "$with_gnu_ld" = no; then 9278 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9279 hardcode_libdir_separator=: 9280 9281 case $host_cpu in 9282 hppa*64*|ia64*) 9283 hardcode_libdir_flag_spec_ld='+b $libdir' 9284 hardcode_direct=no 9285 hardcode_shlibpath_var=no 9286 ;; 9287 *) 9288 hardcode_direct=yes 9289 export_dynamic_flag_spec='${wl}-E' 9290 9291 # hardcode_minus_L: Not really in the search PATH, 9292 # but as the default location of the library. 9293 hardcode_minus_L=yes 9294 ;; 9295 esac 9296 fi 9297 ;; 9298 9299 irix5* | irix6* | nonstopux*) 9300 if test "$GCC" = yes; then 9301 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' 9302 else 9303 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' 9304 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9305 fi 9306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9307 hardcode_libdir_separator=: 9308 link_all_deplibs=yes 9309 ;; 9310 9311 netbsd*) 9312 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9313 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9314 else 9315 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9316 fi 9317 hardcode_libdir_flag_spec='-R$libdir' 9318 hardcode_direct=yes 9319 hardcode_shlibpath_var=no 9320 ;; 9321 9322 newsos6) 9323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9324 hardcode_direct=yes 9325 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9326 hardcode_libdir_separator=: 9327 hardcode_shlibpath_var=no 9328 ;; 9329 9330 openbsd*) 9331 if test -f /usr/libexec/ld.so; then 9332 hardcode_direct=yes 9333 hardcode_shlibpath_var=no 9334 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9335 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9336 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9337 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9338 export_dynamic_flag_spec='${wl}-E' 9339 else 9340 case $host_os in 9341 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9343 hardcode_libdir_flag_spec='-R$libdir' 9344 ;; 9345 *) 9346 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9347 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9348 ;; 9349 esac 9350 fi 9351 else 9352 ld_shlibs=no 9353 fi 9354 ;; 9355 9356 os2*) 9357 hardcode_libdir_flag_spec='-L$libdir' 9358 hardcode_minus_L=yes 9359 allow_undefined_flag=unsupported 9360 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' 9361 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9362 ;; 9363 9364 osf3*) 9365 if test "$GCC" = yes; then 9366 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9367 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' 9368 else 9369 allow_undefined_flag=' -expect_unresolved \*' 9370 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' 9371 fi 9372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9373 hardcode_libdir_separator=: 9374 ;; 9375 9376 osf4* | osf5*) # as osf3* with the addition of -msym flag 9377 if test "$GCC" = yes; then 9378 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9379 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' 9380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9381 else 9382 allow_undefined_flag=' -expect_unresolved \*' 9383 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' 9384 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 9385 $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' 9386 9387 # Both c and cxx compiler support -rpath directly 9388 hardcode_libdir_flag_spec='-rpath $libdir' 9389 fi 9390 hardcode_libdir_separator=: 9391 ;; 9392 9393 solaris*) 9394 no_undefined_flag=' -z text' 9395 if test "$GCC" = yes; then 9396 wlarc='${wl}' 9397 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9398 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9399 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 9400 else 9401 wlarc='' 9402 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9403 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9404 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 9405 fi 9406 hardcode_libdir_flag_spec='-R$libdir' 9407 hardcode_shlibpath_var=no 9408 case $host_os in 9409 solaris2.[0-5] | solaris2.[0-5].*) ;; 9410 *) 9411 # The compiler driver will combine and reorder linker options, 9412 # but understands `-z linker_flag'. GCC discards it without `$wl', 9413 # but is careful enough not to reorder. 9414 # Supported since Solaris 2.6 (maybe 2.5.1?) 9415 if test "$GCC" = yes; then 9416 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9417 else 9418 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9419 fi 9420 ;; 9421 esac 9422 link_all_deplibs=yes 9423 ;; 9424 9425 sunos4*) 9426 if test "x$host_vendor" = xsequent; then 9427 # Use $CC to link under sequent, because it throws in some extra .o 9428 # files that make .init and .fini sections work. 9429 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9430 else 9431 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9432 fi 9433 hardcode_libdir_flag_spec='-L$libdir' 9434 hardcode_direct=yes 9435 hardcode_minus_L=yes 9436 hardcode_shlibpath_var=no 9437 ;; 9438 9439 sysv4) 9440 case $host_vendor in 9441 sni) 9442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9443 hardcode_direct=yes # is this really true??? 9444 ;; 9445 siemens) 9446 ## LD is ld it makes a PLAMLIB 9447 ## CC just makes a GrossModule. 9448 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9449 reload_cmds='$CC -r -o $output$reload_objs' 9450 hardcode_direct=no 9451 ;; 9452 motorola) 9453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9454 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9455 ;; 9456 esac 9457 runpath_var='LD_RUN_PATH' 9458 hardcode_shlibpath_var=no 9459 ;; 9460 9461 sysv4.3*) 9462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9463 hardcode_shlibpath_var=no 9464 export_dynamic_flag_spec='-Bexport' 9465 ;; 9466 9467 sysv4*MP*) 9468 if test -d /usr/nec; then 9469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9470 hardcode_shlibpath_var=no 9471 runpath_var=LD_RUN_PATH 9472 hardcode_runpath_var=yes 9473 ld_shlibs=yes 9474 fi 9475 ;; 9476 9477 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9478 no_undefined_flag='${wl}-z,text' 9479 archive_cmds_need_lc=no 9480 hardcode_shlibpath_var=no 9481 runpath_var='LD_RUN_PATH' 9482 9483 if test "$GCC" = yes; then 9484 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9485 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9486 else 9487 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9488 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9489 fi 9490 ;; 9491 9492 sysv5* | sco3.2v5* | sco5v6*) 9493 # Note: We can NOT use -z defs as we might desire, because we do not 9494 # link with -lc, and that would cause any symbols used from libc to 9495 # always be unresolved, which means just about no library would 9496 # ever link correctly. If we're not using GNU ld we use -z text 9497 # though, which does catch some bad symbols but isn't as heavy-handed 9498 # as -z defs. 9499 no_undefined_flag='${wl}-z,text' 9500 allow_undefined_flag='${wl}-z,nodefs' 9501 archive_cmds_need_lc=no 9502 hardcode_shlibpath_var=no 9503 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9504 hardcode_libdir_separator=':' 9505 link_all_deplibs=yes 9506 export_dynamic_flag_spec='${wl}-Bexport' 9507 runpath_var='LD_RUN_PATH' 9508 9509 if test "$GCC" = yes; then 9510 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9511 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9512 else 9513 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9514 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9515 fi 9516 ;; 9517 9518 uts4*) 9519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9520 hardcode_libdir_flag_spec='-L$libdir' 9521 hardcode_shlibpath_var=no 9522 ;; 9523 9524 *) 9525 ld_shlibs=no 9526 ;; 9527 esac 9528 fi 9529 9530{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9531$as_echo "$ld_shlibs" >&6; } 9532test "$ld_shlibs" = no && can_build_shared=no 9533 9534# 9535# Do we need to explicitly link libc? 9536# 9537case "x$archive_cmds_need_lc" in 9538x|xyes) 9539 # Assume -lc should be added 9540 archive_cmds_need_lc=yes 9541 9542 if test "$enable_shared" = yes && test "$GCC" = yes; then 9543 case $archive_cmds in 9544 *'~'*) 9545 # FIXME: we may have to deal with multi-command sequences. 9546 ;; 9547 '$CC '*) 9548 # Test whether the compiler implicitly links with -lc since on some 9549 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9550 # to ld, don't add -lc before -lgcc. 9551 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9552$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9553 $rm conftest* 9554 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9555 9556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9557 (eval $ac_compile) 2>&5 9558 ac_status=$? 9559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9560 (exit $ac_status); } 2>conftest.err; then 9561 soname=conftest 9562 lib=conftest 9563 libobjs=conftest.$ac_objext 9564 deplibs= 9565 wl=$lt_prog_compiler_wl 9566 pic_flag=$lt_prog_compiler_pic 9567 compiler_flags=-v 9568 linker_flags=-v 9569 verstring= 9570 output_objdir=. 9571 libname=conftest 9572 lt_save_allow_undefined_flag=$allow_undefined_flag 9573 allow_undefined_flag= 9574 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9575 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9576 ac_status=$? 9577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9578 (exit $ac_status); } 9579 then 9580 archive_cmds_need_lc=no 9581 else 9582 archive_cmds_need_lc=yes 9583 fi 9584 allow_undefined_flag=$lt_save_allow_undefined_flag 9585 else 9586 cat conftest.err 1>&5 9587 fi 9588 $rm conftest* 9589 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9590$as_echo "$archive_cmds_need_lc" >&6; } 9591 ;; 9592 esac 9593 fi 9594 ;; 9595esac 9596 9597{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9598$as_echo_n "checking dynamic linker characteristics... " >&6; } 9599library_names_spec= 9600libname_spec='lib$name' 9601soname_spec= 9602shrext_cmds=".so" 9603postinstall_cmds= 9604postuninstall_cmds= 9605finish_cmds= 9606finish_eval= 9607shlibpath_var= 9608shlibpath_overrides_runpath=unknown 9609version_type=none 9610dynamic_linker="$host_os ld.so" 9611sys_lib_dlsearch_path_spec="/lib /usr/lib" 9612 9613if test "$GCC" = yes; then 9614 case $host_os in 9615 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9616 *) lt_awk_arg="/^libraries:/" ;; 9617 esac 9618 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9619 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9620 # if the path contains ";" then we assume it to be the separator 9621 # otherwise default to the standard path separator (i.e. ":") - it is 9622 # assumed that no part of a normal pathname contains ";" but that should 9623 # okay in the real world where ";" in dirpaths is itself problematic. 9624 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9625 else 9626 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9627 fi 9628 # Ok, now we have the path, separated by spaces, we can step through it 9629 # and add multilib dir if necessary. 9630 lt_tmp_lt_search_path_spec= 9631 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9632 for lt_sys_path in $lt_search_path_spec; do 9633 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9634 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9635 else 9636 test -d "$lt_sys_path" && \ 9637 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9638 fi 9639 done 9640 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9641BEGIN {RS=" "; FS="/|\n";} { 9642 lt_foo=""; 9643 lt_count=0; 9644 for (lt_i = NF; lt_i > 0; lt_i--) { 9645 if ($lt_i != "" && $lt_i != ".") { 9646 if ($lt_i == "..") { 9647 lt_count++; 9648 } else { 9649 if (lt_count == 0) { 9650 lt_foo="/" $lt_i lt_foo; 9651 } else { 9652 lt_count--; 9653 } 9654 } 9655 } 9656 } 9657 if (lt_foo != "") { lt_freq[lt_foo]++; } 9658 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9659}'` 9660 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9661else 9662 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9663fi 9664need_lib_prefix=unknown 9665hardcode_into_libs=no 9666 9667# when you set need_version to no, make sure it does not cause -set_version 9668# flags to be left without arguments 9669need_version=unknown 9670 9671case $host_os in 9672aix3*) 9673 version_type=linux 9674 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9675 shlibpath_var=LIBPATH 9676 9677 # AIX 3 has no versioning support, so we append a major version to the name. 9678 soname_spec='${libname}${release}${shared_ext}$major' 9679 ;; 9680 9681aix[4-9]*) 9682 version_type=linux 9683 need_lib_prefix=no 9684 need_version=no 9685 hardcode_into_libs=yes 9686 if test "$host_cpu" = ia64; then 9687 # AIX 5 supports IA64 9688 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9689 shlibpath_var=LD_LIBRARY_PATH 9690 else 9691 # With GCC up to 2.95.x, collect2 would create an import file 9692 # for dependence libraries. The import file would start with 9693 # the line `#! .'. This would cause the generated library to 9694 # depend on `.', always an invalid library. This was fixed in 9695 # development snapshots of GCC prior to 3.0. 9696 case $host_os in 9697 aix4 | aix4.[01] | aix4.[01].*) 9698 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9699 echo ' yes ' 9700 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9701 : 9702 else 9703 can_build_shared=no 9704 fi 9705 ;; 9706 esac 9707 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9708 # soname into executable. Probably we can add versioning support to 9709 # collect2, so additional links can be useful in future. 9710 if test "$aix_use_runtimelinking" = yes; then 9711 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9712 # instead of lib<name>.a to let people know that these are not 9713 # typical AIX shared libraries. 9714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9715 else 9716 # We preserve .a as extension for shared libraries through AIX4.2 9717 # and later when we are not doing run time linking. 9718 library_names_spec='${libname}${release}.a $libname.a' 9719 soname_spec='${libname}${release}${shared_ext}$major' 9720 fi 9721 shlibpath_var=LIBPATH 9722 fi 9723 ;; 9724 9725amigaos*) 9726 library_names_spec='$libname.ixlibrary $libname.a' 9727 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9728 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' 9729 ;; 9730 9731beos*) 9732 library_names_spec='${libname}${shared_ext}' 9733 dynamic_linker="$host_os ld.so" 9734 shlibpath_var=LIBRARY_PATH 9735 ;; 9736 9737bsdi[45]*) 9738 version_type=linux 9739 need_version=no 9740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9741 soname_spec='${libname}${release}${shared_ext}$major' 9742 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9743 shlibpath_var=LD_LIBRARY_PATH 9744 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9745 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9746 # the default ld.so.conf also contains /usr/contrib/lib and 9747 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9748 # libtool to hard-code these into programs 9749 ;; 9750 9751cygwin* | mingw* | pw32*) 9752 version_type=windows 9753 shrext_cmds=".dll" 9754 need_version=no 9755 need_lib_prefix=no 9756 9757 case $GCC,$host_os in 9758 yes,cygwin* | yes,mingw* | yes,pw32*) 9759 library_names_spec='$libname.dll.a' 9760 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9761 postinstall_cmds='base_file=`basename \${file}`~ 9762 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9763 dldir=$destdir/`dirname \$dlpath`~ 9764 test -d \$dldir || mkdir -p \$dldir~ 9765 $install_prog $dir/$dlname \$dldir/$dlname~ 9766 chmod a+x \$dldir/$dlname' 9767 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9768 dlpath=$dir/\$dldll~ 9769 $rm \$dlpath' 9770 shlibpath_overrides_runpath=yes 9771 9772 case $host_os in 9773 cygwin*) 9774 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9775 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9776 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9777 ;; 9778 mingw*) 9779 # MinGW DLLs use traditional 'lib' prefix 9780 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9781 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9782 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9783 # It is most probably a Windows format PATH printed by 9784 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9785 # path with ; separators, and with drive letters. We can handle the 9786 # drive letters (cygwin fileutils understands them), so leave them, 9787 # especially as we might pass files found there to a mingw objdump, 9788 # which wouldn't understand a cygwinified path. Ahh. 9789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9790 else 9791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9792 fi 9793 ;; 9794 pw32*) 9795 # pw32 DLLs use 'pw' prefix rather than 'lib' 9796 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9797 ;; 9798 esac 9799 ;; 9800 9801 *) 9802 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9803 ;; 9804 esac 9805 dynamic_linker='Win32 ld.exe' 9806 # FIXME: first we should search . and the directory the executable is in 9807 shlibpath_var=PATH 9808 ;; 9809 9810darwin* | rhapsody*) 9811 dynamic_linker="$host_os dyld" 9812 version_type=darwin 9813 need_lib_prefix=no 9814 need_version=no 9815 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9816 soname_spec='${libname}${release}${major}$shared_ext' 9817 shlibpath_overrides_runpath=yes 9818 shlibpath_var=DYLD_LIBRARY_PATH 9819 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9820 9821 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9822 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9823 ;; 9824 9825dgux*) 9826 version_type=linux 9827 need_lib_prefix=no 9828 need_version=no 9829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9830 soname_spec='${libname}${release}${shared_ext}$major' 9831 shlibpath_var=LD_LIBRARY_PATH 9832 ;; 9833 9834freebsd1*) 9835 dynamic_linker=no 9836 ;; 9837 9838freebsd* | dragonfly*) 9839 # DragonFly does not have aout. When/if they implement a new 9840 # versioning mechanism, adjust this. 9841 if test -x /usr/bin/objformat; then 9842 objformat=`/usr/bin/objformat` 9843 else 9844 case $host_os in 9845 freebsd[123]*) objformat=aout ;; 9846 *) objformat=elf ;; 9847 esac 9848 fi 9849 version_type=freebsd-$objformat 9850 case $version_type in 9851 freebsd-elf*) 9852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9853 need_version=no 9854 need_lib_prefix=no 9855 ;; 9856 freebsd-*) 9857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9858 need_version=yes 9859 ;; 9860 esac 9861 shlibpath_var=LD_LIBRARY_PATH 9862 case $host_os in 9863 freebsd2*) 9864 shlibpath_overrides_runpath=yes 9865 ;; 9866 freebsd3.[01]* | freebsdelf3.[01]*) 9867 shlibpath_overrides_runpath=yes 9868 hardcode_into_libs=yes 9869 ;; 9870 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9871 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9872 shlibpath_overrides_runpath=no 9873 hardcode_into_libs=yes 9874 ;; 9875 *) # from 4.6 on, and DragonFly 9876 shlibpath_overrides_runpath=yes 9877 hardcode_into_libs=yes 9878 ;; 9879 esac 9880 ;; 9881 9882gnu*) 9883 version_type=linux 9884 need_lib_prefix=no 9885 need_version=no 9886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9887 soname_spec='${libname}${release}${shared_ext}$major' 9888 shlibpath_var=LD_LIBRARY_PATH 9889 hardcode_into_libs=yes 9890 ;; 9891 9892hpux9* | hpux10* | hpux11*) 9893 # Give a soname corresponding to the major version so that dld.sl refuses to 9894 # link against other versions. 9895 version_type=sunos 9896 need_lib_prefix=no 9897 need_version=no 9898 case $host_cpu in 9899 ia64*) 9900 shrext_cmds='.so' 9901 hardcode_into_libs=yes 9902 dynamic_linker="$host_os dld.so" 9903 shlibpath_var=LD_LIBRARY_PATH 9904 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9906 soname_spec='${libname}${release}${shared_ext}$major' 9907 if test "X$HPUX_IA64_MODE" = X32; then 9908 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9909 else 9910 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9911 fi 9912 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9913 ;; 9914 hppa*64*) 9915 shrext_cmds='.sl' 9916 hardcode_into_libs=yes 9917 dynamic_linker="$host_os dld.sl" 9918 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9919 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9921 soname_spec='${libname}${release}${shared_ext}$major' 9922 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9923 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9924 ;; 9925 *) 9926 shrext_cmds='.sl' 9927 dynamic_linker="$host_os dld.sl" 9928 shlibpath_var=SHLIB_PATH 9929 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9931 soname_spec='${libname}${release}${shared_ext}$major' 9932 ;; 9933 esac 9934 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9935 postinstall_cmds='chmod 555 $lib' 9936 ;; 9937 9938interix[3-9]*) 9939 version_type=linux 9940 need_lib_prefix=no 9941 need_version=no 9942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9943 soname_spec='${libname}${release}${shared_ext}$major' 9944 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9945 shlibpath_var=LD_LIBRARY_PATH 9946 shlibpath_overrides_runpath=no 9947 hardcode_into_libs=yes 9948 ;; 9949 9950irix5* | irix6* | nonstopux*) 9951 case $host_os in 9952 nonstopux*) version_type=nonstopux ;; 9953 *) 9954 if test "$lt_cv_prog_gnu_ld" = yes; then 9955 version_type=linux 9956 else 9957 version_type=irix 9958 fi ;; 9959 esac 9960 need_lib_prefix=no 9961 need_version=no 9962 soname_spec='${libname}${release}${shared_ext}$major' 9963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9964 case $host_os in 9965 irix5* | nonstopux*) 9966 libsuff= shlibsuff= 9967 ;; 9968 *) 9969 case $LD in # libtool.m4 will add one of these switches to LD 9970 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9971 libsuff= shlibsuff= libmagic=32-bit;; 9972 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9973 libsuff=32 shlibsuff=N32 libmagic=N32;; 9974 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9975 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9976 *) libsuff= shlibsuff= libmagic=never-match;; 9977 esac 9978 ;; 9979 esac 9980 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9981 shlibpath_overrides_runpath=no 9982 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9983 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9984 hardcode_into_libs=yes 9985 ;; 9986 9987# No shared lib support for Linux oldld, aout, or coff. 9988linux*oldld* | linux*aout* | linux*coff*) 9989 dynamic_linker=no 9990 ;; 9991 9992# This must be Linux ELF. 9993linux* | k*bsd*-gnu) 9994 version_type=linux 9995 need_lib_prefix=no 9996 need_version=no 9997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9998 soname_spec='${libname}${release}${shared_ext}$major' 9999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10000 shlibpath_var=LD_LIBRARY_PATH 10001 shlibpath_overrides_runpath=no 10002 # This implies no fast_install, which is unacceptable. 10003 # Some rework will be needed to allow for fast_install 10004 # before this can be enabled. 10005 hardcode_into_libs=yes 10006 10007 # Append ld.so.conf contents to the search path 10008 if test -f /etc/ld.so.conf; then 10009 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' ' '` 10010 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10011 fi 10012 10013 # We used to test for /lib/ld.so.1 and disable shared libraries on 10014 # powerpc, because MkLinux only supported shared libraries with the 10015 # GNU dynamic linker. Since this was broken with cross compilers, 10016 # most powerpc-linux boxes support dynamic linking these days and 10017 # people can always --disable-shared, the test was removed, and we 10018 # assume the GNU/Linux dynamic linker is in use. 10019 dynamic_linker='GNU/Linux ld.so' 10020 ;; 10021 10022netbsd*) 10023 version_type=sunos 10024 need_lib_prefix=no 10025 need_version=no 10026 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10029 dynamic_linker='NetBSD (a.out) ld.so' 10030 else 10031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10032 soname_spec='${libname}${release}${shared_ext}$major' 10033 dynamic_linker='NetBSD ld.elf_so' 10034 fi 10035 shlibpath_var=LD_LIBRARY_PATH 10036 shlibpath_overrides_runpath=yes 10037 hardcode_into_libs=yes 10038 ;; 10039 10040newsos6) 10041 version_type=linux 10042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10043 shlibpath_var=LD_LIBRARY_PATH 10044 shlibpath_overrides_runpath=yes 10045 ;; 10046 10047nto-qnx*) 10048 version_type=linux 10049 need_lib_prefix=no 10050 need_version=no 10051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10052 soname_spec='${libname}${release}${shared_ext}$major' 10053 shlibpath_var=LD_LIBRARY_PATH 10054 shlibpath_overrides_runpath=yes 10055 ;; 10056 10057openbsd*) 10058 version_type=sunos 10059 sys_lib_dlsearch_path_spec="/usr/lib" 10060 need_lib_prefix=no 10061 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10062 case $host_os in 10063 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10064 *) need_version=no ;; 10065 esac 10066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10068 shlibpath_var=LD_LIBRARY_PATH 10069 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10070 case $host_os in 10071 openbsd2.[89] | openbsd2.[89].*) 10072 shlibpath_overrides_runpath=no 10073 ;; 10074 *) 10075 shlibpath_overrides_runpath=yes 10076 ;; 10077 esac 10078 else 10079 shlibpath_overrides_runpath=yes 10080 fi 10081 ;; 10082 10083os2*) 10084 libname_spec='$name' 10085 shrext_cmds=".dll" 10086 need_lib_prefix=no 10087 library_names_spec='$libname${shared_ext} $libname.a' 10088 dynamic_linker='OS/2 ld.exe' 10089 shlibpath_var=LIBPATH 10090 ;; 10091 10092osf3* | osf4* | osf5*) 10093 version_type=osf 10094 need_lib_prefix=no 10095 need_version=no 10096 soname_spec='${libname}${release}${shared_ext}$major' 10097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10098 shlibpath_var=LD_LIBRARY_PATH 10099 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10100 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10101 ;; 10102 10103rdos*) 10104 dynamic_linker=no 10105 ;; 10106 10107solaris*) 10108 version_type=linux 10109 need_lib_prefix=no 10110 need_version=no 10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10112 soname_spec='${libname}${release}${shared_ext}$major' 10113 shlibpath_var=LD_LIBRARY_PATH 10114 shlibpath_overrides_runpath=yes 10115 hardcode_into_libs=yes 10116 # ldd complains unless libraries are executable 10117 postinstall_cmds='chmod +x $lib' 10118 ;; 10119 10120sunos4*) 10121 version_type=sunos 10122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10123 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10124 shlibpath_var=LD_LIBRARY_PATH 10125 shlibpath_overrides_runpath=yes 10126 if test "$with_gnu_ld" = yes; then 10127 need_lib_prefix=no 10128 fi 10129 need_version=yes 10130 ;; 10131 10132sysv4 | sysv4.3*) 10133 version_type=linux 10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10135 soname_spec='${libname}${release}${shared_ext}$major' 10136 shlibpath_var=LD_LIBRARY_PATH 10137 case $host_vendor in 10138 sni) 10139 shlibpath_overrides_runpath=no 10140 need_lib_prefix=no 10141 export_dynamic_flag_spec='${wl}-Blargedynsym' 10142 runpath_var=LD_RUN_PATH 10143 ;; 10144 siemens) 10145 need_lib_prefix=no 10146 ;; 10147 motorola) 10148 need_lib_prefix=no 10149 need_version=no 10150 shlibpath_overrides_runpath=no 10151 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10152 ;; 10153 esac 10154 ;; 10155 10156sysv4*MP*) 10157 if test -d /usr/nec ;then 10158 version_type=linux 10159 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10160 soname_spec='$libname${shared_ext}.$major' 10161 shlibpath_var=LD_LIBRARY_PATH 10162 fi 10163 ;; 10164 10165sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10166 version_type=freebsd-elf 10167 need_lib_prefix=no 10168 need_version=no 10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10170 soname_spec='${libname}${release}${shared_ext}$major' 10171 shlibpath_var=LD_LIBRARY_PATH 10172 hardcode_into_libs=yes 10173 if test "$with_gnu_ld" = yes; then 10174 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10175 shlibpath_overrides_runpath=no 10176 else 10177 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10178 shlibpath_overrides_runpath=yes 10179 case $host_os in 10180 sco3.2v5*) 10181 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10182 ;; 10183 esac 10184 fi 10185 sys_lib_dlsearch_path_spec='/usr/lib' 10186 ;; 10187 10188uts4*) 10189 version_type=linux 10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10191 soname_spec='${libname}${release}${shared_ext}$major' 10192 shlibpath_var=LD_LIBRARY_PATH 10193 ;; 10194 10195*) 10196 dynamic_linker=no 10197 ;; 10198esac 10199{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10200$as_echo "$dynamic_linker" >&6; } 10201test "$dynamic_linker" = no && can_build_shared=no 10202 10203if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10204 $as_echo_n "(cached) " >&6 10205else 10206 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 10207fi 10208 10209sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10210if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10211 $as_echo_n "(cached) " >&6 10212else 10213 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 10214fi 10215 10216sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10217 10218variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10219if test "$GCC" = yes; then 10220 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10221fi 10222 10223{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10224$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10225hardcode_action= 10226if test -n "$hardcode_libdir_flag_spec" || \ 10227 test -n "$runpath_var" || \ 10228 test "X$hardcode_automatic" = "Xyes" ; then 10229 10230 # We can hardcode non-existant directories. 10231 if test "$hardcode_direct" != no && 10232 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10233 # have to relink, otherwise we might link with an installed library 10234 # when we should be linking with a yet-to-be-installed one 10235 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 10236 test "$hardcode_minus_L" != no; then 10237 # Linking always hardcodes the temporary library directory. 10238 hardcode_action=relink 10239 else 10240 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10241 hardcode_action=immediate 10242 fi 10243else 10244 # We cannot hardcode anything, or else we can only hardcode existing 10245 # directories. 10246 hardcode_action=unsupported 10247fi 10248{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10249$as_echo "$hardcode_action" >&6; } 10250 10251if test "$hardcode_action" = relink; then 10252 # Fast installation is not supported 10253 enable_fast_install=no 10254elif test "$shlibpath_overrides_runpath" = yes || 10255 test "$enable_shared" = no; then 10256 # Fast installation is not necessary 10257 enable_fast_install=needless 10258fi 10259 10260striplib= 10261old_striplib= 10262{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10263$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10264if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 10265 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10266 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10267 { $as_echo "$as_me:$LINENO: result: yes" >&5 10268$as_echo "yes" >&6; } 10269else 10270# FIXME - insert some real tests, host_os isn't really good enough 10271 case $host_os in 10272 darwin*) 10273 if test -n "$STRIP" ; then 10274 striplib="$STRIP -x" 10275 old_striplib="$STRIP -S" 10276 { $as_echo "$as_me:$LINENO: result: yes" >&5 10277$as_echo "yes" >&6; } 10278 else 10279 { $as_echo "$as_me:$LINENO: result: no" >&5 10280$as_echo "no" >&6; } 10281fi 10282 ;; 10283 *) 10284 { $as_echo "$as_me:$LINENO: result: no" >&5 10285$as_echo "no" >&6; } 10286 ;; 10287 esac 10288fi 10289 10290if test "x$enable_dlopen" != xyes; then 10291 enable_dlopen=unknown 10292 enable_dlopen_self=unknown 10293 enable_dlopen_self_static=unknown 10294else 10295 lt_cv_dlopen=no 10296 lt_cv_dlopen_libs= 10297 10298 case $host_os in 10299 beos*) 10300 lt_cv_dlopen="load_add_on" 10301 lt_cv_dlopen_libs= 10302 lt_cv_dlopen_self=yes 10303 ;; 10304 10305 mingw* | pw32*) 10306 lt_cv_dlopen="LoadLibrary" 10307 lt_cv_dlopen_libs= 10308 ;; 10309 10310 cygwin*) 10311 lt_cv_dlopen="dlopen" 10312 lt_cv_dlopen_libs= 10313 ;; 10314 10315 darwin*) 10316 # if libdl is installed we need to link against it 10317 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10318$as_echo_n "checking for dlopen in -ldl... " >&6; } 10319if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10320 $as_echo_n "(cached) " >&6 10321else 10322 ac_check_lib_save_LIBS=$LIBS 10323LIBS="-ldl $LIBS" 10324cat >conftest.$ac_ext <<_ACEOF 10325/* confdefs.h. */ 10326_ACEOF 10327cat confdefs.h >>conftest.$ac_ext 10328cat >>conftest.$ac_ext <<_ACEOF 10329/* end confdefs.h. */ 10330 10331/* Override any GCC internal prototype to avoid an error. 10332 Use char because int might match the return type of a GCC 10333 builtin and then its argument prototype would still apply. */ 10334#ifdef __cplusplus 10335extern "C" 10336#endif 10337char dlopen (); 10338int 10339main () 10340{ 10341return dlopen (); 10342 ; 10343 return 0; 10344} 10345_ACEOF 10346rm -f conftest.$ac_objext conftest$ac_exeext 10347if { (ac_try="$ac_link" 10348case "(($ac_try" in 10349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10350 *) ac_try_echo=$ac_try;; 10351esac 10352eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10353$as_echo "$ac_try_echo") >&5 10354 (eval "$ac_link") 2>conftest.er1 10355 ac_status=$? 10356 grep -v '^ *+' conftest.er1 >conftest.err 10357 rm -f conftest.er1 10358 cat conftest.err >&5 10359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10360 (exit $ac_status); } && { 10361 test -z "$ac_c_werror_flag" || 10362 test ! -s conftest.err 10363 } && test -s conftest$ac_exeext && { 10364 test "$cross_compiling" = yes || 10365 $as_test_x conftest$ac_exeext 10366 }; then 10367 ac_cv_lib_dl_dlopen=yes 10368else 10369 $as_echo "$as_me: failed program was:" >&5 10370sed 's/^/| /' conftest.$ac_ext >&5 10371 10372 ac_cv_lib_dl_dlopen=no 10373fi 10374 10375rm -rf conftest.dSYM 10376rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10377 conftest$ac_exeext conftest.$ac_ext 10378LIBS=$ac_check_lib_save_LIBS 10379fi 10380{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10381$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10382if test $ac_cv_lib_dl_dlopen = yes; then 10383 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10384else 10385 10386 lt_cv_dlopen="dyld" 10387 lt_cv_dlopen_libs= 10388 lt_cv_dlopen_self=yes 10389 10390fi 10391 10392 ;; 10393 10394 *) 10395 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 10396$as_echo_n "checking for shl_load... " >&6; } 10397if test "${ac_cv_func_shl_load+set}" = set; then 10398 $as_echo_n "(cached) " >&6 10399else 10400 cat >conftest.$ac_ext <<_ACEOF 10401/* confdefs.h. */ 10402_ACEOF 10403cat confdefs.h >>conftest.$ac_ext 10404cat >>conftest.$ac_ext <<_ACEOF 10405/* end confdefs.h. */ 10406/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10407 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10408#define shl_load innocuous_shl_load 10409 10410/* System header to define __stub macros and hopefully few prototypes, 10411 which can conflict with char shl_load (); below. 10412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10413 <limits.h> exists even on freestanding compilers. */ 10414 10415#ifdef __STDC__ 10416# include <limits.h> 10417#else 10418# include <assert.h> 10419#endif 10420 10421#undef shl_load 10422 10423/* Override any GCC internal prototype to avoid an error. 10424 Use char because int might match the return type of a GCC 10425 builtin and then its argument prototype would still apply. */ 10426#ifdef __cplusplus 10427extern "C" 10428#endif 10429char shl_load (); 10430/* The GNU C library defines this for functions which it implements 10431 to always fail with ENOSYS. Some functions are actually named 10432 something starting with __ and the normal name is an alias. */ 10433#if defined __stub_shl_load || defined __stub___shl_load 10434choke me 10435#endif 10436 10437int 10438main () 10439{ 10440return shl_load (); 10441 ; 10442 return 0; 10443} 10444_ACEOF 10445rm -f conftest.$ac_objext conftest$ac_exeext 10446if { (ac_try="$ac_link" 10447case "(($ac_try" in 10448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10449 *) ac_try_echo=$ac_try;; 10450esac 10451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10452$as_echo "$ac_try_echo") >&5 10453 (eval "$ac_link") 2>conftest.er1 10454 ac_status=$? 10455 grep -v '^ *+' conftest.er1 >conftest.err 10456 rm -f conftest.er1 10457 cat conftest.err >&5 10458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10459 (exit $ac_status); } && { 10460 test -z "$ac_c_werror_flag" || 10461 test ! -s conftest.err 10462 } && test -s conftest$ac_exeext && { 10463 test "$cross_compiling" = yes || 10464 $as_test_x conftest$ac_exeext 10465 }; then 10466 ac_cv_func_shl_load=yes 10467else 10468 $as_echo "$as_me: failed program was:" >&5 10469sed 's/^/| /' conftest.$ac_ext >&5 10470 10471 ac_cv_func_shl_load=no 10472fi 10473 10474rm -rf conftest.dSYM 10475rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10476 conftest$ac_exeext conftest.$ac_ext 10477fi 10478{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10479$as_echo "$ac_cv_func_shl_load" >&6; } 10480if test $ac_cv_func_shl_load = yes; then 10481 lt_cv_dlopen="shl_load" 10482else 10483 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10484$as_echo_n "checking for shl_load in -ldld... " >&6; } 10485if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10486 $as_echo_n "(cached) " >&6 10487else 10488 ac_check_lib_save_LIBS=$LIBS 10489LIBS="-ldld $LIBS" 10490cat >conftest.$ac_ext <<_ACEOF 10491/* confdefs.h. */ 10492_ACEOF 10493cat confdefs.h >>conftest.$ac_ext 10494cat >>conftest.$ac_ext <<_ACEOF 10495/* end confdefs.h. */ 10496 10497/* Override any GCC internal prototype to avoid an error. 10498 Use char because int might match the return type of a GCC 10499 builtin and then its argument prototype would still apply. */ 10500#ifdef __cplusplus 10501extern "C" 10502#endif 10503char shl_load (); 10504int 10505main () 10506{ 10507return shl_load (); 10508 ; 10509 return 0; 10510} 10511_ACEOF 10512rm -f conftest.$ac_objext conftest$ac_exeext 10513if { (ac_try="$ac_link" 10514case "(($ac_try" in 10515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10516 *) ac_try_echo=$ac_try;; 10517esac 10518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10519$as_echo "$ac_try_echo") >&5 10520 (eval "$ac_link") 2>conftest.er1 10521 ac_status=$? 10522 grep -v '^ *+' conftest.er1 >conftest.err 10523 rm -f conftest.er1 10524 cat conftest.err >&5 10525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10526 (exit $ac_status); } && { 10527 test -z "$ac_c_werror_flag" || 10528 test ! -s conftest.err 10529 } && test -s conftest$ac_exeext && { 10530 test "$cross_compiling" = yes || 10531 $as_test_x conftest$ac_exeext 10532 }; then 10533 ac_cv_lib_dld_shl_load=yes 10534else 10535 $as_echo "$as_me: failed program was:" >&5 10536sed 's/^/| /' conftest.$ac_ext >&5 10537 10538 ac_cv_lib_dld_shl_load=no 10539fi 10540 10541rm -rf conftest.dSYM 10542rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10543 conftest$ac_exeext conftest.$ac_ext 10544LIBS=$ac_check_lib_save_LIBS 10545fi 10546{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10547$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10548if test $ac_cv_lib_dld_shl_load = yes; then 10549 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10550else 10551 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10552$as_echo_n "checking for dlopen... " >&6; } 10553if test "${ac_cv_func_dlopen+set}" = set; then 10554 $as_echo_n "(cached) " >&6 10555else 10556 cat >conftest.$ac_ext <<_ACEOF 10557/* confdefs.h. */ 10558_ACEOF 10559cat confdefs.h >>conftest.$ac_ext 10560cat >>conftest.$ac_ext <<_ACEOF 10561/* end confdefs.h. */ 10562/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10563 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10564#define dlopen innocuous_dlopen 10565 10566/* System header to define __stub macros and hopefully few prototypes, 10567 which can conflict with char dlopen (); below. 10568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10569 <limits.h> exists even on freestanding compilers. */ 10570 10571#ifdef __STDC__ 10572# include <limits.h> 10573#else 10574# include <assert.h> 10575#endif 10576 10577#undef dlopen 10578 10579/* Override any GCC internal prototype to avoid an error. 10580 Use char because int might match the return type of a GCC 10581 builtin and then its argument prototype would still apply. */ 10582#ifdef __cplusplus 10583extern "C" 10584#endif 10585char dlopen (); 10586/* The GNU C library defines this for functions which it implements 10587 to always fail with ENOSYS. Some functions are actually named 10588 something starting with __ and the normal name is an alias. */ 10589#if defined __stub_dlopen || defined __stub___dlopen 10590choke me 10591#endif 10592 10593int 10594main () 10595{ 10596return dlopen (); 10597 ; 10598 return 0; 10599} 10600_ACEOF 10601rm -f conftest.$ac_objext conftest$ac_exeext 10602if { (ac_try="$ac_link" 10603case "(($ac_try" in 10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10605 *) ac_try_echo=$ac_try;; 10606esac 10607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10608$as_echo "$ac_try_echo") >&5 10609 (eval "$ac_link") 2>conftest.er1 10610 ac_status=$? 10611 grep -v '^ *+' conftest.er1 >conftest.err 10612 rm -f conftest.er1 10613 cat conftest.err >&5 10614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10615 (exit $ac_status); } && { 10616 test -z "$ac_c_werror_flag" || 10617 test ! -s conftest.err 10618 } && test -s conftest$ac_exeext && { 10619 test "$cross_compiling" = yes || 10620 $as_test_x conftest$ac_exeext 10621 }; then 10622 ac_cv_func_dlopen=yes 10623else 10624 $as_echo "$as_me: failed program was:" >&5 10625sed 's/^/| /' conftest.$ac_ext >&5 10626 10627 ac_cv_func_dlopen=no 10628fi 10629 10630rm -rf conftest.dSYM 10631rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10632 conftest$ac_exeext conftest.$ac_ext 10633fi 10634{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10635$as_echo "$ac_cv_func_dlopen" >&6; } 10636if test $ac_cv_func_dlopen = yes; then 10637 lt_cv_dlopen="dlopen" 10638else 10639 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10640$as_echo_n "checking for dlopen in -ldl... " >&6; } 10641if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10642 $as_echo_n "(cached) " >&6 10643else 10644 ac_check_lib_save_LIBS=$LIBS 10645LIBS="-ldl $LIBS" 10646cat >conftest.$ac_ext <<_ACEOF 10647/* confdefs.h. */ 10648_ACEOF 10649cat confdefs.h >>conftest.$ac_ext 10650cat >>conftest.$ac_ext <<_ACEOF 10651/* end confdefs.h. */ 10652 10653/* Override any GCC internal prototype to avoid an error. 10654 Use char because int might match the return type of a GCC 10655 builtin and then its argument prototype would still apply. */ 10656#ifdef __cplusplus 10657extern "C" 10658#endif 10659char dlopen (); 10660int 10661main () 10662{ 10663return dlopen (); 10664 ; 10665 return 0; 10666} 10667_ACEOF 10668rm -f conftest.$ac_objext conftest$ac_exeext 10669if { (ac_try="$ac_link" 10670case "(($ac_try" in 10671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10672 *) ac_try_echo=$ac_try;; 10673esac 10674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10675$as_echo "$ac_try_echo") >&5 10676 (eval "$ac_link") 2>conftest.er1 10677 ac_status=$? 10678 grep -v '^ *+' conftest.er1 >conftest.err 10679 rm -f conftest.er1 10680 cat conftest.err >&5 10681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10682 (exit $ac_status); } && { 10683 test -z "$ac_c_werror_flag" || 10684 test ! -s conftest.err 10685 } && test -s conftest$ac_exeext && { 10686 test "$cross_compiling" = yes || 10687 $as_test_x conftest$ac_exeext 10688 }; then 10689 ac_cv_lib_dl_dlopen=yes 10690else 10691 $as_echo "$as_me: failed program was:" >&5 10692sed 's/^/| /' conftest.$ac_ext >&5 10693 10694 ac_cv_lib_dl_dlopen=no 10695fi 10696 10697rm -rf conftest.dSYM 10698rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10699 conftest$ac_exeext conftest.$ac_ext 10700LIBS=$ac_check_lib_save_LIBS 10701fi 10702{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10703$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10704if test $ac_cv_lib_dl_dlopen = yes; then 10705 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10706else 10707 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10708$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10709if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10710 $as_echo_n "(cached) " >&6 10711else 10712 ac_check_lib_save_LIBS=$LIBS 10713LIBS="-lsvld $LIBS" 10714cat >conftest.$ac_ext <<_ACEOF 10715/* confdefs.h. */ 10716_ACEOF 10717cat confdefs.h >>conftest.$ac_ext 10718cat >>conftest.$ac_ext <<_ACEOF 10719/* end confdefs.h. */ 10720 10721/* Override any GCC internal prototype to avoid an error. 10722 Use char because int might match the return type of a GCC 10723 builtin and then its argument prototype would still apply. */ 10724#ifdef __cplusplus 10725extern "C" 10726#endif 10727char dlopen (); 10728int 10729main () 10730{ 10731return dlopen (); 10732 ; 10733 return 0; 10734} 10735_ACEOF 10736rm -f conftest.$ac_objext conftest$ac_exeext 10737if { (ac_try="$ac_link" 10738case "(($ac_try" in 10739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10740 *) ac_try_echo=$ac_try;; 10741esac 10742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10743$as_echo "$ac_try_echo") >&5 10744 (eval "$ac_link") 2>conftest.er1 10745 ac_status=$? 10746 grep -v '^ *+' conftest.er1 >conftest.err 10747 rm -f conftest.er1 10748 cat conftest.err >&5 10749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10750 (exit $ac_status); } && { 10751 test -z "$ac_c_werror_flag" || 10752 test ! -s conftest.err 10753 } && test -s conftest$ac_exeext && { 10754 test "$cross_compiling" = yes || 10755 $as_test_x conftest$ac_exeext 10756 }; then 10757 ac_cv_lib_svld_dlopen=yes 10758else 10759 $as_echo "$as_me: failed program was:" >&5 10760sed 's/^/| /' conftest.$ac_ext >&5 10761 10762 ac_cv_lib_svld_dlopen=no 10763fi 10764 10765rm -rf conftest.dSYM 10766rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10767 conftest$ac_exeext conftest.$ac_ext 10768LIBS=$ac_check_lib_save_LIBS 10769fi 10770{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10771$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10772if test $ac_cv_lib_svld_dlopen = yes; then 10773 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10774else 10775 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10776$as_echo_n "checking for dld_link in -ldld... " >&6; } 10777if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10778 $as_echo_n "(cached) " >&6 10779else 10780 ac_check_lib_save_LIBS=$LIBS 10781LIBS="-ldld $LIBS" 10782cat >conftest.$ac_ext <<_ACEOF 10783/* confdefs.h. */ 10784_ACEOF 10785cat confdefs.h >>conftest.$ac_ext 10786cat >>conftest.$ac_ext <<_ACEOF 10787/* end confdefs.h. */ 10788 10789/* Override any GCC internal prototype to avoid an error. 10790 Use char because int might match the return type of a GCC 10791 builtin and then its argument prototype would still apply. */ 10792#ifdef __cplusplus 10793extern "C" 10794#endif 10795char dld_link (); 10796int 10797main () 10798{ 10799return dld_link (); 10800 ; 10801 return 0; 10802} 10803_ACEOF 10804rm -f conftest.$ac_objext conftest$ac_exeext 10805if { (ac_try="$ac_link" 10806case "(($ac_try" in 10807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10808 *) ac_try_echo=$ac_try;; 10809esac 10810eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10811$as_echo "$ac_try_echo") >&5 10812 (eval "$ac_link") 2>conftest.er1 10813 ac_status=$? 10814 grep -v '^ *+' conftest.er1 >conftest.err 10815 rm -f conftest.er1 10816 cat conftest.err >&5 10817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10818 (exit $ac_status); } && { 10819 test -z "$ac_c_werror_flag" || 10820 test ! -s conftest.err 10821 } && test -s conftest$ac_exeext && { 10822 test "$cross_compiling" = yes || 10823 $as_test_x conftest$ac_exeext 10824 }; then 10825 ac_cv_lib_dld_dld_link=yes 10826else 10827 $as_echo "$as_me: failed program was:" >&5 10828sed 's/^/| /' conftest.$ac_ext >&5 10829 10830 ac_cv_lib_dld_dld_link=no 10831fi 10832 10833rm -rf conftest.dSYM 10834rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10835 conftest$ac_exeext conftest.$ac_ext 10836LIBS=$ac_check_lib_save_LIBS 10837fi 10838{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10839$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10840if test $ac_cv_lib_dld_dld_link = yes; then 10841 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10842fi 10843 10844 10845fi 10846 10847 10848fi 10849 10850 10851fi 10852 10853 10854fi 10855 10856 10857fi 10858 10859 ;; 10860 esac 10861 10862 if test "x$lt_cv_dlopen" != xno; then 10863 enable_dlopen=yes 10864 else 10865 enable_dlopen=no 10866 fi 10867 10868 case $lt_cv_dlopen in 10869 dlopen) 10870 save_CPPFLAGS="$CPPFLAGS" 10871 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10872 10873 save_LDFLAGS="$LDFLAGS" 10874 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10875 10876 save_LIBS="$LIBS" 10877 LIBS="$lt_cv_dlopen_libs $LIBS" 10878 10879 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10880$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10881if test "${lt_cv_dlopen_self+set}" = set; then 10882 $as_echo_n "(cached) " >&6 10883else 10884 if test "$cross_compiling" = yes; then : 10885 lt_cv_dlopen_self=cross 10886else 10887 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10888 lt_status=$lt_dlunknown 10889 cat > conftest.$ac_ext <<EOF 10890#line 10890 "configure" 10891#include "confdefs.h" 10892 10893#if HAVE_DLFCN_H 10894#include <dlfcn.h> 10895#endif 10896 10897#include <stdio.h> 10898 10899#ifdef RTLD_GLOBAL 10900# define LT_DLGLOBAL RTLD_GLOBAL 10901#else 10902# ifdef DL_GLOBAL 10903# define LT_DLGLOBAL DL_GLOBAL 10904# else 10905# define LT_DLGLOBAL 0 10906# endif 10907#endif 10908 10909/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10910 find out it does not work in some platform. */ 10911#ifndef LT_DLLAZY_OR_NOW 10912# ifdef RTLD_LAZY 10913# define LT_DLLAZY_OR_NOW RTLD_LAZY 10914# else 10915# ifdef DL_LAZY 10916# define LT_DLLAZY_OR_NOW DL_LAZY 10917# else 10918# ifdef RTLD_NOW 10919# define LT_DLLAZY_OR_NOW RTLD_NOW 10920# else 10921# ifdef DL_NOW 10922# define LT_DLLAZY_OR_NOW DL_NOW 10923# else 10924# define LT_DLLAZY_OR_NOW 0 10925# endif 10926# endif 10927# endif 10928# endif 10929#endif 10930 10931#ifdef __cplusplus 10932extern "C" void exit (int); 10933#endif 10934 10935void fnord() { int i=42;} 10936int main () 10937{ 10938 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10939 int status = $lt_dlunknown; 10940 10941 if (self) 10942 { 10943 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10944 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10945 /* dlclose (self); */ 10946 } 10947 else 10948 puts (dlerror ()); 10949 10950 exit (status); 10951} 10952EOF 10953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10954 (eval $ac_link) 2>&5 10955 ac_status=$? 10956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10957 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10958 (./conftest; exit; ) >&5 2>/dev/null 10959 lt_status=$? 10960 case x$lt_status in 10961 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10962 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10963 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10964 esac 10965 else : 10966 # compilation failed 10967 lt_cv_dlopen_self=no 10968 fi 10969fi 10970rm -fr conftest* 10971 10972 10973fi 10974{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10975$as_echo "$lt_cv_dlopen_self" >&6; } 10976 10977 if test "x$lt_cv_dlopen_self" = xyes; then 10978 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10979 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10980$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10981if test "${lt_cv_dlopen_self_static+set}" = set; then 10982 $as_echo_n "(cached) " >&6 10983else 10984 if test "$cross_compiling" = yes; then : 10985 lt_cv_dlopen_self_static=cross 10986else 10987 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10988 lt_status=$lt_dlunknown 10989 cat > conftest.$ac_ext <<EOF 10990#line 10990 "configure" 10991#include "confdefs.h" 10992 10993#if HAVE_DLFCN_H 10994#include <dlfcn.h> 10995#endif 10996 10997#include <stdio.h> 10998 10999#ifdef RTLD_GLOBAL 11000# define LT_DLGLOBAL RTLD_GLOBAL 11001#else 11002# ifdef DL_GLOBAL 11003# define LT_DLGLOBAL DL_GLOBAL 11004# else 11005# define LT_DLGLOBAL 0 11006# endif 11007#endif 11008 11009/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11010 find out it does not work in some platform. */ 11011#ifndef LT_DLLAZY_OR_NOW 11012# ifdef RTLD_LAZY 11013# define LT_DLLAZY_OR_NOW RTLD_LAZY 11014# else 11015# ifdef DL_LAZY 11016# define LT_DLLAZY_OR_NOW DL_LAZY 11017# else 11018# ifdef RTLD_NOW 11019# define LT_DLLAZY_OR_NOW RTLD_NOW 11020# else 11021# ifdef DL_NOW 11022# define LT_DLLAZY_OR_NOW DL_NOW 11023# else 11024# define LT_DLLAZY_OR_NOW 0 11025# endif 11026# endif 11027# endif 11028# endif 11029#endif 11030 11031#ifdef __cplusplus 11032extern "C" void exit (int); 11033#endif 11034 11035void fnord() { int i=42;} 11036int main () 11037{ 11038 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11039 int status = $lt_dlunknown; 11040 11041 if (self) 11042 { 11043 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11044 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11045 /* dlclose (self); */ 11046 } 11047 else 11048 puts (dlerror ()); 11049 11050 exit (status); 11051} 11052EOF 11053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11054 (eval $ac_link) 2>&5 11055 ac_status=$? 11056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11057 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11058 (./conftest; exit; ) >&5 2>/dev/null 11059 lt_status=$? 11060 case x$lt_status in 11061 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11062 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11063 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11064 esac 11065 else : 11066 # compilation failed 11067 lt_cv_dlopen_self_static=no 11068 fi 11069fi 11070rm -fr conftest* 11071 11072 11073fi 11074{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11075$as_echo "$lt_cv_dlopen_self_static" >&6; } 11076 fi 11077 11078 CPPFLAGS="$save_CPPFLAGS" 11079 LDFLAGS="$save_LDFLAGS" 11080 LIBS="$save_LIBS" 11081 ;; 11082 esac 11083 11084 case $lt_cv_dlopen_self in 11085 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11086 *) enable_dlopen_self=unknown ;; 11087 esac 11088 11089 case $lt_cv_dlopen_self_static in 11090 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11091 *) enable_dlopen_self_static=unknown ;; 11092 esac 11093fi 11094 11095 11096# Report which library types will actually be built 11097{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11098$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11099{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11100$as_echo "$can_build_shared" >&6; } 11101 11102{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11103$as_echo_n "checking whether to build shared libraries... " >&6; } 11104test "$can_build_shared" = "no" && enable_shared=no 11105 11106# On AIX, shared libraries and static libraries use the same namespace, and 11107# are all built from PIC. 11108case $host_os in 11109aix3*) 11110 test "$enable_shared" = yes && enable_static=no 11111 if test -n "$RANLIB"; then 11112 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11113 postinstall_cmds='$RANLIB $lib' 11114 fi 11115 ;; 11116 11117aix[4-9]*) 11118 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11119 test "$enable_shared" = yes && enable_static=no 11120 fi 11121 ;; 11122esac 11123{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11124$as_echo "$enable_shared" >&6; } 11125 11126{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11127$as_echo_n "checking whether to build static libraries... " >&6; } 11128# Make sure either enable_shared or enable_static is yes. 11129test "$enable_shared" = yes || enable_static=yes 11130{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11131$as_echo "$enable_static" >&6; } 11132 11133# The else clause should only fire when bootstrapping the 11134# libtool distribution, otherwise you forgot to ship ltmain.sh 11135# with your package, and you will get complaints that there are 11136# no rules to generate ltmain.sh. 11137if test -f "$ltmain"; then 11138 # See if we are running on zsh, and set the options which allow our commands through 11139 # without removal of \ escapes. 11140 if test -n "${ZSH_VERSION+set}" ; then 11141 setopt NO_GLOB_SUBST 11142 fi 11143 # Now quote all the things that may contain metacharacters while being 11144 # careful not to overquote the AC_SUBSTed values. We take copies of the 11145 # variables and quote the copies for generation of the libtool script. 11146 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 11147 SED SHELL STRIP \ 11148 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 11149 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 11150 deplibs_check_method reload_flag reload_cmds need_locks \ 11151 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 11152 lt_cv_sys_global_symbol_to_c_name_address \ 11153 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 11154 old_postinstall_cmds old_postuninstall_cmds \ 11155 compiler \ 11156 CC \ 11157 LD \ 11158 lt_prog_compiler_wl \ 11159 lt_prog_compiler_pic \ 11160 lt_prog_compiler_static \ 11161 lt_prog_compiler_no_builtin_flag \ 11162 export_dynamic_flag_spec \ 11163 thread_safe_flag_spec \ 11164 whole_archive_flag_spec \ 11165 enable_shared_with_static_runtimes \ 11166 old_archive_cmds \ 11167 old_archive_from_new_cmds \ 11168 predep_objects \ 11169 postdep_objects \ 11170 predeps \ 11171 postdeps \ 11172 compiler_lib_search_path \ 11173 compiler_lib_search_dirs \ 11174 archive_cmds \ 11175 archive_expsym_cmds \ 11176 postinstall_cmds \ 11177 postuninstall_cmds \ 11178 old_archive_from_expsyms_cmds \ 11179 allow_undefined_flag \ 11180 no_undefined_flag \ 11181 export_symbols_cmds \ 11182 hardcode_libdir_flag_spec \ 11183 hardcode_libdir_flag_spec_ld \ 11184 hardcode_libdir_separator \ 11185 hardcode_automatic \ 11186 module_cmds \ 11187 module_expsym_cmds \ 11188 lt_cv_prog_compiler_c_o \ 11189 fix_srcfile_path \ 11190 exclude_expsyms \ 11191 include_expsyms; do 11192 11193 case $var in 11194 old_archive_cmds | \ 11195 old_archive_from_new_cmds | \ 11196 archive_cmds | \ 11197 archive_expsym_cmds | \ 11198 module_cmds | \ 11199 module_expsym_cmds | \ 11200 old_archive_from_expsyms_cmds | \ 11201 export_symbols_cmds | \ 11202 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 11203 postinstall_cmds | postuninstall_cmds | \ 11204 old_postinstall_cmds | old_postuninstall_cmds | \ 11205 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 11206 # Double-quote double-evaled strings. 11207 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 11208 ;; 11209 *) 11210 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 11211 ;; 11212 esac 11213 done 11214 11215 case $lt_echo in 11216 *'\$0 --fallback-echo"') 11217 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 11218 ;; 11219 esac 11220 11221cfgfile="${ofile}T" 11222 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 11223 $rm -f "$cfgfile" 11224 { $as_echo "$as_me:$LINENO: creating $ofile" >&5 11225$as_echo "$as_me: creating $ofile" >&6;} 11226 11227 cat <<__EOF__ >> "$cfgfile" 11228#! $SHELL 11229 11230# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 11231# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 11232# NOTE: Changes made to this file will be lost: look at ltmain.sh. 11233# 11234# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 11235# Free Software Foundation, Inc. 11236# 11237# This file is part of GNU Libtool: 11238# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 11239# 11240# This program is free software; you can redistribute it and/or modify 11241# it under the terms of the GNU General Public License as published by 11242# the Free Software Foundation; either version 2 of the License, or 11243# (at your option) any later version. 11244# 11245# This program is distributed in the hope that it will be useful, but 11246# WITHOUT ANY WARRANTY; without even the implied warranty of 11247# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11248# General Public License for more details. 11249# 11250# You should have received a copy of the GNU General Public License 11251# along with this program; if not, write to the Free Software 11252# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 11253# 11254# As a special exception to the GNU General Public License, if you 11255# distribute this file as part of a program that contains a 11256# configuration script generated by Autoconf, you may include it under 11257# the same distribution terms that you use for the rest of that program. 11258 11259# A sed program that does not truncate output. 11260SED=$lt_SED 11261 11262# Sed that helps us avoid accidentally triggering echo(1) options like -n. 11263Xsed="$SED -e 1s/^X//" 11264 11265# The HP-UX ksh and POSIX shell print the target directory to stdout 11266# if CDPATH is set. 11267(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11268 11269# The names of the tagged configurations supported by this script. 11270available_tags= 11271 11272# ### BEGIN LIBTOOL CONFIG 11273 11274# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 11275 11276# Shell to use when invoking shell scripts. 11277SHELL=$lt_SHELL 11278 11279# Whether or not to build shared libraries. 11280build_libtool_libs=$enable_shared 11281 11282# Whether or not to build static libraries. 11283build_old_libs=$enable_static 11284 11285# Whether or not to add -lc for building shared libraries. 11286build_libtool_need_lc=$archive_cmds_need_lc 11287 11288# Whether or not to disallow shared libs when runtime libs are static 11289allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 11290 11291# Whether or not to optimize for fast installation. 11292fast_install=$enable_fast_install 11293 11294# The host system. 11295host_alias=$host_alias 11296host=$host 11297host_os=$host_os 11298 11299# The build system. 11300build_alias=$build_alias 11301build=$build 11302build_os=$build_os 11303 11304# An echo program that does not interpret backslashes. 11305echo=$lt_echo 11306 11307# The archiver. 11308AR=$lt_AR 11309AR_FLAGS=$lt_AR_FLAGS 11310 11311# A C compiler. 11312LTCC=$lt_LTCC 11313 11314# LTCC compiler flags. 11315LTCFLAGS=$lt_LTCFLAGS 11316 11317# A language-specific compiler. 11318CC=$lt_compiler 11319 11320# Is the compiler the GNU C compiler? 11321with_gcc=$GCC 11322 11323# An ERE matcher. 11324EGREP=$lt_EGREP 11325 11326# The linker used to build libraries. 11327LD=$lt_LD 11328 11329# Whether we need hard or soft links. 11330LN_S=$lt_LN_S 11331 11332# A BSD-compatible nm program. 11333NM=$lt_NM 11334 11335# A symbol stripping program 11336STRIP=$lt_STRIP 11337 11338# Used to examine libraries when file_magic_cmd begins "file" 11339MAGIC_CMD=$MAGIC_CMD 11340 11341# Used on cygwin: DLL creation program. 11342DLLTOOL="$DLLTOOL" 11343 11344# Used on cygwin: object dumper. 11345OBJDUMP="$OBJDUMP" 11346 11347# Used on cygwin: assembler. 11348AS="$AS" 11349 11350# The name of the directory that contains temporary libtool files. 11351objdir=$objdir 11352 11353# How to create reloadable object files. 11354reload_flag=$lt_reload_flag 11355reload_cmds=$lt_reload_cmds 11356 11357# How to pass a linker flag through the compiler. 11358wl=$lt_lt_prog_compiler_wl 11359 11360# Object file suffix (normally "o"). 11361objext="$ac_objext" 11362 11363# Old archive suffix (normally "a"). 11364libext="$libext" 11365 11366# Shared library suffix (normally ".so"). 11367shrext_cmds='$shrext_cmds' 11368 11369# Executable file suffix (normally ""). 11370exeext="$exeext" 11371 11372# Additional compiler flags for building library objects. 11373pic_flag=$lt_lt_prog_compiler_pic 11374pic_mode=$pic_mode 11375 11376# What is the maximum length of a command? 11377max_cmd_len=$lt_cv_sys_max_cmd_len 11378 11379# Does compiler simultaneously support -c and -o options? 11380compiler_c_o=$lt_lt_cv_prog_compiler_c_o 11381 11382# Must we lock files when doing compilation? 11383need_locks=$lt_need_locks 11384 11385# Do we need the lib prefix for modules? 11386need_lib_prefix=$need_lib_prefix 11387 11388# Do we need a version for libraries? 11389need_version=$need_version 11390 11391# Whether dlopen is supported. 11392dlopen_support=$enable_dlopen 11393 11394# Whether dlopen of programs is supported. 11395dlopen_self=$enable_dlopen_self 11396 11397# Whether dlopen of statically linked programs is supported. 11398dlopen_self_static=$enable_dlopen_self_static 11399 11400# Compiler flag to prevent dynamic linking. 11401link_static_flag=$lt_lt_prog_compiler_static 11402 11403# Compiler flag to turn off builtin functions. 11404no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 11405 11406# Compiler flag to allow reflexive dlopens. 11407export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 11408 11409# Compiler flag to generate shared objects directly from archives. 11410whole_archive_flag_spec=$lt_whole_archive_flag_spec 11411 11412# Compiler flag to generate thread-safe objects. 11413thread_safe_flag_spec=$lt_thread_safe_flag_spec 11414 11415# Library versioning type. 11416version_type=$version_type 11417 11418# Format of library name prefix. 11419libname_spec=$lt_libname_spec 11420 11421# List of archive names. First name is the real one, the rest are links. 11422# The last name is the one that the linker finds with -lNAME. 11423library_names_spec=$lt_library_names_spec 11424 11425# The coded name of the library, if different from the real name. 11426soname_spec=$lt_soname_spec 11427 11428# Commands used to build and install an old-style archive. 11429RANLIB=$lt_RANLIB 11430old_archive_cmds=$lt_old_archive_cmds 11431old_postinstall_cmds=$lt_old_postinstall_cmds 11432old_postuninstall_cmds=$lt_old_postuninstall_cmds 11433 11434# Create an old-style archive from a shared archive. 11435old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 11436 11437# Create a temporary old-style archive to link instead of a shared archive. 11438old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 11439 11440# Commands used to build and install a shared archive. 11441archive_cmds=$lt_archive_cmds 11442archive_expsym_cmds=$lt_archive_expsym_cmds 11443postinstall_cmds=$lt_postinstall_cmds 11444postuninstall_cmds=$lt_postuninstall_cmds 11445 11446# Commands used to build a loadable module (assumed same as above if empty) 11447module_cmds=$lt_module_cmds 11448module_expsym_cmds=$lt_module_expsym_cmds 11449 11450# Commands to strip libraries. 11451old_striplib=$lt_old_striplib 11452striplib=$lt_striplib 11453 11454# Dependencies to place before the objects being linked to create a 11455# shared library. 11456predep_objects=$lt_predep_objects 11457 11458# Dependencies to place after the objects being linked to create a 11459# shared library. 11460postdep_objects=$lt_postdep_objects 11461 11462# Dependencies to place before the objects being linked to create a 11463# shared library. 11464predeps=$lt_predeps 11465 11466# Dependencies to place after the objects being linked to create a 11467# shared library. 11468postdeps=$lt_postdeps 11469 11470# The directories searched by this compiler when creating a shared 11471# library 11472compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 11473 11474# The library search path used internally by the compiler when linking 11475# a shared library. 11476compiler_lib_search_path=$lt_compiler_lib_search_path 11477 11478# Method to check whether dependent libraries are shared objects. 11479deplibs_check_method=$lt_deplibs_check_method 11480 11481# Command to use when deplibs_check_method == file_magic. 11482file_magic_cmd=$lt_file_magic_cmd 11483 11484# Flag that allows shared libraries with undefined symbols to be built. 11485allow_undefined_flag=$lt_allow_undefined_flag 11486 11487# Flag that forces no undefined symbols. 11488no_undefined_flag=$lt_no_undefined_flag 11489 11490# Commands used to finish a libtool library installation in a directory. 11491finish_cmds=$lt_finish_cmds 11492 11493# Same as above, but a single script fragment to be evaled but not shown. 11494finish_eval=$lt_finish_eval 11495 11496# Take the output of nm and produce a listing of raw symbols and C names. 11497global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11498 11499# Transform the output of nm in a proper C declaration 11500global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11501 11502# Transform the output of nm in a C name address pair 11503global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11504 11505# This is the shared library runtime path variable. 11506runpath_var=$runpath_var 11507 11508# This is the shared library path variable. 11509shlibpath_var=$shlibpath_var 11510 11511# Is shlibpath searched before the hard-coded library search path? 11512shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11513 11514# How to hardcode a shared library path into an executable. 11515hardcode_action=$hardcode_action 11516 11517# Whether we should hardcode library paths into libraries. 11518hardcode_into_libs=$hardcode_into_libs 11519 11520# Flag to hardcode \$libdir into a binary during linking. 11521# This must work even if \$libdir does not exist. 11522hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11523 11524# If ld is used when linking, flag to hardcode \$libdir into 11525# a binary during linking. This must work even if \$libdir does 11526# not exist. 11527hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11528 11529# Whether we need a single -rpath flag with a separated argument. 11530hardcode_libdir_separator=$lt_hardcode_libdir_separator 11531 11532# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11533# resulting binary. 11534hardcode_direct=$hardcode_direct 11535 11536# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11537# resulting binary. 11538hardcode_minus_L=$hardcode_minus_L 11539 11540# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11541# the resulting binary. 11542hardcode_shlibpath_var=$hardcode_shlibpath_var 11543 11544# Set to yes if building a shared library automatically hardcodes DIR into the library 11545# and all subsequent libraries and executables linked against it. 11546hardcode_automatic=$hardcode_automatic 11547 11548# Variables whose values should be saved in libtool wrapper scripts and 11549# restored at relink time. 11550variables_saved_for_relink="$variables_saved_for_relink" 11551 11552# Whether libtool must link a program against all its dependency libraries. 11553link_all_deplibs=$link_all_deplibs 11554 11555# Compile-time system search path for libraries 11556sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11557 11558# Run-time system search path for libraries 11559sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11560 11561# Fix the shell variable \$srcfile for the compiler. 11562fix_srcfile_path=$lt_fix_srcfile_path 11563 11564# Set to yes if exported symbols are required. 11565always_export_symbols=$always_export_symbols 11566 11567# The commands to list exported symbols. 11568export_symbols_cmds=$lt_export_symbols_cmds 11569 11570# The commands to extract the exported symbol list from a shared archive. 11571extract_expsyms_cmds=$lt_extract_expsyms_cmds 11572 11573# Symbols that should not be listed in the preloaded symbols. 11574exclude_expsyms=$lt_exclude_expsyms 11575 11576# Symbols that must always be exported. 11577include_expsyms=$lt_include_expsyms 11578 11579# ### END LIBTOOL CONFIG 11580 11581__EOF__ 11582 11583 11584 case $host_os in 11585 aix3*) 11586 cat <<\EOF >> "$cfgfile" 11587 11588# AIX sometimes has problems with the GCC collect2 program. For some 11589# reason, if we set the COLLECT_NAMES environment variable, the problems 11590# vanish in a puff of smoke. 11591if test "X${COLLECT_NAMES+set}" != Xset; then 11592 COLLECT_NAMES= 11593 export COLLECT_NAMES 11594fi 11595EOF 11596 ;; 11597 esac 11598 11599 # We use sed instead of cat because bash on DJGPP gets confused if 11600 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11601 # text mode, it properly converts lines to CR/LF. This bash problem 11602 # is reportedly fixed, but why not run on old versions too? 11603 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11604 11605 mv -f "$cfgfile" "$ofile" || \ 11606 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11607 chmod +x "$ofile" 11608 11609else 11610 # If there is no Makefile yet, we rely on a make rule to execute 11611 # `config.status --recheck' to rerun these tests and create the 11612 # libtool script then. 11613 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11614 if test -f "$ltmain_in"; then 11615 test -f Makefile && make "$ltmain" 11616 fi 11617fi 11618 11619 11620ac_ext=c 11621ac_cpp='$CPP $CPPFLAGS' 11622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11624ac_compiler_gnu=$ac_cv_c_compiler_gnu 11625 11626CC="$lt_save_CC" 11627 11628 11629# Check whether --with-tags was given. 11630if test "${with_tags+set}" = set; then 11631 withval=$with_tags; tagnames="$withval" 11632fi 11633 11634 11635if test -f "$ltmain" && test -n "$tagnames"; then 11636 if test ! -f "${ofile}"; then 11637 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11638$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11639 fi 11640 11641 if test -z "$LTCC"; then 11642 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11643 if test -z "$LTCC"; then 11644 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11645$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11646 else 11647 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11648$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11649 fi 11650 fi 11651 if test -z "$LTCFLAGS"; then 11652 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11653 fi 11654 11655 # Extract list of available tagged configurations in $ofile. 11656 # Note that this assumes the entire list is on one line. 11657 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11658 11659 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11660 for tagname in $tagnames; do 11661 IFS="$lt_save_ifs" 11662 # Check whether tagname contains only valid characters 11663 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11664 "") ;; 11665 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11666$as_echo "$as_me: error: invalid tag name: $tagname" >&2;} 11667 { (exit 1); exit 1; }; } 11668 ;; 11669 esac 11670 11671 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11672 then 11673 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11674$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11675 { (exit 1); exit 1; }; } 11676 fi 11677 11678 # Update the list of available tags. 11679 if test -n "$tagname"; then 11680 echo appending configuration tag \"$tagname\" to $ofile 11681 11682 case $tagname in 11683 CXX) 11684 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11685 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11686 (test "X$CXX" != "Xg++"))) ; then 11687 ac_ext=cpp 11688ac_cpp='$CXXCPP $CPPFLAGS' 11689ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11690ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11691ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11692 11693 11694 11695 11696archive_cmds_need_lc_CXX=no 11697allow_undefined_flag_CXX= 11698always_export_symbols_CXX=no 11699archive_expsym_cmds_CXX= 11700export_dynamic_flag_spec_CXX= 11701hardcode_direct_CXX=no 11702hardcode_libdir_flag_spec_CXX= 11703hardcode_libdir_flag_spec_ld_CXX= 11704hardcode_libdir_separator_CXX= 11705hardcode_minus_L_CXX=no 11706hardcode_shlibpath_var_CXX=unsupported 11707hardcode_automatic_CXX=no 11708module_cmds_CXX= 11709module_expsym_cmds_CXX= 11710link_all_deplibs_CXX=unknown 11711old_archive_cmds_CXX=$old_archive_cmds 11712no_undefined_flag_CXX= 11713whole_archive_flag_spec_CXX= 11714enable_shared_with_static_runtimes_CXX=no 11715 11716# Dependencies to place before and after the object being linked: 11717predep_objects_CXX= 11718postdep_objects_CXX= 11719predeps_CXX= 11720postdeps_CXX= 11721compiler_lib_search_path_CXX= 11722compiler_lib_search_dirs_CXX= 11723 11724# Source file extension for C++ test sources. 11725ac_ext=cpp 11726 11727# Object file extension for compiled C++ test sources. 11728objext=o 11729objext_CXX=$objext 11730 11731# Code to be used in simple compile tests 11732lt_simple_compile_test_code="int some_variable = 0;" 11733 11734# Code to be used in simple link tests 11735lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11736 11737# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11738 11739# If no C compiler was specified, use CC. 11740LTCC=${LTCC-"$CC"} 11741 11742# If no C compiler flags were specified, use CFLAGS. 11743LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11744 11745# Allow CC to be a program name with arguments. 11746compiler=$CC 11747 11748 11749# save warnings/boilerplate of simple test code 11750ac_outfile=conftest.$ac_objext 11751echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11752eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11753_lt_compiler_boilerplate=`cat conftest.err` 11754$rm conftest* 11755 11756ac_outfile=conftest.$ac_objext 11757echo "$lt_simple_link_test_code" >conftest.$ac_ext 11758eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11759_lt_linker_boilerplate=`cat conftest.err` 11760$rm -r conftest* 11761 11762 11763# Allow CC to be a program name with arguments. 11764lt_save_CC=$CC 11765lt_save_LD=$LD 11766lt_save_GCC=$GCC 11767GCC=$GXX 11768lt_save_with_gnu_ld=$with_gnu_ld 11769lt_save_path_LD=$lt_cv_path_LD 11770if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11771 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11772else 11773 $as_unset lt_cv_prog_gnu_ld 11774fi 11775if test -n "${lt_cv_path_LDCXX+set}"; then 11776 lt_cv_path_LD=$lt_cv_path_LDCXX 11777else 11778 $as_unset lt_cv_path_LD 11779fi 11780test -z "${LDCXX+set}" || LD=$LDCXX 11781CC=${CXX-"c++"} 11782compiler=$CC 11783compiler_CXX=$CC 11784for cc_temp in $compiler""; do 11785 case $cc_temp in 11786 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11787 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11788 \-*) ;; 11789 *) break;; 11790 esac 11791done 11792cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11793 11794 11795# We don't want -fno-exception wen compiling C++ code, so set the 11796# no_builtin_flag separately 11797if test "$GXX" = yes; then 11798 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11799else 11800 lt_prog_compiler_no_builtin_flag_CXX= 11801fi 11802 11803if test "$GXX" = yes; then 11804 # Set up default GNU C++ configuration 11805 11806 11807# Check whether --with-gnu-ld was given. 11808if test "${with_gnu_ld+set}" = set; then 11809 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11810else 11811 with_gnu_ld=no 11812fi 11813 11814ac_prog=ld 11815if test "$GCC" = yes; then 11816 # Check if gcc -print-prog-name=ld gives a path. 11817 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11818$as_echo_n "checking for ld used by $CC... " >&6; } 11819 case $host in 11820 *-*-mingw*) 11821 # gcc leaves a trailing carriage return which upsets mingw 11822 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11823 *) 11824 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11825 esac 11826 case $ac_prog in 11827 # Accept absolute paths. 11828 [\\/]* | ?:[\\/]*) 11829 re_direlt='/[^/][^/]*/\.\./' 11830 # Canonicalize the pathname of ld 11831 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11832 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11833 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11834 done 11835 test -z "$LD" && LD="$ac_prog" 11836 ;; 11837 "") 11838 # If it fails, then pretend we aren't using GCC. 11839 ac_prog=ld 11840 ;; 11841 *) 11842 # If it is relative, then search for the first ld in PATH. 11843 with_gnu_ld=unknown 11844 ;; 11845 esac 11846elif test "$with_gnu_ld" = yes; then 11847 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 11848$as_echo_n "checking for GNU ld... " >&6; } 11849else 11850 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11851$as_echo_n "checking for non-GNU ld... " >&6; } 11852fi 11853if test "${lt_cv_path_LD+set}" = set; then 11854 $as_echo_n "(cached) " >&6 11855else 11856 if test -z "$LD"; then 11857 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11858 for ac_dir in $PATH; do 11859 IFS="$lt_save_ifs" 11860 test -z "$ac_dir" && ac_dir=. 11861 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11862 lt_cv_path_LD="$ac_dir/$ac_prog" 11863 # Check to see if the program is GNU ld. I'd rather use --version, 11864 # but apparently some variants of GNU ld only accept -v. 11865 # Break only if it was the GNU/non-GNU ld that we prefer. 11866 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11867 *GNU* | *'with BFD'*) 11868 test "$with_gnu_ld" != no && break 11869 ;; 11870 *) 11871 test "$with_gnu_ld" != yes && break 11872 ;; 11873 esac 11874 fi 11875 done 11876 IFS="$lt_save_ifs" 11877else 11878 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11879fi 11880fi 11881 11882LD="$lt_cv_path_LD" 11883if test -n "$LD"; then 11884 { $as_echo "$as_me:$LINENO: result: $LD" >&5 11885$as_echo "$LD" >&6; } 11886else 11887 { $as_echo "$as_me:$LINENO: result: no" >&5 11888$as_echo "no" >&6; } 11889fi 11890test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11891$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11892 { (exit 1); exit 1; }; } 11893{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11894$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11895if test "${lt_cv_prog_gnu_ld+set}" = set; then 11896 $as_echo_n "(cached) " >&6 11897else 11898 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11899case `$LD -v 2>&1 </dev/null` in 11900*GNU* | *'with BFD'*) 11901 lt_cv_prog_gnu_ld=yes 11902 ;; 11903*) 11904 lt_cv_prog_gnu_ld=no 11905 ;; 11906esac 11907fi 11908{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11909$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11910with_gnu_ld=$lt_cv_prog_gnu_ld 11911 11912 11913 11914 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11915 # archiving commands below assume that GNU ld is being used. 11916 if test "$with_gnu_ld" = yes; then 11917 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11918 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' 11919 11920 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11921 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11922 11923 # If archive_cmds runs LD, not CC, wlarc should be empty 11924 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11925 # investigate it a little bit more. (MM) 11926 wlarc='${wl}' 11927 11928 # ancient GNU ld didn't support --whole-archive et. al. 11929 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11930 grep 'no-whole-archive' > /dev/null; then 11931 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11932 else 11933 whole_archive_flag_spec_CXX= 11934 fi 11935 else 11936 with_gnu_ld=no 11937 wlarc= 11938 11939 # A generic and very simple default shared library creation 11940 # command for GNU C++ for the case where it uses the native 11941 # linker, instead of GNU ld. If possible, this setting should 11942 # overridden to take advantage of the native linker features on 11943 # the platform it is being used on. 11944 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11945 fi 11946 11947 # Commands to make compiler produce verbose output that lists 11948 # what "hidden" libraries, object files and flags are used when 11949 # linking a shared library. 11950 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11951 11952else 11953 GXX=no 11954 with_gnu_ld=no 11955 wlarc= 11956fi 11957 11958# PORTME: fill in a description of your system's C++ link characteristics 11959{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11960$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11961ld_shlibs_CXX=yes 11962case $host_os in 11963 aix3*) 11964 # FIXME: insert proper C++ library support 11965 ld_shlibs_CXX=no 11966 ;; 11967 aix[4-9]*) 11968 if test "$host_cpu" = ia64; then 11969 # On IA64, the linker does run time linking by default, so we don't 11970 # have to do anything special. 11971 aix_use_runtimelinking=no 11972 exp_sym_flag='-Bexport' 11973 no_entry_flag="" 11974 else 11975 aix_use_runtimelinking=no 11976 11977 # Test if we are trying to use run time linking or normal 11978 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11979 # need to do runtime linking. 11980 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11981 for ld_flag in $LDFLAGS; do 11982 case $ld_flag in 11983 *-brtl*) 11984 aix_use_runtimelinking=yes 11985 break 11986 ;; 11987 esac 11988 done 11989 ;; 11990 esac 11991 11992 exp_sym_flag='-bexport' 11993 no_entry_flag='-bnoentry' 11994 fi 11995 11996 # When large executables or shared objects are built, AIX ld can 11997 # have problems creating the table of contents. If linking a library 11998 # or program results in "error TOC overflow" add -mminimal-toc to 11999 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12000 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12001 12002 archive_cmds_CXX='' 12003 hardcode_direct_CXX=yes 12004 hardcode_libdir_separator_CXX=':' 12005 link_all_deplibs_CXX=yes 12006 12007 if test "$GXX" = yes; then 12008 case $host_os in aix4.[012]|aix4.[012].*) 12009 # We only want to do this on AIX 4.2 and lower, the check 12010 # below for broken collect2 doesn't work under 4.3+ 12011 collect2name=`${CC} -print-prog-name=collect2` 12012 if test -f "$collect2name" && \ 12013 strings "$collect2name" | grep resolve_lib_name >/dev/null 12014 then 12015 # We have reworked collect2 12016 : 12017 else 12018 # We have old collect2 12019 hardcode_direct_CXX=unsupported 12020 # It fails to find uninstalled libraries when the uninstalled 12021 # path is not listed in the libpath. Setting hardcode_minus_L 12022 # to unsupported forces relinking 12023 hardcode_minus_L_CXX=yes 12024 hardcode_libdir_flag_spec_CXX='-L$libdir' 12025 hardcode_libdir_separator_CXX= 12026 fi 12027 ;; 12028 esac 12029 shared_flag='-shared' 12030 if test "$aix_use_runtimelinking" = yes; then 12031 shared_flag="$shared_flag "'${wl}-G' 12032 fi 12033 else 12034 # not using gcc 12035 if test "$host_cpu" = ia64; then 12036 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12037 # chokes on -Wl,-G. The following line is correct: 12038 shared_flag='-G' 12039 else 12040 if test "$aix_use_runtimelinking" = yes; then 12041 shared_flag='${wl}-G' 12042 else 12043 shared_flag='${wl}-bM:SRE' 12044 fi 12045 fi 12046 fi 12047 12048 # It seems that -bexpall does not export symbols beginning with 12049 # underscore (_), so it is better to generate a list of symbols to export. 12050 always_export_symbols_CXX=yes 12051 if test "$aix_use_runtimelinking" = yes; then 12052 # Warning - without using the other runtime loading flags (-brtl), 12053 # -berok will link without error, but may produce a broken library. 12054 allow_undefined_flag_CXX='-berok' 12055 # Determine the default libpath from the value encoded in an empty executable. 12056 cat >conftest.$ac_ext <<_ACEOF 12057/* confdefs.h. */ 12058_ACEOF 12059cat confdefs.h >>conftest.$ac_ext 12060cat >>conftest.$ac_ext <<_ACEOF 12061/* end confdefs.h. */ 12062 12063int 12064main () 12065{ 12066 12067 ; 12068 return 0; 12069} 12070_ACEOF 12071rm -f conftest.$ac_objext conftest$ac_exeext 12072if { (ac_try="$ac_link" 12073case "(($ac_try" in 12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12075 *) ac_try_echo=$ac_try;; 12076esac 12077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12078$as_echo "$ac_try_echo") >&5 12079 (eval "$ac_link") 2>conftest.er1 12080 ac_status=$? 12081 grep -v '^ *+' conftest.er1 >conftest.err 12082 rm -f conftest.er1 12083 cat conftest.err >&5 12084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12085 (exit $ac_status); } && { 12086 test -z "$ac_cxx_werror_flag" || 12087 test ! -s conftest.err 12088 } && test -s conftest$ac_exeext && { 12089 test "$cross_compiling" = yes || 12090 $as_test_x conftest$ac_exeext 12091 }; then 12092 12093lt_aix_libpath_sed=' 12094 /Import File Strings/,/^$/ { 12095 /^0/ { 12096 s/^0 *\(.*\)$/\1/ 12097 p 12098 } 12099 }' 12100aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12101# Check for a 64-bit object if we didn't find anything. 12102if test -z "$aix_libpath"; then 12103 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12104fi 12105else 12106 $as_echo "$as_me: failed program was:" >&5 12107sed 's/^/| /' conftest.$ac_ext >&5 12108 12109 12110fi 12111 12112rm -rf conftest.dSYM 12113rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12114 conftest$ac_exeext conftest.$ac_ext 12115if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12116 12117 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12118 12119 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" 12120 else 12121 if test "$host_cpu" = ia64; then 12122 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12123 allow_undefined_flag_CXX="-z nodefs" 12124 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" 12125 else 12126 # Determine the default libpath from the value encoded in an empty executable. 12127 cat >conftest.$ac_ext <<_ACEOF 12128/* confdefs.h. */ 12129_ACEOF 12130cat confdefs.h >>conftest.$ac_ext 12131cat >>conftest.$ac_ext <<_ACEOF 12132/* end confdefs.h. */ 12133 12134int 12135main () 12136{ 12137 12138 ; 12139 return 0; 12140} 12141_ACEOF 12142rm -f conftest.$ac_objext conftest$ac_exeext 12143if { (ac_try="$ac_link" 12144case "(($ac_try" in 12145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12146 *) ac_try_echo=$ac_try;; 12147esac 12148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12149$as_echo "$ac_try_echo") >&5 12150 (eval "$ac_link") 2>conftest.er1 12151 ac_status=$? 12152 grep -v '^ *+' conftest.er1 >conftest.err 12153 rm -f conftest.er1 12154 cat conftest.err >&5 12155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12156 (exit $ac_status); } && { 12157 test -z "$ac_cxx_werror_flag" || 12158 test ! -s conftest.err 12159 } && test -s conftest$ac_exeext && { 12160 test "$cross_compiling" = yes || 12161 $as_test_x conftest$ac_exeext 12162 }; then 12163 12164lt_aix_libpath_sed=' 12165 /Import File Strings/,/^$/ { 12166 /^0/ { 12167 s/^0 *\(.*\)$/\1/ 12168 p 12169 } 12170 }' 12171aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12172# Check for a 64-bit object if we didn't find anything. 12173if test -z "$aix_libpath"; then 12174 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12175fi 12176else 12177 $as_echo "$as_me: failed program was:" >&5 12178sed 's/^/| /' conftest.$ac_ext >&5 12179 12180 12181fi 12182 12183rm -rf conftest.dSYM 12184rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12185 conftest$ac_exeext conftest.$ac_ext 12186if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12187 12188 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12189 # Warning - without using the other run time loading flags, 12190 # -berok will link without error, but may produce a broken library. 12191 no_undefined_flag_CXX=' ${wl}-bernotok' 12192 allow_undefined_flag_CXX=' ${wl}-berok' 12193 # Exported symbols can be pulled into shared objects from archives 12194 whole_archive_flag_spec_CXX='$convenience' 12195 archive_cmds_need_lc_CXX=yes 12196 # This is similar to how AIX traditionally builds its shared libraries. 12197 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' 12198 fi 12199 fi 12200 ;; 12201 12202 beos*) 12203 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12204 allow_undefined_flag_CXX=unsupported 12205 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12206 # support --undefined. This deserves some investigation. FIXME 12207 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12208 else 12209 ld_shlibs_CXX=no 12210 fi 12211 ;; 12212 12213 chorus*) 12214 case $cc_basename in 12215 *) 12216 # FIXME: insert proper C++ library support 12217 ld_shlibs_CXX=no 12218 ;; 12219 esac 12220 ;; 12221 12222 cygwin* | mingw* | pw32*) 12223 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12224 # as there is no search path for DLLs. 12225 hardcode_libdir_flag_spec_CXX='-L$libdir' 12226 allow_undefined_flag_CXX=unsupported 12227 always_export_symbols_CXX=no 12228 enable_shared_with_static_runtimes_CXX=yes 12229 12230 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 12231 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' 12232 # If the export-symbols file already is a .def file (1st line 12233 # is EXPORTS), use it as is; otherwise, prepend... 12234 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12235 cp $export_symbols $output_objdir/$soname.def; 12236 else 12237 echo EXPORTS > $output_objdir/$soname.def; 12238 cat $export_symbols >> $output_objdir/$soname.def; 12239 fi~ 12240 $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' 12241 else 12242 ld_shlibs_CXX=no 12243 fi 12244 ;; 12245 darwin* | rhapsody*) 12246 archive_cmds_need_lc_CXX=no 12247 hardcode_direct_CXX=no 12248 hardcode_automatic_CXX=yes 12249 hardcode_shlibpath_var_CXX=unsupported 12250 whole_archive_flag_spec_CXX='' 12251 link_all_deplibs_CXX=yes 12252 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12253 if test "$GXX" = yes ; then 12254 output_verbose_link_cmd='echo' 12255 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}" 12256 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12257 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}" 12258 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}" 12259 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12260 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}" 12261 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}" 12262 fi 12263 else 12264 case $cc_basename in 12265 xlc*) 12266 output_verbose_link_cmd='echo' 12267 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' 12268 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12269 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12270 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}' 12271 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}' 12272 ;; 12273 *) 12274 ld_shlibs_CXX=no 12275 ;; 12276 esac 12277 fi 12278 ;; 12279 12280 dgux*) 12281 case $cc_basename in 12282 ec++*) 12283 # FIXME: insert proper C++ library support 12284 ld_shlibs_CXX=no 12285 ;; 12286 ghcx*) 12287 # Green Hills C++ Compiler 12288 # FIXME: insert proper C++ library support 12289 ld_shlibs_CXX=no 12290 ;; 12291 *) 12292 # FIXME: insert proper C++ library support 12293 ld_shlibs_CXX=no 12294 ;; 12295 esac 12296 ;; 12297 freebsd[12]*) 12298 # C++ shared libraries reported to be fairly broken before switch to ELF 12299 ld_shlibs_CXX=no 12300 ;; 12301 freebsd-elf*) 12302 archive_cmds_need_lc_CXX=no 12303 ;; 12304 freebsd* | dragonfly*) 12305 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12306 # conventions 12307 ld_shlibs_CXX=yes 12308 ;; 12309 gnu*) 12310 ;; 12311 hpux9*) 12312 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12313 hardcode_libdir_separator_CXX=: 12314 export_dynamic_flag_spec_CXX='${wl}-E' 12315 hardcode_direct_CXX=yes 12316 hardcode_minus_L_CXX=yes # Not in the search PATH, 12317 # but as the default 12318 # location of the library. 12319 12320 case $cc_basename in 12321 CC*) 12322 # FIXME: insert proper C++ library support 12323 ld_shlibs_CXX=no 12324 ;; 12325 aCC*) 12326 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' 12327 # Commands to make compiler produce verbose output that lists 12328 # what "hidden" libraries, object files and flags are used when 12329 # linking a shared library. 12330 # 12331 # There doesn't appear to be a way to prevent this compiler from 12332 # explicitly linking system object files so we need to strip them 12333 # from the output so that they don't get included in the library 12334 # dependencies. 12335 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' 12336 ;; 12337 *) 12338 if test "$GXX" = yes; then 12339 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' 12340 else 12341 # FIXME: insert proper C++ library support 12342 ld_shlibs_CXX=no 12343 fi 12344 ;; 12345 esac 12346 ;; 12347 hpux10*|hpux11*) 12348 if test $with_gnu_ld = no; then 12349 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12350 hardcode_libdir_separator_CXX=: 12351 12352 case $host_cpu in 12353 hppa*64*|ia64*) ;; 12354 *) 12355 export_dynamic_flag_spec_CXX='${wl}-E' 12356 ;; 12357 esac 12358 fi 12359 case $host_cpu in 12360 hppa*64*|ia64*) 12361 hardcode_direct_CXX=no 12362 hardcode_shlibpath_var_CXX=no 12363 ;; 12364 *) 12365 hardcode_direct_CXX=yes 12366 hardcode_minus_L_CXX=yes # Not in the search PATH, 12367 # but as the default 12368 # location of the library. 12369 ;; 12370 esac 12371 12372 case $cc_basename in 12373 CC*) 12374 # FIXME: insert proper C++ library support 12375 ld_shlibs_CXX=no 12376 ;; 12377 aCC*) 12378 case $host_cpu in 12379 hppa*64*) 12380 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12381 ;; 12382 ia64*) 12383 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12384 ;; 12385 *) 12386 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12387 ;; 12388 esac 12389 # Commands to make compiler produce verbose output that lists 12390 # what "hidden" libraries, object files and flags are used when 12391 # linking a shared library. 12392 # 12393 # There doesn't appear to be a way to prevent this compiler from 12394 # explicitly linking system object files so we need to strip them 12395 # from the output so that they don't get included in the library 12396 # dependencies. 12397 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' 12398 ;; 12399 *) 12400 if test "$GXX" = yes; then 12401 if test $with_gnu_ld = no; then 12402 case $host_cpu in 12403 hppa*64*) 12404 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12405 ;; 12406 ia64*) 12407 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12408 ;; 12409 *) 12410 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' 12411 ;; 12412 esac 12413 fi 12414 else 12415 # FIXME: insert proper C++ library support 12416 ld_shlibs_CXX=no 12417 fi 12418 ;; 12419 esac 12420 ;; 12421 interix[3-9]*) 12422 hardcode_direct_CXX=no 12423 hardcode_shlibpath_var_CXX=no 12424 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12425 export_dynamic_flag_spec_CXX='${wl}-E' 12426 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12427 # Instead, shared libraries are loaded at an image base (0x10000000 by 12428 # default) and relocated if they conflict, which is a slow very memory 12429 # consuming and fragmenting process. To avoid this, we pick a random, 12430 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12431 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12432 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' 12433 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' 12434 ;; 12435 irix5* | irix6*) 12436 case $cc_basename in 12437 CC*) 12438 # SGI C++ 12439 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' 12440 12441 # Archives containing C++ object files must be created using 12442 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12443 # necessary to make sure instantiated templates are included 12444 # in the archive. 12445 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12446 ;; 12447 *) 12448 if test "$GXX" = yes; then 12449 if test "$with_gnu_ld" = no; then 12450 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' 12451 else 12452 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' 12453 fi 12454 fi 12455 link_all_deplibs_CXX=yes 12456 ;; 12457 esac 12458 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12459 hardcode_libdir_separator_CXX=: 12460 ;; 12461 linux* | k*bsd*-gnu) 12462 case $cc_basename in 12463 KCC*) 12464 # Kuck and Associates, Inc. (KAI) C++ Compiler 12465 12466 # KCC will only create a shared library if the output file 12467 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12468 # to its proper name (with version) after linking. 12469 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' 12470 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' 12471 # Commands to make compiler produce verbose output that lists 12472 # what "hidden" libraries, object files and flags are used when 12473 # linking a shared library. 12474 # 12475 # There doesn't appear to be a way to prevent this compiler from 12476 # explicitly linking system object files so we need to strip them 12477 # from the output so that they don't get included in the library 12478 # dependencies. 12479 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' 12480 12481 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 12482 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12483 12484 # Archives containing C++ object files must be created using 12485 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12486 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12487 ;; 12488 icpc*) 12489 # Intel C++ 12490 with_gnu_ld=yes 12491 # version 8.0 and above of icpc choke on multiply defined symbols 12492 # if we add $predep_objects and $postdep_objects, however 7.1 and 12493 # earlier do not add the objects themselves. 12494 case `$CC -V 2>&1` in 12495 *"Version 7."*) 12496 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12497 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' 12498 ;; 12499 *) # Version 8.0 or newer 12500 tmp_idyn= 12501 case $host_cpu in 12502 ia64*) tmp_idyn=' -i_dynamic';; 12503 esac 12504 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12505 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' 12506 ;; 12507 esac 12508 archive_cmds_need_lc_CXX=no 12509 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12510 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12511 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12512 ;; 12513 pgCC* | pgcpp*) 12514 # Portland Group C++ compiler 12515 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12516 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' 12517 12518 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12519 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12520 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' 12521 ;; 12522 cxx*) 12523 # Compaq C++ 12524 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12525 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' 12526 12527 runpath_var=LD_RUN_PATH 12528 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12529 hardcode_libdir_separator_CXX=: 12530 12531 # Commands to make compiler produce verbose output that lists 12532 # what "hidden" libraries, object files and flags are used when 12533 # linking a shared library. 12534 # 12535 # There doesn't appear to be a way to prevent this compiler from 12536 # explicitly linking system object files so we need to strip them 12537 # from the output so that they don't get included in the library 12538 # dependencies. 12539 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' 12540 ;; 12541 *) 12542 case `$CC -V 2>&1 | sed 5q` in 12543 *Sun\ C*) 12544 # Sun C++ 5.9 12545 no_undefined_flag_CXX=' -zdefs' 12546 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12547 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' 12548 hardcode_libdir_flag_spec_CXX='-R$libdir' 12549 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' 12550 12551 # Not sure whether something based on 12552 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12553 # would be better. 12554 output_verbose_link_cmd='echo' 12555 12556 # Archives containing C++ object files must be created using 12557 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12558 # necessary to make sure instantiated templates are included 12559 # in the archive. 12560 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12561 ;; 12562 esac 12563 ;; 12564 esac 12565 ;; 12566 lynxos*) 12567 # FIXME: insert proper C++ library support 12568 ld_shlibs_CXX=no 12569 ;; 12570 m88k*) 12571 # FIXME: insert proper C++ library support 12572 ld_shlibs_CXX=no 12573 ;; 12574 mvs*) 12575 case $cc_basename in 12576 cxx*) 12577 # FIXME: insert proper C++ library support 12578 ld_shlibs_CXX=no 12579 ;; 12580 *) 12581 # FIXME: insert proper C++ library support 12582 ld_shlibs_CXX=no 12583 ;; 12584 esac 12585 ;; 12586 netbsd*) 12587 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12588 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12589 wlarc= 12590 hardcode_libdir_flag_spec_CXX='-R$libdir' 12591 hardcode_direct_CXX=yes 12592 hardcode_shlibpath_var_CXX=no 12593 fi 12594 # Workaround some broken pre-1.5 toolchains 12595 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12596 ;; 12597 openbsd2*) 12598 # C++ shared libraries are fairly broken 12599 ld_shlibs_CXX=no 12600 ;; 12601 openbsd*) 12602 if test -f /usr/libexec/ld.so; then 12603 hardcode_direct_CXX=yes 12604 hardcode_shlibpath_var_CXX=no 12605 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12606 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12607 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12608 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12609 export_dynamic_flag_spec_CXX='${wl}-E' 12610 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12611 fi 12612 output_verbose_link_cmd='echo' 12613 else 12614 ld_shlibs_CXX=no 12615 fi 12616 ;; 12617 osf3*) 12618 case $cc_basename in 12619 KCC*) 12620 # Kuck and Associates, Inc. (KAI) C++ Compiler 12621 12622 # KCC will only create a shared library if the output file 12623 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12624 # to its proper name (with version) after linking. 12625 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' 12626 12627 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12628 hardcode_libdir_separator_CXX=: 12629 12630 # Archives containing C++ object files must be created using 12631 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12632 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12633 12634 ;; 12635 RCC*) 12636 # Rational C++ 2.4.1 12637 # FIXME: insert proper C++ library support 12638 ld_shlibs_CXX=no 12639 ;; 12640 cxx*) 12641 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12642 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' 12643 12644 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12645 hardcode_libdir_separator_CXX=: 12646 12647 # Commands to make compiler produce verbose output that lists 12648 # what "hidden" libraries, object files and flags are used when 12649 # linking a shared library. 12650 # 12651 # There doesn't appear to be a way to prevent this compiler from 12652 # explicitly linking system object files so we need to strip them 12653 # from the output so that they don't get included in the library 12654 # dependencies. 12655 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' 12656 ;; 12657 *) 12658 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12659 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12660 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' 12661 12662 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12663 hardcode_libdir_separator_CXX=: 12664 12665 # Commands to make compiler produce verbose output that lists 12666 # what "hidden" libraries, object files and flags are used when 12667 # linking a shared library. 12668 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12669 12670 else 12671 # FIXME: insert proper C++ library support 12672 ld_shlibs_CXX=no 12673 fi 12674 ;; 12675 esac 12676 ;; 12677 osf4* | osf5*) 12678 case $cc_basename in 12679 KCC*) 12680 # Kuck and Associates, Inc. (KAI) C++ Compiler 12681 12682 # KCC will only create a shared library if the output file 12683 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12684 # to its proper name (with version) after linking. 12685 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' 12686 12687 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12688 hardcode_libdir_separator_CXX=: 12689 12690 # Archives containing C++ object files must be created using 12691 # the KAI C++ compiler. 12692 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12693 ;; 12694 RCC*) 12695 # Rational C++ 2.4.1 12696 # FIXME: insert proper C++ library support 12697 ld_shlibs_CXX=no 12698 ;; 12699 cxx*) 12700 allow_undefined_flag_CXX=' -expect_unresolved \*' 12701 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' 12702 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12703 echo "-hidden">> $lib.exp~ 12704 $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~ 12705 $rm $lib.exp' 12706 12707 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12708 hardcode_libdir_separator_CXX=: 12709 12710 # Commands to make compiler produce verbose output that lists 12711 # what "hidden" libraries, object files and flags are used when 12712 # linking a shared library. 12713 # 12714 # There doesn't appear to be a way to prevent this compiler from 12715 # explicitly linking system object files so we need to strip them 12716 # from the output so that they don't get included in the library 12717 # dependencies. 12718 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' 12719 ;; 12720 *) 12721 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12722 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12723 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' 12724 12725 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12726 hardcode_libdir_separator_CXX=: 12727 12728 # Commands to make compiler produce verbose output that lists 12729 # what "hidden" libraries, object files and flags are used when 12730 # linking a shared library. 12731 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12732 12733 else 12734 # FIXME: insert proper C++ library support 12735 ld_shlibs_CXX=no 12736 fi 12737 ;; 12738 esac 12739 ;; 12740 psos*) 12741 # FIXME: insert proper C++ library support 12742 ld_shlibs_CXX=no 12743 ;; 12744 sunos4*) 12745 case $cc_basename in 12746 CC*) 12747 # Sun C++ 4.x 12748 # FIXME: insert proper C++ library support 12749 ld_shlibs_CXX=no 12750 ;; 12751 lcc*) 12752 # Lucid 12753 # FIXME: insert proper C++ library support 12754 ld_shlibs_CXX=no 12755 ;; 12756 *) 12757 # FIXME: insert proper C++ library support 12758 ld_shlibs_CXX=no 12759 ;; 12760 esac 12761 ;; 12762 solaris*) 12763 case $cc_basename in 12764 CC*) 12765 # Sun C++ 4.2, 5.x and Centerline C++ 12766 archive_cmds_need_lc_CXX=yes 12767 no_undefined_flag_CXX=' -zdefs' 12768 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12769 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12770 $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' 12771 12772 hardcode_libdir_flag_spec_CXX='-R$libdir' 12773 hardcode_shlibpath_var_CXX=no 12774 case $host_os in 12775 solaris2.[0-5] | solaris2.[0-5].*) ;; 12776 *) 12777 # The compiler driver will combine and reorder linker options, 12778 # but understands `-z linker_flag'. 12779 # Supported since Solaris 2.6 (maybe 2.5.1?) 12780 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12781 ;; 12782 esac 12783 link_all_deplibs_CXX=yes 12784 12785 output_verbose_link_cmd='echo' 12786 12787 # Archives containing C++ object files must be created using 12788 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12789 # necessary to make sure instantiated templates are included 12790 # in the archive. 12791 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12792 ;; 12793 gcx*) 12794 # Green Hills C++ Compiler 12795 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12796 12797 # The C++ compiler must be used to create the archive. 12798 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12799 ;; 12800 *) 12801 # GNU C++ compiler with Solaris linker 12802 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12803 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12804 if $CC --version | grep -v '^2\.7' > /dev/null; then 12805 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12806 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12807 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12808 12809 # Commands to make compiler produce verbose output that lists 12810 # what "hidden" libraries, object files and flags are used when 12811 # linking a shared library. 12812 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12813 else 12814 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12815 # platform. 12816 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12817 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12818 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12819 12820 # Commands to make compiler produce verbose output that lists 12821 # what "hidden" libraries, object files and flags are used when 12822 # linking a shared library. 12823 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12824 fi 12825 12826 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12827 case $host_os in 12828 solaris2.[0-5] | solaris2.[0-5].*) ;; 12829 *) 12830 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12831 ;; 12832 esac 12833 fi 12834 ;; 12835 esac 12836 ;; 12837 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12838 no_undefined_flag_CXX='${wl}-z,text' 12839 archive_cmds_need_lc_CXX=no 12840 hardcode_shlibpath_var_CXX=no 12841 runpath_var='LD_RUN_PATH' 12842 12843 case $cc_basename in 12844 CC*) 12845 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12846 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12847 ;; 12848 *) 12849 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12850 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12851 ;; 12852 esac 12853 ;; 12854 sysv5* | sco3.2v5* | sco5v6*) 12855 # Note: We can NOT use -z defs as we might desire, because we do not 12856 # link with -lc, and that would cause any symbols used from libc to 12857 # always be unresolved, which means just about no library would 12858 # ever link correctly. If we're not using GNU ld we use -z text 12859 # though, which does catch some bad symbols but isn't as heavy-handed 12860 # as -z defs. 12861 # For security reasons, it is highly recommended that you always 12862 # use absolute paths for naming shared libraries, and exclude the 12863 # DT_RUNPATH tag from executables and libraries. But doing so 12864 # requires that you compile everything twice, which is a pain. 12865 # So that behaviour is only enabled if SCOABSPATH is set to a 12866 # non-empty value in the environment. Most likely only useful for 12867 # creating official distributions of packages. 12868 # This is a hack until libtool officially supports absolute path 12869 # names for shared libraries. 12870 no_undefined_flag_CXX='${wl}-z,text' 12871 allow_undefined_flag_CXX='${wl}-z,nodefs' 12872 archive_cmds_need_lc_CXX=no 12873 hardcode_shlibpath_var_CXX=no 12874 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12875 hardcode_libdir_separator_CXX=':' 12876 link_all_deplibs_CXX=yes 12877 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12878 runpath_var='LD_RUN_PATH' 12879 12880 case $cc_basename in 12881 CC*) 12882 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12883 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12884 ;; 12885 *) 12886 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12887 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12888 ;; 12889 esac 12890 ;; 12891 tandem*) 12892 case $cc_basename in 12893 NCC*) 12894 # NonStop-UX NCC 3.20 12895 # FIXME: insert proper C++ library support 12896 ld_shlibs_CXX=no 12897 ;; 12898 *) 12899 # FIXME: insert proper C++ library support 12900 ld_shlibs_CXX=no 12901 ;; 12902 esac 12903 ;; 12904 vxworks*) 12905 # FIXME: insert proper C++ library support 12906 ld_shlibs_CXX=no 12907 ;; 12908 *) 12909 # FIXME: insert proper C++ library support 12910 ld_shlibs_CXX=no 12911 ;; 12912esac 12913{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12914$as_echo "$ld_shlibs_CXX" >&6; } 12915test "$ld_shlibs_CXX" = no && can_build_shared=no 12916 12917GCC_CXX="$GXX" 12918LD_CXX="$LD" 12919 12920cat > conftest.$ac_ext <<EOF 12921class Foo 12922{ 12923public: 12924 Foo (void) { a = 0; } 12925private: 12926 int a; 12927}; 12928EOF 12929 12930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12931 (eval $ac_compile) 2>&5 12932 ac_status=$? 12933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12934 (exit $ac_status); }; then 12935 # Parse the compiler output and extract the necessary 12936 # objects, libraries and library flags. 12937 12938 # Sentinel used to keep track of whether or not we are before 12939 # the conftest object file. 12940 pre_test_object_deps_done=no 12941 12942 # The `*' in the case matches for architectures that use `case' in 12943 # $output_verbose_cmd can trigger glob expansion during the loop 12944 # eval without this substitution. 12945 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12946 12947 for p in `eval $output_verbose_link_cmd`; do 12948 case $p in 12949 12950 -L* | -R* | -l*) 12951 # Some compilers place space between "-{L,R}" and the path. 12952 # Remove the space. 12953 if test $p = "-L" \ 12954 || test $p = "-R"; then 12955 prev=$p 12956 continue 12957 else 12958 prev= 12959 fi 12960 12961 if test "$pre_test_object_deps_done" = no; then 12962 case $p in 12963 -L* | -R*) 12964 # Internal compiler library paths should come after those 12965 # provided the user. The postdeps already come after the 12966 # user supplied libs so there is no need to process them. 12967 if test -z "$compiler_lib_search_path_CXX"; then 12968 compiler_lib_search_path_CXX="${prev}${p}" 12969 else 12970 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12971 fi 12972 ;; 12973 # The "-l" case would never come before the object being 12974 # linked, so don't bother handling this case. 12975 esac 12976 else 12977 if test -z "$postdeps_CXX"; then 12978 postdeps_CXX="${prev}${p}" 12979 else 12980 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12981 fi 12982 fi 12983 ;; 12984 12985 *.$objext) 12986 # This assumes that the test object file only shows up 12987 # once in the compiler output. 12988 if test "$p" = "conftest.$objext"; then 12989 pre_test_object_deps_done=yes 12990 continue 12991 fi 12992 12993 if test "$pre_test_object_deps_done" = no; then 12994 if test -z "$predep_objects_CXX"; then 12995 predep_objects_CXX="$p" 12996 else 12997 predep_objects_CXX="$predep_objects_CXX $p" 12998 fi 12999 else 13000 if test -z "$postdep_objects_CXX"; then 13001 postdep_objects_CXX="$p" 13002 else 13003 postdep_objects_CXX="$postdep_objects_CXX $p" 13004 fi 13005 fi 13006 ;; 13007 13008 *) ;; # Ignore the rest. 13009 13010 esac 13011 done 13012 13013 # Clean up. 13014 rm -f a.out a.exe 13015else 13016 echo "libtool.m4: error: problem compiling CXX test program" 13017fi 13018 13019$rm -f confest.$objext 13020 13021compiler_lib_search_dirs_CXX= 13022if test -n "$compiler_lib_search_path_CXX"; then 13023 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13024fi 13025 13026# PORTME: override above test on systems where it is broken 13027case $host_os in 13028interix[3-9]*) 13029 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13030 # hack all around it, let's just trust "g++" to DTRT. 13031 predep_objects_CXX= 13032 postdep_objects_CXX= 13033 postdeps_CXX= 13034 ;; 13035 13036linux*) 13037 case `$CC -V 2>&1 | sed 5q` in 13038 *Sun\ C*) 13039 # Sun C++ 5.9 13040 # 13041 # The more standards-conforming stlport4 library is 13042 # incompatible with the Cstd library. Avoid specifying 13043 # it if it's in CXXFLAGS. Ignore libCrun as 13044 # -library=stlport4 depends on it. 13045 case " $CXX $CXXFLAGS " in 13046 *" -library=stlport4 "*) 13047 solaris_use_stlport4=yes 13048 ;; 13049 esac 13050 if test "$solaris_use_stlport4" != yes; then 13051 postdeps_CXX='-library=Cstd -library=Crun' 13052 fi 13053 ;; 13054 esac 13055 ;; 13056 13057solaris*) 13058 case $cc_basename in 13059 CC*) 13060 # The more standards-conforming stlport4 library is 13061 # incompatible with the Cstd library. Avoid specifying 13062 # it if it's in CXXFLAGS. Ignore libCrun as 13063 # -library=stlport4 depends on it. 13064 case " $CXX $CXXFLAGS " in 13065 *" -library=stlport4 "*) 13066 solaris_use_stlport4=yes 13067 ;; 13068 esac 13069 13070 # Adding this requires a known-good setup of shared libraries for 13071 # Sun compiler versions before 5.6, else PIC objects from an old 13072 # archive will be linked into the output, leading to subtle bugs. 13073 if test "$solaris_use_stlport4" != yes; then 13074 postdeps_CXX='-library=Cstd -library=Crun' 13075 fi 13076 ;; 13077 esac 13078 ;; 13079esac 13080 13081case " $postdeps_CXX " in 13082*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13083esac 13084 13085lt_prog_compiler_wl_CXX= 13086lt_prog_compiler_pic_CXX= 13087lt_prog_compiler_static_CXX= 13088 13089{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13090$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13091 13092 # C++ specific cases for pic, static, wl, etc. 13093 if test "$GXX" = yes; then 13094 lt_prog_compiler_wl_CXX='-Wl,' 13095 lt_prog_compiler_static_CXX='-static' 13096 13097 case $host_os in 13098 aix*) 13099 # All AIX code is PIC. 13100 if test "$host_cpu" = ia64; then 13101 # AIX 5 now supports IA64 processor 13102 lt_prog_compiler_static_CXX='-Bstatic' 13103 fi 13104 ;; 13105 amigaos*) 13106 # FIXME: we need at least 68020 code to build shared libraries, but 13107 # adding the `-m68020' flag to GCC prevents building anything better, 13108 # like `-m68040'. 13109 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13110 ;; 13111 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13112 # PIC is the default for these OSes. 13113 ;; 13114 mingw* | cygwin* | os2* | pw32*) 13115 # This hack is so that the source file can tell whether it is being 13116 # built for inclusion in a dll (and should export symbols for example). 13117 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13118 # (--disable-auto-import) libraries 13119 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13120 ;; 13121 darwin* | rhapsody*) 13122 # PIC is the default on this platform 13123 # Common symbols not allowed in MH_DYLIB files 13124 lt_prog_compiler_pic_CXX='-fno-common' 13125 ;; 13126 *djgpp*) 13127 # DJGPP does not support shared libraries at all 13128 lt_prog_compiler_pic_CXX= 13129 ;; 13130 interix[3-9]*) 13131 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13132 # Instead, we relocate shared libraries at runtime. 13133 ;; 13134 sysv4*MP*) 13135 if test -d /usr/nec; then 13136 lt_prog_compiler_pic_CXX=-Kconform_pic 13137 fi 13138 ;; 13139 hpux*) 13140 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13141 # not for PA HP-UX. 13142 case $host_cpu in 13143 hppa*64*|ia64*) 13144 ;; 13145 *) 13146 lt_prog_compiler_pic_CXX='-fPIC' 13147 ;; 13148 esac 13149 ;; 13150 *) 13151 lt_prog_compiler_pic_CXX='-fPIC' 13152 ;; 13153 esac 13154 else 13155 case $host_os in 13156 aix[4-9]*) 13157 # All AIX code is PIC. 13158 if test "$host_cpu" = ia64; then 13159 # AIX 5 now supports IA64 processor 13160 lt_prog_compiler_static_CXX='-Bstatic' 13161 else 13162 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13163 fi 13164 ;; 13165 chorus*) 13166 case $cc_basename in 13167 cxch68*) 13168 # Green Hills C++ Compiler 13169 # _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" 13170 ;; 13171 esac 13172 ;; 13173 darwin*) 13174 # PIC is the default on this platform 13175 # Common symbols not allowed in MH_DYLIB files 13176 case $cc_basename in 13177 xlc*) 13178 lt_prog_compiler_pic_CXX='-qnocommon' 13179 lt_prog_compiler_wl_CXX='-Wl,' 13180 ;; 13181 esac 13182 ;; 13183 dgux*) 13184 case $cc_basename in 13185 ec++*) 13186 lt_prog_compiler_pic_CXX='-KPIC' 13187 ;; 13188 ghcx*) 13189 # Green Hills C++ Compiler 13190 lt_prog_compiler_pic_CXX='-pic' 13191 ;; 13192 *) 13193 ;; 13194 esac 13195 ;; 13196 freebsd* | dragonfly*) 13197 # FreeBSD uses GNU C++ 13198 ;; 13199 hpux9* | hpux10* | hpux11*) 13200 case $cc_basename in 13201 CC*) 13202 lt_prog_compiler_wl_CXX='-Wl,' 13203 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13204 if test "$host_cpu" != ia64; then 13205 lt_prog_compiler_pic_CXX='+Z' 13206 fi 13207 ;; 13208 aCC*) 13209 lt_prog_compiler_wl_CXX='-Wl,' 13210 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13211 case $host_cpu in 13212 hppa*64*|ia64*) 13213 # +Z the default 13214 ;; 13215 *) 13216 lt_prog_compiler_pic_CXX='+Z' 13217 ;; 13218 esac 13219 ;; 13220 *) 13221 ;; 13222 esac 13223 ;; 13224 interix*) 13225 # This is c89, which is MS Visual C++ (no shared libs) 13226 # Anyone wants to do a port? 13227 ;; 13228 irix5* | irix6* | nonstopux*) 13229 case $cc_basename in 13230 CC*) 13231 lt_prog_compiler_wl_CXX='-Wl,' 13232 lt_prog_compiler_static_CXX='-non_shared' 13233 # CC pic flag -KPIC is the default. 13234 ;; 13235 *) 13236 ;; 13237 esac 13238 ;; 13239 linux* | k*bsd*-gnu) 13240 case $cc_basename in 13241 KCC*) 13242 # KAI C++ Compiler 13243 lt_prog_compiler_wl_CXX='--backend -Wl,' 13244 lt_prog_compiler_pic_CXX='-fPIC' 13245 ;; 13246 icpc* | ecpc*) 13247 # Intel C++ 13248 lt_prog_compiler_wl_CXX='-Wl,' 13249 lt_prog_compiler_pic_CXX='-KPIC' 13250 lt_prog_compiler_static_CXX='-static' 13251 ;; 13252 pgCC* | pgcpp*) 13253 # Portland Group C++ compiler. 13254 lt_prog_compiler_wl_CXX='-Wl,' 13255 lt_prog_compiler_pic_CXX='-fpic' 13256 lt_prog_compiler_static_CXX='-Bstatic' 13257 ;; 13258 cxx*) 13259 # Compaq C++ 13260 # Make sure the PIC flag is empty. It appears that all Alpha 13261 # Linux and Compaq Tru64 Unix objects are PIC. 13262 lt_prog_compiler_pic_CXX= 13263 lt_prog_compiler_static_CXX='-non_shared' 13264 ;; 13265 *) 13266 case `$CC -V 2>&1 | sed 5q` in 13267 *Sun\ C*) 13268 # Sun C++ 5.9 13269 lt_prog_compiler_pic_CXX='-KPIC' 13270 lt_prog_compiler_static_CXX='-Bstatic' 13271 lt_prog_compiler_wl_CXX='-Qoption ld ' 13272 ;; 13273 esac 13274 ;; 13275 esac 13276 ;; 13277 lynxos*) 13278 ;; 13279 m88k*) 13280 ;; 13281 mvs*) 13282 case $cc_basename in 13283 cxx*) 13284 lt_prog_compiler_pic_CXX='-W c,exportall' 13285 ;; 13286 *) 13287 ;; 13288 esac 13289 ;; 13290 netbsd*) 13291 ;; 13292 osf3* | osf4* | osf5*) 13293 case $cc_basename in 13294 KCC*) 13295 lt_prog_compiler_wl_CXX='--backend -Wl,' 13296 ;; 13297 RCC*) 13298 # Rational C++ 2.4.1 13299 lt_prog_compiler_pic_CXX='-pic' 13300 ;; 13301 cxx*) 13302 # Digital/Compaq C++ 13303 lt_prog_compiler_wl_CXX='-Wl,' 13304 # Make sure the PIC flag is empty. It appears that all Alpha 13305 # Linux and Compaq Tru64 Unix objects are PIC. 13306 lt_prog_compiler_pic_CXX= 13307 lt_prog_compiler_static_CXX='-non_shared' 13308 ;; 13309 *) 13310 ;; 13311 esac 13312 ;; 13313 psos*) 13314 ;; 13315 solaris*) 13316 case $cc_basename in 13317 CC*) 13318 # Sun C++ 4.2, 5.x and Centerline C++ 13319 lt_prog_compiler_pic_CXX='-KPIC' 13320 lt_prog_compiler_static_CXX='-Bstatic' 13321 lt_prog_compiler_wl_CXX='-Qoption ld ' 13322 ;; 13323 gcx*) 13324 # Green Hills C++ Compiler 13325 lt_prog_compiler_pic_CXX='-PIC' 13326 ;; 13327 *) 13328 ;; 13329 esac 13330 ;; 13331 sunos4*) 13332 case $cc_basename in 13333 CC*) 13334 # Sun C++ 4.x 13335 lt_prog_compiler_pic_CXX='-pic' 13336 lt_prog_compiler_static_CXX='-Bstatic' 13337 ;; 13338 lcc*) 13339 # Lucid 13340 lt_prog_compiler_pic_CXX='-pic' 13341 ;; 13342 *) 13343 ;; 13344 esac 13345 ;; 13346 tandem*) 13347 case $cc_basename in 13348 NCC*) 13349 # NonStop-UX NCC 3.20 13350 lt_prog_compiler_pic_CXX='-KPIC' 13351 ;; 13352 *) 13353 ;; 13354 esac 13355 ;; 13356 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13357 case $cc_basename in 13358 CC*) 13359 lt_prog_compiler_wl_CXX='-Wl,' 13360 lt_prog_compiler_pic_CXX='-KPIC' 13361 lt_prog_compiler_static_CXX='-Bstatic' 13362 ;; 13363 esac 13364 ;; 13365 vxworks*) 13366 ;; 13367 *) 13368 lt_prog_compiler_can_build_shared_CXX=no 13369 ;; 13370 esac 13371 fi 13372 13373{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 13374$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 13375 13376# 13377# Check to make sure the PIC flag actually works. 13378# 13379if test -n "$lt_prog_compiler_pic_CXX"; then 13380 13381{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13382$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 13383if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 13384 $as_echo_n "(cached) " >&6 13385else 13386 lt_cv_prog_compiler_pic_works_CXX=no 13387 ac_outfile=conftest.$ac_objext 13388 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13389 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13390 # Insert the option either (1) after the last *FLAGS variable, or 13391 # (2) before a word containing "conftest.", or (3) at the end. 13392 # Note that $ac_compile itself does not contain backslashes and begins 13393 # with a dollar sign (not a hyphen), so the echo should work correctly. 13394 # The option is referenced via a variable to avoid confusing sed. 13395 lt_compile=`echo "$ac_compile" | $SED \ 13396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13398 -e 's:$: $lt_compiler_flag:'` 13399 (eval echo "\"\$as_me:13399: $lt_compile\"" >&5) 13400 (eval "$lt_compile" 2>conftest.err) 13401 ac_status=$? 13402 cat conftest.err >&5 13403 echo "$as_me:13403: \$? = $ac_status" >&5 13404 if (exit $ac_status) && test -s "$ac_outfile"; then 13405 # The compiler can only warn and ignore the option if not recognized 13406 # So say no if there are warnings other than the usual output. 13407 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13408 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13409 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13410 lt_cv_prog_compiler_pic_works_CXX=yes 13411 fi 13412 fi 13413 $rm conftest* 13414 13415fi 13416{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13417$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13418 13419if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13420 case $lt_prog_compiler_pic_CXX in 13421 "" | " "*) ;; 13422 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13423 esac 13424else 13425 lt_prog_compiler_pic_CXX= 13426 lt_prog_compiler_can_build_shared_CXX=no 13427fi 13428 13429fi 13430case $host_os in 13431 # For platforms which do not support PIC, -DPIC is meaningless: 13432 *djgpp*) 13433 lt_prog_compiler_pic_CXX= 13434 ;; 13435 *) 13436 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13437 ;; 13438esac 13439 13440# 13441# Check to make sure the static flag actually works. 13442# 13443wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13444{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13445$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13446if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 13447 $as_echo_n "(cached) " >&6 13448else 13449 lt_cv_prog_compiler_static_works_CXX=no 13450 save_LDFLAGS="$LDFLAGS" 13451 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13452 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13453 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13454 # The linker can only warn and ignore the option if not recognized 13455 # So say no if there are warnings 13456 if test -s conftest.err; then 13457 # Append any errors to the config.log. 13458 cat conftest.err 1>&5 13459 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13460 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13461 if diff conftest.exp conftest.er2 >/dev/null; then 13462 lt_cv_prog_compiler_static_works_CXX=yes 13463 fi 13464 else 13465 lt_cv_prog_compiler_static_works_CXX=yes 13466 fi 13467 fi 13468 $rm -r conftest* 13469 LDFLAGS="$save_LDFLAGS" 13470 13471fi 13472{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13473$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13474 13475if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13476 : 13477else 13478 lt_prog_compiler_static_CXX= 13479fi 13480 13481 13482{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13483$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13484if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 13485 $as_echo_n "(cached) " >&6 13486else 13487 lt_cv_prog_compiler_c_o_CXX=no 13488 $rm -r conftest 2>/dev/null 13489 mkdir conftest 13490 cd conftest 13491 mkdir out 13492 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13493 13494 lt_compiler_flag="-o out/conftest2.$ac_objext" 13495 # Insert the option either (1) after the last *FLAGS variable, or 13496 # (2) before a word containing "conftest.", or (3) at the end. 13497 # Note that $ac_compile itself does not contain backslashes and begins 13498 # with a dollar sign (not a hyphen), so the echo should work correctly. 13499 lt_compile=`echo "$ac_compile" | $SED \ 13500 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13502 -e 's:$: $lt_compiler_flag:'` 13503 (eval echo "\"\$as_me:13503: $lt_compile\"" >&5) 13504 (eval "$lt_compile" 2>out/conftest.err) 13505 ac_status=$? 13506 cat out/conftest.err >&5 13507 echo "$as_me:13507: \$? = $ac_status" >&5 13508 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13509 then 13510 # The compiler can only warn and ignore the option if not recognized 13511 # So say no if there are warnings 13512 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13513 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13514 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13515 lt_cv_prog_compiler_c_o_CXX=yes 13516 fi 13517 fi 13518 chmod u+w . 2>&5 13519 $rm conftest* 13520 # SGI C++ compiler will create directory out/ii_files/ for 13521 # template instantiation 13522 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13523 $rm out/* && rmdir out 13524 cd .. 13525 rmdir conftest 13526 $rm conftest* 13527 13528fi 13529{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13530$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13531 13532 13533hard_links="nottested" 13534if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13535 # do not overwrite the value of need_locks provided by the user 13536 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13537$as_echo_n "checking if we can lock with hard links... " >&6; } 13538 hard_links=yes 13539 $rm conftest* 13540 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13541 touch conftest.a 13542 ln conftest.a conftest.b 2>&5 || hard_links=no 13543 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13544 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 13545$as_echo "$hard_links" >&6; } 13546 if test "$hard_links" = no; then 13547 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13548$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13549 need_locks=warn 13550 fi 13551else 13552 need_locks=no 13553fi 13554 13555{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13556$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13557 13558 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13559 case $host_os in 13560 aix[4-9]*) 13561 # If we're using GNU nm, then we don't want the "-C" option. 13562 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13563 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13564 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' 13565 else 13566 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' 13567 fi 13568 ;; 13569 pw32*) 13570 export_symbols_cmds_CXX="$ltdll_cmds" 13571 ;; 13572 cygwin* | mingw*) 13573 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' 13574 ;; 13575 *) 13576 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13577 ;; 13578 esac 13579 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13580 13581{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13582$as_echo "$ld_shlibs_CXX" >&6; } 13583test "$ld_shlibs_CXX" = no && can_build_shared=no 13584 13585# 13586# Do we need to explicitly link libc? 13587# 13588case "x$archive_cmds_need_lc_CXX" in 13589x|xyes) 13590 # Assume -lc should be added 13591 archive_cmds_need_lc_CXX=yes 13592 13593 if test "$enable_shared" = yes && test "$GCC" = yes; then 13594 case $archive_cmds_CXX in 13595 *'~'*) 13596 # FIXME: we may have to deal with multi-command sequences. 13597 ;; 13598 '$CC '*) 13599 # Test whether the compiler implicitly links with -lc since on some 13600 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13601 # to ld, don't add -lc before -lgcc. 13602 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13603$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13604 $rm conftest* 13605 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13606 13607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13608 (eval $ac_compile) 2>&5 13609 ac_status=$? 13610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13611 (exit $ac_status); } 2>conftest.err; then 13612 soname=conftest 13613 lib=conftest 13614 libobjs=conftest.$ac_objext 13615 deplibs= 13616 wl=$lt_prog_compiler_wl_CXX 13617 pic_flag=$lt_prog_compiler_pic_CXX 13618 compiler_flags=-v 13619 linker_flags=-v 13620 verstring= 13621 output_objdir=. 13622 libname=conftest 13623 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13624 allow_undefined_flag_CXX= 13625 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13626 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13627 ac_status=$? 13628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13629 (exit $ac_status); } 13630 then 13631 archive_cmds_need_lc_CXX=no 13632 else 13633 archive_cmds_need_lc_CXX=yes 13634 fi 13635 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13636 else 13637 cat conftest.err 1>&5 13638 fi 13639 $rm conftest* 13640 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13641$as_echo "$archive_cmds_need_lc_CXX" >&6; } 13642 ;; 13643 esac 13644 fi 13645 ;; 13646esac 13647 13648{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13649$as_echo_n "checking dynamic linker characteristics... " >&6; } 13650library_names_spec= 13651libname_spec='lib$name' 13652soname_spec= 13653shrext_cmds=".so" 13654postinstall_cmds= 13655postuninstall_cmds= 13656finish_cmds= 13657finish_eval= 13658shlibpath_var= 13659shlibpath_overrides_runpath=unknown 13660version_type=none 13661dynamic_linker="$host_os ld.so" 13662sys_lib_dlsearch_path_spec="/lib /usr/lib" 13663 13664need_lib_prefix=unknown 13665hardcode_into_libs=no 13666 13667# when you set need_version to no, make sure it does not cause -set_version 13668# flags to be left without arguments 13669need_version=unknown 13670 13671case $host_os in 13672aix3*) 13673 version_type=linux 13674 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13675 shlibpath_var=LIBPATH 13676 13677 # AIX 3 has no versioning support, so we append a major version to the name. 13678 soname_spec='${libname}${release}${shared_ext}$major' 13679 ;; 13680 13681aix[4-9]*) 13682 version_type=linux 13683 need_lib_prefix=no 13684 need_version=no 13685 hardcode_into_libs=yes 13686 if test "$host_cpu" = ia64; then 13687 # AIX 5 supports IA64 13688 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13689 shlibpath_var=LD_LIBRARY_PATH 13690 else 13691 # With GCC up to 2.95.x, collect2 would create an import file 13692 # for dependence libraries. The import file would start with 13693 # the line `#! .'. This would cause the generated library to 13694 # depend on `.', always an invalid library. This was fixed in 13695 # development snapshots of GCC prior to 3.0. 13696 case $host_os in 13697 aix4 | aix4.[01] | aix4.[01].*) 13698 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13699 echo ' yes ' 13700 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13701 : 13702 else 13703 can_build_shared=no 13704 fi 13705 ;; 13706 esac 13707 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13708 # soname into executable. Probably we can add versioning support to 13709 # collect2, so additional links can be useful in future. 13710 if test "$aix_use_runtimelinking" = yes; then 13711 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13712 # instead of lib<name>.a to let people know that these are not 13713 # typical AIX shared libraries. 13714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13715 else 13716 # We preserve .a as extension for shared libraries through AIX4.2 13717 # and later when we are not doing run time linking. 13718 library_names_spec='${libname}${release}.a $libname.a' 13719 soname_spec='${libname}${release}${shared_ext}$major' 13720 fi 13721 shlibpath_var=LIBPATH 13722 fi 13723 ;; 13724 13725amigaos*) 13726 library_names_spec='$libname.ixlibrary $libname.a' 13727 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13728 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' 13729 ;; 13730 13731beos*) 13732 library_names_spec='${libname}${shared_ext}' 13733 dynamic_linker="$host_os ld.so" 13734 shlibpath_var=LIBRARY_PATH 13735 ;; 13736 13737bsdi[45]*) 13738 version_type=linux 13739 need_version=no 13740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13741 soname_spec='${libname}${release}${shared_ext}$major' 13742 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13743 shlibpath_var=LD_LIBRARY_PATH 13744 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13745 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13746 # the default ld.so.conf also contains /usr/contrib/lib and 13747 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13748 # libtool to hard-code these into programs 13749 ;; 13750 13751cygwin* | mingw* | pw32*) 13752 version_type=windows 13753 shrext_cmds=".dll" 13754 need_version=no 13755 need_lib_prefix=no 13756 13757 case $GCC,$host_os in 13758 yes,cygwin* | yes,mingw* | yes,pw32*) 13759 library_names_spec='$libname.dll.a' 13760 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13761 postinstall_cmds='base_file=`basename \${file}`~ 13762 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13763 dldir=$destdir/`dirname \$dlpath`~ 13764 test -d \$dldir || mkdir -p \$dldir~ 13765 $install_prog $dir/$dlname \$dldir/$dlname~ 13766 chmod a+x \$dldir/$dlname' 13767 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13768 dlpath=$dir/\$dldll~ 13769 $rm \$dlpath' 13770 shlibpath_overrides_runpath=yes 13771 13772 case $host_os in 13773 cygwin*) 13774 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13775 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13776 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13777 ;; 13778 mingw*) 13779 # MinGW DLLs use traditional 'lib' prefix 13780 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13781 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13782 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13783 # It is most probably a Windows format PATH printed by 13784 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13785 # path with ; separators, and with drive letters. We can handle the 13786 # drive letters (cygwin fileutils understands them), so leave them, 13787 # especially as we might pass files found there to a mingw objdump, 13788 # which wouldn't understand a cygwinified path. Ahh. 13789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13790 else 13791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13792 fi 13793 ;; 13794 pw32*) 13795 # pw32 DLLs use 'pw' prefix rather than 'lib' 13796 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13797 ;; 13798 esac 13799 ;; 13800 13801 *) 13802 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13803 ;; 13804 esac 13805 dynamic_linker='Win32 ld.exe' 13806 # FIXME: first we should search . and the directory the executable is in 13807 shlibpath_var=PATH 13808 ;; 13809 13810darwin* | rhapsody*) 13811 dynamic_linker="$host_os dyld" 13812 version_type=darwin 13813 need_lib_prefix=no 13814 need_version=no 13815 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13816 soname_spec='${libname}${release}${major}$shared_ext' 13817 shlibpath_overrides_runpath=yes 13818 shlibpath_var=DYLD_LIBRARY_PATH 13819 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13820 13821 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13822 ;; 13823 13824dgux*) 13825 version_type=linux 13826 need_lib_prefix=no 13827 need_version=no 13828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13829 soname_spec='${libname}${release}${shared_ext}$major' 13830 shlibpath_var=LD_LIBRARY_PATH 13831 ;; 13832 13833freebsd1*) 13834 dynamic_linker=no 13835 ;; 13836 13837freebsd* | dragonfly*) 13838 # DragonFly does not have aout. When/if they implement a new 13839 # versioning mechanism, adjust this. 13840 if test -x /usr/bin/objformat; then 13841 objformat=`/usr/bin/objformat` 13842 else 13843 case $host_os in 13844 freebsd[123]*) objformat=aout ;; 13845 *) objformat=elf ;; 13846 esac 13847 fi 13848 version_type=freebsd-$objformat 13849 case $version_type in 13850 freebsd-elf*) 13851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13852 need_version=no 13853 need_lib_prefix=no 13854 ;; 13855 freebsd-*) 13856 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13857 need_version=yes 13858 ;; 13859 esac 13860 shlibpath_var=LD_LIBRARY_PATH 13861 case $host_os in 13862 freebsd2*) 13863 shlibpath_overrides_runpath=yes 13864 ;; 13865 freebsd3.[01]* | freebsdelf3.[01]*) 13866 shlibpath_overrides_runpath=yes 13867 hardcode_into_libs=yes 13868 ;; 13869 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13870 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13871 shlibpath_overrides_runpath=no 13872 hardcode_into_libs=yes 13873 ;; 13874 *) # from 4.6 on, and DragonFly 13875 shlibpath_overrides_runpath=yes 13876 hardcode_into_libs=yes 13877 ;; 13878 esac 13879 ;; 13880 13881gnu*) 13882 version_type=linux 13883 need_lib_prefix=no 13884 need_version=no 13885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13886 soname_spec='${libname}${release}${shared_ext}$major' 13887 shlibpath_var=LD_LIBRARY_PATH 13888 hardcode_into_libs=yes 13889 ;; 13890 13891hpux9* | hpux10* | hpux11*) 13892 # Give a soname corresponding to the major version so that dld.sl refuses to 13893 # link against other versions. 13894 version_type=sunos 13895 need_lib_prefix=no 13896 need_version=no 13897 case $host_cpu in 13898 ia64*) 13899 shrext_cmds='.so' 13900 hardcode_into_libs=yes 13901 dynamic_linker="$host_os dld.so" 13902 shlibpath_var=LD_LIBRARY_PATH 13903 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13905 soname_spec='${libname}${release}${shared_ext}$major' 13906 if test "X$HPUX_IA64_MODE" = X32; then 13907 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13908 else 13909 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13910 fi 13911 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13912 ;; 13913 hppa*64*) 13914 shrext_cmds='.sl' 13915 hardcode_into_libs=yes 13916 dynamic_linker="$host_os dld.sl" 13917 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13918 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13920 soname_spec='${libname}${release}${shared_ext}$major' 13921 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13922 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13923 ;; 13924 *) 13925 shrext_cmds='.sl' 13926 dynamic_linker="$host_os dld.sl" 13927 shlibpath_var=SHLIB_PATH 13928 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13930 soname_spec='${libname}${release}${shared_ext}$major' 13931 ;; 13932 esac 13933 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13934 postinstall_cmds='chmod 555 $lib' 13935 ;; 13936 13937interix[3-9]*) 13938 version_type=linux 13939 need_lib_prefix=no 13940 need_version=no 13941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13942 soname_spec='${libname}${release}${shared_ext}$major' 13943 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13944 shlibpath_var=LD_LIBRARY_PATH 13945 shlibpath_overrides_runpath=no 13946 hardcode_into_libs=yes 13947 ;; 13948 13949irix5* | irix6* | nonstopux*) 13950 case $host_os in 13951 nonstopux*) version_type=nonstopux ;; 13952 *) 13953 if test "$lt_cv_prog_gnu_ld" = yes; then 13954 version_type=linux 13955 else 13956 version_type=irix 13957 fi ;; 13958 esac 13959 need_lib_prefix=no 13960 need_version=no 13961 soname_spec='${libname}${release}${shared_ext}$major' 13962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13963 case $host_os in 13964 irix5* | nonstopux*) 13965 libsuff= shlibsuff= 13966 ;; 13967 *) 13968 case $LD in # libtool.m4 will add one of these switches to LD 13969 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13970 libsuff= shlibsuff= libmagic=32-bit;; 13971 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13972 libsuff=32 shlibsuff=N32 libmagic=N32;; 13973 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13974 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13975 *) libsuff= shlibsuff= libmagic=never-match;; 13976 esac 13977 ;; 13978 esac 13979 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13980 shlibpath_overrides_runpath=no 13981 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13982 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13983 hardcode_into_libs=yes 13984 ;; 13985 13986# No shared lib support for Linux oldld, aout, or coff. 13987linux*oldld* | linux*aout* | linux*coff*) 13988 dynamic_linker=no 13989 ;; 13990 13991# This must be Linux ELF. 13992linux* | k*bsd*-gnu) 13993 version_type=linux 13994 need_lib_prefix=no 13995 need_version=no 13996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13997 soname_spec='${libname}${release}${shared_ext}$major' 13998 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13999 shlibpath_var=LD_LIBRARY_PATH 14000 shlibpath_overrides_runpath=no 14001 # This implies no fast_install, which is unacceptable. 14002 # Some rework will be needed to allow for fast_install 14003 # before this can be enabled. 14004 hardcode_into_libs=yes 14005 14006 # Append ld.so.conf contents to the search path 14007 if test -f /etc/ld.so.conf; then 14008 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' ' '` 14009 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14010 fi 14011 14012 # We used to test for /lib/ld.so.1 and disable shared libraries on 14013 # powerpc, because MkLinux only supported shared libraries with the 14014 # GNU dynamic linker. Since this was broken with cross compilers, 14015 # most powerpc-linux boxes support dynamic linking these days and 14016 # people can always --disable-shared, the test was removed, and we 14017 # assume the GNU/Linux dynamic linker is in use. 14018 dynamic_linker='GNU/Linux ld.so' 14019 ;; 14020 14021netbsd*) 14022 version_type=sunos 14023 need_lib_prefix=no 14024 need_version=no 14025 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14027 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14028 dynamic_linker='NetBSD (a.out) ld.so' 14029 else 14030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14031 soname_spec='${libname}${release}${shared_ext}$major' 14032 dynamic_linker='NetBSD ld.elf_so' 14033 fi 14034 shlibpath_var=LD_LIBRARY_PATH 14035 shlibpath_overrides_runpath=yes 14036 hardcode_into_libs=yes 14037 ;; 14038 14039newsos6) 14040 version_type=linux 14041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14042 shlibpath_var=LD_LIBRARY_PATH 14043 shlibpath_overrides_runpath=yes 14044 ;; 14045 14046nto-qnx*) 14047 version_type=linux 14048 need_lib_prefix=no 14049 need_version=no 14050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14051 soname_spec='${libname}${release}${shared_ext}$major' 14052 shlibpath_var=LD_LIBRARY_PATH 14053 shlibpath_overrides_runpath=yes 14054 ;; 14055 14056openbsd*) 14057 version_type=sunos 14058 sys_lib_dlsearch_path_spec="/usr/lib" 14059 need_lib_prefix=no 14060 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14061 case $host_os in 14062 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14063 *) need_version=no ;; 14064 esac 14065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14066 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14067 shlibpath_var=LD_LIBRARY_PATH 14068 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14069 case $host_os in 14070 openbsd2.[89] | openbsd2.[89].*) 14071 shlibpath_overrides_runpath=no 14072 ;; 14073 *) 14074 shlibpath_overrides_runpath=yes 14075 ;; 14076 esac 14077 else 14078 shlibpath_overrides_runpath=yes 14079 fi 14080 ;; 14081 14082os2*) 14083 libname_spec='$name' 14084 shrext_cmds=".dll" 14085 need_lib_prefix=no 14086 library_names_spec='$libname${shared_ext} $libname.a' 14087 dynamic_linker='OS/2 ld.exe' 14088 shlibpath_var=LIBPATH 14089 ;; 14090 14091osf3* | osf4* | osf5*) 14092 version_type=osf 14093 need_lib_prefix=no 14094 need_version=no 14095 soname_spec='${libname}${release}${shared_ext}$major' 14096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14097 shlibpath_var=LD_LIBRARY_PATH 14098 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14099 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14100 ;; 14101 14102rdos*) 14103 dynamic_linker=no 14104 ;; 14105 14106solaris*) 14107 version_type=linux 14108 need_lib_prefix=no 14109 need_version=no 14110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14111 soname_spec='${libname}${release}${shared_ext}$major' 14112 shlibpath_var=LD_LIBRARY_PATH 14113 shlibpath_overrides_runpath=yes 14114 hardcode_into_libs=yes 14115 # ldd complains unless libraries are executable 14116 postinstall_cmds='chmod +x $lib' 14117 ;; 14118 14119sunos4*) 14120 version_type=sunos 14121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14122 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14123 shlibpath_var=LD_LIBRARY_PATH 14124 shlibpath_overrides_runpath=yes 14125 if test "$with_gnu_ld" = yes; then 14126 need_lib_prefix=no 14127 fi 14128 need_version=yes 14129 ;; 14130 14131sysv4 | sysv4.3*) 14132 version_type=linux 14133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14134 soname_spec='${libname}${release}${shared_ext}$major' 14135 shlibpath_var=LD_LIBRARY_PATH 14136 case $host_vendor in 14137 sni) 14138 shlibpath_overrides_runpath=no 14139 need_lib_prefix=no 14140 export_dynamic_flag_spec='${wl}-Blargedynsym' 14141 runpath_var=LD_RUN_PATH 14142 ;; 14143 siemens) 14144 need_lib_prefix=no 14145 ;; 14146 motorola) 14147 need_lib_prefix=no 14148 need_version=no 14149 shlibpath_overrides_runpath=no 14150 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14151 ;; 14152 esac 14153 ;; 14154 14155sysv4*MP*) 14156 if test -d /usr/nec ;then 14157 version_type=linux 14158 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14159 soname_spec='$libname${shared_ext}.$major' 14160 shlibpath_var=LD_LIBRARY_PATH 14161 fi 14162 ;; 14163 14164sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14165 version_type=freebsd-elf 14166 need_lib_prefix=no 14167 need_version=no 14168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14169 soname_spec='${libname}${release}${shared_ext}$major' 14170 shlibpath_var=LD_LIBRARY_PATH 14171 hardcode_into_libs=yes 14172 if test "$with_gnu_ld" = yes; then 14173 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14174 shlibpath_overrides_runpath=no 14175 else 14176 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14177 shlibpath_overrides_runpath=yes 14178 case $host_os in 14179 sco3.2v5*) 14180 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14181 ;; 14182 esac 14183 fi 14184 sys_lib_dlsearch_path_spec='/usr/lib' 14185 ;; 14186 14187uts4*) 14188 version_type=linux 14189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14190 soname_spec='${libname}${release}${shared_ext}$major' 14191 shlibpath_var=LD_LIBRARY_PATH 14192 ;; 14193 14194*) 14195 dynamic_linker=no 14196 ;; 14197esac 14198{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14199$as_echo "$dynamic_linker" >&6; } 14200test "$dynamic_linker" = no && can_build_shared=no 14201 14202if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14203 $as_echo_n "(cached) " >&6 14204else 14205 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 14206fi 14207 14208sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14209if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14210 $as_echo_n "(cached) " >&6 14211else 14212 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 14213fi 14214 14215sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14216 14217variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14218if test "$GCC" = yes; then 14219 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14220fi 14221 14222{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14223$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14224hardcode_action_CXX= 14225if test -n "$hardcode_libdir_flag_spec_CXX" || \ 14226 test -n "$runpath_var_CXX" || \ 14227 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14228 14229 # We can hardcode non-existant directories. 14230 if test "$hardcode_direct_CXX" != no && 14231 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14232 # have to relink, otherwise we might link with an installed library 14233 # when we should be linking with a yet-to-be-installed one 14234 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14235 test "$hardcode_minus_L_CXX" != no; then 14236 # Linking always hardcodes the temporary library directory. 14237 hardcode_action_CXX=relink 14238 else 14239 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14240 hardcode_action_CXX=immediate 14241 fi 14242else 14243 # We cannot hardcode anything, or else we can only hardcode existing 14244 # directories. 14245 hardcode_action_CXX=unsupported 14246fi 14247{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 14248$as_echo "$hardcode_action_CXX" >&6; } 14249 14250if test "$hardcode_action_CXX" = relink; then 14251 # Fast installation is not supported 14252 enable_fast_install=no 14253elif test "$shlibpath_overrides_runpath" = yes || 14254 test "$enable_shared" = no; then 14255 # Fast installation is not necessary 14256 enable_fast_install=needless 14257fi 14258 14259 14260# The else clause should only fire when bootstrapping the 14261# libtool distribution, otherwise you forgot to ship ltmain.sh 14262# with your package, and you will get complaints that there are 14263# no rules to generate ltmain.sh. 14264if test -f "$ltmain"; then 14265 # See if we are running on zsh, and set the options which allow our commands through 14266 # without removal of \ escapes. 14267 if test -n "${ZSH_VERSION+set}" ; then 14268 setopt NO_GLOB_SUBST 14269 fi 14270 # Now quote all the things that may contain metacharacters while being 14271 # careful not to overquote the AC_SUBSTed values. We take copies of the 14272 # variables and quote the copies for generation of the libtool script. 14273 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 14274 SED SHELL STRIP \ 14275 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14276 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14277 deplibs_check_method reload_flag reload_cmds need_locks \ 14278 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14279 lt_cv_sys_global_symbol_to_c_name_address \ 14280 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14281 old_postinstall_cmds old_postuninstall_cmds \ 14282 compiler_CXX \ 14283 CC_CXX \ 14284 LD_CXX \ 14285 lt_prog_compiler_wl_CXX \ 14286 lt_prog_compiler_pic_CXX \ 14287 lt_prog_compiler_static_CXX \ 14288 lt_prog_compiler_no_builtin_flag_CXX \ 14289 export_dynamic_flag_spec_CXX \ 14290 thread_safe_flag_spec_CXX \ 14291 whole_archive_flag_spec_CXX \ 14292 enable_shared_with_static_runtimes_CXX \ 14293 old_archive_cmds_CXX \ 14294 old_archive_from_new_cmds_CXX \ 14295 predep_objects_CXX \ 14296 postdep_objects_CXX \ 14297 predeps_CXX \ 14298 postdeps_CXX \ 14299 compiler_lib_search_path_CXX \ 14300 compiler_lib_search_dirs_CXX \ 14301 archive_cmds_CXX \ 14302 archive_expsym_cmds_CXX \ 14303 postinstall_cmds_CXX \ 14304 postuninstall_cmds_CXX \ 14305 old_archive_from_expsyms_cmds_CXX \ 14306 allow_undefined_flag_CXX \ 14307 no_undefined_flag_CXX \ 14308 export_symbols_cmds_CXX \ 14309 hardcode_libdir_flag_spec_CXX \ 14310 hardcode_libdir_flag_spec_ld_CXX \ 14311 hardcode_libdir_separator_CXX \ 14312 hardcode_automatic_CXX \ 14313 module_cmds_CXX \ 14314 module_expsym_cmds_CXX \ 14315 lt_cv_prog_compiler_c_o_CXX \ 14316 fix_srcfile_path_CXX \ 14317 exclude_expsyms_CXX \ 14318 include_expsyms_CXX; do 14319 14320 case $var in 14321 old_archive_cmds_CXX | \ 14322 old_archive_from_new_cmds_CXX | \ 14323 archive_cmds_CXX | \ 14324 archive_expsym_cmds_CXX | \ 14325 module_cmds_CXX | \ 14326 module_expsym_cmds_CXX | \ 14327 old_archive_from_expsyms_cmds_CXX | \ 14328 export_symbols_cmds_CXX | \ 14329 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14330 postinstall_cmds | postuninstall_cmds | \ 14331 old_postinstall_cmds | old_postuninstall_cmds | \ 14332 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14333 # Double-quote double-evaled strings. 14334 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14335 ;; 14336 *) 14337 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14338 ;; 14339 esac 14340 done 14341 14342 case $lt_echo in 14343 *'\$0 --fallback-echo"') 14344 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14345 ;; 14346 esac 14347 14348cfgfile="$ofile" 14349 14350 cat <<__EOF__ >> "$cfgfile" 14351# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14352 14353# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14354 14355# Shell to use when invoking shell scripts. 14356SHELL=$lt_SHELL 14357 14358# Whether or not to build shared libraries. 14359build_libtool_libs=$enable_shared 14360 14361# Whether or not to build static libraries. 14362build_old_libs=$enable_static 14363 14364# Whether or not to add -lc for building shared libraries. 14365build_libtool_need_lc=$archive_cmds_need_lc_CXX 14366 14367# Whether or not to disallow shared libs when runtime libs are static 14368allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 14369 14370# Whether or not to optimize for fast installation. 14371fast_install=$enable_fast_install 14372 14373# The host system. 14374host_alias=$host_alias 14375host=$host 14376host_os=$host_os 14377 14378# The build system. 14379build_alias=$build_alias 14380build=$build 14381build_os=$build_os 14382 14383# An echo program that does not interpret backslashes. 14384echo=$lt_echo 14385 14386# The archiver. 14387AR=$lt_AR 14388AR_FLAGS=$lt_AR_FLAGS 14389 14390# A C compiler. 14391LTCC=$lt_LTCC 14392 14393# LTCC compiler flags. 14394LTCFLAGS=$lt_LTCFLAGS 14395 14396# A language-specific compiler. 14397CC=$lt_compiler_CXX 14398 14399# Is the compiler the GNU C compiler? 14400with_gcc=$GCC_CXX 14401 14402# An ERE matcher. 14403EGREP=$lt_EGREP 14404 14405# The linker used to build libraries. 14406LD=$lt_LD_CXX 14407 14408# Whether we need hard or soft links. 14409LN_S=$lt_LN_S 14410 14411# A BSD-compatible nm program. 14412NM=$lt_NM 14413 14414# A symbol stripping program 14415STRIP=$lt_STRIP 14416 14417# Used to examine libraries when file_magic_cmd begins "file" 14418MAGIC_CMD=$MAGIC_CMD 14419 14420# Used on cygwin: DLL creation program. 14421DLLTOOL="$DLLTOOL" 14422 14423# Used on cygwin: object dumper. 14424OBJDUMP="$OBJDUMP" 14425 14426# Used on cygwin: assembler. 14427AS="$AS" 14428 14429# The name of the directory that contains temporary libtool files. 14430objdir=$objdir 14431 14432# How to create reloadable object files. 14433reload_flag=$lt_reload_flag 14434reload_cmds=$lt_reload_cmds 14435 14436# How to pass a linker flag through the compiler. 14437wl=$lt_lt_prog_compiler_wl_CXX 14438 14439# Object file suffix (normally "o"). 14440objext="$ac_objext" 14441 14442# Old archive suffix (normally "a"). 14443libext="$libext" 14444 14445# Shared library suffix (normally ".so"). 14446shrext_cmds='$shrext_cmds' 14447 14448# Executable file suffix (normally ""). 14449exeext="$exeext" 14450 14451# Additional compiler flags for building library objects. 14452pic_flag=$lt_lt_prog_compiler_pic_CXX 14453pic_mode=$pic_mode 14454 14455# What is the maximum length of a command? 14456max_cmd_len=$lt_cv_sys_max_cmd_len 14457 14458# Does compiler simultaneously support -c and -o options? 14459compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 14460 14461# Must we lock files when doing compilation? 14462need_locks=$lt_need_locks 14463 14464# Do we need the lib prefix for modules? 14465need_lib_prefix=$need_lib_prefix 14466 14467# Do we need a version for libraries? 14468need_version=$need_version 14469 14470# Whether dlopen is supported. 14471dlopen_support=$enable_dlopen 14472 14473# Whether dlopen of programs is supported. 14474dlopen_self=$enable_dlopen_self 14475 14476# Whether dlopen of statically linked programs is supported. 14477dlopen_self_static=$enable_dlopen_self_static 14478 14479# Compiler flag to prevent dynamic linking. 14480link_static_flag=$lt_lt_prog_compiler_static_CXX 14481 14482# Compiler flag to turn off builtin functions. 14483no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 14484 14485# Compiler flag to allow reflexive dlopens. 14486export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14487 14488# Compiler flag to generate shared objects directly from archives. 14489whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14490 14491# Compiler flag to generate thread-safe objects. 14492thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14493 14494# Library versioning type. 14495version_type=$version_type 14496 14497# Format of library name prefix. 14498libname_spec=$lt_libname_spec 14499 14500# List of archive names. First name is the real one, the rest are links. 14501# The last name is the one that the linker finds with -lNAME. 14502library_names_spec=$lt_library_names_spec 14503 14504# The coded name of the library, if different from the real name. 14505soname_spec=$lt_soname_spec 14506 14507# Commands used to build and install an old-style archive. 14508RANLIB=$lt_RANLIB 14509old_archive_cmds=$lt_old_archive_cmds_CXX 14510old_postinstall_cmds=$lt_old_postinstall_cmds 14511old_postuninstall_cmds=$lt_old_postuninstall_cmds 14512 14513# Create an old-style archive from a shared archive. 14514old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14515 14516# Create a temporary old-style archive to link instead of a shared archive. 14517old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14518 14519# Commands used to build and install a shared archive. 14520archive_cmds=$lt_archive_cmds_CXX 14521archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14522postinstall_cmds=$lt_postinstall_cmds 14523postuninstall_cmds=$lt_postuninstall_cmds 14524 14525# Commands used to build a loadable module (assumed same as above if empty) 14526module_cmds=$lt_module_cmds_CXX 14527module_expsym_cmds=$lt_module_expsym_cmds_CXX 14528 14529# Commands to strip libraries. 14530old_striplib=$lt_old_striplib 14531striplib=$lt_striplib 14532 14533# Dependencies to place before the objects being linked to create a 14534# shared library. 14535predep_objects=$lt_predep_objects_CXX 14536 14537# Dependencies to place after the objects being linked to create a 14538# shared library. 14539postdep_objects=$lt_postdep_objects_CXX 14540 14541# Dependencies to place before the objects being linked to create a 14542# shared library. 14543predeps=$lt_predeps_CXX 14544 14545# Dependencies to place after the objects being linked to create a 14546# shared library. 14547postdeps=$lt_postdeps_CXX 14548 14549# The directories searched by this compiler when creating a shared 14550# library 14551compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 14552 14553# The library search path used internally by the compiler when linking 14554# a shared library. 14555compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14556 14557# Method to check whether dependent libraries are shared objects. 14558deplibs_check_method=$lt_deplibs_check_method 14559 14560# Command to use when deplibs_check_method == file_magic. 14561file_magic_cmd=$lt_file_magic_cmd 14562 14563# Flag that allows shared libraries with undefined symbols to be built. 14564allow_undefined_flag=$lt_allow_undefined_flag_CXX 14565 14566# Flag that forces no undefined symbols. 14567no_undefined_flag=$lt_no_undefined_flag_CXX 14568 14569# Commands used to finish a libtool library installation in a directory. 14570finish_cmds=$lt_finish_cmds 14571 14572# Same as above, but a single script fragment to be evaled but not shown. 14573finish_eval=$lt_finish_eval 14574 14575# Take the output of nm and produce a listing of raw symbols and C names. 14576global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14577 14578# Transform the output of nm in a proper C declaration 14579global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14580 14581# Transform the output of nm in a C name address pair 14582global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14583 14584# This is the shared library runtime path variable. 14585runpath_var=$runpath_var 14586 14587# This is the shared library path variable. 14588shlibpath_var=$shlibpath_var 14589 14590# Is shlibpath searched before the hard-coded library search path? 14591shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14592 14593# How to hardcode a shared library path into an executable. 14594hardcode_action=$hardcode_action_CXX 14595 14596# Whether we should hardcode library paths into libraries. 14597hardcode_into_libs=$hardcode_into_libs 14598 14599# Flag to hardcode \$libdir into a binary during linking. 14600# This must work even if \$libdir does not exist. 14601hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14602 14603# If ld is used when linking, flag to hardcode \$libdir into 14604# a binary during linking. This must work even if \$libdir does 14605# not exist. 14606hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14607 14608# Whether we need a single -rpath flag with a separated argument. 14609hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14610 14611# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14612# resulting binary. 14613hardcode_direct=$hardcode_direct_CXX 14614 14615# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14616# resulting binary. 14617hardcode_minus_L=$hardcode_minus_L_CXX 14618 14619# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14620# the resulting binary. 14621hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14622 14623# Set to yes if building a shared library automatically hardcodes DIR into the library 14624# and all subsequent libraries and executables linked against it. 14625hardcode_automatic=$hardcode_automatic_CXX 14626 14627# Variables whose values should be saved in libtool wrapper scripts and 14628# restored at relink time. 14629variables_saved_for_relink="$variables_saved_for_relink" 14630 14631# Whether libtool must link a program against all its dependency libraries. 14632link_all_deplibs=$link_all_deplibs_CXX 14633 14634# Compile-time system search path for libraries 14635sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14636 14637# Run-time system search path for libraries 14638sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14639 14640# Fix the shell variable \$srcfile for the compiler. 14641fix_srcfile_path=$lt_fix_srcfile_path 14642 14643# Set to yes if exported symbols are required. 14644always_export_symbols=$always_export_symbols_CXX 14645 14646# The commands to list exported symbols. 14647export_symbols_cmds=$lt_export_symbols_cmds_CXX 14648 14649# The commands to extract the exported symbol list from a shared archive. 14650extract_expsyms_cmds=$lt_extract_expsyms_cmds 14651 14652# Symbols that should not be listed in the preloaded symbols. 14653exclude_expsyms=$lt_exclude_expsyms_CXX 14654 14655# Symbols that must always be exported. 14656include_expsyms=$lt_include_expsyms_CXX 14657 14658# ### END LIBTOOL TAG CONFIG: $tagname 14659 14660__EOF__ 14661 14662 14663else 14664 # If there is no Makefile yet, we rely on a make rule to execute 14665 # `config.status --recheck' to rerun these tests and create the 14666 # libtool script then. 14667 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14668 if test -f "$ltmain_in"; then 14669 test -f Makefile && make "$ltmain" 14670 fi 14671fi 14672 14673 14674ac_ext=c 14675ac_cpp='$CPP $CPPFLAGS' 14676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14678ac_compiler_gnu=$ac_cv_c_compiler_gnu 14679 14680CC=$lt_save_CC 14681LDCXX=$LD 14682LD=$lt_save_LD 14683GCC=$lt_save_GCC 14684with_gnu_ldcxx=$with_gnu_ld 14685with_gnu_ld=$lt_save_with_gnu_ld 14686lt_cv_path_LDCXX=$lt_cv_path_LD 14687lt_cv_path_LD=$lt_save_path_LD 14688lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14689lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14690 14691 else 14692 tagname="" 14693 fi 14694 ;; 14695 14696 F77) 14697 if test -n "$F77" && test "X$F77" != "Xno"; then 14698 14699ac_ext=f 14700ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14701ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14702ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14703 14704 14705archive_cmds_need_lc_F77=no 14706allow_undefined_flag_F77= 14707always_export_symbols_F77=no 14708archive_expsym_cmds_F77= 14709export_dynamic_flag_spec_F77= 14710hardcode_direct_F77=no 14711hardcode_libdir_flag_spec_F77= 14712hardcode_libdir_flag_spec_ld_F77= 14713hardcode_libdir_separator_F77= 14714hardcode_minus_L_F77=no 14715hardcode_automatic_F77=no 14716module_cmds_F77= 14717module_expsym_cmds_F77= 14718link_all_deplibs_F77=unknown 14719old_archive_cmds_F77=$old_archive_cmds 14720no_undefined_flag_F77= 14721whole_archive_flag_spec_F77= 14722enable_shared_with_static_runtimes_F77=no 14723 14724# Source file extension for f77 test sources. 14725ac_ext=f 14726 14727# Object file extension for compiled f77 test sources. 14728objext=o 14729objext_F77=$objext 14730 14731# Code to be used in simple compile tests 14732lt_simple_compile_test_code="\ 14733 subroutine t 14734 return 14735 end 14736" 14737 14738# Code to be used in simple link tests 14739lt_simple_link_test_code="\ 14740 program t 14741 end 14742" 14743 14744# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14745 14746# If no C compiler was specified, use CC. 14747LTCC=${LTCC-"$CC"} 14748 14749# If no C compiler flags were specified, use CFLAGS. 14750LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14751 14752# Allow CC to be a program name with arguments. 14753compiler=$CC 14754 14755 14756# save warnings/boilerplate of simple test code 14757ac_outfile=conftest.$ac_objext 14758echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14759eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14760_lt_compiler_boilerplate=`cat conftest.err` 14761$rm conftest* 14762 14763ac_outfile=conftest.$ac_objext 14764echo "$lt_simple_link_test_code" >conftest.$ac_ext 14765eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14766_lt_linker_boilerplate=`cat conftest.err` 14767$rm -r conftest* 14768 14769 14770# Allow CC to be a program name with arguments. 14771lt_save_CC="$CC" 14772CC=${F77-"f77"} 14773compiler=$CC 14774compiler_F77=$CC 14775for cc_temp in $compiler""; do 14776 case $cc_temp in 14777 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14778 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14779 \-*) ;; 14780 *) break;; 14781 esac 14782done 14783cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14784 14785 14786{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14787$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14788{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 14789$as_echo "$can_build_shared" >&6; } 14790 14791{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14792$as_echo_n "checking whether to build shared libraries... " >&6; } 14793test "$can_build_shared" = "no" && enable_shared=no 14794 14795# On AIX, shared libraries and static libraries use the same namespace, and 14796# are all built from PIC. 14797case $host_os in 14798aix3*) 14799 test "$enable_shared" = yes && enable_static=no 14800 if test -n "$RANLIB"; then 14801 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14802 postinstall_cmds='$RANLIB $lib' 14803 fi 14804 ;; 14805aix[4-9]*) 14806 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14807 test "$enable_shared" = yes && enable_static=no 14808 fi 14809 ;; 14810esac 14811{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 14812$as_echo "$enable_shared" >&6; } 14813 14814{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14815$as_echo_n "checking whether to build static libraries... " >&6; } 14816# Make sure either enable_shared or enable_static is yes. 14817test "$enable_shared" = yes || enable_static=yes 14818{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 14819$as_echo "$enable_static" >&6; } 14820 14821GCC_F77="$G77" 14822LD_F77="$LD" 14823 14824lt_prog_compiler_wl_F77= 14825lt_prog_compiler_pic_F77= 14826lt_prog_compiler_static_F77= 14827 14828{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14829$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14830 14831 if test "$GCC" = yes; then 14832 lt_prog_compiler_wl_F77='-Wl,' 14833 lt_prog_compiler_static_F77='-static' 14834 14835 case $host_os in 14836 aix*) 14837 # All AIX code is PIC. 14838 if test "$host_cpu" = ia64; then 14839 # AIX 5 now supports IA64 processor 14840 lt_prog_compiler_static_F77='-Bstatic' 14841 fi 14842 ;; 14843 14844 amigaos*) 14845 # FIXME: we need at least 68020 code to build shared libraries, but 14846 # adding the `-m68020' flag to GCC prevents building anything better, 14847 # like `-m68040'. 14848 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14849 ;; 14850 14851 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14852 # PIC is the default for these OSes. 14853 ;; 14854 14855 mingw* | cygwin* | pw32* | os2*) 14856 # This hack is so that the source file can tell whether it is being 14857 # built for inclusion in a dll (and should export symbols for example). 14858 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14859 # (--disable-auto-import) libraries 14860 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14861 ;; 14862 14863 darwin* | rhapsody*) 14864 # PIC is the default on this platform 14865 # Common symbols not allowed in MH_DYLIB files 14866 lt_prog_compiler_pic_F77='-fno-common' 14867 ;; 14868 14869 interix[3-9]*) 14870 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14871 # Instead, we relocate shared libraries at runtime. 14872 ;; 14873 14874 msdosdjgpp*) 14875 # Just because we use GCC doesn't mean we suddenly get shared libraries 14876 # on systems that don't support them. 14877 lt_prog_compiler_can_build_shared_F77=no 14878 enable_shared=no 14879 ;; 14880 14881 sysv4*MP*) 14882 if test -d /usr/nec; then 14883 lt_prog_compiler_pic_F77=-Kconform_pic 14884 fi 14885 ;; 14886 14887 hpux*) 14888 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14889 # not for PA HP-UX. 14890 case $host_cpu in 14891 hppa*64*|ia64*) 14892 # +Z the default 14893 ;; 14894 *) 14895 lt_prog_compiler_pic_F77='-fPIC' 14896 ;; 14897 esac 14898 ;; 14899 14900 *) 14901 lt_prog_compiler_pic_F77='-fPIC' 14902 ;; 14903 esac 14904 else 14905 # PORTME Check for flag to pass linker flags through the system compiler. 14906 case $host_os in 14907 aix*) 14908 lt_prog_compiler_wl_F77='-Wl,' 14909 if test "$host_cpu" = ia64; then 14910 # AIX 5 now supports IA64 processor 14911 lt_prog_compiler_static_F77='-Bstatic' 14912 else 14913 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14914 fi 14915 ;; 14916 darwin*) 14917 # PIC is the default on this platform 14918 # Common symbols not allowed in MH_DYLIB files 14919 case $cc_basename in 14920 xlc*) 14921 lt_prog_compiler_pic_F77='-qnocommon' 14922 lt_prog_compiler_wl_F77='-Wl,' 14923 ;; 14924 esac 14925 ;; 14926 14927 mingw* | cygwin* | pw32* | os2*) 14928 # This hack is so that the source file can tell whether it is being 14929 # built for inclusion in a dll (and should export symbols for example). 14930 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14931 ;; 14932 14933 hpux9* | hpux10* | hpux11*) 14934 lt_prog_compiler_wl_F77='-Wl,' 14935 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14936 # not for PA HP-UX. 14937 case $host_cpu in 14938 hppa*64*|ia64*) 14939 # +Z the default 14940 ;; 14941 *) 14942 lt_prog_compiler_pic_F77='+Z' 14943 ;; 14944 esac 14945 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14946 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14947 ;; 14948 14949 irix5* | irix6* | nonstopux*) 14950 lt_prog_compiler_wl_F77='-Wl,' 14951 # PIC (with -KPIC) is the default. 14952 lt_prog_compiler_static_F77='-non_shared' 14953 ;; 14954 14955 newsos6) 14956 lt_prog_compiler_pic_F77='-KPIC' 14957 lt_prog_compiler_static_F77='-Bstatic' 14958 ;; 14959 14960 linux* | k*bsd*-gnu) 14961 case $cc_basename in 14962 icc* | ecc*) 14963 lt_prog_compiler_wl_F77='-Wl,' 14964 lt_prog_compiler_pic_F77='-KPIC' 14965 lt_prog_compiler_static_F77='-static' 14966 ;; 14967 pgcc* | pgf77* | pgf90* | pgf95*) 14968 # Portland Group compilers (*not* the Pentium gcc compiler, 14969 # which looks to be a dead project) 14970 lt_prog_compiler_wl_F77='-Wl,' 14971 lt_prog_compiler_pic_F77='-fpic' 14972 lt_prog_compiler_static_F77='-Bstatic' 14973 ;; 14974 ccc*) 14975 lt_prog_compiler_wl_F77='-Wl,' 14976 # All Alpha code is PIC. 14977 lt_prog_compiler_static_F77='-non_shared' 14978 ;; 14979 *) 14980 case `$CC -V 2>&1 | sed 5q` in 14981 *Sun\ C*) 14982 # Sun C 5.9 14983 lt_prog_compiler_pic_F77='-KPIC' 14984 lt_prog_compiler_static_F77='-Bstatic' 14985 lt_prog_compiler_wl_F77='-Wl,' 14986 ;; 14987 *Sun\ F*) 14988 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14989 lt_prog_compiler_pic_F77='-KPIC' 14990 lt_prog_compiler_static_F77='-Bstatic' 14991 lt_prog_compiler_wl_F77='' 14992 ;; 14993 esac 14994 ;; 14995 esac 14996 ;; 14997 14998 osf3* | osf4* | osf5*) 14999 lt_prog_compiler_wl_F77='-Wl,' 15000 # All OSF/1 code is PIC. 15001 lt_prog_compiler_static_F77='-non_shared' 15002 ;; 15003 15004 rdos*) 15005 lt_prog_compiler_static_F77='-non_shared' 15006 ;; 15007 15008 solaris*) 15009 lt_prog_compiler_pic_F77='-KPIC' 15010 lt_prog_compiler_static_F77='-Bstatic' 15011 case $cc_basename in 15012 f77* | f90* | f95*) 15013 lt_prog_compiler_wl_F77='-Qoption ld ';; 15014 *) 15015 lt_prog_compiler_wl_F77='-Wl,';; 15016 esac 15017 ;; 15018 15019 sunos4*) 15020 lt_prog_compiler_wl_F77='-Qoption ld ' 15021 lt_prog_compiler_pic_F77='-PIC' 15022 lt_prog_compiler_static_F77='-Bstatic' 15023 ;; 15024 15025 sysv4 | sysv4.2uw2* | sysv4.3*) 15026 lt_prog_compiler_wl_F77='-Wl,' 15027 lt_prog_compiler_pic_F77='-KPIC' 15028 lt_prog_compiler_static_F77='-Bstatic' 15029 ;; 15030 15031 sysv4*MP*) 15032 if test -d /usr/nec ;then 15033 lt_prog_compiler_pic_F77='-Kconform_pic' 15034 lt_prog_compiler_static_F77='-Bstatic' 15035 fi 15036 ;; 15037 15038 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15039 lt_prog_compiler_wl_F77='-Wl,' 15040 lt_prog_compiler_pic_F77='-KPIC' 15041 lt_prog_compiler_static_F77='-Bstatic' 15042 ;; 15043 15044 unicos*) 15045 lt_prog_compiler_wl_F77='-Wl,' 15046 lt_prog_compiler_can_build_shared_F77=no 15047 ;; 15048 15049 uts4*) 15050 lt_prog_compiler_pic_F77='-pic' 15051 lt_prog_compiler_static_F77='-Bstatic' 15052 ;; 15053 15054 *) 15055 lt_prog_compiler_can_build_shared_F77=no 15056 ;; 15057 esac 15058 fi 15059 15060{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 15061$as_echo "$lt_prog_compiler_pic_F77" >&6; } 15062 15063# 15064# Check to make sure the PIC flag actually works. 15065# 15066if test -n "$lt_prog_compiler_pic_F77"; then 15067 15068{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 15069$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 15070if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 15071 $as_echo_n "(cached) " >&6 15072else 15073 lt_cv_prog_compiler_pic_works_F77=no 15074 ac_outfile=conftest.$ac_objext 15075 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15076 lt_compiler_flag="$lt_prog_compiler_pic_F77" 15077 # Insert the option either (1) after the last *FLAGS variable, or 15078 # (2) before a word containing "conftest.", or (3) at the end. 15079 # Note that $ac_compile itself does not contain backslashes and begins 15080 # with a dollar sign (not a hyphen), so the echo should work correctly. 15081 # The option is referenced via a variable to avoid confusing sed. 15082 lt_compile=`echo "$ac_compile" | $SED \ 15083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15085 -e 's:$: $lt_compiler_flag:'` 15086 (eval echo "\"\$as_me:15086: $lt_compile\"" >&5) 15087 (eval "$lt_compile" 2>conftest.err) 15088 ac_status=$? 15089 cat conftest.err >&5 15090 echo "$as_me:15090: \$? = $ac_status" >&5 15091 if (exit $ac_status) && test -s "$ac_outfile"; then 15092 # The compiler can only warn and ignore the option if not recognized 15093 # So say no if there are warnings other than the usual output. 15094 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15095 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15096 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15097 lt_cv_prog_compiler_pic_works_F77=yes 15098 fi 15099 fi 15100 $rm conftest* 15101 15102fi 15103{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 15104$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 15105 15106if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 15107 case $lt_prog_compiler_pic_F77 in 15108 "" | " "*) ;; 15109 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 15110 esac 15111else 15112 lt_prog_compiler_pic_F77= 15113 lt_prog_compiler_can_build_shared_F77=no 15114fi 15115 15116fi 15117case $host_os in 15118 # For platforms which do not support PIC, -DPIC is meaningless: 15119 *djgpp*) 15120 lt_prog_compiler_pic_F77= 15121 ;; 15122 *) 15123 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 15124 ;; 15125esac 15126 15127# 15128# Check to make sure the static flag actually works. 15129# 15130wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 15131{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15132$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15133if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 15134 $as_echo_n "(cached) " >&6 15135else 15136 lt_cv_prog_compiler_static_works_F77=no 15137 save_LDFLAGS="$LDFLAGS" 15138 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15139 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15140 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15141 # The linker can only warn and ignore the option if not recognized 15142 # So say no if there are warnings 15143 if test -s conftest.err; then 15144 # Append any errors to the config.log. 15145 cat conftest.err 1>&5 15146 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15147 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15148 if diff conftest.exp conftest.er2 >/dev/null; then 15149 lt_cv_prog_compiler_static_works_F77=yes 15150 fi 15151 else 15152 lt_cv_prog_compiler_static_works_F77=yes 15153 fi 15154 fi 15155 $rm -r conftest* 15156 LDFLAGS="$save_LDFLAGS" 15157 15158fi 15159{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 15160$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 15161 15162if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 15163 : 15164else 15165 lt_prog_compiler_static_F77= 15166fi 15167 15168 15169{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15170$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15171if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 15172 $as_echo_n "(cached) " >&6 15173else 15174 lt_cv_prog_compiler_c_o_F77=no 15175 $rm -r conftest 2>/dev/null 15176 mkdir conftest 15177 cd conftest 15178 mkdir out 15179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15180 15181 lt_compiler_flag="-o out/conftest2.$ac_objext" 15182 # Insert the option either (1) after the last *FLAGS variable, or 15183 # (2) before a word containing "conftest.", or (3) at the end. 15184 # Note that $ac_compile itself does not contain backslashes and begins 15185 # with a dollar sign (not a hyphen), so the echo should work correctly. 15186 lt_compile=`echo "$ac_compile" | $SED \ 15187 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15189 -e 's:$: $lt_compiler_flag:'` 15190 (eval echo "\"\$as_me:15190: $lt_compile\"" >&5) 15191 (eval "$lt_compile" 2>out/conftest.err) 15192 ac_status=$? 15193 cat out/conftest.err >&5 15194 echo "$as_me:15194: \$? = $ac_status" >&5 15195 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15196 then 15197 # The compiler can only warn and ignore the option if not recognized 15198 # So say no if there are warnings 15199 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15200 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15201 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15202 lt_cv_prog_compiler_c_o_F77=yes 15203 fi 15204 fi 15205 chmod u+w . 2>&5 15206 $rm conftest* 15207 # SGI C++ compiler will create directory out/ii_files/ for 15208 # template instantiation 15209 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15210 $rm out/* && rmdir out 15211 cd .. 15212 rmdir conftest 15213 $rm conftest* 15214 15215fi 15216{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 15217$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 15218 15219 15220hard_links="nottested" 15221if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 15222 # do not overwrite the value of need_locks provided by the user 15223 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15224$as_echo_n "checking if we can lock with hard links... " >&6; } 15225 hard_links=yes 15226 $rm conftest* 15227 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15228 touch conftest.a 15229 ln conftest.a conftest.b 2>&5 || hard_links=no 15230 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15231 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 15232$as_echo "$hard_links" >&6; } 15233 if test "$hard_links" = no; then 15234 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15235$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15236 need_locks=warn 15237 fi 15238else 15239 need_locks=no 15240fi 15241 15242{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15243$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15244 15245 runpath_var= 15246 allow_undefined_flag_F77= 15247 enable_shared_with_static_runtimes_F77=no 15248 archive_cmds_F77= 15249 archive_expsym_cmds_F77= 15250 old_archive_From_new_cmds_F77= 15251 old_archive_from_expsyms_cmds_F77= 15252 export_dynamic_flag_spec_F77= 15253 whole_archive_flag_spec_F77= 15254 thread_safe_flag_spec_F77= 15255 hardcode_libdir_flag_spec_F77= 15256 hardcode_libdir_flag_spec_ld_F77= 15257 hardcode_libdir_separator_F77= 15258 hardcode_direct_F77=no 15259 hardcode_minus_L_F77=no 15260 hardcode_shlibpath_var_F77=unsupported 15261 link_all_deplibs_F77=unknown 15262 hardcode_automatic_F77=no 15263 module_cmds_F77= 15264 module_expsym_cmds_F77= 15265 always_export_symbols_F77=no 15266 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15267 # include_expsyms should be a list of space-separated symbols to be *always* 15268 # included in the symbol list 15269 include_expsyms_F77= 15270 # exclude_expsyms can be an extended regexp of symbols to exclude 15271 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15272 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15273 # as well as any symbol that contains `d'. 15274 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15275 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15276 # platforms (ab)use it in PIC code, but their linkers get confused if 15277 # the symbol is explicitly referenced. Since portable code cannot 15278 # rely on this symbol name, it's probably fine to never include it in 15279 # preloaded symbol tables. 15280 # Exclude shared library initialization/finalization symbols. 15281 extract_expsyms_cmds= 15282 # Just being paranoid about ensuring that cc_basename is set. 15283 for cc_temp in $compiler""; do 15284 case $cc_temp in 15285 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15286 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15287 \-*) ;; 15288 *) break;; 15289 esac 15290done 15291cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15292 15293 case $host_os in 15294 cygwin* | mingw* | pw32*) 15295 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15296 # When not using gcc, we currently assume that we are using 15297 # Microsoft Visual C++. 15298 if test "$GCC" != yes; then 15299 with_gnu_ld=no 15300 fi 15301 ;; 15302 interix*) 15303 # we just hope/assume this is gcc and not c89 (= MSVC++) 15304 with_gnu_ld=yes 15305 ;; 15306 openbsd*) 15307 with_gnu_ld=no 15308 ;; 15309 esac 15310 15311 ld_shlibs_F77=yes 15312 if test "$with_gnu_ld" = yes; then 15313 # If archive_cmds runs LD, not CC, wlarc should be empty 15314 wlarc='${wl}' 15315 15316 # Set some defaults for GNU ld with shared library support. These 15317 # are reset later if shared libraries are not supported. Putting them 15318 # here allows them to be overridden if necessary. 15319 runpath_var=LD_RUN_PATH 15320 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 15321 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 15322 # ancient GNU ld didn't support --whole-archive et. al. 15323 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15324 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15325 else 15326 whole_archive_flag_spec_F77= 15327 fi 15328 supports_anon_versioning=no 15329 case `$LD -v 2>/dev/null` in 15330 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15331 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15332 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15333 *\ 2.11.*) ;; # other 2.11 versions 15334 *) supports_anon_versioning=yes ;; 15335 esac 15336 15337 # See if GNU ld supports shared libraries. 15338 case $host_os in 15339 aix[3-9]*) 15340 # On AIX/PPC, the GNU linker is very broken 15341 if test "$host_cpu" != ia64; then 15342 ld_shlibs_F77=no 15343 cat <<EOF 1>&2 15344 15345*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15346*** to be unable to reliably create shared libraries on AIX. 15347*** Therefore, libtool is disabling shared libraries support. If you 15348*** really care for shared libraries, you may want to modify your PATH 15349*** so that a non-GNU linker is found, and then restart. 15350 15351EOF 15352 fi 15353 ;; 15354 15355 amigaos*) 15356 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)' 15357 hardcode_libdir_flag_spec_F77='-L$libdir' 15358 hardcode_minus_L_F77=yes 15359 15360 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15361 # that the semantics of dynamic libraries on AmigaOS, at least up 15362 # to version 4, is to share data among multiple programs linked 15363 # with the same dynamic library. Since this doesn't match the 15364 # behavior of shared libraries on other platforms, we can't use 15365 # them. 15366 ld_shlibs_F77=no 15367 ;; 15368 15369 beos*) 15370 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15371 allow_undefined_flag_F77=unsupported 15372 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15373 # support --undefined. This deserves some investigation. FIXME 15374 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15375 else 15376 ld_shlibs_F77=no 15377 fi 15378 ;; 15379 15380 cygwin* | mingw* | pw32*) 15381 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 15382 # as there is no search path for DLLs. 15383 hardcode_libdir_flag_spec_F77='-L$libdir' 15384 allow_undefined_flag_F77=unsupported 15385 always_export_symbols_F77=no 15386 enable_shared_with_static_runtimes_F77=yes 15387 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 15388 15389 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15390 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15391 # If the export-symbols file already is a .def file (1st line 15392 # is EXPORTS), use it as is; otherwise, prepend... 15393 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15394 cp $export_symbols $output_objdir/$soname.def; 15395 else 15396 echo EXPORTS > $output_objdir/$soname.def; 15397 cat $export_symbols >> $output_objdir/$soname.def; 15398 fi~ 15399 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15400 else 15401 ld_shlibs_F77=no 15402 fi 15403 ;; 15404 15405 interix[3-9]*) 15406 hardcode_direct_F77=no 15407 hardcode_shlibpath_var_F77=no 15408 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15409 export_dynamic_flag_spec_F77='${wl}-E' 15410 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15411 # Instead, shared libraries are loaded at an image base (0x10000000 by 15412 # default) and relocated if they conflict, which is a slow very memory 15413 # consuming and fragmenting process. To avoid this, we pick a random, 15414 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15415 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15416 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' 15417 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' 15418 ;; 15419 15420 gnu* | linux* | k*bsd*-gnu) 15421 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15422 tmp_addflag= 15423 case $cc_basename,$host_cpu in 15424 pgcc*) # Portland Group C compiler 15425 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' 15426 tmp_addflag=' $pic_flag' 15427 ;; 15428 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 15429 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' 15430 tmp_addflag=' $pic_flag -Mnomain' ;; 15431 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15432 tmp_addflag=' -i_dynamic' ;; 15433 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15434 tmp_addflag=' -i_dynamic -nofor_main' ;; 15435 ifc* | ifort*) # Intel Fortran compiler 15436 tmp_addflag=' -nofor_main' ;; 15437 esac 15438 case `$CC -V 2>&1 | sed 5q` in 15439 *Sun\ C*) # Sun C 5.9 15440 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' 15441 tmp_sharedflag='-G' ;; 15442 *Sun\ F*) # Sun Fortran 8.3 15443 tmp_sharedflag='-G' ;; 15444 *) 15445 tmp_sharedflag='-shared' ;; 15446 esac 15447 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15448 15449 if test $supports_anon_versioning = yes; then 15450 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 15451 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15452 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15453 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15454 fi 15455 else 15456 ld_shlibs_F77=no 15457 fi 15458 ;; 15459 15460 netbsd*) 15461 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15462 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15463 wlarc= 15464 else 15465 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15466 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15467 fi 15468 ;; 15469 15470 solaris*) 15471 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15472 ld_shlibs_F77=no 15473 cat <<EOF 1>&2 15474 15475*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15476*** create shared libraries on Solaris systems. Therefore, libtool 15477*** is disabling shared libraries support. We urge you to upgrade GNU 15478*** binutils to release 2.9.1 or newer. Another option is to modify 15479*** your PATH or compiler configuration so that the native linker is 15480*** used, and then restart. 15481 15482EOF 15483 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15484 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15485 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15486 else 15487 ld_shlibs_F77=no 15488 fi 15489 ;; 15490 15491 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15492 case `$LD -v 2>&1` in 15493 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15494 ld_shlibs_F77=no 15495 cat <<_LT_EOF 1>&2 15496 15497*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15498*** reliably create shared libraries on SCO systems. Therefore, libtool 15499*** is disabling shared libraries support. We urge you to upgrade GNU 15500*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15501*** your PATH or compiler configuration so that the native linker is 15502*** used, and then restart. 15503 15504_LT_EOF 15505 ;; 15506 *) 15507 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15508 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15509 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15510 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15511 else 15512 ld_shlibs_F77=no 15513 fi 15514 ;; 15515 esac 15516 ;; 15517 15518 sunos4*) 15519 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15520 wlarc= 15521 hardcode_direct_F77=yes 15522 hardcode_shlibpath_var_F77=no 15523 ;; 15524 15525 *) 15526 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15527 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15528 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15529 else 15530 ld_shlibs_F77=no 15531 fi 15532 ;; 15533 esac 15534 15535 if test "$ld_shlibs_F77" = no; then 15536 runpath_var= 15537 hardcode_libdir_flag_spec_F77= 15538 export_dynamic_flag_spec_F77= 15539 whole_archive_flag_spec_F77= 15540 fi 15541 else 15542 # PORTME fill in a description of your system's linker (not GNU ld) 15543 case $host_os in 15544 aix3*) 15545 allow_undefined_flag_F77=unsupported 15546 always_export_symbols_F77=yes 15547 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' 15548 # Note: this linker hardcodes the directories in LIBPATH if there 15549 # are no directories specified by -L. 15550 hardcode_minus_L_F77=yes 15551 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15552 # Neither direct hardcoding nor static linking is supported with a 15553 # broken collect2. 15554 hardcode_direct_F77=unsupported 15555 fi 15556 ;; 15557 15558 aix[4-9]*) 15559 if test "$host_cpu" = ia64; then 15560 # On IA64, the linker does run time linking by default, so we don't 15561 # have to do anything special. 15562 aix_use_runtimelinking=no 15563 exp_sym_flag='-Bexport' 15564 no_entry_flag="" 15565 else 15566 # If we're using GNU nm, then we don't want the "-C" option. 15567 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15568 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15569 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' 15570 else 15571 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' 15572 fi 15573 aix_use_runtimelinking=no 15574 15575 # Test if we are trying to use run time linking or normal 15576 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15577 # need to do runtime linking. 15578 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15579 for ld_flag in $LDFLAGS; do 15580 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15581 aix_use_runtimelinking=yes 15582 break 15583 fi 15584 done 15585 ;; 15586 esac 15587 15588 exp_sym_flag='-bexport' 15589 no_entry_flag='-bnoentry' 15590 fi 15591 15592 # When large executables or shared objects are built, AIX ld can 15593 # have problems creating the table of contents. If linking a library 15594 # or program results in "error TOC overflow" add -mminimal-toc to 15595 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15596 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15597 15598 archive_cmds_F77='' 15599 hardcode_direct_F77=yes 15600 hardcode_libdir_separator_F77=':' 15601 link_all_deplibs_F77=yes 15602 15603 if test "$GCC" = yes; then 15604 case $host_os in aix4.[012]|aix4.[012].*) 15605 # We only want to do this on AIX 4.2 and lower, the check 15606 # below for broken collect2 doesn't work under 4.3+ 15607 collect2name=`${CC} -print-prog-name=collect2` 15608 if test -f "$collect2name" && \ 15609 strings "$collect2name" | grep resolve_lib_name >/dev/null 15610 then 15611 # We have reworked collect2 15612 : 15613 else 15614 # We have old collect2 15615 hardcode_direct_F77=unsupported 15616 # It fails to find uninstalled libraries when the uninstalled 15617 # path is not listed in the libpath. Setting hardcode_minus_L 15618 # to unsupported forces relinking 15619 hardcode_minus_L_F77=yes 15620 hardcode_libdir_flag_spec_F77='-L$libdir' 15621 hardcode_libdir_separator_F77= 15622 fi 15623 ;; 15624 esac 15625 shared_flag='-shared' 15626 if test "$aix_use_runtimelinking" = yes; then 15627 shared_flag="$shared_flag "'${wl}-G' 15628 fi 15629 else 15630 # not using gcc 15631 if test "$host_cpu" = ia64; then 15632 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15633 # chokes on -Wl,-G. The following line is correct: 15634 shared_flag='-G' 15635 else 15636 if test "$aix_use_runtimelinking" = yes; then 15637 shared_flag='${wl}-G' 15638 else 15639 shared_flag='${wl}-bM:SRE' 15640 fi 15641 fi 15642 fi 15643 15644 # It seems that -bexpall does not export symbols beginning with 15645 # underscore (_), so it is better to generate a list of symbols to export. 15646 always_export_symbols_F77=yes 15647 if test "$aix_use_runtimelinking" = yes; then 15648 # Warning - without using the other runtime loading flags (-brtl), 15649 # -berok will link without error, but may produce a broken library. 15650 allow_undefined_flag_F77='-berok' 15651 # Determine the default libpath from the value encoded in an empty executable. 15652 cat >conftest.$ac_ext <<_ACEOF 15653 program main 15654 15655 end 15656_ACEOF 15657rm -f conftest.$ac_objext conftest$ac_exeext 15658if { (ac_try="$ac_link" 15659case "(($ac_try" in 15660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15661 *) ac_try_echo=$ac_try;; 15662esac 15663eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15664$as_echo "$ac_try_echo") >&5 15665 (eval "$ac_link") 2>conftest.er1 15666 ac_status=$? 15667 grep -v '^ *+' conftest.er1 >conftest.err 15668 rm -f conftest.er1 15669 cat conftest.err >&5 15670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15671 (exit $ac_status); } && { 15672 test -z "$ac_f77_werror_flag" || 15673 test ! -s conftest.err 15674 } && test -s conftest$ac_exeext && { 15675 test "$cross_compiling" = yes || 15676 $as_test_x conftest$ac_exeext 15677 }; then 15678 15679lt_aix_libpath_sed=' 15680 /Import File Strings/,/^$/ { 15681 /^0/ { 15682 s/^0 *\(.*\)$/\1/ 15683 p 15684 } 15685 }' 15686aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15687# Check for a 64-bit object if we didn't find anything. 15688if test -z "$aix_libpath"; then 15689 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15690fi 15691else 15692 $as_echo "$as_me: failed program was:" >&5 15693sed 's/^/| /' conftest.$ac_ext >&5 15694 15695 15696fi 15697 15698rm -rf conftest.dSYM 15699rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15700 conftest$ac_exeext conftest.$ac_ext 15701if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15702 15703 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15704 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" 15705 else 15706 if test "$host_cpu" = ia64; then 15707 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15708 allow_undefined_flag_F77="-z nodefs" 15709 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" 15710 else 15711 # Determine the default libpath from the value encoded in an empty executable. 15712 cat >conftest.$ac_ext <<_ACEOF 15713 program main 15714 15715 end 15716_ACEOF 15717rm -f conftest.$ac_objext conftest$ac_exeext 15718if { (ac_try="$ac_link" 15719case "(($ac_try" in 15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15721 *) ac_try_echo=$ac_try;; 15722esac 15723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15724$as_echo "$ac_try_echo") >&5 15725 (eval "$ac_link") 2>conftest.er1 15726 ac_status=$? 15727 grep -v '^ *+' conftest.er1 >conftest.err 15728 rm -f conftest.er1 15729 cat conftest.err >&5 15730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15731 (exit $ac_status); } && { 15732 test -z "$ac_f77_werror_flag" || 15733 test ! -s conftest.err 15734 } && test -s conftest$ac_exeext && { 15735 test "$cross_compiling" = yes || 15736 $as_test_x conftest$ac_exeext 15737 }; then 15738 15739lt_aix_libpath_sed=' 15740 /Import File Strings/,/^$/ { 15741 /^0/ { 15742 s/^0 *\(.*\)$/\1/ 15743 p 15744 } 15745 }' 15746aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15747# Check for a 64-bit object if we didn't find anything. 15748if test -z "$aix_libpath"; then 15749 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15750fi 15751else 15752 $as_echo "$as_me: failed program was:" >&5 15753sed 's/^/| /' conftest.$ac_ext >&5 15754 15755 15756fi 15757 15758rm -rf conftest.dSYM 15759rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15760 conftest$ac_exeext conftest.$ac_ext 15761if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15762 15763 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15764 # Warning - without using the other run time loading flags, 15765 # -berok will link without error, but may produce a broken library. 15766 no_undefined_flag_F77=' ${wl}-bernotok' 15767 allow_undefined_flag_F77=' ${wl}-berok' 15768 # Exported symbols can be pulled into shared objects from archives 15769 whole_archive_flag_spec_F77='$convenience' 15770 archive_cmds_need_lc_F77=yes 15771 # This is similar to how AIX traditionally builds its shared libraries. 15772 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' 15773 fi 15774 fi 15775 ;; 15776 15777 amigaos*) 15778 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)' 15779 hardcode_libdir_flag_spec_F77='-L$libdir' 15780 hardcode_minus_L_F77=yes 15781 # see comment about different semantics on the GNU ld section 15782 ld_shlibs_F77=no 15783 ;; 15784 15785 bsdi[45]*) 15786 export_dynamic_flag_spec_F77=-rdynamic 15787 ;; 15788 15789 cygwin* | mingw* | pw32*) 15790 # When not using gcc, we currently assume that we are using 15791 # Microsoft Visual C++. 15792 # hardcode_libdir_flag_spec is actually meaningless, as there is 15793 # no search path for DLLs. 15794 hardcode_libdir_flag_spec_F77=' ' 15795 allow_undefined_flag_F77=unsupported 15796 # Tell ltmain to make .lib files, not .a files. 15797 libext=lib 15798 # Tell ltmain to make .dll files, not .so files. 15799 shrext_cmds=".dll" 15800 # FIXME: Setting linknames here is a bad hack. 15801 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15802 # The linker will automatically build a .lib file if we build a DLL. 15803 old_archive_From_new_cmds_F77='true' 15804 # FIXME: Should let the user specify the lib program. 15805 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15806 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15807 enable_shared_with_static_runtimes_F77=yes 15808 ;; 15809 15810 darwin* | rhapsody*) 15811 case $host_os in 15812 rhapsody* | darwin1.[012]) 15813 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15814 ;; 15815 *) # Darwin 1.3 on 15816 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15817 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15818 else 15819 case ${MACOSX_DEPLOYMENT_TARGET} in 15820 10.[012]) 15821 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15822 ;; 15823 10.*) 15824 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15825 ;; 15826 esac 15827 fi 15828 ;; 15829 esac 15830 archive_cmds_need_lc_F77=no 15831 hardcode_direct_F77=no 15832 hardcode_automatic_F77=yes 15833 hardcode_shlibpath_var_F77=unsupported 15834 whole_archive_flag_spec_F77='' 15835 link_all_deplibs_F77=yes 15836 if test "$GCC" = yes ; then 15837 output_verbose_link_cmd='echo' 15838 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}" 15839 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15840 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}" 15841 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}" 15842 else 15843 case $cc_basename in 15844 xlc*) 15845 output_verbose_link_cmd='echo' 15846 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15847 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15848 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15849 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}' 15850 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}' 15851 ;; 15852 *) 15853 ld_shlibs_F77=no 15854 ;; 15855 esac 15856 fi 15857 ;; 15858 15859 dgux*) 15860 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15861 hardcode_libdir_flag_spec_F77='-L$libdir' 15862 hardcode_shlibpath_var_F77=no 15863 ;; 15864 15865 freebsd1*) 15866 ld_shlibs_F77=no 15867 ;; 15868 15869 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15870 # support. Future versions do this automatically, but an explicit c++rt0.o 15871 # does not break anything, and helps significantly (at the cost of a little 15872 # extra space). 15873 freebsd2.2*) 15874 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15875 hardcode_libdir_flag_spec_F77='-R$libdir' 15876 hardcode_direct_F77=yes 15877 hardcode_shlibpath_var_F77=no 15878 ;; 15879 15880 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15881 freebsd2*) 15882 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15883 hardcode_direct_F77=yes 15884 hardcode_minus_L_F77=yes 15885 hardcode_shlibpath_var_F77=no 15886 ;; 15887 15888 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15889 freebsd* | dragonfly*) 15890 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15891 hardcode_libdir_flag_spec_F77='-R$libdir' 15892 hardcode_direct_F77=yes 15893 hardcode_shlibpath_var_F77=no 15894 ;; 15895 15896 hpux9*) 15897 if test "$GCC" = yes; then 15898 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' 15899 else 15900 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' 15901 fi 15902 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15903 hardcode_libdir_separator_F77=: 15904 hardcode_direct_F77=yes 15905 15906 # hardcode_minus_L: Not really in the search PATH, 15907 # but as the default location of the library. 15908 hardcode_minus_L_F77=yes 15909 export_dynamic_flag_spec_F77='${wl}-E' 15910 ;; 15911 15912 hpux10*) 15913 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15914 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15915 else 15916 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15917 fi 15918 if test "$with_gnu_ld" = no; then 15919 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15920 hardcode_libdir_separator_F77=: 15921 15922 hardcode_direct_F77=yes 15923 export_dynamic_flag_spec_F77='${wl}-E' 15924 15925 # hardcode_minus_L: Not really in the search PATH, 15926 # but as the default location of the library. 15927 hardcode_minus_L_F77=yes 15928 fi 15929 ;; 15930 15931 hpux11*) 15932 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15933 case $host_cpu in 15934 hppa*64*) 15935 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15936 ;; 15937 ia64*) 15938 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15939 ;; 15940 *) 15941 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15942 ;; 15943 esac 15944 else 15945 case $host_cpu in 15946 hppa*64*) 15947 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15948 ;; 15949 ia64*) 15950 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15951 ;; 15952 *) 15953 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15954 ;; 15955 esac 15956 fi 15957 if test "$with_gnu_ld" = no; then 15958 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15959 hardcode_libdir_separator_F77=: 15960 15961 case $host_cpu in 15962 hppa*64*|ia64*) 15963 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15964 hardcode_direct_F77=no 15965 hardcode_shlibpath_var_F77=no 15966 ;; 15967 *) 15968 hardcode_direct_F77=yes 15969 export_dynamic_flag_spec_F77='${wl}-E' 15970 15971 # hardcode_minus_L: Not really in the search PATH, 15972 # but as the default location of the library. 15973 hardcode_minus_L_F77=yes 15974 ;; 15975 esac 15976 fi 15977 ;; 15978 15979 irix5* | irix6* | nonstopux*) 15980 if test "$GCC" = yes; then 15981 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' 15982 else 15983 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' 15984 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15985 fi 15986 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15987 hardcode_libdir_separator_F77=: 15988 link_all_deplibs_F77=yes 15989 ;; 15990 15991 netbsd*) 15992 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15993 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15994 else 15995 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15996 fi 15997 hardcode_libdir_flag_spec_F77='-R$libdir' 15998 hardcode_direct_F77=yes 15999 hardcode_shlibpath_var_F77=no 16000 ;; 16001 16002 newsos6) 16003 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16004 hardcode_direct_F77=yes 16005 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16006 hardcode_libdir_separator_F77=: 16007 hardcode_shlibpath_var_F77=no 16008 ;; 16009 16010 openbsd*) 16011 if test -f /usr/libexec/ld.so; then 16012 hardcode_direct_F77=yes 16013 hardcode_shlibpath_var_F77=no 16014 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16015 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16016 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16017 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16018 export_dynamic_flag_spec_F77='${wl}-E' 16019 else 16020 case $host_os in 16021 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16022 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16023 hardcode_libdir_flag_spec_F77='-R$libdir' 16024 ;; 16025 *) 16026 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16027 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16028 ;; 16029 esac 16030 fi 16031 else 16032 ld_shlibs_F77=no 16033 fi 16034 ;; 16035 16036 os2*) 16037 hardcode_libdir_flag_spec_F77='-L$libdir' 16038 hardcode_minus_L_F77=yes 16039 allow_undefined_flag_F77=unsupported 16040 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' 16041 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16042 ;; 16043 16044 osf3*) 16045 if test "$GCC" = yes; then 16046 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16047 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' 16048 else 16049 allow_undefined_flag_F77=' -expect_unresolved \*' 16050 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' 16051 fi 16052 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16053 hardcode_libdir_separator_F77=: 16054 ;; 16055 16056 osf4* | osf5*) # as osf3* with the addition of -msym flag 16057 if test "$GCC" = yes; then 16058 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16059 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' 16060 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16061 else 16062 allow_undefined_flag_F77=' -expect_unresolved \*' 16063 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' 16064 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~ 16065 $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' 16066 16067 # Both c and cxx compiler support -rpath directly 16068 hardcode_libdir_flag_spec_F77='-rpath $libdir' 16069 fi 16070 hardcode_libdir_separator_F77=: 16071 ;; 16072 16073 solaris*) 16074 no_undefined_flag_F77=' -z text' 16075 if test "$GCC" = yes; then 16076 wlarc='${wl}' 16077 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16078 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16079 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16080 else 16081 wlarc='' 16082 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16083 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16084 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16085 fi 16086 hardcode_libdir_flag_spec_F77='-R$libdir' 16087 hardcode_shlibpath_var_F77=no 16088 case $host_os in 16089 solaris2.[0-5] | solaris2.[0-5].*) ;; 16090 *) 16091 # The compiler driver will combine and reorder linker options, 16092 # but understands `-z linker_flag'. GCC discards it without `$wl', 16093 # but is careful enough not to reorder. 16094 # Supported since Solaris 2.6 (maybe 2.5.1?) 16095 if test "$GCC" = yes; then 16096 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 16097 else 16098 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 16099 fi 16100 ;; 16101 esac 16102 link_all_deplibs_F77=yes 16103 ;; 16104 16105 sunos4*) 16106 if test "x$host_vendor" = xsequent; then 16107 # Use $CC to link under sequent, because it throws in some extra .o 16108 # files that make .init and .fini sections work. 16109 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16110 else 16111 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16112 fi 16113 hardcode_libdir_flag_spec_F77='-L$libdir' 16114 hardcode_direct_F77=yes 16115 hardcode_minus_L_F77=yes 16116 hardcode_shlibpath_var_F77=no 16117 ;; 16118 16119 sysv4) 16120 case $host_vendor in 16121 sni) 16122 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16123 hardcode_direct_F77=yes # is this really true??? 16124 ;; 16125 siemens) 16126 ## LD is ld it makes a PLAMLIB 16127 ## CC just makes a GrossModule. 16128 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16129 reload_cmds_F77='$CC -r -o $output$reload_objs' 16130 hardcode_direct_F77=no 16131 ;; 16132 motorola) 16133 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16134 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 16135 ;; 16136 esac 16137 runpath_var='LD_RUN_PATH' 16138 hardcode_shlibpath_var_F77=no 16139 ;; 16140 16141 sysv4.3*) 16142 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16143 hardcode_shlibpath_var_F77=no 16144 export_dynamic_flag_spec_F77='-Bexport' 16145 ;; 16146 16147 sysv4*MP*) 16148 if test -d /usr/nec; then 16149 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16150 hardcode_shlibpath_var_F77=no 16151 runpath_var=LD_RUN_PATH 16152 hardcode_runpath_var=yes 16153 ld_shlibs_F77=yes 16154 fi 16155 ;; 16156 16157 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16158 no_undefined_flag_F77='${wl}-z,text' 16159 archive_cmds_need_lc_F77=no 16160 hardcode_shlibpath_var_F77=no 16161 runpath_var='LD_RUN_PATH' 16162 16163 if test "$GCC" = yes; then 16164 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16165 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16166 else 16167 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16168 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16169 fi 16170 ;; 16171 16172 sysv5* | sco3.2v5* | sco5v6*) 16173 # Note: We can NOT use -z defs as we might desire, because we do not 16174 # link with -lc, and that would cause any symbols used from libc to 16175 # always be unresolved, which means just about no library would 16176 # ever link correctly. If we're not using GNU ld we use -z text 16177 # though, which does catch some bad symbols but isn't as heavy-handed 16178 # as -z defs. 16179 no_undefined_flag_F77='${wl}-z,text' 16180 allow_undefined_flag_F77='${wl}-z,nodefs' 16181 archive_cmds_need_lc_F77=no 16182 hardcode_shlibpath_var_F77=no 16183 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 16184 hardcode_libdir_separator_F77=':' 16185 link_all_deplibs_F77=yes 16186 export_dynamic_flag_spec_F77='${wl}-Bexport' 16187 runpath_var='LD_RUN_PATH' 16188 16189 if test "$GCC" = yes; then 16190 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16191 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16192 else 16193 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16194 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16195 fi 16196 ;; 16197 16198 uts4*) 16199 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16200 hardcode_libdir_flag_spec_F77='-L$libdir' 16201 hardcode_shlibpath_var_F77=no 16202 ;; 16203 16204 *) 16205 ld_shlibs_F77=no 16206 ;; 16207 esac 16208 fi 16209 16210{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 16211$as_echo "$ld_shlibs_F77" >&6; } 16212test "$ld_shlibs_F77" = no && can_build_shared=no 16213 16214# 16215# Do we need to explicitly link libc? 16216# 16217case "x$archive_cmds_need_lc_F77" in 16218x|xyes) 16219 # Assume -lc should be added 16220 archive_cmds_need_lc_F77=yes 16221 16222 if test "$enable_shared" = yes && test "$GCC" = yes; then 16223 case $archive_cmds_F77 in 16224 *'~'*) 16225 # FIXME: we may have to deal with multi-command sequences. 16226 ;; 16227 '$CC '*) 16228 # Test whether the compiler implicitly links with -lc since on some 16229 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16230 # to ld, don't add -lc before -lgcc. 16231 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16232$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16233 $rm conftest* 16234 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16235 16236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16237 (eval $ac_compile) 2>&5 16238 ac_status=$? 16239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16240 (exit $ac_status); } 2>conftest.err; then 16241 soname=conftest 16242 lib=conftest 16243 libobjs=conftest.$ac_objext 16244 deplibs= 16245 wl=$lt_prog_compiler_wl_F77 16246 pic_flag=$lt_prog_compiler_pic_F77 16247 compiler_flags=-v 16248 linker_flags=-v 16249 verstring= 16250 output_objdir=. 16251 libname=conftest 16252 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 16253 allow_undefined_flag_F77= 16254 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16255 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16256 ac_status=$? 16257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16258 (exit $ac_status); } 16259 then 16260 archive_cmds_need_lc_F77=no 16261 else 16262 archive_cmds_need_lc_F77=yes 16263 fi 16264 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 16265 else 16266 cat conftest.err 1>&5 16267 fi 16268 $rm conftest* 16269 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 16270$as_echo "$archive_cmds_need_lc_F77" >&6; } 16271 ;; 16272 esac 16273 fi 16274 ;; 16275esac 16276 16277{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16278$as_echo_n "checking dynamic linker characteristics... " >&6; } 16279library_names_spec= 16280libname_spec='lib$name' 16281soname_spec= 16282shrext_cmds=".so" 16283postinstall_cmds= 16284postuninstall_cmds= 16285finish_cmds= 16286finish_eval= 16287shlibpath_var= 16288shlibpath_overrides_runpath=unknown 16289version_type=none 16290dynamic_linker="$host_os ld.so" 16291sys_lib_dlsearch_path_spec="/lib /usr/lib" 16292 16293need_lib_prefix=unknown 16294hardcode_into_libs=no 16295 16296# when you set need_version to no, make sure it does not cause -set_version 16297# flags to be left without arguments 16298need_version=unknown 16299 16300case $host_os in 16301aix3*) 16302 version_type=linux 16303 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16304 shlibpath_var=LIBPATH 16305 16306 # AIX 3 has no versioning support, so we append a major version to the name. 16307 soname_spec='${libname}${release}${shared_ext}$major' 16308 ;; 16309 16310aix[4-9]*) 16311 version_type=linux 16312 need_lib_prefix=no 16313 need_version=no 16314 hardcode_into_libs=yes 16315 if test "$host_cpu" = ia64; then 16316 # AIX 5 supports IA64 16317 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16318 shlibpath_var=LD_LIBRARY_PATH 16319 else 16320 # With GCC up to 2.95.x, collect2 would create an import file 16321 # for dependence libraries. The import file would start with 16322 # the line `#! .'. This would cause the generated library to 16323 # depend on `.', always an invalid library. This was fixed in 16324 # development snapshots of GCC prior to 3.0. 16325 case $host_os in 16326 aix4 | aix4.[01] | aix4.[01].*) 16327 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16328 echo ' yes ' 16329 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16330 : 16331 else 16332 can_build_shared=no 16333 fi 16334 ;; 16335 esac 16336 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16337 # soname into executable. Probably we can add versioning support to 16338 # collect2, so additional links can be useful in future. 16339 if test "$aix_use_runtimelinking" = yes; then 16340 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16341 # instead of lib<name>.a to let people know that these are not 16342 # typical AIX shared libraries. 16343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16344 else 16345 # We preserve .a as extension for shared libraries through AIX4.2 16346 # and later when we are not doing run time linking. 16347 library_names_spec='${libname}${release}.a $libname.a' 16348 soname_spec='${libname}${release}${shared_ext}$major' 16349 fi 16350 shlibpath_var=LIBPATH 16351 fi 16352 ;; 16353 16354amigaos*) 16355 library_names_spec='$libname.ixlibrary $libname.a' 16356 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16357 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' 16358 ;; 16359 16360beos*) 16361 library_names_spec='${libname}${shared_ext}' 16362 dynamic_linker="$host_os ld.so" 16363 shlibpath_var=LIBRARY_PATH 16364 ;; 16365 16366bsdi[45]*) 16367 version_type=linux 16368 need_version=no 16369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16370 soname_spec='${libname}${release}${shared_ext}$major' 16371 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16372 shlibpath_var=LD_LIBRARY_PATH 16373 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16374 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16375 # the default ld.so.conf also contains /usr/contrib/lib and 16376 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16377 # libtool to hard-code these into programs 16378 ;; 16379 16380cygwin* | mingw* | pw32*) 16381 version_type=windows 16382 shrext_cmds=".dll" 16383 need_version=no 16384 need_lib_prefix=no 16385 16386 case $GCC,$host_os in 16387 yes,cygwin* | yes,mingw* | yes,pw32*) 16388 library_names_spec='$libname.dll.a' 16389 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16390 postinstall_cmds='base_file=`basename \${file}`~ 16391 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16392 dldir=$destdir/`dirname \$dlpath`~ 16393 test -d \$dldir || mkdir -p \$dldir~ 16394 $install_prog $dir/$dlname \$dldir/$dlname~ 16395 chmod a+x \$dldir/$dlname' 16396 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16397 dlpath=$dir/\$dldll~ 16398 $rm \$dlpath' 16399 shlibpath_overrides_runpath=yes 16400 16401 case $host_os in 16402 cygwin*) 16403 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16404 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16405 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16406 ;; 16407 mingw*) 16408 # MinGW DLLs use traditional 'lib' prefix 16409 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16410 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16411 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16412 # It is most probably a Windows format PATH printed by 16413 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16414 # path with ; separators, and with drive letters. We can handle the 16415 # drive letters (cygwin fileutils understands them), so leave them, 16416 # especially as we might pass files found there to a mingw objdump, 16417 # which wouldn't understand a cygwinified path. Ahh. 16418 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16419 else 16420 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16421 fi 16422 ;; 16423 pw32*) 16424 # pw32 DLLs use 'pw' prefix rather than 'lib' 16425 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16426 ;; 16427 esac 16428 ;; 16429 16430 *) 16431 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16432 ;; 16433 esac 16434 dynamic_linker='Win32 ld.exe' 16435 # FIXME: first we should search . and the directory the executable is in 16436 shlibpath_var=PATH 16437 ;; 16438 16439darwin* | rhapsody*) 16440 dynamic_linker="$host_os dyld" 16441 version_type=darwin 16442 need_lib_prefix=no 16443 need_version=no 16444 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16445 soname_spec='${libname}${release}${major}$shared_ext' 16446 shlibpath_overrides_runpath=yes 16447 shlibpath_var=DYLD_LIBRARY_PATH 16448 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16449 16450 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16451 ;; 16452 16453dgux*) 16454 version_type=linux 16455 need_lib_prefix=no 16456 need_version=no 16457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16458 soname_spec='${libname}${release}${shared_ext}$major' 16459 shlibpath_var=LD_LIBRARY_PATH 16460 ;; 16461 16462freebsd1*) 16463 dynamic_linker=no 16464 ;; 16465 16466freebsd* | dragonfly*) 16467 # DragonFly does not have aout. When/if they implement a new 16468 # versioning mechanism, adjust this. 16469 if test -x /usr/bin/objformat; then 16470 objformat=`/usr/bin/objformat` 16471 else 16472 case $host_os in 16473 freebsd[123]*) objformat=aout ;; 16474 *) objformat=elf ;; 16475 esac 16476 fi 16477 version_type=freebsd-$objformat 16478 case $version_type in 16479 freebsd-elf*) 16480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16481 need_version=no 16482 need_lib_prefix=no 16483 ;; 16484 freebsd-*) 16485 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16486 need_version=yes 16487 ;; 16488 esac 16489 shlibpath_var=LD_LIBRARY_PATH 16490 case $host_os in 16491 freebsd2*) 16492 shlibpath_overrides_runpath=yes 16493 ;; 16494 freebsd3.[01]* | freebsdelf3.[01]*) 16495 shlibpath_overrides_runpath=yes 16496 hardcode_into_libs=yes 16497 ;; 16498 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16499 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16500 shlibpath_overrides_runpath=no 16501 hardcode_into_libs=yes 16502 ;; 16503 *) # from 4.6 on, and DragonFly 16504 shlibpath_overrides_runpath=yes 16505 hardcode_into_libs=yes 16506 ;; 16507 esac 16508 ;; 16509 16510gnu*) 16511 version_type=linux 16512 need_lib_prefix=no 16513 need_version=no 16514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16515 soname_spec='${libname}${release}${shared_ext}$major' 16516 shlibpath_var=LD_LIBRARY_PATH 16517 hardcode_into_libs=yes 16518 ;; 16519 16520hpux9* | hpux10* | hpux11*) 16521 # Give a soname corresponding to the major version so that dld.sl refuses to 16522 # link against other versions. 16523 version_type=sunos 16524 need_lib_prefix=no 16525 need_version=no 16526 case $host_cpu in 16527 ia64*) 16528 shrext_cmds='.so' 16529 hardcode_into_libs=yes 16530 dynamic_linker="$host_os dld.so" 16531 shlibpath_var=LD_LIBRARY_PATH 16532 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16534 soname_spec='${libname}${release}${shared_ext}$major' 16535 if test "X$HPUX_IA64_MODE" = X32; then 16536 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16537 else 16538 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16539 fi 16540 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16541 ;; 16542 hppa*64*) 16543 shrext_cmds='.sl' 16544 hardcode_into_libs=yes 16545 dynamic_linker="$host_os dld.sl" 16546 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16547 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16549 soname_spec='${libname}${release}${shared_ext}$major' 16550 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16551 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16552 ;; 16553 *) 16554 shrext_cmds='.sl' 16555 dynamic_linker="$host_os dld.sl" 16556 shlibpath_var=SHLIB_PATH 16557 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16559 soname_spec='${libname}${release}${shared_ext}$major' 16560 ;; 16561 esac 16562 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16563 postinstall_cmds='chmod 555 $lib' 16564 ;; 16565 16566interix[3-9]*) 16567 version_type=linux 16568 need_lib_prefix=no 16569 need_version=no 16570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16571 soname_spec='${libname}${release}${shared_ext}$major' 16572 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16573 shlibpath_var=LD_LIBRARY_PATH 16574 shlibpath_overrides_runpath=no 16575 hardcode_into_libs=yes 16576 ;; 16577 16578irix5* | irix6* | nonstopux*) 16579 case $host_os in 16580 nonstopux*) version_type=nonstopux ;; 16581 *) 16582 if test "$lt_cv_prog_gnu_ld" = yes; then 16583 version_type=linux 16584 else 16585 version_type=irix 16586 fi ;; 16587 esac 16588 need_lib_prefix=no 16589 need_version=no 16590 soname_spec='${libname}${release}${shared_ext}$major' 16591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16592 case $host_os in 16593 irix5* | nonstopux*) 16594 libsuff= shlibsuff= 16595 ;; 16596 *) 16597 case $LD in # libtool.m4 will add one of these switches to LD 16598 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16599 libsuff= shlibsuff= libmagic=32-bit;; 16600 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16601 libsuff=32 shlibsuff=N32 libmagic=N32;; 16602 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16603 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16604 *) libsuff= shlibsuff= libmagic=never-match;; 16605 esac 16606 ;; 16607 esac 16608 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16609 shlibpath_overrides_runpath=no 16610 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16611 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16612 hardcode_into_libs=yes 16613 ;; 16614 16615# No shared lib support for Linux oldld, aout, or coff. 16616linux*oldld* | linux*aout* | linux*coff*) 16617 dynamic_linker=no 16618 ;; 16619 16620# This must be Linux ELF. 16621linux* | k*bsd*-gnu) 16622 version_type=linux 16623 need_lib_prefix=no 16624 need_version=no 16625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16626 soname_spec='${libname}${release}${shared_ext}$major' 16627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16628 shlibpath_var=LD_LIBRARY_PATH 16629 shlibpath_overrides_runpath=no 16630 # This implies no fast_install, which is unacceptable. 16631 # Some rework will be needed to allow for fast_install 16632 # before this can be enabled. 16633 hardcode_into_libs=yes 16634 16635 # Append ld.so.conf contents to the search path 16636 if test -f /etc/ld.so.conf; then 16637 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' ' '` 16638 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16639 fi 16640 16641 # We used to test for /lib/ld.so.1 and disable shared libraries on 16642 # powerpc, because MkLinux only supported shared libraries with the 16643 # GNU dynamic linker. Since this was broken with cross compilers, 16644 # most powerpc-linux boxes support dynamic linking these days and 16645 # people can always --disable-shared, the test was removed, and we 16646 # assume the GNU/Linux dynamic linker is in use. 16647 dynamic_linker='GNU/Linux ld.so' 16648 ;; 16649 16650netbsd*) 16651 version_type=sunos 16652 need_lib_prefix=no 16653 need_version=no 16654 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16657 dynamic_linker='NetBSD (a.out) ld.so' 16658 else 16659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16660 soname_spec='${libname}${release}${shared_ext}$major' 16661 dynamic_linker='NetBSD ld.elf_so' 16662 fi 16663 shlibpath_var=LD_LIBRARY_PATH 16664 shlibpath_overrides_runpath=yes 16665 hardcode_into_libs=yes 16666 ;; 16667 16668newsos6) 16669 version_type=linux 16670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16671 shlibpath_var=LD_LIBRARY_PATH 16672 shlibpath_overrides_runpath=yes 16673 ;; 16674 16675nto-qnx*) 16676 version_type=linux 16677 need_lib_prefix=no 16678 need_version=no 16679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16680 soname_spec='${libname}${release}${shared_ext}$major' 16681 shlibpath_var=LD_LIBRARY_PATH 16682 shlibpath_overrides_runpath=yes 16683 ;; 16684 16685openbsd*) 16686 version_type=sunos 16687 sys_lib_dlsearch_path_spec="/usr/lib" 16688 need_lib_prefix=no 16689 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16690 case $host_os in 16691 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16692 *) need_version=no ;; 16693 esac 16694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16696 shlibpath_var=LD_LIBRARY_PATH 16697 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16698 case $host_os in 16699 openbsd2.[89] | openbsd2.[89].*) 16700 shlibpath_overrides_runpath=no 16701 ;; 16702 *) 16703 shlibpath_overrides_runpath=yes 16704 ;; 16705 esac 16706 else 16707 shlibpath_overrides_runpath=yes 16708 fi 16709 ;; 16710 16711os2*) 16712 libname_spec='$name' 16713 shrext_cmds=".dll" 16714 need_lib_prefix=no 16715 library_names_spec='$libname${shared_ext} $libname.a' 16716 dynamic_linker='OS/2 ld.exe' 16717 shlibpath_var=LIBPATH 16718 ;; 16719 16720osf3* | osf4* | osf5*) 16721 version_type=osf 16722 need_lib_prefix=no 16723 need_version=no 16724 soname_spec='${libname}${release}${shared_ext}$major' 16725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16726 shlibpath_var=LD_LIBRARY_PATH 16727 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16728 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16729 ;; 16730 16731rdos*) 16732 dynamic_linker=no 16733 ;; 16734 16735solaris*) 16736 version_type=linux 16737 need_lib_prefix=no 16738 need_version=no 16739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16740 soname_spec='${libname}${release}${shared_ext}$major' 16741 shlibpath_var=LD_LIBRARY_PATH 16742 shlibpath_overrides_runpath=yes 16743 hardcode_into_libs=yes 16744 # ldd complains unless libraries are executable 16745 postinstall_cmds='chmod +x $lib' 16746 ;; 16747 16748sunos4*) 16749 version_type=sunos 16750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16751 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16752 shlibpath_var=LD_LIBRARY_PATH 16753 shlibpath_overrides_runpath=yes 16754 if test "$with_gnu_ld" = yes; then 16755 need_lib_prefix=no 16756 fi 16757 need_version=yes 16758 ;; 16759 16760sysv4 | sysv4.3*) 16761 version_type=linux 16762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16763 soname_spec='${libname}${release}${shared_ext}$major' 16764 shlibpath_var=LD_LIBRARY_PATH 16765 case $host_vendor in 16766 sni) 16767 shlibpath_overrides_runpath=no 16768 need_lib_prefix=no 16769 export_dynamic_flag_spec='${wl}-Blargedynsym' 16770 runpath_var=LD_RUN_PATH 16771 ;; 16772 siemens) 16773 need_lib_prefix=no 16774 ;; 16775 motorola) 16776 need_lib_prefix=no 16777 need_version=no 16778 shlibpath_overrides_runpath=no 16779 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16780 ;; 16781 esac 16782 ;; 16783 16784sysv4*MP*) 16785 if test -d /usr/nec ;then 16786 version_type=linux 16787 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16788 soname_spec='$libname${shared_ext}.$major' 16789 shlibpath_var=LD_LIBRARY_PATH 16790 fi 16791 ;; 16792 16793sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16794 version_type=freebsd-elf 16795 need_lib_prefix=no 16796 need_version=no 16797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16798 soname_spec='${libname}${release}${shared_ext}$major' 16799 shlibpath_var=LD_LIBRARY_PATH 16800 hardcode_into_libs=yes 16801 if test "$with_gnu_ld" = yes; then 16802 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16803 shlibpath_overrides_runpath=no 16804 else 16805 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16806 shlibpath_overrides_runpath=yes 16807 case $host_os in 16808 sco3.2v5*) 16809 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16810 ;; 16811 esac 16812 fi 16813 sys_lib_dlsearch_path_spec='/usr/lib' 16814 ;; 16815 16816uts4*) 16817 version_type=linux 16818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16819 soname_spec='${libname}${release}${shared_ext}$major' 16820 shlibpath_var=LD_LIBRARY_PATH 16821 ;; 16822 16823*) 16824 dynamic_linker=no 16825 ;; 16826esac 16827{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16828$as_echo "$dynamic_linker" >&6; } 16829test "$dynamic_linker" = no && can_build_shared=no 16830 16831if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16832 $as_echo_n "(cached) " >&6 16833else 16834 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 16835fi 16836 16837sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16838if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16839 $as_echo_n "(cached) " >&6 16840else 16841 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 16842fi 16843 16844sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16845 16846variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16847if test "$GCC" = yes; then 16848 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16849fi 16850 16851{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16852$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16853hardcode_action_F77= 16854if test -n "$hardcode_libdir_flag_spec_F77" || \ 16855 test -n "$runpath_var_F77" || \ 16856 test "X$hardcode_automatic_F77" = "Xyes" ; then 16857 16858 # We can hardcode non-existant directories. 16859 if test "$hardcode_direct_F77" != no && 16860 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16861 # have to relink, otherwise we might link with an installed library 16862 # when we should be linking with a yet-to-be-installed one 16863 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16864 test "$hardcode_minus_L_F77" != no; then 16865 # Linking always hardcodes the temporary library directory. 16866 hardcode_action_F77=relink 16867 else 16868 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16869 hardcode_action_F77=immediate 16870 fi 16871else 16872 # We cannot hardcode anything, or else we can only hardcode existing 16873 # directories. 16874 hardcode_action_F77=unsupported 16875fi 16876{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16877$as_echo "$hardcode_action_F77" >&6; } 16878 16879if test "$hardcode_action_F77" = relink; then 16880 # Fast installation is not supported 16881 enable_fast_install=no 16882elif test "$shlibpath_overrides_runpath" = yes || 16883 test "$enable_shared" = no; then 16884 # Fast installation is not necessary 16885 enable_fast_install=needless 16886fi 16887 16888 16889# The else clause should only fire when bootstrapping the 16890# libtool distribution, otherwise you forgot to ship ltmain.sh 16891# with your package, and you will get complaints that there are 16892# no rules to generate ltmain.sh. 16893if test -f "$ltmain"; then 16894 # See if we are running on zsh, and set the options which allow our commands through 16895 # without removal of \ escapes. 16896 if test -n "${ZSH_VERSION+set}" ; then 16897 setopt NO_GLOB_SUBST 16898 fi 16899 # Now quote all the things that may contain metacharacters while being 16900 # careful not to overquote the AC_SUBSTed values. We take copies of the 16901 # variables and quote the copies for generation of the libtool script. 16902 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16903 SED SHELL STRIP \ 16904 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16905 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16906 deplibs_check_method reload_flag reload_cmds need_locks \ 16907 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16908 lt_cv_sys_global_symbol_to_c_name_address \ 16909 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16910 old_postinstall_cmds old_postuninstall_cmds \ 16911 compiler_F77 \ 16912 CC_F77 \ 16913 LD_F77 \ 16914 lt_prog_compiler_wl_F77 \ 16915 lt_prog_compiler_pic_F77 \ 16916 lt_prog_compiler_static_F77 \ 16917 lt_prog_compiler_no_builtin_flag_F77 \ 16918 export_dynamic_flag_spec_F77 \ 16919 thread_safe_flag_spec_F77 \ 16920 whole_archive_flag_spec_F77 \ 16921 enable_shared_with_static_runtimes_F77 \ 16922 old_archive_cmds_F77 \ 16923 old_archive_from_new_cmds_F77 \ 16924 predep_objects_F77 \ 16925 postdep_objects_F77 \ 16926 predeps_F77 \ 16927 postdeps_F77 \ 16928 compiler_lib_search_path_F77 \ 16929 compiler_lib_search_dirs_F77 \ 16930 archive_cmds_F77 \ 16931 archive_expsym_cmds_F77 \ 16932 postinstall_cmds_F77 \ 16933 postuninstall_cmds_F77 \ 16934 old_archive_from_expsyms_cmds_F77 \ 16935 allow_undefined_flag_F77 \ 16936 no_undefined_flag_F77 \ 16937 export_symbols_cmds_F77 \ 16938 hardcode_libdir_flag_spec_F77 \ 16939 hardcode_libdir_flag_spec_ld_F77 \ 16940 hardcode_libdir_separator_F77 \ 16941 hardcode_automatic_F77 \ 16942 module_cmds_F77 \ 16943 module_expsym_cmds_F77 \ 16944 lt_cv_prog_compiler_c_o_F77 \ 16945 fix_srcfile_path_F77 \ 16946 exclude_expsyms_F77 \ 16947 include_expsyms_F77; do 16948 16949 case $var in 16950 old_archive_cmds_F77 | \ 16951 old_archive_from_new_cmds_F77 | \ 16952 archive_cmds_F77 | \ 16953 archive_expsym_cmds_F77 | \ 16954 module_cmds_F77 | \ 16955 module_expsym_cmds_F77 | \ 16956 old_archive_from_expsyms_cmds_F77 | \ 16957 export_symbols_cmds_F77 | \ 16958 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16959 postinstall_cmds | postuninstall_cmds | \ 16960 old_postinstall_cmds | old_postuninstall_cmds | \ 16961 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16962 # Double-quote double-evaled strings. 16963 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16964 ;; 16965 *) 16966 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16967 ;; 16968 esac 16969 done 16970 16971 case $lt_echo in 16972 *'\$0 --fallback-echo"') 16973 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16974 ;; 16975 esac 16976 16977cfgfile="$ofile" 16978 16979 cat <<__EOF__ >> "$cfgfile" 16980# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16981 16982# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16983 16984# Shell to use when invoking shell scripts. 16985SHELL=$lt_SHELL 16986 16987# Whether or not to build shared libraries. 16988build_libtool_libs=$enable_shared 16989 16990# Whether or not to build static libraries. 16991build_old_libs=$enable_static 16992 16993# Whether or not to add -lc for building shared libraries. 16994build_libtool_need_lc=$archive_cmds_need_lc_F77 16995 16996# Whether or not to disallow shared libs when runtime libs are static 16997allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16998 16999# Whether or not to optimize for fast installation. 17000fast_install=$enable_fast_install 17001 17002# The host system. 17003host_alias=$host_alias 17004host=$host 17005host_os=$host_os 17006 17007# The build system. 17008build_alias=$build_alias 17009build=$build 17010build_os=$build_os 17011 17012# An echo program that does not interpret backslashes. 17013echo=$lt_echo 17014 17015# The archiver. 17016AR=$lt_AR 17017AR_FLAGS=$lt_AR_FLAGS 17018 17019# A C compiler. 17020LTCC=$lt_LTCC 17021 17022# LTCC compiler flags. 17023LTCFLAGS=$lt_LTCFLAGS 17024 17025# A language-specific compiler. 17026CC=$lt_compiler_F77 17027 17028# Is the compiler the GNU C compiler? 17029with_gcc=$GCC_F77 17030 17031# An ERE matcher. 17032EGREP=$lt_EGREP 17033 17034# The linker used to build libraries. 17035LD=$lt_LD_F77 17036 17037# Whether we need hard or soft links. 17038LN_S=$lt_LN_S 17039 17040# A BSD-compatible nm program. 17041NM=$lt_NM 17042 17043# A symbol stripping program 17044STRIP=$lt_STRIP 17045 17046# Used to examine libraries when file_magic_cmd begins "file" 17047MAGIC_CMD=$MAGIC_CMD 17048 17049# Used on cygwin: DLL creation program. 17050DLLTOOL="$DLLTOOL" 17051 17052# Used on cygwin: object dumper. 17053OBJDUMP="$OBJDUMP" 17054 17055# Used on cygwin: assembler. 17056AS="$AS" 17057 17058# The name of the directory that contains temporary libtool files. 17059objdir=$objdir 17060 17061# How to create reloadable object files. 17062reload_flag=$lt_reload_flag 17063reload_cmds=$lt_reload_cmds 17064 17065# How to pass a linker flag through the compiler. 17066wl=$lt_lt_prog_compiler_wl_F77 17067 17068# Object file suffix (normally "o"). 17069objext="$ac_objext" 17070 17071# Old archive suffix (normally "a"). 17072libext="$libext" 17073 17074# Shared library suffix (normally ".so"). 17075shrext_cmds='$shrext_cmds' 17076 17077# Executable file suffix (normally ""). 17078exeext="$exeext" 17079 17080# Additional compiler flags for building library objects. 17081pic_flag=$lt_lt_prog_compiler_pic_F77 17082pic_mode=$pic_mode 17083 17084# What is the maximum length of a command? 17085max_cmd_len=$lt_cv_sys_max_cmd_len 17086 17087# Does compiler simultaneously support -c and -o options? 17088compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 17089 17090# Must we lock files when doing compilation? 17091need_locks=$lt_need_locks 17092 17093# Do we need the lib prefix for modules? 17094need_lib_prefix=$need_lib_prefix 17095 17096# Do we need a version for libraries? 17097need_version=$need_version 17098 17099# Whether dlopen is supported. 17100dlopen_support=$enable_dlopen 17101 17102# Whether dlopen of programs is supported. 17103dlopen_self=$enable_dlopen_self 17104 17105# Whether dlopen of statically linked programs is supported. 17106dlopen_self_static=$enable_dlopen_self_static 17107 17108# Compiler flag to prevent dynamic linking. 17109link_static_flag=$lt_lt_prog_compiler_static_F77 17110 17111# Compiler flag to turn off builtin functions. 17112no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 17113 17114# Compiler flag to allow reflexive dlopens. 17115export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 17116 17117# Compiler flag to generate shared objects directly from archives. 17118whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 17119 17120# Compiler flag to generate thread-safe objects. 17121thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 17122 17123# Library versioning type. 17124version_type=$version_type 17125 17126# Format of library name prefix. 17127libname_spec=$lt_libname_spec 17128 17129# List of archive names. First name is the real one, the rest are links. 17130# The last name is the one that the linker finds with -lNAME. 17131library_names_spec=$lt_library_names_spec 17132 17133# The coded name of the library, if different from the real name. 17134soname_spec=$lt_soname_spec 17135 17136# Commands used to build and install an old-style archive. 17137RANLIB=$lt_RANLIB 17138old_archive_cmds=$lt_old_archive_cmds_F77 17139old_postinstall_cmds=$lt_old_postinstall_cmds 17140old_postuninstall_cmds=$lt_old_postuninstall_cmds 17141 17142# Create an old-style archive from a shared archive. 17143old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 17144 17145# Create a temporary old-style archive to link instead of a shared archive. 17146old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 17147 17148# Commands used to build and install a shared archive. 17149archive_cmds=$lt_archive_cmds_F77 17150archive_expsym_cmds=$lt_archive_expsym_cmds_F77 17151postinstall_cmds=$lt_postinstall_cmds 17152postuninstall_cmds=$lt_postuninstall_cmds 17153 17154# Commands used to build a loadable module (assumed same as above if empty) 17155module_cmds=$lt_module_cmds_F77 17156module_expsym_cmds=$lt_module_expsym_cmds_F77 17157 17158# Commands to strip libraries. 17159old_striplib=$lt_old_striplib 17160striplib=$lt_striplib 17161 17162# Dependencies to place before the objects being linked to create a 17163# shared library. 17164predep_objects=$lt_predep_objects_F77 17165 17166# Dependencies to place after the objects being linked to create a 17167# shared library. 17168postdep_objects=$lt_postdep_objects_F77 17169 17170# Dependencies to place before the objects being linked to create a 17171# shared library. 17172predeps=$lt_predeps_F77 17173 17174# Dependencies to place after the objects being linked to create a 17175# shared library. 17176postdeps=$lt_postdeps_F77 17177 17178# The directories searched by this compiler when creating a shared 17179# library 17180compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 17181 17182# The library search path used internally by the compiler when linking 17183# a shared library. 17184compiler_lib_search_path=$lt_compiler_lib_search_path_F77 17185 17186# Method to check whether dependent libraries are shared objects. 17187deplibs_check_method=$lt_deplibs_check_method 17188 17189# Command to use when deplibs_check_method == file_magic. 17190file_magic_cmd=$lt_file_magic_cmd 17191 17192# Flag that allows shared libraries with undefined symbols to be built. 17193allow_undefined_flag=$lt_allow_undefined_flag_F77 17194 17195# Flag that forces no undefined symbols. 17196no_undefined_flag=$lt_no_undefined_flag_F77 17197 17198# Commands used to finish a libtool library installation in a directory. 17199finish_cmds=$lt_finish_cmds 17200 17201# Same as above, but a single script fragment to be evaled but not shown. 17202finish_eval=$lt_finish_eval 17203 17204# Take the output of nm and produce a listing of raw symbols and C names. 17205global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17206 17207# Transform the output of nm in a proper C declaration 17208global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17209 17210# Transform the output of nm in a C name address pair 17211global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17212 17213# This is the shared library runtime path variable. 17214runpath_var=$runpath_var 17215 17216# This is the shared library path variable. 17217shlibpath_var=$shlibpath_var 17218 17219# Is shlibpath searched before the hard-coded library search path? 17220shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17221 17222# How to hardcode a shared library path into an executable. 17223hardcode_action=$hardcode_action_F77 17224 17225# Whether we should hardcode library paths into libraries. 17226hardcode_into_libs=$hardcode_into_libs 17227 17228# Flag to hardcode \$libdir into a binary during linking. 17229# This must work even if \$libdir does not exist. 17230hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 17231 17232# If ld is used when linking, flag to hardcode \$libdir into 17233# a binary during linking. This must work even if \$libdir does 17234# not exist. 17235hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 17236 17237# Whether we need a single -rpath flag with a separated argument. 17238hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 17239 17240# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17241# resulting binary. 17242hardcode_direct=$hardcode_direct_F77 17243 17244# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17245# resulting binary. 17246hardcode_minus_L=$hardcode_minus_L_F77 17247 17248# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17249# the resulting binary. 17250hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 17251 17252# Set to yes if building a shared library automatically hardcodes DIR into the library 17253# and all subsequent libraries and executables linked against it. 17254hardcode_automatic=$hardcode_automatic_F77 17255 17256# Variables whose values should be saved in libtool wrapper scripts and 17257# restored at relink time. 17258variables_saved_for_relink="$variables_saved_for_relink" 17259 17260# Whether libtool must link a program against all its dependency libraries. 17261link_all_deplibs=$link_all_deplibs_F77 17262 17263# Compile-time system search path for libraries 17264sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17265 17266# Run-time system search path for libraries 17267sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17268 17269# Fix the shell variable \$srcfile for the compiler. 17270fix_srcfile_path=$lt_fix_srcfile_path 17271 17272# Set to yes if exported symbols are required. 17273always_export_symbols=$always_export_symbols_F77 17274 17275# The commands to list exported symbols. 17276export_symbols_cmds=$lt_export_symbols_cmds_F77 17277 17278# The commands to extract the exported symbol list from a shared archive. 17279extract_expsyms_cmds=$lt_extract_expsyms_cmds 17280 17281# Symbols that should not be listed in the preloaded symbols. 17282exclude_expsyms=$lt_exclude_expsyms_F77 17283 17284# Symbols that must always be exported. 17285include_expsyms=$lt_include_expsyms_F77 17286 17287# ### END LIBTOOL TAG CONFIG: $tagname 17288 17289__EOF__ 17290 17291 17292else 17293 # If there is no Makefile yet, we rely on a make rule to execute 17294 # `config.status --recheck' to rerun these tests and create the 17295 # libtool script then. 17296 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17297 if test -f "$ltmain_in"; then 17298 test -f Makefile && make "$ltmain" 17299 fi 17300fi 17301 17302 17303ac_ext=c 17304ac_cpp='$CPP $CPPFLAGS' 17305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17307ac_compiler_gnu=$ac_cv_c_compiler_gnu 17308 17309CC="$lt_save_CC" 17310 17311 else 17312 tagname="" 17313 fi 17314 ;; 17315 17316 GCJ) 17317 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 17318 17319 17320# Source file extension for Java test sources. 17321ac_ext=java 17322 17323# Object file extension for compiled Java test sources. 17324objext=o 17325objext_GCJ=$objext 17326 17327# Code to be used in simple compile tests 17328lt_simple_compile_test_code="class foo {}" 17329 17330# Code to be used in simple link tests 17331lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 17332 17333# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17334 17335# If no C compiler was specified, use CC. 17336LTCC=${LTCC-"$CC"} 17337 17338# If no C compiler flags were specified, use CFLAGS. 17339LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17340 17341# Allow CC to be a program name with arguments. 17342compiler=$CC 17343 17344 17345# save warnings/boilerplate of simple test code 17346ac_outfile=conftest.$ac_objext 17347echo "$lt_simple_compile_test_code" >conftest.$ac_ext 17348eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17349_lt_compiler_boilerplate=`cat conftest.err` 17350$rm conftest* 17351 17352ac_outfile=conftest.$ac_objext 17353echo "$lt_simple_link_test_code" >conftest.$ac_ext 17354eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17355_lt_linker_boilerplate=`cat conftest.err` 17356$rm -r conftest* 17357 17358 17359# Allow CC to be a program name with arguments. 17360lt_save_CC="$CC" 17361CC=${GCJ-"gcj"} 17362compiler=$CC 17363compiler_GCJ=$CC 17364for cc_temp in $compiler""; do 17365 case $cc_temp in 17366 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17367 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17368 \-*) ;; 17369 *) break;; 17370 esac 17371done 17372cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17373 17374 17375# GCJ did not exist at the time GCC didn't implicitly link libc in. 17376archive_cmds_need_lc_GCJ=no 17377 17378old_archive_cmds_GCJ=$old_archive_cmds 17379 17380 17381lt_prog_compiler_no_builtin_flag_GCJ= 17382 17383if test "$GCC" = yes; then 17384 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 17385 17386 17387{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 17388$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 17389if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 17390 $as_echo_n "(cached) " >&6 17391else 17392 lt_cv_prog_compiler_rtti_exceptions=no 17393 ac_outfile=conftest.$ac_objext 17394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17395 lt_compiler_flag="-fno-rtti -fno-exceptions" 17396 # Insert the option either (1) after the last *FLAGS variable, or 17397 # (2) before a word containing "conftest.", or (3) at the end. 17398 # Note that $ac_compile itself does not contain backslashes and begins 17399 # with a dollar sign (not a hyphen), so the echo should work correctly. 17400 # The option is referenced via a variable to avoid confusing sed. 17401 lt_compile=`echo "$ac_compile" | $SED \ 17402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17404 -e 's:$: $lt_compiler_flag:'` 17405 (eval echo "\"\$as_me:17405: $lt_compile\"" >&5) 17406 (eval "$lt_compile" 2>conftest.err) 17407 ac_status=$? 17408 cat conftest.err >&5 17409 echo "$as_me:17409: \$? = $ac_status" >&5 17410 if (exit $ac_status) && test -s "$ac_outfile"; then 17411 # The compiler can only warn and ignore the option if not recognized 17412 # So say no if there are warnings other than the usual output. 17413 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17415 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17416 lt_cv_prog_compiler_rtti_exceptions=yes 17417 fi 17418 fi 17419 $rm conftest* 17420 17421fi 17422{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 17423$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 17424 17425if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 17426 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 17427else 17428 : 17429fi 17430 17431fi 17432 17433lt_prog_compiler_wl_GCJ= 17434lt_prog_compiler_pic_GCJ= 17435lt_prog_compiler_static_GCJ= 17436 17437{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 17438$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 17439 17440 if test "$GCC" = yes; then 17441 lt_prog_compiler_wl_GCJ='-Wl,' 17442 lt_prog_compiler_static_GCJ='-static' 17443 17444 case $host_os in 17445 aix*) 17446 # All AIX code is PIC. 17447 if test "$host_cpu" = ia64; then 17448 # AIX 5 now supports IA64 processor 17449 lt_prog_compiler_static_GCJ='-Bstatic' 17450 fi 17451 ;; 17452 17453 amigaos*) 17454 # FIXME: we need at least 68020 code to build shared libraries, but 17455 # adding the `-m68020' flag to GCC prevents building anything better, 17456 # like `-m68040'. 17457 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 17458 ;; 17459 17460 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17461 # PIC is the default for these OSes. 17462 ;; 17463 17464 mingw* | cygwin* | pw32* | os2*) 17465 # This hack is so that the source file can tell whether it is being 17466 # built for inclusion in a dll (and should export symbols for example). 17467 # Although the cygwin gcc ignores -fPIC, still need this for old-style 17468 # (--disable-auto-import) libraries 17469 17470 ;; 17471 17472 darwin* | rhapsody*) 17473 # PIC is the default on this platform 17474 # Common symbols not allowed in MH_DYLIB files 17475 lt_prog_compiler_pic_GCJ='-fno-common' 17476 ;; 17477 17478 interix[3-9]*) 17479 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17480 # Instead, we relocate shared libraries at runtime. 17481 ;; 17482 17483 msdosdjgpp*) 17484 # Just because we use GCC doesn't mean we suddenly get shared libraries 17485 # on systems that don't support them. 17486 lt_prog_compiler_can_build_shared_GCJ=no 17487 enable_shared=no 17488 ;; 17489 17490 sysv4*MP*) 17491 if test -d /usr/nec; then 17492 lt_prog_compiler_pic_GCJ=-Kconform_pic 17493 fi 17494 ;; 17495 17496 hpux*) 17497 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17498 # not for PA HP-UX. 17499 case $host_cpu in 17500 hppa*64*|ia64*) 17501 # +Z the default 17502 ;; 17503 *) 17504 lt_prog_compiler_pic_GCJ='-fPIC' 17505 ;; 17506 esac 17507 ;; 17508 17509 *) 17510 lt_prog_compiler_pic_GCJ='-fPIC' 17511 ;; 17512 esac 17513 else 17514 # PORTME Check for flag to pass linker flags through the system compiler. 17515 case $host_os in 17516 aix*) 17517 lt_prog_compiler_wl_GCJ='-Wl,' 17518 if test "$host_cpu" = ia64; then 17519 # AIX 5 now supports IA64 processor 17520 lt_prog_compiler_static_GCJ='-Bstatic' 17521 else 17522 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17523 fi 17524 ;; 17525 darwin*) 17526 # PIC is the default on this platform 17527 # Common symbols not allowed in MH_DYLIB files 17528 case $cc_basename in 17529 xlc*) 17530 lt_prog_compiler_pic_GCJ='-qnocommon' 17531 lt_prog_compiler_wl_GCJ='-Wl,' 17532 ;; 17533 esac 17534 ;; 17535 17536 mingw* | cygwin* | pw32* | os2*) 17537 # This hack is so that the source file can tell whether it is being 17538 # built for inclusion in a dll (and should export symbols for example). 17539 17540 ;; 17541 17542 hpux9* | hpux10* | hpux11*) 17543 lt_prog_compiler_wl_GCJ='-Wl,' 17544 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17545 # not for PA HP-UX. 17546 case $host_cpu in 17547 hppa*64*|ia64*) 17548 # +Z the default 17549 ;; 17550 *) 17551 lt_prog_compiler_pic_GCJ='+Z' 17552 ;; 17553 esac 17554 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17555 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17556 ;; 17557 17558 irix5* | irix6* | nonstopux*) 17559 lt_prog_compiler_wl_GCJ='-Wl,' 17560 # PIC (with -KPIC) is the default. 17561 lt_prog_compiler_static_GCJ='-non_shared' 17562 ;; 17563 17564 newsos6) 17565 lt_prog_compiler_pic_GCJ='-KPIC' 17566 lt_prog_compiler_static_GCJ='-Bstatic' 17567 ;; 17568 17569 linux* | k*bsd*-gnu) 17570 case $cc_basename in 17571 icc* | ecc*) 17572 lt_prog_compiler_wl_GCJ='-Wl,' 17573 lt_prog_compiler_pic_GCJ='-KPIC' 17574 lt_prog_compiler_static_GCJ='-static' 17575 ;; 17576 pgcc* | pgf77* | pgf90* | pgf95*) 17577 # Portland Group compilers (*not* the Pentium gcc compiler, 17578 # which looks to be a dead project) 17579 lt_prog_compiler_wl_GCJ='-Wl,' 17580 lt_prog_compiler_pic_GCJ='-fpic' 17581 lt_prog_compiler_static_GCJ='-Bstatic' 17582 ;; 17583 ccc*) 17584 lt_prog_compiler_wl_GCJ='-Wl,' 17585 # All Alpha code is PIC. 17586 lt_prog_compiler_static_GCJ='-non_shared' 17587 ;; 17588 *) 17589 case `$CC -V 2>&1 | sed 5q` in 17590 *Sun\ C*) 17591 # Sun C 5.9 17592 lt_prog_compiler_pic_GCJ='-KPIC' 17593 lt_prog_compiler_static_GCJ='-Bstatic' 17594 lt_prog_compiler_wl_GCJ='-Wl,' 17595 ;; 17596 *Sun\ F*) 17597 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17598 lt_prog_compiler_pic_GCJ='-KPIC' 17599 lt_prog_compiler_static_GCJ='-Bstatic' 17600 lt_prog_compiler_wl_GCJ='' 17601 ;; 17602 esac 17603 ;; 17604 esac 17605 ;; 17606 17607 osf3* | osf4* | osf5*) 17608 lt_prog_compiler_wl_GCJ='-Wl,' 17609 # All OSF/1 code is PIC. 17610 lt_prog_compiler_static_GCJ='-non_shared' 17611 ;; 17612 17613 rdos*) 17614 lt_prog_compiler_static_GCJ='-non_shared' 17615 ;; 17616 17617 solaris*) 17618 lt_prog_compiler_pic_GCJ='-KPIC' 17619 lt_prog_compiler_static_GCJ='-Bstatic' 17620 case $cc_basename in 17621 f77* | f90* | f95*) 17622 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17623 *) 17624 lt_prog_compiler_wl_GCJ='-Wl,';; 17625 esac 17626 ;; 17627 17628 sunos4*) 17629 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17630 lt_prog_compiler_pic_GCJ='-PIC' 17631 lt_prog_compiler_static_GCJ='-Bstatic' 17632 ;; 17633 17634 sysv4 | sysv4.2uw2* | sysv4.3*) 17635 lt_prog_compiler_wl_GCJ='-Wl,' 17636 lt_prog_compiler_pic_GCJ='-KPIC' 17637 lt_prog_compiler_static_GCJ='-Bstatic' 17638 ;; 17639 17640 sysv4*MP*) 17641 if test -d /usr/nec ;then 17642 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17643 lt_prog_compiler_static_GCJ='-Bstatic' 17644 fi 17645 ;; 17646 17647 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17648 lt_prog_compiler_wl_GCJ='-Wl,' 17649 lt_prog_compiler_pic_GCJ='-KPIC' 17650 lt_prog_compiler_static_GCJ='-Bstatic' 17651 ;; 17652 17653 unicos*) 17654 lt_prog_compiler_wl_GCJ='-Wl,' 17655 lt_prog_compiler_can_build_shared_GCJ=no 17656 ;; 17657 17658 uts4*) 17659 lt_prog_compiler_pic_GCJ='-pic' 17660 lt_prog_compiler_static_GCJ='-Bstatic' 17661 ;; 17662 17663 *) 17664 lt_prog_compiler_can_build_shared_GCJ=no 17665 ;; 17666 esac 17667 fi 17668 17669{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17670$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 17671 17672# 17673# Check to make sure the PIC flag actually works. 17674# 17675if test -n "$lt_prog_compiler_pic_GCJ"; then 17676 17677{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17678$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 17679if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 17680 $as_echo_n "(cached) " >&6 17681else 17682 lt_cv_prog_compiler_pic_works_GCJ=no 17683 ac_outfile=conftest.$ac_objext 17684 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17685 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17686 # Insert the option either (1) after the last *FLAGS variable, or 17687 # (2) before a word containing "conftest.", or (3) at the end. 17688 # Note that $ac_compile itself does not contain backslashes and begins 17689 # with a dollar sign (not a hyphen), so the echo should work correctly. 17690 # The option is referenced via a variable to avoid confusing sed. 17691 lt_compile=`echo "$ac_compile" | $SED \ 17692 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17694 -e 's:$: $lt_compiler_flag:'` 17695 (eval echo "\"\$as_me:17695: $lt_compile\"" >&5) 17696 (eval "$lt_compile" 2>conftest.err) 17697 ac_status=$? 17698 cat conftest.err >&5 17699 echo "$as_me:17699: \$? = $ac_status" >&5 17700 if (exit $ac_status) && test -s "$ac_outfile"; then 17701 # The compiler can only warn and ignore the option if not recognized 17702 # So say no if there are warnings other than the usual output. 17703 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17705 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17706 lt_cv_prog_compiler_pic_works_GCJ=yes 17707 fi 17708 fi 17709 $rm conftest* 17710 17711fi 17712{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 17713$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 17714 17715if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 17716 case $lt_prog_compiler_pic_GCJ in 17717 "" | " "*) ;; 17718 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17719 esac 17720else 17721 lt_prog_compiler_pic_GCJ= 17722 lt_prog_compiler_can_build_shared_GCJ=no 17723fi 17724 17725fi 17726case $host_os in 17727 # For platforms which do not support PIC, -DPIC is meaningless: 17728 *djgpp*) 17729 lt_prog_compiler_pic_GCJ= 17730 ;; 17731 *) 17732 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17733 ;; 17734esac 17735 17736# 17737# Check to make sure the static flag actually works. 17738# 17739wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17740{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17741$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17742if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 17743 $as_echo_n "(cached) " >&6 17744else 17745 lt_cv_prog_compiler_static_works_GCJ=no 17746 save_LDFLAGS="$LDFLAGS" 17747 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17748 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17749 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17750 # The linker can only warn and ignore the option if not recognized 17751 # So say no if there are warnings 17752 if test -s conftest.err; then 17753 # Append any errors to the config.log. 17754 cat conftest.err 1>&5 17755 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17757 if diff conftest.exp conftest.er2 >/dev/null; then 17758 lt_cv_prog_compiler_static_works_GCJ=yes 17759 fi 17760 else 17761 lt_cv_prog_compiler_static_works_GCJ=yes 17762 fi 17763 fi 17764 $rm -r conftest* 17765 LDFLAGS="$save_LDFLAGS" 17766 17767fi 17768{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 17769$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; } 17770 17771if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 17772 : 17773else 17774 lt_prog_compiler_static_GCJ= 17775fi 17776 17777 17778{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17779$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17780if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17781 $as_echo_n "(cached) " >&6 17782else 17783 lt_cv_prog_compiler_c_o_GCJ=no 17784 $rm -r conftest 2>/dev/null 17785 mkdir conftest 17786 cd conftest 17787 mkdir out 17788 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17789 17790 lt_compiler_flag="-o out/conftest2.$ac_objext" 17791 # Insert the option either (1) after the last *FLAGS variable, or 17792 # (2) before a word containing "conftest.", or (3) at the end. 17793 # Note that $ac_compile itself does not contain backslashes and begins 17794 # with a dollar sign (not a hyphen), so the echo should work correctly. 17795 lt_compile=`echo "$ac_compile" | $SED \ 17796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17798 -e 's:$: $lt_compiler_flag:'` 17799 (eval echo "\"\$as_me:17799: $lt_compile\"" >&5) 17800 (eval "$lt_compile" 2>out/conftest.err) 17801 ac_status=$? 17802 cat out/conftest.err >&5 17803 echo "$as_me:17803: \$? = $ac_status" >&5 17804 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17805 then 17806 # The compiler can only warn and ignore the option if not recognized 17807 # So say no if there are warnings 17808 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17809 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17810 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17811 lt_cv_prog_compiler_c_o_GCJ=yes 17812 fi 17813 fi 17814 chmod u+w . 2>&5 17815 $rm conftest* 17816 # SGI C++ compiler will create directory out/ii_files/ for 17817 # template instantiation 17818 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17819 $rm out/* && rmdir out 17820 cd .. 17821 rmdir conftest 17822 $rm conftest* 17823 17824fi 17825{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17826$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17827 17828 17829hard_links="nottested" 17830if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17831 # do not overwrite the value of need_locks provided by the user 17832 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17833$as_echo_n "checking if we can lock with hard links... " >&6; } 17834 hard_links=yes 17835 $rm conftest* 17836 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17837 touch conftest.a 17838 ln conftest.a conftest.b 2>&5 || hard_links=no 17839 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17840 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 17841$as_echo "$hard_links" >&6; } 17842 if test "$hard_links" = no; then 17843 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17844$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17845 need_locks=warn 17846 fi 17847else 17848 need_locks=no 17849fi 17850 17851{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17852$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17853 17854 runpath_var= 17855 allow_undefined_flag_GCJ= 17856 enable_shared_with_static_runtimes_GCJ=no 17857 archive_cmds_GCJ= 17858 archive_expsym_cmds_GCJ= 17859 old_archive_From_new_cmds_GCJ= 17860 old_archive_from_expsyms_cmds_GCJ= 17861 export_dynamic_flag_spec_GCJ= 17862 whole_archive_flag_spec_GCJ= 17863 thread_safe_flag_spec_GCJ= 17864 hardcode_libdir_flag_spec_GCJ= 17865 hardcode_libdir_flag_spec_ld_GCJ= 17866 hardcode_libdir_separator_GCJ= 17867 hardcode_direct_GCJ=no 17868 hardcode_minus_L_GCJ=no 17869 hardcode_shlibpath_var_GCJ=unsupported 17870 link_all_deplibs_GCJ=unknown 17871 hardcode_automatic_GCJ=no 17872 module_cmds_GCJ= 17873 module_expsym_cmds_GCJ= 17874 always_export_symbols_GCJ=no 17875 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17876 # include_expsyms should be a list of space-separated symbols to be *always* 17877 # included in the symbol list 17878 include_expsyms_GCJ= 17879 # exclude_expsyms can be an extended regexp of symbols to exclude 17880 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17881 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17882 # as well as any symbol that contains `d'. 17883 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17884 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17885 # platforms (ab)use it in PIC code, but their linkers get confused if 17886 # the symbol is explicitly referenced. Since portable code cannot 17887 # rely on this symbol name, it's probably fine to never include it in 17888 # preloaded symbol tables. 17889 # Exclude shared library initialization/finalization symbols. 17890 extract_expsyms_cmds= 17891 # Just being paranoid about ensuring that cc_basename is set. 17892 for cc_temp in $compiler""; do 17893 case $cc_temp in 17894 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17895 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17896 \-*) ;; 17897 *) break;; 17898 esac 17899done 17900cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17901 17902 case $host_os in 17903 cygwin* | mingw* | pw32*) 17904 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17905 # When not using gcc, we currently assume that we are using 17906 # Microsoft Visual C++. 17907 if test "$GCC" != yes; then 17908 with_gnu_ld=no 17909 fi 17910 ;; 17911 interix*) 17912 # we just hope/assume this is gcc and not c89 (= MSVC++) 17913 with_gnu_ld=yes 17914 ;; 17915 openbsd*) 17916 with_gnu_ld=no 17917 ;; 17918 esac 17919 17920 ld_shlibs_GCJ=yes 17921 if test "$with_gnu_ld" = yes; then 17922 # If archive_cmds runs LD, not CC, wlarc should be empty 17923 wlarc='${wl}' 17924 17925 # Set some defaults for GNU ld with shared library support. These 17926 # are reset later if shared libraries are not supported. Putting them 17927 # here allows them to be overridden if necessary. 17928 runpath_var=LD_RUN_PATH 17929 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17930 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17931 # ancient GNU ld didn't support --whole-archive et. al. 17932 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17933 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17934 else 17935 whole_archive_flag_spec_GCJ= 17936 fi 17937 supports_anon_versioning=no 17938 case `$LD -v 2>/dev/null` in 17939 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17940 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17941 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17942 *\ 2.11.*) ;; # other 2.11 versions 17943 *) supports_anon_versioning=yes ;; 17944 esac 17945 17946 # See if GNU ld supports shared libraries. 17947 case $host_os in 17948 aix[3-9]*) 17949 # On AIX/PPC, the GNU linker is very broken 17950 if test "$host_cpu" != ia64; then 17951 ld_shlibs_GCJ=no 17952 cat <<EOF 1>&2 17953 17954*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17955*** to be unable to reliably create shared libraries on AIX. 17956*** Therefore, libtool is disabling shared libraries support. If you 17957*** really care for shared libraries, you may want to modify your PATH 17958*** so that a non-GNU linker is found, and then restart. 17959 17960EOF 17961 fi 17962 ;; 17963 17964 amigaos*) 17965 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)' 17966 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17967 hardcode_minus_L_GCJ=yes 17968 17969 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17970 # that the semantics of dynamic libraries on AmigaOS, at least up 17971 # to version 4, is to share data among multiple programs linked 17972 # with the same dynamic library. Since this doesn't match the 17973 # behavior of shared libraries on other platforms, we can't use 17974 # them. 17975 ld_shlibs_GCJ=no 17976 ;; 17977 17978 beos*) 17979 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17980 allow_undefined_flag_GCJ=unsupported 17981 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17982 # support --undefined. This deserves some investigation. FIXME 17983 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17984 else 17985 ld_shlibs_GCJ=no 17986 fi 17987 ;; 17988 17989 cygwin* | mingw* | pw32*) 17990 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17991 # as there is no search path for DLLs. 17992 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17993 allow_undefined_flag_GCJ=unsupported 17994 always_export_symbols_GCJ=no 17995 enable_shared_with_static_runtimes_GCJ=yes 17996 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17997 17998 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17999 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18000 # If the export-symbols file already is a .def file (1st line 18001 # is EXPORTS), use it as is; otherwise, prepend... 18002 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 18003 cp $export_symbols $output_objdir/$soname.def; 18004 else 18005 echo EXPORTS > $output_objdir/$soname.def; 18006 cat $export_symbols >> $output_objdir/$soname.def; 18007 fi~ 18008 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18009 else 18010 ld_shlibs_GCJ=no 18011 fi 18012 ;; 18013 18014 interix[3-9]*) 18015 hardcode_direct_GCJ=no 18016 hardcode_shlibpath_var_GCJ=no 18017 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18018 export_dynamic_flag_spec_GCJ='${wl}-E' 18019 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 18020 # Instead, shared libraries are loaded at an image base (0x10000000 by 18021 # default) and relocated if they conflict, which is a slow very memory 18022 # consuming and fragmenting process. To avoid this, we pick a random, 18023 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 18024 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 18025 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' 18026 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' 18027 ;; 18028 18029 gnu* | linux* | k*bsd*-gnu) 18030 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18031 tmp_addflag= 18032 case $cc_basename,$host_cpu in 18033 pgcc*) # Portland Group C compiler 18034 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' 18035 tmp_addflag=' $pic_flag' 18036 ;; 18037 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 18038 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' 18039 tmp_addflag=' $pic_flag -Mnomain' ;; 18040 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 18041 tmp_addflag=' -i_dynamic' ;; 18042 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 18043 tmp_addflag=' -i_dynamic -nofor_main' ;; 18044 ifc* | ifort*) # Intel Fortran compiler 18045 tmp_addflag=' -nofor_main' ;; 18046 esac 18047 case `$CC -V 2>&1 | sed 5q` in 18048 *Sun\ C*) # Sun C 5.9 18049 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' 18050 tmp_sharedflag='-G' ;; 18051 *Sun\ F*) # Sun Fortran 8.3 18052 tmp_sharedflag='-G' ;; 18053 *) 18054 tmp_sharedflag='-shared' ;; 18055 esac 18056 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18057 18058 if test $supports_anon_versioning = yes; then 18059 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 18060 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18061 $echo "local: *; };" >> $output_objdir/$libname.ver~ 18062 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 18063 fi 18064 else 18065 ld_shlibs_GCJ=no 18066 fi 18067 ;; 18068 18069 netbsd*) 18070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18071 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 18072 wlarc= 18073 else 18074 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18075 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18076 fi 18077 ;; 18078 18079 solaris*) 18080 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 18081 ld_shlibs_GCJ=no 18082 cat <<EOF 1>&2 18083 18084*** Warning: The releases 2.8.* of the GNU linker cannot reliably 18085*** create shared libraries on Solaris systems. Therefore, libtool 18086*** is disabling shared libraries support. We urge you to upgrade GNU 18087*** binutils to release 2.9.1 or newer. Another option is to modify 18088*** your PATH or compiler configuration so that the native linker is 18089*** used, and then restart. 18090 18091EOF 18092 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18093 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18094 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18095 else 18096 ld_shlibs_GCJ=no 18097 fi 18098 ;; 18099 18100 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 18101 case `$LD -v 2>&1` in 18102 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 18103 ld_shlibs_GCJ=no 18104 cat <<_LT_EOF 1>&2 18105 18106*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 18107*** reliably create shared libraries on SCO systems. Therefore, libtool 18108*** is disabling shared libraries support. We urge you to upgrade GNU 18109*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 18110*** your PATH or compiler configuration so that the native linker is 18111*** used, and then restart. 18112 18113_LT_EOF 18114 ;; 18115 *) 18116 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18117 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 18118 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 18119 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 18120 else 18121 ld_shlibs_GCJ=no 18122 fi 18123 ;; 18124 esac 18125 ;; 18126 18127 sunos4*) 18128 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18129 wlarc= 18130 hardcode_direct_GCJ=yes 18131 hardcode_shlibpath_var_GCJ=no 18132 ;; 18133 18134 *) 18135 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18136 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18137 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18138 else 18139 ld_shlibs_GCJ=no 18140 fi 18141 ;; 18142 esac 18143 18144 if test "$ld_shlibs_GCJ" = no; then 18145 runpath_var= 18146 hardcode_libdir_flag_spec_GCJ= 18147 export_dynamic_flag_spec_GCJ= 18148 whole_archive_flag_spec_GCJ= 18149 fi 18150 else 18151 # PORTME fill in a description of your system's linker (not GNU ld) 18152 case $host_os in 18153 aix3*) 18154 allow_undefined_flag_GCJ=unsupported 18155 always_export_symbols_GCJ=yes 18156 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' 18157 # Note: this linker hardcodes the directories in LIBPATH if there 18158 # are no directories specified by -L. 18159 hardcode_minus_L_GCJ=yes 18160 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 18161 # Neither direct hardcoding nor static linking is supported with a 18162 # broken collect2. 18163 hardcode_direct_GCJ=unsupported 18164 fi 18165 ;; 18166 18167 aix[4-9]*) 18168 if test "$host_cpu" = ia64; then 18169 # On IA64, the linker does run time linking by default, so we don't 18170 # have to do anything special. 18171 aix_use_runtimelinking=no 18172 exp_sym_flag='-Bexport' 18173 no_entry_flag="" 18174 else 18175 # If we're using GNU nm, then we don't want the "-C" option. 18176 # -C means demangle to AIX nm, but means don't demangle with GNU nm 18177 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 18178 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' 18179 else 18180 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' 18181 fi 18182 aix_use_runtimelinking=no 18183 18184 # Test if we are trying to use run time linking or normal 18185 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 18186 # need to do runtime linking. 18187 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 18188 for ld_flag in $LDFLAGS; do 18189 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 18190 aix_use_runtimelinking=yes 18191 break 18192 fi 18193 done 18194 ;; 18195 esac 18196 18197 exp_sym_flag='-bexport' 18198 no_entry_flag='-bnoentry' 18199 fi 18200 18201 # When large executables or shared objects are built, AIX ld can 18202 # have problems creating the table of contents. If linking a library 18203 # or program results in "error TOC overflow" add -mminimal-toc to 18204 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 18205 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 18206 18207 archive_cmds_GCJ='' 18208 hardcode_direct_GCJ=yes 18209 hardcode_libdir_separator_GCJ=':' 18210 link_all_deplibs_GCJ=yes 18211 18212 if test "$GCC" = yes; then 18213 case $host_os in aix4.[012]|aix4.[012].*) 18214 # We only want to do this on AIX 4.2 and lower, the check 18215 # below for broken collect2 doesn't work under 4.3+ 18216 collect2name=`${CC} -print-prog-name=collect2` 18217 if test -f "$collect2name" && \ 18218 strings "$collect2name" | grep resolve_lib_name >/dev/null 18219 then 18220 # We have reworked collect2 18221 : 18222 else 18223 # We have old collect2 18224 hardcode_direct_GCJ=unsupported 18225 # It fails to find uninstalled libraries when the uninstalled 18226 # path is not listed in the libpath. Setting hardcode_minus_L 18227 # to unsupported forces relinking 18228 hardcode_minus_L_GCJ=yes 18229 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18230 hardcode_libdir_separator_GCJ= 18231 fi 18232 ;; 18233 esac 18234 shared_flag='-shared' 18235 if test "$aix_use_runtimelinking" = yes; then 18236 shared_flag="$shared_flag "'${wl}-G' 18237 fi 18238 else 18239 # not using gcc 18240 if test "$host_cpu" = ia64; then 18241 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 18242 # chokes on -Wl,-G. The following line is correct: 18243 shared_flag='-G' 18244 else 18245 if test "$aix_use_runtimelinking" = yes; then 18246 shared_flag='${wl}-G' 18247 else 18248 shared_flag='${wl}-bM:SRE' 18249 fi 18250 fi 18251 fi 18252 18253 # It seems that -bexpall does not export symbols beginning with 18254 # underscore (_), so it is better to generate a list of symbols to export. 18255 always_export_symbols_GCJ=yes 18256 if test "$aix_use_runtimelinking" = yes; then 18257 # Warning - without using the other runtime loading flags (-brtl), 18258 # -berok will link without error, but may produce a broken library. 18259 allow_undefined_flag_GCJ='-berok' 18260 # Determine the default libpath from the value encoded in an empty executable. 18261 cat >conftest.$ac_ext <<_ACEOF 18262/* confdefs.h. */ 18263_ACEOF 18264cat confdefs.h >>conftest.$ac_ext 18265cat >>conftest.$ac_ext <<_ACEOF 18266/* end confdefs.h. */ 18267 18268int 18269main () 18270{ 18271 18272 ; 18273 return 0; 18274} 18275_ACEOF 18276rm -f conftest.$ac_objext conftest$ac_exeext 18277if { (ac_try="$ac_link" 18278case "(($ac_try" in 18279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18280 *) ac_try_echo=$ac_try;; 18281esac 18282eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18283$as_echo "$ac_try_echo") >&5 18284 (eval "$ac_link") 2>conftest.er1 18285 ac_status=$? 18286 grep -v '^ *+' conftest.er1 >conftest.err 18287 rm -f conftest.er1 18288 cat conftest.err >&5 18289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18290 (exit $ac_status); } && { 18291 test -z "$ac_c_werror_flag" || 18292 test ! -s conftest.err 18293 } && test -s conftest$ac_exeext && { 18294 test "$cross_compiling" = yes || 18295 $as_test_x conftest$ac_exeext 18296 }; then 18297 18298lt_aix_libpath_sed=' 18299 /Import File Strings/,/^$/ { 18300 /^0/ { 18301 s/^0 *\(.*\)$/\1/ 18302 p 18303 } 18304 }' 18305aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18306# Check for a 64-bit object if we didn't find anything. 18307if test -z "$aix_libpath"; then 18308 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18309fi 18310else 18311 $as_echo "$as_me: failed program was:" >&5 18312sed 's/^/| /' conftest.$ac_ext >&5 18313 18314 18315fi 18316 18317rm -rf conftest.dSYM 18318rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18319 conftest$ac_exeext conftest.$ac_ext 18320if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18321 18322 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18323 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" 18324 else 18325 if test "$host_cpu" = ia64; then 18326 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 18327 allow_undefined_flag_GCJ="-z nodefs" 18328 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" 18329 else 18330 # Determine the default libpath from the value encoded in an empty executable. 18331 cat >conftest.$ac_ext <<_ACEOF 18332/* confdefs.h. */ 18333_ACEOF 18334cat confdefs.h >>conftest.$ac_ext 18335cat >>conftest.$ac_ext <<_ACEOF 18336/* end confdefs.h. */ 18337 18338int 18339main () 18340{ 18341 18342 ; 18343 return 0; 18344} 18345_ACEOF 18346rm -f conftest.$ac_objext conftest$ac_exeext 18347if { (ac_try="$ac_link" 18348case "(($ac_try" in 18349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18350 *) ac_try_echo=$ac_try;; 18351esac 18352eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18353$as_echo "$ac_try_echo") >&5 18354 (eval "$ac_link") 2>conftest.er1 18355 ac_status=$? 18356 grep -v '^ *+' conftest.er1 >conftest.err 18357 rm -f conftest.er1 18358 cat conftest.err >&5 18359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18360 (exit $ac_status); } && { 18361 test -z "$ac_c_werror_flag" || 18362 test ! -s conftest.err 18363 } && test -s conftest$ac_exeext && { 18364 test "$cross_compiling" = yes || 18365 $as_test_x conftest$ac_exeext 18366 }; then 18367 18368lt_aix_libpath_sed=' 18369 /Import File Strings/,/^$/ { 18370 /^0/ { 18371 s/^0 *\(.*\)$/\1/ 18372 p 18373 } 18374 }' 18375aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18376# Check for a 64-bit object if we didn't find anything. 18377if test -z "$aix_libpath"; then 18378 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18379fi 18380else 18381 $as_echo "$as_me: failed program was:" >&5 18382sed 's/^/| /' conftest.$ac_ext >&5 18383 18384 18385fi 18386 18387rm -rf conftest.dSYM 18388rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18389 conftest$ac_exeext conftest.$ac_ext 18390if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18391 18392 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18393 # Warning - without using the other run time loading flags, 18394 # -berok will link without error, but may produce a broken library. 18395 no_undefined_flag_GCJ=' ${wl}-bernotok' 18396 allow_undefined_flag_GCJ=' ${wl}-berok' 18397 # Exported symbols can be pulled into shared objects from archives 18398 whole_archive_flag_spec_GCJ='$convenience' 18399 archive_cmds_need_lc_GCJ=yes 18400 # This is similar to how AIX traditionally builds its shared libraries. 18401 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' 18402 fi 18403 fi 18404 ;; 18405 18406 amigaos*) 18407 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)' 18408 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18409 hardcode_minus_L_GCJ=yes 18410 # see comment about different semantics on the GNU ld section 18411 ld_shlibs_GCJ=no 18412 ;; 18413 18414 bsdi[45]*) 18415 export_dynamic_flag_spec_GCJ=-rdynamic 18416 ;; 18417 18418 cygwin* | mingw* | pw32*) 18419 # When not using gcc, we currently assume that we are using 18420 # Microsoft Visual C++. 18421 # hardcode_libdir_flag_spec is actually meaningless, as there is 18422 # no search path for DLLs. 18423 hardcode_libdir_flag_spec_GCJ=' ' 18424 allow_undefined_flag_GCJ=unsupported 18425 # Tell ltmain to make .lib files, not .a files. 18426 libext=lib 18427 # Tell ltmain to make .dll files, not .so files. 18428 shrext_cmds=".dll" 18429 # FIXME: Setting linknames here is a bad hack. 18430 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 18431 # The linker will automatically build a .lib file if we build a DLL. 18432 old_archive_From_new_cmds_GCJ='true' 18433 # FIXME: Should let the user specify the lib program. 18434 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 18435 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 18436 enable_shared_with_static_runtimes_GCJ=yes 18437 ;; 18438 18439 darwin* | rhapsody*) 18440 case $host_os in 18441 rhapsody* | darwin1.[012]) 18442 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 18443 ;; 18444 *) # Darwin 1.3 on 18445 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18446 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18447 else 18448 case ${MACOSX_DEPLOYMENT_TARGET} in 18449 10.[012]) 18450 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18451 ;; 18452 10.*) 18453 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 18454 ;; 18455 esac 18456 fi 18457 ;; 18458 esac 18459 archive_cmds_need_lc_GCJ=no 18460 hardcode_direct_GCJ=no 18461 hardcode_automatic_GCJ=yes 18462 hardcode_shlibpath_var_GCJ=unsupported 18463 whole_archive_flag_spec_GCJ='' 18464 link_all_deplibs_GCJ=yes 18465 if test "$GCC" = yes ; then 18466 output_verbose_link_cmd='echo' 18467 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}" 18468 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 18469 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}" 18470 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}" 18471 else 18472 case $cc_basename in 18473 xlc*) 18474 output_verbose_link_cmd='echo' 18475 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 18476 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18477 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18478 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}' 18479 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}' 18480 ;; 18481 *) 18482 ld_shlibs_GCJ=no 18483 ;; 18484 esac 18485 fi 18486 ;; 18487 18488 dgux*) 18489 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18490 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18491 hardcode_shlibpath_var_GCJ=no 18492 ;; 18493 18494 freebsd1*) 18495 ld_shlibs_GCJ=no 18496 ;; 18497 18498 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18499 # support. Future versions do this automatically, but an explicit c++rt0.o 18500 # does not break anything, and helps significantly (at the cost of a little 18501 # extra space). 18502 freebsd2.2*) 18503 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18504 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18505 hardcode_direct_GCJ=yes 18506 hardcode_shlibpath_var_GCJ=no 18507 ;; 18508 18509 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18510 freebsd2*) 18511 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18512 hardcode_direct_GCJ=yes 18513 hardcode_minus_L_GCJ=yes 18514 hardcode_shlibpath_var_GCJ=no 18515 ;; 18516 18517 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18518 freebsd* | dragonfly*) 18519 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18520 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18521 hardcode_direct_GCJ=yes 18522 hardcode_shlibpath_var_GCJ=no 18523 ;; 18524 18525 hpux9*) 18526 if test "$GCC" = yes; then 18527 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' 18528 else 18529 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' 18530 fi 18531 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18532 hardcode_libdir_separator_GCJ=: 18533 hardcode_direct_GCJ=yes 18534 18535 # hardcode_minus_L: Not really in the search PATH, 18536 # but as the default location of the library. 18537 hardcode_minus_L_GCJ=yes 18538 export_dynamic_flag_spec_GCJ='${wl}-E' 18539 ;; 18540 18541 hpux10*) 18542 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18543 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18544 else 18545 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18546 fi 18547 if test "$with_gnu_ld" = no; then 18548 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18549 hardcode_libdir_separator_GCJ=: 18550 18551 hardcode_direct_GCJ=yes 18552 export_dynamic_flag_spec_GCJ='${wl}-E' 18553 18554 # hardcode_minus_L: Not really in the search PATH, 18555 # but as the default location of the library. 18556 hardcode_minus_L_GCJ=yes 18557 fi 18558 ;; 18559 18560 hpux11*) 18561 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18562 case $host_cpu in 18563 hppa*64*) 18564 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18565 ;; 18566 ia64*) 18567 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18568 ;; 18569 *) 18570 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18571 ;; 18572 esac 18573 else 18574 case $host_cpu in 18575 hppa*64*) 18576 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18577 ;; 18578 ia64*) 18579 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18580 ;; 18581 *) 18582 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18583 ;; 18584 esac 18585 fi 18586 if test "$with_gnu_ld" = no; then 18587 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18588 hardcode_libdir_separator_GCJ=: 18589 18590 case $host_cpu in 18591 hppa*64*|ia64*) 18592 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18593 hardcode_direct_GCJ=no 18594 hardcode_shlibpath_var_GCJ=no 18595 ;; 18596 *) 18597 hardcode_direct_GCJ=yes 18598 export_dynamic_flag_spec_GCJ='${wl}-E' 18599 18600 # hardcode_minus_L: Not really in the search PATH, 18601 # but as the default location of the library. 18602 hardcode_minus_L_GCJ=yes 18603 ;; 18604 esac 18605 fi 18606 ;; 18607 18608 irix5* | irix6* | nonstopux*) 18609 if test "$GCC" = yes; then 18610 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' 18611 else 18612 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' 18613 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18614 fi 18615 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18616 hardcode_libdir_separator_GCJ=: 18617 link_all_deplibs_GCJ=yes 18618 ;; 18619 18620 netbsd*) 18621 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18622 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18623 else 18624 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18625 fi 18626 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18627 hardcode_direct_GCJ=yes 18628 hardcode_shlibpath_var_GCJ=no 18629 ;; 18630 18631 newsos6) 18632 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18633 hardcode_direct_GCJ=yes 18634 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18635 hardcode_libdir_separator_GCJ=: 18636 hardcode_shlibpath_var_GCJ=no 18637 ;; 18638 18639 openbsd*) 18640 if test -f /usr/libexec/ld.so; then 18641 hardcode_direct_GCJ=yes 18642 hardcode_shlibpath_var_GCJ=no 18643 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18644 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18645 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18646 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18647 export_dynamic_flag_spec_GCJ='${wl}-E' 18648 else 18649 case $host_os in 18650 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18651 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18652 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18653 ;; 18654 *) 18655 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18656 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18657 ;; 18658 esac 18659 fi 18660 else 18661 ld_shlibs_GCJ=no 18662 fi 18663 ;; 18664 18665 os2*) 18666 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18667 hardcode_minus_L_GCJ=yes 18668 allow_undefined_flag_GCJ=unsupported 18669 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' 18670 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18671 ;; 18672 18673 osf3*) 18674 if test "$GCC" = yes; then 18675 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18676 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' 18677 else 18678 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18679 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' 18680 fi 18681 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18682 hardcode_libdir_separator_GCJ=: 18683 ;; 18684 18685 osf4* | osf5*) # as osf3* with the addition of -msym flag 18686 if test "$GCC" = yes; then 18687 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18688 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' 18689 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18690 else 18691 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18692 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' 18693 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~ 18694 $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' 18695 18696 # Both c and cxx compiler support -rpath directly 18697 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18698 fi 18699 hardcode_libdir_separator_GCJ=: 18700 ;; 18701 18702 solaris*) 18703 no_undefined_flag_GCJ=' -z text' 18704 if test "$GCC" = yes; then 18705 wlarc='${wl}' 18706 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18707 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18708 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18709 else 18710 wlarc='' 18711 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18712 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18713 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18714 fi 18715 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18716 hardcode_shlibpath_var_GCJ=no 18717 case $host_os in 18718 solaris2.[0-5] | solaris2.[0-5].*) ;; 18719 *) 18720 # The compiler driver will combine and reorder linker options, 18721 # but understands `-z linker_flag'. GCC discards it without `$wl', 18722 # but is careful enough not to reorder. 18723 # Supported since Solaris 2.6 (maybe 2.5.1?) 18724 if test "$GCC" = yes; then 18725 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18726 else 18727 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18728 fi 18729 ;; 18730 esac 18731 link_all_deplibs_GCJ=yes 18732 ;; 18733 18734 sunos4*) 18735 if test "x$host_vendor" = xsequent; then 18736 # Use $CC to link under sequent, because it throws in some extra .o 18737 # files that make .init and .fini sections work. 18738 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18739 else 18740 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18741 fi 18742 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18743 hardcode_direct_GCJ=yes 18744 hardcode_minus_L_GCJ=yes 18745 hardcode_shlibpath_var_GCJ=no 18746 ;; 18747 18748 sysv4) 18749 case $host_vendor in 18750 sni) 18751 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18752 hardcode_direct_GCJ=yes # is this really true??? 18753 ;; 18754 siemens) 18755 ## LD is ld it makes a PLAMLIB 18756 ## CC just makes a GrossModule. 18757 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18758 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18759 hardcode_direct_GCJ=no 18760 ;; 18761 motorola) 18762 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18763 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18764 ;; 18765 esac 18766 runpath_var='LD_RUN_PATH' 18767 hardcode_shlibpath_var_GCJ=no 18768 ;; 18769 18770 sysv4.3*) 18771 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18772 hardcode_shlibpath_var_GCJ=no 18773 export_dynamic_flag_spec_GCJ='-Bexport' 18774 ;; 18775 18776 sysv4*MP*) 18777 if test -d /usr/nec; then 18778 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18779 hardcode_shlibpath_var_GCJ=no 18780 runpath_var=LD_RUN_PATH 18781 hardcode_runpath_var=yes 18782 ld_shlibs_GCJ=yes 18783 fi 18784 ;; 18785 18786 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18787 no_undefined_flag_GCJ='${wl}-z,text' 18788 archive_cmds_need_lc_GCJ=no 18789 hardcode_shlibpath_var_GCJ=no 18790 runpath_var='LD_RUN_PATH' 18791 18792 if test "$GCC" = yes; then 18793 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18794 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18795 else 18796 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18797 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18798 fi 18799 ;; 18800 18801 sysv5* | sco3.2v5* | sco5v6*) 18802 # Note: We can NOT use -z defs as we might desire, because we do not 18803 # link with -lc, and that would cause any symbols used from libc to 18804 # always be unresolved, which means just about no library would 18805 # ever link correctly. If we're not using GNU ld we use -z text 18806 # though, which does catch some bad symbols but isn't as heavy-handed 18807 # as -z defs. 18808 no_undefined_flag_GCJ='${wl}-z,text' 18809 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18810 archive_cmds_need_lc_GCJ=no 18811 hardcode_shlibpath_var_GCJ=no 18812 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18813 hardcode_libdir_separator_GCJ=':' 18814 link_all_deplibs_GCJ=yes 18815 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18816 runpath_var='LD_RUN_PATH' 18817 18818 if test "$GCC" = yes; then 18819 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18820 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18821 else 18822 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18823 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18824 fi 18825 ;; 18826 18827 uts4*) 18828 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18829 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18830 hardcode_shlibpath_var_GCJ=no 18831 ;; 18832 18833 *) 18834 ld_shlibs_GCJ=no 18835 ;; 18836 esac 18837 fi 18838 18839{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18840$as_echo "$ld_shlibs_GCJ" >&6; } 18841test "$ld_shlibs_GCJ" = no && can_build_shared=no 18842 18843# 18844# Do we need to explicitly link libc? 18845# 18846case "x$archive_cmds_need_lc_GCJ" in 18847x|xyes) 18848 # Assume -lc should be added 18849 archive_cmds_need_lc_GCJ=yes 18850 18851 if test "$enable_shared" = yes && test "$GCC" = yes; then 18852 case $archive_cmds_GCJ in 18853 *'~'*) 18854 # FIXME: we may have to deal with multi-command sequences. 18855 ;; 18856 '$CC '*) 18857 # Test whether the compiler implicitly links with -lc since on some 18858 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18859 # to ld, don't add -lc before -lgcc. 18860 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18861$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18862 $rm conftest* 18863 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18864 18865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18866 (eval $ac_compile) 2>&5 18867 ac_status=$? 18868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18869 (exit $ac_status); } 2>conftest.err; then 18870 soname=conftest 18871 lib=conftest 18872 libobjs=conftest.$ac_objext 18873 deplibs= 18874 wl=$lt_prog_compiler_wl_GCJ 18875 pic_flag=$lt_prog_compiler_pic_GCJ 18876 compiler_flags=-v 18877 linker_flags=-v 18878 verstring= 18879 output_objdir=. 18880 libname=conftest 18881 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18882 allow_undefined_flag_GCJ= 18883 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18884 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18885 ac_status=$? 18886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18887 (exit $ac_status); } 18888 then 18889 archive_cmds_need_lc_GCJ=no 18890 else 18891 archive_cmds_need_lc_GCJ=yes 18892 fi 18893 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18894 else 18895 cat conftest.err 1>&5 18896 fi 18897 $rm conftest* 18898 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18899$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 18900 ;; 18901 esac 18902 fi 18903 ;; 18904esac 18905 18906{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18907$as_echo_n "checking dynamic linker characteristics... " >&6; } 18908library_names_spec= 18909libname_spec='lib$name' 18910soname_spec= 18911shrext_cmds=".so" 18912postinstall_cmds= 18913postuninstall_cmds= 18914finish_cmds= 18915finish_eval= 18916shlibpath_var= 18917shlibpath_overrides_runpath=unknown 18918version_type=none 18919dynamic_linker="$host_os ld.so" 18920sys_lib_dlsearch_path_spec="/lib /usr/lib" 18921 18922need_lib_prefix=unknown 18923hardcode_into_libs=no 18924 18925# when you set need_version to no, make sure it does not cause -set_version 18926# flags to be left without arguments 18927need_version=unknown 18928 18929case $host_os in 18930aix3*) 18931 version_type=linux 18932 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18933 shlibpath_var=LIBPATH 18934 18935 # AIX 3 has no versioning support, so we append a major version to the name. 18936 soname_spec='${libname}${release}${shared_ext}$major' 18937 ;; 18938 18939aix[4-9]*) 18940 version_type=linux 18941 need_lib_prefix=no 18942 need_version=no 18943 hardcode_into_libs=yes 18944 if test "$host_cpu" = ia64; then 18945 # AIX 5 supports IA64 18946 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18947 shlibpath_var=LD_LIBRARY_PATH 18948 else 18949 # With GCC up to 2.95.x, collect2 would create an import file 18950 # for dependence libraries. The import file would start with 18951 # the line `#! .'. This would cause the generated library to 18952 # depend on `.', always an invalid library. This was fixed in 18953 # development snapshots of GCC prior to 3.0. 18954 case $host_os in 18955 aix4 | aix4.[01] | aix4.[01].*) 18956 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18957 echo ' yes ' 18958 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18959 : 18960 else 18961 can_build_shared=no 18962 fi 18963 ;; 18964 esac 18965 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18966 # soname into executable. Probably we can add versioning support to 18967 # collect2, so additional links can be useful in future. 18968 if test "$aix_use_runtimelinking" = yes; then 18969 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18970 # instead of lib<name>.a to let people know that these are not 18971 # typical AIX shared libraries. 18972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18973 else 18974 # We preserve .a as extension for shared libraries through AIX4.2 18975 # and later when we are not doing run time linking. 18976 library_names_spec='${libname}${release}.a $libname.a' 18977 soname_spec='${libname}${release}${shared_ext}$major' 18978 fi 18979 shlibpath_var=LIBPATH 18980 fi 18981 ;; 18982 18983amigaos*) 18984 library_names_spec='$libname.ixlibrary $libname.a' 18985 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18986 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' 18987 ;; 18988 18989beos*) 18990 library_names_spec='${libname}${shared_ext}' 18991 dynamic_linker="$host_os ld.so" 18992 shlibpath_var=LIBRARY_PATH 18993 ;; 18994 18995bsdi[45]*) 18996 version_type=linux 18997 need_version=no 18998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18999 soname_spec='${libname}${release}${shared_ext}$major' 19000 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 19001 shlibpath_var=LD_LIBRARY_PATH 19002 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 19003 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 19004 # the default ld.so.conf also contains /usr/contrib/lib and 19005 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 19006 # libtool to hard-code these into programs 19007 ;; 19008 19009cygwin* | mingw* | pw32*) 19010 version_type=windows 19011 shrext_cmds=".dll" 19012 need_version=no 19013 need_lib_prefix=no 19014 19015 case $GCC,$host_os in 19016 yes,cygwin* | yes,mingw* | yes,pw32*) 19017 library_names_spec='$libname.dll.a' 19018 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19019 postinstall_cmds='base_file=`basename \${file}`~ 19020 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 19021 dldir=$destdir/`dirname \$dlpath`~ 19022 test -d \$dldir || mkdir -p \$dldir~ 19023 $install_prog $dir/$dlname \$dldir/$dlname~ 19024 chmod a+x \$dldir/$dlname' 19025 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19026 dlpath=$dir/\$dldll~ 19027 $rm \$dlpath' 19028 shlibpath_overrides_runpath=yes 19029 19030 case $host_os in 19031 cygwin*) 19032 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 19033 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19034 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 19035 ;; 19036 mingw*) 19037 # MinGW DLLs use traditional 'lib' prefix 19038 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19039 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 19040 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 19041 # It is most probably a Windows format PATH printed by 19042 # mingw gcc, but we are running on Cygwin. Gcc prints its search 19043 # path with ; separators, and with drive letters. We can handle the 19044 # drive letters (cygwin fileutils understands them), so leave them, 19045 # especially as we might pass files found there to a mingw objdump, 19046 # which wouldn't understand a cygwinified path. Ahh. 19047 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19048 else 19049 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19050 fi 19051 ;; 19052 pw32*) 19053 # pw32 DLLs use 'pw' prefix rather than 'lib' 19054 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19055 ;; 19056 esac 19057 ;; 19058 19059 *) 19060 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 19061 ;; 19062 esac 19063 dynamic_linker='Win32 ld.exe' 19064 # FIXME: first we should search . and the directory the executable is in 19065 shlibpath_var=PATH 19066 ;; 19067 19068darwin* | rhapsody*) 19069 dynamic_linker="$host_os dyld" 19070 version_type=darwin 19071 need_lib_prefix=no 19072 need_version=no 19073 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 19074 soname_spec='${libname}${release}${major}$shared_ext' 19075 shlibpath_overrides_runpath=yes 19076 shlibpath_var=DYLD_LIBRARY_PATH 19077 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 19078 19079 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 19080 ;; 19081 19082dgux*) 19083 version_type=linux 19084 need_lib_prefix=no 19085 need_version=no 19086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 19087 soname_spec='${libname}${release}${shared_ext}$major' 19088 shlibpath_var=LD_LIBRARY_PATH 19089 ;; 19090 19091freebsd1*) 19092 dynamic_linker=no 19093 ;; 19094 19095freebsd* | dragonfly*) 19096 # DragonFly does not have aout. When/if they implement a new 19097 # versioning mechanism, adjust this. 19098 if test -x /usr/bin/objformat; then 19099 objformat=`/usr/bin/objformat` 19100 else 19101 case $host_os in 19102 freebsd[123]*) objformat=aout ;; 19103 *) objformat=elf ;; 19104 esac 19105 fi 19106 version_type=freebsd-$objformat 19107 case $version_type in 19108 freebsd-elf*) 19109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19110 need_version=no 19111 need_lib_prefix=no 19112 ;; 19113 freebsd-*) 19114 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 19115 need_version=yes 19116 ;; 19117 esac 19118 shlibpath_var=LD_LIBRARY_PATH 19119 case $host_os in 19120 freebsd2*) 19121 shlibpath_overrides_runpath=yes 19122 ;; 19123 freebsd3.[01]* | freebsdelf3.[01]*) 19124 shlibpath_overrides_runpath=yes 19125 hardcode_into_libs=yes 19126 ;; 19127 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 19128 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 19129 shlibpath_overrides_runpath=no 19130 hardcode_into_libs=yes 19131 ;; 19132 *) # from 4.6 on, and DragonFly 19133 shlibpath_overrides_runpath=yes 19134 hardcode_into_libs=yes 19135 ;; 19136 esac 19137 ;; 19138 19139gnu*) 19140 version_type=linux 19141 need_lib_prefix=no 19142 need_version=no 19143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 19144 soname_spec='${libname}${release}${shared_ext}$major' 19145 shlibpath_var=LD_LIBRARY_PATH 19146 hardcode_into_libs=yes 19147 ;; 19148 19149hpux9* | hpux10* | hpux11*) 19150 # Give a soname corresponding to the major version so that dld.sl refuses to 19151 # link against other versions. 19152 version_type=sunos 19153 need_lib_prefix=no 19154 need_version=no 19155 case $host_cpu in 19156 ia64*) 19157 shrext_cmds='.so' 19158 hardcode_into_libs=yes 19159 dynamic_linker="$host_os dld.so" 19160 shlibpath_var=LD_LIBRARY_PATH 19161 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19163 soname_spec='${libname}${release}${shared_ext}$major' 19164 if test "X$HPUX_IA64_MODE" = X32; then 19165 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 19166 else 19167 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 19168 fi 19169 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19170 ;; 19171 hppa*64*) 19172 shrext_cmds='.sl' 19173 hardcode_into_libs=yes 19174 dynamic_linker="$host_os dld.sl" 19175 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 19176 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19178 soname_spec='${libname}${release}${shared_ext}$major' 19179 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 19180 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19181 ;; 19182 *) 19183 shrext_cmds='.sl' 19184 dynamic_linker="$host_os dld.sl" 19185 shlibpath_var=SHLIB_PATH 19186 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 19187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19188 soname_spec='${libname}${release}${shared_ext}$major' 19189 ;; 19190 esac 19191 # HP-UX runs *really* slowly unless shared libraries are mode 555. 19192 postinstall_cmds='chmod 555 $lib' 19193 ;; 19194 19195interix[3-9]*) 19196 version_type=linux 19197 need_lib_prefix=no 19198 need_version=no 19199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19200 soname_spec='${libname}${release}${shared_ext}$major' 19201 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 19202 shlibpath_var=LD_LIBRARY_PATH 19203 shlibpath_overrides_runpath=no 19204 hardcode_into_libs=yes 19205 ;; 19206 19207irix5* | irix6* | nonstopux*) 19208 case $host_os in 19209 nonstopux*) version_type=nonstopux ;; 19210 *) 19211 if test "$lt_cv_prog_gnu_ld" = yes; then 19212 version_type=linux 19213 else 19214 version_type=irix 19215 fi ;; 19216 esac 19217 need_lib_prefix=no 19218 need_version=no 19219 soname_spec='${libname}${release}${shared_ext}$major' 19220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 19221 case $host_os in 19222 irix5* | nonstopux*) 19223 libsuff= shlibsuff= 19224 ;; 19225 *) 19226 case $LD in # libtool.m4 will add one of these switches to LD 19227 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 19228 libsuff= shlibsuff= libmagic=32-bit;; 19229 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 19230 libsuff=32 shlibsuff=N32 libmagic=N32;; 19231 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 19232 libsuff=64 shlibsuff=64 libmagic=64-bit;; 19233 *) libsuff= shlibsuff= libmagic=never-match;; 19234 esac 19235 ;; 19236 esac 19237 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 19238 shlibpath_overrides_runpath=no 19239 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 19240 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 19241 hardcode_into_libs=yes 19242 ;; 19243 19244# No shared lib support for Linux oldld, aout, or coff. 19245linux*oldld* | linux*aout* | linux*coff*) 19246 dynamic_linker=no 19247 ;; 19248 19249# This must be Linux ELF. 19250linux* | k*bsd*-gnu) 19251 version_type=linux 19252 need_lib_prefix=no 19253 need_version=no 19254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19255 soname_spec='${libname}${release}${shared_ext}$major' 19256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 19257 shlibpath_var=LD_LIBRARY_PATH 19258 shlibpath_overrides_runpath=no 19259 # This implies no fast_install, which is unacceptable. 19260 # Some rework will be needed to allow for fast_install 19261 # before this can be enabled. 19262 hardcode_into_libs=yes 19263 19264 # Append ld.so.conf contents to the search path 19265 if test -f /etc/ld.so.conf; then 19266 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' ' '` 19267 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 19268 fi 19269 19270 # We used to test for /lib/ld.so.1 and disable shared libraries on 19271 # powerpc, because MkLinux only supported shared libraries with the 19272 # GNU dynamic linker. Since this was broken with cross compilers, 19273 # most powerpc-linux boxes support dynamic linking these days and 19274 # people can always --disable-shared, the test was removed, and we 19275 # assume the GNU/Linux dynamic linker is in use. 19276 dynamic_linker='GNU/Linux ld.so' 19277 ;; 19278 19279netbsd*) 19280 version_type=sunos 19281 need_lib_prefix=no 19282 need_version=no 19283 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19286 dynamic_linker='NetBSD (a.out) ld.so' 19287 else 19288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19289 soname_spec='${libname}${release}${shared_ext}$major' 19290 dynamic_linker='NetBSD ld.elf_so' 19291 fi 19292 shlibpath_var=LD_LIBRARY_PATH 19293 shlibpath_overrides_runpath=yes 19294 hardcode_into_libs=yes 19295 ;; 19296 19297newsos6) 19298 version_type=linux 19299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19300 shlibpath_var=LD_LIBRARY_PATH 19301 shlibpath_overrides_runpath=yes 19302 ;; 19303 19304nto-qnx*) 19305 version_type=linux 19306 need_lib_prefix=no 19307 need_version=no 19308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19309 soname_spec='${libname}${release}${shared_ext}$major' 19310 shlibpath_var=LD_LIBRARY_PATH 19311 shlibpath_overrides_runpath=yes 19312 ;; 19313 19314openbsd*) 19315 version_type=sunos 19316 sys_lib_dlsearch_path_spec="/usr/lib" 19317 need_lib_prefix=no 19318 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 19319 case $host_os in 19320 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 19321 *) need_version=no ;; 19322 esac 19323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19325 shlibpath_var=LD_LIBRARY_PATH 19326 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19327 case $host_os in 19328 openbsd2.[89] | openbsd2.[89].*) 19329 shlibpath_overrides_runpath=no 19330 ;; 19331 *) 19332 shlibpath_overrides_runpath=yes 19333 ;; 19334 esac 19335 else 19336 shlibpath_overrides_runpath=yes 19337 fi 19338 ;; 19339 19340os2*) 19341 libname_spec='$name' 19342 shrext_cmds=".dll" 19343 need_lib_prefix=no 19344 library_names_spec='$libname${shared_ext} $libname.a' 19345 dynamic_linker='OS/2 ld.exe' 19346 shlibpath_var=LIBPATH 19347 ;; 19348 19349osf3* | osf4* | osf5*) 19350 version_type=osf 19351 need_lib_prefix=no 19352 need_version=no 19353 soname_spec='${libname}${release}${shared_ext}$major' 19354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19355 shlibpath_var=LD_LIBRARY_PATH 19356 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19357 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 19358 ;; 19359 19360rdos*) 19361 dynamic_linker=no 19362 ;; 19363 19364solaris*) 19365 version_type=linux 19366 need_lib_prefix=no 19367 need_version=no 19368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19369 soname_spec='${libname}${release}${shared_ext}$major' 19370 shlibpath_var=LD_LIBRARY_PATH 19371 shlibpath_overrides_runpath=yes 19372 hardcode_into_libs=yes 19373 # ldd complains unless libraries are executable 19374 postinstall_cmds='chmod +x $lib' 19375 ;; 19376 19377sunos4*) 19378 version_type=sunos 19379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19380 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19381 shlibpath_var=LD_LIBRARY_PATH 19382 shlibpath_overrides_runpath=yes 19383 if test "$with_gnu_ld" = yes; then 19384 need_lib_prefix=no 19385 fi 19386 need_version=yes 19387 ;; 19388 19389sysv4 | sysv4.3*) 19390 version_type=linux 19391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19392 soname_spec='${libname}${release}${shared_ext}$major' 19393 shlibpath_var=LD_LIBRARY_PATH 19394 case $host_vendor in 19395 sni) 19396 shlibpath_overrides_runpath=no 19397 need_lib_prefix=no 19398 export_dynamic_flag_spec='${wl}-Blargedynsym' 19399 runpath_var=LD_RUN_PATH 19400 ;; 19401 siemens) 19402 need_lib_prefix=no 19403 ;; 19404 motorola) 19405 need_lib_prefix=no 19406 need_version=no 19407 shlibpath_overrides_runpath=no 19408 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19409 ;; 19410 esac 19411 ;; 19412 19413sysv4*MP*) 19414 if test -d /usr/nec ;then 19415 version_type=linux 19416 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 19417 soname_spec='$libname${shared_ext}.$major' 19418 shlibpath_var=LD_LIBRARY_PATH 19419 fi 19420 ;; 19421 19422sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19423 version_type=freebsd-elf 19424 need_lib_prefix=no 19425 need_version=no 19426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19427 soname_spec='${libname}${release}${shared_ext}$major' 19428 shlibpath_var=LD_LIBRARY_PATH 19429 hardcode_into_libs=yes 19430 if test "$with_gnu_ld" = yes; then 19431 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19432 shlibpath_overrides_runpath=no 19433 else 19434 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19435 shlibpath_overrides_runpath=yes 19436 case $host_os in 19437 sco3.2v5*) 19438 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19439 ;; 19440 esac 19441 fi 19442 sys_lib_dlsearch_path_spec='/usr/lib' 19443 ;; 19444 19445uts4*) 19446 version_type=linux 19447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19448 soname_spec='${libname}${release}${shared_ext}$major' 19449 shlibpath_var=LD_LIBRARY_PATH 19450 ;; 19451 19452*) 19453 dynamic_linker=no 19454 ;; 19455esac 19456{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 19457$as_echo "$dynamic_linker" >&6; } 19458test "$dynamic_linker" = no && can_build_shared=no 19459 19460if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 19461 $as_echo_n "(cached) " >&6 19462else 19463 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 19464fi 19465 19466sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 19467if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 19468 $as_echo_n "(cached) " >&6 19469else 19470 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 19471fi 19472 19473sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 19474 19475variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19476if test "$GCC" = yes; then 19477 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19478fi 19479 19480{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19481$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 19482hardcode_action_GCJ= 19483if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19484 test -n "$runpath_var_GCJ" || \ 19485 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 19486 19487 # We can hardcode non-existant directories. 19488 if test "$hardcode_direct_GCJ" != no && 19489 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19490 # have to relink, otherwise we might link with an installed library 19491 # when we should be linking with a yet-to-be-installed one 19492 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19493 test "$hardcode_minus_L_GCJ" != no; then 19494 # Linking always hardcodes the temporary library directory. 19495 hardcode_action_GCJ=relink 19496 else 19497 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19498 hardcode_action_GCJ=immediate 19499 fi 19500else 19501 # We cannot hardcode anything, or else we can only hardcode existing 19502 # directories. 19503 hardcode_action_GCJ=unsupported 19504fi 19505{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19506$as_echo "$hardcode_action_GCJ" >&6; } 19507 19508if test "$hardcode_action_GCJ" = relink; then 19509 # Fast installation is not supported 19510 enable_fast_install=no 19511elif test "$shlibpath_overrides_runpath" = yes || 19512 test "$enable_shared" = no; then 19513 # Fast installation is not necessary 19514 enable_fast_install=needless 19515fi 19516 19517 19518# The else clause should only fire when bootstrapping the 19519# libtool distribution, otherwise you forgot to ship ltmain.sh 19520# with your package, and you will get complaints that there are 19521# no rules to generate ltmain.sh. 19522if test -f "$ltmain"; then 19523 # See if we are running on zsh, and set the options which allow our commands through 19524 # without removal of \ escapes. 19525 if test -n "${ZSH_VERSION+set}" ; then 19526 setopt NO_GLOB_SUBST 19527 fi 19528 # Now quote all the things that may contain metacharacters while being 19529 # careful not to overquote the AC_SUBSTed values. We take copies of the 19530 # variables and quote the copies for generation of the libtool script. 19531 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19532 SED SHELL STRIP \ 19533 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19534 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19535 deplibs_check_method reload_flag reload_cmds need_locks \ 19536 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19537 lt_cv_sys_global_symbol_to_c_name_address \ 19538 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19539 old_postinstall_cmds old_postuninstall_cmds \ 19540 compiler_GCJ \ 19541 CC_GCJ \ 19542 LD_GCJ \ 19543 lt_prog_compiler_wl_GCJ \ 19544 lt_prog_compiler_pic_GCJ \ 19545 lt_prog_compiler_static_GCJ \ 19546 lt_prog_compiler_no_builtin_flag_GCJ \ 19547 export_dynamic_flag_spec_GCJ \ 19548 thread_safe_flag_spec_GCJ \ 19549 whole_archive_flag_spec_GCJ \ 19550 enable_shared_with_static_runtimes_GCJ \ 19551 old_archive_cmds_GCJ \ 19552 old_archive_from_new_cmds_GCJ \ 19553 predep_objects_GCJ \ 19554 postdep_objects_GCJ \ 19555 predeps_GCJ \ 19556 postdeps_GCJ \ 19557 compiler_lib_search_path_GCJ \ 19558 compiler_lib_search_dirs_GCJ \ 19559 archive_cmds_GCJ \ 19560 archive_expsym_cmds_GCJ \ 19561 postinstall_cmds_GCJ \ 19562 postuninstall_cmds_GCJ \ 19563 old_archive_from_expsyms_cmds_GCJ \ 19564 allow_undefined_flag_GCJ \ 19565 no_undefined_flag_GCJ \ 19566 export_symbols_cmds_GCJ \ 19567 hardcode_libdir_flag_spec_GCJ \ 19568 hardcode_libdir_flag_spec_ld_GCJ \ 19569 hardcode_libdir_separator_GCJ \ 19570 hardcode_automatic_GCJ \ 19571 module_cmds_GCJ \ 19572 module_expsym_cmds_GCJ \ 19573 lt_cv_prog_compiler_c_o_GCJ \ 19574 fix_srcfile_path_GCJ \ 19575 exclude_expsyms_GCJ \ 19576 include_expsyms_GCJ; do 19577 19578 case $var in 19579 old_archive_cmds_GCJ | \ 19580 old_archive_from_new_cmds_GCJ | \ 19581 archive_cmds_GCJ | \ 19582 archive_expsym_cmds_GCJ | \ 19583 module_cmds_GCJ | \ 19584 module_expsym_cmds_GCJ | \ 19585 old_archive_from_expsyms_cmds_GCJ | \ 19586 export_symbols_cmds_GCJ | \ 19587 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19588 postinstall_cmds | postuninstall_cmds | \ 19589 old_postinstall_cmds | old_postuninstall_cmds | \ 19590 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19591 # Double-quote double-evaled strings. 19592 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19593 ;; 19594 *) 19595 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19596 ;; 19597 esac 19598 done 19599 19600 case $lt_echo in 19601 *'\$0 --fallback-echo"') 19602 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19603 ;; 19604 esac 19605 19606cfgfile="$ofile" 19607 19608 cat <<__EOF__ >> "$cfgfile" 19609# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19610 19611# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19612 19613# Shell to use when invoking shell scripts. 19614SHELL=$lt_SHELL 19615 19616# Whether or not to build shared libraries. 19617build_libtool_libs=$enable_shared 19618 19619# Whether or not to build static libraries. 19620build_old_libs=$enable_static 19621 19622# Whether or not to add -lc for building shared libraries. 19623build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19624 19625# Whether or not to disallow shared libs when runtime libs are static 19626allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19627 19628# Whether or not to optimize for fast installation. 19629fast_install=$enable_fast_install 19630 19631# The host system. 19632host_alias=$host_alias 19633host=$host 19634host_os=$host_os 19635 19636# The build system. 19637build_alias=$build_alias 19638build=$build 19639build_os=$build_os 19640 19641# An echo program that does not interpret backslashes. 19642echo=$lt_echo 19643 19644# The archiver. 19645AR=$lt_AR 19646AR_FLAGS=$lt_AR_FLAGS 19647 19648# A C compiler. 19649LTCC=$lt_LTCC 19650 19651# LTCC compiler flags. 19652LTCFLAGS=$lt_LTCFLAGS 19653 19654# A language-specific compiler. 19655CC=$lt_compiler_GCJ 19656 19657# Is the compiler the GNU C compiler? 19658with_gcc=$GCC_GCJ 19659 19660# An ERE matcher. 19661EGREP=$lt_EGREP 19662 19663# The linker used to build libraries. 19664LD=$lt_LD_GCJ 19665 19666# Whether we need hard or soft links. 19667LN_S=$lt_LN_S 19668 19669# A BSD-compatible nm program. 19670NM=$lt_NM 19671 19672# A symbol stripping program 19673STRIP=$lt_STRIP 19674 19675# Used to examine libraries when file_magic_cmd begins "file" 19676MAGIC_CMD=$MAGIC_CMD 19677 19678# Used on cygwin: DLL creation program. 19679DLLTOOL="$DLLTOOL" 19680 19681# Used on cygwin: object dumper. 19682OBJDUMP="$OBJDUMP" 19683 19684# Used on cygwin: assembler. 19685AS="$AS" 19686 19687# The name of the directory that contains temporary libtool files. 19688objdir=$objdir 19689 19690# How to create reloadable object files. 19691reload_flag=$lt_reload_flag 19692reload_cmds=$lt_reload_cmds 19693 19694# How to pass a linker flag through the compiler. 19695wl=$lt_lt_prog_compiler_wl_GCJ 19696 19697# Object file suffix (normally "o"). 19698objext="$ac_objext" 19699 19700# Old archive suffix (normally "a"). 19701libext="$libext" 19702 19703# Shared library suffix (normally ".so"). 19704shrext_cmds='$shrext_cmds' 19705 19706# Executable file suffix (normally ""). 19707exeext="$exeext" 19708 19709# Additional compiler flags for building library objects. 19710pic_flag=$lt_lt_prog_compiler_pic_GCJ 19711pic_mode=$pic_mode 19712 19713# What is the maximum length of a command? 19714max_cmd_len=$lt_cv_sys_max_cmd_len 19715 19716# Does compiler simultaneously support -c and -o options? 19717compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19718 19719# Must we lock files when doing compilation? 19720need_locks=$lt_need_locks 19721 19722# Do we need the lib prefix for modules? 19723need_lib_prefix=$need_lib_prefix 19724 19725# Do we need a version for libraries? 19726need_version=$need_version 19727 19728# Whether dlopen is supported. 19729dlopen_support=$enable_dlopen 19730 19731# Whether dlopen of programs is supported. 19732dlopen_self=$enable_dlopen_self 19733 19734# Whether dlopen of statically linked programs is supported. 19735dlopen_self_static=$enable_dlopen_self_static 19736 19737# Compiler flag to prevent dynamic linking. 19738link_static_flag=$lt_lt_prog_compiler_static_GCJ 19739 19740# Compiler flag to turn off builtin functions. 19741no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19742 19743# Compiler flag to allow reflexive dlopens. 19744export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19745 19746# Compiler flag to generate shared objects directly from archives. 19747whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19748 19749# Compiler flag to generate thread-safe objects. 19750thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19751 19752# Library versioning type. 19753version_type=$version_type 19754 19755# Format of library name prefix. 19756libname_spec=$lt_libname_spec 19757 19758# List of archive names. First name is the real one, the rest are links. 19759# The last name is the one that the linker finds with -lNAME. 19760library_names_spec=$lt_library_names_spec 19761 19762# The coded name of the library, if different from the real name. 19763soname_spec=$lt_soname_spec 19764 19765# Commands used to build and install an old-style archive. 19766RANLIB=$lt_RANLIB 19767old_archive_cmds=$lt_old_archive_cmds_GCJ 19768old_postinstall_cmds=$lt_old_postinstall_cmds 19769old_postuninstall_cmds=$lt_old_postuninstall_cmds 19770 19771# Create an old-style archive from a shared archive. 19772old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19773 19774# Create a temporary old-style archive to link instead of a shared archive. 19775old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19776 19777# Commands used to build and install a shared archive. 19778archive_cmds=$lt_archive_cmds_GCJ 19779archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19780postinstall_cmds=$lt_postinstall_cmds 19781postuninstall_cmds=$lt_postuninstall_cmds 19782 19783# Commands used to build a loadable module (assumed same as above if empty) 19784module_cmds=$lt_module_cmds_GCJ 19785module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19786 19787# Commands to strip libraries. 19788old_striplib=$lt_old_striplib 19789striplib=$lt_striplib 19790 19791# Dependencies to place before the objects being linked to create a 19792# shared library. 19793predep_objects=$lt_predep_objects_GCJ 19794 19795# Dependencies to place after the objects being linked to create a 19796# shared library. 19797postdep_objects=$lt_postdep_objects_GCJ 19798 19799# Dependencies to place before the objects being linked to create a 19800# shared library. 19801predeps=$lt_predeps_GCJ 19802 19803# Dependencies to place after the objects being linked to create a 19804# shared library. 19805postdeps=$lt_postdeps_GCJ 19806 19807# The directories searched by this compiler when creating a shared 19808# library 19809compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 19810 19811# The library search path used internally by the compiler when linking 19812# a shared library. 19813compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19814 19815# Method to check whether dependent libraries are shared objects. 19816deplibs_check_method=$lt_deplibs_check_method 19817 19818# Command to use when deplibs_check_method == file_magic. 19819file_magic_cmd=$lt_file_magic_cmd 19820 19821# Flag that allows shared libraries with undefined symbols to be built. 19822allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19823 19824# Flag that forces no undefined symbols. 19825no_undefined_flag=$lt_no_undefined_flag_GCJ 19826 19827# Commands used to finish a libtool library installation in a directory. 19828finish_cmds=$lt_finish_cmds 19829 19830# Same as above, but a single script fragment to be evaled but not shown. 19831finish_eval=$lt_finish_eval 19832 19833# Take the output of nm and produce a listing of raw symbols and C names. 19834global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19835 19836# Transform the output of nm in a proper C declaration 19837global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19838 19839# Transform the output of nm in a C name address pair 19840global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19841 19842# This is the shared library runtime path variable. 19843runpath_var=$runpath_var 19844 19845# This is the shared library path variable. 19846shlibpath_var=$shlibpath_var 19847 19848# Is shlibpath searched before the hard-coded library search path? 19849shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19850 19851# How to hardcode a shared library path into an executable. 19852hardcode_action=$hardcode_action_GCJ 19853 19854# Whether we should hardcode library paths into libraries. 19855hardcode_into_libs=$hardcode_into_libs 19856 19857# Flag to hardcode \$libdir into a binary during linking. 19858# This must work even if \$libdir does not exist. 19859hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19860 19861# If ld is used when linking, flag to hardcode \$libdir into 19862# a binary during linking. This must work even if \$libdir does 19863# not exist. 19864hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19865 19866# Whether we need a single -rpath flag with a separated argument. 19867hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19868 19869# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19870# resulting binary. 19871hardcode_direct=$hardcode_direct_GCJ 19872 19873# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19874# resulting binary. 19875hardcode_minus_L=$hardcode_minus_L_GCJ 19876 19877# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19878# the resulting binary. 19879hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19880 19881# Set to yes if building a shared library automatically hardcodes DIR into the library 19882# and all subsequent libraries and executables linked against it. 19883hardcode_automatic=$hardcode_automatic_GCJ 19884 19885# Variables whose values should be saved in libtool wrapper scripts and 19886# restored at relink time. 19887variables_saved_for_relink="$variables_saved_for_relink" 19888 19889# Whether libtool must link a program against all its dependency libraries. 19890link_all_deplibs=$link_all_deplibs_GCJ 19891 19892# Compile-time system search path for libraries 19893sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19894 19895# Run-time system search path for libraries 19896sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19897 19898# Fix the shell variable \$srcfile for the compiler. 19899fix_srcfile_path=$lt_fix_srcfile_path 19900 19901# Set to yes if exported symbols are required. 19902always_export_symbols=$always_export_symbols_GCJ 19903 19904# The commands to list exported symbols. 19905export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19906 19907# The commands to extract the exported symbol list from a shared archive. 19908extract_expsyms_cmds=$lt_extract_expsyms_cmds 19909 19910# Symbols that should not be listed in the preloaded symbols. 19911exclude_expsyms=$lt_exclude_expsyms_GCJ 19912 19913# Symbols that must always be exported. 19914include_expsyms=$lt_include_expsyms_GCJ 19915 19916# ### END LIBTOOL TAG CONFIG: $tagname 19917 19918__EOF__ 19919 19920 19921else 19922 # If there is no Makefile yet, we rely on a make rule to execute 19923 # `config.status --recheck' to rerun these tests and create the 19924 # libtool script then. 19925 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19926 if test -f "$ltmain_in"; then 19927 test -f Makefile && make "$ltmain" 19928 fi 19929fi 19930 19931 19932ac_ext=c 19933ac_cpp='$CPP $CPPFLAGS' 19934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19936ac_compiler_gnu=$ac_cv_c_compiler_gnu 19937 19938CC="$lt_save_CC" 19939 19940 else 19941 tagname="" 19942 fi 19943 ;; 19944 19945 RC) 19946 19947 19948# Source file extension for RC test sources. 19949ac_ext=rc 19950 19951# Object file extension for compiled RC test sources. 19952objext=o 19953objext_RC=$objext 19954 19955# Code to be used in simple compile tests 19956lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19957 19958# Code to be used in simple link tests 19959lt_simple_link_test_code="$lt_simple_compile_test_code" 19960 19961# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19962 19963# If no C compiler was specified, use CC. 19964LTCC=${LTCC-"$CC"} 19965 19966# If no C compiler flags were specified, use CFLAGS. 19967LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19968 19969# Allow CC to be a program name with arguments. 19970compiler=$CC 19971 19972 19973# save warnings/boilerplate of simple test code 19974ac_outfile=conftest.$ac_objext 19975echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19976eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19977_lt_compiler_boilerplate=`cat conftest.err` 19978$rm conftest* 19979 19980ac_outfile=conftest.$ac_objext 19981echo "$lt_simple_link_test_code" >conftest.$ac_ext 19982eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19983_lt_linker_boilerplate=`cat conftest.err` 19984$rm -r conftest* 19985 19986 19987# Allow CC to be a program name with arguments. 19988lt_save_CC="$CC" 19989CC=${RC-"windres"} 19990compiler=$CC 19991compiler_RC=$CC 19992for cc_temp in $compiler""; do 19993 case $cc_temp in 19994 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19995 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19996 \-*) ;; 19997 *) break;; 19998 esac 19999done 20000cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 20001 20002lt_cv_prog_compiler_c_o_RC=yes 20003 20004# The else clause should only fire when bootstrapping the 20005# libtool distribution, otherwise you forgot to ship ltmain.sh 20006# with your package, and you will get complaints that there are 20007# no rules to generate ltmain.sh. 20008if test -f "$ltmain"; then 20009 # See if we are running on zsh, and set the options which allow our commands through 20010 # without removal of \ escapes. 20011 if test -n "${ZSH_VERSION+set}" ; then 20012 setopt NO_GLOB_SUBST 20013 fi 20014 # Now quote all the things that may contain metacharacters while being 20015 # careful not to overquote the AC_SUBSTed values. We take copies of the 20016 # variables and quote the copies for generation of the libtool script. 20017 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 20018 SED SHELL STRIP \ 20019 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20020 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20021 deplibs_check_method reload_flag reload_cmds need_locks \ 20022 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20023 lt_cv_sys_global_symbol_to_c_name_address \ 20024 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20025 old_postinstall_cmds old_postuninstall_cmds \ 20026 compiler_RC \ 20027 CC_RC \ 20028 LD_RC \ 20029 lt_prog_compiler_wl_RC \ 20030 lt_prog_compiler_pic_RC \ 20031 lt_prog_compiler_static_RC \ 20032 lt_prog_compiler_no_builtin_flag_RC \ 20033 export_dynamic_flag_spec_RC \ 20034 thread_safe_flag_spec_RC \ 20035 whole_archive_flag_spec_RC \ 20036 enable_shared_with_static_runtimes_RC \ 20037 old_archive_cmds_RC \ 20038 old_archive_from_new_cmds_RC \ 20039 predep_objects_RC \ 20040 postdep_objects_RC \ 20041 predeps_RC \ 20042 postdeps_RC \ 20043 compiler_lib_search_path_RC \ 20044 compiler_lib_search_dirs_RC \ 20045 archive_cmds_RC \ 20046 archive_expsym_cmds_RC \ 20047 postinstall_cmds_RC \ 20048 postuninstall_cmds_RC \ 20049 old_archive_from_expsyms_cmds_RC \ 20050 allow_undefined_flag_RC \ 20051 no_undefined_flag_RC \ 20052 export_symbols_cmds_RC \ 20053 hardcode_libdir_flag_spec_RC \ 20054 hardcode_libdir_flag_spec_ld_RC \ 20055 hardcode_libdir_separator_RC \ 20056 hardcode_automatic_RC \ 20057 module_cmds_RC \ 20058 module_expsym_cmds_RC \ 20059 lt_cv_prog_compiler_c_o_RC \ 20060 fix_srcfile_path_RC \ 20061 exclude_expsyms_RC \ 20062 include_expsyms_RC; do 20063 20064 case $var in 20065 old_archive_cmds_RC | \ 20066 old_archive_from_new_cmds_RC | \ 20067 archive_cmds_RC | \ 20068 archive_expsym_cmds_RC | \ 20069 module_cmds_RC | \ 20070 module_expsym_cmds_RC | \ 20071 old_archive_from_expsyms_cmds_RC | \ 20072 export_symbols_cmds_RC | \ 20073 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20074 postinstall_cmds | postuninstall_cmds | \ 20075 old_postinstall_cmds | old_postuninstall_cmds | \ 20076 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20077 # Double-quote double-evaled strings. 20078 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20079 ;; 20080 *) 20081 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20082 ;; 20083 esac 20084 done 20085 20086 case $lt_echo in 20087 *'\$0 --fallback-echo"') 20088 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20089 ;; 20090 esac 20091 20092cfgfile="$ofile" 20093 20094 cat <<__EOF__ >> "$cfgfile" 20095# ### BEGIN LIBTOOL TAG CONFIG: $tagname 20096 20097# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20098 20099# Shell to use when invoking shell scripts. 20100SHELL=$lt_SHELL 20101 20102# Whether or not to build shared libraries. 20103build_libtool_libs=$enable_shared 20104 20105# Whether or not to build static libraries. 20106build_old_libs=$enable_static 20107 20108# Whether or not to add -lc for building shared libraries. 20109build_libtool_need_lc=$archive_cmds_need_lc_RC 20110 20111# Whether or not to disallow shared libs when runtime libs are static 20112allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 20113 20114# Whether or not to optimize for fast installation. 20115fast_install=$enable_fast_install 20116 20117# The host system. 20118host_alias=$host_alias 20119host=$host 20120host_os=$host_os 20121 20122# The build system. 20123build_alias=$build_alias 20124build=$build 20125build_os=$build_os 20126 20127# An echo program that does not interpret backslashes. 20128echo=$lt_echo 20129 20130# The archiver. 20131AR=$lt_AR 20132AR_FLAGS=$lt_AR_FLAGS 20133 20134# A C compiler. 20135LTCC=$lt_LTCC 20136 20137# LTCC compiler flags. 20138LTCFLAGS=$lt_LTCFLAGS 20139 20140# A language-specific compiler. 20141CC=$lt_compiler_RC 20142 20143# Is the compiler the GNU C compiler? 20144with_gcc=$GCC_RC 20145 20146# An ERE matcher. 20147EGREP=$lt_EGREP 20148 20149# The linker used to build libraries. 20150LD=$lt_LD_RC 20151 20152# Whether we need hard or soft links. 20153LN_S=$lt_LN_S 20154 20155# A BSD-compatible nm program. 20156NM=$lt_NM 20157 20158# A symbol stripping program 20159STRIP=$lt_STRIP 20160 20161# Used to examine libraries when file_magic_cmd begins "file" 20162MAGIC_CMD=$MAGIC_CMD 20163 20164# Used on cygwin: DLL creation program. 20165DLLTOOL="$DLLTOOL" 20166 20167# Used on cygwin: object dumper. 20168OBJDUMP="$OBJDUMP" 20169 20170# Used on cygwin: assembler. 20171AS="$AS" 20172 20173# The name of the directory that contains temporary libtool files. 20174objdir=$objdir 20175 20176# How to create reloadable object files. 20177reload_flag=$lt_reload_flag 20178reload_cmds=$lt_reload_cmds 20179 20180# How to pass a linker flag through the compiler. 20181wl=$lt_lt_prog_compiler_wl_RC 20182 20183# Object file suffix (normally "o"). 20184objext="$ac_objext" 20185 20186# Old archive suffix (normally "a"). 20187libext="$libext" 20188 20189# Shared library suffix (normally ".so"). 20190shrext_cmds='$shrext_cmds' 20191 20192# Executable file suffix (normally ""). 20193exeext="$exeext" 20194 20195# Additional compiler flags for building library objects. 20196pic_flag=$lt_lt_prog_compiler_pic_RC 20197pic_mode=$pic_mode 20198 20199# What is the maximum length of a command? 20200max_cmd_len=$lt_cv_sys_max_cmd_len 20201 20202# Does compiler simultaneously support -c and -o options? 20203compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 20204 20205# Must we lock files when doing compilation? 20206need_locks=$lt_need_locks 20207 20208# Do we need the lib prefix for modules? 20209need_lib_prefix=$need_lib_prefix 20210 20211# Do we need a version for libraries? 20212need_version=$need_version 20213 20214# Whether dlopen is supported. 20215dlopen_support=$enable_dlopen 20216 20217# Whether dlopen of programs is supported. 20218dlopen_self=$enable_dlopen_self 20219 20220# Whether dlopen of statically linked programs is supported. 20221dlopen_self_static=$enable_dlopen_self_static 20222 20223# Compiler flag to prevent dynamic linking. 20224link_static_flag=$lt_lt_prog_compiler_static_RC 20225 20226# Compiler flag to turn off builtin functions. 20227no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 20228 20229# Compiler flag to allow reflexive dlopens. 20230export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 20231 20232# Compiler flag to generate shared objects directly from archives. 20233whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 20234 20235# Compiler flag to generate thread-safe objects. 20236thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 20237 20238# Library versioning type. 20239version_type=$version_type 20240 20241# Format of library name prefix. 20242libname_spec=$lt_libname_spec 20243 20244# List of archive names. First name is the real one, the rest are links. 20245# The last name is the one that the linker finds with -lNAME. 20246library_names_spec=$lt_library_names_spec 20247 20248# The coded name of the library, if different from the real name. 20249soname_spec=$lt_soname_spec 20250 20251# Commands used to build and install an old-style archive. 20252RANLIB=$lt_RANLIB 20253old_archive_cmds=$lt_old_archive_cmds_RC 20254old_postinstall_cmds=$lt_old_postinstall_cmds 20255old_postuninstall_cmds=$lt_old_postuninstall_cmds 20256 20257# Create an old-style archive from a shared archive. 20258old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 20259 20260# Create a temporary old-style archive to link instead of a shared archive. 20261old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 20262 20263# Commands used to build and install a shared archive. 20264archive_cmds=$lt_archive_cmds_RC 20265archive_expsym_cmds=$lt_archive_expsym_cmds_RC 20266postinstall_cmds=$lt_postinstall_cmds 20267postuninstall_cmds=$lt_postuninstall_cmds 20268 20269# Commands used to build a loadable module (assumed same as above if empty) 20270module_cmds=$lt_module_cmds_RC 20271module_expsym_cmds=$lt_module_expsym_cmds_RC 20272 20273# Commands to strip libraries. 20274old_striplib=$lt_old_striplib 20275striplib=$lt_striplib 20276 20277# Dependencies to place before the objects being linked to create a 20278# shared library. 20279predep_objects=$lt_predep_objects_RC 20280 20281# Dependencies to place after the objects being linked to create a 20282# shared library. 20283postdep_objects=$lt_postdep_objects_RC 20284 20285# Dependencies to place before the objects being linked to create a 20286# shared library. 20287predeps=$lt_predeps_RC 20288 20289# Dependencies to place after the objects being linked to create a 20290# shared library. 20291postdeps=$lt_postdeps_RC 20292 20293# The directories searched by this compiler when creating a shared 20294# library 20295compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 20296 20297# The library search path used internally by the compiler when linking 20298# a shared library. 20299compiler_lib_search_path=$lt_compiler_lib_search_path_RC 20300 20301# Method to check whether dependent libraries are shared objects. 20302deplibs_check_method=$lt_deplibs_check_method 20303 20304# Command to use when deplibs_check_method == file_magic. 20305file_magic_cmd=$lt_file_magic_cmd 20306 20307# Flag that allows shared libraries with undefined symbols to be built. 20308allow_undefined_flag=$lt_allow_undefined_flag_RC 20309 20310# Flag that forces no undefined symbols. 20311no_undefined_flag=$lt_no_undefined_flag_RC 20312 20313# Commands used to finish a libtool library installation in a directory. 20314finish_cmds=$lt_finish_cmds 20315 20316# Same as above, but a single script fragment to be evaled but not shown. 20317finish_eval=$lt_finish_eval 20318 20319# Take the output of nm and produce a listing of raw symbols and C names. 20320global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20321 20322# Transform the output of nm in a proper C declaration 20323global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20324 20325# Transform the output of nm in a C name address pair 20326global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20327 20328# This is the shared library runtime path variable. 20329runpath_var=$runpath_var 20330 20331# This is the shared library path variable. 20332shlibpath_var=$shlibpath_var 20333 20334# Is shlibpath searched before the hard-coded library search path? 20335shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20336 20337# How to hardcode a shared library path into an executable. 20338hardcode_action=$hardcode_action_RC 20339 20340# Whether we should hardcode library paths into libraries. 20341hardcode_into_libs=$hardcode_into_libs 20342 20343# Flag to hardcode \$libdir into a binary during linking. 20344# This must work even if \$libdir does not exist. 20345hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 20346 20347# If ld is used when linking, flag to hardcode \$libdir into 20348# a binary during linking. This must work even if \$libdir does 20349# not exist. 20350hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 20351 20352# Whether we need a single -rpath flag with a separated argument. 20353hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 20354 20355# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20356# resulting binary. 20357hardcode_direct=$hardcode_direct_RC 20358 20359# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20360# resulting binary. 20361hardcode_minus_L=$hardcode_minus_L_RC 20362 20363# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20364# the resulting binary. 20365hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 20366 20367# Set to yes if building a shared library automatically hardcodes DIR into the library 20368# and all subsequent libraries and executables linked against it. 20369hardcode_automatic=$hardcode_automatic_RC 20370 20371# Variables whose values should be saved in libtool wrapper scripts and 20372# restored at relink time. 20373variables_saved_for_relink="$variables_saved_for_relink" 20374 20375# Whether libtool must link a program against all its dependency libraries. 20376link_all_deplibs=$link_all_deplibs_RC 20377 20378# Compile-time system search path for libraries 20379sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20380 20381# Run-time system search path for libraries 20382sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20383 20384# Fix the shell variable \$srcfile for the compiler. 20385fix_srcfile_path=$lt_fix_srcfile_path 20386 20387# Set to yes if exported symbols are required. 20388always_export_symbols=$always_export_symbols_RC 20389 20390# The commands to list exported symbols. 20391export_symbols_cmds=$lt_export_symbols_cmds_RC 20392 20393# The commands to extract the exported symbol list from a shared archive. 20394extract_expsyms_cmds=$lt_extract_expsyms_cmds 20395 20396# Symbols that should not be listed in the preloaded symbols. 20397exclude_expsyms=$lt_exclude_expsyms_RC 20398 20399# Symbols that must always be exported. 20400include_expsyms=$lt_include_expsyms_RC 20401 20402# ### END LIBTOOL TAG CONFIG: $tagname 20403 20404__EOF__ 20405 20406 20407else 20408 # If there is no Makefile yet, we rely on a make rule to execute 20409 # `config.status --recheck' to rerun these tests and create the 20410 # libtool script then. 20411 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20412 if test -f "$ltmain_in"; then 20413 test -f Makefile && make "$ltmain" 20414 fi 20415fi 20416 20417 20418ac_ext=c 20419ac_cpp='$CPP $CPPFLAGS' 20420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20422ac_compiler_gnu=$ac_cv_c_compiler_gnu 20423 20424CC="$lt_save_CC" 20425 20426 ;; 20427 20428 *) 20429 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 20430$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 20431 { (exit 1); exit 1; }; } 20432 ;; 20433 esac 20434 20435 # Append the new tag name to the list of available tags. 20436 if test -n "$tagname" ; then 20437 available_tags="$available_tags $tagname" 20438 fi 20439 fi 20440 done 20441 IFS="$lt_save_ifs" 20442 20443 # Now substitute the updated list of available tags. 20444 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 20445 mv "${ofile}T" "$ofile" 20446 chmod +x "$ofile" 20447 else 20448 rm -f "${ofile}T" 20449 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 20450$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 20451 { (exit 1); exit 1; }; } 20452 fi 20453fi 20454 20455 20456 20457# This can be used to rebuild libtool when needed 20458LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 20459 20460# Always use our own libtool. 20461LIBTOOL='$(SHELL) $(top_builddir)/libtool' 20462 20463# Prevent multiple expansion 20464 20465 20466 20467 20468 20469 20470 20471 20472 20473 20474 20475 20476 20477 20478 20479 20480 20481 20482 20483 20484ac_ext=c 20485ac_cpp='$CPP $CPPFLAGS' 20486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20488ac_compiler_gnu=$ac_cv_c_compiler_gnu 20489if test -n "$ac_tool_prefix"; then 20490 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 20491set dummy ${ac_tool_prefix}gcc; ac_word=$2 20492{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20493$as_echo_n "checking for $ac_word... " >&6; } 20494if test "${ac_cv_prog_CC+set}" = set; then 20495 $as_echo_n "(cached) " >&6 20496else 20497 if test -n "$CC"; then 20498 ac_cv_prog_CC="$CC" # Let the user override the test. 20499else 20500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20501for as_dir in $PATH 20502do 20503 IFS=$as_save_IFS 20504 test -z "$as_dir" && as_dir=. 20505 for ac_exec_ext in '' $ac_executable_extensions; do 20506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20507 ac_cv_prog_CC="${ac_tool_prefix}gcc" 20508 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20509 break 2 20510 fi 20511done 20512done 20513IFS=$as_save_IFS 20514 20515fi 20516fi 20517CC=$ac_cv_prog_CC 20518if test -n "$CC"; then 20519 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20520$as_echo "$CC" >&6; } 20521else 20522 { $as_echo "$as_me:$LINENO: result: no" >&5 20523$as_echo "no" >&6; } 20524fi 20525 20526 20527fi 20528if test -z "$ac_cv_prog_CC"; then 20529 ac_ct_CC=$CC 20530 # Extract the first word of "gcc", so it can be a program name with args. 20531set dummy gcc; ac_word=$2 20532{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20533$as_echo_n "checking for $ac_word... " >&6; } 20534if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 20535 $as_echo_n "(cached) " >&6 20536else 20537 if test -n "$ac_ct_CC"; then 20538 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20539else 20540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20541for as_dir in $PATH 20542do 20543 IFS=$as_save_IFS 20544 test -z "$as_dir" && as_dir=. 20545 for ac_exec_ext in '' $ac_executable_extensions; do 20546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20547 ac_cv_prog_ac_ct_CC="gcc" 20548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20549 break 2 20550 fi 20551done 20552done 20553IFS=$as_save_IFS 20554 20555fi 20556fi 20557ac_ct_CC=$ac_cv_prog_ac_ct_CC 20558if test -n "$ac_ct_CC"; then 20559 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20560$as_echo "$ac_ct_CC" >&6; } 20561else 20562 { $as_echo "$as_me:$LINENO: result: no" >&5 20563$as_echo "no" >&6; } 20564fi 20565 20566 if test "x$ac_ct_CC" = x; then 20567 CC="" 20568 else 20569 case $cross_compiling:$ac_tool_warned in 20570yes:) 20571{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 20572whose name does not start with the host triplet. If you think this 20573configuration is useful to you, please write to autoconf@gnu.org." >&5 20574$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 20575whose name does not start with the host triplet. If you think this 20576configuration is useful to you, please write to autoconf@gnu.org." >&2;} 20577ac_tool_warned=yes ;; 20578esac 20579 CC=$ac_ct_CC 20580 fi 20581else 20582 CC="$ac_cv_prog_CC" 20583fi 20584 20585if test -z "$CC"; then 20586 if test -n "$ac_tool_prefix"; then 20587 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 20588set dummy ${ac_tool_prefix}cc; ac_word=$2 20589{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20590$as_echo_n "checking for $ac_word... " >&6; } 20591if test "${ac_cv_prog_CC+set}" = set; then 20592 $as_echo_n "(cached) " >&6 20593else 20594 if test -n "$CC"; then 20595 ac_cv_prog_CC="$CC" # Let the user override the test. 20596else 20597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20598for as_dir in $PATH 20599do 20600 IFS=$as_save_IFS 20601 test -z "$as_dir" && as_dir=. 20602 for ac_exec_ext in '' $ac_executable_extensions; do 20603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20604 ac_cv_prog_CC="${ac_tool_prefix}cc" 20605 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20606 break 2 20607 fi 20608done 20609done 20610IFS=$as_save_IFS 20611 20612fi 20613fi 20614CC=$ac_cv_prog_CC 20615if test -n "$CC"; then 20616 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20617$as_echo "$CC" >&6; } 20618else 20619 { $as_echo "$as_me:$LINENO: result: no" >&5 20620$as_echo "no" >&6; } 20621fi 20622 20623 20624 fi 20625fi 20626if test -z "$CC"; then 20627 # Extract the first word of "cc", so it can be a program name with args. 20628set dummy cc; ac_word=$2 20629{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20630$as_echo_n "checking for $ac_word... " >&6; } 20631if test "${ac_cv_prog_CC+set}" = set; then 20632 $as_echo_n "(cached) " >&6 20633else 20634 if test -n "$CC"; then 20635 ac_cv_prog_CC="$CC" # Let the user override the test. 20636else 20637 ac_prog_rejected=no 20638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20639for as_dir in $PATH 20640do 20641 IFS=$as_save_IFS 20642 test -z "$as_dir" && as_dir=. 20643 for ac_exec_ext in '' $ac_executable_extensions; do 20644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 20646 ac_prog_rejected=yes 20647 continue 20648 fi 20649 ac_cv_prog_CC="cc" 20650 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20651 break 2 20652 fi 20653done 20654done 20655IFS=$as_save_IFS 20656 20657if test $ac_prog_rejected = yes; then 20658 # We found a bogon in the path, so make sure we never use it. 20659 set dummy $ac_cv_prog_CC 20660 shift 20661 if test $# != 0; then 20662 # We chose a different compiler from the bogus one. 20663 # However, it has the same basename, so the bogon will be chosen 20664 # first if we set CC to just the basename; use the full file name. 20665 shift 20666 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 20667 fi 20668fi 20669fi 20670fi 20671CC=$ac_cv_prog_CC 20672if test -n "$CC"; then 20673 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20674$as_echo "$CC" >&6; } 20675else 20676 { $as_echo "$as_me:$LINENO: result: no" >&5 20677$as_echo "no" >&6; } 20678fi 20679 20680 20681fi 20682if test -z "$CC"; then 20683 if test -n "$ac_tool_prefix"; then 20684 for ac_prog in cl.exe 20685 do 20686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 20687set dummy $ac_tool_prefix$ac_prog; ac_word=$2 20688{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20689$as_echo_n "checking for $ac_word... " >&6; } 20690if test "${ac_cv_prog_CC+set}" = set; then 20691 $as_echo_n "(cached) " >&6 20692else 20693 if test -n "$CC"; then 20694 ac_cv_prog_CC="$CC" # Let the user override the test. 20695else 20696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20697for as_dir in $PATH 20698do 20699 IFS=$as_save_IFS 20700 test -z "$as_dir" && as_dir=. 20701 for ac_exec_ext in '' $ac_executable_extensions; do 20702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20703 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 20704 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20705 break 2 20706 fi 20707done 20708done 20709IFS=$as_save_IFS 20710 20711fi 20712fi 20713CC=$ac_cv_prog_CC 20714if test -n "$CC"; then 20715 { $as_echo "$as_me:$LINENO: result: $CC" >&5 20716$as_echo "$CC" >&6; } 20717else 20718 { $as_echo "$as_me:$LINENO: result: no" >&5 20719$as_echo "no" >&6; } 20720fi 20721 20722 20723 test -n "$CC" && break 20724 done 20725fi 20726if test -z "$CC"; then 20727 ac_ct_CC=$CC 20728 for ac_prog in cl.exe 20729do 20730 # Extract the first word of "$ac_prog", so it can be a program name with args. 20731set dummy $ac_prog; ac_word=$2 20732{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20733$as_echo_n "checking for $ac_word... " >&6; } 20734if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 20735 $as_echo_n "(cached) " >&6 20736else 20737 if test -n "$ac_ct_CC"; then 20738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20739else 20740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20741for as_dir in $PATH 20742do 20743 IFS=$as_save_IFS 20744 test -z "$as_dir" && as_dir=. 20745 for ac_exec_ext in '' $ac_executable_extensions; do 20746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20747 ac_cv_prog_ac_ct_CC="$ac_prog" 20748 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20749 break 2 20750 fi 20751done 20752done 20753IFS=$as_save_IFS 20754 20755fi 20756fi 20757ac_ct_CC=$ac_cv_prog_ac_ct_CC 20758if test -n "$ac_ct_CC"; then 20759 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20760$as_echo "$ac_ct_CC" >&6; } 20761else 20762 { $as_echo "$as_me:$LINENO: result: no" >&5 20763$as_echo "no" >&6; } 20764fi 20765 20766 20767 test -n "$ac_ct_CC" && break 20768done 20769 20770 if test "x$ac_ct_CC" = x; then 20771 CC="" 20772 else 20773 case $cross_compiling:$ac_tool_warned in 20774yes:) 20775{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 20776whose name does not start with the host triplet. If you think this 20777configuration is useful to you, please write to autoconf@gnu.org." >&5 20778$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 20779whose name does not start with the host triplet. If you think this 20780configuration is useful to you, please write to autoconf@gnu.org." >&2;} 20781ac_tool_warned=yes ;; 20782esac 20783 CC=$ac_ct_CC 20784 fi 20785fi 20786 20787fi 20788 20789 20790test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 20791See \`config.log' for more details." >&5 20792$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 20793See \`config.log' for more details." >&2;} 20794 { (exit 1); exit 1; }; } 20795 20796# Provide some information about the compiler. 20797$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 20798set X $ac_compile 20799ac_compiler=$2 20800{ (ac_try="$ac_compiler --version >&5" 20801case "(($ac_try" in 20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20803 *) ac_try_echo=$ac_try;; 20804esac 20805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20806$as_echo "$ac_try_echo") >&5 20807 (eval "$ac_compiler --version >&5") 2>&5 20808 ac_status=$? 20809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20810 (exit $ac_status); } 20811{ (ac_try="$ac_compiler -v >&5" 20812case "(($ac_try" in 20813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20814 *) ac_try_echo=$ac_try;; 20815esac 20816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20817$as_echo "$ac_try_echo") >&5 20818 (eval "$ac_compiler -v >&5") 2>&5 20819 ac_status=$? 20820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20821 (exit $ac_status); } 20822{ (ac_try="$ac_compiler -V >&5" 20823case "(($ac_try" in 20824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20825 *) ac_try_echo=$ac_try;; 20826esac 20827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20828$as_echo "$ac_try_echo") >&5 20829 (eval "$ac_compiler -V >&5") 2>&5 20830 ac_status=$? 20831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20832 (exit $ac_status); } 20833 20834{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 20835$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 20836if test "${ac_cv_c_compiler_gnu+set}" = set; then 20837 $as_echo_n "(cached) " >&6 20838else 20839 cat >conftest.$ac_ext <<_ACEOF 20840/* confdefs.h. */ 20841_ACEOF 20842cat confdefs.h >>conftest.$ac_ext 20843cat >>conftest.$ac_ext <<_ACEOF 20844/* end confdefs.h. */ 20845 20846int 20847main () 20848{ 20849#ifndef __GNUC__ 20850 choke me 20851#endif 20852 20853 ; 20854 return 0; 20855} 20856_ACEOF 20857rm -f conftest.$ac_objext 20858if { (ac_try="$ac_compile" 20859case "(($ac_try" in 20860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20861 *) ac_try_echo=$ac_try;; 20862esac 20863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20864$as_echo "$ac_try_echo") >&5 20865 (eval "$ac_compile") 2>conftest.er1 20866 ac_status=$? 20867 grep -v '^ *+' conftest.er1 >conftest.err 20868 rm -f conftest.er1 20869 cat conftest.err >&5 20870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20871 (exit $ac_status); } && { 20872 test -z "$ac_c_werror_flag" || 20873 test ! -s conftest.err 20874 } && test -s conftest.$ac_objext; then 20875 ac_compiler_gnu=yes 20876else 20877 $as_echo "$as_me: failed program was:" >&5 20878sed 's/^/| /' conftest.$ac_ext >&5 20879 20880 ac_compiler_gnu=no 20881fi 20882 20883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20884ac_cv_c_compiler_gnu=$ac_compiler_gnu 20885 20886fi 20887{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 20888$as_echo "$ac_cv_c_compiler_gnu" >&6; } 20889if test $ac_compiler_gnu = yes; then 20890 GCC=yes 20891else 20892 GCC= 20893fi 20894ac_test_CFLAGS=${CFLAGS+set} 20895ac_save_CFLAGS=$CFLAGS 20896{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 20897$as_echo_n "checking whether $CC accepts -g... " >&6; } 20898if test "${ac_cv_prog_cc_g+set}" = set; then 20899 $as_echo_n "(cached) " >&6 20900else 20901 ac_save_c_werror_flag=$ac_c_werror_flag 20902 ac_c_werror_flag=yes 20903 ac_cv_prog_cc_g=no 20904 CFLAGS="-g" 20905 cat >conftest.$ac_ext <<_ACEOF 20906/* confdefs.h. */ 20907_ACEOF 20908cat confdefs.h >>conftest.$ac_ext 20909cat >>conftest.$ac_ext <<_ACEOF 20910/* end confdefs.h. */ 20911 20912int 20913main () 20914{ 20915 20916 ; 20917 return 0; 20918} 20919_ACEOF 20920rm -f conftest.$ac_objext 20921if { (ac_try="$ac_compile" 20922case "(($ac_try" in 20923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20924 *) ac_try_echo=$ac_try;; 20925esac 20926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20927$as_echo "$ac_try_echo") >&5 20928 (eval "$ac_compile") 2>conftest.er1 20929 ac_status=$? 20930 grep -v '^ *+' conftest.er1 >conftest.err 20931 rm -f conftest.er1 20932 cat conftest.err >&5 20933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20934 (exit $ac_status); } && { 20935 test -z "$ac_c_werror_flag" || 20936 test ! -s conftest.err 20937 } && test -s conftest.$ac_objext; then 20938 ac_cv_prog_cc_g=yes 20939else 20940 $as_echo "$as_me: failed program was:" >&5 20941sed 's/^/| /' conftest.$ac_ext >&5 20942 20943 CFLAGS="" 20944 cat >conftest.$ac_ext <<_ACEOF 20945/* confdefs.h. */ 20946_ACEOF 20947cat confdefs.h >>conftest.$ac_ext 20948cat >>conftest.$ac_ext <<_ACEOF 20949/* end confdefs.h. */ 20950 20951int 20952main () 20953{ 20954 20955 ; 20956 return 0; 20957} 20958_ACEOF 20959rm -f conftest.$ac_objext 20960if { (ac_try="$ac_compile" 20961case "(($ac_try" in 20962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20963 *) ac_try_echo=$ac_try;; 20964esac 20965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20966$as_echo "$ac_try_echo") >&5 20967 (eval "$ac_compile") 2>conftest.er1 20968 ac_status=$? 20969 grep -v '^ *+' conftest.er1 >conftest.err 20970 rm -f conftest.er1 20971 cat conftest.err >&5 20972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20973 (exit $ac_status); } && { 20974 test -z "$ac_c_werror_flag" || 20975 test ! -s conftest.err 20976 } && test -s conftest.$ac_objext; then 20977 : 20978else 20979 $as_echo "$as_me: failed program was:" >&5 20980sed 's/^/| /' conftest.$ac_ext >&5 20981 20982 ac_c_werror_flag=$ac_save_c_werror_flag 20983 CFLAGS="-g" 20984 cat >conftest.$ac_ext <<_ACEOF 20985/* confdefs.h. */ 20986_ACEOF 20987cat confdefs.h >>conftest.$ac_ext 20988cat >>conftest.$ac_ext <<_ACEOF 20989/* end confdefs.h. */ 20990 20991int 20992main () 20993{ 20994 20995 ; 20996 return 0; 20997} 20998_ACEOF 20999rm -f conftest.$ac_objext 21000if { (ac_try="$ac_compile" 21001case "(($ac_try" in 21002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21003 *) ac_try_echo=$ac_try;; 21004esac 21005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21006$as_echo "$ac_try_echo") >&5 21007 (eval "$ac_compile") 2>conftest.er1 21008 ac_status=$? 21009 grep -v '^ *+' conftest.er1 >conftest.err 21010 rm -f conftest.er1 21011 cat conftest.err >&5 21012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21013 (exit $ac_status); } && { 21014 test -z "$ac_c_werror_flag" || 21015 test ! -s conftest.err 21016 } && test -s conftest.$ac_objext; then 21017 ac_cv_prog_cc_g=yes 21018else 21019 $as_echo "$as_me: failed program was:" >&5 21020sed 's/^/| /' conftest.$ac_ext >&5 21021 21022 21023fi 21024 21025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21026fi 21027 21028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21029fi 21030 21031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21032 ac_c_werror_flag=$ac_save_c_werror_flag 21033fi 21034{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 21035$as_echo "$ac_cv_prog_cc_g" >&6; } 21036if test "$ac_test_CFLAGS" = set; then 21037 CFLAGS=$ac_save_CFLAGS 21038elif test $ac_cv_prog_cc_g = yes; then 21039 if test "$GCC" = yes; then 21040 CFLAGS="-g -O2" 21041 else 21042 CFLAGS="-g" 21043 fi 21044else 21045 if test "$GCC" = yes; then 21046 CFLAGS="-O2" 21047 else 21048 CFLAGS= 21049 fi 21050fi 21051{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 21052$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 21053if test "${ac_cv_prog_cc_c89+set}" = set; then 21054 $as_echo_n "(cached) " >&6 21055else 21056 ac_cv_prog_cc_c89=no 21057ac_save_CC=$CC 21058cat >conftest.$ac_ext <<_ACEOF 21059/* confdefs.h. */ 21060_ACEOF 21061cat confdefs.h >>conftest.$ac_ext 21062cat >>conftest.$ac_ext <<_ACEOF 21063/* end confdefs.h. */ 21064#include <stdarg.h> 21065#include <stdio.h> 21066#include <sys/types.h> 21067#include <sys/stat.h> 21068/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 21069struct buf { int x; }; 21070FILE * (*rcsopen) (struct buf *, struct stat *, int); 21071static char *e (p, i) 21072 char **p; 21073 int i; 21074{ 21075 return p[i]; 21076} 21077static char *f (char * (*g) (char **, int), char **p, ...) 21078{ 21079 char *s; 21080 va_list v; 21081 va_start (v,p); 21082 s = g (p, va_arg (v,int)); 21083 va_end (v); 21084 return s; 21085} 21086 21087/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 21088 function prototypes and stuff, but not '\xHH' hex character constants. 21089 These don't provoke an error unfortunately, instead are silently treated 21090 as 'x'. The following induces an error, until -std is added to get 21091 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 21092 array size at least. It's necessary to write '\x00'==0 to get something 21093 that's true only with -std. */ 21094int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 21095 21096/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 21097 inside strings and character constants. */ 21098#define FOO(x) 'x' 21099int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 21100 21101int test (int i, double x); 21102struct s1 {int (*f) (int a);}; 21103struct s2 {int (*f) (double a);}; 21104int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 21105int argc; 21106char **argv; 21107int 21108main () 21109{ 21110return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 21111 ; 21112 return 0; 21113} 21114_ACEOF 21115for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 21116 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 21117do 21118 CC="$ac_save_CC $ac_arg" 21119 rm -f conftest.$ac_objext 21120if { (ac_try="$ac_compile" 21121case "(($ac_try" in 21122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21123 *) ac_try_echo=$ac_try;; 21124esac 21125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21126$as_echo "$ac_try_echo") >&5 21127 (eval "$ac_compile") 2>conftest.er1 21128 ac_status=$? 21129 grep -v '^ *+' conftest.er1 >conftest.err 21130 rm -f conftest.er1 21131 cat conftest.err >&5 21132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21133 (exit $ac_status); } && { 21134 test -z "$ac_c_werror_flag" || 21135 test ! -s conftest.err 21136 } && test -s conftest.$ac_objext; then 21137 ac_cv_prog_cc_c89=$ac_arg 21138else 21139 $as_echo "$as_me: failed program was:" >&5 21140sed 's/^/| /' conftest.$ac_ext >&5 21141 21142 21143fi 21144 21145rm -f core conftest.err conftest.$ac_objext 21146 test "x$ac_cv_prog_cc_c89" != "xno" && break 21147done 21148rm -f conftest.$ac_ext 21149CC=$ac_save_CC 21150 21151fi 21152# AC_CACHE_VAL 21153case "x$ac_cv_prog_cc_c89" in 21154 x) 21155 { $as_echo "$as_me:$LINENO: result: none needed" >&5 21156$as_echo "none needed" >&6; } ;; 21157 xno) 21158 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 21159$as_echo "unsupported" >&6; } ;; 21160 *) 21161 CC="$CC $ac_cv_prog_cc_c89" 21162 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 21163$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 21164esac 21165 21166 21167ac_ext=c 21168ac_cpp='$CPP $CPPFLAGS' 21169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21171ac_compiler_gnu=$ac_cv_c_compiler_gnu 21172 21173depcc="$CC" am_compiler_list= 21174 21175{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 21176$as_echo_n "checking dependency style of $depcc... " >&6; } 21177if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 21178 $as_echo_n "(cached) " >&6 21179else 21180 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 21181 # We make a subdir and do the tests there. Otherwise we can end up 21182 # making bogus files that we don't know about and never remove. For 21183 # instance it was reported that on HP-UX the gcc test will end up 21184 # making a dummy file named `D' -- because `-MD' means `put the output 21185 # in D'. 21186 mkdir conftest.dir 21187 # Copy depcomp to subdir because otherwise we won't find it if we're 21188 # using a relative directory. 21189 cp "$am_depcomp" conftest.dir 21190 cd conftest.dir 21191 # We will build objects and dependencies in a subdirectory because 21192 # it helps to detect inapplicable dependency modes. For instance 21193 # both Tru64's cc and ICC support -MD to output dependencies as a 21194 # side effect of compilation, but ICC will put the dependencies in 21195 # the current directory while Tru64 will put them in the object 21196 # directory. 21197 mkdir sub 21198 21199 am_cv_CC_dependencies_compiler_type=none 21200 if test "$am_compiler_list" = ""; then 21201 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 21202 fi 21203 for depmode in $am_compiler_list; do 21204 # Setup a source with many dependencies, because some compilers 21205 # like to wrap large dependency lists on column 80 (with \), and 21206 # we should not choose a depcomp mode which is confused by this. 21207 # 21208 # We need to recreate these files for each test, as the compiler may 21209 # overwrite some of them when testing with obscure command lines. 21210 # This happens at least with the AIX C compiler. 21211 : > sub/conftest.c 21212 for i in 1 2 3 4 5 6; do 21213 echo '#include "conftst'$i'.h"' >> sub/conftest.c 21214 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 21215 # Solaris 8's {/usr,}/bin/sh. 21216 touch sub/conftst$i.h 21217 done 21218 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 21219 21220 case $depmode in 21221 nosideeffect) 21222 # after this tag, mechanisms are not by side-effect, so they'll 21223 # only be used when explicitly requested 21224 if test "x$enable_dependency_tracking" = xyes; then 21225 continue 21226 else 21227 break 21228 fi 21229 ;; 21230 none) break ;; 21231 esac 21232 # We check with `-c' and `-o' for the sake of the "dashmstdout" 21233 # mode. It turns out that the SunPro C++ compiler does not properly 21234 # handle `-M -o', and we need to detect this. 21235 if depmode=$depmode \ 21236 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 21237 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 21238 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 21239 >/dev/null 2>conftest.err && 21240 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 21241 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 21242 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 21243 # icc doesn't choke on unknown options, it will just issue warnings 21244 # or remarks (even with -Werror). So we grep stderr for any message 21245 # that says an option was ignored or not supported. 21246 # When given -MP, icc 7.0 and 7.1 complain thusly: 21247 # icc: Command line warning: ignoring option '-M'; no argument required 21248 # The diagnosis changed in icc 8.0: 21249 # icc: Command line remark: option '-MP' not supported 21250 if (grep 'ignoring option' conftest.err || 21251 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 21252 am_cv_CC_dependencies_compiler_type=$depmode 21253 break 21254 fi 21255 fi 21256 done 21257 21258 cd .. 21259 rm -rf conftest.dir 21260else 21261 am_cv_CC_dependencies_compiler_type=none 21262fi 21263 21264fi 21265{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 21266$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 21267CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 21268 21269 21270 21271if 21272 test "x$enable_dependency_tracking" != xno \ 21273 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 21274 am__fastdepCC_TRUE= 21275 am__fastdepCC_FALSE='#' 21276else 21277 am__fastdepCC_TRUE='#' 21278 am__fastdepCC_FALSE= 21279fi 21280 21281 21282 21283 21284 21285 21286# 21287# Check whether --enable-XINPUT was given. 21288if test "${enable_XINPUT+set}" = set; then 21289 enableval=$enable_XINPUT; XINPUT=$enableval 21290else 21291 XINPUT=yes 21292fi 21293 21294 21295 21296if test "x$XINPUT" = "xyes"; then 21297 XINPUT_TRUE= 21298 XINPUT_FALSE='#' 21299else 21300 XINPUT_TRUE='#' 21301 XINPUT_FALSE= 21302fi 21303 21304if test "x$XINPUT" = "xyes" ; then 21305 21306cat >>confdefs.h <<\_ACEOF 21307#define XINPUT 1 21308_ACEOF 21309 21310fi 21311 21312 21313# Check whether --with-xorg-module-dir was given. 21314if test "${with_xorg_module_dir+set}" = set; then 21315 withval=$with_xorg_module_dir; moduledir="$withval" 21316else 21317 moduledir="$libdir/xorg/modules" 21318fi 21319 21320inputdir=${moduledir}/input 21321 21322 21323# Checks for extensions 21324# XORG_DRIVER_CHECK_EXT(RANDR, randrproto) 21325 21326 SAVE_CFLAGS="$CFLAGS" 21327 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 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 21335#include "xorg-server.h" 21336#if !defined XINPUT 21337#error XINPUT not defined 21338#endif 21339 21340int 21341main () 21342{ 21343 21344 ; 21345 return 0; 21346} 21347_ACEOF 21348rm -f conftest.$ac_objext 21349if { (ac_try="$ac_compile" 21350case "(($ac_try" in 21351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21352 *) ac_try_echo=$ac_try;; 21353esac 21354eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21355$as_echo "$ac_try_echo") >&5 21356 (eval "$ac_compile") 2>conftest.er1 21357 ac_status=$? 21358 grep -v '^ *+' conftest.er1 >conftest.err 21359 rm -f conftest.er1 21360 cat conftest.err >&5 21361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21362 (exit $ac_status); } && { 21363 test -z "$ac_c_werror_flag" || 21364 test ! -s conftest.err 21365 } && test -s conftest.$ac_objext; then 21366 _EXT_CHECK=yes 21367else 21368 $as_echo "$as_me: failed program was:" >&5 21369sed 's/^/| /' conftest.$ac_ext >&5 21370 21371 _EXT_CHECK=no 21372fi 21373 21374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21375 CFLAGS="$SAVE_CFLAGS" 21376 { $as_echo "$as_me:$LINENO: checking if XINPUT is defined" >&5 21377$as_echo_n "checking if XINPUT is defined... " >&6; } 21378 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 21379$as_echo "$_EXT_CHECK" >&6; } 21380 if test "$_EXT_CHECK" != no; then 21381 REQUIRED_MODULES="$REQUIRED_MODULES inputproto" 21382 fi 21383 21384 21385# Checks for pkg-config packages 21386 21387 21388if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 21389 if test -n "$ac_tool_prefix"; then 21390 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 21391set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 21392{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 21393$as_echo_n "checking for $ac_word... " >&6; } 21394if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 21395 $as_echo_n "(cached) " >&6 21396else 21397 case $PKG_CONFIG in 21398 [\\/]* | ?:[\\/]*) 21399 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21400 ;; 21401 *) 21402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21403for as_dir in $PATH 21404do 21405 IFS=$as_save_IFS 21406 test -z "$as_dir" && as_dir=. 21407 for ac_exec_ext in '' $ac_executable_extensions; do 21408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21409 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21410 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21411 break 2 21412 fi 21413done 21414done 21415IFS=$as_save_IFS 21416 21417 ;; 21418esac 21419fi 21420PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21421if test -n "$PKG_CONFIG"; then 21422 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 21423$as_echo "$PKG_CONFIG" >&6; } 21424else 21425 { $as_echo "$as_me:$LINENO: result: no" >&5 21426$as_echo "no" >&6; } 21427fi 21428 21429 21430fi 21431if test -z "$ac_cv_path_PKG_CONFIG"; then 21432 ac_pt_PKG_CONFIG=$PKG_CONFIG 21433 # Extract the first word of "pkg-config", so it can be a program name with args. 21434set dummy pkg-config; ac_word=$2 21435{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 21436$as_echo_n "checking for $ac_word... " >&6; } 21437if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 21438 $as_echo_n "(cached) " >&6 21439else 21440 case $ac_pt_PKG_CONFIG in 21441 [\\/]* | ?:[\\/]*) 21442 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 21443 ;; 21444 *) 21445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21446for as_dir in $PATH 21447do 21448 IFS=$as_save_IFS 21449 test -z "$as_dir" && as_dir=. 21450 for ac_exec_ext in '' $ac_executable_extensions; do 21451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21452 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21453 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21454 break 2 21455 fi 21456done 21457done 21458IFS=$as_save_IFS 21459 21460 ;; 21461esac 21462fi 21463ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 21464if test -n "$ac_pt_PKG_CONFIG"; then 21465 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 21466$as_echo "$ac_pt_PKG_CONFIG" >&6; } 21467else 21468 { $as_echo "$as_me:$LINENO: result: no" >&5 21469$as_echo "no" >&6; } 21470fi 21471 21472 if test "x$ac_pt_PKG_CONFIG" = x; then 21473 PKG_CONFIG="" 21474 else 21475 case $cross_compiling:$ac_tool_warned in 21476yes:) 21477{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 21478whose name does not start with the host triplet. If you think this 21479configuration is useful to you, please write to autoconf@gnu.org." >&5 21480$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 21481whose name does not start with the host triplet. If you think this 21482configuration is useful to you, please write to autoconf@gnu.org." >&2;} 21483ac_tool_warned=yes ;; 21484esac 21485 PKG_CONFIG=$ac_pt_PKG_CONFIG 21486 fi 21487else 21488 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 21489fi 21490 21491fi 21492if test -n "$PKG_CONFIG"; then 21493 _pkg_min_version=0.9.0 21494 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 21495$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 21496 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 21497 { $as_echo "$as_me:$LINENO: result: yes" >&5 21498$as_echo "yes" >&6; } 21499 else 21500 { $as_echo "$as_me:$LINENO: result: no" >&5 21501$as_echo "no" >&6; } 21502 PKG_CONFIG="" 21503 fi 21504 21505fi 21506 21507pkg_failed=no 21508{ $as_echo "$as_me:$LINENO: checking for XORG" >&5 21509$as_echo_n "checking for XORG... " >&6; } 21510 21511if test -n "$PKG_CONFIG"; then 21512 if test -n "$XORG_CFLAGS"; then 21513 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 21514 else 21515 if test -n "$PKG_CONFIG" && \ 21516 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto \$REQUIRED_MODULES\"") >&5 21517 ($PKG_CONFIG --exists --print-errors "xorg-server xproto $REQUIRED_MODULES") 2>&5 21518 ac_status=$? 21519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21520 (exit $ac_status); }; then 21521 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto $REQUIRED_MODULES" 2>/dev/null` 21522else 21523 pkg_failed=yes 21524fi 21525 fi 21526else 21527 pkg_failed=untried 21528fi 21529if test -n "$PKG_CONFIG"; then 21530 if test -n "$XORG_LIBS"; then 21531 pkg_cv_XORG_LIBS="$XORG_LIBS" 21532 else 21533 if test -n "$PKG_CONFIG" && \ 21534 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto \$REQUIRED_MODULES\"") >&5 21535 ($PKG_CONFIG --exists --print-errors "xorg-server xproto $REQUIRED_MODULES") 2>&5 21536 ac_status=$? 21537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21538 (exit $ac_status); }; then 21539 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto $REQUIRED_MODULES" 2>/dev/null` 21540else 21541 pkg_failed=yes 21542fi 21543 fi 21544else 21545 pkg_failed=untried 21546fi 21547 21548 21549 21550if test $pkg_failed = yes; then 21551 21552if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21553 _pkg_short_errors_supported=yes 21554else 21555 _pkg_short_errors_supported=no 21556fi 21557 if test $_pkg_short_errors_supported = yes; then 21558 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server xproto $REQUIRED_MODULES"` 21559 else 21560 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server xproto $REQUIRED_MODULES"` 21561 fi 21562 # Put the nasty error message in config.log where it belongs 21563 echo "$XORG_PKG_ERRORS" >&5 21564 21565 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server xproto $REQUIRED_MODULES) were not met: 21566 21567$XORG_PKG_ERRORS 21568 21569Consider adjusting the PKG_CONFIG_PATH environment variable if you 21570installed software in a non-standard prefix. 21571 21572Alternatively, you may set the environment variables XORG_CFLAGS 21573and XORG_LIBS to avoid the need to call pkg-config. 21574See the pkg-config man page for more details. 21575" >&5 21576$as_echo "$as_me: error: Package requirements (xorg-server xproto $REQUIRED_MODULES) were not met: 21577 21578$XORG_PKG_ERRORS 21579 21580Consider adjusting the PKG_CONFIG_PATH environment variable if you 21581installed software in a non-standard prefix. 21582 21583Alternatively, you may set the environment variables XORG_CFLAGS 21584and XORG_LIBS to avoid the need to call pkg-config. 21585See the pkg-config man page for more details. 21586" >&2;} 21587 { (exit 1); exit 1; }; } 21588elif test $pkg_failed = untried; then 21589 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 21590is in your PATH or set the PKG_CONFIG environment variable to the full 21591path to pkg-config. 21592 21593Alternatively, you may set the environment variables XORG_CFLAGS 21594and XORG_LIBS to avoid the need to call pkg-config. 21595See the pkg-config man page for more details. 21596 21597To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 21598See \`config.log' for more details." >&5 21599$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 21600is in your PATH or set the PKG_CONFIG environment variable to the full 21601path to pkg-config. 21602 21603Alternatively, you may set the environment variables XORG_CFLAGS 21604and XORG_LIBS to avoid the need to call pkg-config. 21605See the pkg-config man page for more details. 21606 21607To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 21608See \`config.log' for more details." >&2;} 21609 { (exit 1); exit 1; }; } 21610else 21611 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 21612 XORG_LIBS=$pkg_cv_XORG_LIBS 21613 { $as_echo "$as_me:$LINENO: result: yes" >&5 21614$as_echo "yes" >&6; } 21615 : 21616fi 21617XORG_CFLAGS="$CWARNFLAGS $XORG_CFLAGS" 21618 21619# Check whether --with-sdkdir was given. 21620if test "${with_sdkdir+set}" = set; then 21621 withval=$with_sdkdir; sdkdir="$withval" 21622else 21623 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` 21624fi 21625 21626 21627 21628# Checks for libraries. 21629 21630# Checks for header files. 21631{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 21632$as_echo_n "checking for ANSI C header files... " >&6; } 21633if test "${ac_cv_header_stdc+set}" = set; then 21634 $as_echo_n "(cached) " >&6 21635else 21636 cat >conftest.$ac_ext <<_ACEOF 21637/* confdefs.h. */ 21638_ACEOF 21639cat confdefs.h >>conftest.$ac_ext 21640cat >>conftest.$ac_ext <<_ACEOF 21641/* end confdefs.h. */ 21642#include <stdlib.h> 21643#include <stdarg.h> 21644#include <string.h> 21645#include <float.h> 21646 21647int 21648main () 21649{ 21650 21651 ; 21652 return 0; 21653} 21654_ACEOF 21655rm -f conftest.$ac_objext 21656if { (ac_try="$ac_compile" 21657case "(($ac_try" in 21658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21659 *) ac_try_echo=$ac_try;; 21660esac 21661eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21662$as_echo "$ac_try_echo") >&5 21663 (eval "$ac_compile") 2>conftest.er1 21664 ac_status=$? 21665 grep -v '^ *+' conftest.er1 >conftest.err 21666 rm -f conftest.er1 21667 cat conftest.err >&5 21668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21669 (exit $ac_status); } && { 21670 test -z "$ac_c_werror_flag" || 21671 test ! -s conftest.err 21672 } && test -s conftest.$ac_objext; then 21673 ac_cv_header_stdc=yes 21674else 21675 $as_echo "$as_me: failed program was:" >&5 21676sed 's/^/| /' conftest.$ac_ext >&5 21677 21678 ac_cv_header_stdc=no 21679fi 21680 21681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21682 21683if test $ac_cv_header_stdc = yes; then 21684 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 21685 cat >conftest.$ac_ext <<_ACEOF 21686/* confdefs.h. */ 21687_ACEOF 21688cat confdefs.h >>conftest.$ac_ext 21689cat >>conftest.$ac_ext <<_ACEOF 21690/* end confdefs.h. */ 21691#include <string.h> 21692 21693_ACEOF 21694if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21695 $EGREP "memchr" >/dev/null 2>&1; then 21696 : 21697else 21698 ac_cv_header_stdc=no 21699fi 21700rm -f conftest* 21701 21702fi 21703 21704if test $ac_cv_header_stdc = yes; then 21705 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 21706 cat >conftest.$ac_ext <<_ACEOF 21707/* confdefs.h. */ 21708_ACEOF 21709cat confdefs.h >>conftest.$ac_ext 21710cat >>conftest.$ac_ext <<_ACEOF 21711/* end confdefs.h. */ 21712#include <stdlib.h> 21713 21714_ACEOF 21715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21716 $EGREP "free" >/dev/null 2>&1; then 21717 : 21718else 21719 ac_cv_header_stdc=no 21720fi 21721rm -f conftest* 21722 21723fi 21724 21725if test $ac_cv_header_stdc = yes; then 21726 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 21727 if test "$cross_compiling" = yes; then 21728 : 21729else 21730 cat >conftest.$ac_ext <<_ACEOF 21731/* confdefs.h. */ 21732_ACEOF 21733cat confdefs.h >>conftest.$ac_ext 21734cat >>conftest.$ac_ext <<_ACEOF 21735/* end confdefs.h. */ 21736#include <ctype.h> 21737#include <stdlib.h> 21738#if ((' ' & 0x0FF) == 0x020) 21739# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 21740# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 21741#else 21742# define ISLOWER(c) \ 21743 (('a' <= (c) && (c) <= 'i') \ 21744 || ('j' <= (c) && (c) <= 'r') \ 21745 || ('s' <= (c) && (c) <= 'z')) 21746# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 21747#endif 21748 21749#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 21750int 21751main () 21752{ 21753 int i; 21754 for (i = 0; i < 256; i++) 21755 if (XOR (islower (i), ISLOWER (i)) 21756 || toupper (i) != TOUPPER (i)) 21757 return 2; 21758 return 0; 21759} 21760_ACEOF 21761rm -f conftest$ac_exeext 21762if { (ac_try="$ac_link" 21763case "(($ac_try" in 21764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21765 *) ac_try_echo=$ac_try;; 21766esac 21767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21768$as_echo "$ac_try_echo") >&5 21769 (eval "$ac_link") 2>&5 21770 ac_status=$? 21771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21773 { (case "(($ac_try" in 21774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21775 *) ac_try_echo=$ac_try;; 21776esac 21777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21778$as_echo "$ac_try_echo") >&5 21779 (eval "$ac_try") 2>&5 21780 ac_status=$? 21781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21782 (exit $ac_status); }; }; then 21783 : 21784else 21785 $as_echo "$as_me: program exited with status $ac_status" >&5 21786$as_echo "$as_me: failed program was:" >&5 21787sed 's/^/| /' conftest.$ac_ext >&5 21788 21789( exit $ac_status ) 21790ac_cv_header_stdc=no 21791fi 21792rm -rf conftest.dSYM 21793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21794fi 21795 21796 21797fi 21798fi 21799{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 21800$as_echo "$ac_cv_header_stdc" >&6; } 21801if test $ac_cv_header_stdc = yes; then 21802 21803cat >>confdefs.h <<\_ACEOF 21804#define STDC_HEADERS 1 21805_ACEOF 21806 21807fi 21808 21809 21810ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile include/Makefile" 21811 21812cat >confcache <<\_ACEOF 21813# This file is a shell script that caches the results of configure 21814# tests run on this system so they can be shared between configure 21815# scripts and configure runs, see configure's option --config-cache. 21816# It is not useful on other systems. If it contains results you don't 21817# want to keep, you may remove or edit it. 21818# 21819# config.status only pays attention to the cache file if you give it 21820# the --recheck option to rerun configure. 21821# 21822# `ac_cv_env_foo' variables (set or unset) will be overridden when 21823# loading this file, other *unset* `ac_cv_foo' will be assigned the 21824# following values. 21825 21826_ACEOF 21827 21828# The following way of writing the cache mishandles newlines in values, 21829# but we know of no workaround that is simple, portable, and efficient. 21830# So, we kill variables containing newlines. 21831# Ultrix sh set writes to stderr and can't be redirected directly, 21832# and sets the high bit in the cache file unless we assign to the vars. 21833( 21834 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21835 eval ac_val=\$$ac_var 21836 case $ac_val in #( 21837 *${as_nl}*) 21838 case $ac_var in #( 21839 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 21840$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 21841 esac 21842 case $ac_var in #( 21843 _ | IFS | as_nl) ;; #( 21844 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21845 *) $as_unset $ac_var ;; 21846 esac ;; 21847 esac 21848 done 21849 21850 (set) 2>&1 | 21851 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21852 *${as_nl}ac_space=\ *) 21853 # `set' does not quote correctly, so add quotes (double-quote 21854 # substitution turns \\\\ into \\, and sed turns \\ into \). 21855 sed -n \ 21856 "s/'/'\\\\''/g; 21857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21858 ;; #( 21859 *) 21860 # `set' quotes correctly as required by POSIX, so do not add quotes. 21861 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21862 ;; 21863 esac | 21864 sort 21865) | 21866 sed ' 21867 /^ac_cv_env_/b end 21868 t clear 21869 :clear 21870 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21871 t end 21872 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21873 :end' >>confcache 21874if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21875 if test -w "$cache_file"; then 21876 test "x$cache_file" != "x/dev/null" && 21877 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 21878$as_echo "$as_me: updating cache $cache_file" >&6;} 21879 cat confcache >$cache_file 21880 else 21881 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21882$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21883 fi 21884fi 21885rm -f confcache 21886 21887test "x$prefix" = xNONE && prefix=$ac_default_prefix 21888# Let make expand exec_prefix. 21889test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21890 21891DEFS=-DHAVE_CONFIG_H 21892 21893ac_libobjs= 21894ac_ltlibobjs= 21895for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21896 # 1. Remove the extension, and $U if already installed. 21897 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21898 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21899 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21900 # will be set to the directory where LIBOBJS objects are built. 21901 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21902 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21903done 21904LIBOBJS=$ac_libobjs 21905 21906LTLIBOBJS=$ac_ltlibobjs 21907 21908 21909if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21910 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 21911Usually this means the macro was only invoked conditionally." >&5 21912$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 21913Usually this means the macro was only invoked conditionally." >&2;} 21914 { (exit 1); exit 1; }; } 21915fi 21916if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21917 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21918Usually this means the macro was only invoked conditionally." >&5 21919$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 21920Usually this means the macro was only invoked conditionally." >&2;} 21921 { (exit 1); exit 1; }; } 21922fi 21923if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21924 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21925Usually this means the macro was only invoked conditionally." >&5 21926$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21927Usually this means the macro was only invoked conditionally." >&2;} 21928 { (exit 1); exit 1; }; } 21929fi 21930if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21931 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21932Usually this means the macro was only invoked conditionally." >&5 21933$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21934Usually this means the macro was only invoked conditionally." >&2;} 21935 { (exit 1); exit 1; }; } 21936fi 21937if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21938 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21939Usually this means the macro was only invoked conditionally." >&5 21940$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21941Usually this means the macro was only invoked conditionally." >&2;} 21942 { (exit 1); exit 1; }; } 21943fi 21944if test -z "${XINPUT_TRUE}" && test -z "${XINPUT_FALSE}"; then 21945 { { $as_echo "$as_me:$LINENO: error: conditional \"XINPUT\" was never defined. 21946Usually this means the macro was only invoked conditionally." >&5 21947$as_echo "$as_me: error: conditional \"XINPUT\" was never defined. 21948Usually this means the macro was only invoked conditionally." >&2;} 21949 { (exit 1); exit 1; }; } 21950fi 21951 21952: ${CONFIG_STATUS=./config.status} 21953ac_write_fail=0 21954ac_clean_files_save=$ac_clean_files 21955ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21956{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21957$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21958cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21959#! $SHELL 21960# Generated by $as_me. 21961# Run this file to recreate the current configuration. 21962# Compiler output produced by configure, useful for debugging 21963# configure, is in config.log if it exists. 21964 21965debug=false 21966ac_cs_recheck=false 21967ac_cs_silent=false 21968SHELL=\${CONFIG_SHELL-$SHELL} 21969_ACEOF 21970 21971cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21972## --------------------- ## 21973## M4sh Initialization. ## 21974## --------------------- ## 21975 21976# Be more Bourne compatible 21977DUALCASE=1; export DUALCASE # for MKS sh 21978if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21979 emulate sh 21980 NULLCMD=: 21981 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21982 # is contrary to our usage. Disable this feature. 21983 alias -g '${1+"$@"}'='"$@"' 21984 setopt NO_GLOB_SUBST 21985else 21986 case `(set -o) 2>/dev/null` in 21987 *posix*) set -o posix ;; 21988esac 21989 21990fi 21991 21992 21993 21994 21995# PATH needs CR 21996# Avoid depending upon Character Ranges. 21997as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21998as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21999as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22000as_cr_digits='0123456789' 22001as_cr_alnum=$as_cr_Letters$as_cr_digits 22002 22003as_nl=' 22004' 22005export as_nl 22006# Printing a long string crashes Solaris 7 /usr/bin/printf. 22007as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 22008as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 22009as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 22010if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22011 as_echo='printf %s\n' 22012 as_echo_n='printf %s' 22013else 22014 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22015 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22016 as_echo_n='/usr/ucb/echo -n' 22017 else 22018 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22019 as_echo_n_body='eval 22020 arg=$1; 22021 case $arg in 22022 *"$as_nl"*) 22023 expr "X$arg" : "X\\(.*\\)$as_nl"; 22024 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22025 esac; 22026 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22027 ' 22028 export as_echo_n_body 22029 as_echo_n='sh -c $as_echo_n_body as_echo' 22030 fi 22031 export as_echo_body 22032 as_echo='sh -c $as_echo_body as_echo' 22033fi 22034 22035# The user is always right. 22036if test "${PATH_SEPARATOR+set}" != set; then 22037 PATH_SEPARATOR=: 22038 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22039 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22040 PATH_SEPARATOR=';' 22041 } 22042fi 22043 22044# Support unset when possible. 22045if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22046 as_unset=unset 22047else 22048 as_unset=false 22049fi 22050 22051 22052# IFS 22053# We need space, tab and new line, in precisely that order. Quoting is 22054# there to prevent editors from complaining about space-tab. 22055# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22056# splitting by setting IFS to empty value.) 22057IFS=" "" $as_nl" 22058 22059# Find who we are. Look in the path if we contain no directory separator. 22060case $0 in 22061 *[\\/]* ) as_myself=$0 ;; 22062 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22063for as_dir in $PATH 22064do 22065 IFS=$as_save_IFS 22066 test -z "$as_dir" && as_dir=. 22067 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22068done 22069IFS=$as_save_IFS 22070 22071 ;; 22072esac 22073# We did not find ourselves, most probably we were run as `sh COMMAND' 22074# in which case we are not to be found in the path. 22075if test "x$as_myself" = x; then 22076 as_myself=$0 22077fi 22078if test ! -f "$as_myself"; then 22079 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22080 { (exit 1); exit 1; } 22081fi 22082 22083# Work around bugs in pre-3.0 UWIN ksh. 22084for as_var in ENV MAIL MAILPATH 22085do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22086done 22087PS1='$ ' 22088PS2='> ' 22089PS4='+ ' 22090 22091# NLS nuisances. 22092LC_ALL=C 22093export LC_ALL 22094LANGUAGE=C 22095export LANGUAGE 22096 22097# Required to use basename. 22098if expr a : '\(a\)' >/dev/null 2>&1 && 22099 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22100 as_expr=expr 22101else 22102 as_expr=false 22103fi 22104 22105if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22106 as_basename=basename 22107else 22108 as_basename=false 22109fi 22110 22111 22112# Name of the executable. 22113as_me=`$as_basename -- "$0" || 22114$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22115 X"$0" : 'X\(//\)$' \| \ 22116 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22117$as_echo X/"$0" | 22118 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22119 s//\1/ 22120 q 22121 } 22122 /^X\/\(\/\/\)$/{ 22123 s//\1/ 22124 q 22125 } 22126 /^X\/\(\/\).*/{ 22127 s//\1/ 22128 q 22129 } 22130 s/.*/./; q'` 22131 22132# CDPATH. 22133$as_unset CDPATH 22134 22135 22136 22137 as_lineno_1=$LINENO 22138 as_lineno_2=$LINENO 22139 test "x$as_lineno_1" != "x$as_lineno_2" && 22140 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22141 22142 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22143 # uniformly replaced by the line number. The first 'sed' inserts a 22144 # line-number line after each line using $LINENO; the second 'sed' 22145 # does the real work. The second script uses 'N' to pair each 22146 # line-number line with the line containing $LINENO, and appends 22147 # trailing '-' during substitution so that $LINENO is not a special 22148 # case at line end. 22149 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22150 # scripts with optimization help from Paolo Bonzini. Blame Lee 22151 # E. McMahon (1931-1989) for sed's syntax. :-) 22152 sed -n ' 22153 p 22154 /[$]LINENO/= 22155 ' <$as_myself | 22156 sed ' 22157 s/[$]LINENO.*/&-/ 22158 t lineno 22159 b 22160 :lineno 22161 N 22162 :loop 22163 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22164 t loop 22165 s/-\n.*// 22166 ' >$as_me.lineno && 22167 chmod +x "$as_me.lineno" || 22168 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22169 { (exit 1); exit 1; }; } 22170 22171 # Don't try to exec as it changes $[0], causing all sort of problems 22172 # (the dirname of $[0] is not the place where we might find the 22173 # original and so on. Autoconf is especially sensitive to this). 22174 . "./$as_me.lineno" 22175 # Exit status is that of the last command. 22176 exit 22177} 22178 22179 22180if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22181 as_dirname=dirname 22182else 22183 as_dirname=false 22184fi 22185 22186ECHO_C= ECHO_N= ECHO_T= 22187case `echo -n x` in 22188-n*) 22189 case `echo 'x\c'` in 22190 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22191 *) ECHO_C='\c';; 22192 esac;; 22193*) 22194 ECHO_N='-n';; 22195esac 22196if expr a : '\(a\)' >/dev/null 2>&1 && 22197 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22198 as_expr=expr 22199else 22200 as_expr=false 22201fi 22202 22203rm -f conf$$ conf$$.exe conf$$.file 22204if test -d conf$$.dir; then 22205 rm -f conf$$.dir/conf$$.file 22206else 22207 rm -f conf$$.dir 22208 mkdir conf$$.dir 2>/dev/null 22209fi 22210if (echo >conf$$.file) 2>/dev/null; then 22211 if ln -s conf$$.file conf$$ 2>/dev/null; then 22212 as_ln_s='ln -s' 22213 # ... but there are two gotchas: 22214 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22215 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22216 # In both cases, we have to default to `cp -p'. 22217 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22218 as_ln_s='cp -p' 22219 elif ln conf$$.file conf$$ 2>/dev/null; then 22220 as_ln_s=ln 22221 else 22222 as_ln_s='cp -p' 22223 fi 22224else 22225 as_ln_s='cp -p' 22226fi 22227rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22228rmdir conf$$.dir 2>/dev/null 22229 22230if mkdir -p . 2>/dev/null; then 22231 as_mkdir_p=: 22232else 22233 test -d ./-p && rmdir ./-p 22234 as_mkdir_p=false 22235fi 22236 22237if test -x / >/dev/null 2>&1; then 22238 as_test_x='test -x' 22239else 22240 if ls -dL / >/dev/null 2>&1; then 22241 as_ls_L_option=L 22242 else 22243 as_ls_L_option= 22244 fi 22245 as_test_x=' 22246 eval sh -c '\'' 22247 if test -d "$1"; then 22248 test -d "$1/."; 22249 else 22250 case $1 in 22251 -*)set "./$1";; 22252 esac; 22253 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 22254 ???[sx]*):;;*)false;;esac;fi 22255 '\'' sh 22256 ' 22257fi 22258as_executable_p=$as_test_x 22259 22260# Sed expression to map a string onto a valid CPP name. 22261as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22262 22263# Sed expression to map a string onto a valid variable name. 22264as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22265 22266 22267exec 6>&1 22268 22269# Save the log message, to keep $[0] and so on meaningful, and to 22270# report actual input values of CONFIG_FILES etc. instead of their 22271# values after options handling. 22272ac_log=" 22273This file was extended by xf86-input-ws $as_me 1.2.9, which was 22274generated by GNU Autoconf 2.62. Invocation command line was 22275 22276 CONFIG_FILES = $CONFIG_FILES 22277 CONFIG_HEADERS = $CONFIG_HEADERS 22278 CONFIG_LINKS = $CONFIG_LINKS 22279 CONFIG_COMMANDS = $CONFIG_COMMANDS 22280 $ $0 $@ 22281 22282on `(hostname || uname -n) 2>/dev/null | sed 1q` 22283" 22284 22285_ACEOF 22286 22287cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22288# Files that config.status was made for. 22289config_files="$ac_config_files" 22290config_headers="$ac_config_headers" 22291config_commands="$ac_config_commands" 22292 22293_ACEOF 22294 22295cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22296ac_cs_usage="\ 22297\`$as_me' instantiates files from templates according to the 22298current configuration. 22299 22300Usage: $0 [OPTIONS] [FILE]... 22301 22302 -h, --help print this help, then exit 22303 -V, --version print version number and configuration settings, then exit 22304 -q, --quiet do not print progress messages 22305 -d, --debug don't remove temporary files 22306 --recheck update $as_me by reconfiguring in the same conditions 22307 --file=FILE[:TEMPLATE] 22308 instantiate the configuration file FILE 22309 --header=FILE[:TEMPLATE] 22310 instantiate the configuration header FILE 22311 22312Configuration files: 22313$config_files 22314 22315Configuration headers: 22316$config_headers 22317 22318Configuration commands: 22319$config_commands 22320 22321Report bugs to <bug-autoconf@gnu.org>." 22322 22323_ACEOF 22324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22325ac_cs_version="\\ 22326xf86-input-ws config.status 1.2.9 22327configured by $0, generated by GNU Autoconf 2.62, 22328 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22329 22330Copyright (C) 2008 Free Software Foundation, Inc. 22331This config.status script is free software; the Free Software Foundation 22332gives unlimited permission to copy, distribute and modify it." 22333 22334ac_pwd='$ac_pwd' 22335srcdir='$srcdir' 22336INSTALL='$INSTALL' 22337AWK='$AWK' 22338test -n "\$AWK" || AWK=awk 22339_ACEOF 22340 22341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22342# The default lists apply if the user does not specify any file. 22343ac_need_defaults=: 22344while test $# != 0 22345do 22346 case $1 in 22347 --*=*) 22348 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22349 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22350 ac_shift=: 22351 ;; 22352 *) 22353 ac_option=$1 22354 ac_optarg=$2 22355 ac_shift=shift 22356 ;; 22357 esac 22358 22359 case $ac_option in 22360 # Handling of the options. 22361 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22362 ac_cs_recheck=: ;; 22363 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22364 $as_echo "$ac_cs_version"; exit ;; 22365 --debug | --debu | --deb | --de | --d | -d ) 22366 debug=: ;; 22367 --file | --fil | --fi | --f ) 22368 $ac_shift 22369 case $ac_optarg in 22370 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22371 esac 22372 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 22373 ac_need_defaults=false;; 22374 --header | --heade | --head | --hea ) 22375 $ac_shift 22376 case $ac_optarg in 22377 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22378 esac 22379 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 22380 ac_need_defaults=false;; 22381 --he | --h) 22382 # Conflict between --help and --header 22383 { $as_echo "$as_me: error: ambiguous option: $1 22384Try \`$0 --help' for more information." >&2 22385 { (exit 1); exit 1; }; };; 22386 --help | --hel | -h ) 22387 $as_echo "$ac_cs_usage"; exit ;; 22388 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22389 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22390 ac_cs_silent=: ;; 22391 22392 # This is an error. 22393 -*) { $as_echo "$as_me: error: unrecognized option: $1 22394Try \`$0 --help' for more information." >&2 22395 { (exit 1); exit 1; }; } ;; 22396 22397 *) ac_config_targets="$ac_config_targets $1" 22398 ac_need_defaults=false ;; 22399 22400 esac 22401 shift 22402done 22403 22404ac_configure_extra_args= 22405 22406if $ac_cs_silent; then 22407 exec 6>/dev/null 22408 ac_configure_extra_args="$ac_configure_extra_args --silent" 22409fi 22410 22411_ACEOF 22412cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22413if \$ac_cs_recheck; then 22414 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22415 shift 22416 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22417 CONFIG_SHELL='$SHELL' 22418 export CONFIG_SHELL 22419 exec "\$@" 22420fi 22421 22422_ACEOF 22423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22424exec 5>>config.log 22425{ 22426 echo 22427 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22428## Running $as_me. ## 22429_ASBOX 22430 $as_echo "$ac_log" 22431} >&5 22432 22433_ACEOF 22434cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22435# 22436# INIT-COMMANDS 22437# 22438AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22439 22440_ACEOF 22441 22442cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22443 22444# Handling of arguments. 22445for ac_config_target in $ac_config_targets 22446do 22447 case $ac_config_target in 22448 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22449 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22450 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22451 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22452 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22453 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 22454 22455 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22456$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22457 { (exit 1); exit 1; }; };; 22458 esac 22459done 22460 22461 22462# If the user did not use the arguments to specify the items to instantiate, 22463# then the envvar interface is used. Set only those that are not. 22464# We use the long form for the default assignment because of an extremely 22465# bizarre bug on SunOS 4.1.3. 22466if $ac_need_defaults; then 22467 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22468 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22469 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22470fi 22471 22472# Have a temporary directory for convenience. Make it in the build tree 22473# simply because there is no reason against having it here, and in addition, 22474# creating and moving files from /tmp can sometimes cause problems. 22475# Hook for its removal unless debugging. 22476# Note that there is a small window in which the directory will not be cleaned: 22477# after its creation but before its name has been assigned to `$tmp'. 22478$debug || 22479{ 22480 tmp= 22481 trap 'exit_status=$? 22482 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22483' 0 22484 trap '{ (exit 1); exit 1; }' 1 2 13 15 22485} 22486# Create a (secure) tmp directory for tmp files. 22487 22488{ 22489 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22490 test -n "$tmp" && test -d "$tmp" 22491} || 22492{ 22493 tmp=./conf$$-$RANDOM 22494 (umask 077 && mkdir "$tmp") 22495} || 22496{ 22497 $as_echo "$as_me: cannot create a temporary directory in ." >&2 22498 { (exit 1); exit 1; } 22499} 22500 22501# Set up the scripts for CONFIG_FILES section. 22502# No need to generate them if there are no CONFIG_FILES. 22503# This happens for instance with `./config.status config.h'. 22504if test -n "$CONFIG_FILES"; then 22505 22506 22507ac_cr=' 22508' 22509ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22510if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22511 ac_cs_awk_cr='\\r' 22512else 22513 ac_cs_awk_cr=$ac_cr 22514fi 22515 22516echo 'BEGIN {' >"$tmp/subs1.awk" && 22517_ACEOF 22518 22519 22520{ 22521 echo "cat >conf$$subs.awk <<_ACEOF" && 22522 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22523 echo "_ACEOF" 22524} >conf$$subs.sh || 22525 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22526$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22527 { (exit 1); exit 1; }; } 22528ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 22529ac_delim='%!_!# ' 22530for ac_last_try in false false false false false :; do 22531 . ./conf$$subs.sh || 22532 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22533$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22534 { (exit 1); exit 1; }; } 22535 22536 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then 22537 break 22538 elif $ac_last_try; then 22539 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22540$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22541 { (exit 1); exit 1; }; } 22542 else 22543 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22544 fi 22545done 22546rm -f conf$$subs.sh 22547 22548cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22549cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 22550_ACEOF 22551sed -n ' 22552h 22553s/^/S["/; s/!.*/"]=/ 22554p 22555g 22556s/^[^!]*!// 22557:repl 22558t repl 22559s/'"$ac_delim"'$// 22560t delim 22561:nl 22562h 22563s/\(.\{148\}\).*/\1/ 22564t more1 22565s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22566p 22567n 22568b repl 22569:more1 22570s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22571p 22572g 22573s/.\{148\}// 22574t nl 22575:delim 22576h 22577s/\(.\{148\}\).*/\1/ 22578t more2 22579s/["\\]/\\&/g; s/^/"/; s/$/"/ 22580p 22581b 22582:more2 22583s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22584p 22585g 22586s/.\{148\}// 22587t delim 22588' <conf$$subs.awk | sed ' 22589/^[^""]/{ 22590 N 22591 s/\n// 22592} 22593' >>$CONFIG_STATUS || ac_write_fail=1 22594rm -f conf$$subs.awk 22595cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22596_ACAWK 22597cat >>"\$tmp/subs1.awk" <<_ACAWK && 22598 for (key in S) S_is_set[key] = 1 22599 FS = "" 22600 22601} 22602{ 22603 line = $ 0 22604 nfields = split(line, field, "@") 22605 substed = 0 22606 len = length(field[1]) 22607 for (i = 2; i < nfields; i++) { 22608 key = field[i] 22609 keylen = length(key) 22610 if (S_is_set[key]) { 22611 value = S[key] 22612 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22613 len += length(value) + length(field[++i]) 22614 substed = 1 22615 } else 22616 len += 1 + keylen 22617 } 22618 22619 print line 22620} 22621 22622_ACAWK 22623_ACEOF 22624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22625if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22626 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22627else 22628 cat 22629fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 22630 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 22631$as_echo "$as_me: error: could not setup config files machinery" >&2;} 22632 { (exit 1); exit 1; }; } 22633_ACEOF 22634 22635# VPATH may cause trouble with some makes, so we remove $(srcdir), 22636# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22637# trailing colons and then remove the whole line if VPATH becomes empty 22638# (actually we leave an empty line to preserve line numbers). 22639if test "x$srcdir" = x.; then 22640 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22641s/:*\$(srcdir):*/:/ 22642s/:*\${srcdir}:*/:/ 22643s/:*@srcdir@:*/:/ 22644s/^\([^=]*=[ ]*\):*/\1/ 22645s/:*$// 22646s/^[^=]*=[ ]*$// 22647}' 22648fi 22649 22650cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22651fi # test -n "$CONFIG_FILES" 22652 22653# Set up the scripts for CONFIG_HEADERS section. 22654# No need to generate them if there are no CONFIG_HEADERS. 22655# This happens for instance with `./config.status Makefile'. 22656if test -n "$CONFIG_HEADERS"; then 22657cat >"$tmp/defines.awk" <<\_ACAWK || 22658BEGIN { 22659_ACEOF 22660 22661# Transform confdefs.h into an awk script `defines.awk', embedded as 22662# here-document in config.status, that substitutes the proper values into 22663# config.h.in to produce config.h. 22664 22665# Create a delimiter string that does not exist in confdefs.h, to ease 22666# handling of long lines. 22667ac_delim='%!_!# ' 22668for ac_last_try in false false :; do 22669 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 22670 if test -z "$ac_t"; then 22671 break 22672 elif $ac_last_try; then 22673 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 22674$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 22675 { (exit 1); exit 1; }; } 22676 else 22677 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22678 fi 22679done 22680 22681# For the awk script, D is an array of macro values keyed by name, 22682# likewise P contains macro parameters if any. Preserve backslash 22683# newline sequences. 22684 22685ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22686sed -n ' 22687s/.\{148\}/&'"$ac_delim"'/g 22688t rset 22689:rset 22690s/^[ ]*#[ ]*define[ ][ ]*/ / 22691t def 22692d 22693:def 22694s/\\$// 22695t bsnl 22696s/["\\]/\\&/g 22697s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22698D["\1"]=" \3"/p 22699s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22700d 22701:bsnl 22702s/["\\]/\\&/g 22703s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22704D["\1"]=" \3\\\\\\n"\\/p 22705t cont 22706s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22707t cont 22708d 22709:cont 22710n 22711s/.\{148\}/&'"$ac_delim"'/g 22712t clear 22713:clear 22714s/\\$// 22715t bsnlc 22716s/["\\]/\\&/g; s/^/"/; s/$/"/p 22717d 22718:bsnlc 22719s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22720b cont 22721' <confdefs.h | sed ' 22722s/'"$ac_delim"'/"\\\ 22723"/g' >>$CONFIG_STATUS || ac_write_fail=1 22724 22725cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22726 for (key in D) D_is_set[key] = 1 22727 FS = "" 22728} 22729/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22730 line = \$ 0 22731 split(line, arg, " ") 22732 if (arg[1] == "#") { 22733 defundef = arg[2] 22734 mac1 = arg[3] 22735 } else { 22736 defundef = substr(arg[1], 2) 22737 mac1 = arg[2] 22738 } 22739 split(mac1, mac2, "(") #) 22740 macro = mac2[1] 22741 if (D_is_set[macro]) { 22742 # Preserve the white space surrounding the "#". 22743 prefix = substr(line, 1, index(line, defundef) - 1) 22744 print prefix "define", macro P[macro] D[macro] 22745 next 22746 } else { 22747 # Replace #undef with comments. This is necessary, for example, 22748 # in the case of _POSIX_SOURCE, which is predefined and required 22749 # on some systems where configure will not decide to define it. 22750 if (defundef == "undef") { 22751 print "/*", line, "*/" 22752 next 22753 } 22754 } 22755} 22756{ print } 22757_ACAWK 22758_ACEOF 22759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22760 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 22761$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 22762 { (exit 1); exit 1; }; } 22763fi # test -n "$CONFIG_HEADERS" 22764 22765 22766eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22767shift 22768for ac_tag 22769do 22770 case $ac_tag in 22771 :[FHLC]) ac_mode=$ac_tag; continue;; 22772 esac 22773 case $ac_mode$ac_tag in 22774 :[FHL]*:*);; 22775 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 22776$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} 22777 { (exit 1); exit 1; }; };; 22778 :[FH]-) ac_tag=-:-;; 22779 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22780 esac 22781 ac_save_IFS=$IFS 22782 IFS=: 22783 set x $ac_tag 22784 IFS=$ac_save_IFS 22785 shift 22786 ac_file=$1 22787 shift 22788 22789 case $ac_mode in 22790 :L) ac_source=$1;; 22791 :[FH]) 22792 ac_file_inputs= 22793 for ac_f 22794 do 22795 case $ac_f in 22796 -) ac_f="$tmp/stdin";; 22797 *) # Look for the file first in the build tree, then in the source tree 22798 # (if the path is not absolute). The absolute path cannot be DOS-style, 22799 # because $ac_f cannot contain `:'. 22800 test -f "$ac_f" || 22801 case $ac_f in 22802 [\\/$]*) false;; 22803 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22804 esac || 22805 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22806$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22807 { (exit 1); exit 1; }; };; 22808 esac 22809 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22810 ac_file_inputs="$ac_file_inputs '$ac_f'" 22811 done 22812 22813 # Let's still pretend it is `configure' which instantiates (i.e., don't 22814 # use $as_me), people would be surprised to read: 22815 # /* config.h. Generated by config.status. */ 22816 configure_input='Generated from '` 22817 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22818 `' by configure.' 22819 if test x"$ac_file" != x-; then 22820 configure_input="$ac_file. $configure_input" 22821 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 22822$as_echo "$as_me: creating $ac_file" >&6;} 22823 fi 22824 # Neutralize special characters interpreted by sed in replacement strings. 22825 case $configure_input in #( 22826 *\&* | *\|* | *\\* ) 22827 ac_sed_conf_input=`$as_echo "$configure_input" | 22828 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22829 *) ac_sed_conf_input=$configure_input;; 22830 esac 22831 22832 case $ac_tag in 22833 *:-:* | *:-) cat >"$tmp/stdin" \ 22834 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22835$as_echo "$as_me: error: could not create $ac_file" >&2;} 22836 { (exit 1); exit 1; }; } ;; 22837 esac 22838 ;; 22839 esac 22840 22841 ac_dir=`$as_dirname -- "$ac_file" || 22842$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22843 X"$ac_file" : 'X\(//\)[^/]' \| \ 22844 X"$ac_file" : 'X\(//\)$' \| \ 22845 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22846$as_echo X"$ac_file" | 22847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22848 s//\1/ 22849 q 22850 } 22851 /^X\(\/\/\)[^/].*/{ 22852 s//\1/ 22853 q 22854 } 22855 /^X\(\/\/\)$/{ 22856 s//\1/ 22857 q 22858 } 22859 /^X\(\/\).*/{ 22860 s//\1/ 22861 q 22862 } 22863 s/.*/./; q'` 22864 { as_dir="$ac_dir" 22865 case $as_dir in #( 22866 -*) as_dir=./$as_dir;; 22867 esac 22868 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22869 as_dirs= 22870 while :; do 22871 case $as_dir in #( 22872 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22873 *) as_qdir=$as_dir;; 22874 esac 22875 as_dirs="'$as_qdir' $as_dirs" 22876 as_dir=`$as_dirname -- "$as_dir" || 22877$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22878 X"$as_dir" : 'X\(//\)[^/]' \| \ 22879 X"$as_dir" : 'X\(//\)$' \| \ 22880 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22881$as_echo X"$as_dir" | 22882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22883 s//\1/ 22884 q 22885 } 22886 /^X\(\/\/\)[^/].*/{ 22887 s//\1/ 22888 q 22889 } 22890 /^X\(\/\/\)$/{ 22891 s//\1/ 22892 q 22893 } 22894 /^X\(\/\).*/{ 22895 s//\1/ 22896 q 22897 } 22898 s/.*/./; q'` 22899 test -d "$as_dir" && break 22900 done 22901 test -z "$as_dirs" || eval "mkdir $as_dirs" 22902 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22903$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 22904 { (exit 1); exit 1; }; }; } 22905 ac_builddir=. 22906 22907case "$ac_dir" in 22908.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22909*) 22910 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22911 # A ".." for each directory in $ac_dir_suffix. 22912 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22913 case $ac_top_builddir_sub in 22914 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22915 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22916 esac ;; 22917esac 22918ac_abs_top_builddir=$ac_pwd 22919ac_abs_builddir=$ac_pwd$ac_dir_suffix 22920# for backward compatibility: 22921ac_top_builddir=$ac_top_build_prefix 22922 22923case $srcdir in 22924 .) # We are building in place. 22925 ac_srcdir=. 22926 ac_top_srcdir=$ac_top_builddir_sub 22927 ac_abs_top_srcdir=$ac_pwd ;; 22928 [\\/]* | ?:[\\/]* ) # Absolute name. 22929 ac_srcdir=$srcdir$ac_dir_suffix; 22930 ac_top_srcdir=$srcdir 22931 ac_abs_top_srcdir=$srcdir ;; 22932 *) # Relative name. 22933 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22934 ac_top_srcdir=$ac_top_build_prefix$srcdir 22935 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22936esac 22937ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22938 22939 22940 case $ac_mode in 22941 :F) 22942 # 22943 # CONFIG_FILE 22944 # 22945 22946 case $INSTALL in 22947 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22948 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22949 esac 22950_ACEOF 22951 22952cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22953# If the template does not know about datarootdir, expand it. 22954# FIXME: This hack should be removed a few years after 2.60. 22955ac_datarootdir_hack=; ac_datarootdir_seen= 22956 22957ac_sed_dataroot=' 22958/datarootdir/ { 22959 p 22960 q 22961} 22962/@datadir@/p 22963/@docdir@/p 22964/@infodir@/p 22965/@localedir@/p 22966/@mandir@/p 22967' 22968case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22969*datarootdir*) ac_datarootdir_seen=yes;; 22970*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22971 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22972$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22973_ACEOF 22974cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22975 ac_datarootdir_hack=' 22976 s&@datadir@&$datadir&g 22977 s&@docdir@&$docdir&g 22978 s&@infodir@&$infodir&g 22979 s&@localedir@&$localedir&g 22980 s&@mandir@&$mandir&g 22981 s&\\\${datarootdir}&$datarootdir&g' ;; 22982esac 22983_ACEOF 22984 22985# Neutralize VPATH when `$srcdir' = `.'. 22986# Shell code in configure.ac might set extrasub. 22987# FIXME: do we really want to maintain this feature? 22988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22989ac_sed_extra="$ac_vpsub 22990$extrasub 22991_ACEOF 22992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22993:t 22994/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22995s|@configure_input@|$ac_sed_conf_input|;t t 22996s&@top_builddir@&$ac_top_builddir_sub&;t t 22997s&@top_build_prefix@&$ac_top_build_prefix&;t t 22998s&@srcdir@&$ac_srcdir&;t t 22999s&@abs_srcdir@&$ac_abs_srcdir&;t t 23000s&@top_srcdir@&$ac_top_srcdir&;t t 23001s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23002s&@builddir@&$ac_builddir&;t t 23003s&@abs_builddir@&$ac_abs_builddir&;t t 23004s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23005s&@INSTALL@&$ac_INSTALL&;t t 23006$ac_datarootdir_hack 23007" 23008eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 23009 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23010$as_echo "$as_me: error: could not create $ac_file" >&2;} 23011 { (exit 1); exit 1; }; } 23012 23013test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23014 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23015 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23016 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23017which seems to be undefined. Please make sure it is defined." >&5 23018$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23019which seems to be undefined. Please make sure it is defined." >&2;} 23020 23021 rm -f "$tmp/stdin" 23022 case $ac_file in 23023 -) cat "$tmp/out" && rm -f "$tmp/out";; 23024 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 23025 esac \ 23026 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23027$as_echo "$as_me: error: could not create $ac_file" >&2;} 23028 { (exit 1); exit 1; }; } 23029 ;; 23030 :H) 23031 # 23032 # CONFIG_HEADER 23033 # 23034 if test x"$ac_file" != x-; then 23035 { 23036 $as_echo "/* $configure_input */" \ 23037 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 23038 } >"$tmp/config.h" \ 23039 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23040$as_echo "$as_me: error: could not create $ac_file" >&2;} 23041 { (exit 1); exit 1; }; } 23042 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 23043 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23044$as_echo "$as_me: $ac_file is unchanged" >&6;} 23045 else 23046 rm -f "$ac_file" 23047 mv "$tmp/config.h" "$ac_file" \ 23048 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23049$as_echo "$as_me: error: could not create $ac_file" >&2;} 23050 { (exit 1); exit 1; }; } 23051 fi 23052 else 23053 $as_echo "/* $configure_input */" \ 23054 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 23055 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 23056$as_echo "$as_me: error: could not create -" >&2;} 23057 { (exit 1); exit 1; }; } 23058 fi 23059# Compute "$ac_file"'s index in $config_headers. 23060_am_stamp_count=1 23061for _am_header in $config_headers :; do 23062 case $_am_header in 23063 "$ac_file" | "$ac_file":* ) 23064 break ;; 23065 * ) 23066 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23067 esac 23068done 23069echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" || 23070$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23071 X"$ac_file" : 'X\(//\)[^/]' \| \ 23072 X"$ac_file" : 'X\(//\)$' \| \ 23073 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23074$as_echo X"$ac_file" | 23075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23076 s//\1/ 23077 q 23078 } 23079 /^X\(\/\/\)[^/].*/{ 23080 s//\1/ 23081 q 23082 } 23083 /^X\(\/\/\)$/{ 23084 s//\1/ 23085 q 23086 } 23087 /^X\(\/\).*/{ 23088 s//\1/ 23089 q 23090 } 23091 s/.*/./; q'`/stamp-h$_am_stamp_count 23092 ;; 23093 23094 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 23095$as_echo "$as_me: executing $ac_file commands" >&6;} 23096 ;; 23097 esac 23098 23099 23100 case $ac_file$ac_mode in 23101 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23102 # Strip MF so we end up with the name of the file. 23103 mf=`echo "$mf" | sed -e 's/:.*$//'` 23104 # Check whether this is an Automake generated Makefile or not. 23105 # We used to match only the files named `Makefile.in', but 23106 # some people rename them; so instead we look at the file content. 23107 # Grep'ing the first line is not enough: some people post-process 23108 # each Makefile.in and add a new line on top of each file to say so. 23109 # So let's grep whole file. 23110 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 23111 dirpart=`$as_dirname -- "$mf" || 23112$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23113 X"$mf" : 'X\(//\)[^/]' \| \ 23114 X"$mf" : 'X\(//\)$' \| \ 23115 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23116$as_echo X"$mf" | 23117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23118 s//\1/ 23119 q 23120 } 23121 /^X\(\/\/\)[^/].*/{ 23122 s//\1/ 23123 q 23124 } 23125 /^X\(\/\/\)$/{ 23126 s//\1/ 23127 q 23128 } 23129 /^X\(\/\).*/{ 23130 s//\1/ 23131 q 23132 } 23133 s/.*/./; q'` 23134 else 23135 continue 23136 fi 23137 # Extract the definition of DEPDIR, am__include, and am__quote 23138 # from the Makefile without running `make'. 23139 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23140 test -z "$DEPDIR" && continue 23141 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23142 test -z "am__include" && continue 23143 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23144 # When using ansi2knr, U may be empty or an underscore; expand it 23145 U=`sed -n 's/^U = //p' < "$mf"` 23146 # Find all dependency output files, they are included files with 23147 # $(DEPDIR) in their names. We invoke sed twice because it is the 23148 # simplest approach to changing $(DEPDIR) to its actual value in the 23149 # expansion. 23150 for file in `sed -n " 23151 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23152 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23153 # Make sure the directory exists. 23154 test -f "$dirpart/$file" && continue 23155 fdir=`$as_dirname -- "$file" || 23156$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23157 X"$file" : 'X\(//\)[^/]' \| \ 23158 X"$file" : 'X\(//\)$' \| \ 23159 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23160$as_echo X"$file" | 23161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23162 s//\1/ 23163 q 23164 } 23165 /^X\(\/\/\)[^/].*/{ 23166 s//\1/ 23167 q 23168 } 23169 /^X\(\/\/\)$/{ 23170 s//\1/ 23171 q 23172 } 23173 /^X\(\/\).*/{ 23174 s//\1/ 23175 q 23176 } 23177 s/.*/./; q'` 23178 { as_dir=$dirpart/$fdir 23179 case $as_dir in #( 23180 -*) as_dir=./$as_dir;; 23181 esac 23182 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23183 as_dirs= 23184 while :; do 23185 case $as_dir in #( 23186 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23187 *) as_qdir=$as_dir;; 23188 esac 23189 as_dirs="'$as_qdir' $as_dirs" 23190 as_dir=`$as_dirname -- "$as_dir" || 23191$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23192 X"$as_dir" : 'X\(//\)[^/]' \| \ 23193 X"$as_dir" : 'X\(//\)$' \| \ 23194 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23195$as_echo X"$as_dir" | 23196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23197 s//\1/ 23198 q 23199 } 23200 /^X\(\/\/\)[^/].*/{ 23201 s//\1/ 23202 q 23203 } 23204 /^X\(\/\/\)$/{ 23205 s//\1/ 23206 q 23207 } 23208 /^X\(\/\).*/{ 23209 s//\1/ 23210 q 23211 } 23212 s/.*/./; q'` 23213 test -d "$as_dir" && break 23214 done 23215 test -z "$as_dirs" || eval "mkdir $as_dirs" 23216 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23217$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 23218 { (exit 1); exit 1; }; }; } 23219 # echo "creating $dirpart/$file" 23220 echo '# dummy' > "$dirpart/$file" 23221 done 23222done 23223 ;; 23224 23225 esac 23226done # for ac_tag 23227 23228 23229{ (exit 0); exit 0; } 23230_ACEOF 23231chmod +x $CONFIG_STATUS 23232ac_clean_files=$ac_clean_files_save 23233 23234test $ac_write_fail = 0 || 23235 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 23236$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 23237 { (exit 1); exit 1; }; } 23238 23239 23240# configure is writing to config.log, and then calls config.status. 23241# config.status does its own redirection, appending to config.log. 23242# Unfortunately, on DOS this fails, as config.log is still kept open 23243# by configure, so config.status won't be able to write to it; its 23244# output is simply discarded. So we exec the FD to /dev/null, 23245# effectively closing config.log, so it can be properly (re)opened and 23246# appended to by config.status. When coming back to configure, we 23247# need to make the FD available again. 23248if test "$no_create" != yes; then 23249 ac_cs_success=: 23250 ac_config_status_args= 23251 test "$silent" = yes && 23252 ac_config_status_args="$ac_config_status_args --quiet" 23253 exec 5>/dev/null 23254 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23255 exec 5>>config.log 23256 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23257 # would make configure fail if this is the last instruction. 23258 $ac_cs_success || { (exit 1); exit 1; } 23259fi 23260if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23261 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 23262$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} 23263fi 23264 23265