configure revision 786a6f21
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for xf86-video-s3virge 1.10.3. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42as_nl=' 43' 44export as_nl 45# Printing a long string crashes Solaris 7 /usr/bin/printf. 46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83# Support unset when possible. 84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85 as_unset=unset 86else 87 as_unset=false 88fi 89 90 91# IFS 92# We need space, tab and new line, in precisely that order. Quoting is 93# there to prevent editors from complaining about space-tab. 94# (If _AS_PATH_WALK were called with IFS unset, it would disable word 95# splitting by setting IFS to empty value.) 96IFS=" "" $as_nl" 97 98# Find who we are. Look in the path if we contain no directory separator. 99case $0 in 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102for as_dir in $PATH 103do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107done 108IFS=$as_save_IFS 109 110 ;; 111esac 112# We did not find ourselves, most probably we were run as `sh COMMAND' 113# in which case we are not to be found in the path. 114if test "x$as_myself" = x; then 115 as_myself=$0 116fi 117if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120fi 121 122# Work around bugs in pre-3.0 UWIN ksh. 123for as_var in ENV MAIL MAILPATH 124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# Required to use basename. 137if expr a : '\(a\)' >/dev/null 2>&1 && 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 139 as_expr=expr 140else 141 as_expr=false 142fi 143 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145 as_basename=basename 146else 147 as_basename=false 148fi 149 150 151# Name of the executable. 152as_me=`$as_basename -- "$0" || 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154 X"$0" : 'X\(//\)$' \| \ 155 X"$0" : 'X\(/\)' \| . 2>/dev/null || 156$as_echo X/"$0" | 157 sed '/^.*\/\([^/][^/]*\)\/*$/{ 158 s//\1/ 159 q 160 } 161 /^X\/\(\/\/\)$/{ 162 s//\1/ 163 q 164 } 165 /^X\/\(\/\).*/{ 166 s//\1/ 167 q 168 } 169 s/.*/./; q'` 170 171# CDPATH. 172$as_unset CDPATH 173 174 175if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 182 if test $as_have_required = yes && (eval ": 183(as_func_return () { 184 (exit \$1) 185} 186as_func_success () { 187 as_func_return 0 188} 189as_func_failure () { 190 as_func_return 1 191} 192as_func_ret_success () { 193 return 0 194} 195as_func_ret_failure () { 196 return 1 197} 198 199exitcode=0 200if as_func_success; then 201 : 202else 203 exitcode=1 204 echo as_func_success failed. 205fi 206 207if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210fi 211 212if as_func_ret_success; then 213 : 214else 215 exitcode=1 216 echo as_func_ret_success failed. 217fi 218 219if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222fi 223 224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226else 227 exitcode=1 228 echo positional parameters were not saved. 229fi 230 231test \$exitcode = 0) || { (exit 1); exit 1; } 232 233( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238") 2> /dev/null; then 239 : 240else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253done 254IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$as_shell") 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277_ASEOF 278}; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292esac 293 294fi 295 296 297: 298(as_func_return () { 299 (exit $1) 300} 301as_func_success () { 302 as_func_return 0 303} 304as_func_failure () { 305 as_func_return 1 306} 307as_func_ret_success () { 308 return 0 309} 310as_func_ret_failure () { 311 return 1 312} 313 314exitcode=0 315if as_func_success; then 316 : 317else 318 exitcode=1 319 echo as_func_success failed. 320fi 321 322if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325fi 326 327if as_func_ret_success; then 328 : 329else 330 exitcode=1 331 echo as_func_ret_success failed. 332fi 333 334if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337fi 338 339if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341else 342 exitcode=1 343 echo positional parameters were not saved. 344fi 345 346test $exitcode = 0) || { (exit 1); exit 1; } 347 348( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354_ASEOF 355}; then 356 break 357fi 358 359fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378fi 379 380 381fi 382 383fi 384 385 386 387(eval "as_func_return () { 388 (exit \$1) 389} 390as_func_success () { 391 as_func_return 0 392} 393as_func_failure () { 394 as_func_return 1 395} 396as_func_ret_success () { 397 return 0 398} 399as_func_ret_failure () { 400 return 1 401} 402 403exitcode=0 404if as_func_success; then 405 : 406else 407 exitcode=1 408 echo as_func_success failed. 409fi 410 411if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414fi 415 416if as_func_ret_success; then 417 : 418else 419 exitcode=1 420 echo as_func_ret_success failed. 421fi 422 423if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426fi 427 428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430else 431 exitcode=1 432 echo positional parameters were not saved. 433fi 434 435test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441} 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 460 sed -n ' 461 p 462 /[$]LINENO/= 463 ' <$as_myself | 464 sed ' 465 s/[$]LINENO.*/&-/ 466 t lineno 467 b 468 :lineno 469 N 470 :loop 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472 t loop 473 s/-\n.*// 474 ' >$as_me.lineno && 475 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 478 479 # Don't try to exec as it changes $[0], causing all sort of problems 480 # (the dirname of $[0] is not the place where we might find the 481 # original and so on. Autoconf is especially sensitive to this). 482 . "./$as_me.lineno" 483 # Exit status is that of the last command. 484 exit 485} 486 487 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 as_dirname=dirname 490else 491 as_dirname=false 492fi 493 494ECHO_C= ECHO_N= ECHO_T= 495case `echo -n x` in 496-n*) 497 case `echo 'x\c'` in 498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 500 esac;; 501*) 502 ECHO_N='-n';; 503esac 504if expr a : '\(a\)' >/dev/null 2>&1 && 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 506 as_expr=expr 507else 508 as_expr=false 509fi 510 511rm -f conf$$ conf$$.exe conf$$.file 512if test -d conf$$.dir; then 513 rm -f conf$$.dir/conf$$.file 514else 515 rm -f conf$$.dir 516 mkdir conf$$.dir 2>/dev/null 517fi 518if (echo >conf$$.file) 2>/dev/null; then 519 if ln -s conf$$.file conf$$ 2>/dev/null; then 520 as_ln_s='ln -s' 521 # ... but there are two gotchas: 522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 # In both cases, we have to default to `cp -p'. 525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 as_ln_s='cp -p' 527 elif ln conf$$.file conf$$ 2>/dev/null; then 528 as_ln_s=ln 529 else 530 as_ln_s='cp -p' 531 fi 532else 533 as_ln_s='cp -p' 534fi 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536rmdir conf$$.dir 2>/dev/null 537 538if mkdir -p . 2>/dev/null; then 539 as_mkdir_p=: 540else 541 test -d ./-p && rmdir ./-p 542 as_mkdir_p=false 543fi 544 545if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547else 548 if ls -dL / >/dev/null 2>&1; then 549 as_ls_L_option=L 550 else 551 as_ls_L_option= 552 fi 553 as_test_x=' 554 eval sh -c '\'' 555 if test -d "$1"; then 556 test -d "$1/."; 557 else 558 case $1 in 559 -*)set "./$1";; 560 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 ???[sx]*):;;*)false;;esac;fi 563 '\'' sh 564 ' 565fi 566as_executable_p=$as_test_x 567 568# Sed expression to map a string onto a valid CPP name. 569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571# Sed expression to map a string onto a valid variable name. 572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574 575 576 577# Check that we are running under the correct shell. 578SHELL=${CONFIG_SHELL-/bin/sh} 579 580case X$lt_ECHO in 581X*--fallback-echo) 582 # Remove one level of quotation (which was required for Make). 583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 584 ;; 585esac 586 587ECHO=${lt_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 <<_LT_EOF 606$* 607_LT_EOF 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 "$lt_ECHO"; then 616 if 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 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 622 then 623 break 624 fi 625 done 626 fi 627 628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 630 test "X$echo_testing_string" = "X$echo_test_string"; then 631 : 632 else 633 # The Solaris, AIX, and Digital Unix default echo programs unquote 634 # backslashes. This makes it impossible to quote backslashes using 635 # echo "$something" | sed 's/\\/\\\\/g' 636 # 637 # So, first we look for a working echo in the user's PATH. 638 639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 640 for dir in $PATH /usr/ucb; do 641 IFS="$lt_save_ifs" 642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 645 test "X$echo_testing_string" = "X$echo_test_string"; then 646 ECHO="$dir/echo" 647 break 648 fi 649 done 650 IFS="$lt_save_ifs" 651 652 if test "X$ECHO" = Xecho; then 653 # We didn't find a better echo, so look for alternatives. 654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 656 test "X$echo_testing_string" = "X$echo_test_string"; then 657 # This shell has a builtin print -r that does the trick. 658 ECHO='print -r' 659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 660 test "X$CONFIG_SHELL" != X/bin/ksh; then 661 # If we have ksh, try running configure again with it. 662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 663 export ORIGINAL_CONFIG_SHELL 664 CONFIG_SHELL=/bin/ksh 665 export CONFIG_SHELL 666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 667 else 668 # Try using printf. 669 ECHO='printf %s\n' 670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 672 test "X$echo_testing_string" = "X$echo_test_string"; then 673 # Cool, printf works 674 : 675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 676 test "X$echo_testing_string" = 'X\t' && 677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 678 test "X$echo_testing_string" = "X$echo_test_string"; then 679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 680 export CONFIG_SHELL 681 SHELL="$CONFIG_SHELL" 682 export SHELL 683 ECHO="$CONFIG_SHELL $0 --fallback-echo" 684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 685 test "X$echo_testing_string" = 'X\t' && 686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 687 test "X$echo_testing_string" = "X$echo_test_string"; then 688 ECHO="$CONFIG_SHELL $0 --fallback-echo" 689 else 690 # maybe with a smaller string... 691 prev=: 692 693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 695 then 696 break 697 fi 698 prev="$cmd" 699 done 700 701 if test "$prev" != 'sed 50q "$0"'; then 702 echo_test_string=`eval $prev` 703 export echo_test_string 704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 705 else 706 # Oops. We lost completely, so just stick with echo. 707 ECHO=echo 708 fi 709 fi 710 fi 711 fi 712 fi 713fi 714 715# Copy echo and quote the copy suitably for passing to libtool from 716# the Makefile, instead of quoting the original, which is used later. 717lt_ECHO=$ECHO 718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 720fi 721 722 723 724 725exec 7<&0 </dev/null 6>&1 726 727# Name of the host. 728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 729# so uname gets run too. 730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 731 732# 733# Initializations. 734# 735ac_default_prefix=/usr/local 736ac_clean_files= 737ac_config_libobj_dir=. 738LIBOBJS= 739cross_compiling=no 740subdirs= 741MFLAGS= 742MAKEFLAGS= 743SHELL=${CONFIG_SHELL-/bin/sh} 744 745# Identity of this package. 746PACKAGE_NAME='xf86-video-s3virge' 747PACKAGE_TARNAME='xf86-video-s3virge' 748PACKAGE_VERSION='1.10.3' 749PACKAGE_STRING='xf86-video-s3virge 1.10.3' 750PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 751 752ac_unique_file="Makefile.am" 753# Factoring default headers for most tests. 754ac_includes_default="\ 755#include <stdio.h> 756#ifdef HAVE_SYS_TYPES_H 757# include <sys/types.h> 758#endif 759#ifdef HAVE_SYS_STAT_H 760# include <sys/stat.h> 761#endif 762#ifdef STDC_HEADERS 763# include <stdlib.h> 764# include <stddef.h> 765#else 766# ifdef HAVE_STDLIB_H 767# include <stdlib.h> 768# endif 769#endif 770#ifdef HAVE_STRING_H 771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 772# include <memory.h> 773# endif 774# include <string.h> 775#endif 776#ifdef HAVE_STRINGS_H 777# include <strings.h> 778#endif 779#ifdef HAVE_INTTYPES_H 780# include <inttypes.h> 781#endif 782#ifdef HAVE_STDINT_H 783# include <stdint.h> 784#endif 785#ifdef HAVE_UNISTD_H 786# include <unistd.h> 787#endif" 788 789ac_subst_vars='LTLIBOBJS 790LIBOBJS 791MAKE_HTML 792MAKE_PDF 793MAKE_PS 794MAKE_TEXT 795BUILD_PDFDOC_FALSE 796BUILD_PDFDOC_TRUE 797BUILD_LINUXDOC_FALSE 798BUILD_LINUXDOC_TRUE 799PS2PDF 800LINUXDOC 801ADMIN_MAN_DIR 802DRIVER_MAN_DIR 803MISC_MAN_DIR 804FILE_MAN_DIR 805LIB_MAN_DIR 806APP_MAN_DIR 807ADMIN_MAN_SUFFIX 808DRIVER_MAN_SUFFIX 809MISC_MAN_SUFFIX 810FILE_MAN_SUFFIX 811LIB_MAN_SUFFIX 812APP_MAN_SUFFIX 813DRIVER_NAME 814moduledir 815XSERVER_LIBPCIACCESS_FALSE 816XSERVER_LIBPCIACCESS_TRUE 817PCIACCESS_LIBS 818PCIACCESS_CFLAGS 819XORG_LIBS 820XORG_CFLAGS 821PKG_CONFIG 822CPP 823OTOOL64 824OTOOL 825LIPO 826NMEDIT 827DSYMUTIL 828lt_ECHO 829RANLIB 830AR 831OBJDUMP 832LN_S 833NM 834ac_ct_DUMPBIN 835DUMPBIN 836LD 837FGREP 838EGREP 839GREP 840SED 841am__fastdepCC_FALSE 842am__fastdepCC_TRUE 843CCDEPMODE 844AMDEPBACKSLASH 845AMDEP_FALSE 846AMDEP_TRUE 847am__quote 848am__include 849DEPDIR 850OBJEXT 851EXEEXT 852ac_ct_CC 853CPPFLAGS 854LDFLAGS 855CFLAGS 856CC 857host_os 858host_vendor 859host_cpu 860host 861build_os 862build_vendor 863build_cpu 864build 865LIBTOOL 866MAINT 867MAINTAINER_MODE_FALSE 868MAINTAINER_MODE_TRUE 869am__untar 870am__tar 871AMTAR 872am__leading_dot 873SET_MAKE 874AWK 875mkdir_p 876MKDIR_P 877INSTALL_STRIP_PROGRAM 878STRIP 879install_sh 880MAKEINFO 881AUTOHEADER 882AUTOMAKE 883AUTOCONF 884ACLOCAL 885VERSION 886PACKAGE 887CYGPATH_W 888am__isrc 889INSTALL_DATA 890INSTALL_SCRIPT 891INSTALL_PROGRAM 892target_alias 893host_alias 894build_alias 895LIBS 896ECHO_T 897ECHO_N 898ECHO_C 899DEFS 900mandir 901localedir 902libdir 903psdir 904pdfdir 905dvidir 906htmldir 907infodir 908docdir 909oldincludedir 910includedir 911localstatedir 912sharedstatedir 913sysconfdir 914datadir 915datarootdir 916libexecdir 917sbindir 918bindir 919program_transform_name 920prefix 921exec_prefix 922PACKAGE_BUGREPORT 923PACKAGE_STRING 924PACKAGE_VERSION 925PACKAGE_TARNAME 926PACKAGE_NAME 927PATH_SEPARATOR 928SHELL' 929ac_subst_files='' 930ac_user_opts=' 931enable_option_checking 932enable_maintainer_mode 933enable_static 934enable_shared 935with_pic 936enable_fast_install 937enable_dependency_tracking 938with_gnu_ld 939enable_libtool_lock 940with_xorg_module_dir 941with_release_version 942' 943 ac_precious_vars='build_alias 944host_alias 945target_alias 946CC 947CFLAGS 948LDFLAGS 949LIBS 950CPPFLAGS 951CPP 952PKG_CONFIG 953XORG_CFLAGS 954XORG_LIBS 955PCIACCESS_CFLAGS 956PCIACCESS_LIBS' 957 958 959# Initialize some variables set by options. 960ac_init_help= 961ac_init_version=false 962ac_unrecognized_opts= 963ac_unrecognized_sep= 964# The variables have the same names as the options, with 965# dashes changed to underlines. 966cache_file=/dev/null 967exec_prefix=NONE 968no_create= 969no_recursion= 970prefix=NONE 971program_prefix=NONE 972program_suffix=NONE 973program_transform_name=s,x,x, 974silent= 975site= 976srcdir= 977verbose= 978x_includes=NONE 979x_libraries=NONE 980 981# Installation directory options. 982# These are left unexpanded so users can "make install exec_prefix=/foo" 983# and all the variables that are supposed to be based on exec_prefix 984# by default will actually change. 985# Use braces instead of parens because sh, perl, etc. also accept them. 986# (The list follows the same order as the GNU Coding Standards.) 987bindir='${exec_prefix}/bin' 988sbindir='${exec_prefix}/sbin' 989libexecdir='${exec_prefix}/libexec' 990datarootdir='${prefix}/share' 991datadir='${datarootdir}' 992sysconfdir='${prefix}/etc' 993sharedstatedir='${prefix}/com' 994localstatedir='${prefix}/var' 995includedir='${prefix}/include' 996oldincludedir='/usr/include' 997docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 998infodir='${datarootdir}/info' 999htmldir='${docdir}' 1000dvidir='${docdir}' 1001pdfdir='${docdir}' 1002psdir='${docdir}' 1003libdir='${exec_prefix}/lib' 1004localedir='${datarootdir}/locale' 1005mandir='${datarootdir}/man' 1006 1007ac_prev= 1008ac_dashdash= 1009for ac_option 1010do 1011 # If the previous option needs an argument, assign it. 1012 if test -n "$ac_prev"; then 1013 eval $ac_prev=\$ac_option 1014 ac_prev= 1015 continue 1016 fi 1017 1018 case $ac_option in 1019 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1020 *) ac_optarg=yes ;; 1021 esac 1022 1023 # Accept the important Cygnus configure options, so we can diagnose typos. 1024 1025 case $ac_dashdash$ac_option in 1026 --) 1027 ac_dashdash=yes ;; 1028 1029 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1030 ac_prev=bindir ;; 1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1032 bindir=$ac_optarg ;; 1033 1034 -build | --build | --buil | --bui | --bu) 1035 ac_prev=build_alias ;; 1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1037 build_alias=$ac_optarg ;; 1038 1039 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1041 ac_prev=cache_file ;; 1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1044 cache_file=$ac_optarg ;; 1045 1046 --config-cache | -C) 1047 cache_file=config.cache ;; 1048 1049 -datadir | --datadir | --datadi | --datad) 1050 ac_prev=datadir ;; 1051 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1052 datadir=$ac_optarg ;; 1053 1054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1055 | --dataroo | --dataro | --datar) 1056 ac_prev=datarootdir ;; 1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1059 datarootdir=$ac_optarg ;; 1060 1061 -disable-* | --disable-*) 1062 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1063 # Reject names that are not valid shell variable names. 1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1065 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1066 { (exit 1); exit 1; }; } 1067 ac_useropt_orig=$ac_useropt 1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1069 case $ac_user_opts in 1070 *" 1071"enable_$ac_useropt" 1072"*) ;; 1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1074 ac_unrecognized_sep=', ';; 1075 esac 1076 eval enable_$ac_useropt=no ;; 1077 1078 -docdir | --docdir | --docdi | --doc | --do) 1079 ac_prev=docdir ;; 1080 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1081 docdir=$ac_optarg ;; 1082 1083 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1084 ac_prev=dvidir ;; 1085 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1086 dvidir=$ac_optarg ;; 1087 1088 -enable-* | --enable-*) 1089 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1090 # Reject names that are not valid shell variable names. 1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1092 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1093 { (exit 1); exit 1; }; } 1094 ac_useropt_orig=$ac_useropt 1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1096 case $ac_user_opts in 1097 *" 1098"enable_$ac_useropt" 1099"*) ;; 1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1101 ac_unrecognized_sep=', ';; 1102 esac 1103 eval enable_$ac_useropt=\$ac_optarg ;; 1104 1105 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1106 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1107 | --exec | --exe | --ex) 1108 ac_prev=exec_prefix ;; 1109 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1110 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1111 | --exec=* | --exe=* | --ex=*) 1112 exec_prefix=$ac_optarg ;; 1113 1114 -gas | --gas | --ga | --g) 1115 # Obsolete; use --with-gas. 1116 with_gas=yes ;; 1117 1118 -help | --help | --hel | --he | -h) 1119 ac_init_help=long ;; 1120 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1121 ac_init_help=recursive ;; 1122 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1123 ac_init_help=short ;; 1124 1125 -host | --host | --hos | --ho) 1126 ac_prev=host_alias ;; 1127 -host=* | --host=* | --hos=* | --ho=*) 1128 host_alias=$ac_optarg ;; 1129 1130 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1131 ac_prev=htmldir ;; 1132 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1133 | --ht=*) 1134 htmldir=$ac_optarg ;; 1135 1136 -includedir | --includedir | --includedi | --included | --include \ 1137 | --includ | --inclu | --incl | --inc) 1138 ac_prev=includedir ;; 1139 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1140 | --includ=* | --inclu=* | --incl=* | --inc=*) 1141 includedir=$ac_optarg ;; 1142 1143 -infodir | --infodir | --infodi | --infod | --info | --inf) 1144 ac_prev=infodir ;; 1145 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1146 infodir=$ac_optarg ;; 1147 1148 -libdir | --libdir | --libdi | --libd) 1149 ac_prev=libdir ;; 1150 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1151 libdir=$ac_optarg ;; 1152 1153 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1154 | --libexe | --libex | --libe) 1155 ac_prev=libexecdir ;; 1156 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1157 | --libexe=* | --libex=* | --libe=*) 1158 libexecdir=$ac_optarg ;; 1159 1160 -localedir | --localedir | --localedi | --localed | --locale) 1161 ac_prev=localedir ;; 1162 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1163 localedir=$ac_optarg ;; 1164 1165 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1166 | --localstate | --localstat | --localsta | --localst | --locals) 1167 ac_prev=localstatedir ;; 1168 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1169 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1170 localstatedir=$ac_optarg ;; 1171 1172 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1173 ac_prev=mandir ;; 1174 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1175 mandir=$ac_optarg ;; 1176 1177 -nfp | --nfp | --nf) 1178 # Obsolete; use --without-fp. 1179 with_fp=no ;; 1180 1181 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1182 | --no-cr | --no-c | -n) 1183 no_create=yes ;; 1184 1185 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1186 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1187 no_recursion=yes ;; 1188 1189 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1190 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1191 | --oldin | --oldi | --old | --ol | --o) 1192 ac_prev=oldincludedir ;; 1193 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1194 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1195 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1196 oldincludedir=$ac_optarg ;; 1197 1198 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1199 ac_prev=prefix ;; 1200 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1201 prefix=$ac_optarg ;; 1202 1203 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1204 | --program-pre | --program-pr | --program-p) 1205 ac_prev=program_prefix ;; 1206 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1207 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1208 program_prefix=$ac_optarg ;; 1209 1210 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1211 | --program-suf | --program-su | --program-s) 1212 ac_prev=program_suffix ;; 1213 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1214 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1215 program_suffix=$ac_optarg ;; 1216 1217 -program-transform-name | --program-transform-name \ 1218 | --program-transform-nam | --program-transform-na \ 1219 | --program-transform-n | --program-transform- \ 1220 | --program-transform | --program-transfor \ 1221 | --program-transfo | --program-transf \ 1222 | --program-trans | --program-tran \ 1223 | --progr-tra | --program-tr | --program-t) 1224 ac_prev=program_transform_name ;; 1225 -program-transform-name=* | --program-transform-name=* \ 1226 | --program-transform-nam=* | --program-transform-na=* \ 1227 | --program-transform-n=* | --program-transform-=* \ 1228 | --program-transform=* | --program-transfor=* \ 1229 | --program-transfo=* | --program-transf=* \ 1230 | --program-trans=* | --program-tran=* \ 1231 | --progr-tra=* | --program-tr=* | --program-t=*) 1232 program_transform_name=$ac_optarg ;; 1233 1234 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1235 ac_prev=pdfdir ;; 1236 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1237 pdfdir=$ac_optarg ;; 1238 1239 -psdir | --psdir | --psdi | --psd | --ps) 1240 ac_prev=psdir ;; 1241 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1242 psdir=$ac_optarg ;; 1243 1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1245 | -silent | --silent | --silen | --sile | --sil) 1246 silent=yes ;; 1247 1248 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1249 ac_prev=sbindir ;; 1250 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1251 | --sbi=* | --sb=*) 1252 sbindir=$ac_optarg ;; 1253 1254 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1255 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1256 | --sharedst | --shareds | --shared | --share | --shar \ 1257 | --sha | --sh) 1258 ac_prev=sharedstatedir ;; 1259 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1260 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1261 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1262 | --sha=* | --sh=*) 1263 sharedstatedir=$ac_optarg ;; 1264 1265 -site | --site | --sit) 1266 ac_prev=site ;; 1267 -site=* | --site=* | --sit=*) 1268 site=$ac_optarg ;; 1269 1270 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1271 ac_prev=srcdir ;; 1272 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1273 srcdir=$ac_optarg ;; 1274 1275 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1276 | --syscon | --sysco | --sysc | --sys | --sy) 1277 ac_prev=sysconfdir ;; 1278 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1279 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1280 sysconfdir=$ac_optarg ;; 1281 1282 -target | --target | --targe | --targ | --tar | --ta | --t) 1283 ac_prev=target_alias ;; 1284 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1285 target_alias=$ac_optarg ;; 1286 1287 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1288 verbose=yes ;; 1289 1290 -version | --version | --versio | --versi | --vers | -V) 1291 ac_init_version=: ;; 1292 1293 -with-* | --with-*) 1294 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1295 # Reject names that are not valid shell variable names. 1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1297 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1298 { (exit 1); exit 1; }; } 1299 ac_useropt_orig=$ac_useropt 1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1301 case $ac_user_opts in 1302 *" 1303"with_$ac_useropt" 1304"*) ;; 1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1306 ac_unrecognized_sep=', ';; 1307 esac 1308 eval with_$ac_useropt=\$ac_optarg ;; 1309 1310 -without-* | --without-*) 1311 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1312 # Reject names that are not valid shell variable names. 1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1314 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1315 { (exit 1); exit 1; }; } 1316 ac_useropt_orig=$ac_useropt 1317 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1318 case $ac_user_opts in 1319 *" 1320"with_$ac_useropt" 1321"*) ;; 1322 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1323 ac_unrecognized_sep=', ';; 1324 esac 1325 eval with_$ac_useropt=no ;; 1326 1327 --x) 1328 # Obsolete; use --with-x. 1329 with_x=yes ;; 1330 1331 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1332 | --x-incl | --x-inc | --x-in | --x-i) 1333 ac_prev=x_includes ;; 1334 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1335 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1336 x_includes=$ac_optarg ;; 1337 1338 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1339 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1340 ac_prev=x_libraries ;; 1341 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1342 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1343 x_libraries=$ac_optarg ;; 1344 1345 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1346Try \`$0 --help' for more information." >&2 1347 { (exit 1); exit 1; }; } 1348 ;; 1349 1350 *=*) 1351 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1352 # Reject names that are not valid shell variable names. 1353 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1354 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1355 { (exit 1); exit 1; }; } 1356 eval $ac_envvar=\$ac_optarg 1357 export $ac_envvar ;; 1358 1359 *) 1360 # FIXME: should be removed in autoconf 3.0. 1361 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1362 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1363 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1364 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1365 ;; 1366 1367 esac 1368done 1369 1370if test -n "$ac_prev"; then 1371 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1372 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1373 { (exit 1); exit 1; }; } 1374fi 1375 1376if test -n "$ac_unrecognized_opts"; then 1377 case $enable_option_checking in 1378 no) ;; 1379 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1380 { (exit 1); exit 1; }; } ;; 1381 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1382 esac 1383fi 1384 1385# Check all directory arguments for consistency. 1386for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1387 datadir sysconfdir sharedstatedir localstatedir includedir \ 1388 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1389 libdir localedir mandir 1390do 1391 eval ac_val=\$$ac_var 1392 # Remove trailing slashes. 1393 case $ac_val in 1394 */ ) 1395 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1396 eval $ac_var=\$ac_val;; 1397 esac 1398 # Be sure to have absolute directory names. 1399 case $ac_val in 1400 [\\/$]* | ?:[\\/]* ) continue;; 1401 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1402 esac 1403 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1404 { (exit 1); exit 1; }; } 1405done 1406 1407# There might be people who depend on the old broken behavior: `$host' 1408# used to hold the argument of --host etc. 1409# FIXME: To remove some day. 1410build=$build_alias 1411host=$host_alias 1412target=$target_alias 1413 1414# FIXME: To remove some day. 1415if test "x$host_alias" != x; then 1416 if test "x$build_alias" = x; then 1417 cross_compiling=maybe 1418 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1419 If a cross compiler is detected then cross compile mode will be used." >&2 1420 elif test "x$build_alias" != "x$host_alias"; then 1421 cross_compiling=yes 1422 fi 1423fi 1424 1425ac_tool_prefix= 1426test -n "$host_alias" && ac_tool_prefix=$host_alias- 1427 1428test "$silent" = yes && exec 6>/dev/null 1429 1430 1431ac_pwd=`pwd` && test -n "$ac_pwd" && 1432ac_ls_di=`ls -di .` && 1433ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1434 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1435 { (exit 1); exit 1; }; } 1436test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1437 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1438 { (exit 1); exit 1; }; } 1439 1440 1441# Find the source files, if location was not specified. 1442if test -z "$srcdir"; then 1443 ac_srcdir_defaulted=yes 1444 # Try the directory containing this script, then the parent directory. 1445 ac_confdir=`$as_dirname -- "$as_myself" || 1446$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1447 X"$as_myself" : 'X\(//\)[^/]' \| \ 1448 X"$as_myself" : 'X\(//\)$' \| \ 1449 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1450$as_echo X"$as_myself" | 1451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1452 s//\1/ 1453 q 1454 } 1455 /^X\(\/\/\)[^/].*/{ 1456 s//\1/ 1457 q 1458 } 1459 /^X\(\/\/\)$/{ 1460 s//\1/ 1461 q 1462 } 1463 /^X\(\/\).*/{ 1464 s//\1/ 1465 q 1466 } 1467 s/.*/./; q'` 1468 srcdir=$ac_confdir 1469 if test ! -r "$srcdir/$ac_unique_file"; then 1470 srcdir=.. 1471 fi 1472else 1473 ac_srcdir_defaulted=no 1474fi 1475if test ! -r "$srcdir/$ac_unique_file"; then 1476 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1477 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1478 { (exit 1); exit 1; }; } 1479fi 1480ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1481ac_abs_confdir=`( 1482 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1483 { (exit 1); exit 1; }; } 1484 pwd)` 1485# When building in place, set srcdir=. 1486if test "$ac_abs_confdir" = "$ac_pwd"; then 1487 srcdir=. 1488fi 1489# Remove unnecessary trailing slashes from srcdir. 1490# Double slashes in file names in object file debugging info 1491# mess up M-x gdb in Emacs. 1492case $srcdir in 1493*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1494esac 1495for ac_var in $ac_precious_vars; do 1496 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1497 eval ac_env_${ac_var}_value=\$${ac_var} 1498 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1499 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1500done 1501 1502# 1503# Report the --help message. 1504# 1505if test "$ac_init_help" = "long"; then 1506 # Omit some internal or obsolete options to make the list less imposing. 1507 # This message is too long to be a string in the A/UX 3.1 sh. 1508 cat <<_ACEOF 1509\`configure' configures xf86-video-s3virge 1.10.3 to adapt to many kinds of systems. 1510 1511Usage: $0 [OPTION]... [VAR=VALUE]... 1512 1513To assign environment variables (e.g., CC, CFLAGS...), specify them as 1514VAR=VALUE. See below for descriptions of some of the useful variables. 1515 1516Defaults for the options are specified in brackets. 1517 1518Configuration: 1519 -h, --help display this help and exit 1520 --help=short display options specific to this package 1521 --help=recursive display the short help of all the included packages 1522 -V, --version display version information and exit 1523 -q, --quiet, --silent do not print \`checking...' messages 1524 --cache-file=FILE cache test results in FILE [disabled] 1525 -C, --config-cache alias for \`--cache-file=config.cache' 1526 -n, --no-create do not create output files 1527 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1528 1529Installation directories: 1530 --prefix=PREFIX install architecture-independent files in PREFIX 1531 [$ac_default_prefix] 1532 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1533 [PREFIX] 1534 1535By default, \`make install' will install all the files in 1536\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1537an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1538for instance \`--prefix=\$HOME'. 1539 1540For better control, use the options below. 1541 1542Fine tuning of the installation directories: 1543 --bindir=DIR user executables [EPREFIX/bin] 1544 --sbindir=DIR system admin executables [EPREFIX/sbin] 1545 --libexecdir=DIR program executables [EPREFIX/libexec] 1546 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1547 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1548 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1549 --libdir=DIR object code libraries [EPREFIX/lib] 1550 --includedir=DIR C header files [PREFIX/include] 1551 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1552 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1553 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1554 --infodir=DIR info documentation [DATAROOTDIR/info] 1555 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1556 --mandir=DIR man documentation [DATAROOTDIR/man] 1557 --docdir=DIR documentation root 1558 [DATAROOTDIR/doc/xf86-video-s3virge] 1559 --htmldir=DIR html documentation [DOCDIR] 1560 --dvidir=DIR dvi documentation [DOCDIR] 1561 --pdfdir=DIR pdf documentation [DOCDIR] 1562 --psdir=DIR ps documentation [DOCDIR] 1563_ACEOF 1564 1565 cat <<\_ACEOF 1566 1567Program names: 1568 --program-prefix=PREFIX prepend PREFIX to installed program names 1569 --program-suffix=SUFFIX append SUFFIX to installed program names 1570 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1571 1572System types: 1573 --build=BUILD configure for building on BUILD [guessed] 1574 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1575_ACEOF 1576fi 1577 1578if test -n "$ac_init_help"; then 1579 case $ac_init_help in 1580 short | recursive ) echo "Configuration of xf86-video-s3virge 1.10.3:";; 1581 esac 1582 cat <<\_ACEOF 1583 1584Optional Features: 1585 --disable-option-checking ignore unrecognized --enable/--with options 1586 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1587 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1588 --enable-maintainer-mode enable make rules and dependencies not useful 1589 (and sometimes confusing) to the casual installer 1590 --enable-static[=PKGS] build static libraries [default=no] 1591 --enable-shared[=PKGS] build shared libraries [default=yes] 1592 --enable-fast-install[=PKGS] 1593 optimize for fast installation [default=yes] 1594 --disable-dependency-tracking speeds up one-time build 1595 --enable-dependency-tracking do not reject slow dependency extractors 1596 --disable-libtool-lock avoid locking (might break parallel builds) 1597 1598Optional Packages: 1599 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1600 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1601 --with-pic try to use only PIC/non-PIC objects [default=use 1602 both] 1603 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1604 --with-xorg-module-dir=DIR 1605 Default xorg module directory 1606 [default=$libdir/xorg/modules] 1607 --with-release-version=STRING 1608 Use release version string in package name 1609 1610Some influential environment variables: 1611 CC C compiler command 1612 CFLAGS C compiler flags 1613 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1614 nonstandard directory <lib dir> 1615 LIBS libraries to pass to the linker, e.g. -l<library> 1616 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1617 you have headers in a nonstandard directory <include dir> 1618 CPP C preprocessor 1619 PKG_CONFIG path to pkg-config utility 1620 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1621 XORG_LIBS linker flags for XORG, overriding pkg-config 1622 PCIACCESS_CFLAGS 1623 C compiler flags for PCIACCESS, overriding pkg-config 1624 PCIACCESS_LIBS 1625 linker flags for PCIACCESS, overriding pkg-config 1626 1627Use these variables to override the choices made by `configure' or to help 1628it to find libraries and programs with nonstandard names/locations. 1629 1630Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1631_ACEOF 1632ac_status=$? 1633fi 1634 1635if test "$ac_init_help" = "recursive"; then 1636 # If there are subdirs, report their specific --help. 1637 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1638 test -d "$ac_dir" || 1639 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1640 continue 1641 ac_builddir=. 1642 1643case "$ac_dir" in 1644.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1645*) 1646 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1647 # A ".." for each directory in $ac_dir_suffix. 1648 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1649 case $ac_top_builddir_sub in 1650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1652 esac ;; 1653esac 1654ac_abs_top_builddir=$ac_pwd 1655ac_abs_builddir=$ac_pwd$ac_dir_suffix 1656# for backward compatibility: 1657ac_top_builddir=$ac_top_build_prefix 1658 1659case $srcdir in 1660 .) # We are building in place. 1661 ac_srcdir=. 1662 ac_top_srcdir=$ac_top_builddir_sub 1663 ac_abs_top_srcdir=$ac_pwd ;; 1664 [\\/]* | ?:[\\/]* ) # Absolute name. 1665 ac_srcdir=$srcdir$ac_dir_suffix; 1666 ac_top_srcdir=$srcdir 1667 ac_abs_top_srcdir=$srcdir ;; 1668 *) # Relative name. 1669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1670 ac_top_srcdir=$ac_top_build_prefix$srcdir 1671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1672esac 1673ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1674 1675 cd "$ac_dir" || { ac_status=$?; continue; } 1676 # Check for guested configure. 1677 if test -f "$ac_srcdir/configure.gnu"; then 1678 echo && 1679 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1680 elif test -f "$ac_srcdir/configure"; then 1681 echo && 1682 $SHELL "$ac_srcdir/configure" --help=recursive 1683 else 1684 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1685 fi || ac_status=$? 1686 cd "$ac_pwd" || { ac_status=$?; break; } 1687 done 1688fi 1689 1690test -n "$ac_init_help" && exit $ac_status 1691if $ac_init_version; then 1692 cat <<\_ACEOF 1693xf86-video-s3virge configure 1.10.3 1694generated by GNU Autoconf 2.63 1695 1696Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16972002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1698This configure script is free software; the Free Software Foundation 1699gives unlimited permission to copy, distribute and modify it. 1700_ACEOF 1701 exit 1702fi 1703cat >config.log <<_ACEOF 1704This file contains any messages produced by compilers while 1705running configure, to aid debugging if configure makes a mistake. 1706 1707It was created by xf86-video-s3virge $as_me 1.10.3, which was 1708generated by GNU Autoconf 2.63. Invocation command line was 1709 1710 $ $0 $@ 1711 1712_ACEOF 1713exec 5>>config.log 1714{ 1715cat <<_ASUNAME 1716## --------- ## 1717## Platform. ## 1718## --------- ## 1719 1720hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1721uname -m = `(uname -m) 2>/dev/null || echo unknown` 1722uname -r = `(uname -r) 2>/dev/null || echo unknown` 1723uname -s = `(uname -s) 2>/dev/null || echo unknown` 1724uname -v = `(uname -v) 2>/dev/null || echo unknown` 1725 1726/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1727/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1728 1729/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1730/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1731/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1732/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1733/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1734/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1735/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1736 1737_ASUNAME 1738 1739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1740for as_dir in $PATH 1741do 1742 IFS=$as_save_IFS 1743 test -z "$as_dir" && as_dir=. 1744 $as_echo "PATH: $as_dir" 1745done 1746IFS=$as_save_IFS 1747 1748} >&5 1749 1750cat >&5 <<_ACEOF 1751 1752 1753## ----------- ## 1754## Core tests. ## 1755## ----------- ## 1756 1757_ACEOF 1758 1759 1760# Keep a trace of the command line. 1761# Strip out --no-create and --no-recursion so they do not pile up. 1762# Strip out --silent because we don't want to record it for future runs. 1763# Also quote any args containing shell meta-characters. 1764# Make two passes to allow for proper duplicate-argument suppression. 1765ac_configure_args= 1766ac_configure_args0= 1767ac_configure_args1= 1768ac_must_keep_next=false 1769for ac_pass in 1 2 1770do 1771 for ac_arg 1772 do 1773 case $ac_arg in 1774 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1775 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1776 | -silent | --silent | --silen | --sile | --sil) 1777 continue ;; 1778 *\'*) 1779 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1780 esac 1781 case $ac_pass in 1782 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1783 2) 1784 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1785 if test $ac_must_keep_next = true; then 1786 ac_must_keep_next=false # Got value, back to normal. 1787 else 1788 case $ac_arg in 1789 *=* | --config-cache | -C | -disable-* | --disable-* \ 1790 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1791 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1792 | -with-* | --with-* | -without-* | --without-* | --x) 1793 case "$ac_configure_args0 " in 1794 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1795 esac 1796 ;; 1797 -* ) ac_must_keep_next=true ;; 1798 esac 1799 fi 1800 ac_configure_args="$ac_configure_args '$ac_arg'" 1801 ;; 1802 esac 1803 done 1804done 1805$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1806$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1807 1808# When interrupted or exit'd, cleanup temporary files, and complete 1809# config.log. We remove comments because anyway the quotes in there 1810# would cause problems or look ugly. 1811# WARNING: Use '\'' to represent an apostrophe within the trap. 1812# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1813trap 'exit_status=$? 1814 # Save into config.log some information that might help in debugging. 1815 { 1816 echo 1817 1818 cat <<\_ASBOX 1819## ---------------- ## 1820## Cache variables. ## 1821## ---------------- ## 1822_ASBOX 1823 echo 1824 # The following way of writing the cache mishandles newlines in values, 1825( 1826 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1827 eval ac_val=\$$ac_var 1828 case $ac_val in #( 1829 *${as_nl}*) 1830 case $ac_var in #( 1831 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1832$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1833 esac 1834 case $ac_var in #( 1835 _ | IFS | as_nl) ;; #( 1836 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1837 *) $as_unset $ac_var ;; 1838 esac ;; 1839 esac 1840 done 1841 (set) 2>&1 | 1842 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1843 *${as_nl}ac_space=\ *) 1844 sed -n \ 1845 "s/'\''/'\''\\\\'\'''\''/g; 1846 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1847 ;; #( 1848 *) 1849 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1850 ;; 1851 esac | 1852 sort 1853) 1854 echo 1855 1856 cat <<\_ASBOX 1857## ----------------- ## 1858## Output variables. ## 1859## ----------------- ## 1860_ASBOX 1861 echo 1862 for ac_var in $ac_subst_vars 1863 do 1864 eval ac_val=\$$ac_var 1865 case $ac_val in 1866 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1867 esac 1868 $as_echo "$ac_var='\''$ac_val'\''" 1869 done | sort 1870 echo 1871 1872 if test -n "$ac_subst_files"; then 1873 cat <<\_ASBOX 1874## ------------------- ## 1875## File substitutions. ## 1876## ------------------- ## 1877_ASBOX 1878 echo 1879 for ac_var in $ac_subst_files 1880 do 1881 eval ac_val=\$$ac_var 1882 case $ac_val in 1883 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1884 esac 1885 $as_echo "$ac_var='\''$ac_val'\''" 1886 done | sort 1887 echo 1888 fi 1889 1890 if test -s confdefs.h; then 1891 cat <<\_ASBOX 1892## ----------- ## 1893## confdefs.h. ## 1894## ----------- ## 1895_ASBOX 1896 echo 1897 cat confdefs.h 1898 echo 1899 fi 1900 test "$ac_signal" != 0 && 1901 $as_echo "$as_me: caught signal $ac_signal" 1902 $as_echo "$as_me: exit $exit_status" 1903 } >&5 1904 rm -f core *.core core.conftest.* && 1905 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1906 exit $exit_status 1907' 0 1908for ac_signal in 1 2 13 15; do 1909 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1910done 1911ac_signal=0 1912 1913# confdefs.h avoids OS command line length limits that DEFS can exceed. 1914rm -f -r conftest* confdefs.h 1915 1916# Predefined preprocessor variables. 1917 1918cat >>confdefs.h <<_ACEOF 1919#define PACKAGE_NAME "$PACKAGE_NAME" 1920_ACEOF 1921 1922 1923cat >>confdefs.h <<_ACEOF 1924#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1925_ACEOF 1926 1927 1928cat >>confdefs.h <<_ACEOF 1929#define PACKAGE_VERSION "$PACKAGE_VERSION" 1930_ACEOF 1931 1932 1933cat >>confdefs.h <<_ACEOF 1934#define PACKAGE_STRING "$PACKAGE_STRING" 1935_ACEOF 1936 1937 1938cat >>confdefs.h <<_ACEOF 1939#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1940_ACEOF 1941 1942 1943# Let the site file select an alternate cache file if it wants to. 1944# Prefer an explicitly selected file to automatically selected ones. 1945ac_site_file1=NONE 1946ac_site_file2=NONE 1947if test -n "$CONFIG_SITE"; then 1948 ac_site_file1=$CONFIG_SITE 1949elif test "x$prefix" != xNONE; then 1950 ac_site_file1=$prefix/share/config.site 1951 ac_site_file2=$prefix/etc/config.site 1952else 1953 ac_site_file1=$ac_default_prefix/share/config.site 1954 ac_site_file2=$ac_default_prefix/etc/config.site 1955fi 1956for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1957do 1958 test "x$ac_site_file" = xNONE && continue 1959 if test -r "$ac_site_file"; then 1960 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1961$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1962 sed 's/^/| /' "$ac_site_file" >&5 1963 . "$ac_site_file" 1964 fi 1965done 1966 1967if test -r "$cache_file"; then 1968 # Some versions of bash will fail to source /dev/null (special 1969 # files actually), so we avoid doing that. 1970 if test -f "$cache_file"; then 1971 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1972$as_echo "$as_me: loading cache $cache_file" >&6;} 1973 case $cache_file in 1974 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1975 *) . "./$cache_file";; 1976 esac 1977 fi 1978else 1979 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1980$as_echo "$as_me: creating cache $cache_file" >&6;} 1981 >$cache_file 1982fi 1983 1984# Check that the precious variables saved in the cache have kept the same 1985# value. 1986ac_cache_corrupted=false 1987for ac_var in $ac_precious_vars; do 1988 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1989 eval ac_new_set=\$ac_env_${ac_var}_set 1990 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1991 eval ac_new_val=\$ac_env_${ac_var}_value 1992 case $ac_old_set,$ac_new_set in 1993 set,) 1994 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1995$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1996 ac_cache_corrupted=: ;; 1997 ,set) 1998 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1999$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2000 ac_cache_corrupted=: ;; 2001 ,);; 2002 *) 2003 if test "x$ac_old_val" != "x$ac_new_val"; then 2004 # differences in whitespace do not lead to failure. 2005 ac_old_val_w=`echo x $ac_old_val` 2006 ac_new_val_w=`echo x $ac_new_val` 2007 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2008 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2009$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2010 ac_cache_corrupted=: 2011 else 2012 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2013$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2014 eval $ac_var=\$ac_old_val 2015 fi 2016 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2017$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2018 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2019$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2020 fi;; 2021 esac 2022 # Pass precious variables to config.status. 2023 if test "$ac_new_set" = set; then 2024 case $ac_new_val in 2025 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2026 *) ac_arg=$ac_var=$ac_new_val ;; 2027 esac 2028 case " $ac_configure_args " in 2029 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2030 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2031 esac 2032 fi 2033done 2034if $ac_cache_corrupted; then 2035 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2037 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2038$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2039 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2040$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2041 { (exit 1); exit 1; }; } 2042fi 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068ac_ext=c 2069ac_cpp='$CPP $CPPFLAGS' 2070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2072ac_compiler_gnu=$ac_cv_c_compiler_gnu 2073 2074 2075 2076 2077ac_config_headers="$ac_config_headers config.h" 2078 2079ac_aux_dir= 2080for ac_dir in . "$srcdir"/.; do 2081 if test -f "$ac_dir/install-sh"; then 2082 ac_aux_dir=$ac_dir 2083 ac_install_sh="$ac_aux_dir/install-sh -c" 2084 break 2085 elif test -f "$ac_dir/install.sh"; then 2086 ac_aux_dir=$ac_dir 2087 ac_install_sh="$ac_aux_dir/install.sh -c" 2088 break 2089 elif test -f "$ac_dir/shtool"; then 2090 ac_aux_dir=$ac_dir 2091 ac_install_sh="$ac_aux_dir/shtool install -c" 2092 break 2093 fi 2094done 2095if test -z "$ac_aux_dir"; then 2096 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 2097$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 2098 { (exit 1); exit 1; }; } 2099fi 2100 2101# These three variables are undocumented and unsupported, 2102# and are intended to be withdrawn in a future Autoconf release. 2103# They can cause serious problems if a builder's source tree is in a directory 2104# whose full name contains unusual characters. 2105ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2106ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2107ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2108 2109 2110 2111am__api_version='1.10' 2112 2113# Find a good install program. We prefer a C program (faster), 2114# so one script is as good as another. But avoid the broken or 2115# incompatible versions: 2116# SysV /etc/install, /usr/sbin/install 2117# SunOS /usr/etc/install 2118# IRIX /sbin/install 2119# AIX /bin/install 2120# AmigaOS /C/install, which installs bootblocks on floppy discs 2121# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2122# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2123# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2124# OS/2's system install, which has a completely different semantic 2125# ./install, which can be erroneously created by make from ./install.sh. 2126# Reject install programs that cannot install multiple files. 2127{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2128$as_echo_n "checking for a BSD-compatible install... " >&6; } 2129if test -z "$INSTALL"; then 2130if test "${ac_cv_path_install+set}" = set; then 2131 $as_echo_n "(cached) " >&6 2132else 2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2134for as_dir in $PATH 2135do 2136 IFS=$as_save_IFS 2137 test -z "$as_dir" && as_dir=. 2138 # Account for people who put trailing slashes in PATH elements. 2139case $as_dir/ in 2140 ./ | .// | /cC/* | \ 2141 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2142 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2143 /usr/ucb/* ) ;; 2144 *) 2145 # OSF1 and SCO ODT 3.0 have their own names for install. 2146 # Don't use installbsd from OSF since it installs stuff as root 2147 # by default. 2148 for ac_prog in ginstall scoinst install; do 2149 for ac_exec_ext in '' $ac_executable_extensions; do 2150 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2151 if test $ac_prog = install && 2152 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2153 # AIX install. It has an incompatible calling convention. 2154 : 2155 elif test $ac_prog = install && 2156 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2157 # program-specific install script used by HP pwplus--don't use. 2158 : 2159 else 2160 rm -rf conftest.one conftest.two conftest.dir 2161 echo one > conftest.one 2162 echo two > conftest.two 2163 mkdir conftest.dir 2164 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2165 test -s conftest.one && test -s conftest.two && 2166 test -s conftest.dir/conftest.one && 2167 test -s conftest.dir/conftest.two 2168 then 2169 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2170 break 3 2171 fi 2172 fi 2173 fi 2174 done 2175 done 2176 ;; 2177esac 2178 2179done 2180IFS=$as_save_IFS 2181 2182rm -rf conftest.one conftest.two conftest.dir 2183 2184fi 2185 if test "${ac_cv_path_install+set}" = set; then 2186 INSTALL=$ac_cv_path_install 2187 else 2188 # As a last resort, use the slow shell script. Don't cache a 2189 # value for INSTALL within a source directory, because that will 2190 # break other packages using the cache if that directory is 2191 # removed, or if the value is a relative name. 2192 INSTALL=$ac_install_sh 2193 fi 2194fi 2195{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2196$as_echo "$INSTALL" >&6; } 2197 2198# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2199# It thinks the first close brace ends the variable substitution. 2200test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2201 2202test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2203 2204test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2205 2206{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2207$as_echo_n "checking whether build environment is sane... " >&6; } 2208# Just in case 2209sleep 1 2210echo timestamp > conftest.file 2211# Do `set' in a subshell so we don't clobber the current shell's 2212# arguments. Must try -L first in case configure is actually a 2213# symlink; some systems play weird games with the mod time of symlinks 2214# (eg FreeBSD returns the mod time of the symlink's containing 2215# directory). 2216if ( 2217 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2218 if test "$*" = "X"; then 2219 # -L didn't work. 2220 set X `ls -t $srcdir/configure conftest.file` 2221 fi 2222 rm -f conftest.file 2223 if test "$*" != "X $srcdir/configure conftest.file" \ 2224 && test "$*" != "X conftest.file $srcdir/configure"; then 2225 2226 # If neither matched, then we have a broken ls. This can happen 2227 # if, for instance, CONFIG_SHELL is bash and it inherits a 2228 # broken ls alias from the environment. This has actually 2229 # happened. Such a system could not be considered "sane". 2230 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2231alias in your environment" >&5 2232$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2233alias in your environment" >&2;} 2234 { (exit 1); exit 1; }; } 2235 fi 2236 2237 test "$2" = conftest.file 2238 ) 2239then 2240 # Ok. 2241 : 2242else 2243 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2244Check your system clock" >&5 2245$as_echo "$as_me: error: newly created file is older than distributed files! 2246Check your system clock" >&2;} 2247 { (exit 1); exit 1; }; } 2248fi 2249{ $as_echo "$as_me:$LINENO: result: yes" >&5 2250$as_echo "yes" >&6; } 2251test "$program_prefix" != NONE && 2252 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2253# Use a double $ so make ignores it. 2254test "$program_suffix" != NONE && 2255 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2256# Double any \ or $. 2257# By default was `s,x,x', remove it if useless. 2258ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2259program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2260 2261# expand $ac_aux_dir to an absolute path 2262am_aux_dir=`cd $ac_aux_dir && pwd` 2263 2264test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2265# Use eval to expand $SHELL 2266if eval "$MISSING --run true"; then 2267 am_missing_run="$MISSING --run " 2268else 2269 am_missing_run= 2270 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2271$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2272fi 2273 2274{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2275$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2276if test -z "$MKDIR_P"; then 2277 if test "${ac_cv_path_mkdir+set}" = set; then 2278 $as_echo_n "(cached) " >&6 2279else 2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2281for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2282do 2283 IFS=$as_save_IFS 2284 test -z "$as_dir" && as_dir=. 2285 for ac_prog in mkdir gmkdir; do 2286 for ac_exec_ext in '' $ac_executable_extensions; do 2287 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2288 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2289 'mkdir (GNU coreutils) '* | \ 2290 'mkdir (coreutils) '* | \ 2291 'mkdir (fileutils) '4.1*) 2292 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2293 break 3;; 2294 esac 2295 done 2296 done 2297done 2298IFS=$as_save_IFS 2299 2300fi 2301 2302 if test "${ac_cv_path_mkdir+set}" = set; then 2303 MKDIR_P="$ac_cv_path_mkdir -p" 2304 else 2305 # As a last resort, use the slow shell script. Don't cache a 2306 # value for MKDIR_P within a source directory, because that will 2307 # break other packages using the cache if that directory is 2308 # removed, or if the value is a relative name. 2309 test -d ./--version && rmdir ./--version 2310 MKDIR_P="$ac_install_sh -d" 2311 fi 2312fi 2313{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2314$as_echo "$MKDIR_P" >&6; } 2315 2316mkdir_p="$MKDIR_P" 2317case $mkdir_p in 2318 [\\/$]* | ?:[\\/]*) ;; 2319 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2320esac 2321 2322for ac_prog in gawk mawk nawk awk 2323do 2324 # Extract the first word of "$ac_prog", so it can be a program name with args. 2325set dummy $ac_prog; ac_word=$2 2326{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2327$as_echo_n "checking for $ac_word... " >&6; } 2328if test "${ac_cv_prog_AWK+set}" = set; then 2329 $as_echo_n "(cached) " >&6 2330else 2331 if test -n "$AWK"; then 2332 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2333else 2334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2335for as_dir in $PATH 2336do 2337 IFS=$as_save_IFS 2338 test -z "$as_dir" && as_dir=. 2339 for ac_exec_ext in '' $ac_executable_extensions; do 2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2341 ac_cv_prog_AWK="$ac_prog" 2342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2343 break 2 2344 fi 2345done 2346done 2347IFS=$as_save_IFS 2348 2349fi 2350fi 2351AWK=$ac_cv_prog_AWK 2352if test -n "$AWK"; then 2353 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2354$as_echo "$AWK" >&6; } 2355else 2356 { $as_echo "$as_me:$LINENO: result: no" >&5 2357$as_echo "no" >&6; } 2358fi 2359 2360 2361 test -n "$AWK" && break 2362done 2363 2364{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2365$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2366set x ${MAKE-make} 2367ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2368if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2369 $as_echo_n "(cached) " >&6 2370else 2371 cat >conftest.make <<\_ACEOF 2372SHELL = /bin/sh 2373all: 2374 @echo '@@@%%%=$(MAKE)=@@@%%%' 2375_ACEOF 2376# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2377case `${MAKE-make} -f conftest.make 2>/dev/null` in 2378 *@@@%%%=?*=@@@%%%*) 2379 eval ac_cv_prog_make_${ac_make}_set=yes;; 2380 *) 2381 eval ac_cv_prog_make_${ac_make}_set=no;; 2382esac 2383rm -f conftest.make 2384fi 2385if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2386 { $as_echo "$as_me:$LINENO: result: yes" >&5 2387$as_echo "yes" >&6; } 2388 SET_MAKE= 2389else 2390 { $as_echo "$as_me:$LINENO: result: no" >&5 2391$as_echo "no" >&6; } 2392 SET_MAKE="MAKE=${MAKE-make}" 2393fi 2394 2395rm -rf .tst 2>/dev/null 2396mkdir .tst 2>/dev/null 2397if test -d .tst; then 2398 am__leading_dot=. 2399else 2400 am__leading_dot=_ 2401fi 2402rmdir .tst 2>/dev/null 2403 2404if test "`cd $srcdir && pwd`" != "`pwd`"; then 2405 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2406 # is not polluted with repeated "-I." 2407 am__isrc=' -I$(srcdir)' 2408 # test to see if srcdir already configured 2409 if test -f $srcdir/config.status; then 2410 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2411$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2412 { (exit 1); exit 1; }; } 2413 fi 2414fi 2415 2416# test whether we have cygpath 2417if test -z "$CYGPATH_W"; then 2418 if (cygpath --version) >/dev/null 2>/dev/null; then 2419 CYGPATH_W='cygpath -w' 2420 else 2421 CYGPATH_W=echo 2422 fi 2423fi 2424 2425 2426# Define the identity of the package. 2427 PACKAGE='xf86-video-s3virge' 2428 VERSION='1.10.3' 2429 2430 2431cat >>confdefs.h <<_ACEOF 2432#define PACKAGE "$PACKAGE" 2433_ACEOF 2434 2435 2436cat >>confdefs.h <<_ACEOF 2437#define VERSION "$VERSION" 2438_ACEOF 2439 2440# Some tools Automake needs. 2441 2442ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2443 2444 2445AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2446 2447 2448AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2449 2450 2451AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2452 2453 2454MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2455 2456install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2457 2458# Installed binaries are usually stripped using `strip' when the user 2459# run `make install-strip'. However `strip' might not be the right 2460# tool to use in cross-compilation environments, therefore Automake 2461# will honor the `STRIP' environment variable to overrule this program. 2462if test "$cross_compiling" != no; then 2463 if test -n "$ac_tool_prefix"; then 2464 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2465set dummy ${ac_tool_prefix}strip; ac_word=$2 2466{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2467$as_echo_n "checking for $ac_word... " >&6; } 2468if test "${ac_cv_prog_STRIP+set}" = set; then 2469 $as_echo_n "(cached) " >&6 2470else 2471 if test -n "$STRIP"; then 2472 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2473else 2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2475for as_dir in $PATH 2476do 2477 IFS=$as_save_IFS 2478 test -z "$as_dir" && as_dir=. 2479 for ac_exec_ext in '' $ac_executable_extensions; do 2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2481 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2482 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2483 break 2 2484 fi 2485done 2486done 2487IFS=$as_save_IFS 2488 2489fi 2490fi 2491STRIP=$ac_cv_prog_STRIP 2492if test -n "$STRIP"; then 2493 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2494$as_echo "$STRIP" >&6; } 2495else 2496 { $as_echo "$as_me:$LINENO: result: no" >&5 2497$as_echo "no" >&6; } 2498fi 2499 2500 2501fi 2502if test -z "$ac_cv_prog_STRIP"; then 2503 ac_ct_STRIP=$STRIP 2504 # Extract the first word of "strip", so it can be a program name with args. 2505set dummy strip; ac_word=$2 2506{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2507$as_echo_n "checking for $ac_word... " >&6; } 2508if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2509 $as_echo_n "(cached) " >&6 2510else 2511 if test -n "$ac_ct_STRIP"; then 2512 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2513else 2514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2515for as_dir in $PATH 2516do 2517 IFS=$as_save_IFS 2518 test -z "$as_dir" && as_dir=. 2519 for ac_exec_ext in '' $ac_executable_extensions; do 2520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2521 ac_cv_prog_ac_ct_STRIP="strip" 2522 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2523 break 2 2524 fi 2525done 2526done 2527IFS=$as_save_IFS 2528 2529fi 2530fi 2531ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2532if test -n "$ac_ct_STRIP"; then 2533 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2534$as_echo "$ac_ct_STRIP" >&6; } 2535else 2536 { $as_echo "$as_me:$LINENO: result: no" >&5 2537$as_echo "no" >&6; } 2538fi 2539 2540 if test "x$ac_ct_STRIP" = x; then 2541 STRIP=":" 2542 else 2543 case $cross_compiling:$ac_tool_warned in 2544yes:) 2545{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2547ac_tool_warned=yes ;; 2548esac 2549 STRIP=$ac_ct_STRIP 2550 fi 2551else 2552 STRIP="$ac_cv_prog_STRIP" 2553fi 2554 2555fi 2556INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2557 2558# We need awk for the "check" target. The system "awk" is bad on 2559# some platforms. 2560# Always define AMTAR for backward compatibility. 2561 2562AMTAR=${AMTAR-"${am_missing_run}tar"} 2563 2564am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2565 2566 2567 2568 2569 2570 2571{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2572$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2573 # Check whether --enable-maintainer-mode was given. 2574if test "${enable_maintainer_mode+set}" = set; then 2575 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2576else 2577 USE_MAINTAINER_MODE=no 2578fi 2579 2580 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2581$as_echo "$USE_MAINTAINER_MODE" >&6; } 2582 if test $USE_MAINTAINER_MODE = yes; then 2583 MAINTAINER_MODE_TRUE= 2584 MAINTAINER_MODE_FALSE='#' 2585else 2586 MAINTAINER_MODE_TRUE='#' 2587 MAINTAINER_MODE_FALSE= 2588fi 2589 2590 MAINT=$MAINTAINER_MODE_TRUE 2591 2592 2593 2594# Checks for programs. 2595# Check whether --enable-static was given. 2596if test "${enable_static+set}" = set; then 2597 enableval=$enable_static; p=${PACKAGE-default} 2598 case $enableval in 2599 yes) enable_static=yes ;; 2600 no) enable_static=no ;; 2601 *) 2602 enable_static=no 2603 # Look at the argument we got. We use all the common list separators. 2604 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2605 for pkg in $enableval; do 2606 IFS="$lt_save_ifs" 2607 if test "X$pkg" = "X$p"; then 2608 enable_static=yes 2609 fi 2610 done 2611 IFS="$lt_save_ifs" 2612 ;; 2613 esac 2614else 2615 enable_static=no 2616fi 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626case `pwd` in 2627 *\ * | *\ *) 2628 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2629$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2630esac 2631 2632 2633 2634macro_version='2.2.6' 2635macro_revision='1.3012' 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649ltmain="$ac_aux_dir/ltmain.sh" 2650 2651# Make sure we can run config.sub. 2652$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2653 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2654$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2655 { (exit 1); exit 1; }; } 2656 2657{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2658$as_echo_n "checking build system type... " >&6; } 2659if test "${ac_cv_build+set}" = set; then 2660 $as_echo_n "(cached) " >&6 2661else 2662 ac_build_alias=$build_alias 2663test "x$ac_build_alias" = x && 2664 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2665test "x$ac_build_alias" = x && 2666 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2667$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2668 { (exit 1); exit 1; }; } 2669ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2670 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2671$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2672 { (exit 1); exit 1; }; } 2673 2674fi 2675{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2676$as_echo "$ac_cv_build" >&6; } 2677case $ac_cv_build in 2678*-*-*) ;; 2679*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2680$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2681 { (exit 1); exit 1; }; };; 2682esac 2683build=$ac_cv_build 2684ac_save_IFS=$IFS; IFS='-' 2685set x $ac_cv_build 2686shift 2687build_cpu=$1 2688build_vendor=$2 2689shift; shift 2690# Remember, the first character of IFS is used to create $*, 2691# except with old shells: 2692build_os=$* 2693IFS=$ac_save_IFS 2694case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2695 2696 2697{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2698$as_echo_n "checking host system type... " >&6; } 2699if test "${ac_cv_host+set}" = set; then 2700 $as_echo_n "(cached) " >&6 2701else 2702 if test "x$host_alias" = x; then 2703 ac_cv_host=$ac_cv_build 2704else 2705 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2706 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2707$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2708 { (exit 1); exit 1; }; } 2709fi 2710 2711fi 2712{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2713$as_echo "$ac_cv_host" >&6; } 2714case $ac_cv_host in 2715*-*-*) ;; 2716*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2717$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2718 { (exit 1); exit 1; }; };; 2719esac 2720host=$ac_cv_host 2721ac_save_IFS=$IFS; IFS='-' 2722set x $ac_cv_host 2723shift 2724host_cpu=$1 2725host_vendor=$2 2726shift; shift 2727# Remember, the first character of IFS is used to create $*, 2728# except with old shells: 2729host_os=$* 2730IFS=$ac_save_IFS 2731case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2732 2733 2734DEPDIR="${am__leading_dot}deps" 2735 2736ac_config_commands="$ac_config_commands depfiles" 2737 2738 2739am_make=${MAKE-make} 2740cat > confinc << 'END' 2741am__doit: 2742 @echo done 2743.PHONY: am__doit 2744END 2745# If we don't find an include directive, just comment out the code. 2746{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2747$as_echo_n "checking for style of include used by $am_make... " >&6; } 2748am__include="#" 2749am__quote= 2750_am_result=none 2751# First try GNU make style include. 2752echo "include confinc" > confmf 2753# We grep out `Entering directory' and `Leaving directory' 2754# messages which can occur if `w' ends up in MAKEFLAGS. 2755# In particular we don't look at `^make:' because GNU make might 2756# be invoked under some other name (usually "gmake"), in which 2757# case it prints its new name instead of `make'. 2758if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2759 am__include=include 2760 am__quote= 2761 _am_result=GNU 2762fi 2763# Now try BSD make style include. 2764if test "$am__include" = "#"; then 2765 echo '.include "confinc"' > confmf 2766 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2767 am__include=.include 2768 am__quote="\"" 2769 _am_result=BSD 2770 fi 2771fi 2772 2773 2774{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 2775$as_echo "$_am_result" >&6; } 2776rm -f confinc confmf 2777 2778# Check whether --enable-dependency-tracking was given. 2779if test "${enable_dependency_tracking+set}" = set; then 2780 enableval=$enable_dependency_tracking; 2781fi 2782 2783if test "x$enable_dependency_tracking" != xno; then 2784 am_depcomp="$ac_aux_dir/depcomp" 2785 AMDEPBACKSLASH='\' 2786fi 2787 if test "x$enable_dependency_tracking" != xno; then 2788 AMDEP_TRUE= 2789 AMDEP_FALSE='#' 2790else 2791 AMDEP_TRUE='#' 2792 AMDEP_FALSE= 2793fi 2794 2795 2796ac_ext=c 2797ac_cpp='$CPP $CPPFLAGS' 2798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2800ac_compiler_gnu=$ac_cv_c_compiler_gnu 2801if test -n "$ac_tool_prefix"; then 2802 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2803set dummy ${ac_tool_prefix}gcc; ac_word=$2 2804{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2805$as_echo_n "checking for $ac_word... " >&6; } 2806if test "${ac_cv_prog_CC+set}" = set; then 2807 $as_echo_n "(cached) " >&6 2808else 2809 if test -n "$CC"; then 2810 ac_cv_prog_CC="$CC" # Let the user override the test. 2811else 2812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2813for as_dir in $PATH 2814do 2815 IFS=$as_save_IFS 2816 test -z "$as_dir" && as_dir=. 2817 for ac_exec_ext in '' $ac_executable_extensions; do 2818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2819 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2820 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2821 break 2 2822 fi 2823done 2824done 2825IFS=$as_save_IFS 2826 2827fi 2828fi 2829CC=$ac_cv_prog_CC 2830if test -n "$CC"; then 2831 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2832$as_echo "$CC" >&6; } 2833else 2834 { $as_echo "$as_me:$LINENO: result: no" >&5 2835$as_echo "no" >&6; } 2836fi 2837 2838 2839fi 2840if test -z "$ac_cv_prog_CC"; then 2841 ac_ct_CC=$CC 2842 # Extract the first word of "gcc", so it can be a program name with args. 2843set dummy gcc; ac_word=$2 2844{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2845$as_echo_n "checking for $ac_word... " >&6; } 2846if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2847 $as_echo_n "(cached) " >&6 2848else 2849 if test -n "$ac_ct_CC"; then 2850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2851else 2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2853for as_dir in $PATH 2854do 2855 IFS=$as_save_IFS 2856 test -z "$as_dir" && as_dir=. 2857 for ac_exec_ext in '' $ac_executable_extensions; do 2858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2859 ac_cv_prog_ac_ct_CC="gcc" 2860 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2861 break 2 2862 fi 2863done 2864done 2865IFS=$as_save_IFS 2866 2867fi 2868fi 2869ac_ct_CC=$ac_cv_prog_ac_ct_CC 2870if test -n "$ac_ct_CC"; then 2871 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2872$as_echo "$ac_ct_CC" >&6; } 2873else 2874 { $as_echo "$as_me:$LINENO: result: no" >&5 2875$as_echo "no" >&6; } 2876fi 2877 2878 if test "x$ac_ct_CC" = x; then 2879 CC="" 2880 else 2881 case $cross_compiling:$ac_tool_warned in 2882yes:) 2883{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2885ac_tool_warned=yes ;; 2886esac 2887 CC=$ac_ct_CC 2888 fi 2889else 2890 CC="$ac_cv_prog_CC" 2891fi 2892 2893if test -z "$CC"; then 2894 if test -n "$ac_tool_prefix"; then 2895 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2896set dummy ${ac_tool_prefix}cc; ac_word=$2 2897{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2898$as_echo_n "checking for $ac_word... " >&6; } 2899if test "${ac_cv_prog_CC+set}" = set; then 2900 $as_echo_n "(cached) " >&6 2901else 2902 if test -n "$CC"; then 2903 ac_cv_prog_CC="$CC" # Let the user override the test. 2904else 2905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2906for as_dir in $PATH 2907do 2908 IFS=$as_save_IFS 2909 test -z "$as_dir" && as_dir=. 2910 for ac_exec_ext in '' $ac_executable_extensions; do 2911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2912 ac_cv_prog_CC="${ac_tool_prefix}cc" 2913 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2914 break 2 2915 fi 2916done 2917done 2918IFS=$as_save_IFS 2919 2920fi 2921fi 2922CC=$ac_cv_prog_CC 2923if test -n "$CC"; then 2924 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2925$as_echo "$CC" >&6; } 2926else 2927 { $as_echo "$as_me:$LINENO: result: no" >&5 2928$as_echo "no" >&6; } 2929fi 2930 2931 2932 fi 2933fi 2934if test -z "$CC"; then 2935 # Extract the first word of "cc", so it can be a program name with args. 2936set dummy cc; ac_word=$2 2937{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2938$as_echo_n "checking for $ac_word... " >&6; } 2939if test "${ac_cv_prog_CC+set}" = set; then 2940 $as_echo_n "(cached) " >&6 2941else 2942 if test -n "$CC"; then 2943 ac_cv_prog_CC="$CC" # Let the user override the test. 2944else 2945 ac_prog_rejected=no 2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2947for as_dir in $PATH 2948do 2949 IFS=$as_save_IFS 2950 test -z "$as_dir" && as_dir=. 2951 for ac_exec_ext in '' $ac_executable_extensions; do 2952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2953 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2954 ac_prog_rejected=yes 2955 continue 2956 fi 2957 ac_cv_prog_CC="cc" 2958 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2959 break 2 2960 fi 2961done 2962done 2963IFS=$as_save_IFS 2964 2965if test $ac_prog_rejected = yes; then 2966 # We found a bogon in the path, so make sure we never use it. 2967 set dummy $ac_cv_prog_CC 2968 shift 2969 if test $# != 0; then 2970 # We chose a different compiler from the bogus one. 2971 # However, it has the same basename, so the bogon will be chosen 2972 # first if we set CC to just the basename; use the full file name. 2973 shift 2974 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2975 fi 2976fi 2977fi 2978fi 2979CC=$ac_cv_prog_CC 2980if test -n "$CC"; then 2981 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2982$as_echo "$CC" >&6; } 2983else 2984 { $as_echo "$as_me:$LINENO: result: no" >&5 2985$as_echo "no" >&6; } 2986fi 2987 2988 2989fi 2990if test -z "$CC"; then 2991 if test -n "$ac_tool_prefix"; then 2992 for ac_prog in cl.exe 2993 do 2994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2995set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2996{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2997$as_echo_n "checking for $ac_word... " >&6; } 2998if test "${ac_cv_prog_CC+set}" = set; then 2999 $as_echo_n "(cached) " >&6 3000else 3001 if test -n "$CC"; then 3002 ac_cv_prog_CC="$CC" # Let the user override the test. 3003else 3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3005for as_dir in $PATH 3006do 3007 IFS=$as_save_IFS 3008 test -z "$as_dir" && as_dir=. 3009 for ac_exec_ext in '' $ac_executable_extensions; do 3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3011 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3012 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3013 break 2 3014 fi 3015done 3016done 3017IFS=$as_save_IFS 3018 3019fi 3020fi 3021CC=$ac_cv_prog_CC 3022if test -n "$CC"; then 3023 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3024$as_echo "$CC" >&6; } 3025else 3026 { $as_echo "$as_me:$LINENO: result: no" >&5 3027$as_echo "no" >&6; } 3028fi 3029 3030 3031 test -n "$CC" && break 3032 done 3033fi 3034if test -z "$CC"; then 3035 ac_ct_CC=$CC 3036 for ac_prog in cl.exe 3037do 3038 # Extract the first word of "$ac_prog", so it can be a program name with args. 3039set dummy $ac_prog; ac_word=$2 3040{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3041$as_echo_n "checking for $ac_word... " >&6; } 3042if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3043 $as_echo_n "(cached) " >&6 3044else 3045 if test -n "$ac_ct_CC"; then 3046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3047else 3048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3049for as_dir in $PATH 3050do 3051 IFS=$as_save_IFS 3052 test -z "$as_dir" && as_dir=. 3053 for ac_exec_ext in '' $ac_executable_extensions; do 3054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3055 ac_cv_prog_ac_ct_CC="$ac_prog" 3056 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3057 break 2 3058 fi 3059done 3060done 3061IFS=$as_save_IFS 3062 3063fi 3064fi 3065ac_ct_CC=$ac_cv_prog_ac_ct_CC 3066if test -n "$ac_ct_CC"; then 3067 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3068$as_echo "$ac_ct_CC" >&6; } 3069else 3070 { $as_echo "$as_me:$LINENO: result: no" >&5 3071$as_echo "no" >&6; } 3072fi 3073 3074 3075 test -n "$ac_ct_CC" && break 3076done 3077 3078 if test "x$ac_ct_CC" = x; then 3079 CC="" 3080 else 3081 case $cross_compiling:$ac_tool_warned in 3082yes:) 3083{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3085ac_tool_warned=yes ;; 3086esac 3087 CC=$ac_ct_CC 3088 fi 3089fi 3090 3091fi 3092 3093 3094test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3095$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3096{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3097See \`config.log' for more details." >&5 3098$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3099See \`config.log' for more details." >&2;} 3100 { (exit 1); exit 1; }; }; } 3101 3102# Provide some information about the compiler. 3103$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3104set X $ac_compile 3105ac_compiler=$2 3106{ (ac_try="$ac_compiler --version >&5" 3107case "(($ac_try" in 3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3109 *) ac_try_echo=$ac_try;; 3110esac 3111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3112$as_echo "$ac_try_echo") >&5 3113 (eval "$ac_compiler --version >&5") 2>&5 3114 ac_status=$? 3115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3116 (exit $ac_status); } 3117{ (ac_try="$ac_compiler -v >&5" 3118case "(($ac_try" in 3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3120 *) ac_try_echo=$ac_try;; 3121esac 3122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3123$as_echo "$ac_try_echo") >&5 3124 (eval "$ac_compiler -v >&5") 2>&5 3125 ac_status=$? 3126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3127 (exit $ac_status); } 3128{ (ac_try="$ac_compiler -V >&5" 3129case "(($ac_try" in 3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3131 *) ac_try_echo=$ac_try;; 3132esac 3133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3134$as_echo "$ac_try_echo") >&5 3135 (eval "$ac_compiler -V >&5") 2>&5 3136 ac_status=$? 3137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3138 (exit $ac_status); } 3139 3140cat >conftest.$ac_ext <<_ACEOF 3141/* confdefs.h. */ 3142_ACEOF 3143cat confdefs.h >>conftest.$ac_ext 3144cat >>conftest.$ac_ext <<_ACEOF 3145/* end confdefs.h. */ 3146 3147int 3148main () 3149{ 3150 3151 ; 3152 return 0; 3153} 3154_ACEOF 3155ac_clean_files_save=$ac_clean_files 3156ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3157# Try to create an executable without -o first, disregard a.out. 3158# It will help us diagnose broken compilers, and finding out an intuition 3159# of exeext. 3160{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3161$as_echo_n "checking for C compiler default output file name... " >&6; } 3162ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3163 3164# The possible output files: 3165ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3166 3167ac_rmfiles= 3168for ac_file in $ac_files 3169do 3170 case $ac_file in 3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3172 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3173 esac 3174done 3175rm -f $ac_rmfiles 3176 3177if { (ac_try="$ac_link_default" 3178case "(($ac_try" in 3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3180 *) ac_try_echo=$ac_try;; 3181esac 3182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3183$as_echo "$ac_try_echo") >&5 3184 (eval "$ac_link_default") 2>&5 3185 ac_status=$? 3186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3187 (exit $ac_status); }; then 3188 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3189# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3190# in a Makefile. We should not override ac_cv_exeext if it was cached, 3191# so that the user can short-circuit this test for compilers unknown to 3192# Autoconf. 3193for ac_file in $ac_files '' 3194do 3195 test -f "$ac_file" || continue 3196 case $ac_file in 3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3198 ;; 3199 [ab].out ) 3200 # We found the default executable, but exeext='' is most 3201 # certainly right. 3202 break;; 3203 *.* ) 3204 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3205 then :; else 3206 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3207 fi 3208 # We set ac_cv_exeext here because the later test for it is not 3209 # safe: cross compilers may not add the suffix if given an `-o' 3210 # argument, so we may need to know it at that point already. 3211 # Even if this section looks crufty: it has the advantage of 3212 # actually working. 3213 break;; 3214 * ) 3215 break;; 3216 esac 3217done 3218test "$ac_cv_exeext" = no && ac_cv_exeext= 3219 3220else 3221 ac_file='' 3222fi 3223 3224{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3225$as_echo "$ac_file" >&6; } 3226if test -z "$ac_file"; then 3227 $as_echo "$as_me: failed program was:" >&5 3228sed 's/^/| /' conftest.$ac_ext >&5 3229 3230{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3232{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3233See \`config.log' for more details." >&5 3234$as_echo "$as_me: error: C compiler cannot create executables 3235See \`config.log' for more details." >&2;} 3236 { (exit 77); exit 77; }; }; } 3237fi 3238 3239ac_exeext=$ac_cv_exeext 3240 3241# Check that the compiler produces executables we can run. If not, either 3242# the compiler is broken, or we cross compile. 3243{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3244$as_echo_n "checking whether the C compiler works... " >&6; } 3245# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3246# If not cross compiling, check that we can run a simple program. 3247if test "$cross_compiling" != yes; then 3248 if { ac_try='./$ac_file' 3249 { (case "(($ac_try" in 3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3251 *) ac_try_echo=$ac_try;; 3252esac 3253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3254$as_echo "$ac_try_echo") >&5 3255 (eval "$ac_try") 2>&5 3256 ac_status=$? 3257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3258 (exit $ac_status); }; }; then 3259 cross_compiling=no 3260 else 3261 if test "$cross_compiling" = maybe; then 3262 cross_compiling=yes 3263 else 3264 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3266{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3267If you meant to cross compile, use \`--host'. 3268See \`config.log' for more details." >&5 3269$as_echo "$as_me: error: cannot run C compiled programs. 3270If you meant to cross compile, use \`--host'. 3271See \`config.log' for more details." >&2;} 3272 { (exit 1); exit 1; }; }; } 3273 fi 3274 fi 3275fi 3276{ $as_echo "$as_me:$LINENO: result: yes" >&5 3277$as_echo "yes" >&6; } 3278 3279rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3280ac_clean_files=$ac_clean_files_save 3281# Check that the compiler produces executables we can run. If not, either 3282# the compiler is broken, or we cross compile. 3283{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3284$as_echo_n "checking whether we are cross compiling... " >&6; } 3285{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3286$as_echo "$cross_compiling" >&6; } 3287 3288{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3289$as_echo_n "checking for suffix of executables... " >&6; } 3290if { (ac_try="$ac_link" 3291case "(($ac_try" in 3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3293 *) ac_try_echo=$ac_try;; 3294esac 3295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3296$as_echo "$ac_try_echo") >&5 3297 (eval "$ac_link") 2>&5 3298 ac_status=$? 3299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3300 (exit $ac_status); }; then 3301 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3302# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3303# work properly (i.e., refer to `conftest.exe'), while it won't with 3304# `rm'. 3305for ac_file in conftest.exe conftest conftest.*; do 3306 test -f "$ac_file" || continue 3307 case $ac_file in 3308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3309 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3310 break;; 3311 * ) break;; 3312 esac 3313done 3314else 3315 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3317{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3318See \`config.log' for more details." >&5 3319$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3320See \`config.log' for more details." >&2;} 3321 { (exit 1); exit 1; }; }; } 3322fi 3323 3324rm -f conftest$ac_cv_exeext 3325{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3326$as_echo "$ac_cv_exeext" >&6; } 3327 3328rm -f conftest.$ac_ext 3329EXEEXT=$ac_cv_exeext 3330ac_exeext=$EXEEXT 3331{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3332$as_echo_n "checking for suffix of object files... " >&6; } 3333if test "${ac_cv_objext+set}" = set; then 3334 $as_echo_n "(cached) " >&6 3335else 3336 cat >conftest.$ac_ext <<_ACEOF 3337/* confdefs.h. */ 3338_ACEOF 3339cat confdefs.h >>conftest.$ac_ext 3340cat >>conftest.$ac_ext <<_ACEOF 3341/* end confdefs.h. */ 3342 3343int 3344main () 3345{ 3346 3347 ; 3348 return 0; 3349} 3350_ACEOF 3351rm -f conftest.o conftest.obj 3352if { (ac_try="$ac_compile" 3353case "(($ac_try" in 3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3355 *) ac_try_echo=$ac_try;; 3356esac 3357eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3358$as_echo "$ac_try_echo") >&5 3359 (eval "$ac_compile") 2>&5 3360 ac_status=$? 3361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3362 (exit $ac_status); }; then 3363 for ac_file in conftest.o conftest.obj conftest.*; do 3364 test -f "$ac_file" || continue; 3365 case $ac_file in 3366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3367 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3368 break;; 3369 esac 3370done 3371else 3372 $as_echo "$as_me: failed program was:" >&5 3373sed 's/^/| /' conftest.$ac_ext >&5 3374 3375{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3377{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3378See \`config.log' for more details." >&5 3379$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3380See \`config.log' for more details." >&2;} 3381 { (exit 1); exit 1; }; }; } 3382fi 3383 3384rm -f conftest.$ac_cv_objext conftest.$ac_ext 3385fi 3386{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3387$as_echo "$ac_cv_objext" >&6; } 3388OBJEXT=$ac_cv_objext 3389ac_objext=$OBJEXT 3390{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3391$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3392if test "${ac_cv_c_compiler_gnu+set}" = set; then 3393 $as_echo_n "(cached) " >&6 3394else 3395 cat >conftest.$ac_ext <<_ACEOF 3396/* confdefs.h. */ 3397_ACEOF 3398cat confdefs.h >>conftest.$ac_ext 3399cat >>conftest.$ac_ext <<_ACEOF 3400/* end confdefs.h. */ 3401 3402int 3403main () 3404{ 3405#ifndef __GNUC__ 3406 choke me 3407#endif 3408 3409 ; 3410 return 0; 3411} 3412_ACEOF 3413rm -f conftest.$ac_objext 3414if { (ac_try="$ac_compile" 3415case "(($ac_try" in 3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3417 *) ac_try_echo=$ac_try;; 3418esac 3419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3420$as_echo "$ac_try_echo") >&5 3421 (eval "$ac_compile") 2>conftest.er1 3422 ac_status=$? 3423 grep -v '^ *+' conftest.er1 >conftest.err 3424 rm -f conftest.er1 3425 cat conftest.err >&5 3426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3427 (exit $ac_status); } && { 3428 test -z "$ac_c_werror_flag" || 3429 test ! -s conftest.err 3430 } && test -s conftest.$ac_objext; then 3431 ac_compiler_gnu=yes 3432else 3433 $as_echo "$as_me: failed program was:" >&5 3434sed 's/^/| /' conftest.$ac_ext >&5 3435 3436 ac_compiler_gnu=no 3437fi 3438 3439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3440ac_cv_c_compiler_gnu=$ac_compiler_gnu 3441 3442fi 3443{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3444$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3445if test $ac_compiler_gnu = yes; then 3446 GCC=yes 3447else 3448 GCC= 3449fi 3450ac_test_CFLAGS=${CFLAGS+set} 3451ac_save_CFLAGS=$CFLAGS 3452{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3453$as_echo_n "checking whether $CC accepts -g... " >&6; } 3454if test "${ac_cv_prog_cc_g+set}" = set; then 3455 $as_echo_n "(cached) " >&6 3456else 3457 ac_save_c_werror_flag=$ac_c_werror_flag 3458 ac_c_werror_flag=yes 3459 ac_cv_prog_cc_g=no 3460 CFLAGS="-g" 3461 cat >conftest.$ac_ext <<_ACEOF 3462/* confdefs.h. */ 3463_ACEOF 3464cat confdefs.h >>conftest.$ac_ext 3465cat >>conftest.$ac_ext <<_ACEOF 3466/* end confdefs.h. */ 3467 3468int 3469main () 3470{ 3471 3472 ; 3473 return 0; 3474} 3475_ACEOF 3476rm -f conftest.$ac_objext 3477if { (ac_try="$ac_compile" 3478case "(($ac_try" in 3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3480 *) ac_try_echo=$ac_try;; 3481esac 3482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3483$as_echo "$ac_try_echo") >&5 3484 (eval "$ac_compile") 2>conftest.er1 3485 ac_status=$? 3486 grep -v '^ *+' conftest.er1 >conftest.err 3487 rm -f conftest.er1 3488 cat conftest.err >&5 3489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3490 (exit $ac_status); } && { 3491 test -z "$ac_c_werror_flag" || 3492 test ! -s conftest.err 3493 } && test -s conftest.$ac_objext; then 3494 ac_cv_prog_cc_g=yes 3495else 3496 $as_echo "$as_me: failed program was:" >&5 3497sed 's/^/| /' conftest.$ac_ext >&5 3498 3499 CFLAGS="" 3500 cat >conftest.$ac_ext <<_ACEOF 3501/* confdefs.h. */ 3502_ACEOF 3503cat confdefs.h >>conftest.$ac_ext 3504cat >>conftest.$ac_ext <<_ACEOF 3505/* end confdefs.h. */ 3506 3507int 3508main () 3509{ 3510 3511 ; 3512 return 0; 3513} 3514_ACEOF 3515rm -f conftest.$ac_objext 3516if { (ac_try="$ac_compile" 3517case "(($ac_try" in 3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3519 *) ac_try_echo=$ac_try;; 3520esac 3521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3522$as_echo "$ac_try_echo") >&5 3523 (eval "$ac_compile") 2>conftest.er1 3524 ac_status=$? 3525 grep -v '^ *+' conftest.er1 >conftest.err 3526 rm -f conftest.er1 3527 cat conftest.err >&5 3528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3529 (exit $ac_status); } && { 3530 test -z "$ac_c_werror_flag" || 3531 test ! -s conftest.err 3532 } && test -s conftest.$ac_objext; then 3533 : 3534else 3535 $as_echo "$as_me: failed program was:" >&5 3536sed 's/^/| /' conftest.$ac_ext >&5 3537 3538 ac_c_werror_flag=$ac_save_c_werror_flag 3539 CFLAGS="-g" 3540 cat >conftest.$ac_ext <<_ACEOF 3541/* confdefs.h. */ 3542_ACEOF 3543cat confdefs.h >>conftest.$ac_ext 3544cat >>conftest.$ac_ext <<_ACEOF 3545/* end confdefs.h. */ 3546 3547int 3548main () 3549{ 3550 3551 ; 3552 return 0; 3553} 3554_ACEOF 3555rm -f conftest.$ac_objext 3556if { (ac_try="$ac_compile" 3557case "(($ac_try" in 3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3559 *) ac_try_echo=$ac_try;; 3560esac 3561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3562$as_echo "$ac_try_echo") >&5 3563 (eval "$ac_compile") 2>conftest.er1 3564 ac_status=$? 3565 grep -v '^ *+' conftest.er1 >conftest.err 3566 rm -f conftest.er1 3567 cat conftest.err >&5 3568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3569 (exit $ac_status); } && { 3570 test -z "$ac_c_werror_flag" || 3571 test ! -s conftest.err 3572 } && test -s conftest.$ac_objext; then 3573 ac_cv_prog_cc_g=yes 3574else 3575 $as_echo "$as_me: failed program was:" >&5 3576sed 's/^/| /' conftest.$ac_ext >&5 3577 3578 3579fi 3580 3581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3582fi 3583 3584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3585fi 3586 3587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3588 ac_c_werror_flag=$ac_save_c_werror_flag 3589fi 3590{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3591$as_echo "$ac_cv_prog_cc_g" >&6; } 3592if test "$ac_test_CFLAGS" = set; then 3593 CFLAGS=$ac_save_CFLAGS 3594elif test $ac_cv_prog_cc_g = yes; then 3595 if test "$GCC" = yes; then 3596 CFLAGS="-g -O2" 3597 else 3598 CFLAGS="-g" 3599 fi 3600else 3601 if test "$GCC" = yes; then 3602 CFLAGS="-O2" 3603 else 3604 CFLAGS= 3605 fi 3606fi 3607{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3608$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3609if test "${ac_cv_prog_cc_c89+set}" = set; then 3610 $as_echo_n "(cached) " >&6 3611else 3612 ac_cv_prog_cc_c89=no 3613ac_save_CC=$CC 3614cat >conftest.$ac_ext <<_ACEOF 3615/* confdefs.h. */ 3616_ACEOF 3617cat confdefs.h >>conftest.$ac_ext 3618cat >>conftest.$ac_ext <<_ACEOF 3619/* end confdefs.h. */ 3620#include <stdarg.h> 3621#include <stdio.h> 3622#include <sys/types.h> 3623#include <sys/stat.h> 3624/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3625struct buf { int x; }; 3626FILE * (*rcsopen) (struct buf *, struct stat *, int); 3627static char *e (p, i) 3628 char **p; 3629 int i; 3630{ 3631 return p[i]; 3632} 3633static char *f (char * (*g) (char **, int), char **p, ...) 3634{ 3635 char *s; 3636 va_list v; 3637 va_start (v,p); 3638 s = g (p, va_arg (v,int)); 3639 va_end (v); 3640 return s; 3641} 3642 3643/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3644 function prototypes and stuff, but not '\xHH' hex character constants. 3645 These don't provoke an error unfortunately, instead are silently treated 3646 as 'x'. The following induces an error, until -std is added to get 3647 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3648 array size at least. It's necessary to write '\x00'==0 to get something 3649 that's true only with -std. */ 3650int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3651 3652/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3653 inside strings and character constants. */ 3654#define FOO(x) 'x' 3655int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3656 3657int test (int i, double x); 3658struct s1 {int (*f) (int a);}; 3659struct s2 {int (*f) (double a);}; 3660int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3661int argc; 3662char **argv; 3663int 3664main () 3665{ 3666return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3667 ; 3668 return 0; 3669} 3670_ACEOF 3671for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3672 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3673do 3674 CC="$ac_save_CC $ac_arg" 3675 rm -f conftest.$ac_objext 3676if { (ac_try="$ac_compile" 3677case "(($ac_try" in 3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3679 *) ac_try_echo=$ac_try;; 3680esac 3681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3682$as_echo "$ac_try_echo") >&5 3683 (eval "$ac_compile") 2>conftest.er1 3684 ac_status=$? 3685 grep -v '^ *+' conftest.er1 >conftest.err 3686 rm -f conftest.er1 3687 cat conftest.err >&5 3688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3689 (exit $ac_status); } && { 3690 test -z "$ac_c_werror_flag" || 3691 test ! -s conftest.err 3692 } && test -s conftest.$ac_objext; then 3693 ac_cv_prog_cc_c89=$ac_arg 3694else 3695 $as_echo "$as_me: failed program was:" >&5 3696sed 's/^/| /' conftest.$ac_ext >&5 3697 3698 3699fi 3700 3701rm -f core conftest.err conftest.$ac_objext 3702 test "x$ac_cv_prog_cc_c89" != "xno" && break 3703done 3704rm -f conftest.$ac_ext 3705CC=$ac_save_CC 3706 3707fi 3708# AC_CACHE_VAL 3709case "x$ac_cv_prog_cc_c89" in 3710 x) 3711 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3712$as_echo "none needed" >&6; } ;; 3713 xno) 3714 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3715$as_echo "unsupported" >&6; } ;; 3716 *) 3717 CC="$CC $ac_cv_prog_cc_c89" 3718 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3719$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3720esac 3721 3722 3723ac_ext=c 3724ac_cpp='$CPP $CPPFLAGS' 3725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3727ac_compiler_gnu=$ac_cv_c_compiler_gnu 3728 3729depcc="$CC" am_compiler_list= 3730 3731{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3732$as_echo_n "checking dependency style of $depcc... " >&6; } 3733if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3734 $as_echo_n "(cached) " >&6 3735else 3736 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3737 # We make a subdir and do the tests there. Otherwise we can end up 3738 # making bogus files that we don't know about and never remove. For 3739 # instance it was reported that on HP-UX the gcc test will end up 3740 # making a dummy file named `D' -- because `-MD' means `put the output 3741 # in D'. 3742 mkdir conftest.dir 3743 # Copy depcomp to subdir because otherwise we won't find it if we're 3744 # using a relative directory. 3745 cp "$am_depcomp" conftest.dir 3746 cd conftest.dir 3747 # We will build objects and dependencies in a subdirectory because 3748 # it helps to detect inapplicable dependency modes. For instance 3749 # both Tru64's cc and ICC support -MD to output dependencies as a 3750 # side effect of compilation, but ICC will put the dependencies in 3751 # the current directory while Tru64 will put them in the object 3752 # directory. 3753 mkdir sub 3754 3755 am_cv_CC_dependencies_compiler_type=none 3756 if test "$am_compiler_list" = ""; then 3757 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3758 fi 3759 for depmode in $am_compiler_list; do 3760 # Setup a source with many dependencies, because some compilers 3761 # like to wrap large dependency lists on column 80 (with \), and 3762 # we should not choose a depcomp mode which is confused by this. 3763 # 3764 # We need to recreate these files for each test, as the compiler may 3765 # overwrite some of them when testing with obscure command lines. 3766 # This happens at least with the AIX C compiler. 3767 : > sub/conftest.c 3768 for i in 1 2 3 4 5 6; do 3769 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3770 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3771 # Solaris 8's {/usr,}/bin/sh. 3772 touch sub/conftst$i.h 3773 done 3774 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3775 3776 case $depmode in 3777 nosideeffect) 3778 # after this tag, mechanisms are not by side-effect, so they'll 3779 # only be used when explicitly requested 3780 if test "x$enable_dependency_tracking" = xyes; then 3781 continue 3782 else 3783 break 3784 fi 3785 ;; 3786 none) break ;; 3787 esac 3788 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3789 # mode. It turns out that the SunPro C++ compiler does not properly 3790 # handle `-M -o', and we need to detect this. 3791 if depmode=$depmode \ 3792 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3793 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3794 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3795 >/dev/null 2>conftest.err && 3796 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3797 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3798 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3799 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3800 # icc doesn't choke on unknown options, it will just issue warnings 3801 # or remarks (even with -Werror). So we grep stderr for any message 3802 # that says an option was ignored or not supported. 3803 # When given -MP, icc 7.0 and 7.1 complain thusly: 3804 # icc: Command line warning: ignoring option '-M'; no argument required 3805 # The diagnosis changed in icc 8.0: 3806 # icc: Command line remark: option '-MP' not supported 3807 if (grep 'ignoring option' conftest.err || 3808 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3809 am_cv_CC_dependencies_compiler_type=$depmode 3810 break 3811 fi 3812 fi 3813 done 3814 3815 cd .. 3816 rm -rf conftest.dir 3817else 3818 am_cv_CC_dependencies_compiler_type=none 3819fi 3820 3821fi 3822{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3823$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3824CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3825 3826 if 3827 test "x$enable_dependency_tracking" != xno \ 3828 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3829 am__fastdepCC_TRUE= 3830 am__fastdepCC_FALSE='#' 3831else 3832 am__fastdepCC_TRUE='#' 3833 am__fastdepCC_FALSE= 3834fi 3835 3836 3837{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3838$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3839if test "${ac_cv_path_SED+set}" = set; then 3840 $as_echo_n "(cached) " >&6 3841else 3842 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3843 for ac_i in 1 2 3 4 5 6 7; do 3844 ac_script="$ac_script$as_nl$ac_script" 3845 done 3846 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3847 $as_unset ac_script || ac_script= 3848 if test -z "$SED"; then 3849 ac_path_SED_found=false 3850 # Loop through the user's path and test for each of PROGNAME-LIST 3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3852for as_dir in $PATH 3853do 3854 IFS=$as_save_IFS 3855 test -z "$as_dir" && as_dir=. 3856 for ac_prog in sed gsed; do 3857 for ac_exec_ext in '' $ac_executable_extensions; do 3858 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3859 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3860# Check for GNU ac_path_SED and select it if it is found. 3861 # Check for GNU $ac_path_SED 3862case `"$ac_path_SED" --version 2>&1` in 3863*GNU*) 3864 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3865*) 3866 ac_count=0 3867 $as_echo_n 0123456789 >"conftest.in" 3868 while : 3869 do 3870 cat "conftest.in" "conftest.in" >"conftest.tmp" 3871 mv "conftest.tmp" "conftest.in" 3872 cp "conftest.in" "conftest.nl" 3873 $as_echo '' >> "conftest.nl" 3874 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3875 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3876 ac_count=`expr $ac_count + 1` 3877 if test $ac_count -gt ${ac_path_SED_max-0}; then 3878 # Best one so far, save it but keep looking for a better one 3879 ac_cv_path_SED="$ac_path_SED" 3880 ac_path_SED_max=$ac_count 3881 fi 3882 # 10*(2^10) chars as input seems more than enough 3883 test $ac_count -gt 10 && break 3884 done 3885 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3886esac 3887 3888 $ac_path_SED_found && break 3 3889 done 3890 done 3891done 3892IFS=$as_save_IFS 3893 if test -z "$ac_cv_path_SED"; then 3894 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 3895$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 3896 { (exit 1); exit 1; }; } 3897 fi 3898else 3899 ac_cv_path_SED=$SED 3900fi 3901 3902fi 3903{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 3904$as_echo "$ac_cv_path_SED" >&6; } 3905 SED="$ac_cv_path_SED" 3906 rm -f conftest.sed 3907 3908test -z "$SED" && SED=sed 3909Xsed="$SED -e 1s/^X//" 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3922$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3923if test "${ac_cv_path_GREP+set}" = set; then 3924 $as_echo_n "(cached) " >&6 3925else 3926 if test -z "$GREP"; then 3927 ac_path_GREP_found=false 3928 # Loop through the user's path and test for each of PROGNAME-LIST 3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3930for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3931do 3932 IFS=$as_save_IFS 3933 test -z "$as_dir" && as_dir=. 3934 for ac_prog in grep ggrep; do 3935 for ac_exec_ext in '' $ac_executable_extensions; do 3936 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3937 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3938# Check for GNU ac_path_GREP and select it if it is found. 3939 # Check for GNU $ac_path_GREP 3940case `"$ac_path_GREP" --version 2>&1` in 3941*GNU*) 3942 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3943*) 3944 ac_count=0 3945 $as_echo_n 0123456789 >"conftest.in" 3946 while : 3947 do 3948 cat "conftest.in" "conftest.in" >"conftest.tmp" 3949 mv "conftest.tmp" "conftest.in" 3950 cp "conftest.in" "conftest.nl" 3951 $as_echo 'GREP' >> "conftest.nl" 3952 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3953 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3954 ac_count=`expr $ac_count + 1` 3955 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3956 # Best one so far, save it but keep looking for a better one 3957 ac_cv_path_GREP="$ac_path_GREP" 3958 ac_path_GREP_max=$ac_count 3959 fi 3960 # 10*(2^10) chars as input seems more than enough 3961 test $ac_count -gt 10 && break 3962 done 3963 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3964esac 3965 3966 $ac_path_GREP_found && break 3 3967 done 3968 done 3969done 3970IFS=$as_save_IFS 3971 if test -z "$ac_cv_path_GREP"; then 3972 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3973$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3974 { (exit 1); exit 1; }; } 3975 fi 3976else 3977 ac_cv_path_GREP=$GREP 3978fi 3979 3980fi 3981{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3982$as_echo "$ac_cv_path_GREP" >&6; } 3983 GREP="$ac_cv_path_GREP" 3984 3985 3986{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3987$as_echo_n "checking for egrep... " >&6; } 3988if test "${ac_cv_path_EGREP+set}" = set; then 3989 $as_echo_n "(cached) " >&6 3990else 3991 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3992 then ac_cv_path_EGREP="$GREP -E" 3993 else 3994 if test -z "$EGREP"; then 3995 ac_path_EGREP_found=false 3996 # Loop through the user's path and test for each of PROGNAME-LIST 3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3998for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3999do 4000 IFS=$as_save_IFS 4001 test -z "$as_dir" && as_dir=. 4002 for ac_prog in egrep; do 4003 for ac_exec_ext in '' $ac_executable_extensions; do 4004 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4005 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4006# Check for GNU ac_path_EGREP and select it if it is found. 4007 # Check for GNU $ac_path_EGREP 4008case `"$ac_path_EGREP" --version 2>&1` in 4009*GNU*) 4010 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4011*) 4012 ac_count=0 4013 $as_echo_n 0123456789 >"conftest.in" 4014 while : 4015 do 4016 cat "conftest.in" "conftest.in" >"conftest.tmp" 4017 mv "conftest.tmp" "conftest.in" 4018 cp "conftest.in" "conftest.nl" 4019 $as_echo 'EGREP' >> "conftest.nl" 4020 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4022 ac_count=`expr $ac_count + 1` 4023 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4024 # Best one so far, save it but keep looking for a better one 4025 ac_cv_path_EGREP="$ac_path_EGREP" 4026 ac_path_EGREP_max=$ac_count 4027 fi 4028 # 10*(2^10) chars as input seems more than enough 4029 test $ac_count -gt 10 && break 4030 done 4031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4032esac 4033 4034 $ac_path_EGREP_found && break 3 4035 done 4036 done 4037done 4038IFS=$as_save_IFS 4039 if test -z "$ac_cv_path_EGREP"; then 4040 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4041$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4042 { (exit 1); exit 1; }; } 4043 fi 4044else 4045 ac_cv_path_EGREP=$EGREP 4046fi 4047 4048 fi 4049fi 4050{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4051$as_echo "$ac_cv_path_EGREP" >&6; } 4052 EGREP="$ac_cv_path_EGREP" 4053 4054 4055{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 4056$as_echo_n "checking for fgrep... " >&6; } 4057if test "${ac_cv_path_FGREP+set}" = set; then 4058 $as_echo_n "(cached) " >&6 4059else 4060 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4061 then ac_cv_path_FGREP="$GREP -F" 4062 else 4063 if test -z "$FGREP"; then 4064 ac_path_FGREP_found=false 4065 # Loop through the user's path and test for each of PROGNAME-LIST 4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4067for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4068do 4069 IFS=$as_save_IFS 4070 test -z "$as_dir" && as_dir=. 4071 for ac_prog in fgrep; do 4072 for ac_exec_ext in '' $ac_executable_extensions; do 4073 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4074 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4075# Check for GNU ac_path_FGREP and select it if it is found. 4076 # Check for GNU $ac_path_FGREP 4077case `"$ac_path_FGREP" --version 2>&1` in 4078*GNU*) 4079 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4080*) 4081 ac_count=0 4082 $as_echo_n 0123456789 >"conftest.in" 4083 while : 4084 do 4085 cat "conftest.in" "conftest.in" >"conftest.tmp" 4086 mv "conftest.tmp" "conftest.in" 4087 cp "conftest.in" "conftest.nl" 4088 $as_echo 'FGREP' >> "conftest.nl" 4089 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4090 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4091 ac_count=`expr $ac_count + 1` 4092 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4093 # Best one so far, save it but keep looking for a better one 4094 ac_cv_path_FGREP="$ac_path_FGREP" 4095 ac_path_FGREP_max=$ac_count 4096 fi 4097 # 10*(2^10) chars as input seems more than enough 4098 test $ac_count -gt 10 && break 4099 done 4100 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4101esac 4102 4103 $ac_path_FGREP_found && break 3 4104 done 4105 done 4106done 4107IFS=$as_save_IFS 4108 if test -z "$ac_cv_path_FGREP"; then 4109 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4110$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4111 { (exit 1); exit 1; }; } 4112 fi 4113else 4114 ac_cv_path_FGREP=$FGREP 4115fi 4116 4117 fi 4118fi 4119{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4120$as_echo "$ac_cv_path_FGREP" >&6; } 4121 FGREP="$ac_cv_path_FGREP" 4122 4123 4124test -z "$GREP" && GREP=grep 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144# Check whether --with-gnu-ld was given. 4145if test "${with_gnu_ld+set}" = set; then 4146 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4147else 4148 with_gnu_ld=no 4149fi 4150 4151ac_prog=ld 4152if test "$GCC" = yes; then 4153 # Check if gcc -print-prog-name=ld gives a path. 4154 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4155$as_echo_n "checking for ld used by $CC... " >&6; } 4156 case $host in 4157 *-*-mingw*) 4158 # gcc leaves a trailing carriage return which upsets mingw 4159 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4160 *) 4161 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4162 esac 4163 case $ac_prog in 4164 # Accept absolute paths. 4165 [\\/]* | ?:[\\/]*) 4166 re_direlt='/[^/][^/]*/\.\./' 4167 # Canonicalize the pathname of ld 4168 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4169 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4170 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4171 done 4172 test -z "$LD" && LD="$ac_prog" 4173 ;; 4174 "") 4175 # If it fails, then pretend we aren't using GCC. 4176 ac_prog=ld 4177 ;; 4178 *) 4179 # If it is relative, then search for the first ld in PATH. 4180 with_gnu_ld=unknown 4181 ;; 4182 esac 4183elif test "$with_gnu_ld" = yes; then 4184 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4185$as_echo_n "checking for GNU ld... " >&6; } 4186else 4187 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4188$as_echo_n "checking for non-GNU ld... " >&6; } 4189fi 4190if test "${lt_cv_path_LD+set}" = set; then 4191 $as_echo_n "(cached) " >&6 4192else 4193 if test -z "$LD"; then 4194 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4195 for ac_dir in $PATH; do 4196 IFS="$lt_save_ifs" 4197 test -z "$ac_dir" && ac_dir=. 4198 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4199 lt_cv_path_LD="$ac_dir/$ac_prog" 4200 # Check to see if the program is GNU ld. I'd rather use --version, 4201 # but apparently some variants of GNU ld only accept -v. 4202 # Break only if it was the GNU/non-GNU ld that we prefer. 4203 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4204 *GNU* | *'with BFD'*) 4205 test "$with_gnu_ld" != no && break 4206 ;; 4207 *) 4208 test "$with_gnu_ld" != yes && break 4209 ;; 4210 esac 4211 fi 4212 done 4213 IFS="$lt_save_ifs" 4214else 4215 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4216fi 4217fi 4218 4219LD="$lt_cv_path_LD" 4220if test -n "$LD"; then 4221 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4222$as_echo "$LD" >&6; } 4223else 4224 { $as_echo "$as_me:$LINENO: result: no" >&5 4225$as_echo "no" >&6; } 4226fi 4227test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4228$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4229 { (exit 1); exit 1; }; } 4230{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4231$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4232if test "${lt_cv_prog_gnu_ld+set}" = set; then 4233 $as_echo_n "(cached) " >&6 4234else 4235 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4236case `$LD -v 2>&1 </dev/null` in 4237*GNU* | *'with BFD'*) 4238 lt_cv_prog_gnu_ld=yes 4239 ;; 4240*) 4241 lt_cv_prog_gnu_ld=no 4242 ;; 4243esac 4244fi 4245{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4246$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4247with_gnu_ld=$lt_cv_prog_gnu_ld 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4258$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4259if test "${lt_cv_path_NM+set}" = set; then 4260 $as_echo_n "(cached) " >&6 4261else 4262 if test -n "$NM"; then 4263 # Let the user override the test. 4264 lt_cv_path_NM="$NM" 4265else 4266 lt_nm_to_check="${ac_tool_prefix}nm" 4267 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4268 lt_nm_to_check="$lt_nm_to_check nm" 4269 fi 4270 for lt_tmp_nm in $lt_nm_to_check; do 4271 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4272 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4273 IFS="$lt_save_ifs" 4274 test -z "$ac_dir" && ac_dir=. 4275 tmp_nm="$ac_dir/$lt_tmp_nm" 4276 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4277 # Check to see if the nm accepts a BSD-compat flag. 4278 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4279 # nm: unknown option "B" ignored 4280 # Tru64's nm complains that /dev/null is an invalid object file 4281 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4282 */dev/null* | *'Invalid file or object type'*) 4283 lt_cv_path_NM="$tmp_nm -B" 4284 break 4285 ;; 4286 *) 4287 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4288 */dev/null*) 4289 lt_cv_path_NM="$tmp_nm -p" 4290 break 4291 ;; 4292 *) 4293 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4294 continue # so that we can try to find one that supports BSD flags 4295 ;; 4296 esac 4297 ;; 4298 esac 4299 fi 4300 done 4301 IFS="$lt_save_ifs" 4302 done 4303 : ${lt_cv_path_NM=no} 4304fi 4305fi 4306{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4307$as_echo "$lt_cv_path_NM" >&6; } 4308if test "$lt_cv_path_NM" != "no"; then 4309 NM="$lt_cv_path_NM" 4310else 4311 # Didn't find any BSD compatible name lister, look for dumpbin. 4312 if test -n "$ac_tool_prefix"; then 4313 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4314 do 4315 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4316set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4317{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4318$as_echo_n "checking for $ac_word... " >&6; } 4319if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4320 $as_echo_n "(cached) " >&6 4321else 4322 if test -n "$DUMPBIN"; then 4323 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4324else 4325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4326for as_dir in $PATH 4327do 4328 IFS=$as_save_IFS 4329 test -z "$as_dir" && as_dir=. 4330 for ac_exec_ext in '' $ac_executable_extensions; do 4331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4332 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4333 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4334 break 2 4335 fi 4336done 4337done 4338IFS=$as_save_IFS 4339 4340fi 4341fi 4342DUMPBIN=$ac_cv_prog_DUMPBIN 4343if test -n "$DUMPBIN"; then 4344 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 4345$as_echo "$DUMPBIN" >&6; } 4346else 4347 { $as_echo "$as_me:$LINENO: result: no" >&5 4348$as_echo "no" >&6; } 4349fi 4350 4351 4352 test -n "$DUMPBIN" && break 4353 done 4354fi 4355if test -z "$DUMPBIN"; then 4356 ac_ct_DUMPBIN=$DUMPBIN 4357 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4358do 4359 # Extract the first word of "$ac_prog", so it can be a program name with args. 4360set dummy $ac_prog; ac_word=$2 4361{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4362$as_echo_n "checking for $ac_word... " >&6; } 4363if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 4364 $as_echo_n "(cached) " >&6 4365else 4366 if test -n "$ac_ct_DUMPBIN"; then 4367 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4368else 4369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4370for as_dir in $PATH 4371do 4372 IFS=$as_save_IFS 4373 test -z "$as_dir" && as_dir=. 4374 for ac_exec_ext in '' $ac_executable_extensions; do 4375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4376 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4377 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4378 break 2 4379 fi 4380done 4381done 4382IFS=$as_save_IFS 4383 4384fi 4385fi 4386ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4387if test -n "$ac_ct_DUMPBIN"; then 4388 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 4389$as_echo "$ac_ct_DUMPBIN" >&6; } 4390else 4391 { $as_echo "$as_me:$LINENO: result: no" >&5 4392$as_echo "no" >&6; } 4393fi 4394 4395 4396 test -n "$ac_ct_DUMPBIN" && break 4397done 4398 4399 if test "x$ac_ct_DUMPBIN" = x; then 4400 DUMPBIN=":" 4401 else 4402 case $cross_compiling:$ac_tool_warned in 4403yes:) 4404{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4406ac_tool_warned=yes ;; 4407esac 4408 DUMPBIN=$ac_ct_DUMPBIN 4409 fi 4410fi 4411 4412 4413 if test "$DUMPBIN" != ":"; then 4414 NM="$DUMPBIN" 4415 fi 4416fi 4417test -z "$NM" && NM=nm 4418 4419 4420 4421 4422 4423 4424{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 4425$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4426if test "${lt_cv_nm_interface+set}" = set; then 4427 $as_echo_n "(cached) " >&6 4428else 4429 lt_cv_nm_interface="BSD nm" 4430 echo "int some_variable = 0;" > conftest.$ac_ext 4431 (eval echo "\"\$as_me:4431: $ac_compile\"" >&5) 4432 (eval "$ac_compile" 2>conftest.err) 4433 cat conftest.err >&5 4434 (eval echo "\"\$as_me:4434: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4435 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4436 cat conftest.err >&5 4437 (eval echo "\"\$as_me:4437: output\"" >&5) 4438 cat conftest.out >&5 4439 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4440 lt_cv_nm_interface="MS dumpbin" 4441 fi 4442 rm -f conftest* 4443fi 4444{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 4445$as_echo "$lt_cv_nm_interface" >&6; } 4446 4447{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4448$as_echo_n "checking whether ln -s works... " >&6; } 4449LN_S=$as_ln_s 4450if test "$LN_S" = "ln -s"; then 4451 { $as_echo "$as_me:$LINENO: result: yes" >&5 4452$as_echo "yes" >&6; } 4453else 4454 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4455$as_echo "no, using $LN_S" >&6; } 4456fi 4457 4458# find the maximum length of command line arguments 4459{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4460$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4461if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4462 $as_echo_n "(cached) " >&6 4463else 4464 i=0 4465 teststring="ABCD" 4466 4467 case $build_os in 4468 msdosdjgpp*) 4469 # On DJGPP, this test can blow up pretty badly due to problems in libc 4470 # (any single argument exceeding 2000 bytes causes a buffer overrun 4471 # during glob expansion). Even if it were fixed, the result of this 4472 # check would be larger than it should be. 4473 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4474 ;; 4475 4476 gnu*) 4477 # Under GNU Hurd, this test is not required because there is 4478 # no limit to the length of command line arguments. 4479 # Libtool will interpret -1 as no limit whatsoever 4480 lt_cv_sys_max_cmd_len=-1; 4481 ;; 4482 4483 cygwin* | mingw* | cegcc*) 4484 # On Win9x/ME, this test blows up -- it succeeds, but takes 4485 # about 5 minutes as the teststring grows exponentially. 4486 # Worse, since 9x/ME are not pre-emptively multitasking, 4487 # you end up with a "frozen" computer, even though with patience 4488 # the test eventually succeeds (with a max line length of 256k). 4489 # Instead, let's just punt: use the minimum linelength reported by 4490 # all of the supported platforms: 8192 (on NT/2K/XP). 4491 lt_cv_sys_max_cmd_len=8192; 4492 ;; 4493 4494 amigaos*) 4495 # On AmigaOS with pdksh, this test takes hours, literally. 4496 # So we just punt and use a minimum line length of 8192. 4497 lt_cv_sys_max_cmd_len=8192; 4498 ;; 4499 4500 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4501 # This has been around since 386BSD, at least. Likely further. 4502 if test -x /sbin/sysctl; then 4503 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4504 elif test -x /usr/sbin/sysctl; then 4505 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4506 else 4507 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4508 fi 4509 # And add a safety zone 4510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4512 ;; 4513 4514 interix*) 4515 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4516 lt_cv_sys_max_cmd_len=196608 4517 ;; 4518 4519 osf*) 4520 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4521 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4522 # nice to cause kernel panics so lets avoid the loop below. 4523 # First set a reasonable default. 4524 lt_cv_sys_max_cmd_len=16384 4525 # 4526 if test -x /sbin/sysconfig; then 4527 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4528 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4529 esac 4530 fi 4531 ;; 4532 sco3.2v5*) 4533 lt_cv_sys_max_cmd_len=102400 4534 ;; 4535 sysv5* | sco5v6* | sysv4.2uw2*) 4536 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4537 if test -n "$kargmax"; then 4538 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4539 else 4540 lt_cv_sys_max_cmd_len=32768 4541 fi 4542 ;; 4543 *) 4544 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4545 if test -n "$lt_cv_sys_max_cmd_len"; then 4546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4547 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4548 else 4549 # Make teststring a little bigger before we do anything with it. 4550 # a 1K string should be a reasonable start. 4551 for i in 1 2 3 4 5 6 7 8 ; do 4552 teststring=$teststring$teststring 4553 done 4554 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4555 # If test is not a shell built-in, we'll probably end up computing a 4556 # maximum length that is only half of the actual maximum length, but 4557 # we can't tell. 4558 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4559 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4560 test $i != 17 # 1/2 MB should be enough 4561 do 4562 i=`expr $i + 1` 4563 teststring=$teststring$teststring 4564 done 4565 # Only check the string length outside the loop. 4566 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4567 teststring= 4568 # Add a significant safety factor because C++ compilers can tack on 4569 # massive amounts of additional arguments before passing them to the 4570 # linker. It appears as though 1/2 is a usable value. 4571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4572 fi 4573 ;; 4574 esac 4575 4576fi 4577 4578if test -n $lt_cv_sys_max_cmd_len ; then 4579 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4580$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4581else 4582 { $as_echo "$as_me:$LINENO: result: none" >&5 4583$as_echo "none" >&6; } 4584fi 4585max_cmd_len=$lt_cv_sys_max_cmd_len 4586 4587 4588 4589 4590 4591 4592: ${CP="cp -f"} 4593: ${MV="mv -f"} 4594: ${RM="rm -f"} 4595 4596{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 4597$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4598# Try some XSI features 4599xsi_shell=no 4600( _lt_dummy="a/b/c" 4601 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4602 = c,a/b,, \ 4603 && eval 'test $(( 1 + 1 )) -eq 2 \ 4604 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4605 && xsi_shell=yes 4606{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 4607$as_echo "$xsi_shell" >&6; } 4608 4609 4610{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 4611$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4612lt_shell_append=no 4613( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4614 >/dev/null 2>&1 \ 4615 && lt_shell_append=yes 4616{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 4617$as_echo "$lt_shell_append" >&6; } 4618 4619 4620if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4621 lt_unset=unset 4622else 4623 lt_unset=false 4624fi 4625 4626 4627 4628 4629 4630# test EBCDIC or ASCII 4631case `echo X|tr X '\101'` in 4632 A) # ASCII based system 4633 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4634 lt_SP2NL='tr \040 \012' 4635 lt_NL2SP='tr \015\012 \040\040' 4636 ;; 4637 *) # EBCDIC based system 4638 lt_SP2NL='tr \100 \n' 4639 lt_NL2SP='tr \r\n \100\100' 4640 ;; 4641esac 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4652$as_echo_n "checking for $LD option to reload object files... " >&6; } 4653if test "${lt_cv_ld_reload_flag+set}" = set; then 4654 $as_echo_n "(cached) " >&6 4655else 4656 lt_cv_ld_reload_flag='-r' 4657fi 4658{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4659$as_echo "$lt_cv_ld_reload_flag" >&6; } 4660reload_flag=$lt_cv_ld_reload_flag 4661case $reload_flag in 4662"" | " "*) ;; 4663*) reload_flag=" $reload_flag" ;; 4664esac 4665reload_cmds='$LD$reload_flag -o $output$reload_objs' 4666case $host_os in 4667 darwin*) 4668 if test "$GCC" = yes; then 4669 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4670 else 4671 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4672 fi 4673 ;; 4674esac 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684if test -n "$ac_tool_prefix"; then 4685 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4686set dummy ${ac_tool_prefix}objdump; ac_word=$2 4687{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4688$as_echo_n "checking for $ac_word... " >&6; } 4689if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4690 $as_echo_n "(cached) " >&6 4691else 4692 if test -n "$OBJDUMP"; then 4693 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4694else 4695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4696for as_dir in $PATH 4697do 4698 IFS=$as_save_IFS 4699 test -z "$as_dir" && as_dir=. 4700 for ac_exec_ext in '' $ac_executable_extensions; do 4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4702 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4704 break 2 4705 fi 4706done 4707done 4708IFS=$as_save_IFS 4709 4710fi 4711fi 4712OBJDUMP=$ac_cv_prog_OBJDUMP 4713if test -n "$OBJDUMP"; then 4714 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4715$as_echo "$OBJDUMP" >&6; } 4716else 4717 { $as_echo "$as_me:$LINENO: result: no" >&5 4718$as_echo "no" >&6; } 4719fi 4720 4721 4722fi 4723if test -z "$ac_cv_prog_OBJDUMP"; then 4724 ac_ct_OBJDUMP=$OBJDUMP 4725 # Extract the first word of "objdump", so it can be a program name with args. 4726set dummy objdump; ac_word=$2 4727{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4728$as_echo_n "checking for $ac_word... " >&6; } 4729if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4730 $as_echo_n "(cached) " >&6 4731else 4732 if test -n "$ac_ct_OBJDUMP"; then 4733 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4734else 4735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4736for as_dir in $PATH 4737do 4738 IFS=$as_save_IFS 4739 test -z "$as_dir" && as_dir=. 4740 for ac_exec_ext in '' $ac_executable_extensions; do 4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4742 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4743 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4744 break 2 4745 fi 4746done 4747done 4748IFS=$as_save_IFS 4749 4750fi 4751fi 4752ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4753if test -n "$ac_ct_OBJDUMP"; then 4754 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4755$as_echo "$ac_ct_OBJDUMP" >&6; } 4756else 4757 { $as_echo "$as_me:$LINENO: result: no" >&5 4758$as_echo "no" >&6; } 4759fi 4760 4761 if test "x$ac_ct_OBJDUMP" = x; then 4762 OBJDUMP="false" 4763 else 4764 case $cross_compiling:$ac_tool_warned in 4765yes:) 4766{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4768ac_tool_warned=yes ;; 4769esac 4770 OBJDUMP=$ac_ct_OBJDUMP 4771 fi 4772else 4773 OBJDUMP="$ac_cv_prog_OBJDUMP" 4774fi 4775 4776test -z "$OBJDUMP" && OBJDUMP=objdump 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4787$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4788if test "${lt_cv_deplibs_check_method+set}" = set; then 4789 $as_echo_n "(cached) " >&6 4790else 4791 lt_cv_file_magic_cmd='$MAGIC_CMD' 4792lt_cv_file_magic_test_file= 4793lt_cv_deplibs_check_method='unknown' 4794# Need to set the preceding variable on all platforms that support 4795# interlibrary dependencies. 4796# 'none' -- dependencies not supported. 4797# `unknown' -- same as none, but documents that we really don't know. 4798# 'pass_all' -- all dependencies passed with no checks. 4799# 'test_compile' -- check by making test program. 4800# 'file_magic [[regex]]' -- check by looking for files in library path 4801# which responds to the $file_magic_cmd with a given extended regex. 4802# If you have `file' or equivalent on your system and you're not sure 4803# whether `pass_all' will *always* work, you probably want this one. 4804 4805case $host_os in 4806aix[4-9]*) 4807 lt_cv_deplibs_check_method=pass_all 4808 ;; 4809 4810beos*) 4811 lt_cv_deplibs_check_method=pass_all 4812 ;; 4813 4814bsdi[45]*) 4815 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4816 lt_cv_file_magic_cmd='/usr/bin/file -L' 4817 lt_cv_file_magic_test_file=/shlib/libc.so 4818 ;; 4819 4820cygwin*) 4821 # func_win32_libid is a shell function defined in ltmain.sh 4822 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4823 lt_cv_file_magic_cmd='func_win32_libid' 4824 ;; 4825 4826mingw* | pw32*) 4827 # Base MSYS/MinGW do not provide the 'file' command needed by 4828 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4829 # unless we find 'file', for example because we are cross-compiling. 4830 if ( file / ) >/dev/null 2>&1; then 4831 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4832 lt_cv_file_magic_cmd='func_win32_libid' 4833 else 4834 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4835 lt_cv_file_magic_cmd='$OBJDUMP -f' 4836 fi 4837 ;; 4838 4839cegcc) 4840 # use the weaker test based on 'objdump'. See mingw*. 4841 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4842 lt_cv_file_magic_cmd='$OBJDUMP -f' 4843 ;; 4844 4845darwin* | rhapsody*) 4846 lt_cv_deplibs_check_method=pass_all 4847 ;; 4848 4849freebsd* | dragonfly*) 4850 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4851 case $host_cpu in 4852 i*86 ) 4853 # Not sure whether the presence of OpenBSD here was a mistake. 4854 # Let's accept both of them until this is cleared up. 4855 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4856 lt_cv_file_magic_cmd=/usr/bin/file 4857 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4858 ;; 4859 esac 4860 else 4861 lt_cv_deplibs_check_method=pass_all 4862 fi 4863 ;; 4864 4865gnu*) 4866 lt_cv_deplibs_check_method=pass_all 4867 ;; 4868 4869hpux10.20* | hpux11*) 4870 lt_cv_file_magic_cmd=/usr/bin/file 4871 case $host_cpu in 4872 ia64*) 4873 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4874 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4875 ;; 4876 hppa*64*) 4877 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]' 4878 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4879 ;; 4880 *) 4881 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4882 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4883 ;; 4884 esac 4885 ;; 4886 4887interix[3-9]*) 4888 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4889 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4890 ;; 4891 4892irix5* | irix6* | nonstopux*) 4893 case $LD in 4894 *-32|*"-32 ") libmagic=32-bit;; 4895 *-n32|*"-n32 ") libmagic=N32;; 4896 *-64|*"-64 ") libmagic=64-bit;; 4897 *) libmagic=never-match;; 4898 esac 4899 lt_cv_deplibs_check_method=pass_all 4900 ;; 4901 4902# This must be Linux ELF. 4903linux* | k*bsd*-gnu) 4904 lt_cv_deplibs_check_method=pass_all 4905 ;; 4906 4907netbsd*) 4908 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4909 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4910 else 4911 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4912 fi 4913 ;; 4914 4915newos6*) 4916 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4917 lt_cv_file_magic_cmd=/usr/bin/file 4918 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4919 ;; 4920 4921*nto* | *qnx*) 4922 lt_cv_deplibs_check_method=pass_all 4923 ;; 4924 4925openbsd*) 4926 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4928 else 4929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4930 fi 4931 ;; 4932 4933osf3* | osf4* | osf5*) 4934 lt_cv_deplibs_check_method=pass_all 4935 ;; 4936 4937rdos*) 4938 lt_cv_deplibs_check_method=pass_all 4939 ;; 4940 4941solaris*) 4942 lt_cv_deplibs_check_method=pass_all 4943 ;; 4944 4945sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4946 lt_cv_deplibs_check_method=pass_all 4947 ;; 4948 4949sysv4 | sysv4.3*) 4950 case $host_vendor in 4951 motorola) 4952 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]' 4953 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4954 ;; 4955 ncr) 4956 lt_cv_deplibs_check_method=pass_all 4957 ;; 4958 sequent) 4959 lt_cv_file_magic_cmd='/bin/file' 4960 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4961 ;; 4962 sni) 4963 lt_cv_file_magic_cmd='/bin/file' 4964 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4965 lt_cv_file_magic_test_file=/lib/libc.so 4966 ;; 4967 siemens) 4968 lt_cv_deplibs_check_method=pass_all 4969 ;; 4970 pc) 4971 lt_cv_deplibs_check_method=pass_all 4972 ;; 4973 esac 4974 ;; 4975 4976tpf*) 4977 lt_cv_deplibs_check_method=pass_all 4978 ;; 4979esac 4980 4981fi 4982{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4983$as_echo "$lt_cv_deplibs_check_method" >&6; } 4984file_magic_cmd=$lt_cv_file_magic_cmd 4985deplibs_check_method=$lt_cv_deplibs_check_method 4986test -z "$deplibs_check_method" && deplibs_check_method=unknown 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999if test -n "$ac_tool_prefix"; then 5000 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5001set dummy ${ac_tool_prefix}ar; ac_word=$2 5002{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5003$as_echo_n "checking for $ac_word... " >&6; } 5004if test "${ac_cv_prog_AR+set}" = set; then 5005 $as_echo_n "(cached) " >&6 5006else 5007 if test -n "$AR"; then 5008 ac_cv_prog_AR="$AR" # Let the user override the test. 5009else 5010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5011for as_dir in $PATH 5012do 5013 IFS=$as_save_IFS 5014 test -z "$as_dir" && as_dir=. 5015 for ac_exec_ext in '' $ac_executable_extensions; do 5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5017 ac_cv_prog_AR="${ac_tool_prefix}ar" 5018 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5019 break 2 5020 fi 5021done 5022done 5023IFS=$as_save_IFS 5024 5025fi 5026fi 5027AR=$ac_cv_prog_AR 5028if test -n "$AR"; then 5029 { $as_echo "$as_me:$LINENO: result: $AR" >&5 5030$as_echo "$AR" >&6; } 5031else 5032 { $as_echo "$as_me:$LINENO: result: no" >&5 5033$as_echo "no" >&6; } 5034fi 5035 5036 5037fi 5038if test -z "$ac_cv_prog_AR"; then 5039 ac_ct_AR=$AR 5040 # Extract the first word of "ar", so it can be a program name with args. 5041set dummy ar; ac_word=$2 5042{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5043$as_echo_n "checking for $ac_word... " >&6; } 5044if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5045 $as_echo_n "(cached) " >&6 5046else 5047 if test -n "$ac_ct_AR"; then 5048 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5049else 5050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5051for as_dir in $PATH 5052do 5053 IFS=$as_save_IFS 5054 test -z "$as_dir" && as_dir=. 5055 for ac_exec_ext in '' $ac_executable_extensions; do 5056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5057 ac_cv_prog_ac_ct_AR="ar" 5058 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5059 break 2 5060 fi 5061done 5062done 5063IFS=$as_save_IFS 5064 5065fi 5066fi 5067ac_ct_AR=$ac_cv_prog_ac_ct_AR 5068if test -n "$ac_ct_AR"; then 5069 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5070$as_echo "$ac_ct_AR" >&6; } 5071else 5072 { $as_echo "$as_me:$LINENO: result: no" >&5 5073$as_echo "no" >&6; } 5074fi 5075 5076 if test "x$ac_ct_AR" = x; then 5077 AR="false" 5078 else 5079 case $cross_compiling:$ac_tool_warned in 5080yes:) 5081{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5083ac_tool_warned=yes ;; 5084esac 5085 AR=$ac_ct_AR 5086 fi 5087else 5088 AR="$ac_cv_prog_AR" 5089fi 5090 5091test -z "$AR" && AR=ar 5092test -z "$AR_FLAGS" && AR_FLAGS=cru 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104if test -n "$ac_tool_prefix"; then 5105 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5106set dummy ${ac_tool_prefix}strip; ac_word=$2 5107{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5108$as_echo_n "checking for $ac_word... " >&6; } 5109if test "${ac_cv_prog_STRIP+set}" = set; then 5110 $as_echo_n "(cached) " >&6 5111else 5112 if test -n "$STRIP"; then 5113 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5114else 5115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5116for as_dir in $PATH 5117do 5118 IFS=$as_save_IFS 5119 test -z "$as_dir" && as_dir=. 5120 for ac_exec_ext in '' $ac_executable_extensions; do 5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5122 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5123 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5124 break 2 5125 fi 5126done 5127done 5128IFS=$as_save_IFS 5129 5130fi 5131fi 5132STRIP=$ac_cv_prog_STRIP 5133if test -n "$STRIP"; then 5134 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 5135$as_echo "$STRIP" >&6; } 5136else 5137 { $as_echo "$as_me:$LINENO: result: no" >&5 5138$as_echo "no" >&6; } 5139fi 5140 5141 5142fi 5143if test -z "$ac_cv_prog_STRIP"; then 5144 ac_ct_STRIP=$STRIP 5145 # Extract the first word of "strip", so it can be a program name with args. 5146set dummy strip; ac_word=$2 5147{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5148$as_echo_n "checking for $ac_word... " >&6; } 5149if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5150 $as_echo_n "(cached) " >&6 5151else 5152 if test -n "$ac_ct_STRIP"; then 5153 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5154else 5155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5156for as_dir in $PATH 5157do 5158 IFS=$as_save_IFS 5159 test -z "$as_dir" && as_dir=. 5160 for ac_exec_ext in '' $ac_executable_extensions; do 5161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5162 ac_cv_prog_ac_ct_STRIP="strip" 5163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5164 break 2 5165 fi 5166done 5167done 5168IFS=$as_save_IFS 5169 5170fi 5171fi 5172ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5173if test -n "$ac_ct_STRIP"; then 5174 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5175$as_echo "$ac_ct_STRIP" >&6; } 5176else 5177 { $as_echo "$as_me:$LINENO: result: no" >&5 5178$as_echo "no" >&6; } 5179fi 5180 5181 if test "x$ac_ct_STRIP" = x; then 5182 STRIP=":" 5183 else 5184 case $cross_compiling:$ac_tool_warned in 5185yes:) 5186{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5188ac_tool_warned=yes ;; 5189esac 5190 STRIP=$ac_ct_STRIP 5191 fi 5192else 5193 STRIP="$ac_cv_prog_STRIP" 5194fi 5195 5196test -z "$STRIP" && STRIP=: 5197 5198 5199 5200 5201 5202 5203if test -n "$ac_tool_prefix"; then 5204 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5205set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5206{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5207$as_echo_n "checking for $ac_word... " >&6; } 5208if test "${ac_cv_prog_RANLIB+set}" = set; then 5209 $as_echo_n "(cached) " >&6 5210else 5211 if test -n "$RANLIB"; then 5212 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5213else 5214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5215for as_dir in $PATH 5216do 5217 IFS=$as_save_IFS 5218 test -z "$as_dir" && as_dir=. 5219 for ac_exec_ext in '' $ac_executable_extensions; do 5220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5221 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5222 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5223 break 2 5224 fi 5225done 5226done 5227IFS=$as_save_IFS 5228 5229fi 5230fi 5231RANLIB=$ac_cv_prog_RANLIB 5232if test -n "$RANLIB"; then 5233 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 5234$as_echo "$RANLIB" >&6; } 5235else 5236 { $as_echo "$as_me:$LINENO: result: no" >&5 5237$as_echo "no" >&6; } 5238fi 5239 5240 5241fi 5242if test -z "$ac_cv_prog_RANLIB"; then 5243 ac_ct_RANLIB=$RANLIB 5244 # Extract the first word of "ranlib", so it can be a program name with args. 5245set dummy ranlib; ac_word=$2 5246{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5247$as_echo_n "checking for $ac_word... " >&6; } 5248if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5249 $as_echo_n "(cached) " >&6 5250else 5251 if test -n "$ac_ct_RANLIB"; then 5252 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5253else 5254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5255for as_dir in $PATH 5256do 5257 IFS=$as_save_IFS 5258 test -z "$as_dir" && as_dir=. 5259 for ac_exec_ext in '' $ac_executable_extensions; do 5260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5261 ac_cv_prog_ac_ct_RANLIB="ranlib" 5262 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5263 break 2 5264 fi 5265done 5266done 5267IFS=$as_save_IFS 5268 5269fi 5270fi 5271ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5272if test -n "$ac_ct_RANLIB"; then 5273 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5274$as_echo "$ac_ct_RANLIB" >&6; } 5275else 5276 { $as_echo "$as_me:$LINENO: result: no" >&5 5277$as_echo "no" >&6; } 5278fi 5279 5280 if test "x$ac_ct_RANLIB" = x; then 5281 RANLIB=":" 5282 else 5283 case $cross_compiling:$ac_tool_warned in 5284yes:) 5285{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5287ac_tool_warned=yes ;; 5288esac 5289 RANLIB=$ac_ct_RANLIB 5290 fi 5291else 5292 RANLIB="$ac_cv_prog_RANLIB" 5293fi 5294 5295test -z "$RANLIB" && RANLIB=: 5296 5297 5298 5299 5300 5301 5302# Determine commands to create old-style static archives. 5303old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5304old_postinstall_cmds='chmod 644 $oldlib' 5305old_postuninstall_cmds= 5306 5307if test -n "$RANLIB"; then 5308 case $host_os in 5309 openbsd*) 5310 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5311 ;; 5312 *) 5313 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5314 ;; 5315 esac 5316 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5317fi 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352# If no C compiler was specified, use CC. 5353LTCC=${LTCC-"$CC"} 5354 5355# If no C compiler flags were specified, use CFLAGS. 5356LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5357 5358# Allow CC to be a program name with arguments. 5359compiler=$CC 5360 5361 5362# Check for command to grab the raw symbol name followed by C symbol from nm. 5363{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5364$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5365if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5366 $as_echo_n "(cached) " >&6 5367else 5368 5369# These are sane defaults that work on at least a few old systems. 5370# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5371 5372# Character class describing NM global symbol codes. 5373symcode='[BCDEGRST]' 5374 5375# Regexp to match symbols that can be accessed directly from C. 5376sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5377 5378# Define system-specific variables. 5379case $host_os in 5380aix*) 5381 symcode='[BCDT]' 5382 ;; 5383cygwin* | mingw* | pw32* | cegcc*) 5384 symcode='[ABCDGISTW]' 5385 ;; 5386hpux*) 5387 if test "$host_cpu" = ia64; then 5388 symcode='[ABCDEGRST]' 5389 fi 5390 ;; 5391irix* | nonstopux*) 5392 symcode='[BCDEGRST]' 5393 ;; 5394osf*) 5395 symcode='[BCDEGQRST]' 5396 ;; 5397solaris*) 5398 symcode='[BDRT]' 5399 ;; 5400sco3.2v5*) 5401 symcode='[DT]' 5402 ;; 5403sysv4.2uw2*) 5404 symcode='[DT]' 5405 ;; 5406sysv5* | sco5v6* | unixware* | OpenUNIX*) 5407 symcode='[ABDT]' 5408 ;; 5409sysv4) 5410 symcode='[DFNSTU]' 5411 ;; 5412esac 5413 5414# If we're using GNU nm, then use its standard symbol codes. 5415case `$NM -V 2>&1` in 5416*GNU* | *'with BFD'*) 5417 symcode='[ABCDGIRSTW]' ;; 5418esac 5419 5420# Transform an extracted symbol line into a proper C declaration. 5421# Some systems (esp. on ia64) link data and code symbols differently, 5422# so use this general approach. 5423lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5424 5425# Transform an extracted symbol line into symbol name and symbol address 5426lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5427lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5428 5429# Handle CRLF in mingw tool chain 5430opt_cr= 5431case $build_os in 5432mingw*) 5433 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5434 ;; 5435esac 5436 5437# Try without a prefix underscore, then with it. 5438for ac_symprfx in "" "_"; do 5439 5440 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5441 symxfrm="\\1 $ac_symprfx\\2 \\2" 5442 5443 # Write the raw and C identifiers. 5444 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5445 # Fake it for dumpbin and say T for any non-static function 5446 # and D for any global variable. 5447 # Also find C++ and __fastcall symbols from MSVC++, 5448 # which start with @ or ?. 5449 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5450" {last_section=section; section=\$ 3};"\ 5451" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5452" \$ 0!~/External *\|/{next};"\ 5453" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5454" {if(hide[section]) next};"\ 5455" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5456" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5457" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5458" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5459" ' prfx=^$ac_symprfx" 5460 else 5461 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5462 fi 5463 5464 # Check to see that the pipe works correctly. 5465 pipe_works=no 5466 5467 rm -f conftest* 5468 cat > conftest.$ac_ext <<_LT_EOF 5469#ifdef __cplusplus 5470extern "C" { 5471#endif 5472char nm_test_var; 5473void nm_test_func(void); 5474void nm_test_func(void){} 5475#ifdef __cplusplus 5476} 5477#endif 5478int main(){nm_test_var='a';nm_test_func();return(0);} 5479_LT_EOF 5480 5481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5482 (eval $ac_compile) 2>&5 5483 ac_status=$? 5484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5485 (exit $ac_status); }; then 5486 # Now try to grab the symbols. 5487 nlist=conftest.nm 5488 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5489 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5490 ac_status=$? 5491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5492 (exit $ac_status); } && test -s "$nlist"; then 5493 # Try sorting and uniquifying the output. 5494 if sort "$nlist" | uniq > "$nlist"T; then 5495 mv -f "$nlist"T "$nlist" 5496 else 5497 rm -f "$nlist"T 5498 fi 5499 5500 # Make sure that we snagged all the symbols we need. 5501 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5502 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5503 cat <<_LT_EOF > conftest.$ac_ext 5504#ifdef __cplusplus 5505extern "C" { 5506#endif 5507 5508_LT_EOF 5509 # Now generate the symbol file. 5510 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5511 5512 cat <<_LT_EOF >> conftest.$ac_ext 5513 5514/* The mapping between symbol names and symbols. */ 5515const struct { 5516 const char *name; 5517 void *address; 5518} 5519lt__PROGRAM__LTX_preloaded_symbols[] = 5520{ 5521 { "@PROGRAM@", (void *) 0 }, 5522_LT_EOF 5523 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5524 cat <<\_LT_EOF >> conftest.$ac_ext 5525 {0, (void *) 0} 5526}; 5527 5528/* This works around a problem in FreeBSD linker */ 5529#ifdef FREEBSD_WORKAROUND 5530static const void *lt_preloaded_setup() { 5531 return lt__PROGRAM__LTX_preloaded_symbols; 5532} 5533#endif 5534 5535#ifdef __cplusplus 5536} 5537#endif 5538_LT_EOF 5539 # Now try linking the two files. 5540 mv conftest.$ac_objext conftstm.$ac_objext 5541 lt_save_LIBS="$LIBS" 5542 lt_save_CFLAGS="$CFLAGS" 5543 LIBS="conftstm.$ac_objext" 5544 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5546 (eval $ac_link) 2>&5 5547 ac_status=$? 5548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5549 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5550 pipe_works=yes 5551 fi 5552 LIBS="$lt_save_LIBS" 5553 CFLAGS="$lt_save_CFLAGS" 5554 else 5555 echo "cannot find nm_test_func in $nlist" >&5 5556 fi 5557 else 5558 echo "cannot find nm_test_var in $nlist" >&5 5559 fi 5560 else 5561 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5562 fi 5563 else 5564 echo "$progname: failed program was:" >&5 5565 cat conftest.$ac_ext >&5 5566 fi 5567 rm -rf conftest* conftst* 5568 5569 # Do not use the global_symbol_pipe unless it works. 5570 if test "$pipe_works" = yes; then 5571 break 5572 else 5573 lt_cv_sys_global_symbol_pipe= 5574 fi 5575done 5576 5577fi 5578 5579if test -z "$lt_cv_sys_global_symbol_pipe"; then 5580 lt_cv_sys_global_symbol_to_cdecl= 5581fi 5582if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5583 { $as_echo "$as_me:$LINENO: result: failed" >&5 5584$as_echo "failed" >&6; } 5585else 5586 { $as_echo "$as_me:$LINENO: result: ok" >&5 5587$as_echo "ok" >&6; } 5588fi 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612# Check whether --enable-libtool-lock was given. 5613if test "${enable_libtool_lock+set}" = set; then 5614 enableval=$enable_libtool_lock; 5615fi 5616 5617test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5618 5619# Some flags need to be propagated to the compiler or linker for good 5620# libtool support. 5621case $host in 5622ia64-*-hpux*) 5623 # Find out which ABI we are using. 5624 echo 'int i;' > conftest.$ac_ext 5625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5626 (eval $ac_compile) 2>&5 5627 ac_status=$? 5628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5629 (exit $ac_status); }; then 5630 case `/usr/bin/file conftest.$ac_objext` in 5631 *ELF-32*) 5632 HPUX_IA64_MODE="32" 5633 ;; 5634 *ELF-64*) 5635 HPUX_IA64_MODE="64" 5636 ;; 5637 esac 5638 fi 5639 rm -rf conftest* 5640 ;; 5641*-*-irix6*) 5642 # Find out which ABI we are using. 5643 echo '#line 5643 "configure"' > conftest.$ac_ext 5644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5645 (eval $ac_compile) 2>&5 5646 ac_status=$? 5647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5648 (exit $ac_status); }; then 5649 if test "$lt_cv_prog_gnu_ld" = yes; then 5650 case `/usr/bin/file conftest.$ac_objext` in 5651 *32-bit*) 5652 LD="${LD-ld} -melf32bsmip" 5653 ;; 5654 *N32*) 5655 LD="${LD-ld} -melf32bmipn32" 5656 ;; 5657 *64-bit*) 5658 LD="${LD-ld} -melf64bmip" 5659 ;; 5660 esac 5661 else 5662 case `/usr/bin/file conftest.$ac_objext` in 5663 *32-bit*) 5664 LD="${LD-ld} -32" 5665 ;; 5666 *N32*) 5667 LD="${LD-ld} -n32" 5668 ;; 5669 *64-bit*) 5670 LD="${LD-ld} -64" 5671 ;; 5672 esac 5673 fi 5674 fi 5675 rm -rf conftest* 5676 ;; 5677 5678x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5679s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5680 # Find out which ABI we are using. 5681 echo 'int i;' > conftest.$ac_ext 5682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5683 (eval $ac_compile) 2>&5 5684 ac_status=$? 5685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5686 (exit $ac_status); }; then 5687 case `/usr/bin/file conftest.o` in 5688 *32-bit*) 5689 case $host in 5690 x86_64-*kfreebsd*-gnu) 5691 LD="${LD-ld} -m elf_i386_fbsd" 5692 ;; 5693 x86_64-*linux*) 5694 LD="${LD-ld} -m elf_i386" 5695 ;; 5696 ppc64-*linux*|powerpc64-*linux*) 5697 LD="${LD-ld} -m elf32ppclinux" 5698 ;; 5699 s390x-*linux*) 5700 LD="${LD-ld} -m elf_s390" 5701 ;; 5702 sparc64-*linux*) 5703 LD="${LD-ld} -m elf32_sparc" 5704 ;; 5705 esac 5706 ;; 5707 *64-bit*) 5708 case $host in 5709 x86_64-*kfreebsd*-gnu) 5710 LD="${LD-ld} -m elf_x86_64_fbsd" 5711 ;; 5712 x86_64-*linux*) 5713 LD="${LD-ld} -m elf_x86_64" 5714 ;; 5715 ppc*-*linux*|powerpc*-*linux*) 5716 LD="${LD-ld} -m elf64ppc" 5717 ;; 5718 s390*-*linux*|s390*-*tpf*) 5719 LD="${LD-ld} -m elf64_s390" 5720 ;; 5721 sparc*-*linux*) 5722 LD="${LD-ld} -m elf64_sparc" 5723 ;; 5724 esac 5725 ;; 5726 esac 5727 fi 5728 rm -rf conftest* 5729 ;; 5730 5731*-*-sco3.2v5*) 5732 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5733 SAVE_CFLAGS="$CFLAGS" 5734 CFLAGS="$CFLAGS -belf" 5735 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5736$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5737if test "${lt_cv_cc_needs_belf+set}" = set; then 5738 $as_echo_n "(cached) " >&6 5739else 5740 ac_ext=c 5741ac_cpp='$CPP $CPPFLAGS' 5742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5744ac_compiler_gnu=$ac_cv_c_compiler_gnu 5745 5746 cat >conftest.$ac_ext <<_ACEOF 5747/* confdefs.h. */ 5748_ACEOF 5749cat confdefs.h >>conftest.$ac_ext 5750cat >>conftest.$ac_ext <<_ACEOF 5751/* end confdefs.h. */ 5752 5753int 5754main () 5755{ 5756 5757 ; 5758 return 0; 5759} 5760_ACEOF 5761rm -f conftest.$ac_objext conftest$ac_exeext 5762if { (ac_try="$ac_link" 5763case "(($ac_try" in 5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5765 *) ac_try_echo=$ac_try;; 5766esac 5767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5768$as_echo "$ac_try_echo") >&5 5769 (eval "$ac_link") 2>conftest.er1 5770 ac_status=$? 5771 grep -v '^ *+' conftest.er1 >conftest.err 5772 rm -f conftest.er1 5773 cat conftest.err >&5 5774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5775 (exit $ac_status); } && { 5776 test -z "$ac_c_werror_flag" || 5777 test ! -s conftest.err 5778 } && test -s conftest$ac_exeext && { 5779 test "$cross_compiling" = yes || 5780 $as_test_x conftest$ac_exeext 5781 }; then 5782 lt_cv_cc_needs_belf=yes 5783else 5784 $as_echo "$as_me: failed program was:" >&5 5785sed 's/^/| /' conftest.$ac_ext >&5 5786 5787 lt_cv_cc_needs_belf=no 5788fi 5789 5790rm -rf conftest.dSYM 5791rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5792 conftest$ac_exeext conftest.$ac_ext 5793 ac_ext=c 5794ac_cpp='$CPP $CPPFLAGS' 5795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5797ac_compiler_gnu=$ac_cv_c_compiler_gnu 5798 5799fi 5800{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5801$as_echo "$lt_cv_cc_needs_belf" >&6; } 5802 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5803 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5804 CFLAGS="$SAVE_CFLAGS" 5805 fi 5806 ;; 5807sparc*-*solaris*) 5808 # Find out which ABI we are using. 5809 echo 'int i;' > conftest.$ac_ext 5810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5811 (eval $ac_compile) 2>&5 5812 ac_status=$? 5813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5814 (exit $ac_status); }; then 5815 case `/usr/bin/file conftest.o` in 5816 *64-bit*) 5817 case $lt_cv_prog_gnu_ld in 5818 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5819 *) 5820 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5821 LD="${LD-ld} -64" 5822 fi 5823 ;; 5824 esac 5825 ;; 5826 esac 5827 fi 5828 rm -rf conftest* 5829 ;; 5830esac 5831 5832need_locks="$enable_libtool_lock" 5833 5834 5835 case $host_os in 5836 rhapsody* | darwin*) 5837 if test -n "$ac_tool_prefix"; then 5838 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5839set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5840{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5841$as_echo_n "checking for $ac_word... " >&6; } 5842if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 5843 $as_echo_n "(cached) " >&6 5844else 5845 if test -n "$DSYMUTIL"; then 5846 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5847else 5848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5849for as_dir in $PATH 5850do 5851 IFS=$as_save_IFS 5852 test -z "$as_dir" && as_dir=. 5853 for ac_exec_ext in '' $ac_executable_extensions; do 5854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5855 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5856 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5857 break 2 5858 fi 5859done 5860done 5861IFS=$as_save_IFS 5862 5863fi 5864fi 5865DSYMUTIL=$ac_cv_prog_DSYMUTIL 5866if test -n "$DSYMUTIL"; then 5867 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 5868$as_echo "$DSYMUTIL" >&6; } 5869else 5870 { $as_echo "$as_me:$LINENO: result: no" >&5 5871$as_echo "no" >&6; } 5872fi 5873 5874 5875fi 5876if test -z "$ac_cv_prog_DSYMUTIL"; then 5877 ac_ct_DSYMUTIL=$DSYMUTIL 5878 # Extract the first word of "dsymutil", so it can be a program name with args. 5879set dummy dsymutil; ac_word=$2 5880{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5881$as_echo_n "checking for $ac_word... " >&6; } 5882if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 5883 $as_echo_n "(cached) " >&6 5884else 5885 if test -n "$ac_ct_DSYMUTIL"; then 5886 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5887else 5888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5889for as_dir in $PATH 5890do 5891 IFS=$as_save_IFS 5892 test -z "$as_dir" && as_dir=. 5893 for ac_exec_ext in '' $ac_executable_extensions; do 5894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5895 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5897 break 2 5898 fi 5899done 5900done 5901IFS=$as_save_IFS 5902 5903fi 5904fi 5905ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5906if test -n "$ac_ct_DSYMUTIL"; then 5907 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 5908$as_echo "$ac_ct_DSYMUTIL" >&6; } 5909else 5910 { $as_echo "$as_me:$LINENO: result: no" >&5 5911$as_echo "no" >&6; } 5912fi 5913 5914 if test "x$ac_ct_DSYMUTIL" = x; then 5915 DSYMUTIL=":" 5916 else 5917 case $cross_compiling:$ac_tool_warned in 5918yes:) 5919{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5921ac_tool_warned=yes ;; 5922esac 5923 DSYMUTIL=$ac_ct_DSYMUTIL 5924 fi 5925else 5926 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5927fi 5928 5929 if test -n "$ac_tool_prefix"; then 5930 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5931set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5932{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5933$as_echo_n "checking for $ac_word... " >&6; } 5934if test "${ac_cv_prog_NMEDIT+set}" = set; then 5935 $as_echo_n "(cached) " >&6 5936else 5937 if test -n "$NMEDIT"; then 5938 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5939else 5940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5941for as_dir in $PATH 5942do 5943 IFS=$as_save_IFS 5944 test -z "$as_dir" && as_dir=. 5945 for ac_exec_ext in '' $ac_executable_extensions; do 5946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5947 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5948 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5949 break 2 5950 fi 5951done 5952done 5953IFS=$as_save_IFS 5954 5955fi 5956fi 5957NMEDIT=$ac_cv_prog_NMEDIT 5958if test -n "$NMEDIT"; then 5959 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 5960$as_echo "$NMEDIT" >&6; } 5961else 5962 { $as_echo "$as_me:$LINENO: result: no" >&5 5963$as_echo "no" >&6; } 5964fi 5965 5966 5967fi 5968if test -z "$ac_cv_prog_NMEDIT"; then 5969 ac_ct_NMEDIT=$NMEDIT 5970 # Extract the first word of "nmedit", so it can be a program name with args. 5971set dummy nmedit; ac_word=$2 5972{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5973$as_echo_n "checking for $ac_word... " >&6; } 5974if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 5975 $as_echo_n "(cached) " >&6 5976else 5977 if test -n "$ac_ct_NMEDIT"; then 5978 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 5979else 5980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5981for as_dir in $PATH 5982do 5983 IFS=$as_save_IFS 5984 test -z "$as_dir" && as_dir=. 5985 for ac_exec_ext in '' $ac_executable_extensions; do 5986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5987 ac_cv_prog_ac_ct_NMEDIT="nmedit" 5988 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5989 break 2 5990 fi 5991done 5992done 5993IFS=$as_save_IFS 5994 5995fi 5996fi 5997ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 5998if test -n "$ac_ct_NMEDIT"; then 5999 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 6000$as_echo "$ac_ct_NMEDIT" >&6; } 6001else 6002 { $as_echo "$as_me:$LINENO: result: no" >&5 6003$as_echo "no" >&6; } 6004fi 6005 6006 if test "x$ac_ct_NMEDIT" = x; then 6007 NMEDIT=":" 6008 else 6009 case $cross_compiling:$ac_tool_warned in 6010yes:) 6011{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6013ac_tool_warned=yes ;; 6014esac 6015 NMEDIT=$ac_ct_NMEDIT 6016 fi 6017else 6018 NMEDIT="$ac_cv_prog_NMEDIT" 6019fi 6020 6021 if test -n "$ac_tool_prefix"; then 6022 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6023set dummy ${ac_tool_prefix}lipo; ac_word=$2 6024{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6025$as_echo_n "checking for $ac_word... " >&6; } 6026if test "${ac_cv_prog_LIPO+set}" = set; then 6027 $as_echo_n "(cached) " >&6 6028else 6029 if test -n "$LIPO"; then 6030 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6031else 6032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6033for as_dir in $PATH 6034do 6035 IFS=$as_save_IFS 6036 test -z "$as_dir" && as_dir=. 6037 for ac_exec_ext in '' $ac_executable_extensions; do 6038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6039 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6040 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6041 break 2 6042 fi 6043done 6044done 6045IFS=$as_save_IFS 6046 6047fi 6048fi 6049LIPO=$ac_cv_prog_LIPO 6050if test -n "$LIPO"; then 6051 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 6052$as_echo "$LIPO" >&6; } 6053else 6054 { $as_echo "$as_me:$LINENO: result: no" >&5 6055$as_echo "no" >&6; } 6056fi 6057 6058 6059fi 6060if test -z "$ac_cv_prog_LIPO"; then 6061 ac_ct_LIPO=$LIPO 6062 # Extract the first word of "lipo", so it can be a program name with args. 6063set dummy lipo; ac_word=$2 6064{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6065$as_echo_n "checking for $ac_word... " >&6; } 6066if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 6067 $as_echo_n "(cached) " >&6 6068else 6069 if test -n "$ac_ct_LIPO"; then 6070 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6071else 6072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6073for as_dir in $PATH 6074do 6075 IFS=$as_save_IFS 6076 test -z "$as_dir" && as_dir=. 6077 for ac_exec_ext in '' $ac_executable_extensions; do 6078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6079 ac_cv_prog_ac_ct_LIPO="lipo" 6080 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6081 break 2 6082 fi 6083done 6084done 6085IFS=$as_save_IFS 6086 6087fi 6088fi 6089ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6090if test -n "$ac_ct_LIPO"; then 6091 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 6092$as_echo "$ac_ct_LIPO" >&6; } 6093else 6094 { $as_echo "$as_me:$LINENO: result: no" >&5 6095$as_echo "no" >&6; } 6096fi 6097 6098 if test "x$ac_ct_LIPO" = x; then 6099 LIPO=":" 6100 else 6101 case $cross_compiling:$ac_tool_warned in 6102yes:) 6103{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6105ac_tool_warned=yes ;; 6106esac 6107 LIPO=$ac_ct_LIPO 6108 fi 6109else 6110 LIPO="$ac_cv_prog_LIPO" 6111fi 6112 6113 if test -n "$ac_tool_prefix"; then 6114 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6115set dummy ${ac_tool_prefix}otool; ac_word=$2 6116{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6117$as_echo_n "checking for $ac_word... " >&6; } 6118if test "${ac_cv_prog_OTOOL+set}" = set; then 6119 $as_echo_n "(cached) " >&6 6120else 6121 if test -n "$OTOOL"; then 6122 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6123else 6124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6125for as_dir in $PATH 6126do 6127 IFS=$as_save_IFS 6128 test -z "$as_dir" && as_dir=. 6129 for ac_exec_ext in '' $ac_executable_extensions; do 6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6131 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6132 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6133 break 2 6134 fi 6135done 6136done 6137IFS=$as_save_IFS 6138 6139fi 6140fi 6141OTOOL=$ac_cv_prog_OTOOL 6142if test -n "$OTOOL"; then 6143 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 6144$as_echo "$OTOOL" >&6; } 6145else 6146 { $as_echo "$as_me:$LINENO: result: no" >&5 6147$as_echo "no" >&6; } 6148fi 6149 6150 6151fi 6152if test -z "$ac_cv_prog_OTOOL"; then 6153 ac_ct_OTOOL=$OTOOL 6154 # Extract the first word of "otool", so it can be a program name with args. 6155set dummy otool; ac_word=$2 6156{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6157$as_echo_n "checking for $ac_word... " >&6; } 6158if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6159 $as_echo_n "(cached) " >&6 6160else 6161 if test -n "$ac_ct_OTOOL"; then 6162 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6163else 6164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6165for as_dir in $PATH 6166do 6167 IFS=$as_save_IFS 6168 test -z "$as_dir" && as_dir=. 6169 for ac_exec_ext in '' $ac_executable_extensions; do 6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6171 ac_cv_prog_ac_ct_OTOOL="otool" 6172 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6173 break 2 6174 fi 6175done 6176done 6177IFS=$as_save_IFS 6178 6179fi 6180fi 6181ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6182if test -n "$ac_ct_OTOOL"; then 6183 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6184$as_echo "$ac_ct_OTOOL" >&6; } 6185else 6186 { $as_echo "$as_me:$LINENO: result: no" >&5 6187$as_echo "no" >&6; } 6188fi 6189 6190 if test "x$ac_ct_OTOOL" = x; then 6191 OTOOL=":" 6192 else 6193 case $cross_compiling:$ac_tool_warned in 6194yes:) 6195{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6196$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6197ac_tool_warned=yes ;; 6198esac 6199 OTOOL=$ac_ct_OTOOL 6200 fi 6201else 6202 OTOOL="$ac_cv_prog_OTOOL" 6203fi 6204 6205 if test -n "$ac_tool_prefix"; then 6206 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6207set dummy ${ac_tool_prefix}otool64; ac_word=$2 6208{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6209$as_echo_n "checking for $ac_word... " >&6; } 6210if test "${ac_cv_prog_OTOOL64+set}" = set; then 6211 $as_echo_n "(cached) " >&6 6212else 6213 if test -n "$OTOOL64"; then 6214 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6215else 6216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6217for as_dir in $PATH 6218do 6219 IFS=$as_save_IFS 6220 test -z "$as_dir" && as_dir=. 6221 for ac_exec_ext in '' $ac_executable_extensions; do 6222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6223 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6225 break 2 6226 fi 6227done 6228done 6229IFS=$as_save_IFS 6230 6231fi 6232fi 6233OTOOL64=$ac_cv_prog_OTOOL64 6234if test -n "$OTOOL64"; then 6235 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 6236$as_echo "$OTOOL64" >&6; } 6237else 6238 { $as_echo "$as_me:$LINENO: result: no" >&5 6239$as_echo "no" >&6; } 6240fi 6241 6242 6243fi 6244if test -z "$ac_cv_prog_OTOOL64"; then 6245 ac_ct_OTOOL64=$OTOOL64 6246 # Extract the first word of "otool64", so it can be a program name with args. 6247set dummy otool64; ac_word=$2 6248{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6249$as_echo_n "checking for $ac_word... " >&6; } 6250if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6251 $as_echo_n "(cached) " >&6 6252else 6253 if test -n "$ac_ct_OTOOL64"; then 6254 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6255else 6256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6257for as_dir in $PATH 6258do 6259 IFS=$as_save_IFS 6260 test -z "$as_dir" && as_dir=. 6261 for ac_exec_ext in '' $ac_executable_extensions; do 6262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6263 ac_cv_prog_ac_ct_OTOOL64="otool64" 6264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6265 break 2 6266 fi 6267done 6268done 6269IFS=$as_save_IFS 6270 6271fi 6272fi 6273ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6274if test -n "$ac_ct_OTOOL64"; then 6275 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6276$as_echo "$ac_ct_OTOOL64" >&6; } 6277else 6278 { $as_echo "$as_me:$LINENO: result: no" >&5 6279$as_echo "no" >&6; } 6280fi 6281 6282 if test "x$ac_ct_OTOOL64" = x; then 6283 OTOOL64=":" 6284 else 6285 case $cross_compiling:$ac_tool_warned in 6286yes:) 6287{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6289ac_tool_warned=yes ;; 6290esac 6291 OTOOL64=$ac_ct_OTOOL64 6292 fi 6293else 6294 OTOOL64="$ac_cv_prog_OTOOL64" 6295fi 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6324$as_echo_n "checking for -single_module linker flag... " >&6; } 6325if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6326 $as_echo_n "(cached) " >&6 6327else 6328 lt_cv_apple_cc_single_mod=no 6329 if test -z "${LT_MULTI_MODULE}"; then 6330 # By default we will add the -single_module flag. You can override 6331 # by either setting the environment variable LT_MULTI_MODULE 6332 # non-empty at configure time, or by adding -multi_module to the 6333 # link flags. 6334 rm -rf libconftest.dylib* 6335 echo "int foo(void){return 1;}" > conftest.c 6336 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6337-dynamiclib -Wl,-single_module conftest.c" >&5 6338 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6339 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6340 _lt_result=$? 6341 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6342 lt_cv_apple_cc_single_mod=yes 6343 else 6344 cat conftest.err >&5 6345 fi 6346 rm -rf libconftest.dylib* 6347 rm -f conftest.* 6348 fi 6349fi 6350{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6351$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6352 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6353$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6354if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6355 $as_echo_n "(cached) " >&6 6356else 6357 lt_cv_ld_exported_symbols_list=no 6358 save_LDFLAGS=$LDFLAGS 6359 echo "_main" > conftest.sym 6360 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6361 cat >conftest.$ac_ext <<_ACEOF 6362/* confdefs.h. */ 6363_ACEOF 6364cat confdefs.h >>conftest.$ac_ext 6365cat >>conftest.$ac_ext <<_ACEOF 6366/* end confdefs.h. */ 6367 6368int 6369main () 6370{ 6371 6372 ; 6373 return 0; 6374} 6375_ACEOF 6376rm -f conftest.$ac_objext conftest$ac_exeext 6377if { (ac_try="$ac_link" 6378case "(($ac_try" in 6379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6380 *) ac_try_echo=$ac_try;; 6381esac 6382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6383$as_echo "$ac_try_echo") >&5 6384 (eval "$ac_link") 2>conftest.er1 6385 ac_status=$? 6386 grep -v '^ *+' conftest.er1 >conftest.err 6387 rm -f conftest.er1 6388 cat conftest.err >&5 6389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6390 (exit $ac_status); } && { 6391 test -z "$ac_c_werror_flag" || 6392 test ! -s conftest.err 6393 } && test -s conftest$ac_exeext && { 6394 test "$cross_compiling" = yes || 6395 $as_test_x conftest$ac_exeext 6396 }; then 6397 lt_cv_ld_exported_symbols_list=yes 6398else 6399 $as_echo "$as_me: failed program was:" >&5 6400sed 's/^/| /' conftest.$ac_ext >&5 6401 6402 lt_cv_ld_exported_symbols_list=no 6403fi 6404 6405rm -rf conftest.dSYM 6406rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6407 conftest$ac_exeext conftest.$ac_ext 6408 LDFLAGS="$save_LDFLAGS" 6409 6410fi 6411{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6412$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6413 case $host_os in 6414 rhapsody* | darwin1.[012]) 6415 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6416 darwin1.*) 6417 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6418 darwin*) # darwin 5.x on 6419 # if running on 10.5 or later, the deployment target defaults 6420 # to the OS version, if on x86, and 10.4, the deployment 6421 # target defaults to 10.4. Don't you love it? 6422 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6423 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6424 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6425 10.[012]*) 6426 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6427 10.*) 6428 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6429 esac 6430 ;; 6431 esac 6432 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6433 _lt_dar_single_mod='$single_module' 6434 fi 6435 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6436 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6437 else 6438 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6439 fi 6440 if test "$DSYMUTIL" != ":"; then 6441 _lt_dsymutil='~$DSYMUTIL $lib || :' 6442 else 6443 _lt_dsymutil= 6444 fi 6445 ;; 6446 esac 6447 6448ac_ext=c 6449ac_cpp='$CPP $CPPFLAGS' 6450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6452ac_compiler_gnu=$ac_cv_c_compiler_gnu 6453{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6454$as_echo_n "checking how to run the C preprocessor... " >&6; } 6455# On Suns, sometimes $CPP names a directory. 6456if test -n "$CPP" && test -d "$CPP"; then 6457 CPP= 6458fi 6459if test -z "$CPP"; then 6460 if test "${ac_cv_prog_CPP+set}" = set; then 6461 $as_echo_n "(cached) " >&6 6462else 6463 # Double quotes because CPP needs to be expanded 6464 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6465 do 6466 ac_preproc_ok=false 6467for ac_c_preproc_warn_flag in '' yes 6468do 6469 # Use a header file that comes with gcc, so configuring glibc 6470 # with a fresh cross-compiler works. 6471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6472 # <limits.h> exists even on freestanding compilers. 6473 # On the NeXT, cc -E runs the code through the compiler's parser, 6474 # not just through cpp. "Syntax error" is here to catch this case. 6475 cat >conftest.$ac_ext <<_ACEOF 6476/* confdefs.h. */ 6477_ACEOF 6478cat confdefs.h >>conftest.$ac_ext 6479cat >>conftest.$ac_ext <<_ACEOF 6480/* end confdefs.h. */ 6481#ifdef __STDC__ 6482# include <limits.h> 6483#else 6484# include <assert.h> 6485#endif 6486 Syntax error 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_c_preproc_warn_flag$ac_c_werror_flag" || 6503 test ! -s conftest.err 6504 }; then 6505 : 6506else 6507 $as_echo "$as_me: failed program was:" >&5 6508sed 's/^/| /' conftest.$ac_ext >&5 6509 6510 # Broken: fails on valid input. 6511continue 6512fi 6513 6514rm -f conftest.err conftest.$ac_ext 6515 6516 # OK, works on sane cases. Now check whether nonexistent headers 6517 # can be detected and how. 6518 cat >conftest.$ac_ext <<_ACEOF 6519/* confdefs.h. */ 6520_ACEOF 6521cat confdefs.h >>conftest.$ac_ext 6522cat >>conftest.$ac_ext <<_ACEOF 6523/* end confdefs.h. */ 6524#include <ac_nonexistent.h> 6525_ACEOF 6526if { (ac_try="$ac_cpp conftest.$ac_ext" 6527case "(($ac_try" in 6528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6529 *) ac_try_echo=$ac_try;; 6530esac 6531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6532$as_echo "$ac_try_echo") >&5 6533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6534 ac_status=$? 6535 grep -v '^ *+' conftest.er1 >conftest.err 6536 rm -f conftest.er1 6537 cat conftest.err >&5 6538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6539 (exit $ac_status); } >/dev/null && { 6540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6541 test ! -s conftest.err 6542 }; then 6543 # Broken: success on invalid input. 6544continue 6545else 6546 $as_echo "$as_me: failed program was:" >&5 6547sed 's/^/| /' conftest.$ac_ext >&5 6548 6549 # Passes both tests. 6550ac_preproc_ok=: 6551break 6552fi 6553 6554rm -f conftest.err conftest.$ac_ext 6555 6556done 6557# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6558rm -f conftest.err conftest.$ac_ext 6559if $ac_preproc_ok; then 6560 break 6561fi 6562 6563 done 6564 ac_cv_prog_CPP=$CPP 6565 6566fi 6567 CPP=$ac_cv_prog_CPP 6568else 6569 ac_cv_prog_CPP=$CPP 6570fi 6571{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 6572$as_echo "$CPP" >&6; } 6573ac_preproc_ok=false 6574for ac_c_preproc_warn_flag in '' yes 6575do 6576 # Use a header file that comes with gcc, so configuring glibc 6577 # with a fresh cross-compiler works. 6578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6579 # <limits.h> exists even on freestanding compilers. 6580 # On the NeXT, cc -E runs the code through the compiler's parser, 6581 # not just through cpp. "Syntax error" is here to catch this case. 6582 cat >conftest.$ac_ext <<_ACEOF 6583/* confdefs.h. */ 6584_ACEOF 6585cat confdefs.h >>conftest.$ac_ext 6586cat >>conftest.$ac_ext <<_ACEOF 6587/* end confdefs.h. */ 6588#ifdef __STDC__ 6589# include <limits.h> 6590#else 6591# include <assert.h> 6592#endif 6593 Syntax error 6594_ACEOF 6595if { (ac_try="$ac_cpp conftest.$ac_ext" 6596case "(($ac_try" in 6597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6598 *) ac_try_echo=$ac_try;; 6599esac 6600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6601$as_echo "$ac_try_echo") >&5 6602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6603 ac_status=$? 6604 grep -v '^ *+' conftest.er1 >conftest.err 6605 rm -f conftest.er1 6606 cat conftest.err >&5 6607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6608 (exit $ac_status); } >/dev/null && { 6609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6610 test ! -s conftest.err 6611 }; then 6612 : 6613else 6614 $as_echo "$as_me: failed program was:" >&5 6615sed 's/^/| /' conftest.$ac_ext >&5 6616 6617 # Broken: fails on valid input. 6618continue 6619fi 6620 6621rm -f conftest.err conftest.$ac_ext 6622 6623 # OK, works on sane cases. Now check whether nonexistent headers 6624 # can be detected and how. 6625 cat >conftest.$ac_ext <<_ACEOF 6626/* confdefs.h. */ 6627_ACEOF 6628cat confdefs.h >>conftest.$ac_ext 6629cat >>conftest.$ac_ext <<_ACEOF 6630/* end confdefs.h. */ 6631#include <ac_nonexistent.h> 6632_ACEOF 6633if { (ac_try="$ac_cpp conftest.$ac_ext" 6634case "(($ac_try" in 6635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6636 *) ac_try_echo=$ac_try;; 6637esac 6638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6639$as_echo "$ac_try_echo") >&5 6640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6641 ac_status=$? 6642 grep -v '^ *+' conftest.er1 >conftest.err 6643 rm -f conftest.er1 6644 cat conftest.err >&5 6645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6646 (exit $ac_status); } >/dev/null && { 6647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6648 test ! -s conftest.err 6649 }; then 6650 # Broken: success on invalid input. 6651continue 6652else 6653 $as_echo "$as_me: failed program was:" >&5 6654sed 's/^/| /' conftest.$ac_ext >&5 6655 6656 # Passes both tests. 6657ac_preproc_ok=: 6658break 6659fi 6660 6661rm -f conftest.err conftest.$ac_ext 6662 6663done 6664# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6665rm -f conftest.err conftest.$ac_ext 6666if $ac_preproc_ok; then 6667 : 6668else 6669 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6671{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6672See \`config.log' for more details." >&5 6673$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6674See \`config.log' for more details." >&2;} 6675 { (exit 1); exit 1; }; }; } 6676fi 6677 6678ac_ext=c 6679ac_cpp='$CPP $CPPFLAGS' 6680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6682ac_compiler_gnu=$ac_cv_c_compiler_gnu 6683 6684 6685{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6686$as_echo_n "checking for ANSI C header files... " >&6; } 6687if test "${ac_cv_header_stdc+set}" = set; then 6688 $as_echo_n "(cached) " >&6 6689else 6690 cat >conftest.$ac_ext <<_ACEOF 6691/* confdefs.h. */ 6692_ACEOF 6693cat confdefs.h >>conftest.$ac_ext 6694cat >>conftest.$ac_ext <<_ACEOF 6695/* end confdefs.h. */ 6696#include <stdlib.h> 6697#include <stdarg.h> 6698#include <string.h> 6699#include <float.h> 6700 6701int 6702main () 6703{ 6704 6705 ; 6706 return 0; 6707} 6708_ACEOF 6709rm -f conftest.$ac_objext 6710if { (ac_try="$ac_compile" 6711case "(($ac_try" in 6712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6713 *) ac_try_echo=$ac_try;; 6714esac 6715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6716$as_echo "$ac_try_echo") >&5 6717 (eval "$ac_compile") 2>conftest.er1 6718 ac_status=$? 6719 grep -v '^ *+' conftest.er1 >conftest.err 6720 rm -f conftest.er1 6721 cat conftest.err >&5 6722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6723 (exit $ac_status); } && { 6724 test -z "$ac_c_werror_flag" || 6725 test ! -s conftest.err 6726 } && test -s conftest.$ac_objext; then 6727 ac_cv_header_stdc=yes 6728else 6729 $as_echo "$as_me: failed program was:" >&5 6730sed 's/^/| /' conftest.$ac_ext >&5 6731 6732 ac_cv_header_stdc=no 6733fi 6734 6735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6736 6737if test $ac_cv_header_stdc = yes; then 6738 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6739 cat >conftest.$ac_ext <<_ACEOF 6740/* confdefs.h. */ 6741_ACEOF 6742cat confdefs.h >>conftest.$ac_ext 6743cat >>conftest.$ac_ext <<_ACEOF 6744/* end confdefs.h. */ 6745#include <string.h> 6746 6747_ACEOF 6748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6749 $EGREP "memchr" >/dev/null 2>&1; then 6750 : 6751else 6752 ac_cv_header_stdc=no 6753fi 6754rm -f conftest* 6755 6756fi 6757 6758if test $ac_cv_header_stdc = yes; then 6759 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6760 cat >conftest.$ac_ext <<_ACEOF 6761/* confdefs.h. */ 6762_ACEOF 6763cat confdefs.h >>conftest.$ac_ext 6764cat >>conftest.$ac_ext <<_ACEOF 6765/* end confdefs.h. */ 6766#include <stdlib.h> 6767 6768_ACEOF 6769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6770 $EGREP "free" >/dev/null 2>&1; then 6771 : 6772else 6773 ac_cv_header_stdc=no 6774fi 6775rm -f conftest* 6776 6777fi 6778 6779if test $ac_cv_header_stdc = yes; then 6780 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6781 if test "$cross_compiling" = yes; then 6782 : 6783else 6784 cat >conftest.$ac_ext <<_ACEOF 6785/* confdefs.h. */ 6786_ACEOF 6787cat confdefs.h >>conftest.$ac_ext 6788cat >>conftest.$ac_ext <<_ACEOF 6789/* end confdefs.h. */ 6790#include <ctype.h> 6791#include <stdlib.h> 6792#if ((' ' & 0x0FF) == 0x020) 6793# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6794# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6795#else 6796# define ISLOWER(c) \ 6797 (('a' <= (c) && (c) <= 'i') \ 6798 || ('j' <= (c) && (c) <= 'r') \ 6799 || ('s' <= (c) && (c) <= 'z')) 6800# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6801#endif 6802 6803#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6804int 6805main () 6806{ 6807 int i; 6808 for (i = 0; i < 256; i++) 6809 if (XOR (islower (i), ISLOWER (i)) 6810 || toupper (i) != TOUPPER (i)) 6811 return 2; 6812 return 0; 6813} 6814_ACEOF 6815rm -f conftest$ac_exeext 6816if { (ac_try="$ac_link" 6817case "(($ac_try" in 6818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6819 *) ac_try_echo=$ac_try;; 6820esac 6821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6822$as_echo "$ac_try_echo") >&5 6823 (eval "$ac_link") 2>&5 6824 ac_status=$? 6825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6827 { (case "(($ac_try" in 6828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6829 *) ac_try_echo=$ac_try;; 6830esac 6831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6832$as_echo "$ac_try_echo") >&5 6833 (eval "$ac_try") 2>&5 6834 ac_status=$? 6835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6836 (exit $ac_status); }; }; then 6837 : 6838else 6839 $as_echo "$as_me: program exited with status $ac_status" >&5 6840$as_echo "$as_me: failed program was:" >&5 6841sed 's/^/| /' conftest.$ac_ext >&5 6842 6843( exit $ac_status ) 6844ac_cv_header_stdc=no 6845fi 6846rm -rf conftest.dSYM 6847rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6848fi 6849 6850 6851fi 6852fi 6853{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6854$as_echo "$ac_cv_header_stdc" >&6; } 6855if test $ac_cv_header_stdc = yes; then 6856 6857cat >>confdefs.h <<\_ACEOF 6858#define STDC_HEADERS 1 6859_ACEOF 6860 6861fi 6862 6863# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6874 inttypes.h stdint.h unistd.h 6875do 6876as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6877{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6878$as_echo_n "checking for $ac_header... " >&6; } 6879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6880 $as_echo_n "(cached) " >&6 6881else 6882 cat >conftest.$ac_ext <<_ACEOF 6883/* confdefs.h. */ 6884_ACEOF 6885cat confdefs.h >>conftest.$ac_ext 6886cat >>conftest.$ac_ext <<_ACEOF 6887/* end confdefs.h. */ 6888$ac_includes_default 6889 6890#include <$ac_header> 6891_ACEOF 6892rm -f conftest.$ac_objext 6893if { (ac_try="$ac_compile" 6894case "(($ac_try" in 6895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6896 *) ac_try_echo=$ac_try;; 6897esac 6898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6899$as_echo "$ac_try_echo") >&5 6900 (eval "$ac_compile") 2>conftest.er1 6901 ac_status=$? 6902 grep -v '^ *+' conftest.er1 >conftest.err 6903 rm -f conftest.er1 6904 cat conftest.err >&5 6905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6906 (exit $ac_status); } && { 6907 test -z "$ac_c_werror_flag" || 6908 test ! -s conftest.err 6909 } && test -s conftest.$ac_objext; then 6910 eval "$as_ac_Header=yes" 6911else 6912 $as_echo "$as_me: failed program was:" >&5 6913sed 's/^/| /' conftest.$ac_ext >&5 6914 6915 eval "$as_ac_Header=no" 6916fi 6917 6918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6919fi 6920ac_res=`eval 'as_val=${'$as_ac_Header'} 6921 $as_echo "$as_val"'` 6922 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6923$as_echo "$ac_res" >&6; } 6924as_val=`eval 'as_val=${'$as_ac_Header'} 6925 $as_echo "$as_val"'` 6926 if test "x$as_val" = x""yes; then 6927 cat >>confdefs.h <<_ACEOF 6928#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6929_ACEOF 6930 6931fi 6932 6933done 6934 6935 6936 6937for ac_header in dlfcn.h 6938do 6939as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6940{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6941$as_echo_n "checking for $ac_header... " >&6; } 6942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6943 $as_echo_n "(cached) " >&6 6944else 6945 cat >conftest.$ac_ext <<_ACEOF 6946/* confdefs.h. */ 6947_ACEOF 6948cat confdefs.h >>conftest.$ac_ext 6949cat >>conftest.$ac_ext <<_ACEOF 6950/* end confdefs.h. */ 6951$ac_includes_default 6952 6953#include <$ac_header> 6954_ACEOF 6955rm -f conftest.$ac_objext 6956if { (ac_try="$ac_compile" 6957case "(($ac_try" in 6958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6959 *) ac_try_echo=$ac_try;; 6960esac 6961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6962$as_echo "$ac_try_echo") >&5 6963 (eval "$ac_compile") 2>conftest.er1 6964 ac_status=$? 6965 grep -v '^ *+' conftest.er1 >conftest.err 6966 rm -f conftest.er1 6967 cat conftest.err >&5 6968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6969 (exit $ac_status); } && { 6970 test -z "$ac_c_werror_flag" || 6971 test ! -s conftest.err 6972 } && test -s conftest.$ac_objext; then 6973 eval "$as_ac_Header=yes" 6974else 6975 $as_echo "$as_me: failed program was:" >&5 6976sed 's/^/| /' conftest.$ac_ext >&5 6977 6978 eval "$as_ac_Header=no" 6979fi 6980 6981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6982fi 6983ac_res=`eval 'as_val=${'$as_ac_Header'} 6984 $as_echo "$as_val"'` 6985 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6986$as_echo "$ac_res" >&6; } 6987as_val=`eval 'as_val=${'$as_ac_Header'} 6988 $as_echo "$as_val"'` 6989 if test "x$as_val" = x""yes; then 6990 cat >>confdefs.h <<_ACEOF 6991#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6992_ACEOF 6993 6994fi 6995 6996done 6997 6998 6999 7000# Set options 7001 7002 7003 7004 enable_dlopen=no 7005 7006 7007 enable_win32_dll=no 7008 7009 7010 # Check whether --enable-shared was given. 7011if test "${enable_shared+set}" = set; then 7012 enableval=$enable_shared; p=${PACKAGE-default} 7013 case $enableval in 7014 yes) enable_shared=yes ;; 7015 no) enable_shared=no ;; 7016 *) 7017 enable_shared=no 7018 # Look at the argument we got. We use all the common list separators. 7019 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7020 for pkg in $enableval; do 7021 IFS="$lt_save_ifs" 7022 if test "X$pkg" = "X$p"; then 7023 enable_shared=yes 7024 fi 7025 done 7026 IFS="$lt_save_ifs" 7027 ;; 7028 esac 7029else 7030 enable_shared=yes 7031fi 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043# Check whether --with-pic was given. 7044if test "${with_pic+set}" = set; then 7045 withval=$with_pic; pic_mode="$withval" 7046else 7047 pic_mode=default 7048fi 7049 7050 7051test -z "$pic_mode" && pic_mode=default 7052 7053 7054 7055 7056 7057 7058 7059 # Check whether --enable-fast-install was given. 7060if test "${enable_fast_install+set}" = set; then 7061 enableval=$enable_fast_install; p=${PACKAGE-default} 7062 case $enableval in 7063 yes) enable_fast_install=yes ;; 7064 no) enable_fast_install=no ;; 7065 *) 7066 enable_fast_install=no 7067 # Look at the argument we got. We use all the common list separators. 7068 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7069 for pkg in $enableval; do 7070 IFS="$lt_save_ifs" 7071 if test "X$pkg" = "X$p"; then 7072 enable_fast_install=yes 7073 fi 7074 done 7075 IFS="$lt_save_ifs" 7076 ;; 7077 esac 7078else 7079 enable_fast_install=yes 7080fi 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092# This can be used to rebuild libtool when needed 7093LIBTOOL_DEPS="$ltmain" 7094 7095# Always use our own libtool. 7096LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122test -z "$LN_S" && LN_S="ln -s" 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137if test -n "${ZSH_VERSION+set}" ; then 7138 setopt NO_GLOB_SUBST 7139fi 7140 7141{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 7142$as_echo_n "checking for objdir... " >&6; } 7143if test "${lt_cv_objdir+set}" = set; then 7144 $as_echo_n "(cached) " >&6 7145else 7146 rm -f .libs 2>/dev/null 7147mkdir .libs 2>/dev/null 7148if test -d .libs; then 7149 lt_cv_objdir=.libs 7150else 7151 # MS-DOS does not allow filenames that begin with a dot. 7152 lt_cv_objdir=_libs 7153fi 7154rmdir .libs 2>/dev/null 7155fi 7156{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7157$as_echo "$lt_cv_objdir" >&6; } 7158objdir=$lt_cv_objdir 7159 7160 7161 7162 7163 7164cat >>confdefs.h <<_ACEOF 7165#define LT_OBJDIR "$lt_cv_objdir/" 7166_ACEOF 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184case $host_os in 7185aix3*) 7186 # AIX sometimes has problems with the GCC collect2 program. For some 7187 # reason, if we set the COLLECT_NAMES environment variable, the problems 7188 # vanish in a puff of smoke. 7189 if test "X${COLLECT_NAMES+set}" != Xset; then 7190 COLLECT_NAMES= 7191 export COLLECT_NAMES 7192 fi 7193 ;; 7194esac 7195 7196# Sed substitution that helps us do robust quoting. It backslashifies 7197# metacharacters that are still active within double-quoted strings. 7198sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7199 7200# Same as above, but do not quote variable references. 7201double_quote_subst='s/\(["`\\]\)/\\\1/g' 7202 7203# Sed substitution to delay expansion of an escaped shell variable in a 7204# double_quote_subst'ed string. 7205delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7206 7207# Sed substitution to delay expansion of an escaped single quote. 7208delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7209 7210# Sed substitution to avoid accidental globbing in evaled expressions 7211no_glob_subst='s/\*/\\\*/g' 7212 7213# Global variables: 7214ofile=libtool 7215can_build_shared=yes 7216 7217# All known linkers require a `.a' archive for static linking (except MSVC, 7218# which needs '.lib'). 7219libext=a 7220 7221with_gnu_ld="$lt_cv_prog_gnu_ld" 7222 7223old_CC="$CC" 7224old_CFLAGS="$CFLAGS" 7225 7226# Set sane defaults for various variables 7227test -z "$CC" && CC=cc 7228test -z "$LTCC" && LTCC=$CC 7229test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7230test -z "$LD" && LD=ld 7231test -z "$ac_objext" && ac_objext=o 7232 7233for cc_temp in $compiler""; do 7234 case $cc_temp in 7235 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7236 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7237 \-*) ;; 7238 *) break;; 7239 esac 7240done 7241cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7242 7243 7244# Only perform the check for file, if the check method requires it 7245test -z "$MAGIC_CMD" && MAGIC_CMD=file 7246case $deplibs_check_method in 7247file_magic*) 7248 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7249 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7250$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7251if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7252 $as_echo_n "(cached) " >&6 7253else 7254 case $MAGIC_CMD in 7255[\\/*] | ?:[\\/]*) 7256 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7257 ;; 7258*) 7259 lt_save_MAGIC_CMD="$MAGIC_CMD" 7260 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7261 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7262 for ac_dir in $ac_dummy; do 7263 IFS="$lt_save_ifs" 7264 test -z "$ac_dir" && ac_dir=. 7265 if test -f $ac_dir/${ac_tool_prefix}file; then 7266 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7267 if test -n "$file_magic_test_file"; then 7268 case $deplibs_check_method in 7269 "file_magic "*) 7270 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7271 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7272 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7273 $EGREP "$file_magic_regex" > /dev/null; then 7274 : 7275 else 7276 cat <<_LT_EOF 1>&2 7277 7278*** Warning: the command libtool uses to detect shared libraries, 7279*** $file_magic_cmd, produces output that libtool cannot recognize. 7280*** The result is that libtool may fail to recognize shared libraries 7281*** as such. This will affect the creation of libtool libraries that 7282*** depend on shared libraries, but programs linked with such libtool 7283*** libraries will work regardless of this problem. Nevertheless, you 7284*** may want to report the problem to your system manager and/or to 7285*** bug-libtool@gnu.org 7286 7287_LT_EOF 7288 fi ;; 7289 esac 7290 fi 7291 break 7292 fi 7293 done 7294 IFS="$lt_save_ifs" 7295 MAGIC_CMD="$lt_save_MAGIC_CMD" 7296 ;; 7297esac 7298fi 7299 7300MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7301if test -n "$MAGIC_CMD"; then 7302 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7303$as_echo "$MAGIC_CMD" >&6; } 7304else 7305 { $as_echo "$as_me:$LINENO: result: no" >&5 7306$as_echo "no" >&6; } 7307fi 7308 7309 7310 7311 7312 7313if test -z "$lt_cv_path_MAGIC_CMD"; then 7314 if test -n "$ac_tool_prefix"; then 7315 { $as_echo "$as_me:$LINENO: checking for file" >&5 7316$as_echo_n "checking for file... " >&6; } 7317if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7318 $as_echo_n "(cached) " >&6 7319else 7320 case $MAGIC_CMD in 7321[\\/*] | ?:[\\/]*) 7322 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7323 ;; 7324*) 7325 lt_save_MAGIC_CMD="$MAGIC_CMD" 7326 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7327 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7328 for ac_dir in $ac_dummy; do 7329 IFS="$lt_save_ifs" 7330 test -z "$ac_dir" && ac_dir=. 7331 if test -f $ac_dir/file; then 7332 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7333 if test -n "$file_magic_test_file"; then 7334 case $deplibs_check_method in 7335 "file_magic "*) 7336 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7337 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7338 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7339 $EGREP "$file_magic_regex" > /dev/null; then 7340 : 7341 else 7342 cat <<_LT_EOF 1>&2 7343 7344*** Warning: the command libtool uses to detect shared libraries, 7345*** $file_magic_cmd, produces output that libtool cannot recognize. 7346*** The result is that libtool may fail to recognize shared libraries 7347*** as such. This will affect the creation of libtool libraries that 7348*** depend on shared libraries, but programs linked with such libtool 7349*** libraries will work regardless of this problem. Nevertheless, you 7350*** may want to report the problem to your system manager and/or to 7351*** bug-libtool@gnu.org 7352 7353_LT_EOF 7354 fi ;; 7355 esac 7356 fi 7357 break 7358 fi 7359 done 7360 IFS="$lt_save_ifs" 7361 MAGIC_CMD="$lt_save_MAGIC_CMD" 7362 ;; 7363esac 7364fi 7365 7366MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7367if test -n "$MAGIC_CMD"; then 7368 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7369$as_echo "$MAGIC_CMD" >&6; } 7370else 7371 { $as_echo "$as_me:$LINENO: result: no" >&5 7372$as_echo "no" >&6; } 7373fi 7374 7375 7376 else 7377 MAGIC_CMD=: 7378 fi 7379fi 7380 7381 fi 7382 ;; 7383esac 7384 7385# Use C for the default configuration in the libtool script 7386 7387lt_save_CC="$CC" 7388ac_ext=c 7389ac_cpp='$CPP $CPPFLAGS' 7390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7392ac_compiler_gnu=$ac_cv_c_compiler_gnu 7393 7394 7395# Source file extension for C test sources. 7396ac_ext=c 7397 7398# Object file extension for compiled C test sources. 7399objext=o 7400objext=$objext 7401 7402# Code to be used in simple compile tests 7403lt_simple_compile_test_code="int some_variable = 0;" 7404 7405# Code to be used in simple link tests 7406lt_simple_link_test_code='int main(){return(0);}' 7407 7408 7409 7410 7411 7412 7413 7414# If no C compiler was specified, use CC. 7415LTCC=${LTCC-"$CC"} 7416 7417# If no C compiler flags were specified, use CFLAGS. 7418LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7419 7420# Allow CC to be a program name with arguments. 7421compiler=$CC 7422 7423# Save the default compiler, since it gets overwritten when the other 7424# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7425compiler_DEFAULT=$CC 7426 7427# save warnings/boilerplate of simple test code 7428ac_outfile=conftest.$ac_objext 7429echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7430eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7431_lt_compiler_boilerplate=`cat conftest.err` 7432$RM conftest* 7433 7434ac_outfile=conftest.$ac_objext 7435echo "$lt_simple_link_test_code" >conftest.$ac_ext 7436eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7437_lt_linker_boilerplate=`cat conftest.err` 7438$RM -r conftest* 7439 7440 7441if test -n "$compiler"; then 7442 7443lt_prog_compiler_no_builtin_flag= 7444 7445if test "$GCC" = yes; then 7446 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7447 7448 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7449$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7450if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7451 $as_echo_n "(cached) " >&6 7452else 7453 lt_cv_prog_compiler_rtti_exceptions=no 7454 ac_outfile=conftest.$ac_objext 7455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7456 lt_compiler_flag="-fno-rtti -fno-exceptions" 7457 # Insert the option either (1) after the last *FLAGS variable, or 7458 # (2) before a word containing "conftest.", or (3) at the end. 7459 # Note that $ac_compile itself does not contain backslashes and begins 7460 # with a dollar sign (not a hyphen), so the echo should work correctly. 7461 # The option is referenced via a variable to avoid confusing sed. 7462 lt_compile=`echo "$ac_compile" | $SED \ 7463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7465 -e 's:$: $lt_compiler_flag:'` 7466 (eval echo "\"\$as_me:7466: $lt_compile\"" >&5) 7467 (eval "$lt_compile" 2>conftest.err) 7468 ac_status=$? 7469 cat conftest.err >&5 7470 echo "$as_me:7470: \$? = $ac_status" >&5 7471 if (exit $ac_status) && test -s "$ac_outfile"; then 7472 # The compiler can only warn and ignore the option if not recognized 7473 # So say no if there are warnings other than the usual output. 7474 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7476 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7477 lt_cv_prog_compiler_rtti_exceptions=yes 7478 fi 7479 fi 7480 $RM conftest* 7481 7482fi 7483{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7484$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7485 7486if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7487 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7488else 7489 : 7490fi 7491 7492fi 7493 7494 7495 7496 7497 7498 7499 lt_prog_compiler_wl= 7500lt_prog_compiler_pic= 7501lt_prog_compiler_static= 7502 7503{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7504$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7505 7506 if test "$GCC" = yes; then 7507 lt_prog_compiler_wl='-Wl,' 7508 lt_prog_compiler_static='-static' 7509 7510 case $host_os in 7511 aix*) 7512 # All AIX code is PIC. 7513 if test "$host_cpu" = ia64; then 7514 # AIX 5 now supports IA64 processor 7515 lt_prog_compiler_static='-Bstatic' 7516 fi 7517 ;; 7518 7519 amigaos*) 7520 case $host_cpu in 7521 powerpc) 7522 # see comment about AmigaOS4 .so support 7523 lt_prog_compiler_pic='-fPIC' 7524 ;; 7525 m68k) 7526 # FIXME: we need at least 68020 code to build shared libraries, but 7527 # adding the `-m68020' flag to GCC prevents building anything better, 7528 # like `-m68040'. 7529 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7530 ;; 7531 esac 7532 ;; 7533 7534 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7535 # PIC is the default for these OSes. 7536 ;; 7537 7538 mingw* | cygwin* | pw32* | os2* | cegcc*) 7539 # This hack is so that the source file can tell whether it is being 7540 # built for inclusion in a dll (and should export symbols for example). 7541 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7542 # (--disable-auto-import) libraries 7543 lt_prog_compiler_pic='-DDLL_EXPORT' 7544 ;; 7545 7546 darwin* | rhapsody*) 7547 # PIC is the default on this platform 7548 # Common symbols not allowed in MH_DYLIB files 7549 lt_prog_compiler_pic='-fno-common' 7550 ;; 7551 7552 hpux*) 7553 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7554 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7555 # sets the default TLS model and affects inlining. 7556 case $host_cpu in 7557 hppa*64*) 7558 # +Z the default 7559 ;; 7560 *) 7561 lt_prog_compiler_pic='-fPIC' 7562 ;; 7563 esac 7564 ;; 7565 7566 interix[3-9]*) 7567 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7568 # Instead, we relocate shared libraries at runtime. 7569 ;; 7570 7571 msdosdjgpp*) 7572 # Just because we use GCC doesn't mean we suddenly get shared libraries 7573 # on systems that don't support them. 7574 lt_prog_compiler_can_build_shared=no 7575 enable_shared=no 7576 ;; 7577 7578 *nto* | *qnx*) 7579 # QNX uses GNU C++, but need to define -shared option too, otherwise 7580 # it will coredump. 7581 lt_prog_compiler_pic='-fPIC -shared' 7582 ;; 7583 7584 sysv4*MP*) 7585 if test -d /usr/nec; then 7586 lt_prog_compiler_pic=-Kconform_pic 7587 fi 7588 ;; 7589 7590 *) 7591 lt_prog_compiler_pic='-fPIC' 7592 ;; 7593 esac 7594 else 7595 # PORTME Check for flag to pass linker flags through the system compiler. 7596 case $host_os in 7597 aix*) 7598 lt_prog_compiler_wl='-Wl,' 7599 if test "$host_cpu" = ia64; then 7600 # AIX 5 now supports IA64 processor 7601 lt_prog_compiler_static='-Bstatic' 7602 else 7603 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7604 fi 7605 ;; 7606 7607 mingw* | cygwin* | pw32* | os2* | cegcc*) 7608 # This hack is so that the source file can tell whether it is being 7609 # built for inclusion in a dll (and should export symbols for example). 7610 lt_prog_compiler_pic='-DDLL_EXPORT' 7611 ;; 7612 7613 hpux9* | hpux10* | hpux11*) 7614 lt_prog_compiler_wl='-Wl,' 7615 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7616 # not for PA HP-UX. 7617 case $host_cpu in 7618 hppa*64*|ia64*) 7619 # +Z the default 7620 ;; 7621 *) 7622 lt_prog_compiler_pic='+Z' 7623 ;; 7624 esac 7625 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7626 lt_prog_compiler_static='${wl}-a ${wl}archive' 7627 ;; 7628 7629 irix5* | irix6* | nonstopux*) 7630 lt_prog_compiler_wl='-Wl,' 7631 # PIC (with -KPIC) is the default. 7632 lt_prog_compiler_static='-non_shared' 7633 ;; 7634 7635 linux* | k*bsd*-gnu) 7636 case $cc_basename in 7637 # old Intel for x86_64 which still supported -KPIC. 7638 ecc*) 7639 lt_prog_compiler_wl='-Wl,' 7640 lt_prog_compiler_pic='-KPIC' 7641 lt_prog_compiler_static='-static' 7642 ;; 7643 # icc used to be incompatible with GCC. 7644 # ICC 10 doesn't accept -KPIC any more. 7645 icc* | ifort*) 7646 lt_prog_compiler_wl='-Wl,' 7647 lt_prog_compiler_pic='-fPIC' 7648 lt_prog_compiler_static='-static' 7649 ;; 7650 # Lahey Fortran 8.1. 7651 lf95*) 7652 lt_prog_compiler_wl='-Wl,' 7653 lt_prog_compiler_pic='--shared' 7654 lt_prog_compiler_static='--static' 7655 ;; 7656 pgcc* | pgf77* | pgf90* | pgf95*) 7657 # Portland Group compilers (*not* the Pentium gcc compiler, 7658 # which looks to be a dead project) 7659 lt_prog_compiler_wl='-Wl,' 7660 lt_prog_compiler_pic='-fpic' 7661 lt_prog_compiler_static='-Bstatic' 7662 ;; 7663 ccc*) 7664 lt_prog_compiler_wl='-Wl,' 7665 # All Alpha code is PIC. 7666 lt_prog_compiler_static='-non_shared' 7667 ;; 7668 xl*) 7669 # IBM XL C 8.0/Fortran 10.1 on PPC 7670 lt_prog_compiler_wl='-Wl,' 7671 lt_prog_compiler_pic='-qpic' 7672 lt_prog_compiler_static='-qstaticlink' 7673 ;; 7674 *) 7675 case `$CC -V 2>&1 | sed 5q` in 7676 *Sun\ C*) 7677 # Sun C 5.9 7678 lt_prog_compiler_pic='-KPIC' 7679 lt_prog_compiler_static='-Bstatic' 7680 lt_prog_compiler_wl='-Wl,' 7681 ;; 7682 *Sun\ F*) 7683 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7684 lt_prog_compiler_pic='-KPIC' 7685 lt_prog_compiler_static='-Bstatic' 7686 lt_prog_compiler_wl='' 7687 ;; 7688 esac 7689 ;; 7690 esac 7691 ;; 7692 7693 newsos6) 7694 lt_prog_compiler_pic='-KPIC' 7695 lt_prog_compiler_static='-Bstatic' 7696 ;; 7697 7698 *nto* | *qnx*) 7699 # QNX uses GNU C++, but need to define -shared option too, otherwise 7700 # it will coredump. 7701 lt_prog_compiler_pic='-fPIC -shared' 7702 ;; 7703 7704 osf3* | osf4* | osf5*) 7705 lt_prog_compiler_wl='-Wl,' 7706 # All OSF/1 code is PIC. 7707 lt_prog_compiler_static='-non_shared' 7708 ;; 7709 7710 rdos*) 7711 lt_prog_compiler_static='-non_shared' 7712 ;; 7713 7714 solaris*) 7715 lt_prog_compiler_pic='-KPIC' 7716 lt_prog_compiler_static='-Bstatic' 7717 case $cc_basename in 7718 f77* | f90* | f95*) 7719 lt_prog_compiler_wl='-Qoption ld ';; 7720 *) 7721 lt_prog_compiler_wl='-Wl,';; 7722 esac 7723 ;; 7724 7725 sunos4*) 7726 lt_prog_compiler_wl='-Qoption ld ' 7727 lt_prog_compiler_pic='-PIC' 7728 lt_prog_compiler_static='-Bstatic' 7729 ;; 7730 7731 sysv4 | sysv4.2uw2* | sysv4.3*) 7732 lt_prog_compiler_wl='-Wl,' 7733 lt_prog_compiler_pic='-KPIC' 7734 lt_prog_compiler_static='-Bstatic' 7735 ;; 7736 7737 sysv4*MP*) 7738 if test -d /usr/nec ;then 7739 lt_prog_compiler_pic='-Kconform_pic' 7740 lt_prog_compiler_static='-Bstatic' 7741 fi 7742 ;; 7743 7744 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7745 lt_prog_compiler_wl='-Wl,' 7746 lt_prog_compiler_pic='-KPIC' 7747 lt_prog_compiler_static='-Bstatic' 7748 ;; 7749 7750 unicos*) 7751 lt_prog_compiler_wl='-Wl,' 7752 lt_prog_compiler_can_build_shared=no 7753 ;; 7754 7755 uts4*) 7756 lt_prog_compiler_pic='-pic' 7757 lt_prog_compiler_static='-Bstatic' 7758 ;; 7759 7760 *) 7761 lt_prog_compiler_can_build_shared=no 7762 ;; 7763 esac 7764 fi 7765 7766case $host_os in 7767 # For platforms which do not support PIC, -DPIC is meaningless: 7768 *djgpp*) 7769 lt_prog_compiler_pic= 7770 ;; 7771 *) 7772 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7773 ;; 7774esac 7775{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7776$as_echo "$lt_prog_compiler_pic" >&6; } 7777 7778 7779 7780 7781 7782 7783# 7784# Check to make sure the PIC flag actually works. 7785# 7786if test -n "$lt_prog_compiler_pic"; then 7787 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7788$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7789if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7790 $as_echo_n "(cached) " >&6 7791else 7792 lt_cv_prog_compiler_pic_works=no 7793 ac_outfile=conftest.$ac_objext 7794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7795 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7796 # Insert the option either (1) after the last *FLAGS variable, or 7797 # (2) before a word containing "conftest.", or (3) at the end. 7798 # Note that $ac_compile itself does not contain backslashes and begins 7799 # with a dollar sign (not a hyphen), so the echo should work correctly. 7800 # The option is referenced via a variable to avoid confusing sed. 7801 lt_compile=`echo "$ac_compile" | $SED \ 7802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7804 -e 's:$: $lt_compiler_flag:'` 7805 (eval echo "\"\$as_me:7805: $lt_compile\"" >&5) 7806 (eval "$lt_compile" 2>conftest.err) 7807 ac_status=$? 7808 cat conftest.err >&5 7809 echo "$as_me:7809: \$? = $ac_status" >&5 7810 if (exit $ac_status) && test -s "$ac_outfile"; then 7811 # The compiler can only warn and ignore the option if not recognized 7812 # So say no if there are warnings other than the usual output. 7813 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7815 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7816 lt_cv_prog_compiler_pic_works=yes 7817 fi 7818 fi 7819 $RM conftest* 7820 7821fi 7822{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7823$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7824 7825if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7826 case $lt_prog_compiler_pic in 7827 "" | " "*) ;; 7828 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7829 esac 7830else 7831 lt_prog_compiler_pic= 7832 lt_prog_compiler_can_build_shared=no 7833fi 7834 7835fi 7836 7837 7838 7839 7840 7841 7842# 7843# Check to make sure the static flag actually works. 7844# 7845wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7846{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7847$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7848if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7849 $as_echo_n "(cached) " >&6 7850else 7851 lt_cv_prog_compiler_static_works=no 7852 save_LDFLAGS="$LDFLAGS" 7853 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7854 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7855 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7856 # The linker can only warn and ignore the option if not recognized 7857 # So say no if there are warnings 7858 if test -s conftest.err; then 7859 # Append any errors to the config.log. 7860 cat conftest.err 1>&5 7861 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7863 if diff conftest.exp conftest.er2 >/dev/null; then 7864 lt_cv_prog_compiler_static_works=yes 7865 fi 7866 else 7867 lt_cv_prog_compiler_static_works=yes 7868 fi 7869 fi 7870 $RM -r conftest* 7871 LDFLAGS="$save_LDFLAGS" 7872 7873fi 7874{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7875$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7876 7877if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7878 : 7879else 7880 lt_prog_compiler_static= 7881fi 7882 7883 7884 7885 7886 7887 7888 7889 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7890$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7891if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7892 $as_echo_n "(cached) " >&6 7893else 7894 lt_cv_prog_compiler_c_o=no 7895 $RM -r conftest 2>/dev/null 7896 mkdir conftest 7897 cd conftest 7898 mkdir out 7899 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7900 7901 lt_compiler_flag="-o out/conftest2.$ac_objext" 7902 # Insert the option either (1) after the last *FLAGS variable, or 7903 # (2) before a word containing "conftest.", or (3) at the end. 7904 # Note that $ac_compile itself does not contain backslashes and begins 7905 # with a dollar sign (not a hyphen), so the echo should work correctly. 7906 lt_compile=`echo "$ac_compile" | $SED \ 7907 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7908 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7909 -e 's:$: $lt_compiler_flag:'` 7910 (eval echo "\"\$as_me:7910: $lt_compile\"" >&5) 7911 (eval "$lt_compile" 2>out/conftest.err) 7912 ac_status=$? 7913 cat out/conftest.err >&5 7914 echo "$as_me:7914: \$? = $ac_status" >&5 7915 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7916 then 7917 # The compiler can only warn and ignore the option if not recognized 7918 # So say no if there are warnings 7919 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7920 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7921 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7922 lt_cv_prog_compiler_c_o=yes 7923 fi 7924 fi 7925 chmod u+w . 2>&5 7926 $RM conftest* 7927 # SGI C++ compiler will create directory out/ii_files/ for 7928 # template instantiation 7929 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7930 $RM out/* && rmdir out 7931 cd .. 7932 $RM -r conftest 7933 $RM conftest* 7934 7935fi 7936{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7937$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7938 7939 7940 7941 7942 7943 7944 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7945$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7946if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7947 $as_echo_n "(cached) " >&6 7948else 7949 lt_cv_prog_compiler_c_o=no 7950 $RM -r conftest 2>/dev/null 7951 mkdir conftest 7952 cd conftest 7953 mkdir out 7954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7955 7956 lt_compiler_flag="-o out/conftest2.$ac_objext" 7957 # Insert the option either (1) after the last *FLAGS variable, or 7958 # (2) before a word containing "conftest.", or (3) at the end. 7959 # Note that $ac_compile itself does not contain backslashes and begins 7960 # with a dollar sign (not a hyphen), so the echo should work correctly. 7961 lt_compile=`echo "$ac_compile" | $SED \ 7962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7964 -e 's:$: $lt_compiler_flag:'` 7965 (eval echo "\"\$as_me:7965: $lt_compile\"" >&5) 7966 (eval "$lt_compile" 2>out/conftest.err) 7967 ac_status=$? 7968 cat out/conftest.err >&5 7969 echo "$as_me:7969: \$? = $ac_status" >&5 7970 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7971 then 7972 # The compiler can only warn and ignore the option if not recognized 7973 # So say no if there are warnings 7974 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7975 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7976 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7977 lt_cv_prog_compiler_c_o=yes 7978 fi 7979 fi 7980 chmod u+w . 2>&5 7981 $RM conftest* 7982 # SGI C++ compiler will create directory out/ii_files/ for 7983 # template instantiation 7984 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7985 $RM out/* && rmdir out 7986 cd .. 7987 $RM -r conftest 7988 $RM conftest* 7989 7990fi 7991{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7992$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7993 7994 7995 7996 7997hard_links="nottested" 7998if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7999 # do not overwrite the value of need_locks provided by the user 8000 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8001$as_echo_n "checking if we can lock with hard links... " >&6; } 8002 hard_links=yes 8003 $RM conftest* 8004 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8005 touch conftest.a 8006 ln conftest.a conftest.b 2>&5 || hard_links=no 8007 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8008 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8009$as_echo "$hard_links" >&6; } 8010 if test "$hard_links" = no; then 8011 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8012$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8013 need_locks=warn 8014 fi 8015else 8016 need_locks=no 8017fi 8018 8019 8020 8021 8022 8023 8024 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8025$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8026 8027 runpath_var= 8028 allow_undefined_flag= 8029 always_export_symbols=no 8030 archive_cmds= 8031 archive_expsym_cmds= 8032 compiler_needs_object=no 8033 enable_shared_with_static_runtimes=no 8034 export_dynamic_flag_spec= 8035 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8036 hardcode_automatic=no 8037 hardcode_direct=no 8038 hardcode_direct_absolute=no 8039 hardcode_libdir_flag_spec= 8040 hardcode_libdir_flag_spec_ld= 8041 hardcode_libdir_separator= 8042 hardcode_minus_L=no 8043 hardcode_shlibpath_var=unsupported 8044 inherit_rpath=no 8045 link_all_deplibs=unknown 8046 module_cmds= 8047 module_expsym_cmds= 8048 old_archive_from_new_cmds= 8049 old_archive_from_expsyms_cmds= 8050 thread_safe_flag_spec= 8051 whole_archive_flag_spec= 8052 # include_expsyms should be a list of space-separated symbols to be *always* 8053 # included in the symbol list 8054 include_expsyms= 8055 # exclude_expsyms can be an extended regexp of symbols to exclude 8056 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8057 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8058 # as well as any symbol that contains `d'. 8059 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8060 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8061 # platforms (ab)use it in PIC code, but their linkers get confused if 8062 # the symbol is explicitly referenced. Since portable code cannot 8063 # rely on this symbol name, it's probably fine to never include it in 8064 # preloaded symbol tables. 8065 # Exclude shared library initialization/finalization symbols. 8066 extract_expsyms_cmds= 8067 8068 case $host_os in 8069 cygwin* | mingw* | pw32* | cegcc*) 8070 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8071 # When not using gcc, we currently assume that we are using 8072 # Microsoft Visual C++. 8073 if test "$GCC" != yes; then 8074 with_gnu_ld=no 8075 fi 8076 ;; 8077 interix*) 8078 # we just hope/assume this is gcc and not c89 (= MSVC++) 8079 with_gnu_ld=yes 8080 ;; 8081 openbsd*) 8082 with_gnu_ld=no 8083 ;; 8084 esac 8085 8086 ld_shlibs=yes 8087 if test "$with_gnu_ld" = yes; then 8088 # If archive_cmds runs LD, not CC, wlarc should be empty 8089 wlarc='${wl}' 8090 8091 # Set some defaults for GNU ld with shared library support. These 8092 # are reset later if shared libraries are not supported. Putting them 8093 # here allows them to be overridden if necessary. 8094 runpath_var=LD_RUN_PATH 8095 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8096 export_dynamic_flag_spec='${wl}--export-dynamic' 8097 # ancient GNU ld didn't support --whole-archive et. al. 8098 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8099 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8100 else 8101 whole_archive_flag_spec= 8102 fi 8103 supports_anon_versioning=no 8104 case `$LD -v 2>&1` in 8105 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8106 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8107 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8108 *\ 2.11.*) ;; # other 2.11 versions 8109 *) supports_anon_versioning=yes ;; 8110 esac 8111 8112 # See if GNU ld supports shared libraries. 8113 case $host_os in 8114 aix[3-9]*) 8115 # On AIX/PPC, the GNU linker is very broken 8116 if test "$host_cpu" != ia64; then 8117 ld_shlibs=no 8118 cat <<_LT_EOF 1>&2 8119 8120*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8121*** to be unable to reliably create shared libraries on AIX. 8122*** Therefore, libtool is disabling shared libraries support. If you 8123*** really care for shared libraries, you may want to modify your PATH 8124*** so that a non-GNU linker is found, and then restart. 8125 8126_LT_EOF 8127 fi 8128 ;; 8129 8130 amigaos*) 8131 case $host_cpu in 8132 powerpc) 8133 # see comment about AmigaOS4 .so support 8134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8135 archive_expsym_cmds='' 8136 ;; 8137 m68k) 8138 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)' 8139 hardcode_libdir_flag_spec='-L$libdir' 8140 hardcode_minus_L=yes 8141 ;; 8142 esac 8143 ;; 8144 8145 beos*) 8146 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8147 allow_undefined_flag=unsupported 8148 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8149 # support --undefined. This deserves some investigation. FIXME 8150 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8151 else 8152 ld_shlibs=no 8153 fi 8154 ;; 8155 8156 cygwin* | mingw* | pw32* | cegcc*) 8157 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8158 # as there is no search path for DLLs. 8159 hardcode_libdir_flag_spec='-L$libdir' 8160 allow_undefined_flag=unsupported 8161 always_export_symbols=no 8162 enable_shared_with_static_runtimes=yes 8163 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8164 8165 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8167 # If the export-symbols file already is a .def file (1st line 8168 # is EXPORTS), use it as is; otherwise, prepend... 8169 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8170 cp $export_symbols $output_objdir/$soname.def; 8171 else 8172 echo EXPORTS > $output_objdir/$soname.def; 8173 cat $export_symbols >> $output_objdir/$soname.def; 8174 fi~ 8175 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8176 else 8177 ld_shlibs=no 8178 fi 8179 ;; 8180 8181 interix[3-9]*) 8182 hardcode_direct=no 8183 hardcode_shlibpath_var=no 8184 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8185 export_dynamic_flag_spec='${wl}-E' 8186 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8187 # Instead, shared libraries are loaded at an image base (0x10000000 by 8188 # default) and relocated if they conflict, which is a slow very memory 8189 # consuming and fragmenting process. To avoid this, we pick a random, 8190 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8191 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8192 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8193 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' 8194 ;; 8195 8196 gnu* | linux* | tpf* | k*bsd*-gnu) 8197 tmp_diet=no 8198 if test "$host_os" = linux-dietlibc; then 8199 case $cc_basename in 8200 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8201 esac 8202 fi 8203 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8204 && test "$tmp_diet" = no 8205 then 8206 tmp_addflag= 8207 tmp_sharedflag='-shared' 8208 case $cc_basename,$host_cpu in 8209 pgcc*) # Portland Group C compiler 8210 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' 8211 tmp_addflag=' $pic_flag' 8212 ;; 8213 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8214 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' 8215 tmp_addflag=' $pic_flag -Mnomain' ;; 8216 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8217 tmp_addflag=' -i_dynamic' ;; 8218 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8219 tmp_addflag=' -i_dynamic -nofor_main' ;; 8220 ifc* | ifort*) # Intel Fortran compiler 8221 tmp_addflag=' -nofor_main' ;; 8222 lf95*) # Lahey Fortran 8.1 8223 whole_archive_flag_spec= 8224 tmp_sharedflag='--shared' ;; 8225 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8226 tmp_sharedflag='-qmkshrobj' 8227 tmp_addflag= ;; 8228 esac 8229 case `$CC -V 2>&1 | sed 5q` in 8230 *Sun\ C*) # Sun C 5.9 8231 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' 8232 compiler_needs_object=yes 8233 tmp_sharedflag='-G' ;; 8234 *Sun\ F*) # Sun Fortran 8.3 8235 tmp_sharedflag='-G' ;; 8236 esac 8237 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8238 8239 if test "x$supports_anon_versioning" = xyes; then 8240 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8241 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8242 echo "local: *; };" >> $output_objdir/$libname.ver~ 8243 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8244 fi 8245 8246 case $cc_basename in 8247 xlf*) 8248 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8249 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8250 hardcode_libdir_flag_spec= 8251 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8252 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8253 if test "x$supports_anon_versioning" = xyes; then 8254 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8255 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8256 echo "local: *; };" >> $output_objdir/$libname.ver~ 8257 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8258 fi 8259 ;; 8260 esac 8261 else 8262 ld_shlibs=no 8263 fi 8264 ;; 8265 8266 netbsd*) 8267 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8268 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8269 wlarc= 8270 else 8271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8272 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8273 fi 8274 ;; 8275 8276 solaris*) 8277 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8278 ld_shlibs=no 8279 cat <<_LT_EOF 1>&2 8280 8281*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8282*** create shared libraries on Solaris systems. Therefore, libtool 8283*** is disabling shared libraries support. We urge you to upgrade GNU 8284*** binutils to release 2.9.1 or newer. Another option is to modify 8285*** your PATH or compiler configuration so that the native linker is 8286*** used, and then restart. 8287 8288_LT_EOF 8289 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8291 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8292 else 8293 ld_shlibs=no 8294 fi 8295 ;; 8296 8297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8298 case `$LD -v 2>&1` in 8299 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8300 ld_shlibs=no 8301 cat <<_LT_EOF 1>&2 8302 8303*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8304*** reliably create shared libraries on SCO systems. Therefore, libtool 8305*** is disabling shared libraries support. We urge you to upgrade GNU 8306*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8307*** your PATH or compiler configuration so that the native linker is 8308*** used, and then restart. 8309 8310_LT_EOF 8311 ;; 8312 *) 8313 # For security reasons, it is highly recommended that you always 8314 # use absolute paths for naming shared libraries, and exclude the 8315 # DT_RUNPATH tag from executables and libraries. But doing so 8316 # requires that you compile everything twice, which is a pain. 8317 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8320 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8321 else 8322 ld_shlibs=no 8323 fi 8324 ;; 8325 esac 8326 ;; 8327 8328 sunos4*) 8329 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8330 wlarc= 8331 hardcode_direct=yes 8332 hardcode_shlibpath_var=no 8333 ;; 8334 8335 *) 8336 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8338 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8339 else 8340 ld_shlibs=no 8341 fi 8342 ;; 8343 esac 8344 8345 if test "$ld_shlibs" = no; then 8346 runpath_var= 8347 hardcode_libdir_flag_spec= 8348 export_dynamic_flag_spec= 8349 whole_archive_flag_spec= 8350 fi 8351 else 8352 # PORTME fill in a description of your system's linker (not GNU ld) 8353 case $host_os in 8354 aix3*) 8355 allow_undefined_flag=unsupported 8356 always_export_symbols=yes 8357 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' 8358 # Note: this linker hardcodes the directories in LIBPATH if there 8359 # are no directories specified by -L. 8360 hardcode_minus_L=yes 8361 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8362 # Neither direct hardcoding nor static linking is supported with a 8363 # broken collect2. 8364 hardcode_direct=unsupported 8365 fi 8366 ;; 8367 8368 aix[4-9]*) 8369 if test "$host_cpu" = ia64; then 8370 # On IA64, the linker does run time linking by default, so we don't 8371 # have to do anything special. 8372 aix_use_runtimelinking=no 8373 exp_sym_flag='-Bexport' 8374 no_entry_flag="" 8375 else 8376 # If we're using GNU nm, then we don't want the "-C" option. 8377 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8378 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8379 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' 8380 else 8381 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' 8382 fi 8383 aix_use_runtimelinking=no 8384 8385 # Test if we are trying to use run time linking or normal 8386 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8387 # need to do runtime linking. 8388 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8389 for ld_flag in $LDFLAGS; do 8390 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8391 aix_use_runtimelinking=yes 8392 break 8393 fi 8394 done 8395 ;; 8396 esac 8397 8398 exp_sym_flag='-bexport' 8399 no_entry_flag='-bnoentry' 8400 fi 8401 8402 # When large executables or shared objects are built, AIX ld can 8403 # have problems creating the table of contents. If linking a library 8404 # or program results in "error TOC overflow" add -mminimal-toc to 8405 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8406 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8407 8408 archive_cmds='' 8409 hardcode_direct=yes 8410 hardcode_direct_absolute=yes 8411 hardcode_libdir_separator=':' 8412 link_all_deplibs=yes 8413 file_list_spec='${wl}-f,' 8414 8415 if test "$GCC" = yes; then 8416 case $host_os in aix4.[012]|aix4.[012].*) 8417 # We only want to do this on AIX 4.2 and lower, the check 8418 # below for broken collect2 doesn't work under 4.3+ 8419 collect2name=`${CC} -print-prog-name=collect2` 8420 if test -f "$collect2name" && 8421 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8422 then 8423 # We have reworked collect2 8424 : 8425 else 8426 # We have old collect2 8427 hardcode_direct=unsupported 8428 # It fails to find uninstalled libraries when the uninstalled 8429 # path is not listed in the libpath. Setting hardcode_minus_L 8430 # to unsupported forces relinking 8431 hardcode_minus_L=yes 8432 hardcode_libdir_flag_spec='-L$libdir' 8433 hardcode_libdir_separator= 8434 fi 8435 ;; 8436 esac 8437 shared_flag='-shared' 8438 if test "$aix_use_runtimelinking" = yes; then 8439 shared_flag="$shared_flag "'${wl}-G' 8440 fi 8441 else 8442 # not using gcc 8443 if test "$host_cpu" = ia64; then 8444 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8445 # chokes on -Wl,-G. The following line is correct: 8446 shared_flag='-G' 8447 else 8448 if test "$aix_use_runtimelinking" = yes; then 8449 shared_flag='${wl}-G' 8450 else 8451 shared_flag='${wl}-bM:SRE' 8452 fi 8453 fi 8454 fi 8455 8456 export_dynamic_flag_spec='${wl}-bexpall' 8457 # It seems that -bexpall does not export symbols beginning with 8458 # underscore (_), so it is better to generate a list of symbols to export. 8459 always_export_symbols=yes 8460 if test "$aix_use_runtimelinking" = yes; then 8461 # Warning - without using the other runtime loading flags (-brtl), 8462 # -berok will link without error, but may produce a broken library. 8463 allow_undefined_flag='-berok' 8464 # Determine the default libpath from the value encoded in an 8465 # empty executable. 8466 cat >conftest.$ac_ext <<_ACEOF 8467/* confdefs.h. */ 8468_ACEOF 8469cat confdefs.h >>conftest.$ac_ext 8470cat >>conftest.$ac_ext <<_ACEOF 8471/* end confdefs.h. */ 8472 8473int 8474main () 8475{ 8476 8477 ; 8478 return 0; 8479} 8480_ACEOF 8481rm -f conftest.$ac_objext conftest$ac_exeext 8482if { (ac_try="$ac_link" 8483case "(($ac_try" in 8484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8485 *) ac_try_echo=$ac_try;; 8486esac 8487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8488$as_echo "$ac_try_echo") >&5 8489 (eval "$ac_link") 2>conftest.er1 8490 ac_status=$? 8491 grep -v '^ *+' conftest.er1 >conftest.err 8492 rm -f conftest.er1 8493 cat conftest.err >&5 8494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8495 (exit $ac_status); } && { 8496 test -z "$ac_c_werror_flag" || 8497 test ! -s conftest.err 8498 } && test -s conftest$ac_exeext && { 8499 test "$cross_compiling" = yes || 8500 $as_test_x conftest$ac_exeext 8501 }; then 8502 8503lt_aix_libpath_sed=' 8504 /Import File Strings/,/^$/ { 8505 /^0/ { 8506 s/^0 *\(.*\)$/\1/ 8507 p 8508 } 8509 }' 8510aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8511# Check for a 64-bit object if we didn't find anything. 8512if test -z "$aix_libpath"; then 8513 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8514fi 8515else 8516 $as_echo "$as_me: failed program was:" >&5 8517sed 's/^/| /' conftest.$ac_ext >&5 8518 8519 8520fi 8521 8522rm -rf conftest.dSYM 8523rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8524 conftest$ac_exeext conftest.$ac_ext 8525if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8526 8527 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8528 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8529 else 8530 if test "$host_cpu" = ia64; then 8531 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8532 allow_undefined_flag="-z nodefs" 8533 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" 8534 else 8535 # Determine the default libpath from the value encoded in an 8536 # empty executable. 8537 cat >conftest.$ac_ext <<_ACEOF 8538/* confdefs.h. */ 8539_ACEOF 8540cat confdefs.h >>conftest.$ac_ext 8541cat >>conftest.$ac_ext <<_ACEOF 8542/* end confdefs.h. */ 8543 8544int 8545main () 8546{ 8547 8548 ; 8549 return 0; 8550} 8551_ACEOF 8552rm -f conftest.$ac_objext conftest$ac_exeext 8553if { (ac_try="$ac_link" 8554case "(($ac_try" in 8555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8556 *) ac_try_echo=$ac_try;; 8557esac 8558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8559$as_echo "$ac_try_echo") >&5 8560 (eval "$ac_link") 2>conftest.er1 8561 ac_status=$? 8562 grep -v '^ *+' conftest.er1 >conftest.err 8563 rm -f conftest.er1 8564 cat conftest.err >&5 8565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8566 (exit $ac_status); } && { 8567 test -z "$ac_c_werror_flag" || 8568 test ! -s conftest.err 8569 } && test -s conftest$ac_exeext && { 8570 test "$cross_compiling" = yes || 8571 $as_test_x conftest$ac_exeext 8572 }; then 8573 8574lt_aix_libpath_sed=' 8575 /Import File Strings/,/^$/ { 8576 /^0/ { 8577 s/^0 *\(.*\)$/\1/ 8578 p 8579 } 8580 }' 8581aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8582# Check for a 64-bit object if we didn't find anything. 8583if test -z "$aix_libpath"; then 8584 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8585fi 8586else 8587 $as_echo "$as_me: failed program was:" >&5 8588sed 's/^/| /' conftest.$ac_ext >&5 8589 8590 8591fi 8592 8593rm -rf conftest.dSYM 8594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8595 conftest$ac_exeext conftest.$ac_ext 8596if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8597 8598 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8599 # Warning - without using the other run time loading flags, 8600 # -berok will link without error, but may produce a broken library. 8601 no_undefined_flag=' ${wl}-bernotok' 8602 allow_undefined_flag=' ${wl}-berok' 8603 # Exported symbols can be pulled into shared objects from archives 8604 whole_archive_flag_spec='$convenience' 8605 archive_cmds_need_lc=yes 8606 # This is similar to how AIX traditionally builds its shared libraries. 8607 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' 8608 fi 8609 fi 8610 ;; 8611 8612 amigaos*) 8613 case $host_cpu in 8614 powerpc) 8615 # see comment about AmigaOS4 .so support 8616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8617 archive_expsym_cmds='' 8618 ;; 8619 m68k) 8620 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)' 8621 hardcode_libdir_flag_spec='-L$libdir' 8622 hardcode_minus_L=yes 8623 ;; 8624 esac 8625 ;; 8626 8627 bsdi[45]*) 8628 export_dynamic_flag_spec=-rdynamic 8629 ;; 8630 8631 cygwin* | mingw* | pw32* | cegcc*) 8632 # When not using gcc, we currently assume that we are using 8633 # Microsoft Visual C++. 8634 # hardcode_libdir_flag_spec is actually meaningless, as there is 8635 # no search path for DLLs. 8636 hardcode_libdir_flag_spec=' ' 8637 allow_undefined_flag=unsupported 8638 # Tell ltmain to make .lib files, not .a files. 8639 libext=lib 8640 # Tell ltmain to make .dll files, not .so files. 8641 shrext_cmds=".dll" 8642 # FIXME: Setting linknames here is a bad hack. 8643 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8644 # The linker will automatically build a .lib file if we build a DLL. 8645 old_archive_from_new_cmds='true' 8646 # FIXME: Should let the user specify the lib program. 8647 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8648 fix_srcfile_path='`cygpath -w "$srcfile"`' 8649 enable_shared_with_static_runtimes=yes 8650 ;; 8651 8652 darwin* | rhapsody*) 8653 8654 8655 archive_cmds_need_lc=no 8656 hardcode_direct=no 8657 hardcode_automatic=yes 8658 hardcode_shlibpath_var=unsupported 8659 whole_archive_flag_spec='' 8660 link_all_deplibs=yes 8661 allow_undefined_flag="$_lt_dar_allow_undefined" 8662 case $cc_basename in 8663 ifort*) _lt_dar_can_shared=yes ;; 8664 *) _lt_dar_can_shared=$GCC ;; 8665 esac 8666 if test "$_lt_dar_can_shared" = "yes"; then 8667 output_verbose_link_cmd=echo 8668 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8669 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8670 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}" 8671 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}" 8672 8673 else 8674 ld_shlibs=no 8675 fi 8676 8677 ;; 8678 8679 dgux*) 8680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8681 hardcode_libdir_flag_spec='-L$libdir' 8682 hardcode_shlibpath_var=no 8683 ;; 8684 8685 freebsd1*) 8686 ld_shlibs=no 8687 ;; 8688 8689 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8690 # support. Future versions do this automatically, but an explicit c++rt0.o 8691 # does not break anything, and helps significantly (at the cost of a little 8692 # extra space). 8693 freebsd2.2*) 8694 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8695 hardcode_libdir_flag_spec='-R$libdir' 8696 hardcode_direct=yes 8697 hardcode_shlibpath_var=no 8698 ;; 8699 8700 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8701 freebsd2*) 8702 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8703 hardcode_direct=yes 8704 hardcode_minus_L=yes 8705 hardcode_shlibpath_var=no 8706 ;; 8707 8708 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8709 freebsd* | dragonfly*) 8710 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8711 hardcode_libdir_flag_spec='-R$libdir' 8712 hardcode_direct=yes 8713 hardcode_shlibpath_var=no 8714 ;; 8715 8716 hpux9*) 8717 if test "$GCC" = yes; then 8718 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' 8719 else 8720 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' 8721 fi 8722 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8723 hardcode_libdir_separator=: 8724 hardcode_direct=yes 8725 8726 # hardcode_minus_L: Not really in the search PATH, 8727 # but as the default location of the library. 8728 hardcode_minus_L=yes 8729 export_dynamic_flag_spec='${wl}-E' 8730 ;; 8731 8732 hpux10*) 8733 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8734 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8735 else 8736 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8737 fi 8738 if test "$with_gnu_ld" = no; then 8739 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8740 hardcode_libdir_flag_spec_ld='+b $libdir' 8741 hardcode_libdir_separator=: 8742 hardcode_direct=yes 8743 hardcode_direct_absolute=yes 8744 export_dynamic_flag_spec='${wl}-E' 8745 # hardcode_minus_L: Not really in the search PATH, 8746 # but as the default location of the library. 8747 hardcode_minus_L=yes 8748 fi 8749 ;; 8750 8751 hpux11*) 8752 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8753 case $host_cpu in 8754 hppa*64*) 8755 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8756 ;; 8757 ia64*) 8758 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8759 ;; 8760 *) 8761 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8762 ;; 8763 esac 8764 else 8765 case $host_cpu in 8766 hppa*64*) 8767 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8768 ;; 8769 ia64*) 8770 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8771 ;; 8772 *) 8773 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8774 ;; 8775 esac 8776 fi 8777 if test "$with_gnu_ld" = no; then 8778 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8779 hardcode_libdir_separator=: 8780 8781 case $host_cpu in 8782 hppa*64*|ia64*) 8783 hardcode_direct=no 8784 hardcode_shlibpath_var=no 8785 ;; 8786 *) 8787 hardcode_direct=yes 8788 hardcode_direct_absolute=yes 8789 export_dynamic_flag_spec='${wl}-E' 8790 8791 # hardcode_minus_L: Not really in the search PATH, 8792 # but as the default location of the library. 8793 hardcode_minus_L=yes 8794 ;; 8795 esac 8796 fi 8797 ;; 8798 8799 irix5* | irix6* | nonstopux*) 8800 if test "$GCC" = yes; then 8801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8802 # Try to use the -exported_symbol ld option, if it does not 8803 # work, assume that -exports_file does not work either and 8804 # implicitly export all symbols. 8805 save_LDFLAGS="$LDFLAGS" 8806 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8807 cat >conftest.$ac_ext <<_ACEOF 8808int foo(void) {} 8809_ACEOF 8810rm -f conftest.$ac_objext conftest$ac_exeext 8811if { (ac_try="$ac_link" 8812case "(($ac_try" in 8813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8814 *) ac_try_echo=$ac_try;; 8815esac 8816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8817$as_echo "$ac_try_echo") >&5 8818 (eval "$ac_link") 2>conftest.er1 8819 ac_status=$? 8820 grep -v '^ *+' conftest.er1 >conftest.err 8821 rm -f conftest.er1 8822 cat conftest.err >&5 8823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8824 (exit $ac_status); } && { 8825 test -z "$ac_c_werror_flag" || 8826 test ! -s conftest.err 8827 } && test -s conftest$ac_exeext && { 8828 test "$cross_compiling" = yes || 8829 $as_test_x conftest$ac_exeext 8830 }; then 8831 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 8832 8833else 8834 $as_echo "$as_me: failed program was:" >&5 8835sed 's/^/| /' conftest.$ac_ext >&5 8836 8837 8838fi 8839 8840rm -rf conftest.dSYM 8841rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8842 conftest$ac_exeext conftest.$ac_ext 8843 LDFLAGS="$save_LDFLAGS" 8844 else 8845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8846 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 8847 fi 8848 archive_cmds_need_lc='no' 8849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8850 hardcode_libdir_separator=: 8851 inherit_rpath=yes 8852 link_all_deplibs=yes 8853 ;; 8854 8855 netbsd*) 8856 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8857 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8858 else 8859 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8860 fi 8861 hardcode_libdir_flag_spec='-R$libdir' 8862 hardcode_direct=yes 8863 hardcode_shlibpath_var=no 8864 ;; 8865 8866 newsos6) 8867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8868 hardcode_direct=yes 8869 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8870 hardcode_libdir_separator=: 8871 hardcode_shlibpath_var=no 8872 ;; 8873 8874 *nto* | *qnx*) 8875 ;; 8876 8877 openbsd*) 8878 if test -f /usr/libexec/ld.so; then 8879 hardcode_direct=yes 8880 hardcode_shlibpath_var=no 8881 hardcode_direct_absolute=yes 8882 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8883 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8884 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8885 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8886 export_dynamic_flag_spec='${wl}-E' 8887 else 8888 case $host_os in 8889 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8890 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8891 hardcode_libdir_flag_spec='-R$libdir' 8892 ;; 8893 *) 8894 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8895 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8896 ;; 8897 esac 8898 fi 8899 else 8900 ld_shlibs=no 8901 fi 8902 ;; 8903 8904 os2*) 8905 hardcode_libdir_flag_spec='-L$libdir' 8906 hardcode_minus_L=yes 8907 allow_undefined_flag=unsupported 8908 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' 8909 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8910 ;; 8911 8912 osf3*) 8913 if test "$GCC" = yes; then 8914 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8915 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8916 else 8917 allow_undefined_flag=' -expect_unresolved \*' 8918 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8919 fi 8920 archive_cmds_need_lc='no' 8921 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8922 hardcode_libdir_separator=: 8923 ;; 8924 8925 osf4* | osf5*) # as osf3* with the addition of -msym flag 8926 if test "$GCC" = yes; then 8927 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8928 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8930 else 8931 allow_undefined_flag=' -expect_unresolved \*' 8932 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8933 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 8934 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 8935 8936 # Both c and cxx compiler support -rpath directly 8937 hardcode_libdir_flag_spec='-rpath $libdir' 8938 fi 8939 archive_cmds_need_lc='no' 8940 hardcode_libdir_separator=: 8941 ;; 8942 8943 solaris*) 8944 no_undefined_flag=' -z defs' 8945 if test "$GCC" = yes; then 8946 wlarc='${wl}' 8947 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8948 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8949 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8950 else 8951 case `$CC -V 2>&1` in 8952 *"Compilers 5.0"*) 8953 wlarc='' 8954 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8955 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8956 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8957 ;; 8958 *) 8959 wlarc='${wl}' 8960 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8961 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8962 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8963 ;; 8964 esac 8965 fi 8966 hardcode_libdir_flag_spec='-R$libdir' 8967 hardcode_shlibpath_var=no 8968 case $host_os in 8969 solaris2.[0-5] | solaris2.[0-5].*) ;; 8970 *) 8971 # The compiler driver will combine and reorder linker options, 8972 # but understands `-z linker_flag'. GCC discards it without `$wl', 8973 # but is careful enough not to reorder. 8974 # Supported since Solaris 2.6 (maybe 2.5.1?) 8975 if test "$GCC" = yes; then 8976 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8977 else 8978 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8979 fi 8980 ;; 8981 esac 8982 link_all_deplibs=yes 8983 ;; 8984 8985 sunos4*) 8986 if test "x$host_vendor" = xsequent; then 8987 # Use $CC to link under sequent, because it throws in some extra .o 8988 # files that make .init and .fini sections work. 8989 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8990 else 8991 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8992 fi 8993 hardcode_libdir_flag_spec='-L$libdir' 8994 hardcode_direct=yes 8995 hardcode_minus_L=yes 8996 hardcode_shlibpath_var=no 8997 ;; 8998 8999 sysv4) 9000 case $host_vendor in 9001 sni) 9002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9003 hardcode_direct=yes # is this really true??? 9004 ;; 9005 siemens) 9006 ## LD is ld it makes a PLAMLIB 9007 ## CC just makes a GrossModule. 9008 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9009 reload_cmds='$CC -r -o $output$reload_objs' 9010 hardcode_direct=no 9011 ;; 9012 motorola) 9013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9014 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9015 ;; 9016 esac 9017 runpath_var='LD_RUN_PATH' 9018 hardcode_shlibpath_var=no 9019 ;; 9020 9021 sysv4.3*) 9022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9023 hardcode_shlibpath_var=no 9024 export_dynamic_flag_spec='-Bexport' 9025 ;; 9026 9027 sysv4*MP*) 9028 if test -d /usr/nec; then 9029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9030 hardcode_shlibpath_var=no 9031 runpath_var=LD_RUN_PATH 9032 hardcode_runpath_var=yes 9033 ld_shlibs=yes 9034 fi 9035 ;; 9036 9037 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9038 no_undefined_flag='${wl}-z,text' 9039 archive_cmds_need_lc=no 9040 hardcode_shlibpath_var=no 9041 runpath_var='LD_RUN_PATH' 9042 9043 if test "$GCC" = yes; then 9044 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9045 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9046 else 9047 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9048 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9049 fi 9050 ;; 9051 9052 sysv5* | sco3.2v5* | sco5v6*) 9053 # Note: We can NOT use -z defs as we might desire, because we do not 9054 # link with -lc, and that would cause any symbols used from libc to 9055 # always be unresolved, which means just about no library would 9056 # ever link correctly. If we're not using GNU ld we use -z text 9057 # though, which does catch some bad symbols but isn't as heavy-handed 9058 # as -z defs. 9059 no_undefined_flag='${wl}-z,text' 9060 allow_undefined_flag='${wl}-z,nodefs' 9061 archive_cmds_need_lc=no 9062 hardcode_shlibpath_var=no 9063 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9064 hardcode_libdir_separator=':' 9065 link_all_deplibs=yes 9066 export_dynamic_flag_spec='${wl}-Bexport' 9067 runpath_var='LD_RUN_PATH' 9068 9069 if test "$GCC" = yes; then 9070 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9071 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9072 else 9073 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9074 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9075 fi 9076 ;; 9077 9078 uts4*) 9079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9080 hardcode_libdir_flag_spec='-L$libdir' 9081 hardcode_shlibpath_var=no 9082 ;; 9083 9084 *) 9085 ld_shlibs=no 9086 ;; 9087 esac 9088 9089 if test x$host_vendor = xsni; then 9090 case $host in 9091 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9092 export_dynamic_flag_spec='${wl}-Blargedynsym' 9093 ;; 9094 esac 9095 fi 9096 fi 9097 9098{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9099$as_echo "$ld_shlibs" >&6; } 9100test "$ld_shlibs" = no && can_build_shared=no 9101 9102with_gnu_ld=$with_gnu_ld 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118# 9119# Do we need to explicitly link libc? 9120# 9121case "x$archive_cmds_need_lc" in 9122x|xyes) 9123 # Assume -lc should be added 9124 archive_cmds_need_lc=yes 9125 9126 if test "$enable_shared" = yes && test "$GCC" = yes; then 9127 case $archive_cmds in 9128 *'~'*) 9129 # FIXME: we may have to deal with multi-command sequences. 9130 ;; 9131 '$CC '*) 9132 # Test whether the compiler implicitly links with -lc since on some 9133 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9134 # to ld, don't add -lc before -lgcc. 9135 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9136$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9137 $RM conftest* 9138 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9139 9140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9141 (eval $ac_compile) 2>&5 9142 ac_status=$? 9143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9144 (exit $ac_status); } 2>conftest.err; then 9145 soname=conftest 9146 lib=conftest 9147 libobjs=conftest.$ac_objext 9148 deplibs= 9149 wl=$lt_prog_compiler_wl 9150 pic_flag=$lt_prog_compiler_pic 9151 compiler_flags=-v 9152 linker_flags=-v 9153 verstring= 9154 output_objdir=. 9155 libname=conftest 9156 lt_save_allow_undefined_flag=$allow_undefined_flag 9157 allow_undefined_flag= 9158 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9159 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9160 ac_status=$? 9161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9162 (exit $ac_status); } 9163 then 9164 archive_cmds_need_lc=no 9165 else 9166 archive_cmds_need_lc=yes 9167 fi 9168 allow_undefined_flag=$lt_save_allow_undefined_flag 9169 else 9170 cat conftest.err 1>&5 9171 fi 9172 $RM conftest* 9173 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9174$as_echo "$archive_cmds_need_lc" >&6; } 9175 ;; 9176 esac 9177 fi 9178 ;; 9179esac 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9338$as_echo_n "checking dynamic linker characteristics... " >&6; } 9339 9340if test "$GCC" = yes; then 9341 case $host_os in 9342 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9343 *) lt_awk_arg="/^libraries:/" ;; 9344 esac 9345 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9346 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9347 # if the path contains ";" then we assume it to be the separator 9348 # otherwise default to the standard path separator (i.e. ":") - it is 9349 # assumed that no part of a normal pathname contains ";" but that should 9350 # okay in the real world where ";" in dirpaths is itself problematic. 9351 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9352 else 9353 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9354 fi 9355 # Ok, now we have the path, separated by spaces, we can step through it 9356 # and add multilib dir if necessary. 9357 lt_tmp_lt_search_path_spec= 9358 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9359 for lt_sys_path in $lt_search_path_spec; do 9360 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9361 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9362 else 9363 test -d "$lt_sys_path" && \ 9364 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9365 fi 9366 done 9367 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9368BEGIN {RS=" "; FS="/|\n";} { 9369 lt_foo=""; 9370 lt_count=0; 9371 for (lt_i = NF; lt_i > 0; lt_i--) { 9372 if ($lt_i != "" && $lt_i != ".") { 9373 if ($lt_i == "..") { 9374 lt_count++; 9375 } else { 9376 if (lt_count == 0) { 9377 lt_foo="/" $lt_i lt_foo; 9378 } else { 9379 lt_count--; 9380 } 9381 } 9382 } 9383 } 9384 if (lt_foo != "") { lt_freq[lt_foo]++; } 9385 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9386}'` 9387 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9388else 9389 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9390fi 9391library_names_spec= 9392libname_spec='lib$name' 9393soname_spec= 9394shrext_cmds=".so" 9395postinstall_cmds= 9396postuninstall_cmds= 9397finish_cmds= 9398finish_eval= 9399shlibpath_var= 9400shlibpath_overrides_runpath=unknown 9401version_type=none 9402dynamic_linker="$host_os ld.so" 9403sys_lib_dlsearch_path_spec="/lib /usr/lib" 9404need_lib_prefix=unknown 9405hardcode_into_libs=no 9406 9407# when you set need_version to no, make sure it does not cause -set_version 9408# flags to be left without arguments 9409need_version=unknown 9410 9411case $host_os in 9412aix3*) 9413 version_type=linux 9414 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9415 shlibpath_var=LIBPATH 9416 9417 # AIX 3 has no versioning support, so we append a major version to the name. 9418 soname_spec='${libname}${release}${shared_ext}$major' 9419 ;; 9420 9421aix[4-9]*) 9422 version_type=linux 9423 need_lib_prefix=no 9424 need_version=no 9425 hardcode_into_libs=yes 9426 if test "$host_cpu" = ia64; then 9427 # AIX 5 supports IA64 9428 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9429 shlibpath_var=LD_LIBRARY_PATH 9430 else 9431 # With GCC up to 2.95.x, collect2 would create an import file 9432 # for dependence libraries. The import file would start with 9433 # the line `#! .'. This would cause the generated library to 9434 # depend on `.', always an invalid library. This was fixed in 9435 # development snapshots of GCC prior to 3.0. 9436 case $host_os in 9437 aix4 | aix4.[01] | aix4.[01].*) 9438 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9439 echo ' yes ' 9440 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9441 : 9442 else 9443 can_build_shared=no 9444 fi 9445 ;; 9446 esac 9447 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9448 # soname into executable. Probably we can add versioning support to 9449 # collect2, so additional links can be useful in future. 9450 if test "$aix_use_runtimelinking" = yes; then 9451 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9452 # instead of lib<name>.a to let people know that these are not 9453 # typical AIX shared libraries. 9454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9455 else 9456 # We preserve .a as extension for shared libraries through AIX4.2 9457 # and later when we are not doing run time linking. 9458 library_names_spec='${libname}${release}.a $libname.a' 9459 soname_spec='${libname}${release}${shared_ext}$major' 9460 fi 9461 shlibpath_var=LIBPATH 9462 fi 9463 ;; 9464 9465amigaos*) 9466 case $host_cpu in 9467 powerpc) 9468 # Since July 2007 AmigaOS4 officially supports .so libraries. 9469 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9471 ;; 9472 m68k) 9473 library_names_spec='$libname.ixlibrary $libname.a' 9474 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9475 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' 9476 ;; 9477 esac 9478 ;; 9479 9480beos*) 9481 library_names_spec='${libname}${shared_ext}' 9482 dynamic_linker="$host_os ld.so" 9483 shlibpath_var=LIBRARY_PATH 9484 ;; 9485 9486bsdi[45]*) 9487 version_type=linux 9488 need_version=no 9489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9490 soname_spec='${libname}${release}${shared_ext}$major' 9491 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9492 shlibpath_var=LD_LIBRARY_PATH 9493 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9494 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9495 # the default ld.so.conf also contains /usr/contrib/lib and 9496 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9497 # libtool to hard-code these into programs 9498 ;; 9499 9500cygwin* | mingw* | pw32* | cegcc*) 9501 version_type=windows 9502 shrext_cmds=".dll" 9503 need_version=no 9504 need_lib_prefix=no 9505 9506 case $GCC,$host_os in 9507 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9508 library_names_spec='$libname.dll.a' 9509 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9510 postinstall_cmds='base_file=`basename \${file}`~ 9511 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9512 dldir=$destdir/`dirname \$dlpath`~ 9513 test -d \$dldir || mkdir -p \$dldir~ 9514 $install_prog $dir/$dlname \$dldir/$dlname~ 9515 chmod a+x \$dldir/$dlname~ 9516 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9517 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9518 fi' 9519 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9520 dlpath=$dir/\$dldll~ 9521 $RM \$dlpath' 9522 shlibpath_overrides_runpath=yes 9523 9524 case $host_os in 9525 cygwin*) 9526 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9527 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9528 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9529 ;; 9530 mingw* | cegcc*) 9531 # MinGW DLLs use traditional 'lib' prefix 9532 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9533 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9534 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9535 # It is most probably a Windows format PATH printed by 9536 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9537 # path with ; separators, and with drive letters. We can handle the 9538 # drive letters (cygwin fileutils understands them), so leave them, 9539 # especially as we might pass files found there to a mingw objdump, 9540 # which wouldn't understand a cygwinified path. Ahh. 9541 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9542 else 9543 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9544 fi 9545 ;; 9546 pw32*) 9547 # pw32 DLLs use 'pw' prefix rather than 'lib' 9548 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9549 ;; 9550 esac 9551 ;; 9552 9553 *) 9554 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9555 ;; 9556 esac 9557 dynamic_linker='Win32 ld.exe' 9558 # FIXME: first we should search . and the directory the executable is in 9559 shlibpath_var=PATH 9560 ;; 9561 9562darwin* | rhapsody*) 9563 dynamic_linker="$host_os dyld" 9564 version_type=darwin 9565 need_lib_prefix=no 9566 need_version=no 9567 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9568 soname_spec='${libname}${release}${major}$shared_ext' 9569 shlibpath_overrides_runpath=yes 9570 shlibpath_var=DYLD_LIBRARY_PATH 9571 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9572 9573 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9574 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9575 ;; 9576 9577dgux*) 9578 version_type=linux 9579 need_lib_prefix=no 9580 need_version=no 9581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9582 soname_spec='${libname}${release}${shared_ext}$major' 9583 shlibpath_var=LD_LIBRARY_PATH 9584 ;; 9585 9586freebsd1*) 9587 dynamic_linker=no 9588 ;; 9589 9590freebsd* | dragonfly*) 9591 # DragonFly does not have aout. When/if they implement a new 9592 # versioning mechanism, adjust this. 9593 if test -x /usr/bin/objformat; then 9594 objformat=`/usr/bin/objformat` 9595 else 9596 case $host_os in 9597 freebsd[123]*) objformat=aout ;; 9598 *) objformat=elf ;; 9599 esac 9600 fi 9601 version_type=freebsd-$objformat 9602 case $version_type in 9603 freebsd-elf*) 9604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9605 need_version=no 9606 need_lib_prefix=no 9607 ;; 9608 freebsd-*) 9609 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9610 need_version=yes 9611 ;; 9612 esac 9613 shlibpath_var=LD_LIBRARY_PATH 9614 case $host_os in 9615 freebsd2*) 9616 shlibpath_overrides_runpath=yes 9617 ;; 9618 freebsd3.[01]* | freebsdelf3.[01]*) 9619 shlibpath_overrides_runpath=yes 9620 hardcode_into_libs=yes 9621 ;; 9622 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9623 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9624 shlibpath_overrides_runpath=no 9625 hardcode_into_libs=yes 9626 ;; 9627 *) # from 4.6 on, and DragonFly 9628 shlibpath_overrides_runpath=yes 9629 hardcode_into_libs=yes 9630 ;; 9631 esac 9632 ;; 9633 9634gnu*) 9635 version_type=linux 9636 need_lib_prefix=no 9637 need_version=no 9638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9639 soname_spec='${libname}${release}${shared_ext}$major' 9640 shlibpath_var=LD_LIBRARY_PATH 9641 hardcode_into_libs=yes 9642 ;; 9643 9644hpux9* | hpux10* | hpux11*) 9645 # Give a soname corresponding to the major version so that dld.sl refuses to 9646 # link against other versions. 9647 version_type=sunos 9648 need_lib_prefix=no 9649 need_version=no 9650 case $host_cpu in 9651 ia64*) 9652 shrext_cmds='.so' 9653 hardcode_into_libs=yes 9654 dynamic_linker="$host_os dld.so" 9655 shlibpath_var=LD_LIBRARY_PATH 9656 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9658 soname_spec='${libname}${release}${shared_ext}$major' 9659 if test "X$HPUX_IA64_MODE" = X32; then 9660 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9661 else 9662 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9663 fi 9664 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9665 ;; 9666 hppa*64*) 9667 shrext_cmds='.sl' 9668 hardcode_into_libs=yes 9669 dynamic_linker="$host_os dld.sl" 9670 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9671 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9673 soname_spec='${libname}${release}${shared_ext}$major' 9674 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9675 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9676 ;; 9677 *) 9678 shrext_cmds='.sl' 9679 dynamic_linker="$host_os dld.sl" 9680 shlibpath_var=SHLIB_PATH 9681 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9683 soname_spec='${libname}${release}${shared_ext}$major' 9684 ;; 9685 esac 9686 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9687 postinstall_cmds='chmod 555 $lib' 9688 ;; 9689 9690interix[3-9]*) 9691 version_type=linux 9692 need_lib_prefix=no 9693 need_version=no 9694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9695 soname_spec='${libname}${release}${shared_ext}$major' 9696 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9697 shlibpath_var=LD_LIBRARY_PATH 9698 shlibpath_overrides_runpath=no 9699 hardcode_into_libs=yes 9700 ;; 9701 9702irix5* | irix6* | nonstopux*) 9703 case $host_os in 9704 nonstopux*) version_type=nonstopux ;; 9705 *) 9706 if test "$lt_cv_prog_gnu_ld" = yes; then 9707 version_type=linux 9708 else 9709 version_type=irix 9710 fi ;; 9711 esac 9712 need_lib_prefix=no 9713 need_version=no 9714 soname_spec='${libname}${release}${shared_ext}$major' 9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9716 case $host_os in 9717 irix5* | nonstopux*) 9718 libsuff= shlibsuff= 9719 ;; 9720 *) 9721 case $LD in # libtool.m4 will add one of these switches to LD 9722 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9723 libsuff= shlibsuff= libmagic=32-bit;; 9724 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9725 libsuff=32 shlibsuff=N32 libmagic=N32;; 9726 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9727 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9728 *) libsuff= shlibsuff= libmagic=never-match;; 9729 esac 9730 ;; 9731 esac 9732 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9733 shlibpath_overrides_runpath=no 9734 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9735 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9736 hardcode_into_libs=yes 9737 ;; 9738 9739# No shared lib support for Linux oldld, aout, or coff. 9740linux*oldld* | linux*aout* | linux*coff*) 9741 dynamic_linker=no 9742 ;; 9743 9744# This must be Linux ELF. 9745linux* | k*bsd*-gnu) 9746 version_type=linux 9747 need_lib_prefix=no 9748 need_version=no 9749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9750 soname_spec='${libname}${release}${shared_ext}$major' 9751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9752 shlibpath_var=LD_LIBRARY_PATH 9753 shlibpath_overrides_runpath=no 9754 # Some binutils ld are patched to set DT_RUNPATH 9755 save_LDFLAGS=$LDFLAGS 9756 save_libdir=$libdir 9757 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9758 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9759 cat >conftest.$ac_ext <<_ACEOF 9760/* confdefs.h. */ 9761_ACEOF 9762cat confdefs.h >>conftest.$ac_ext 9763cat >>conftest.$ac_ext <<_ACEOF 9764/* end confdefs.h. */ 9765 9766int 9767main () 9768{ 9769 9770 ; 9771 return 0; 9772} 9773_ACEOF 9774rm -f conftest.$ac_objext conftest$ac_exeext 9775if { (ac_try="$ac_link" 9776case "(($ac_try" in 9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9778 *) ac_try_echo=$ac_try;; 9779esac 9780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9781$as_echo "$ac_try_echo") >&5 9782 (eval "$ac_link") 2>conftest.er1 9783 ac_status=$? 9784 grep -v '^ *+' conftest.er1 >conftest.err 9785 rm -f conftest.er1 9786 cat conftest.err >&5 9787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9788 (exit $ac_status); } && { 9789 test -z "$ac_c_werror_flag" || 9790 test ! -s conftest.err 9791 } && test -s conftest$ac_exeext && { 9792 test "$cross_compiling" = yes || 9793 $as_test_x conftest$ac_exeext 9794 }; then 9795 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9796 shlibpath_overrides_runpath=yes 9797fi 9798 9799else 9800 $as_echo "$as_me: failed program was:" >&5 9801sed 's/^/| /' conftest.$ac_ext >&5 9802 9803 9804fi 9805 9806rm -rf conftest.dSYM 9807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9808 conftest$ac_exeext conftest.$ac_ext 9809 LDFLAGS=$save_LDFLAGS 9810 libdir=$save_libdir 9811 9812 # This implies no fast_install, which is unacceptable. 9813 # Some rework will be needed to allow for fast_install 9814 # before this can be enabled. 9815 hardcode_into_libs=yes 9816 9817 # Add ABI-specific directories to the system library path. 9818 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 9819 9820 # Append ld.so.conf contents to the search path 9821 if test -f /etc/ld.so.conf; then 9822 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' ' '` 9823 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9824 fi 9825 9826 # We used to test for /lib/ld.so.1 and disable shared libraries on 9827 # powerpc, because MkLinux only supported shared libraries with the 9828 # GNU dynamic linker. Since this was broken with cross compilers, 9829 # most powerpc-linux boxes support dynamic linking these days and 9830 # people can always --disable-shared, the test was removed, and we 9831 # assume the GNU/Linux dynamic linker is in use. 9832 dynamic_linker='GNU/Linux ld.so' 9833 ;; 9834 9835netbsd*) 9836 version_type=sunos 9837 need_lib_prefix=no 9838 need_version=no 9839 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9841 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9842 dynamic_linker='NetBSD (a.out) ld.so' 9843 else 9844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9845 soname_spec='${libname}${release}${shared_ext}$major' 9846 dynamic_linker='NetBSD ld.elf_so' 9847 fi 9848 shlibpath_var=LD_LIBRARY_PATH 9849 shlibpath_overrides_runpath=yes 9850 hardcode_into_libs=yes 9851 ;; 9852 9853newsos6) 9854 version_type=linux 9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9856 shlibpath_var=LD_LIBRARY_PATH 9857 shlibpath_overrides_runpath=yes 9858 ;; 9859 9860*nto* | *qnx*) 9861 version_type=qnx 9862 need_lib_prefix=no 9863 need_version=no 9864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9865 soname_spec='${libname}${release}${shared_ext}$major' 9866 shlibpath_var=LD_LIBRARY_PATH 9867 shlibpath_overrides_runpath=no 9868 hardcode_into_libs=yes 9869 dynamic_linker='ldqnx.so' 9870 ;; 9871 9872openbsd*) 9873 version_type=sunos 9874 sys_lib_dlsearch_path_spec="/usr/lib" 9875 need_lib_prefix=no 9876 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9877 case $host_os in 9878 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9879 *) need_version=no ;; 9880 esac 9881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9883 shlibpath_var=LD_LIBRARY_PATH 9884 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9885 case $host_os in 9886 openbsd2.[89] | openbsd2.[89].*) 9887 shlibpath_overrides_runpath=no 9888 ;; 9889 *) 9890 shlibpath_overrides_runpath=yes 9891 ;; 9892 esac 9893 else 9894 shlibpath_overrides_runpath=yes 9895 fi 9896 ;; 9897 9898os2*) 9899 libname_spec='$name' 9900 shrext_cmds=".dll" 9901 need_lib_prefix=no 9902 library_names_spec='$libname${shared_ext} $libname.a' 9903 dynamic_linker='OS/2 ld.exe' 9904 shlibpath_var=LIBPATH 9905 ;; 9906 9907osf3* | osf4* | osf5*) 9908 version_type=osf 9909 need_lib_prefix=no 9910 need_version=no 9911 soname_spec='${libname}${release}${shared_ext}$major' 9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9913 shlibpath_var=LD_LIBRARY_PATH 9914 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9915 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9916 ;; 9917 9918rdos*) 9919 dynamic_linker=no 9920 ;; 9921 9922solaris*) 9923 version_type=linux 9924 need_lib_prefix=no 9925 need_version=no 9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9927 soname_spec='${libname}${release}${shared_ext}$major' 9928 shlibpath_var=LD_LIBRARY_PATH 9929 shlibpath_overrides_runpath=yes 9930 hardcode_into_libs=yes 9931 # ldd complains unless libraries are executable 9932 postinstall_cmds='chmod +x $lib' 9933 ;; 9934 9935sunos4*) 9936 version_type=sunos 9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9938 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9939 shlibpath_var=LD_LIBRARY_PATH 9940 shlibpath_overrides_runpath=yes 9941 if test "$with_gnu_ld" = yes; then 9942 need_lib_prefix=no 9943 fi 9944 need_version=yes 9945 ;; 9946 9947sysv4 | sysv4.3*) 9948 version_type=linux 9949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9950 soname_spec='${libname}${release}${shared_ext}$major' 9951 shlibpath_var=LD_LIBRARY_PATH 9952 case $host_vendor in 9953 sni) 9954 shlibpath_overrides_runpath=no 9955 need_lib_prefix=no 9956 runpath_var=LD_RUN_PATH 9957 ;; 9958 siemens) 9959 need_lib_prefix=no 9960 ;; 9961 motorola) 9962 need_lib_prefix=no 9963 need_version=no 9964 shlibpath_overrides_runpath=no 9965 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9966 ;; 9967 esac 9968 ;; 9969 9970sysv4*MP*) 9971 if test -d /usr/nec ;then 9972 version_type=linux 9973 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9974 soname_spec='$libname${shared_ext}.$major' 9975 shlibpath_var=LD_LIBRARY_PATH 9976 fi 9977 ;; 9978 9979sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9980 version_type=freebsd-elf 9981 need_lib_prefix=no 9982 need_version=no 9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9984 soname_spec='${libname}${release}${shared_ext}$major' 9985 shlibpath_var=LD_LIBRARY_PATH 9986 shlibpath_overrides_runpath=yes 9987 hardcode_into_libs=yes 9988 if test "$with_gnu_ld" = yes; then 9989 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9990 else 9991 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9992 case $host_os in 9993 sco3.2v5*) 9994 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9995 ;; 9996 esac 9997 fi 9998 sys_lib_dlsearch_path_spec='/usr/lib' 9999 ;; 10000 10001tpf*) 10002 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10003 version_type=linux 10004 need_lib_prefix=no 10005 need_version=no 10006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10007 shlibpath_var=LD_LIBRARY_PATH 10008 shlibpath_overrides_runpath=no 10009 hardcode_into_libs=yes 10010 ;; 10011 10012uts4*) 10013 version_type=linux 10014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10015 soname_spec='${libname}${release}${shared_ext}$major' 10016 shlibpath_var=LD_LIBRARY_PATH 10017 ;; 10018 10019*) 10020 dynamic_linker=no 10021 ;; 10022esac 10023{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10024$as_echo "$dynamic_linker" >&6; } 10025test "$dynamic_linker" = no && can_build_shared=no 10026 10027variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10028if test "$GCC" = yes; then 10029 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10030fi 10031 10032if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10033 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10034fi 10035if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10036 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10037fi 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10126$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10127hardcode_action= 10128if test -n "$hardcode_libdir_flag_spec" || 10129 test -n "$runpath_var" || 10130 test "X$hardcode_automatic" = "Xyes" ; then 10131 10132 # We can hardcode non-existent directories. 10133 if test "$hardcode_direct" != no && 10134 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10135 # have to relink, otherwise we might link with an installed library 10136 # when we should be linking with a yet-to-be-installed one 10137 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10138 test "$hardcode_minus_L" != no; then 10139 # Linking always hardcodes the temporary library directory. 10140 hardcode_action=relink 10141 else 10142 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10143 hardcode_action=immediate 10144 fi 10145else 10146 # We cannot hardcode anything, or else we can only hardcode existing 10147 # directories. 10148 hardcode_action=unsupported 10149fi 10150{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10151$as_echo "$hardcode_action" >&6; } 10152 10153if test "$hardcode_action" = relink || 10154 test "$inherit_rpath" = yes; then 10155 # Fast installation is not supported 10156 enable_fast_install=no 10157elif test "$shlibpath_overrides_runpath" = yes || 10158 test "$enable_shared" = no; then 10159 # Fast installation is not necessary 10160 enable_fast_install=needless 10161fi 10162 10163 10164 10165 10166 10167 10168 if test "x$enable_dlopen" != xyes; then 10169 enable_dlopen=unknown 10170 enable_dlopen_self=unknown 10171 enable_dlopen_self_static=unknown 10172else 10173 lt_cv_dlopen=no 10174 lt_cv_dlopen_libs= 10175 10176 case $host_os in 10177 beos*) 10178 lt_cv_dlopen="load_add_on" 10179 lt_cv_dlopen_libs= 10180 lt_cv_dlopen_self=yes 10181 ;; 10182 10183 mingw* | pw32* | cegcc*) 10184 lt_cv_dlopen="LoadLibrary" 10185 lt_cv_dlopen_libs= 10186 ;; 10187 10188 cygwin*) 10189 lt_cv_dlopen="dlopen" 10190 lt_cv_dlopen_libs= 10191 ;; 10192 10193 darwin*) 10194 # if libdl is installed we need to link against it 10195 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10196$as_echo_n "checking for dlopen in -ldl... " >&6; } 10197if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10198 $as_echo_n "(cached) " >&6 10199else 10200 ac_check_lib_save_LIBS=$LIBS 10201LIBS="-ldl $LIBS" 10202cat >conftest.$ac_ext <<_ACEOF 10203/* confdefs.h. */ 10204_ACEOF 10205cat confdefs.h >>conftest.$ac_ext 10206cat >>conftest.$ac_ext <<_ACEOF 10207/* end confdefs.h. */ 10208 10209/* Override any GCC internal prototype to avoid an error. 10210 Use char because int might match the return type of a GCC 10211 builtin and then its argument prototype would still apply. */ 10212#ifdef __cplusplus 10213extern "C" 10214#endif 10215char dlopen (); 10216int 10217main () 10218{ 10219return dlopen (); 10220 ; 10221 return 0; 10222} 10223_ACEOF 10224rm -f conftest.$ac_objext conftest$ac_exeext 10225if { (ac_try="$ac_link" 10226case "(($ac_try" in 10227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10228 *) ac_try_echo=$ac_try;; 10229esac 10230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10231$as_echo "$ac_try_echo") >&5 10232 (eval "$ac_link") 2>conftest.er1 10233 ac_status=$? 10234 grep -v '^ *+' conftest.er1 >conftest.err 10235 rm -f conftest.er1 10236 cat conftest.err >&5 10237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10238 (exit $ac_status); } && { 10239 test -z "$ac_c_werror_flag" || 10240 test ! -s conftest.err 10241 } && test -s conftest$ac_exeext && { 10242 test "$cross_compiling" = yes || 10243 $as_test_x conftest$ac_exeext 10244 }; then 10245 ac_cv_lib_dl_dlopen=yes 10246else 10247 $as_echo "$as_me: failed program was:" >&5 10248sed 's/^/| /' conftest.$ac_ext >&5 10249 10250 ac_cv_lib_dl_dlopen=no 10251fi 10252 10253rm -rf conftest.dSYM 10254rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10255 conftest$ac_exeext conftest.$ac_ext 10256LIBS=$ac_check_lib_save_LIBS 10257fi 10258{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10259$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10260if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10261 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10262else 10263 10264 lt_cv_dlopen="dyld" 10265 lt_cv_dlopen_libs= 10266 lt_cv_dlopen_self=yes 10267 10268fi 10269 10270 ;; 10271 10272 *) 10273 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 10274$as_echo_n "checking for shl_load... " >&6; } 10275if test "${ac_cv_func_shl_load+set}" = set; then 10276 $as_echo_n "(cached) " >&6 10277else 10278 cat >conftest.$ac_ext <<_ACEOF 10279/* confdefs.h. */ 10280_ACEOF 10281cat confdefs.h >>conftest.$ac_ext 10282cat >>conftest.$ac_ext <<_ACEOF 10283/* end confdefs.h. */ 10284/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10285 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10286#define shl_load innocuous_shl_load 10287 10288/* System header to define __stub macros and hopefully few prototypes, 10289 which can conflict with char shl_load (); below. 10290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10291 <limits.h> exists even on freestanding compilers. */ 10292 10293#ifdef __STDC__ 10294# include <limits.h> 10295#else 10296# include <assert.h> 10297#endif 10298 10299#undef shl_load 10300 10301/* Override any GCC internal prototype to avoid an error. 10302 Use char because int might match the return type of a GCC 10303 builtin and then its argument prototype would still apply. */ 10304#ifdef __cplusplus 10305extern "C" 10306#endif 10307char shl_load (); 10308/* The GNU C library defines this for functions which it implements 10309 to always fail with ENOSYS. Some functions are actually named 10310 something starting with __ and the normal name is an alias. */ 10311#if defined __stub_shl_load || defined __stub___shl_load 10312choke me 10313#endif 10314 10315int 10316main () 10317{ 10318return shl_load (); 10319 ; 10320 return 0; 10321} 10322_ACEOF 10323rm -f conftest.$ac_objext conftest$ac_exeext 10324if { (ac_try="$ac_link" 10325case "(($ac_try" in 10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10327 *) ac_try_echo=$ac_try;; 10328esac 10329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10330$as_echo "$ac_try_echo") >&5 10331 (eval "$ac_link") 2>conftest.er1 10332 ac_status=$? 10333 grep -v '^ *+' conftest.er1 >conftest.err 10334 rm -f conftest.er1 10335 cat conftest.err >&5 10336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10337 (exit $ac_status); } && { 10338 test -z "$ac_c_werror_flag" || 10339 test ! -s conftest.err 10340 } && test -s conftest$ac_exeext && { 10341 test "$cross_compiling" = yes || 10342 $as_test_x conftest$ac_exeext 10343 }; then 10344 ac_cv_func_shl_load=yes 10345else 10346 $as_echo "$as_me: failed program was:" >&5 10347sed 's/^/| /' conftest.$ac_ext >&5 10348 10349 ac_cv_func_shl_load=no 10350fi 10351 10352rm -rf conftest.dSYM 10353rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10354 conftest$ac_exeext conftest.$ac_ext 10355fi 10356{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10357$as_echo "$ac_cv_func_shl_load" >&6; } 10358if test "x$ac_cv_func_shl_load" = x""yes; then 10359 lt_cv_dlopen="shl_load" 10360else 10361 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10362$as_echo_n "checking for shl_load in -ldld... " >&6; } 10363if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10364 $as_echo_n "(cached) " >&6 10365else 10366 ac_check_lib_save_LIBS=$LIBS 10367LIBS="-ldld $LIBS" 10368cat >conftest.$ac_ext <<_ACEOF 10369/* confdefs.h. */ 10370_ACEOF 10371cat confdefs.h >>conftest.$ac_ext 10372cat >>conftest.$ac_ext <<_ACEOF 10373/* end confdefs.h. */ 10374 10375/* Override any GCC internal prototype to avoid an error. 10376 Use char because int might match the return type of a GCC 10377 builtin and then its argument prototype would still apply. */ 10378#ifdef __cplusplus 10379extern "C" 10380#endif 10381char shl_load (); 10382int 10383main () 10384{ 10385return shl_load (); 10386 ; 10387 return 0; 10388} 10389_ACEOF 10390rm -f conftest.$ac_objext conftest$ac_exeext 10391if { (ac_try="$ac_link" 10392case "(($ac_try" in 10393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10394 *) ac_try_echo=$ac_try;; 10395esac 10396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10397$as_echo "$ac_try_echo") >&5 10398 (eval "$ac_link") 2>conftest.er1 10399 ac_status=$? 10400 grep -v '^ *+' conftest.er1 >conftest.err 10401 rm -f conftest.er1 10402 cat conftest.err >&5 10403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10404 (exit $ac_status); } && { 10405 test -z "$ac_c_werror_flag" || 10406 test ! -s conftest.err 10407 } && test -s conftest$ac_exeext && { 10408 test "$cross_compiling" = yes || 10409 $as_test_x conftest$ac_exeext 10410 }; then 10411 ac_cv_lib_dld_shl_load=yes 10412else 10413 $as_echo "$as_me: failed program was:" >&5 10414sed 's/^/| /' conftest.$ac_ext >&5 10415 10416 ac_cv_lib_dld_shl_load=no 10417fi 10418 10419rm -rf conftest.dSYM 10420rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10421 conftest$ac_exeext conftest.$ac_ext 10422LIBS=$ac_check_lib_save_LIBS 10423fi 10424{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10425$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10426if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10427 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10428else 10429 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10430$as_echo_n "checking for dlopen... " >&6; } 10431if test "${ac_cv_func_dlopen+set}" = set; then 10432 $as_echo_n "(cached) " >&6 10433else 10434 cat >conftest.$ac_ext <<_ACEOF 10435/* confdefs.h. */ 10436_ACEOF 10437cat confdefs.h >>conftest.$ac_ext 10438cat >>conftest.$ac_ext <<_ACEOF 10439/* end confdefs.h. */ 10440/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10441 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10442#define dlopen innocuous_dlopen 10443 10444/* System header to define __stub macros and hopefully few prototypes, 10445 which can conflict with char dlopen (); below. 10446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10447 <limits.h> exists even on freestanding compilers. */ 10448 10449#ifdef __STDC__ 10450# include <limits.h> 10451#else 10452# include <assert.h> 10453#endif 10454 10455#undef dlopen 10456 10457/* Override any GCC internal prototype to avoid an error. 10458 Use char because int might match the return type of a GCC 10459 builtin and then its argument prototype would still apply. */ 10460#ifdef __cplusplus 10461extern "C" 10462#endif 10463char dlopen (); 10464/* The GNU C library defines this for functions which it implements 10465 to always fail with ENOSYS. Some functions are actually named 10466 something starting with __ and the normal name is an alias. */ 10467#if defined __stub_dlopen || defined __stub___dlopen 10468choke me 10469#endif 10470 10471int 10472main () 10473{ 10474return dlopen (); 10475 ; 10476 return 0; 10477} 10478_ACEOF 10479rm -f conftest.$ac_objext conftest$ac_exeext 10480if { (ac_try="$ac_link" 10481case "(($ac_try" in 10482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10483 *) ac_try_echo=$ac_try;; 10484esac 10485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10486$as_echo "$ac_try_echo") >&5 10487 (eval "$ac_link") 2>conftest.er1 10488 ac_status=$? 10489 grep -v '^ *+' conftest.er1 >conftest.err 10490 rm -f conftest.er1 10491 cat conftest.err >&5 10492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10493 (exit $ac_status); } && { 10494 test -z "$ac_c_werror_flag" || 10495 test ! -s conftest.err 10496 } && test -s conftest$ac_exeext && { 10497 test "$cross_compiling" = yes || 10498 $as_test_x conftest$ac_exeext 10499 }; then 10500 ac_cv_func_dlopen=yes 10501else 10502 $as_echo "$as_me: failed program was:" >&5 10503sed 's/^/| /' conftest.$ac_ext >&5 10504 10505 ac_cv_func_dlopen=no 10506fi 10507 10508rm -rf conftest.dSYM 10509rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10510 conftest$ac_exeext conftest.$ac_ext 10511fi 10512{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10513$as_echo "$ac_cv_func_dlopen" >&6; } 10514if test "x$ac_cv_func_dlopen" = x""yes; then 10515 lt_cv_dlopen="dlopen" 10516else 10517 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10518$as_echo_n "checking for dlopen in -ldl... " >&6; } 10519if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10520 $as_echo_n "(cached) " >&6 10521else 10522 ac_check_lib_save_LIBS=$LIBS 10523LIBS="-ldl $LIBS" 10524cat >conftest.$ac_ext <<_ACEOF 10525/* confdefs.h. */ 10526_ACEOF 10527cat confdefs.h >>conftest.$ac_ext 10528cat >>conftest.$ac_ext <<_ACEOF 10529/* end confdefs.h. */ 10530 10531/* Override any GCC internal prototype to avoid an error. 10532 Use char because int might match the return type of a GCC 10533 builtin and then its argument prototype would still apply. */ 10534#ifdef __cplusplus 10535extern "C" 10536#endif 10537char dlopen (); 10538int 10539main () 10540{ 10541return dlopen (); 10542 ; 10543 return 0; 10544} 10545_ACEOF 10546rm -f conftest.$ac_objext conftest$ac_exeext 10547if { (ac_try="$ac_link" 10548case "(($ac_try" in 10549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10550 *) ac_try_echo=$ac_try;; 10551esac 10552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10553$as_echo "$ac_try_echo") >&5 10554 (eval "$ac_link") 2>conftest.er1 10555 ac_status=$? 10556 grep -v '^ *+' conftest.er1 >conftest.err 10557 rm -f conftest.er1 10558 cat conftest.err >&5 10559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10560 (exit $ac_status); } && { 10561 test -z "$ac_c_werror_flag" || 10562 test ! -s conftest.err 10563 } && test -s conftest$ac_exeext && { 10564 test "$cross_compiling" = yes || 10565 $as_test_x conftest$ac_exeext 10566 }; then 10567 ac_cv_lib_dl_dlopen=yes 10568else 10569 $as_echo "$as_me: failed program was:" >&5 10570sed 's/^/| /' conftest.$ac_ext >&5 10571 10572 ac_cv_lib_dl_dlopen=no 10573fi 10574 10575rm -rf conftest.dSYM 10576rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10577 conftest$ac_exeext conftest.$ac_ext 10578LIBS=$ac_check_lib_save_LIBS 10579fi 10580{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10581$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10582if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10583 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10584else 10585 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10586$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10587if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10588 $as_echo_n "(cached) " >&6 10589else 10590 ac_check_lib_save_LIBS=$LIBS 10591LIBS="-lsvld $LIBS" 10592cat >conftest.$ac_ext <<_ACEOF 10593/* confdefs.h. */ 10594_ACEOF 10595cat confdefs.h >>conftest.$ac_ext 10596cat >>conftest.$ac_ext <<_ACEOF 10597/* end confdefs.h. */ 10598 10599/* Override any GCC internal prototype to avoid an error. 10600 Use char because int might match the return type of a GCC 10601 builtin and then its argument prototype would still apply. */ 10602#ifdef __cplusplus 10603extern "C" 10604#endif 10605char dlopen (); 10606int 10607main () 10608{ 10609return dlopen (); 10610 ; 10611 return 0; 10612} 10613_ACEOF 10614rm -f conftest.$ac_objext conftest$ac_exeext 10615if { (ac_try="$ac_link" 10616case "(($ac_try" in 10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10618 *) ac_try_echo=$ac_try;; 10619esac 10620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10621$as_echo "$ac_try_echo") >&5 10622 (eval "$ac_link") 2>conftest.er1 10623 ac_status=$? 10624 grep -v '^ *+' conftest.er1 >conftest.err 10625 rm -f conftest.er1 10626 cat conftest.err >&5 10627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10628 (exit $ac_status); } && { 10629 test -z "$ac_c_werror_flag" || 10630 test ! -s conftest.err 10631 } && test -s conftest$ac_exeext && { 10632 test "$cross_compiling" = yes || 10633 $as_test_x conftest$ac_exeext 10634 }; then 10635 ac_cv_lib_svld_dlopen=yes 10636else 10637 $as_echo "$as_me: failed program was:" >&5 10638sed 's/^/| /' conftest.$ac_ext >&5 10639 10640 ac_cv_lib_svld_dlopen=no 10641fi 10642 10643rm -rf conftest.dSYM 10644rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10645 conftest$ac_exeext conftest.$ac_ext 10646LIBS=$ac_check_lib_save_LIBS 10647fi 10648{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10649$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10650if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10651 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10652else 10653 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10654$as_echo_n "checking for dld_link in -ldld... " >&6; } 10655if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10656 $as_echo_n "(cached) " >&6 10657else 10658 ac_check_lib_save_LIBS=$LIBS 10659LIBS="-ldld $LIBS" 10660cat >conftest.$ac_ext <<_ACEOF 10661/* confdefs.h. */ 10662_ACEOF 10663cat confdefs.h >>conftest.$ac_ext 10664cat >>conftest.$ac_ext <<_ACEOF 10665/* end confdefs.h. */ 10666 10667/* Override any GCC internal prototype to avoid an error. 10668 Use char because int might match the return type of a GCC 10669 builtin and then its argument prototype would still apply. */ 10670#ifdef __cplusplus 10671extern "C" 10672#endif 10673char dld_link (); 10674int 10675main () 10676{ 10677return dld_link (); 10678 ; 10679 return 0; 10680} 10681_ACEOF 10682rm -f conftest.$ac_objext conftest$ac_exeext 10683if { (ac_try="$ac_link" 10684case "(($ac_try" in 10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10686 *) ac_try_echo=$ac_try;; 10687esac 10688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10689$as_echo "$ac_try_echo") >&5 10690 (eval "$ac_link") 2>conftest.er1 10691 ac_status=$? 10692 grep -v '^ *+' conftest.er1 >conftest.err 10693 rm -f conftest.er1 10694 cat conftest.err >&5 10695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10696 (exit $ac_status); } && { 10697 test -z "$ac_c_werror_flag" || 10698 test ! -s conftest.err 10699 } && test -s conftest$ac_exeext && { 10700 test "$cross_compiling" = yes || 10701 $as_test_x conftest$ac_exeext 10702 }; then 10703 ac_cv_lib_dld_dld_link=yes 10704else 10705 $as_echo "$as_me: failed program was:" >&5 10706sed 's/^/| /' conftest.$ac_ext >&5 10707 10708 ac_cv_lib_dld_dld_link=no 10709fi 10710 10711rm -rf conftest.dSYM 10712rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10713 conftest$ac_exeext conftest.$ac_ext 10714LIBS=$ac_check_lib_save_LIBS 10715fi 10716{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10717$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10718if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10719 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10720fi 10721 10722 10723fi 10724 10725 10726fi 10727 10728 10729fi 10730 10731 10732fi 10733 10734 10735fi 10736 10737 ;; 10738 esac 10739 10740 if test "x$lt_cv_dlopen" != xno; then 10741 enable_dlopen=yes 10742 else 10743 enable_dlopen=no 10744 fi 10745 10746 case $lt_cv_dlopen in 10747 dlopen) 10748 save_CPPFLAGS="$CPPFLAGS" 10749 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10750 10751 save_LDFLAGS="$LDFLAGS" 10752 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10753 10754 save_LIBS="$LIBS" 10755 LIBS="$lt_cv_dlopen_libs $LIBS" 10756 10757 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10758$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10759if test "${lt_cv_dlopen_self+set}" = set; then 10760 $as_echo_n "(cached) " >&6 10761else 10762 if test "$cross_compiling" = yes; then : 10763 lt_cv_dlopen_self=cross 10764else 10765 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10766 lt_status=$lt_dlunknown 10767 cat > conftest.$ac_ext <<_LT_EOF 10768#line 10768 "configure" 10769#include "confdefs.h" 10770 10771#if HAVE_DLFCN_H 10772#include <dlfcn.h> 10773#endif 10774 10775#include <stdio.h> 10776 10777#ifdef RTLD_GLOBAL 10778# define LT_DLGLOBAL RTLD_GLOBAL 10779#else 10780# ifdef DL_GLOBAL 10781# define LT_DLGLOBAL DL_GLOBAL 10782# else 10783# define LT_DLGLOBAL 0 10784# endif 10785#endif 10786 10787/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10788 find out it does not work in some platform. */ 10789#ifndef LT_DLLAZY_OR_NOW 10790# ifdef RTLD_LAZY 10791# define LT_DLLAZY_OR_NOW RTLD_LAZY 10792# else 10793# ifdef DL_LAZY 10794# define LT_DLLAZY_OR_NOW DL_LAZY 10795# else 10796# ifdef RTLD_NOW 10797# define LT_DLLAZY_OR_NOW RTLD_NOW 10798# else 10799# ifdef DL_NOW 10800# define LT_DLLAZY_OR_NOW DL_NOW 10801# else 10802# define LT_DLLAZY_OR_NOW 0 10803# endif 10804# endif 10805# endif 10806# endif 10807#endif 10808 10809void fnord() { int i=42;} 10810int main () 10811{ 10812 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10813 int status = $lt_dlunknown; 10814 10815 if (self) 10816 { 10817 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10818 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10819 /* dlclose (self); */ 10820 } 10821 else 10822 puts (dlerror ()); 10823 10824 return status; 10825} 10826_LT_EOF 10827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10828 (eval $ac_link) 2>&5 10829 ac_status=$? 10830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10831 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10832 (./conftest; exit; ) >&5 2>/dev/null 10833 lt_status=$? 10834 case x$lt_status in 10835 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10836 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10837 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10838 esac 10839 else : 10840 # compilation failed 10841 lt_cv_dlopen_self=no 10842 fi 10843fi 10844rm -fr conftest* 10845 10846 10847fi 10848{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10849$as_echo "$lt_cv_dlopen_self" >&6; } 10850 10851 if test "x$lt_cv_dlopen_self" = xyes; then 10852 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10853 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10854$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10855if test "${lt_cv_dlopen_self_static+set}" = set; then 10856 $as_echo_n "(cached) " >&6 10857else 10858 if test "$cross_compiling" = yes; then : 10859 lt_cv_dlopen_self_static=cross 10860else 10861 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10862 lt_status=$lt_dlunknown 10863 cat > conftest.$ac_ext <<_LT_EOF 10864#line 10864 "configure" 10865#include "confdefs.h" 10866 10867#if HAVE_DLFCN_H 10868#include <dlfcn.h> 10869#endif 10870 10871#include <stdio.h> 10872 10873#ifdef RTLD_GLOBAL 10874# define LT_DLGLOBAL RTLD_GLOBAL 10875#else 10876# ifdef DL_GLOBAL 10877# define LT_DLGLOBAL DL_GLOBAL 10878# else 10879# define LT_DLGLOBAL 0 10880# endif 10881#endif 10882 10883/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10884 find out it does not work in some platform. */ 10885#ifndef LT_DLLAZY_OR_NOW 10886# ifdef RTLD_LAZY 10887# define LT_DLLAZY_OR_NOW RTLD_LAZY 10888# else 10889# ifdef DL_LAZY 10890# define LT_DLLAZY_OR_NOW DL_LAZY 10891# else 10892# ifdef RTLD_NOW 10893# define LT_DLLAZY_OR_NOW RTLD_NOW 10894# else 10895# ifdef DL_NOW 10896# define LT_DLLAZY_OR_NOW DL_NOW 10897# else 10898# define LT_DLLAZY_OR_NOW 0 10899# endif 10900# endif 10901# endif 10902# endif 10903#endif 10904 10905void fnord() { int i=42;} 10906int main () 10907{ 10908 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10909 int status = $lt_dlunknown; 10910 10911 if (self) 10912 { 10913 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10914 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10915 /* dlclose (self); */ 10916 } 10917 else 10918 puts (dlerror ()); 10919 10920 return status; 10921} 10922_LT_EOF 10923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10924 (eval $ac_link) 2>&5 10925 ac_status=$? 10926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10927 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10928 (./conftest; exit; ) >&5 2>/dev/null 10929 lt_status=$? 10930 case x$lt_status in 10931 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10932 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10933 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10934 esac 10935 else : 10936 # compilation failed 10937 lt_cv_dlopen_self_static=no 10938 fi 10939fi 10940rm -fr conftest* 10941 10942 10943fi 10944{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10945$as_echo "$lt_cv_dlopen_self_static" >&6; } 10946 fi 10947 10948 CPPFLAGS="$save_CPPFLAGS" 10949 LDFLAGS="$save_LDFLAGS" 10950 LIBS="$save_LIBS" 10951 ;; 10952 esac 10953 10954 case $lt_cv_dlopen_self in 10955 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10956 *) enable_dlopen_self=unknown ;; 10957 esac 10958 10959 case $lt_cv_dlopen_self_static in 10960 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10961 *) enable_dlopen_self_static=unknown ;; 10962 esac 10963fi 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981striplib= 10982old_striplib= 10983{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10984$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10985if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10986 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10987 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10988 { $as_echo "$as_me:$LINENO: result: yes" >&5 10989$as_echo "yes" >&6; } 10990else 10991# FIXME - insert some real tests, host_os isn't really good enough 10992 case $host_os in 10993 darwin*) 10994 if test -n "$STRIP" ; then 10995 striplib="$STRIP -x" 10996 old_striplib="$STRIP -S" 10997 { $as_echo "$as_me:$LINENO: result: yes" >&5 10998$as_echo "yes" >&6; } 10999 else 11000 { $as_echo "$as_me:$LINENO: result: no" >&5 11001$as_echo "no" >&6; } 11002 fi 11003 ;; 11004 *) 11005 { $as_echo "$as_me:$LINENO: result: no" >&5 11006$as_echo "no" >&6; } 11007 ;; 11008 esac 11009fi 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 # Report which library types will actually be built 11023 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11024$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11025 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11026$as_echo "$can_build_shared" >&6; } 11027 11028 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11029$as_echo_n "checking whether to build shared libraries... " >&6; } 11030 test "$can_build_shared" = "no" && enable_shared=no 11031 11032 # On AIX, shared libraries and static libraries use the same namespace, and 11033 # are all built from PIC. 11034 case $host_os in 11035 aix3*) 11036 test "$enable_shared" = yes && enable_static=no 11037 if test -n "$RANLIB"; then 11038 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11039 postinstall_cmds='$RANLIB $lib' 11040 fi 11041 ;; 11042 11043 aix[4-9]*) 11044 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11045 test "$enable_shared" = yes && enable_static=no 11046 fi 11047 ;; 11048 esac 11049 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11050$as_echo "$enable_shared" >&6; } 11051 11052 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11053$as_echo_n "checking whether to build static libraries... " >&6; } 11054 # Make sure either enable_shared or enable_static is yes. 11055 test "$enable_shared" = yes || enable_static=yes 11056 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11057$as_echo "$enable_static" >&6; } 11058 11059 11060 11061 11062fi 11063ac_ext=c 11064ac_cpp='$CPP $CPPFLAGS' 11065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11067ac_compiler_gnu=$ac_cv_c_compiler_gnu 11068 11069CC="$lt_save_CC" 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 ac_config_commands="$ac_config_commands libtool" 11084 11085 11086 11087 11088# Only expand once: 11089 11090 11091ac_ext=c 11092ac_cpp='$CPP $CPPFLAGS' 11093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11095ac_compiler_gnu=$ac_cv_c_compiler_gnu 11096if test -n "$ac_tool_prefix"; then 11097 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11098set dummy ${ac_tool_prefix}gcc; ac_word=$2 11099{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11100$as_echo_n "checking for $ac_word... " >&6; } 11101if test "${ac_cv_prog_CC+set}" = set; then 11102 $as_echo_n "(cached) " >&6 11103else 11104 if test -n "$CC"; then 11105 ac_cv_prog_CC="$CC" # Let the user override the test. 11106else 11107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11108for as_dir in $PATH 11109do 11110 IFS=$as_save_IFS 11111 test -z "$as_dir" && as_dir=. 11112 for ac_exec_ext in '' $ac_executable_extensions; do 11113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11114 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11115 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11116 break 2 11117 fi 11118done 11119done 11120IFS=$as_save_IFS 11121 11122fi 11123fi 11124CC=$ac_cv_prog_CC 11125if test -n "$CC"; then 11126 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11127$as_echo "$CC" >&6; } 11128else 11129 { $as_echo "$as_me:$LINENO: result: no" >&5 11130$as_echo "no" >&6; } 11131fi 11132 11133 11134fi 11135if test -z "$ac_cv_prog_CC"; then 11136 ac_ct_CC=$CC 11137 # Extract the first word of "gcc", so it can be a program name with args. 11138set dummy gcc; ac_word=$2 11139{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11140$as_echo_n "checking for $ac_word... " >&6; } 11141if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 11142 $as_echo_n "(cached) " >&6 11143else 11144 if test -n "$ac_ct_CC"; then 11145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11146else 11147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11148for as_dir in $PATH 11149do 11150 IFS=$as_save_IFS 11151 test -z "$as_dir" && as_dir=. 11152 for ac_exec_ext in '' $ac_executable_extensions; do 11153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11154 ac_cv_prog_ac_ct_CC="gcc" 11155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11156 break 2 11157 fi 11158done 11159done 11160IFS=$as_save_IFS 11161 11162fi 11163fi 11164ac_ct_CC=$ac_cv_prog_ac_ct_CC 11165if test -n "$ac_ct_CC"; then 11166 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 11167$as_echo "$ac_ct_CC" >&6; } 11168else 11169 { $as_echo "$as_me:$LINENO: result: no" >&5 11170$as_echo "no" >&6; } 11171fi 11172 11173 if test "x$ac_ct_CC" = x; then 11174 CC="" 11175 else 11176 case $cross_compiling:$ac_tool_warned in 11177yes:) 11178{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 11179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11180ac_tool_warned=yes ;; 11181esac 11182 CC=$ac_ct_CC 11183 fi 11184else 11185 CC="$ac_cv_prog_CC" 11186fi 11187 11188if test -z "$CC"; then 11189 if test -n "$ac_tool_prefix"; then 11190 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11191set dummy ${ac_tool_prefix}cc; ac_word=$2 11192{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11193$as_echo_n "checking for $ac_word... " >&6; } 11194if test "${ac_cv_prog_CC+set}" = set; then 11195 $as_echo_n "(cached) " >&6 11196else 11197 if test -n "$CC"; then 11198 ac_cv_prog_CC="$CC" # Let the user override the test. 11199else 11200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11201for as_dir in $PATH 11202do 11203 IFS=$as_save_IFS 11204 test -z "$as_dir" && as_dir=. 11205 for ac_exec_ext in '' $ac_executable_extensions; do 11206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11207 ac_cv_prog_CC="${ac_tool_prefix}cc" 11208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11209 break 2 11210 fi 11211done 11212done 11213IFS=$as_save_IFS 11214 11215fi 11216fi 11217CC=$ac_cv_prog_CC 11218if test -n "$CC"; then 11219 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11220$as_echo "$CC" >&6; } 11221else 11222 { $as_echo "$as_me:$LINENO: result: no" >&5 11223$as_echo "no" >&6; } 11224fi 11225 11226 11227 fi 11228fi 11229if test -z "$CC"; then 11230 # Extract the first word of "cc", so it can be a program name with args. 11231set dummy cc; ac_word=$2 11232{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11233$as_echo_n "checking for $ac_word... " >&6; } 11234if test "${ac_cv_prog_CC+set}" = set; then 11235 $as_echo_n "(cached) " >&6 11236else 11237 if test -n "$CC"; then 11238 ac_cv_prog_CC="$CC" # Let the user override the test. 11239else 11240 ac_prog_rejected=no 11241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11242for as_dir in $PATH 11243do 11244 IFS=$as_save_IFS 11245 test -z "$as_dir" && as_dir=. 11246 for ac_exec_ext in '' $ac_executable_extensions; do 11247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11248 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11249 ac_prog_rejected=yes 11250 continue 11251 fi 11252 ac_cv_prog_CC="cc" 11253 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11254 break 2 11255 fi 11256done 11257done 11258IFS=$as_save_IFS 11259 11260if test $ac_prog_rejected = yes; then 11261 # We found a bogon in the path, so make sure we never use it. 11262 set dummy $ac_cv_prog_CC 11263 shift 11264 if test $# != 0; then 11265 # We chose a different compiler from the bogus one. 11266 # However, it has the same basename, so the bogon will be chosen 11267 # first if we set CC to just the basename; use the full file name. 11268 shift 11269 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11270 fi 11271fi 11272fi 11273fi 11274CC=$ac_cv_prog_CC 11275if test -n "$CC"; then 11276 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11277$as_echo "$CC" >&6; } 11278else 11279 { $as_echo "$as_me:$LINENO: result: no" >&5 11280$as_echo "no" >&6; } 11281fi 11282 11283 11284fi 11285if test -z "$CC"; then 11286 if test -n "$ac_tool_prefix"; then 11287 for ac_prog in cl.exe 11288 do 11289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11290set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11291{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11292$as_echo_n "checking for $ac_word... " >&6; } 11293if test "${ac_cv_prog_CC+set}" = set; then 11294 $as_echo_n "(cached) " >&6 11295else 11296 if test -n "$CC"; then 11297 ac_cv_prog_CC="$CC" # Let the user override the test. 11298else 11299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11300for as_dir in $PATH 11301do 11302 IFS=$as_save_IFS 11303 test -z "$as_dir" && as_dir=. 11304 for ac_exec_ext in '' $ac_executable_extensions; do 11305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11306 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11307 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11308 break 2 11309 fi 11310done 11311done 11312IFS=$as_save_IFS 11313 11314fi 11315fi 11316CC=$ac_cv_prog_CC 11317if test -n "$CC"; then 11318 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11319$as_echo "$CC" >&6; } 11320else 11321 { $as_echo "$as_me:$LINENO: result: no" >&5 11322$as_echo "no" >&6; } 11323fi 11324 11325 11326 test -n "$CC" && break 11327 done 11328fi 11329if test -z "$CC"; then 11330 ac_ct_CC=$CC 11331 for ac_prog in cl.exe 11332do 11333 # Extract the first word of "$ac_prog", so it can be a program name with args. 11334set dummy $ac_prog; ac_word=$2 11335{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11336$as_echo_n "checking for $ac_word... " >&6; } 11337if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 11338 $as_echo_n "(cached) " >&6 11339else 11340 if test -n "$ac_ct_CC"; then 11341 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11342else 11343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11344for as_dir in $PATH 11345do 11346 IFS=$as_save_IFS 11347 test -z "$as_dir" && as_dir=. 11348 for ac_exec_ext in '' $ac_executable_extensions; do 11349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11350 ac_cv_prog_ac_ct_CC="$ac_prog" 11351 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11352 break 2 11353 fi 11354done 11355done 11356IFS=$as_save_IFS 11357 11358fi 11359fi 11360ac_ct_CC=$ac_cv_prog_ac_ct_CC 11361if test -n "$ac_ct_CC"; then 11362 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 11363$as_echo "$ac_ct_CC" >&6; } 11364else 11365 { $as_echo "$as_me:$LINENO: result: no" >&5 11366$as_echo "no" >&6; } 11367fi 11368 11369 11370 test -n "$ac_ct_CC" && break 11371done 11372 11373 if test "x$ac_ct_CC" = x; then 11374 CC="" 11375 else 11376 case $cross_compiling:$ac_tool_warned in 11377yes:) 11378{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 11379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11380ac_tool_warned=yes ;; 11381esac 11382 CC=$ac_ct_CC 11383 fi 11384fi 11385 11386fi 11387 11388 11389test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 11390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11391{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 11392See \`config.log' for more details." >&5 11393$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 11394See \`config.log' for more details." >&2;} 11395 { (exit 1); exit 1; }; }; } 11396 11397# Provide some information about the compiler. 11398$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 11399set X $ac_compile 11400ac_compiler=$2 11401{ (ac_try="$ac_compiler --version >&5" 11402case "(($ac_try" in 11403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11404 *) ac_try_echo=$ac_try;; 11405esac 11406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11407$as_echo "$ac_try_echo") >&5 11408 (eval "$ac_compiler --version >&5") 2>&5 11409 ac_status=$? 11410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11411 (exit $ac_status); } 11412{ (ac_try="$ac_compiler -v >&5" 11413case "(($ac_try" in 11414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11415 *) ac_try_echo=$ac_try;; 11416esac 11417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11418$as_echo "$ac_try_echo") >&5 11419 (eval "$ac_compiler -v >&5") 2>&5 11420 ac_status=$? 11421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11422 (exit $ac_status); } 11423{ (ac_try="$ac_compiler -V >&5" 11424case "(($ac_try" in 11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11426 *) ac_try_echo=$ac_try;; 11427esac 11428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11429$as_echo "$ac_try_echo") >&5 11430 (eval "$ac_compiler -V >&5") 2>&5 11431 ac_status=$? 11432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11433 (exit $ac_status); } 11434 11435{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 11436$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 11437if test "${ac_cv_c_compiler_gnu+set}" = set; then 11438 $as_echo_n "(cached) " >&6 11439else 11440 cat >conftest.$ac_ext <<_ACEOF 11441/* confdefs.h. */ 11442_ACEOF 11443cat confdefs.h >>conftest.$ac_ext 11444cat >>conftest.$ac_ext <<_ACEOF 11445/* end confdefs.h. */ 11446 11447int 11448main () 11449{ 11450#ifndef __GNUC__ 11451 choke me 11452#endif 11453 11454 ; 11455 return 0; 11456} 11457_ACEOF 11458rm -f conftest.$ac_objext 11459if { (ac_try="$ac_compile" 11460case "(($ac_try" in 11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11462 *) ac_try_echo=$ac_try;; 11463esac 11464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11465$as_echo "$ac_try_echo") >&5 11466 (eval "$ac_compile") 2>conftest.er1 11467 ac_status=$? 11468 grep -v '^ *+' conftest.er1 >conftest.err 11469 rm -f conftest.er1 11470 cat conftest.err >&5 11471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11472 (exit $ac_status); } && { 11473 test -z "$ac_c_werror_flag" || 11474 test ! -s conftest.err 11475 } && test -s conftest.$ac_objext; then 11476 ac_compiler_gnu=yes 11477else 11478 $as_echo "$as_me: failed program was:" >&5 11479sed 's/^/| /' conftest.$ac_ext >&5 11480 11481 ac_compiler_gnu=no 11482fi 11483 11484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11485ac_cv_c_compiler_gnu=$ac_compiler_gnu 11486 11487fi 11488{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 11489$as_echo "$ac_cv_c_compiler_gnu" >&6; } 11490if test $ac_compiler_gnu = yes; then 11491 GCC=yes 11492else 11493 GCC= 11494fi 11495ac_test_CFLAGS=${CFLAGS+set} 11496ac_save_CFLAGS=$CFLAGS 11497{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 11498$as_echo_n "checking whether $CC accepts -g... " >&6; } 11499if test "${ac_cv_prog_cc_g+set}" = set; then 11500 $as_echo_n "(cached) " >&6 11501else 11502 ac_save_c_werror_flag=$ac_c_werror_flag 11503 ac_c_werror_flag=yes 11504 ac_cv_prog_cc_g=no 11505 CFLAGS="-g" 11506 cat >conftest.$ac_ext <<_ACEOF 11507/* confdefs.h. */ 11508_ACEOF 11509cat confdefs.h >>conftest.$ac_ext 11510cat >>conftest.$ac_ext <<_ACEOF 11511/* end confdefs.h. */ 11512 11513int 11514main () 11515{ 11516 11517 ; 11518 return 0; 11519} 11520_ACEOF 11521rm -f conftest.$ac_objext 11522if { (ac_try="$ac_compile" 11523case "(($ac_try" in 11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11525 *) ac_try_echo=$ac_try;; 11526esac 11527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11528$as_echo "$ac_try_echo") >&5 11529 (eval "$ac_compile") 2>conftest.er1 11530 ac_status=$? 11531 grep -v '^ *+' conftest.er1 >conftest.err 11532 rm -f conftest.er1 11533 cat conftest.err >&5 11534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11535 (exit $ac_status); } && { 11536 test -z "$ac_c_werror_flag" || 11537 test ! -s conftest.err 11538 } && test -s conftest.$ac_objext; then 11539 ac_cv_prog_cc_g=yes 11540else 11541 $as_echo "$as_me: failed program was:" >&5 11542sed 's/^/| /' conftest.$ac_ext >&5 11543 11544 CFLAGS="" 11545 cat >conftest.$ac_ext <<_ACEOF 11546/* confdefs.h. */ 11547_ACEOF 11548cat confdefs.h >>conftest.$ac_ext 11549cat >>conftest.$ac_ext <<_ACEOF 11550/* end confdefs.h. */ 11551 11552int 11553main () 11554{ 11555 11556 ; 11557 return 0; 11558} 11559_ACEOF 11560rm -f conftest.$ac_objext 11561if { (ac_try="$ac_compile" 11562case "(($ac_try" in 11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11564 *) ac_try_echo=$ac_try;; 11565esac 11566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11567$as_echo "$ac_try_echo") >&5 11568 (eval "$ac_compile") 2>conftest.er1 11569 ac_status=$? 11570 grep -v '^ *+' conftest.er1 >conftest.err 11571 rm -f conftest.er1 11572 cat conftest.err >&5 11573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11574 (exit $ac_status); } && { 11575 test -z "$ac_c_werror_flag" || 11576 test ! -s conftest.err 11577 } && test -s conftest.$ac_objext; then 11578 : 11579else 11580 $as_echo "$as_me: failed program was:" >&5 11581sed 's/^/| /' conftest.$ac_ext >&5 11582 11583 ac_c_werror_flag=$ac_save_c_werror_flag 11584 CFLAGS="-g" 11585 cat >conftest.$ac_ext <<_ACEOF 11586/* confdefs.h. */ 11587_ACEOF 11588cat confdefs.h >>conftest.$ac_ext 11589cat >>conftest.$ac_ext <<_ACEOF 11590/* end confdefs.h. */ 11591 11592int 11593main () 11594{ 11595 11596 ; 11597 return 0; 11598} 11599_ACEOF 11600rm -f conftest.$ac_objext 11601if { (ac_try="$ac_compile" 11602case "(($ac_try" in 11603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11604 *) ac_try_echo=$ac_try;; 11605esac 11606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11607$as_echo "$ac_try_echo") >&5 11608 (eval "$ac_compile") 2>conftest.er1 11609 ac_status=$? 11610 grep -v '^ *+' conftest.er1 >conftest.err 11611 rm -f conftest.er1 11612 cat conftest.err >&5 11613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11614 (exit $ac_status); } && { 11615 test -z "$ac_c_werror_flag" || 11616 test ! -s conftest.err 11617 } && test -s conftest.$ac_objext; then 11618 ac_cv_prog_cc_g=yes 11619else 11620 $as_echo "$as_me: failed program was:" >&5 11621sed 's/^/| /' conftest.$ac_ext >&5 11622 11623 11624fi 11625 11626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11627fi 11628 11629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11630fi 11631 11632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11633 ac_c_werror_flag=$ac_save_c_werror_flag 11634fi 11635{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 11636$as_echo "$ac_cv_prog_cc_g" >&6; } 11637if test "$ac_test_CFLAGS" = set; then 11638 CFLAGS=$ac_save_CFLAGS 11639elif test $ac_cv_prog_cc_g = yes; then 11640 if test "$GCC" = yes; then 11641 CFLAGS="-g -O2" 11642 else 11643 CFLAGS="-g" 11644 fi 11645else 11646 if test "$GCC" = yes; then 11647 CFLAGS="-O2" 11648 else 11649 CFLAGS= 11650 fi 11651fi 11652{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 11653$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 11654if test "${ac_cv_prog_cc_c89+set}" = set; then 11655 $as_echo_n "(cached) " >&6 11656else 11657 ac_cv_prog_cc_c89=no 11658ac_save_CC=$CC 11659cat >conftest.$ac_ext <<_ACEOF 11660/* confdefs.h. */ 11661_ACEOF 11662cat confdefs.h >>conftest.$ac_ext 11663cat >>conftest.$ac_ext <<_ACEOF 11664/* end confdefs.h. */ 11665#include <stdarg.h> 11666#include <stdio.h> 11667#include <sys/types.h> 11668#include <sys/stat.h> 11669/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 11670struct buf { int x; }; 11671FILE * (*rcsopen) (struct buf *, struct stat *, int); 11672static char *e (p, i) 11673 char **p; 11674 int i; 11675{ 11676 return p[i]; 11677} 11678static char *f (char * (*g) (char **, int), char **p, ...) 11679{ 11680 char *s; 11681 va_list v; 11682 va_start (v,p); 11683 s = g (p, va_arg (v,int)); 11684 va_end (v); 11685 return s; 11686} 11687 11688/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 11689 function prototypes and stuff, but not '\xHH' hex character constants. 11690 These don't provoke an error unfortunately, instead are silently treated 11691 as 'x'. The following induces an error, until -std is added to get 11692 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 11693 array size at least. It's necessary to write '\x00'==0 to get something 11694 that's true only with -std. */ 11695int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 11696 11697/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 11698 inside strings and character constants. */ 11699#define FOO(x) 'x' 11700int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 11701 11702int test (int i, double x); 11703struct s1 {int (*f) (int a);}; 11704struct s2 {int (*f) (double a);}; 11705int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 11706int argc; 11707char **argv; 11708int 11709main () 11710{ 11711return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 11712 ; 11713 return 0; 11714} 11715_ACEOF 11716for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 11717 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 11718do 11719 CC="$ac_save_CC $ac_arg" 11720 rm -f conftest.$ac_objext 11721if { (ac_try="$ac_compile" 11722case "(($ac_try" in 11723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11724 *) ac_try_echo=$ac_try;; 11725esac 11726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11727$as_echo "$ac_try_echo") >&5 11728 (eval "$ac_compile") 2>conftest.er1 11729 ac_status=$? 11730 grep -v '^ *+' conftest.er1 >conftest.err 11731 rm -f conftest.er1 11732 cat conftest.err >&5 11733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11734 (exit $ac_status); } && { 11735 test -z "$ac_c_werror_flag" || 11736 test ! -s conftest.err 11737 } && test -s conftest.$ac_objext; then 11738 ac_cv_prog_cc_c89=$ac_arg 11739else 11740 $as_echo "$as_me: failed program was:" >&5 11741sed 's/^/| /' conftest.$ac_ext >&5 11742 11743 11744fi 11745 11746rm -f core conftest.err conftest.$ac_objext 11747 test "x$ac_cv_prog_cc_c89" != "xno" && break 11748done 11749rm -f conftest.$ac_ext 11750CC=$ac_save_CC 11751 11752fi 11753# AC_CACHE_VAL 11754case "x$ac_cv_prog_cc_c89" in 11755 x) 11756 { $as_echo "$as_me:$LINENO: result: none needed" >&5 11757$as_echo "none needed" >&6; } ;; 11758 xno) 11759 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 11760$as_echo "unsupported" >&6; } ;; 11761 *) 11762 CC="$CC $ac_cv_prog_cc_c89" 11763 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 11764$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 11765esac 11766 11767 11768ac_ext=c 11769ac_cpp='$CPP $CPPFLAGS' 11770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11772ac_compiler_gnu=$ac_cv_c_compiler_gnu 11773 11774depcc="$CC" am_compiler_list= 11775 11776{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 11777$as_echo_n "checking dependency style of $depcc... " >&6; } 11778if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 11779 $as_echo_n "(cached) " >&6 11780else 11781 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11782 # We make a subdir and do the tests there. Otherwise we can end up 11783 # making bogus files that we don't know about and never remove. For 11784 # instance it was reported that on HP-UX the gcc test will end up 11785 # making a dummy file named `D' -- because `-MD' means `put the output 11786 # in D'. 11787 mkdir conftest.dir 11788 # Copy depcomp to subdir because otherwise we won't find it if we're 11789 # using a relative directory. 11790 cp "$am_depcomp" conftest.dir 11791 cd conftest.dir 11792 # We will build objects and dependencies in a subdirectory because 11793 # it helps to detect inapplicable dependency modes. For instance 11794 # both Tru64's cc and ICC support -MD to output dependencies as a 11795 # side effect of compilation, but ICC will put the dependencies in 11796 # the current directory while Tru64 will put them in the object 11797 # directory. 11798 mkdir sub 11799 11800 am_cv_CC_dependencies_compiler_type=none 11801 if test "$am_compiler_list" = ""; then 11802 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11803 fi 11804 for depmode in $am_compiler_list; do 11805 # Setup a source with many dependencies, because some compilers 11806 # like to wrap large dependency lists on column 80 (with \), and 11807 # we should not choose a depcomp mode which is confused by this. 11808 # 11809 # We need to recreate these files for each test, as the compiler may 11810 # overwrite some of them when testing with obscure command lines. 11811 # This happens at least with the AIX C compiler. 11812 : > sub/conftest.c 11813 for i in 1 2 3 4 5 6; do 11814 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11815 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 11816 # Solaris 8's {/usr,}/bin/sh. 11817 touch sub/conftst$i.h 11818 done 11819 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11820 11821 case $depmode in 11822 nosideeffect) 11823 # after this tag, mechanisms are not by side-effect, so they'll 11824 # only be used when explicitly requested 11825 if test "x$enable_dependency_tracking" = xyes; then 11826 continue 11827 else 11828 break 11829 fi 11830 ;; 11831 none) break ;; 11832 esac 11833 # We check with `-c' and `-o' for the sake of the "dashmstdout" 11834 # mode. It turns out that the SunPro C++ compiler does not properly 11835 # handle `-M -o', and we need to detect this. 11836 if depmode=$depmode \ 11837 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 11838 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 11839 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 11840 >/dev/null 2>conftest.err && 11841 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 11842 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 11843 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 11844 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 11845 # icc doesn't choke on unknown options, it will just issue warnings 11846 # or remarks (even with -Werror). So we grep stderr for any message 11847 # that says an option was ignored or not supported. 11848 # When given -MP, icc 7.0 and 7.1 complain thusly: 11849 # icc: Command line warning: ignoring option '-M'; no argument required 11850 # The diagnosis changed in icc 8.0: 11851 # icc: Command line remark: option '-MP' not supported 11852 if (grep 'ignoring option' conftest.err || 11853 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 11854 am_cv_CC_dependencies_compiler_type=$depmode 11855 break 11856 fi 11857 fi 11858 done 11859 11860 cd .. 11861 rm -rf conftest.dir 11862else 11863 am_cv_CC_dependencies_compiler_type=none 11864fi 11865 11866fi 11867{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 11868$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 11869CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 11870 11871 if 11872 test "x$enable_dependency_tracking" != xno \ 11873 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 11874 am__fastdepCC_TRUE= 11875 am__fastdepCC_FALSE='#' 11876else 11877 am__fastdepCC_TRUE='#' 11878 am__fastdepCC_FALSE= 11879fi 11880 11881 11882 11883 11884 11885 11886 11887# Check whether --with-xorg-module-dir was given. 11888if test "${with_xorg_module_dir+set}" = set; then 11889 withval=$with_xorg_module_dir; moduledir="$withval" 11890else 11891 moduledir="$libdir/xorg/modules" 11892fi 11893 11894 11895# Checks for extensions 11896 11897 SAVE_CFLAGS="$CFLAGS" 11898 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 11899 cat >conftest.$ac_ext <<_ACEOF 11900/* confdefs.h. */ 11901_ACEOF 11902cat confdefs.h >>conftest.$ac_ext 11903cat >>conftest.$ac_ext <<_ACEOF 11904/* end confdefs.h. */ 11905 11906#include "xorg-server.h" 11907#if !defined RANDR 11908#error RANDR not defined 11909#endif 11910 11911int 11912main () 11913{ 11914 11915 ; 11916 return 0; 11917} 11918_ACEOF 11919rm -f conftest.$ac_objext 11920if { (ac_try="$ac_compile" 11921case "(($ac_try" in 11922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11923 *) ac_try_echo=$ac_try;; 11924esac 11925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11926$as_echo "$ac_try_echo") >&5 11927 (eval "$ac_compile") 2>conftest.er1 11928 ac_status=$? 11929 grep -v '^ *+' conftest.er1 >conftest.err 11930 rm -f conftest.er1 11931 cat conftest.err >&5 11932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11933 (exit $ac_status); } && { 11934 test -z "$ac_c_werror_flag" || 11935 test ! -s conftest.err 11936 } && test -s conftest.$ac_objext; then 11937 _EXT_CHECK=yes 11938else 11939 $as_echo "$as_me: failed program was:" >&5 11940sed 's/^/| /' conftest.$ac_ext >&5 11941 11942 _EXT_CHECK=no 11943fi 11944 11945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11946 CFLAGS="$SAVE_CFLAGS" 11947 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5 11948$as_echo_n "checking if RANDR is defined... " >&6; } 11949 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 11950$as_echo "$_EXT_CHECK" >&6; } 11951 if test "$_EXT_CHECK" != no; then 11952 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 11953 fi 11954 11955 11956 SAVE_CFLAGS="$CFLAGS" 11957 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 11958 cat >conftest.$ac_ext <<_ACEOF 11959/* confdefs.h. */ 11960_ACEOF 11961cat confdefs.h >>conftest.$ac_ext 11962cat >>conftest.$ac_ext <<_ACEOF 11963/* end confdefs.h. */ 11964 11965#include "xorg-server.h" 11966#if !defined RENDER 11967#error RENDER not defined 11968#endif 11969 11970int 11971main () 11972{ 11973 11974 ; 11975 return 0; 11976} 11977_ACEOF 11978rm -f conftest.$ac_objext 11979if { (ac_try="$ac_compile" 11980case "(($ac_try" in 11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11982 *) ac_try_echo=$ac_try;; 11983esac 11984eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11985$as_echo "$ac_try_echo") >&5 11986 (eval "$ac_compile") 2>conftest.er1 11987 ac_status=$? 11988 grep -v '^ *+' conftest.er1 >conftest.err 11989 rm -f conftest.er1 11990 cat conftest.err >&5 11991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11992 (exit $ac_status); } && { 11993 test -z "$ac_c_werror_flag" || 11994 test ! -s conftest.err 11995 } && test -s conftest.$ac_objext; then 11996 _EXT_CHECK=yes 11997else 11998 $as_echo "$as_me: failed program was:" >&5 11999sed 's/^/| /' conftest.$ac_ext >&5 12000 12001 _EXT_CHECK=no 12002fi 12003 12004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12005 CFLAGS="$SAVE_CFLAGS" 12006 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5 12007$as_echo_n "checking if RENDER is defined... " >&6; } 12008 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12009$as_echo "$_EXT_CHECK" >&6; } 12010 if test "$_EXT_CHECK" != no; then 12011 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 12012 fi 12013 12014 12015 SAVE_CFLAGS="$CFLAGS" 12016 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12017 cat >conftest.$ac_ext <<_ACEOF 12018/* confdefs.h. */ 12019_ACEOF 12020cat confdefs.h >>conftest.$ac_ext 12021cat >>conftest.$ac_ext <<_ACEOF 12022/* end confdefs.h. */ 12023 12024#include "xorg-server.h" 12025#if !defined XV 12026#error XV not defined 12027#endif 12028 12029int 12030main () 12031{ 12032 12033 ; 12034 return 0; 12035} 12036_ACEOF 12037rm -f conftest.$ac_objext 12038if { (ac_try="$ac_compile" 12039case "(($ac_try" in 12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12041 *) ac_try_echo=$ac_try;; 12042esac 12043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12044$as_echo "$ac_try_echo") >&5 12045 (eval "$ac_compile") 2>conftest.er1 12046 ac_status=$? 12047 grep -v '^ *+' conftest.er1 >conftest.err 12048 rm -f conftest.er1 12049 cat conftest.err >&5 12050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12051 (exit $ac_status); } && { 12052 test -z "$ac_c_werror_flag" || 12053 test ! -s conftest.err 12054 } && test -s conftest.$ac_objext; then 12055 _EXT_CHECK=yes 12056else 12057 $as_echo "$as_me: failed program was:" >&5 12058sed 's/^/| /' conftest.$ac_ext >&5 12059 12060 _EXT_CHECK=no 12061fi 12062 12063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12064 CFLAGS="$SAVE_CFLAGS" 12065 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5 12066$as_echo_n "checking if XV is defined... " >&6; } 12067 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12068$as_echo "$_EXT_CHECK" >&6; } 12069 if test "$_EXT_CHECK" != no; then 12070 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 12071 fi 12072 12073 12074 SAVE_CFLAGS="$CFLAGS" 12075 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12076 cat >conftest.$ac_ext <<_ACEOF 12077/* confdefs.h. */ 12078_ACEOF 12079cat confdefs.h >>conftest.$ac_ext 12080cat >>conftest.$ac_ext <<_ACEOF 12081/* end confdefs.h. */ 12082 12083#include "xorg-server.h" 12084#if !defined DPMSExtension 12085#error DPMSExtension not defined 12086#endif 12087 12088int 12089main () 12090{ 12091 12092 ; 12093 return 0; 12094} 12095_ACEOF 12096rm -f conftest.$ac_objext 12097if { (ac_try="$ac_compile" 12098case "(($ac_try" in 12099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12100 *) ac_try_echo=$ac_try;; 12101esac 12102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12103$as_echo "$ac_try_echo") >&5 12104 (eval "$ac_compile") 2>conftest.er1 12105 ac_status=$? 12106 grep -v '^ *+' conftest.er1 >conftest.err 12107 rm -f conftest.er1 12108 cat conftest.err >&5 12109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12110 (exit $ac_status); } && { 12111 test -z "$ac_c_werror_flag" || 12112 test ! -s conftest.err 12113 } && test -s conftest.$ac_objext; then 12114 _EXT_CHECK=yes 12115else 12116 $as_echo "$as_me: failed program was:" >&5 12117sed 's/^/| /' conftest.$ac_ext >&5 12118 12119 _EXT_CHECK=no 12120fi 12121 12122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12123 CFLAGS="$SAVE_CFLAGS" 12124 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5 12125$as_echo_n "checking if DPMSExtension is defined... " >&6; } 12126 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12127$as_echo "$_EXT_CHECK" >&6; } 12128 if test "$_EXT_CHECK" != no; then 12129 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 12130 fi 12131 12132 12133# Checks for pkg-config packages 12134 12135 12136if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12137 if test -n "$ac_tool_prefix"; then 12138 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12139set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12140{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12141$as_echo_n "checking for $ac_word... " >&6; } 12142if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 12143 $as_echo_n "(cached) " >&6 12144else 12145 case $PKG_CONFIG in 12146 [\\/]* | ?:[\\/]*) 12147 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12148 ;; 12149 *) 12150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12151for as_dir in $PATH 12152do 12153 IFS=$as_save_IFS 12154 test -z "$as_dir" && as_dir=. 12155 for ac_exec_ext in '' $ac_executable_extensions; do 12156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12157 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12158 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12159 break 2 12160 fi 12161done 12162done 12163IFS=$as_save_IFS 12164 12165 ;; 12166esac 12167fi 12168PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12169if test -n "$PKG_CONFIG"; then 12170 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 12171$as_echo "$PKG_CONFIG" >&6; } 12172else 12173 { $as_echo "$as_me:$LINENO: result: no" >&5 12174$as_echo "no" >&6; } 12175fi 12176 12177 12178fi 12179if test -z "$ac_cv_path_PKG_CONFIG"; then 12180 ac_pt_PKG_CONFIG=$PKG_CONFIG 12181 # Extract the first word of "pkg-config", so it can be a program name with args. 12182set dummy pkg-config; ac_word=$2 12183{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12184$as_echo_n "checking for $ac_word... " >&6; } 12185if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 12186 $as_echo_n "(cached) " >&6 12187else 12188 case $ac_pt_PKG_CONFIG in 12189 [\\/]* | ?:[\\/]*) 12190 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12191 ;; 12192 *) 12193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12194for as_dir in $PATH 12195do 12196 IFS=$as_save_IFS 12197 test -z "$as_dir" && as_dir=. 12198 for ac_exec_ext in '' $ac_executable_extensions; do 12199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12200 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12201 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12202 break 2 12203 fi 12204done 12205done 12206IFS=$as_save_IFS 12207 12208 ;; 12209esac 12210fi 12211ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12212if test -n "$ac_pt_PKG_CONFIG"; then 12213 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 12214$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12215else 12216 { $as_echo "$as_me:$LINENO: result: no" >&5 12217$as_echo "no" >&6; } 12218fi 12219 12220 if test "x$ac_pt_PKG_CONFIG" = x; then 12221 PKG_CONFIG="" 12222 else 12223 case $cross_compiling:$ac_tool_warned in 12224yes:) 12225{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 12226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12227ac_tool_warned=yes ;; 12228esac 12229 PKG_CONFIG=$ac_pt_PKG_CONFIG 12230 fi 12231else 12232 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12233fi 12234 12235fi 12236if test -n "$PKG_CONFIG"; then 12237 _pkg_min_version=0.9.0 12238 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 12239$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12240 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12241 { $as_echo "$as_me:$LINENO: result: yes" >&5 12242$as_echo "yes" >&6; } 12243 else 12244 { $as_echo "$as_me:$LINENO: result: no" >&5 12245$as_echo "no" >&6; } 12246 PKG_CONFIG="" 12247 fi 12248 12249fi 12250 12251pkg_failed=no 12252{ $as_echo "$as_me:$LINENO: checking for XORG" >&5 12253$as_echo_n "checking for XORG... " >&6; } 12254 12255if test -n "$XORG_CFLAGS"; then 12256 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 12257 elif test -n "$PKG_CONFIG"; then 12258 if test -n "$PKG_CONFIG" && \ 12259 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 12260 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 12261 ac_status=$? 12262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12263 (exit $ac_status); }; then 12264 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 12265else 12266 pkg_failed=yes 12267fi 12268 else 12269 pkg_failed=untried 12270fi 12271if test -n "$XORG_LIBS"; then 12272 pkg_cv_XORG_LIBS="$XORG_LIBS" 12273 elif test -n "$PKG_CONFIG"; then 12274 if test -n "$PKG_CONFIG" && \ 12275 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 12276 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 12277 ac_status=$? 12278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12279 (exit $ac_status); }; then 12280 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 12281else 12282 pkg_failed=yes 12283fi 12284 else 12285 pkg_failed=untried 12286fi 12287 12288 12289 12290if test $pkg_failed = yes; then 12291 12292if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12293 _pkg_short_errors_supported=yes 12294else 12295 _pkg_short_errors_supported=no 12296fi 12297 if test $_pkg_short_errors_supported = yes; then 12298 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 12299 else 12300 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 12301 fi 12302 # Put the nasty error message in config.log where it belongs 12303 echo "$XORG_PKG_ERRORS" >&5 12304 12305 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 12306 12307$XORG_PKG_ERRORS 12308 12309Consider adjusting the PKG_CONFIG_PATH environment variable if you 12310installed software in a non-standard prefix. 12311 12312Alternatively, you may set the environment variables XORG_CFLAGS 12313and XORG_LIBS to avoid the need to call pkg-config. 12314See the pkg-config man page for more details. 12315" >&5 12316$as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 12317 12318$XORG_PKG_ERRORS 12319 12320Consider adjusting the PKG_CONFIG_PATH environment variable if you 12321installed software in a non-standard prefix. 12322 12323Alternatively, you may set the environment variables XORG_CFLAGS 12324and XORG_LIBS to avoid the need to call pkg-config. 12325See the pkg-config man page for more details. 12326" >&2;} 12327 { (exit 1); exit 1; }; } 12328elif test $pkg_failed = untried; then 12329 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 12330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12331{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 12332is in your PATH or set the PKG_CONFIG environment variable to the full 12333path to pkg-config. 12334 12335Alternatively, you may set the environment variables XORG_CFLAGS 12336and XORG_LIBS to avoid the need to call pkg-config. 12337See the pkg-config man page for more details. 12338 12339To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12340See \`config.log' for more details." >&5 12341$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 12342is in your PATH or set the PKG_CONFIG environment variable to the full 12343path to pkg-config. 12344 12345Alternatively, you may set the environment variables XORG_CFLAGS 12346and XORG_LIBS to avoid the need to call pkg-config. 12347See the pkg-config man page for more details. 12348 12349To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12350See \`config.log' for more details." >&2;} 12351 { (exit 1); exit 1; }; }; } 12352else 12353 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 12354 XORG_LIBS=$pkg_cv_XORG_LIBS 12355 { $as_echo "$as_me:$LINENO: result: yes" >&5 12356$as_echo "yes" >&6; } 12357 : 12358fi 12359sdkdir=$(pkg-config --variable=sdkdir xorg-server) 12360 12361# Checks for libraries. 12362SAVE_CPPFLAGS="$CPPFLAGS" 12363CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 12364{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5 12365$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; } 12366if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then 12367 $as_echo_n "(cached) " >&6 12368else 12369 cat >conftest.$ac_ext <<_ACEOF 12370/* confdefs.h. */ 12371_ACEOF 12372cat confdefs.h >>conftest.$ac_ext 12373cat >>conftest.$ac_ext <<_ACEOF 12374/* end confdefs.h. */ 12375#include "xorg-server.h" 12376 12377int 12378main () 12379{ 12380#ifndef XSERVER_LIBPCIACCESS 12381 (void) XSERVER_LIBPCIACCESS; 12382#endif 12383 12384 ; 12385 return 0; 12386} 12387_ACEOF 12388rm -f conftest.$ac_objext 12389if { (ac_try="$ac_compile" 12390case "(($ac_try" in 12391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12392 *) ac_try_echo=$ac_try;; 12393esac 12394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12395$as_echo "$ac_try_echo") >&5 12396 (eval "$ac_compile") 2>conftest.er1 12397 ac_status=$? 12398 grep -v '^ *+' conftest.er1 >conftest.err 12399 rm -f conftest.er1 12400 cat conftest.err >&5 12401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12402 (exit $ac_status); } && { 12403 test -z "$ac_c_werror_flag" || 12404 test ! -s conftest.err 12405 } && test -s conftest.$ac_objext; then 12406 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes 12407else 12408 $as_echo "$as_me: failed program was:" >&5 12409sed 's/^/| /' conftest.$ac_ext >&5 12410 12411 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no 12412fi 12413 12414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12415fi 12416{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5 12417$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; } 12418if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then 12419 XSERVER_LIBPCIACCESS=yes 12420else 12421 XSERVER_LIBPCIACCESS=no 12422fi 12423 12424CPPFLAGS="$SAVE_CPPFLAGS" 12425 12426# Checks for header files. 12427{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 12428$as_echo_n "checking for ANSI C header files... " >&6; } 12429if test "${ac_cv_header_stdc+set}" = set; then 12430 $as_echo_n "(cached) " >&6 12431else 12432 cat >conftest.$ac_ext <<_ACEOF 12433/* confdefs.h. */ 12434_ACEOF 12435cat confdefs.h >>conftest.$ac_ext 12436cat >>conftest.$ac_ext <<_ACEOF 12437/* end confdefs.h. */ 12438#include <stdlib.h> 12439#include <stdarg.h> 12440#include <string.h> 12441#include <float.h> 12442 12443int 12444main () 12445{ 12446 12447 ; 12448 return 0; 12449} 12450_ACEOF 12451rm -f conftest.$ac_objext 12452if { (ac_try="$ac_compile" 12453case "(($ac_try" in 12454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12455 *) ac_try_echo=$ac_try;; 12456esac 12457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12458$as_echo "$ac_try_echo") >&5 12459 (eval "$ac_compile") 2>conftest.er1 12460 ac_status=$? 12461 grep -v '^ *+' conftest.er1 >conftest.err 12462 rm -f conftest.er1 12463 cat conftest.err >&5 12464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12465 (exit $ac_status); } && { 12466 test -z "$ac_c_werror_flag" || 12467 test ! -s conftest.err 12468 } && test -s conftest.$ac_objext; then 12469 ac_cv_header_stdc=yes 12470else 12471 $as_echo "$as_me: failed program was:" >&5 12472sed 's/^/| /' conftest.$ac_ext >&5 12473 12474 ac_cv_header_stdc=no 12475fi 12476 12477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12478 12479if test $ac_cv_header_stdc = yes; then 12480 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12481 cat >conftest.$ac_ext <<_ACEOF 12482/* confdefs.h. */ 12483_ACEOF 12484cat confdefs.h >>conftest.$ac_ext 12485cat >>conftest.$ac_ext <<_ACEOF 12486/* end confdefs.h. */ 12487#include <string.h> 12488 12489_ACEOF 12490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12491 $EGREP "memchr" >/dev/null 2>&1; then 12492 : 12493else 12494 ac_cv_header_stdc=no 12495fi 12496rm -f conftest* 12497 12498fi 12499 12500if test $ac_cv_header_stdc = yes; then 12501 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12502 cat >conftest.$ac_ext <<_ACEOF 12503/* confdefs.h. */ 12504_ACEOF 12505cat confdefs.h >>conftest.$ac_ext 12506cat >>conftest.$ac_ext <<_ACEOF 12507/* end confdefs.h. */ 12508#include <stdlib.h> 12509 12510_ACEOF 12511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12512 $EGREP "free" >/dev/null 2>&1; then 12513 : 12514else 12515 ac_cv_header_stdc=no 12516fi 12517rm -f conftest* 12518 12519fi 12520 12521if test $ac_cv_header_stdc = yes; then 12522 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12523 if test "$cross_compiling" = yes; then 12524 : 12525else 12526 cat >conftest.$ac_ext <<_ACEOF 12527/* confdefs.h. */ 12528_ACEOF 12529cat confdefs.h >>conftest.$ac_ext 12530cat >>conftest.$ac_ext <<_ACEOF 12531/* end confdefs.h. */ 12532#include <ctype.h> 12533#include <stdlib.h> 12534#if ((' ' & 0x0FF) == 0x020) 12535# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12536# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12537#else 12538# define ISLOWER(c) \ 12539 (('a' <= (c) && (c) <= 'i') \ 12540 || ('j' <= (c) && (c) <= 'r') \ 12541 || ('s' <= (c) && (c) <= 'z')) 12542# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12543#endif 12544 12545#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12546int 12547main () 12548{ 12549 int i; 12550 for (i = 0; i < 256; i++) 12551 if (XOR (islower (i), ISLOWER (i)) 12552 || toupper (i) != TOUPPER (i)) 12553 return 2; 12554 return 0; 12555} 12556_ACEOF 12557rm -f conftest$ac_exeext 12558if { (ac_try="$ac_link" 12559case "(($ac_try" in 12560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12561 *) ac_try_echo=$ac_try;; 12562esac 12563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12564$as_echo "$ac_try_echo") >&5 12565 (eval "$ac_link") 2>&5 12566 ac_status=$? 12567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12569 { (case "(($ac_try" in 12570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12571 *) ac_try_echo=$ac_try;; 12572esac 12573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12574$as_echo "$ac_try_echo") >&5 12575 (eval "$ac_try") 2>&5 12576 ac_status=$? 12577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12578 (exit $ac_status); }; }; then 12579 : 12580else 12581 $as_echo "$as_me: program exited with status $ac_status" >&5 12582$as_echo "$as_me: failed program was:" >&5 12583sed 's/^/| /' conftest.$ac_ext >&5 12584 12585( exit $ac_status ) 12586ac_cv_header_stdc=no 12587fi 12588rm -rf conftest.dSYM 12589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12590fi 12591 12592 12593fi 12594fi 12595{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 12596$as_echo "$ac_cv_header_stdc" >&6; } 12597if test $ac_cv_header_stdc = yes; then 12598 12599cat >>confdefs.h <<\_ACEOF 12600#define STDC_HEADERS 1 12601_ACEOF 12602 12603fi 12604 12605 12606if test "x$XSERVER_LIBPCIACCESS" = xyes; then 12607 12608pkg_failed=no 12609{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5 12610$as_echo_n "checking for PCIACCESS... " >&6; } 12611 12612if test -n "$PCIACCESS_CFLAGS"; then 12613 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 12614 elif test -n "$PKG_CONFIG"; then 12615 if test -n "$PKG_CONFIG" && \ 12616 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 12617 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 12618 ac_status=$? 12619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12620 (exit $ac_status); }; then 12621 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 12622else 12623 pkg_failed=yes 12624fi 12625 else 12626 pkg_failed=untried 12627fi 12628if test -n "$PCIACCESS_LIBS"; then 12629 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 12630 elif test -n "$PKG_CONFIG"; then 12631 if test -n "$PKG_CONFIG" && \ 12632 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 12633 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 12634 ac_status=$? 12635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12636 (exit $ac_status); }; then 12637 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 12638else 12639 pkg_failed=yes 12640fi 12641 else 12642 pkg_failed=untried 12643fi 12644 12645 12646 12647if test $pkg_failed = yes; then 12648 12649if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12650 _pkg_short_errors_supported=yes 12651else 12652 _pkg_short_errors_supported=no 12653fi 12654 if test $_pkg_short_errors_supported = yes; then 12655 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1` 12656 else 12657 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1` 12658 fi 12659 # Put the nasty error message in config.log where it belongs 12660 echo "$PCIACCESS_PKG_ERRORS" >&5 12661 12662 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met: 12663 12664$PCIACCESS_PKG_ERRORS 12665 12666Consider adjusting the PKG_CONFIG_PATH environment variable if you 12667installed software in a non-standard prefix. 12668 12669Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12670and PCIACCESS_LIBS to avoid the need to call pkg-config. 12671See the pkg-config man page for more details. 12672" >&5 12673$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met: 12674 12675$PCIACCESS_PKG_ERRORS 12676 12677Consider adjusting the PKG_CONFIG_PATH environment variable if you 12678installed software in a non-standard prefix. 12679 12680Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12681and PCIACCESS_LIBS to avoid the need to call pkg-config. 12682See the pkg-config man page for more details. 12683" >&2;} 12684 { (exit 1); exit 1; }; } 12685elif test $pkg_failed = untried; then 12686 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 12687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12688{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 12689is in your PATH or set the PKG_CONFIG environment variable to the full 12690path to pkg-config. 12691 12692Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12693and PCIACCESS_LIBS to avoid the need to call pkg-config. 12694See the pkg-config man page for more details. 12695 12696To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12697See \`config.log' for more details." >&5 12698$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 12699is in your PATH or set the PKG_CONFIG environment variable to the full 12700path to pkg-config. 12701 12702Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12703and PCIACCESS_LIBS to avoid the need to call pkg-config. 12704See the pkg-config man page for more details. 12705 12706To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12707See \`config.log' for more details." >&2;} 12708 { (exit 1); exit 1; }; }; } 12709else 12710 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 12711 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 12712 { $as_echo "$as_me:$LINENO: result: yes" >&5 12713$as_echo "yes" >&6; } 12714 : 12715fi 12716 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 12717fi 12718 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 12719 XSERVER_LIBPCIACCESS_TRUE= 12720 XSERVER_LIBPCIACCESS_FALSE='#' 12721else 12722 XSERVER_LIBPCIACCESS_TRUE='#' 12723 XSERVER_LIBPCIACCESS_FALSE= 12724fi 12725 12726 12727 12728 12729 12730 12731DRIVER_NAME=s3virge 12732 12733 12734 12735 12736 12737if test x$APP_MAN_SUFFIX = x ; then 12738 APP_MAN_SUFFIX=1 12739fi 12740if test x$APP_MAN_DIR = x ; then 12741 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 12742fi 12743 12744if test x$LIB_MAN_SUFFIX = x ; then 12745 LIB_MAN_SUFFIX=3 12746fi 12747if test x$LIB_MAN_DIR = x ; then 12748 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 12749fi 12750 12751if test x$FILE_MAN_SUFFIX = x ; then 12752 case $host_os in 12753 solaris*) FILE_MAN_SUFFIX=4 ;; 12754 *) FILE_MAN_SUFFIX=5 ;; 12755 esac 12756fi 12757if test x$FILE_MAN_DIR = x ; then 12758 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 12759fi 12760 12761if test x$MISC_MAN_SUFFIX = x ; then 12762 case $host_os in 12763 solaris*) MISC_MAN_SUFFIX=5 ;; 12764 *) MISC_MAN_SUFFIX=7 ;; 12765 esac 12766fi 12767if test x$MISC_MAN_DIR = x ; then 12768 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 12769fi 12770 12771if test x$DRIVER_MAN_SUFFIX = x ; then 12772 case $host_os in 12773 solaris*) DRIVER_MAN_SUFFIX=7 ;; 12774 *) DRIVER_MAN_SUFFIX=4 ;; 12775 esac 12776fi 12777if test x$DRIVER_MAN_DIR = x ; then 12778 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 12779fi 12780 12781if test x$ADMIN_MAN_SUFFIX = x ; then 12782 case $host_os in 12783 solaris*) ADMIN_MAN_SUFFIX=1m ;; 12784 *) ADMIN_MAN_SUFFIX=8 ;; 12785 esac 12786fi 12787if test x$ADMIN_MAN_DIR = x ; then 12788 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 12789fi 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807# Check whether --with-release-version was given. 12808if test "${with_release_version+set}" = set; then 12809 withval=$with_release_version; RELEASE_VERSION="$withval" 12810else 12811 RELEASE_VERSION="" 12812fi 12813 12814 if test "x$RELEASE_VERSION" != "x"; then 12815 PACKAGE="$PACKAGE-$RELEASE_VERSION" 12816 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 12817 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 12818$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 12819 fi 12820 12821cat >>confdefs.h <<_ACEOF 12822#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 12823_ACEOF 12824 12825 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 12826 if test "x$PVM" = "x"; then 12827 PVM="0" 12828 fi 12829 12830cat >>confdefs.h <<_ACEOF 12831#define PACKAGE_VERSION_MINOR $PVM 12832_ACEOF 12833 12834 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 12835 if test "x$PVP" = "x"; then 12836 PVP="0" 12837 fi 12838 12839cat >>confdefs.h <<_ACEOF 12840#define PACKAGE_VERSION_PATCHLEVEL $PVP 12841_ACEOF 12842 12843 12844 12845 12846if test x$XORG_SGML_PATH = x ; then 12847 XORG_SGML_PATH=$prefix/share/sgml 12848fi 12849HAVE_DEFS_ENT= 12850 12851if test x"$cross_compiling" = x"yes" ; then 12852 HAVE_DEFS_ENT=no 12853else 12854 as_ac_File=`$as_echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh` 12855{ $as_echo "$as_me:$LINENO: checking for $XORG_SGML_PATH/X11/defs.ent" >&5 12856$as_echo_n "checking for $XORG_SGML_PATH/X11/defs.ent... " >&6; } 12857if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 12858 $as_echo_n "(cached) " >&6 12859else 12860 test "$cross_compiling" = yes && 12861 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 12862$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 12863 { (exit 1); exit 1; }; } 12864if test -r "$XORG_SGML_PATH/X11/defs.ent"; then 12865 eval "$as_ac_File=yes" 12866else 12867 eval "$as_ac_File=no" 12868fi 12869fi 12870ac_res=`eval 'as_val=${'$as_ac_File'} 12871 $as_echo "$as_val"'` 12872 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12873$as_echo "$ac_res" >&6; } 12874as_val=`eval 'as_val=${'$as_ac_File'} 12875 $as_echo "$as_val"'` 12876 if test "x$as_val" = x""yes; then 12877 HAVE_DEFS_ENT=yes 12878fi 12879 12880fi 12881 12882# Extract the first word of "linuxdoc", so it can be a program name with args. 12883set dummy linuxdoc; ac_word=$2 12884{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12885$as_echo_n "checking for $ac_word... " >&6; } 12886if test "${ac_cv_path_LINUXDOC+set}" = set; then 12887 $as_echo_n "(cached) " >&6 12888else 12889 case $LINUXDOC in 12890 [\\/]* | ?:[\\/]*) 12891 ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path. 12892 ;; 12893 *) 12894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12895for as_dir in $PATH 12896do 12897 IFS=$as_save_IFS 12898 test -z "$as_dir" && as_dir=. 12899 for ac_exec_ext in '' $ac_executable_extensions; do 12900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12901 ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext" 12902 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12903 break 2 12904 fi 12905done 12906done 12907IFS=$as_save_IFS 12908 12909 ;; 12910esac 12911fi 12912LINUXDOC=$ac_cv_path_LINUXDOC 12913if test -n "$LINUXDOC"; then 12914 { $as_echo "$as_me:$LINENO: result: $LINUXDOC" >&5 12915$as_echo "$LINUXDOC" >&6; } 12916else 12917 { $as_echo "$as_me:$LINENO: result: no" >&5 12918$as_echo "no" >&6; } 12919fi 12920 12921 12922# Extract the first word of "ps2pdf", so it can be a program name with args. 12923set dummy ps2pdf; ac_word=$2 12924{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12925$as_echo_n "checking for $ac_word... " >&6; } 12926if test "${ac_cv_path_PS2PDF+set}" = set; then 12927 $as_echo_n "(cached) " >&6 12928else 12929 case $PS2PDF in 12930 [\\/]* | ?:[\\/]*) 12931 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path. 12932 ;; 12933 *) 12934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12935for as_dir in $PATH 12936do 12937 IFS=$as_save_IFS 12938 test -z "$as_dir" && as_dir=. 12939 for ac_exec_ext in '' $ac_executable_extensions; do 12940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12941 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext" 12942 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12943 break 2 12944 fi 12945done 12946done 12947IFS=$as_save_IFS 12948 12949 ;; 12950esac 12951fi 12952PS2PDF=$ac_cv_path_PS2PDF 12953if test -n "$PS2PDF"; then 12954 { $as_echo "$as_me:$LINENO: result: $PS2PDF" >&5 12955$as_echo "$PS2PDF" >&6; } 12956else 12957 { $as_echo "$as_me:$LINENO: result: no" >&5 12958$as_echo "no" >&6; } 12959fi 12960 12961 12962 12963{ $as_echo "$as_me:$LINENO: checking Whether to build documentation" >&5 12964$as_echo_n "checking Whether to build documentation... " >&6; } 12965 12966if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then 12967 BUILDDOC=yes 12968else 12969 BUILDDOC=no 12970fi 12971 12972 if test x$BUILDDOC = xyes; then 12973 BUILD_LINUXDOC_TRUE= 12974 BUILD_LINUXDOC_FALSE='#' 12975else 12976 BUILD_LINUXDOC_TRUE='#' 12977 BUILD_LINUXDOC_FALSE= 12978fi 12979 12980 12981{ $as_echo "$as_me:$LINENO: result: $BUILDDOC" >&5 12982$as_echo "$BUILDDOC" >&6; } 12983 12984{ $as_echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5 12985$as_echo_n "checking Whether to build pdf documentation... " >&6; } 12986 12987if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then 12988 BUILDPDFDOC=yes 12989else 12990 BUILDPDFDOC=no 12991fi 12992 12993 if test x$BUILDPDFDOC = xyes; then 12994 BUILD_PDFDOC_TRUE= 12995 BUILD_PDFDOC_FALSE='#' 12996else 12997 BUILD_PDFDOC_TRUE='#' 12998 BUILD_PDFDOC_FALSE= 12999fi 13000 13001 13002{ $as_echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5 13003$as_echo "$BUILDPDFDOC" >&6; } 13004 13005MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt" 13006MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 13007MAKE_PDF="$PS2PDF" 13008MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0" 13009 13010 13011 13012 13013 13014 13015 13016ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 13017 13018cat >confcache <<\_ACEOF 13019# This file is a shell script that caches the results of configure 13020# tests run on this system so they can be shared between configure 13021# scripts and configure runs, see configure's option --config-cache. 13022# It is not useful on other systems. If it contains results you don't 13023# want to keep, you may remove or edit it. 13024# 13025# config.status only pays attention to the cache file if you give it 13026# the --recheck option to rerun configure. 13027# 13028# `ac_cv_env_foo' variables (set or unset) will be overridden when 13029# loading this file, other *unset* `ac_cv_foo' will be assigned the 13030# following values. 13031 13032_ACEOF 13033 13034# The following way of writing the cache mishandles newlines in values, 13035# but we know of no workaround that is simple, portable, and efficient. 13036# So, we kill variables containing newlines. 13037# Ultrix sh set writes to stderr and can't be redirected directly, 13038# and sets the high bit in the cache file unless we assign to the vars. 13039( 13040 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13041 eval ac_val=\$$ac_var 13042 case $ac_val in #( 13043 *${as_nl}*) 13044 case $ac_var in #( 13045 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 13046$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13047 esac 13048 case $ac_var in #( 13049 _ | IFS | as_nl) ;; #( 13050 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13051 *) $as_unset $ac_var ;; 13052 esac ;; 13053 esac 13054 done 13055 13056 (set) 2>&1 | 13057 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13058 *${as_nl}ac_space=\ *) 13059 # `set' does not quote correctly, so add quotes (double-quote 13060 # substitution turns \\\\ into \\, and sed turns \\ into \). 13061 sed -n \ 13062 "s/'/'\\\\''/g; 13063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13064 ;; #( 13065 *) 13066 # `set' quotes correctly as required by POSIX, so do not add quotes. 13067 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13068 ;; 13069 esac | 13070 sort 13071) | 13072 sed ' 13073 /^ac_cv_env_/b end 13074 t clear 13075 :clear 13076 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13077 t end 13078 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13079 :end' >>confcache 13080if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13081 if test -w "$cache_file"; then 13082 test "x$cache_file" != "x/dev/null" && 13083 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 13084$as_echo "$as_me: updating cache $cache_file" >&6;} 13085 cat confcache >$cache_file 13086 else 13087 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 13088$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13089 fi 13090fi 13091rm -f confcache 13092 13093test "x$prefix" = xNONE && prefix=$ac_default_prefix 13094# Let make expand exec_prefix. 13095test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13096 13097DEFS=-DHAVE_CONFIG_H 13098 13099ac_libobjs= 13100ac_ltlibobjs= 13101for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13102 # 1. Remove the extension, and $U if already installed. 13103 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13104 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13105 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13106 # will be set to the directory where LIBOBJS objects are built. 13107 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13108 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 13109done 13110LIBOBJS=$ac_libobjs 13111 13112LTLIBOBJS=$ac_ltlibobjs 13113 13114 13115if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13116 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 13117Usually this means the macro was only invoked conditionally." >&5 13118$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 13119Usually this means the macro was only invoked conditionally." >&2;} 13120 { (exit 1); exit 1; }; } 13121fi 13122if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13123 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 13124Usually this means the macro was only invoked conditionally." >&5 13125$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 13126Usually this means the macro was only invoked conditionally." >&2;} 13127 { (exit 1); exit 1; }; } 13128fi 13129if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13130 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13131Usually this means the macro was only invoked conditionally." >&5 13132$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13133Usually this means the macro was only invoked conditionally." >&2;} 13134 { (exit 1); exit 1; }; } 13135fi 13136if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13137 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13138Usually this means the macro was only invoked conditionally." >&5 13139$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13140Usually this means the macro was only invoked conditionally." >&2;} 13141 { (exit 1); exit 1; }; } 13142fi 13143if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 13144 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 13145Usually this means the macro was only invoked conditionally." >&5 13146$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 13147Usually this means the macro was only invoked conditionally." >&2;} 13148 { (exit 1); exit 1; }; } 13149fi 13150if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then 13151 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined. 13152Usually this means the macro was only invoked conditionally." >&5 13153$as_echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined. 13154Usually this means the macro was only invoked conditionally." >&2;} 13155 { (exit 1); exit 1; }; } 13156fi 13157if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then 13158 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined. 13159Usually this means the macro was only invoked conditionally." >&5 13160$as_echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined. 13161Usually this means the macro was only invoked conditionally." >&2;} 13162 { (exit 1); exit 1; }; } 13163fi 13164 13165: ${CONFIG_STATUS=./config.status} 13166ac_write_fail=0 13167ac_clean_files_save=$ac_clean_files 13168ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13169{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13170$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13171cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13172#! $SHELL 13173# Generated by $as_me. 13174# Run this file to recreate the current configuration. 13175# Compiler output produced by configure, useful for debugging 13176# configure, is in config.log if it exists. 13177 13178debug=false 13179ac_cs_recheck=false 13180ac_cs_silent=false 13181SHELL=\${CONFIG_SHELL-$SHELL} 13182_ACEOF 13183 13184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13185## --------------------- ## 13186## M4sh Initialization. ## 13187## --------------------- ## 13188 13189# Be more Bourne compatible 13190DUALCASE=1; export DUALCASE # for MKS sh 13191if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13192 emulate sh 13193 NULLCMD=: 13194 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13195 # is contrary to our usage. Disable this feature. 13196 alias -g '${1+"$@"}'='"$@"' 13197 setopt NO_GLOB_SUBST 13198else 13199 case `(set -o) 2>/dev/null` in 13200 *posix*) set -o posix ;; 13201esac 13202 13203fi 13204 13205 13206 13207 13208# PATH needs CR 13209# Avoid depending upon Character Ranges. 13210as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13211as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13212as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13213as_cr_digits='0123456789' 13214as_cr_alnum=$as_cr_Letters$as_cr_digits 13215 13216as_nl=' 13217' 13218export as_nl 13219# Printing a long string crashes Solaris 7 /usr/bin/printf. 13220as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13221as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13222as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13223if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13224 as_echo='printf %s\n' 13225 as_echo_n='printf %s' 13226else 13227 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13228 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13229 as_echo_n='/usr/ucb/echo -n' 13230 else 13231 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13232 as_echo_n_body='eval 13233 arg=$1; 13234 case $arg in 13235 *"$as_nl"*) 13236 expr "X$arg" : "X\\(.*\\)$as_nl"; 13237 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13238 esac; 13239 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13240 ' 13241 export as_echo_n_body 13242 as_echo_n='sh -c $as_echo_n_body as_echo' 13243 fi 13244 export as_echo_body 13245 as_echo='sh -c $as_echo_body as_echo' 13246fi 13247 13248# The user is always right. 13249if test "${PATH_SEPARATOR+set}" != set; then 13250 PATH_SEPARATOR=: 13251 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13252 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13253 PATH_SEPARATOR=';' 13254 } 13255fi 13256 13257# Support unset when possible. 13258if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13259 as_unset=unset 13260else 13261 as_unset=false 13262fi 13263 13264 13265# IFS 13266# We need space, tab and new line, in precisely that order. Quoting is 13267# there to prevent editors from complaining about space-tab. 13268# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13269# splitting by setting IFS to empty value.) 13270IFS=" "" $as_nl" 13271 13272# Find who we are. Look in the path if we contain no directory separator. 13273case $0 in 13274 *[\\/]* ) as_myself=$0 ;; 13275 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13276for as_dir in $PATH 13277do 13278 IFS=$as_save_IFS 13279 test -z "$as_dir" && as_dir=. 13280 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13281done 13282IFS=$as_save_IFS 13283 13284 ;; 13285esac 13286# We did not find ourselves, most probably we were run as `sh COMMAND' 13287# in which case we are not to be found in the path. 13288if test "x$as_myself" = x; then 13289 as_myself=$0 13290fi 13291if test ! -f "$as_myself"; then 13292 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13293 { (exit 1); exit 1; } 13294fi 13295 13296# Work around bugs in pre-3.0 UWIN ksh. 13297for as_var in ENV MAIL MAILPATH 13298do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13299done 13300PS1='$ ' 13301PS2='> ' 13302PS4='+ ' 13303 13304# NLS nuisances. 13305LC_ALL=C 13306export LC_ALL 13307LANGUAGE=C 13308export LANGUAGE 13309 13310# Required to use basename. 13311if expr a : '\(a\)' >/dev/null 2>&1 && 13312 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13313 as_expr=expr 13314else 13315 as_expr=false 13316fi 13317 13318if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13319 as_basename=basename 13320else 13321 as_basename=false 13322fi 13323 13324 13325# Name of the executable. 13326as_me=`$as_basename -- "$0" || 13327$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13328 X"$0" : 'X\(//\)$' \| \ 13329 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13330$as_echo X/"$0" | 13331 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13332 s//\1/ 13333 q 13334 } 13335 /^X\/\(\/\/\)$/{ 13336 s//\1/ 13337 q 13338 } 13339 /^X\/\(\/\).*/{ 13340 s//\1/ 13341 q 13342 } 13343 s/.*/./; q'` 13344 13345# CDPATH. 13346$as_unset CDPATH 13347 13348 13349 13350 as_lineno_1=$LINENO 13351 as_lineno_2=$LINENO 13352 test "x$as_lineno_1" != "x$as_lineno_2" && 13353 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 13354 13355 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13356 # uniformly replaced by the line number. The first 'sed' inserts a 13357 # line-number line after each line using $LINENO; the second 'sed' 13358 # does the real work. The second script uses 'N' to pair each 13359 # line-number line with the line containing $LINENO, and appends 13360 # trailing '-' during substitution so that $LINENO is not a special 13361 # case at line end. 13362 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13363 # scripts with optimization help from Paolo Bonzini. Blame Lee 13364 # E. McMahon (1931-1989) for sed's syntax. :-) 13365 sed -n ' 13366 p 13367 /[$]LINENO/= 13368 ' <$as_myself | 13369 sed ' 13370 s/[$]LINENO.*/&-/ 13371 t lineno 13372 b 13373 :lineno 13374 N 13375 :loop 13376 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 13377 t loop 13378 s/-\n.*// 13379 ' >$as_me.lineno && 13380 chmod +x "$as_me.lineno" || 13381 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 13382 { (exit 1); exit 1; }; } 13383 13384 # Don't try to exec as it changes $[0], causing all sort of problems 13385 # (the dirname of $[0] is not the place where we might find the 13386 # original and so on. Autoconf is especially sensitive to this). 13387 . "./$as_me.lineno" 13388 # Exit status is that of the last command. 13389 exit 13390} 13391 13392 13393if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13394 as_dirname=dirname 13395else 13396 as_dirname=false 13397fi 13398 13399ECHO_C= ECHO_N= ECHO_T= 13400case `echo -n x` in 13401-n*) 13402 case `echo 'x\c'` in 13403 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13404 *) ECHO_C='\c';; 13405 esac;; 13406*) 13407 ECHO_N='-n';; 13408esac 13409if expr a : '\(a\)' >/dev/null 2>&1 && 13410 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13411 as_expr=expr 13412else 13413 as_expr=false 13414fi 13415 13416rm -f conf$$ conf$$.exe conf$$.file 13417if test -d conf$$.dir; then 13418 rm -f conf$$.dir/conf$$.file 13419else 13420 rm -f conf$$.dir 13421 mkdir conf$$.dir 2>/dev/null 13422fi 13423if (echo >conf$$.file) 2>/dev/null; then 13424 if ln -s conf$$.file conf$$ 2>/dev/null; then 13425 as_ln_s='ln -s' 13426 # ... but there are two gotchas: 13427 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13428 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13429 # In both cases, we have to default to `cp -p'. 13430 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13431 as_ln_s='cp -p' 13432 elif ln conf$$.file conf$$ 2>/dev/null; then 13433 as_ln_s=ln 13434 else 13435 as_ln_s='cp -p' 13436 fi 13437else 13438 as_ln_s='cp -p' 13439fi 13440rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13441rmdir conf$$.dir 2>/dev/null 13442 13443if mkdir -p . 2>/dev/null; then 13444 as_mkdir_p=: 13445else 13446 test -d ./-p && rmdir ./-p 13447 as_mkdir_p=false 13448fi 13449 13450if test -x / >/dev/null 2>&1; then 13451 as_test_x='test -x' 13452else 13453 if ls -dL / >/dev/null 2>&1; then 13454 as_ls_L_option=L 13455 else 13456 as_ls_L_option= 13457 fi 13458 as_test_x=' 13459 eval sh -c '\'' 13460 if test -d "$1"; then 13461 test -d "$1/."; 13462 else 13463 case $1 in 13464 -*)set "./$1";; 13465 esac; 13466 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 13467 ???[sx]*):;;*)false;;esac;fi 13468 '\'' sh 13469 ' 13470fi 13471as_executable_p=$as_test_x 13472 13473# Sed expression to map a string onto a valid CPP name. 13474as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13475 13476# Sed expression to map a string onto a valid variable name. 13477as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13478 13479 13480exec 6>&1 13481 13482# Save the log message, to keep $[0] and so on meaningful, and to 13483# report actual input values of CONFIG_FILES etc. instead of their 13484# values after options handling. 13485ac_log=" 13486This file was extended by xf86-video-s3virge $as_me 1.10.3, which was 13487generated by GNU Autoconf 2.63. Invocation command line was 13488 13489 CONFIG_FILES = $CONFIG_FILES 13490 CONFIG_HEADERS = $CONFIG_HEADERS 13491 CONFIG_LINKS = $CONFIG_LINKS 13492 CONFIG_COMMANDS = $CONFIG_COMMANDS 13493 $ $0 $@ 13494 13495on `(hostname || uname -n) 2>/dev/null | sed 1q` 13496" 13497 13498_ACEOF 13499 13500case $ac_config_files in *" 13501"*) set x $ac_config_files; shift; ac_config_files=$*;; 13502esac 13503 13504case $ac_config_headers in *" 13505"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13506esac 13507 13508 13509cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13510# Files that config.status was made for. 13511config_files="$ac_config_files" 13512config_headers="$ac_config_headers" 13513config_commands="$ac_config_commands" 13514 13515_ACEOF 13516 13517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13518ac_cs_usage="\ 13519\`$as_me' instantiates files from templates according to the 13520current configuration. 13521 13522Usage: $0 [OPTION]... [FILE]... 13523 13524 -h, --help print this help, then exit 13525 -V, --version print version number and configuration settings, then exit 13526 -q, --quiet, --silent 13527 do not print progress messages 13528 -d, --debug don't remove temporary files 13529 --recheck update $as_me by reconfiguring in the same conditions 13530 --file=FILE[:TEMPLATE] 13531 instantiate the configuration file FILE 13532 --header=FILE[:TEMPLATE] 13533 instantiate the configuration header FILE 13534 13535Configuration files: 13536$config_files 13537 13538Configuration headers: 13539$config_headers 13540 13541Configuration commands: 13542$config_commands 13543 13544Report bugs to <bug-autoconf@gnu.org>." 13545 13546_ACEOF 13547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13548ac_cs_version="\\ 13549xf86-video-s3virge config.status 1.10.3 13550configured by $0, generated by GNU Autoconf 2.63, 13551 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 13552 13553Copyright (C) 2008 Free Software Foundation, Inc. 13554This config.status script is free software; the Free Software Foundation 13555gives unlimited permission to copy, distribute and modify it." 13556 13557ac_pwd='$ac_pwd' 13558srcdir='$srcdir' 13559INSTALL='$INSTALL' 13560MKDIR_P='$MKDIR_P' 13561AWK='$AWK' 13562test -n "\$AWK" || AWK=awk 13563_ACEOF 13564 13565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13566# The default lists apply if the user does not specify any file. 13567ac_need_defaults=: 13568while test $# != 0 13569do 13570 case $1 in 13571 --*=*) 13572 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13573 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13574 ac_shift=: 13575 ;; 13576 *) 13577 ac_option=$1 13578 ac_optarg=$2 13579 ac_shift=shift 13580 ;; 13581 esac 13582 13583 case $ac_option in 13584 # Handling of the options. 13585 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13586 ac_cs_recheck=: ;; 13587 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13588 $as_echo "$ac_cs_version"; exit ;; 13589 --debug | --debu | --deb | --de | --d | -d ) 13590 debug=: ;; 13591 --file | --fil | --fi | --f ) 13592 $ac_shift 13593 case $ac_optarg in 13594 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13595 esac 13596 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 13597 ac_need_defaults=false;; 13598 --header | --heade | --head | --hea ) 13599 $ac_shift 13600 case $ac_optarg in 13601 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13602 esac 13603 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 13604 ac_need_defaults=false;; 13605 --he | --h) 13606 # Conflict between --help and --header 13607 { $as_echo "$as_me: error: ambiguous option: $1 13608Try \`$0 --help' for more information." >&2 13609 { (exit 1); exit 1; }; };; 13610 --help | --hel | -h ) 13611 $as_echo "$ac_cs_usage"; exit ;; 13612 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13613 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13614 ac_cs_silent=: ;; 13615 13616 # This is an error. 13617 -*) { $as_echo "$as_me: error: unrecognized option: $1 13618Try \`$0 --help' for more information." >&2 13619 { (exit 1); exit 1; }; } ;; 13620 13621 *) ac_config_targets="$ac_config_targets $1" 13622 ac_need_defaults=false ;; 13623 13624 esac 13625 shift 13626done 13627 13628ac_configure_extra_args= 13629 13630if $ac_cs_silent; then 13631 exec 6>/dev/null 13632 ac_configure_extra_args="$ac_configure_extra_args --silent" 13633fi 13634 13635_ACEOF 13636cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13637if \$ac_cs_recheck; then 13638 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13639 shift 13640 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13641 CONFIG_SHELL='$SHELL' 13642 export CONFIG_SHELL 13643 exec "\$@" 13644fi 13645 13646_ACEOF 13647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13648exec 5>>config.log 13649{ 13650 echo 13651 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13652## Running $as_me. ## 13653_ASBOX 13654 $as_echo "$ac_log" 13655} >&5 13656 13657_ACEOF 13658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13659# 13660# INIT-COMMANDS 13661# 13662AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13663 13664 13665# The HP-UX ksh and POSIX shell print the target directory to stdout 13666# if CDPATH is set. 13667(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13668 13669sed_quote_subst='$sed_quote_subst' 13670double_quote_subst='$double_quote_subst' 13671delay_variable_subst='$delay_variable_subst' 13672enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 13673macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 13674macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 13675enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 13676pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 13677enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 13678host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 13679host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 13680host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 13681build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 13682build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 13683build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 13684SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 13685Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 13686GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 13687EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 13688FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 13689LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 13690NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 13691LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 13692max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 13693ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 13694exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 13695lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 13696lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 13697lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 13698reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 13699reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13700OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 13701deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 13702file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 13703AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 13704AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13705STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 13706RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 13707old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13708old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13709old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13710CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 13711CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13712compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 13713GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 13714lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 13715lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 13716lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 13717lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13718objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 13719SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 13720ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 13721MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 13722lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 13723lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 13724lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 13725lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 13726lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 13727need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 13728DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 13729NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 13730LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 13731OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 13732OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 13733libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 13734shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13735extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13736archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 13737enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 13738export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13739whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13740compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 13741old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13742old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13743archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13744archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13745module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13746module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13747with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 13748allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13749no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13750hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13751hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 13752hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 13753hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 13754hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 13755hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 13756hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13757hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 13758inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 13759link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 13760fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 13761always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 13762export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13763exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13764include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13765prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13766file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 13767variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 13768need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13769need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 13770version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 13771runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13772shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13773shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 13774libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13775library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 13776soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13777postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13778postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13779finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13780finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 13781hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 13782sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13783sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13784hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 13785enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 13786enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 13787enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 13788old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 13789striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 13790 13791LTCC='$LTCC' 13792LTCFLAGS='$LTCFLAGS' 13793compiler='$compiler_DEFAULT' 13794 13795# Quote evaled strings. 13796for var in SED \ 13797GREP \ 13798EGREP \ 13799FGREP \ 13800LD \ 13801NM \ 13802LN_S \ 13803lt_SP2NL \ 13804lt_NL2SP \ 13805reload_flag \ 13806OBJDUMP \ 13807deplibs_check_method \ 13808file_magic_cmd \ 13809AR \ 13810AR_FLAGS \ 13811STRIP \ 13812RANLIB \ 13813CC \ 13814CFLAGS \ 13815compiler \ 13816lt_cv_sys_global_symbol_pipe \ 13817lt_cv_sys_global_symbol_to_cdecl \ 13818lt_cv_sys_global_symbol_to_c_name_address \ 13819lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13820SHELL \ 13821ECHO \ 13822lt_prog_compiler_no_builtin_flag \ 13823lt_prog_compiler_wl \ 13824lt_prog_compiler_pic \ 13825lt_prog_compiler_static \ 13826lt_cv_prog_compiler_c_o \ 13827need_locks \ 13828DSYMUTIL \ 13829NMEDIT \ 13830LIPO \ 13831OTOOL \ 13832OTOOL64 \ 13833shrext_cmds \ 13834export_dynamic_flag_spec \ 13835whole_archive_flag_spec \ 13836compiler_needs_object \ 13837with_gnu_ld \ 13838allow_undefined_flag \ 13839no_undefined_flag \ 13840hardcode_libdir_flag_spec \ 13841hardcode_libdir_flag_spec_ld \ 13842hardcode_libdir_separator \ 13843fix_srcfile_path \ 13844exclude_expsyms \ 13845include_expsyms \ 13846file_list_spec \ 13847variables_saved_for_relink \ 13848libname_spec \ 13849library_names_spec \ 13850soname_spec \ 13851finish_eval \ 13852old_striplib \ 13853striplib; do 13854 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13855 *[\\\\\\\`\\"\\\$]*) 13856 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13857 ;; 13858 *) 13859 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13860 ;; 13861 esac 13862done 13863 13864# Double-quote double-evaled strings. 13865for var in reload_cmds \ 13866old_postinstall_cmds \ 13867old_postuninstall_cmds \ 13868old_archive_cmds \ 13869extract_expsyms_cmds \ 13870old_archive_from_new_cmds \ 13871old_archive_from_expsyms_cmds \ 13872archive_cmds \ 13873archive_expsym_cmds \ 13874module_cmds \ 13875module_expsym_cmds \ 13876export_symbols_cmds \ 13877prelink_cmds \ 13878postinstall_cmds \ 13879postuninstall_cmds \ 13880finish_cmds \ 13881sys_lib_search_path_spec \ 13882sys_lib_dlsearch_path_spec; do 13883 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13884 *[\\\\\\\`\\"\\\$]*) 13885 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13886 ;; 13887 *) 13888 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13889 ;; 13890 esac 13891done 13892 13893# Fix-up fallback echo if it was mangled by the above quoting rules. 13894case \$lt_ECHO in 13895*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 13896 ;; 13897esac 13898 13899ac_aux_dir='$ac_aux_dir' 13900xsi_shell='$xsi_shell' 13901lt_shell_append='$lt_shell_append' 13902 13903# See if we are running on zsh, and set the options which allow our 13904# commands through without removal of \ escapes INIT. 13905if test -n "\${ZSH_VERSION+set}" ; then 13906 setopt NO_GLOB_SUBST 13907fi 13908 13909 13910 PACKAGE='$PACKAGE' 13911 VERSION='$VERSION' 13912 TIMESTAMP='$TIMESTAMP' 13913 RM='$RM' 13914 ofile='$ofile' 13915 13916 13917 13918 13919_ACEOF 13920 13921cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13922 13923# Handling of arguments. 13924for ac_config_target in $ac_config_targets 13925do 13926 case $ac_config_target in 13927 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13928 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13929 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13930 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13931 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13932 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 13933 13934 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13935$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13936 { (exit 1); exit 1; }; };; 13937 esac 13938done 13939 13940 13941# If the user did not use the arguments to specify the items to instantiate, 13942# then the envvar interface is used. Set only those that are not. 13943# We use the long form for the default assignment because of an extremely 13944# bizarre bug on SunOS 4.1.3. 13945if $ac_need_defaults; then 13946 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13947 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13948 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13949fi 13950 13951# Have a temporary directory for convenience. Make it in the build tree 13952# simply because there is no reason against having it here, and in addition, 13953# creating and moving files from /tmp can sometimes cause problems. 13954# Hook for its removal unless debugging. 13955# Note that there is a small window in which the directory will not be cleaned: 13956# after its creation but before its name has been assigned to `$tmp'. 13957$debug || 13958{ 13959 tmp= 13960 trap 'exit_status=$? 13961 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 13962' 0 13963 trap '{ (exit 1); exit 1; }' 1 2 13 15 13964} 13965# Create a (secure) tmp directory for tmp files. 13966 13967{ 13968 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13969 test -n "$tmp" && test -d "$tmp" 13970} || 13971{ 13972 tmp=./conf$$-$RANDOM 13973 (umask 077 && mkdir "$tmp") 13974} || 13975{ 13976 $as_echo "$as_me: cannot create a temporary directory in ." >&2 13977 { (exit 1); exit 1; } 13978} 13979 13980# Set up the scripts for CONFIG_FILES section. 13981# No need to generate them if there are no CONFIG_FILES. 13982# This happens for instance with `./config.status config.h'. 13983if test -n "$CONFIG_FILES"; then 13984 13985 13986ac_cr=' 13987' 13988ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13989if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13990 ac_cs_awk_cr='\\r' 13991else 13992 ac_cs_awk_cr=$ac_cr 13993fi 13994 13995echo 'BEGIN {' >"$tmp/subs1.awk" && 13996_ACEOF 13997 13998 13999{ 14000 echo "cat >conf$$subs.awk <<_ACEOF" && 14001 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14002 echo "_ACEOF" 14003} >conf$$subs.sh || 14004 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14005$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14006 { (exit 1); exit 1; }; } 14007ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 14008ac_delim='%!_!# ' 14009for ac_last_try in false false false false false :; do 14010 . ./conf$$subs.sh || 14011 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14012$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14013 { (exit 1); exit 1; }; } 14014 14015 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14016 if test $ac_delim_n = $ac_delim_num; then 14017 break 14018 elif $ac_last_try; then 14019 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14020$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14021 { (exit 1); exit 1; }; } 14022 else 14023 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14024 fi 14025done 14026rm -f conf$$subs.sh 14027 14028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14029cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 14030_ACEOF 14031sed -n ' 14032h 14033s/^/S["/; s/!.*/"]=/ 14034p 14035g 14036s/^[^!]*!// 14037:repl 14038t repl 14039s/'"$ac_delim"'$// 14040t delim 14041:nl 14042h 14043s/\(.\{148\}\).*/\1/ 14044t more1 14045s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14046p 14047n 14048b repl 14049:more1 14050s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14051p 14052g 14053s/.\{148\}// 14054t nl 14055:delim 14056h 14057s/\(.\{148\}\).*/\1/ 14058t more2 14059s/["\\]/\\&/g; s/^/"/; s/$/"/ 14060p 14061b 14062:more2 14063s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14064p 14065g 14066s/.\{148\}// 14067t delim 14068' <conf$$subs.awk | sed ' 14069/^[^""]/{ 14070 N 14071 s/\n// 14072} 14073' >>$CONFIG_STATUS || ac_write_fail=1 14074rm -f conf$$subs.awk 14075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14076_ACAWK 14077cat >>"\$tmp/subs1.awk" <<_ACAWK && 14078 for (key in S) S_is_set[key] = 1 14079 FS = "" 14080 14081} 14082{ 14083 line = $ 0 14084 nfields = split(line, field, "@") 14085 substed = 0 14086 len = length(field[1]) 14087 for (i = 2; i < nfields; i++) { 14088 key = field[i] 14089 keylen = length(key) 14090 if (S_is_set[key]) { 14091 value = S[key] 14092 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14093 len += length(value) + length(field[++i]) 14094 substed = 1 14095 } else 14096 len += 1 + keylen 14097 } 14098 14099 print line 14100} 14101 14102_ACAWK 14103_ACEOF 14104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14105if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14106 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14107else 14108 cat 14109fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14110 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 14111$as_echo "$as_me: error: could not setup config files machinery" >&2;} 14112 { (exit 1); exit 1; }; } 14113_ACEOF 14114 14115# VPATH may cause trouble with some makes, so we remove $(srcdir), 14116# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14117# trailing colons and then remove the whole line if VPATH becomes empty 14118# (actually we leave an empty line to preserve line numbers). 14119if test "x$srcdir" = x.; then 14120 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14121s/:*\$(srcdir):*/:/ 14122s/:*\${srcdir}:*/:/ 14123s/:*@srcdir@:*/:/ 14124s/^\([^=]*=[ ]*\):*/\1/ 14125s/:*$// 14126s/^[^=]*=[ ]*$// 14127}' 14128fi 14129 14130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14131fi # test -n "$CONFIG_FILES" 14132 14133# Set up the scripts for CONFIG_HEADERS section. 14134# No need to generate them if there are no CONFIG_HEADERS. 14135# This happens for instance with `./config.status Makefile'. 14136if test -n "$CONFIG_HEADERS"; then 14137cat >"$tmp/defines.awk" <<\_ACAWK || 14138BEGIN { 14139_ACEOF 14140 14141# Transform confdefs.h into an awk script `defines.awk', embedded as 14142# here-document in config.status, that substitutes the proper values into 14143# config.h.in to produce config.h. 14144 14145# Create a delimiter string that does not exist in confdefs.h, to ease 14146# handling of long lines. 14147ac_delim='%!_!# ' 14148for ac_last_try in false false :; do 14149 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 14150 if test -z "$ac_t"; then 14151 break 14152 elif $ac_last_try; then 14153 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 14154$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 14155 { (exit 1); exit 1; }; } 14156 else 14157 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14158 fi 14159done 14160 14161# For the awk script, D is an array of macro values keyed by name, 14162# likewise P contains macro parameters if any. Preserve backslash 14163# newline sequences. 14164 14165ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14166sed -n ' 14167s/.\{148\}/&'"$ac_delim"'/g 14168t rset 14169:rset 14170s/^[ ]*#[ ]*define[ ][ ]*/ / 14171t def 14172d 14173:def 14174s/\\$// 14175t bsnl 14176s/["\\]/\\&/g 14177s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14178D["\1"]=" \3"/p 14179s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14180d 14181:bsnl 14182s/["\\]/\\&/g 14183s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14184D["\1"]=" \3\\\\\\n"\\/p 14185t cont 14186s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14187t cont 14188d 14189:cont 14190n 14191s/.\{148\}/&'"$ac_delim"'/g 14192t clear 14193:clear 14194s/\\$// 14195t bsnlc 14196s/["\\]/\\&/g; s/^/"/; s/$/"/p 14197d 14198:bsnlc 14199s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14200b cont 14201' <confdefs.h | sed ' 14202s/'"$ac_delim"'/"\\\ 14203"/g' >>$CONFIG_STATUS || ac_write_fail=1 14204 14205cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14206 for (key in D) D_is_set[key] = 1 14207 FS = "" 14208} 14209/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14210 line = \$ 0 14211 split(line, arg, " ") 14212 if (arg[1] == "#") { 14213 defundef = arg[2] 14214 mac1 = arg[3] 14215 } else { 14216 defundef = substr(arg[1], 2) 14217 mac1 = arg[2] 14218 } 14219 split(mac1, mac2, "(") #) 14220 macro = mac2[1] 14221 prefix = substr(line, 1, index(line, defundef) - 1) 14222 if (D_is_set[macro]) { 14223 # Preserve the white space surrounding the "#". 14224 print prefix "define", macro P[macro] D[macro] 14225 next 14226 } else { 14227 # Replace #undef with comments. This is necessary, for example, 14228 # in the case of _POSIX_SOURCE, which is predefined and required 14229 # on some systems where configure will not decide to define it. 14230 if (defundef == "undef") { 14231 print "/*", prefix defundef, macro, "*/" 14232 next 14233 } 14234 } 14235} 14236{ print } 14237_ACAWK 14238_ACEOF 14239cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14240 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 14241$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 14242 { (exit 1); exit 1; }; } 14243fi # test -n "$CONFIG_HEADERS" 14244 14245 14246eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14247shift 14248for ac_tag 14249do 14250 case $ac_tag in 14251 :[FHLC]) ac_mode=$ac_tag; continue;; 14252 esac 14253 case $ac_mode$ac_tag in 14254 :[FHL]*:*);; 14255 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 14256$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 14257 { (exit 1); exit 1; }; };; 14258 :[FH]-) ac_tag=-:-;; 14259 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14260 esac 14261 ac_save_IFS=$IFS 14262 IFS=: 14263 set x $ac_tag 14264 IFS=$ac_save_IFS 14265 shift 14266 ac_file=$1 14267 shift 14268 14269 case $ac_mode in 14270 :L) ac_source=$1;; 14271 :[FH]) 14272 ac_file_inputs= 14273 for ac_f 14274 do 14275 case $ac_f in 14276 -) ac_f="$tmp/stdin";; 14277 *) # Look for the file first in the build tree, then in the source tree 14278 # (if the path is not absolute). The absolute path cannot be DOS-style, 14279 # because $ac_f cannot contain `:'. 14280 test -f "$ac_f" || 14281 case $ac_f in 14282 [\\/$]*) false;; 14283 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14284 esac || 14285 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14286$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 14287 { (exit 1); exit 1; }; };; 14288 esac 14289 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14290 ac_file_inputs="$ac_file_inputs '$ac_f'" 14291 done 14292 14293 # Let's still pretend it is `configure' which instantiates (i.e., don't 14294 # use $as_me), people would be surprised to read: 14295 # /* config.h. Generated by config.status. */ 14296 configure_input='Generated from '` 14297 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14298 `' by configure.' 14299 if test x"$ac_file" != x-; then 14300 configure_input="$ac_file. $configure_input" 14301 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 14302$as_echo "$as_me: creating $ac_file" >&6;} 14303 fi 14304 # Neutralize special characters interpreted by sed in replacement strings. 14305 case $configure_input in #( 14306 *\&* | *\|* | *\\* ) 14307 ac_sed_conf_input=`$as_echo "$configure_input" | 14308 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14309 *) ac_sed_conf_input=$configure_input;; 14310 esac 14311 14312 case $ac_tag in 14313 *:-:* | *:-) cat >"$tmp/stdin" \ 14314 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14315$as_echo "$as_me: error: could not create $ac_file" >&2;} 14316 { (exit 1); exit 1; }; } ;; 14317 esac 14318 ;; 14319 esac 14320 14321 ac_dir=`$as_dirname -- "$ac_file" || 14322$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14323 X"$ac_file" : 'X\(//\)[^/]' \| \ 14324 X"$ac_file" : 'X\(//\)$' \| \ 14325 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14326$as_echo X"$ac_file" | 14327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14328 s//\1/ 14329 q 14330 } 14331 /^X\(\/\/\)[^/].*/{ 14332 s//\1/ 14333 q 14334 } 14335 /^X\(\/\/\)$/{ 14336 s//\1/ 14337 q 14338 } 14339 /^X\(\/\).*/{ 14340 s//\1/ 14341 q 14342 } 14343 s/.*/./; q'` 14344 { as_dir="$ac_dir" 14345 case $as_dir in #( 14346 -*) as_dir=./$as_dir;; 14347 esac 14348 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14349 as_dirs= 14350 while :; do 14351 case $as_dir in #( 14352 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14353 *) as_qdir=$as_dir;; 14354 esac 14355 as_dirs="'$as_qdir' $as_dirs" 14356 as_dir=`$as_dirname -- "$as_dir" || 14357$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14358 X"$as_dir" : 'X\(//\)[^/]' \| \ 14359 X"$as_dir" : 'X\(//\)$' \| \ 14360 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14361$as_echo X"$as_dir" | 14362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14363 s//\1/ 14364 q 14365 } 14366 /^X\(\/\/\)[^/].*/{ 14367 s//\1/ 14368 q 14369 } 14370 /^X\(\/\/\)$/{ 14371 s//\1/ 14372 q 14373 } 14374 /^X\(\/\).*/{ 14375 s//\1/ 14376 q 14377 } 14378 s/.*/./; q'` 14379 test -d "$as_dir" && break 14380 done 14381 test -z "$as_dirs" || eval "mkdir $as_dirs" 14382 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14383$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14384 { (exit 1); exit 1; }; }; } 14385 ac_builddir=. 14386 14387case "$ac_dir" in 14388.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14389*) 14390 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14391 # A ".." for each directory in $ac_dir_suffix. 14392 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14393 case $ac_top_builddir_sub in 14394 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14395 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14396 esac ;; 14397esac 14398ac_abs_top_builddir=$ac_pwd 14399ac_abs_builddir=$ac_pwd$ac_dir_suffix 14400# for backward compatibility: 14401ac_top_builddir=$ac_top_build_prefix 14402 14403case $srcdir in 14404 .) # We are building in place. 14405 ac_srcdir=. 14406 ac_top_srcdir=$ac_top_builddir_sub 14407 ac_abs_top_srcdir=$ac_pwd ;; 14408 [\\/]* | ?:[\\/]* ) # Absolute name. 14409 ac_srcdir=$srcdir$ac_dir_suffix; 14410 ac_top_srcdir=$srcdir 14411 ac_abs_top_srcdir=$srcdir ;; 14412 *) # Relative name. 14413 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14414 ac_top_srcdir=$ac_top_build_prefix$srcdir 14415 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14416esac 14417ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14418 14419 14420 case $ac_mode in 14421 :F) 14422 # 14423 # CONFIG_FILE 14424 # 14425 14426 case $INSTALL in 14427 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14428 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14429 esac 14430 ac_MKDIR_P=$MKDIR_P 14431 case $MKDIR_P in 14432 [\\/$]* | ?:[\\/]* ) ;; 14433 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14434 esac 14435_ACEOF 14436 14437cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14438# If the template does not know about datarootdir, expand it. 14439# FIXME: This hack should be removed a few years after 2.60. 14440ac_datarootdir_hack=; ac_datarootdir_seen= 14441 14442ac_sed_dataroot=' 14443/datarootdir/ { 14444 p 14445 q 14446} 14447/@datadir@/p 14448/@docdir@/p 14449/@infodir@/p 14450/@localedir@/p 14451/@mandir@/p 14452' 14453case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14454*datarootdir*) ac_datarootdir_seen=yes;; 14455*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14456 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14457$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14458_ACEOF 14459cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14460 ac_datarootdir_hack=' 14461 s&@datadir@&$datadir&g 14462 s&@docdir@&$docdir&g 14463 s&@infodir@&$infodir&g 14464 s&@localedir@&$localedir&g 14465 s&@mandir@&$mandir&g 14466 s&\\\${datarootdir}&$datarootdir&g' ;; 14467esac 14468_ACEOF 14469 14470# Neutralize VPATH when `$srcdir' = `.'. 14471# Shell code in configure.ac might set extrasub. 14472# FIXME: do we really want to maintain this feature? 14473cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14474ac_sed_extra="$ac_vpsub 14475$extrasub 14476_ACEOF 14477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14478:t 14479/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14480s|@configure_input@|$ac_sed_conf_input|;t t 14481s&@top_builddir@&$ac_top_builddir_sub&;t t 14482s&@top_build_prefix@&$ac_top_build_prefix&;t t 14483s&@srcdir@&$ac_srcdir&;t t 14484s&@abs_srcdir@&$ac_abs_srcdir&;t t 14485s&@top_srcdir@&$ac_top_srcdir&;t t 14486s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14487s&@builddir@&$ac_builddir&;t t 14488s&@abs_builddir@&$ac_abs_builddir&;t t 14489s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14490s&@INSTALL@&$ac_INSTALL&;t t 14491s&@MKDIR_P@&$ac_MKDIR_P&;t t 14492$ac_datarootdir_hack 14493" 14494eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14495 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14496$as_echo "$as_me: error: could not create $ac_file" >&2;} 14497 { (exit 1); exit 1; }; } 14498 14499test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14500 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14501 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14502 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14503which seems to be undefined. Please make sure it is defined." >&5 14504$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14505which seems to be undefined. Please make sure it is defined." >&2;} 14506 14507 rm -f "$tmp/stdin" 14508 case $ac_file in 14509 -) cat "$tmp/out" && rm -f "$tmp/out";; 14510 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 14511 esac \ 14512 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14513$as_echo "$as_me: error: could not create $ac_file" >&2;} 14514 { (exit 1); exit 1; }; } 14515 ;; 14516 :H) 14517 # 14518 # CONFIG_HEADER 14519 # 14520 if test x"$ac_file" != x-; then 14521 { 14522 $as_echo "/* $configure_input */" \ 14523 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 14524 } >"$tmp/config.h" \ 14525 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14526$as_echo "$as_me: error: could not create $ac_file" >&2;} 14527 { (exit 1); exit 1; }; } 14528 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 14529 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14530$as_echo "$as_me: $ac_file is unchanged" >&6;} 14531 else 14532 rm -f "$ac_file" 14533 mv "$tmp/config.h" "$ac_file" \ 14534 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14535$as_echo "$as_me: error: could not create $ac_file" >&2;} 14536 { (exit 1); exit 1; }; } 14537 fi 14538 else 14539 $as_echo "/* $configure_input */" \ 14540 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 14541 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 14542$as_echo "$as_me: error: could not create -" >&2;} 14543 { (exit 1); exit 1; }; } 14544 fi 14545# Compute "$ac_file"'s index in $config_headers. 14546_am_arg="$ac_file" 14547_am_stamp_count=1 14548for _am_header in $config_headers :; do 14549 case $_am_header in 14550 $_am_arg | $_am_arg:* ) 14551 break ;; 14552 * ) 14553 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14554 esac 14555done 14556echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14557$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14558 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14559 X"$_am_arg" : 'X\(//\)$' \| \ 14560 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14561$as_echo X"$_am_arg" | 14562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14563 s//\1/ 14564 q 14565 } 14566 /^X\(\/\/\)[^/].*/{ 14567 s//\1/ 14568 q 14569 } 14570 /^X\(\/\/\)$/{ 14571 s//\1/ 14572 q 14573 } 14574 /^X\(\/\).*/{ 14575 s//\1/ 14576 q 14577 } 14578 s/.*/./; q'`/stamp-h$_am_stamp_count 14579 ;; 14580 14581 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 14582$as_echo "$as_me: executing $ac_file commands" >&6;} 14583 ;; 14584 esac 14585 14586 14587 case $ac_file$ac_mode in 14588 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files 14589# are listed without --file. Let's play safe and only enable the eval 14590# if we detect the quoting. 14591case $CONFIG_FILES in 14592*\'*) eval set x "$CONFIG_FILES" ;; 14593*) set x $CONFIG_FILES ;; 14594esac 14595shift 14596for mf 14597do 14598 # Strip MF so we end up with the name of the file. 14599 mf=`echo "$mf" | sed -e 's/:.*$//'` 14600 # Check whether this is an Automake generated Makefile or not. 14601 # We used to match only the files named `Makefile.in', but 14602 # some people rename them; so instead we look at the file content. 14603 # Grep'ing the first line is not enough: some people post-process 14604 # each Makefile.in and add a new line on top of each file to say so. 14605 # Grep'ing the whole file is not good either: AIX grep has a line 14606 # limit of 2048, but all sed's we know have understand at least 4000. 14607 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14608 dirpart=`$as_dirname -- "$mf" || 14609$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14610 X"$mf" : 'X\(//\)[^/]' \| \ 14611 X"$mf" : 'X\(//\)$' \| \ 14612 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14613$as_echo X"$mf" | 14614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14615 s//\1/ 14616 q 14617 } 14618 /^X\(\/\/\)[^/].*/{ 14619 s//\1/ 14620 q 14621 } 14622 /^X\(\/\/\)$/{ 14623 s//\1/ 14624 q 14625 } 14626 /^X\(\/\).*/{ 14627 s//\1/ 14628 q 14629 } 14630 s/.*/./; q'` 14631 else 14632 continue 14633 fi 14634 # Extract the definition of DEPDIR, am__include, and am__quote 14635 # from the Makefile without running `make'. 14636 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14637 test -z "$DEPDIR" && continue 14638 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14639 test -z "am__include" && continue 14640 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14641 # When using ansi2knr, U may be empty or an underscore; expand it 14642 U=`sed -n 's/^U = //p' < "$mf"` 14643 # Find all dependency output files, they are included files with 14644 # $(DEPDIR) in their names. We invoke sed twice because it is the 14645 # simplest approach to changing $(DEPDIR) to its actual value in the 14646 # expansion. 14647 for file in `sed -n " 14648 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14649 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14650 # Make sure the directory exists. 14651 test -f "$dirpart/$file" && continue 14652 fdir=`$as_dirname -- "$file" || 14653$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14654 X"$file" : 'X\(//\)[^/]' \| \ 14655 X"$file" : 'X\(//\)$' \| \ 14656 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14657$as_echo X"$file" | 14658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14659 s//\1/ 14660 q 14661 } 14662 /^X\(\/\/\)[^/].*/{ 14663 s//\1/ 14664 q 14665 } 14666 /^X\(\/\/\)$/{ 14667 s//\1/ 14668 q 14669 } 14670 /^X\(\/\).*/{ 14671 s//\1/ 14672 q 14673 } 14674 s/.*/./; q'` 14675 { as_dir=$dirpart/$fdir 14676 case $as_dir in #( 14677 -*) as_dir=./$as_dir;; 14678 esac 14679 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14680 as_dirs= 14681 while :; do 14682 case $as_dir in #( 14683 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14684 *) as_qdir=$as_dir;; 14685 esac 14686 as_dirs="'$as_qdir' $as_dirs" 14687 as_dir=`$as_dirname -- "$as_dir" || 14688$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14689 X"$as_dir" : 'X\(//\)[^/]' \| \ 14690 X"$as_dir" : 'X\(//\)$' \| \ 14691 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14692$as_echo X"$as_dir" | 14693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14694 s//\1/ 14695 q 14696 } 14697 /^X\(\/\/\)[^/].*/{ 14698 s//\1/ 14699 q 14700 } 14701 /^X\(\/\/\)$/{ 14702 s//\1/ 14703 q 14704 } 14705 /^X\(\/\).*/{ 14706 s//\1/ 14707 q 14708 } 14709 s/.*/./; q'` 14710 test -d "$as_dir" && break 14711 done 14712 test -z "$as_dirs" || eval "mkdir $as_dirs" 14713 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14714$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14715 { (exit 1); exit 1; }; }; } 14716 # echo "creating $dirpart/$file" 14717 echo '# dummy' > "$dirpart/$file" 14718 done 14719done 14720 ;; 14721 "libtool":C) 14722 14723 # See if we are running on zsh, and set the options which allow our 14724 # commands through without removal of \ escapes. 14725 if test -n "${ZSH_VERSION+set}" ; then 14726 setopt NO_GLOB_SUBST 14727 fi 14728 14729 cfgfile="${ofile}T" 14730 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14731 $RM "$cfgfile" 14732 14733 cat <<_LT_EOF >> "$cfgfile" 14734#! $SHELL 14735 14736# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14737# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14738# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14739# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14740# 14741# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14742# 2006, 2007, 2008 Free Software Foundation, Inc. 14743# Written by Gordon Matzigkeit, 1996 14744# 14745# This file is part of GNU Libtool. 14746# 14747# GNU Libtool is free software; you can redistribute it and/or 14748# modify it under the terms of the GNU General Public License as 14749# published by the Free Software Foundation; either version 2 of 14750# the License, or (at your option) any later version. 14751# 14752# As a special exception to the GNU General Public License, 14753# if you distribute this file as part of a program or library that 14754# is built using GNU Libtool, you may include this file under the 14755# same distribution terms that you use for the rest of that program. 14756# 14757# GNU Libtool is distributed in the hope that it will be useful, 14758# but WITHOUT ANY WARRANTY; without even the implied warranty of 14759# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14760# GNU General Public License for more details. 14761# 14762# You should have received a copy of the GNU General Public License 14763# along with GNU Libtool; see the file COPYING. If not, a copy 14764# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14765# obtained by writing to the Free Software Foundation, Inc., 14766# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14767 14768 14769# The names of the tagged configurations supported by this script. 14770available_tags="" 14771 14772# ### BEGIN LIBTOOL CONFIG 14773 14774# Whether or not to build static libraries. 14775build_old_libs=$enable_static 14776 14777# Which release of libtool.m4 was used? 14778macro_version=$macro_version 14779macro_revision=$macro_revision 14780 14781# Whether or not to build shared libraries. 14782build_libtool_libs=$enable_shared 14783 14784# What type of objects to build. 14785pic_mode=$pic_mode 14786 14787# Whether or not to optimize for fast installation. 14788fast_install=$enable_fast_install 14789 14790# The host system. 14791host_alias=$host_alias 14792host=$host 14793host_os=$host_os 14794 14795# The build system. 14796build_alias=$build_alias 14797build=$build 14798build_os=$build_os 14799 14800# A sed program that does not truncate output. 14801SED=$lt_SED 14802 14803# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14804Xsed="\$SED -e 1s/^X//" 14805 14806# A grep program that handles long lines. 14807GREP=$lt_GREP 14808 14809# An ERE matcher. 14810EGREP=$lt_EGREP 14811 14812# A literal string matcher. 14813FGREP=$lt_FGREP 14814 14815# A BSD- or MS-compatible name lister. 14816NM=$lt_NM 14817 14818# Whether we need soft or hard links. 14819LN_S=$lt_LN_S 14820 14821# What is the maximum length of a command? 14822max_cmd_len=$max_cmd_len 14823 14824# Object file suffix (normally "o"). 14825objext=$ac_objext 14826 14827# Executable file suffix (normally ""). 14828exeext=$exeext 14829 14830# whether the shell understands "unset". 14831lt_unset=$lt_unset 14832 14833# turn spaces into newlines. 14834SP2NL=$lt_lt_SP2NL 14835 14836# turn newlines into spaces. 14837NL2SP=$lt_lt_NL2SP 14838 14839# How to create reloadable object files. 14840reload_flag=$lt_reload_flag 14841reload_cmds=$lt_reload_cmds 14842 14843# An object symbol dumper. 14844OBJDUMP=$lt_OBJDUMP 14845 14846# Method to check whether dependent libraries are shared objects. 14847deplibs_check_method=$lt_deplibs_check_method 14848 14849# Command to use when deplibs_check_method == "file_magic". 14850file_magic_cmd=$lt_file_magic_cmd 14851 14852# The archiver. 14853AR=$lt_AR 14854AR_FLAGS=$lt_AR_FLAGS 14855 14856# A symbol stripping program. 14857STRIP=$lt_STRIP 14858 14859# Commands used to install an old-style archive. 14860RANLIB=$lt_RANLIB 14861old_postinstall_cmds=$lt_old_postinstall_cmds 14862old_postuninstall_cmds=$lt_old_postuninstall_cmds 14863 14864# A C compiler. 14865LTCC=$lt_CC 14866 14867# LTCC compiler flags. 14868LTCFLAGS=$lt_CFLAGS 14869 14870# Take the output of nm and produce a listing of raw symbols and C names. 14871global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14872 14873# Transform the output of nm in a proper C declaration. 14874global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14875 14876# Transform the output of nm in a C name address pair. 14877global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14878 14879# Transform the output of nm in a C name address pair when lib prefix is needed. 14880global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14881 14882# The name of the directory that contains temporary libtool files. 14883objdir=$objdir 14884 14885# Shell to use when invoking shell scripts. 14886SHELL=$lt_SHELL 14887 14888# An echo program that does not interpret backslashes. 14889ECHO=$lt_ECHO 14890 14891# Used to examine libraries when file_magic_cmd begins with "file". 14892MAGIC_CMD=$MAGIC_CMD 14893 14894# Must we lock files when doing compilation? 14895need_locks=$lt_need_locks 14896 14897# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14898DSYMUTIL=$lt_DSYMUTIL 14899 14900# Tool to change global to local symbols on Mac OS X. 14901NMEDIT=$lt_NMEDIT 14902 14903# Tool to manipulate fat objects and archives on Mac OS X. 14904LIPO=$lt_LIPO 14905 14906# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14907OTOOL=$lt_OTOOL 14908 14909# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14910OTOOL64=$lt_OTOOL64 14911 14912# Old archive suffix (normally "a"). 14913libext=$libext 14914 14915# Shared library suffix (normally ".so"). 14916shrext_cmds=$lt_shrext_cmds 14917 14918# The commands to extract the exported symbol list from a shared archive. 14919extract_expsyms_cmds=$lt_extract_expsyms_cmds 14920 14921# Variables whose values should be saved in libtool wrapper scripts and 14922# restored at link time. 14923variables_saved_for_relink=$lt_variables_saved_for_relink 14924 14925# Do we need the "lib" prefix for modules? 14926need_lib_prefix=$need_lib_prefix 14927 14928# Do we need a version for libraries? 14929need_version=$need_version 14930 14931# Library versioning type. 14932version_type=$version_type 14933 14934# Shared library runtime path variable. 14935runpath_var=$runpath_var 14936 14937# Shared library path variable. 14938shlibpath_var=$shlibpath_var 14939 14940# Is shlibpath searched before the hard-coded library search path? 14941shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14942 14943# Format of library name prefix. 14944libname_spec=$lt_libname_spec 14945 14946# List of archive names. First name is the real one, the rest are links. 14947# The last name is the one that the linker finds with -lNAME 14948library_names_spec=$lt_library_names_spec 14949 14950# The coded name of the library, if different from the real name. 14951soname_spec=$lt_soname_spec 14952 14953# Command to use after installation of a shared archive. 14954postinstall_cmds=$lt_postinstall_cmds 14955 14956# Command to use after uninstallation of a shared archive. 14957postuninstall_cmds=$lt_postuninstall_cmds 14958 14959# Commands used to finish a libtool library installation in a directory. 14960finish_cmds=$lt_finish_cmds 14961 14962# As "finish_cmds", except a single script fragment to be evaled but 14963# not shown. 14964finish_eval=$lt_finish_eval 14965 14966# Whether we should hardcode library paths into libraries. 14967hardcode_into_libs=$hardcode_into_libs 14968 14969# Compile-time system search path for libraries. 14970sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14971 14972# Run-time system search path for libraries. 14973sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14974 14975# Whether dlopen is supported. 14976dlopen_support=$enable_dlopen 14977 14978# Whether dlopen of programs is supported. 14979dlopen_self=$enable_dlopen_self 14980 14981# Whether dlopen of statically linked programs is supported. 14982dlopen_self_static=$enable_dlopen_self_static 14983 14984# Commands to strip libraries. 14985old_striplib=$lt_old_striplib 14986striplib=$lt_striplib 14987 14988 14989# The linker used to build libraries. 14990LD=$lt_LD 14991 14992# Commands used to build an old-style archive. 14993old_archive_cmds=$lt_old_archive_cmds 14994 14995# A language specific compiler. 14996CC=$lt_compiler 14997 14998# Is the compiler the GNU compiler? 14999with_gcc=$GCC 15000 15001# Compiler flag to turn off builtin functions. 15002no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15003 15004# How to pass a linker flag through the compiler. 15005wl=$lt_lt_prog_compiler_wl 15006 15007# Additional compiler flags for building library objects. 15008pic_flag=$lt_lt_prog_compiler_pic 15009 15010# Compiler flag to prevent dynamic linking. 15011link_static_flag=$lt_lt_prog_compiler_static 15012 15013# Does compiler simultaneously support -c and -o options? 15014compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15015 15016# Whether or not to add -lc for building shared libraries. 15017build_libtool_need_lc=$archive_cmds_need_lc 15018 15019# Whether or not to disallow shared libs when runtime libs are static. 15020allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15021 15022# Compiler flag to allow reflexive dlopens. 15023export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15024 15025# Compiler flag to generate shared objects directly from archives. 15026whole_archive_flag_spec=$lt_whole_archive_flag_spec 15027 15028# Whether the compiler copes with passing no objects directly. 15029compiler_needs_object=$lt_compiler_needs_object 15030 15031# Create an old-style archive from a shared archive. 15032old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15033 15034# Create a temporary old-style archive to link instead of a shared archive. 15035old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15036 15037# Commands used to build a shared archive. 15038archive_cmds=$lt_archive_cmds 15039archive_expsym_cmds=$lt_archive_expsym_cmds 15040 15041# Commands used to build a loadable module if different from building 15042# a shared archive. 15043module_cmds=$lt_module_cmds 15044module_expsym_cmds=$lt_module_expsym_cmds 15045 15046# Whether we are building with GNU ld or not. 15047with_gnu_ld=$lt_with_gnu_ld 15048 15049# Flag that allows shared libraries with undefined symbols to be built. 15050allow_undefined_flag=$lt_allow_undefined_flag 15051 15052# Flag that enforces no undefined symbols. 15053no_undefined_flag=$lt_no_undefined_flag 15054 15055# Flag to hardcode \$libdir into a binary during linking. 15056# This must work even if \$libdir does not exist 15057hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15058 15059# If ld is used when linking, flag to hardcode \$libdir into a binary 15060# during linking. This must work even if \$libdir does not exist. 15061hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15062 15063# Whether we need a single "-rpath" flag with a separated argument. 15064hardcode_libdir_separator=$lt_hardcode_libdir_separator 15065 15066# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15067# DIR into the resulting binary. 15068hardcode_direct=$hardcode_direct 15069 15070# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15071# DIR into the resulting binary and the resulting library dependency is 15072# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15073# library is relocated. 15074hardcode_direct_absolute=$hardcode_direct_absolute 15075 15076# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15077# into the resulting binary. 15078hardcode_minus_L=$hardcode_minus_L 15079 15080# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15081# into the resulting binary. 15082hardcode_shlibpath_var=$hardcode_shlibpath_var 15083 15084# Set to "yes" if building a shared library automatically hardcodes DIR 15085# into the library and all subsequent libraries and executables linked 15086# against it. 15087hardcode_automatic=$hardcode_automatic 15088 15089# Set to yes if linker adds runtime paths of dependent libraries 15090# to runtime path list. 15091inherit_rpath=$inherit_rpath 15092 15093# Whether libtool must link a program against all its dependency libraries. 15094link_all_deplibs=$link_all_deplibs 15095 15096# Fix the shell variable \$srcfile for the compiler. 15097fix_srcfile_path=$lt_fix_srcfile_path 15098 15099# Set to "yes" if exported symbols are required. 15100always_export_symbols=$always_export_symbols 15101 15102# The commands to list exported symbols. 15103export_symbols_cmds=$lt_export_symbols_cmds 15104 15105# Symbols that should not be listed in the preloaded symbols. 15106exclude_expsyms=$lt_exclude_expsyms 15107 15108# Symbols that must always be exported. 15109include_expsyms=$lt_include_expsyms 15110 15111# Commands necessary for linking programs (against libraries) with templates. 15112prelink_cmds=$lt_prelink_cmds 15113 15114# Specify filename containing input files. 15115file_list_spec=$lt_file_list_spec 15116 15117# How to hardcode a shared library path into an executable. 15118hardcode_action=$hardcode_action 15119 15120# ### END LIBTOOL CONFIG 15121 15122_LT_EOF 15123 15124 case $host_os in 15125 aix3*) 15126 cat <<\_LT_EOF >> "$cfgfile" 15127# AIX sometimes has problems with the GCC collect2 program. For some 15128# reason, if we set the COLLECT_NAMES environment variable, the problems 15129# vanish in a puff of smoke. 15130if test "X${COLLECT_NAMES+set}" != Xset; then 15131 COLLECT_NAMES= 15132 export COLLECT_NAMES 15133fi 15134_LT_EOF 15135 ;; 15136 esac 15137 15138 15139ltmain="$ac_aux_dir/ltmain.sh" 15140 15141 15142 # We use sed instead of cat because bash on DJGPP gets confused if 15143 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15144 # text mode, it properly converts lines to CR/LF. This bash problem 15145 # is reportedly fixed, but why not run on old versions too? 15146 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15147 || (rm -f "$cfgfile"; exit 1) 15148 15149 case $xsi_shell in 15150 yes) 15151 cat << \_LT_EOF >> "$cfgfile" 15152 15153# func_dirname file append nondir_replacement 15154# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15155# otherwise set result to NONDIR_REPLACEMENT. 15156func_dirname () 15157{ 15158 case ${1} in 15159 */*) func_dirname_result="${1%/*}${2}" ;; 15160 * ) func_dirname_result="${3}" ;; 15161 esac 15162} 15163 15164# func_basename file 15165func_basename () 15166{ 15167 func_basename_result="${1##*/}" 15168} 15169 15170# func_dirname_and_basename file append nondir_replacement 15171# perform func_basename and func_dirname in a single function 15172# call: 15173# dirname: Compute the dirname of FILE. If nonempty, 15174# add APPEND to the result, otherwise set result 15175# to NONDIR_REPLACEMENT. 15176# value returned in "$func_dirname_result" 15177# basename: Compute filename of FILE. 15178# value retuned in "$func_basename_result" 15179# Implementation must be kept synchronized with func_dirname 15180# and func_basename. For efficiency, we do not delegate to 15181# those functions but instead duplicate the functionality here. 15182func_dirname_and_basename () 15183{ 15184 case ${1} in 15185 */*) func_dirname_result="${1%/*}${2}" ;; 15186 * ) func_dirname_result="${3}" ;; 15187 esac 15188 func_basename_result="${1##*/}" 15189} 15190 15191# func_stripname prefix suffix name 15192# strip PREFIX and SUFFIX off of NAME. 15193# PREFIX and SUFFIX must not contain globbing or regex special 15194# characters, hashes, percent signs, but SUFFIX may contain a leading 15195# dot (in which case that matches only a dot). 15196func_stripname () 15197{ 15198 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15199 # positional parameters, so assign one to ordinary parameter first. 15200 func_stripname_result=${3} 15201 func_stripname_result=${func_stripname_result#"${1}"} 15202 func_stripname_result=${func_stripname_result%"${2}"} 15203} 15204 15205# func_opt_split 15206func_opt_split () 15207{ 15208 func_opt_split_opt=${1%%=*} 15209 func_opt_split_arg=${1#*=} 15210} 15211 15212# func_lo2o object 15213func_lo2o () 15214{ 15215 case ${1} in 15216 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15217 *) func_lo2o_result=${1} ;; 15218 esac 15219} 15220 15221# func_xform libobj-or-source 15222func_xform () 15223{ 15224 func_xform_result=${1%.*}.lo 15225} 15226 15227# func_arith arithmetic-term... 15228func_arith () 15229{ 15230 func_arith_result=$(( $* )) 15231} 15232 15233# func_len string 15234# STRING may not start with a hyphen. 15235func_len () 15236{ 15237 func_len_result=${#1} 15238} 15239 15240_LT_EOF 15241 ;; 15242 *) # Bourne compatible functions. 15243 cat << \_LT_EOF >> "$cfgfile" 15244 15245# func_dirname file append nondir_replacement 15246# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15247# otherwise set result to NONDIR_REPLACEMENT. 15248func_dirname () 15249{ 15250 # Extract subdirectory from the argument. 15251 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15252 if test "X$func_dirname_result" = "X${1}"; then 15253 func_dirname_result="${3}" 15254 else 15255 func_dirname_result="$func_dirname_result${2}" 15256 fi 15257} 15258 15259# func_basename file 15260func_basename () 15261{ 15262 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15263} 15264 15265 15266# func_stripname prefix suffix name 15267# strip PREFIX and SUFFIX off of NAME. 15268# PREFIX and SUFFIX must not contain globbing or regex special 15269# characters, hashes, percent signs, but SUFFIX may contain a leading 15270# dot (in which case that matches only a dot). 15271# func_strip_suffix prefix name 15272func_stripname () 15273{ 15274 case ${2} in 15275 .*) func_stripname_result=`$ECHO "X${3}" \ 15276 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15277 *) func_stripname_result=`$ECHO "X${3}" \ 15278 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15279 esac 15280} 15281 15282# sed scripts: 15283my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15284my_sed_long_arg='1s/^-[^=]*=//' 15285 15286# func_opt_split 15287func_opt_split () 15288{ 15289 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15290 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15291} 15292 15293# func_lo2o object 15294func_lo2o () 15295{ 15296 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15297} 15298 15299# func_xform libobj-or-source 15300func_xform () 15301{ 15302 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15303} 15304 15305# func_arith arithmetic-term... 15306func_arith () 15307{ 15308 func_arith_result=`expr "$@"` 15309} 15310 15311# func_len string 15312# STRING may not start with a hyphen. 15313func_len () 15314{ 15315 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15316} 15317 15318_LT_EOF 15319esac 15320 15321case $lt_shell_append in 15322 yes) 15323 cat << \_LT_EOF >> "$cfgfile" 15324 15325# func_append var value 15326# Append VALUE to the end of shell variable VAR. 15327func_append () 15328{ 15329 eval "$1+=\$2" 15330} 15331_LT_EOF 15332 ;; 15333 *) 15334 cat << \_LT_EOF >> "$cfgfile" 15335 15336# func_append var value 15337# Append VALUE to the end of shell variable VAR. 15338func_append () 15339{ 15340 eval "$1=\$$1\$2" 15341} 15342 15343_LT_EOF 15344 ;; 15345 esac 15346 15347 15348 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15349 || (rm -f "$cfgfile"; exit 1) 15350 15351 mv -f "$cfgfile" "$ofile" || 15352 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15353 chmod +x "$ofile" 15354 15355 ;; 15356 15357 esac 15358done # for ac_tag 15359 15360 15361{ (exit 0); exit 0; } 15362_ACEOF 15363chmod +x $CONFIG_STATUS 15364ac_clean_files=$ac_clean_files_save 15365 15366test $ac_write_fail = 0 || 15367 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 15368$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 15369 { (exit 1); exit 1; }; } 15370 15371 15372# configure is writing to config.log, and then calls config.status. 15373# config.status does its own redirection, appending to config.log. 15374# Unfortunately, on DOS this fails, as config.log is still kept open 15375# by configure, so config.status won't be able to write to it; its 15376# output is simply discarded. So we exec the FD to /dev/null, 15377# effectively closing config.log, so it can be properly (re)opened and 15378# appended to by config.status. When coming back to configure, we 15379# need to make the FD available again. 15380if test "$no_create" != yes; then 15381 ac_cs_success=: 15382 ac_config_status_args= 15383 test "$silent" = yes && 15384 ac_config_status_args="$ac_config_status_args --quiet" 15385 exec 5>/dev/null 15386 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15387 exec 5>>config.log 15388 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15389 # would make configure fail if this is the last instruction. 15390 $ac_cs_success || { (exit 1); exit 1; } 15391fi 15392if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15393 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15394$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15395fi 15396 15397