configure revision e432255d
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for libpciaccess 0.11.0. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess>. 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='libpciaccess' 747PACKAGE_TARNAME='libpciaccess' 748PACKAGE_VERSION='0.11.0' 749PACKAGE_STRING='libpciaccess 0.11.0' 750PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess' 751 752# Factoring default headers for most tests. 753ac_includes_default="\ 754#include <stdio.h> 755#ifdef HAVE_SYS_TYPES_H 756# include <sys/types.h> 757#endif 758#ifdef HAVE_SYS_STAT_H 759# include <sys/stat.h> 760#endif 761#ifdef STDC_HEADERS 762# include <stdlib.h> 763# include <stddef.h> 764#else 765# ifdef HAVE_STDLIB_H 766# include <stdlib.h> 767# endif 768#endif 769#ifdef HAVE_STRING_H 770# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 771# include <memory.h> 772# endif 773# include <string.h> 774#endif 775#ifdef HAVE_STRINGS_H 776# include <strings.h> 777#endif 778#ifdef HAVE_INTTYPES_H 779# include <inttypes.h> 780#endif 781#ifdef HAVE_STDINT_H 782# include <stdint.h> 783#endif 784#ifdef HAVE_UNISTD_H 785# include <unistd.h> 786#endif" 787 788ac_subst_vars='am__EXEEXT_FALSE 789am__EXEEXT_TRUE 790LTLIBOBJS 791LIBOBJS 792PCIACCESS_LIBS 793PCIACCESS_CFLAGS 794SOLARIS_FALSE 795SOLARIS_TRUE 796OPENBSD_FALSE 797OPENBSD_TRUE 798NETBSD_FALSE 799NETBSD_TRUE 800FREEBSD_FALSE 801FREEBSD_TRUE 802LINUX_FALSE 803LINUX_TRUE 804PCIIDS_PATH 805OTOOL64 806OTOOL 807LIPO 808NMEDIT 809DSYMUTIL 810lt_ECHO 811RANLIB 812AR 813OBJDUMP 814LN_S 815NM 816ac_ct_DUMPBIN 817DUMPBIN 818LD 819FGREP 820SED 821LIBTOOL 822ADMIN_MAN_DIR 823DRIVER_MAN_DIR 824MISC_MAN_DIR 825FILE_MAN_DIR 826LIB_MAN_DIR 827APP_MAN_DIR 828ADMIN_MAN_SUFFIX 829DRIVER_MAN_SUFFIX 830MISC_MAN_SUFFIX 831FILE_MAN_SUFFIX 832LIB_MAN_SUFFIX 833APP_MAN_SUFFIX 834host_os 835host_vendor 836host_cpu 837host 838build_os 839build_vendor 840build_cpu 841build 842INSTALL_CMD 843PKG_CONFIG 844CHANGELOG_CMD 845AM_BACKSLASH 846AM_DEFAULT_VERBOSITY 847CWARNFLAGS 848EGREP 849GREP 850CPP 851am__fastdepCC_FALSE 852am__fastdepCC_TRUE 853CCDEPMODE 854AMDEPBACKSLASH 855AMDEP_FALSE 856AMDEP_TRUE 857am__quote 858am__include 859DEPDIR 860OBJEXT 861EXEEXT 862ac_ct_CC 863CPPFLAGS 864LDFLAGS 865CFLAGS 866CC 867MAINT 868MAINTAINER_MODE_FALSE 869MAINTAINER_MODE_TRUE 870am__untar 871am__tar 872AMTAR 873am__leading_dot 874SET_MAKE 875AWK 876mkdir_p 877MKDIR_P 878INSTALL_STRIP_PROGRAM 879STRIP 880install_sh 881MAKEINFO 882AUTOHEADER 883AUTOMAKE 884AUTOCONF 885ACLOCAL 886VERSION 887PACKAGE 888CYGPATH_W 889am__isrc 890INSTALL_DATA 891INSTALL_SCRIPT 892INSTALL_PROGRAM 893target_alias 894host_alias 895build_alias 896LIBS 897ECHO_T 898ECHO_N 899ECHO_C 900DEFS 901mandir 902localedir 903libdir 904psdir 905pdfdir 906dvidir 907htmldir 908infodir 909docdir 910oldincludedir 911includedir 912localstatedir 913sharedstatedir 914sysconfdir 915datadir 916datarootdir 917libexecdir 918sbindir 919bindir 920program_transform_name 921prefix 922exec_prefix 923PACKAGE_BUGREPORT 924PACKAGE_STRING 925PACKAGE_VERSION 926PACKAGE_TARNAME 927PACKAGE_NAME 928PATH_SEPARATOR 929SHELL' 930ac_subst_files='' 931ac_user_opts=' 932enable_option_checking 933enable_maintainer_mode 934enable_dependency_tracking 935enable_silent_rules 936enable_strict_compilation 937with_release_version 938enable_shared 939enable_static 940with_pic 941enable_fast_install 942with_gnu_ld 943enable_libtool_lock 944with_pciids_path 945enable_linux_rom_fallback 946with_zlib 947enable_largefile 948' 949 ac_precious_vars='build_alias 950host_alias 951target_alias 952CC 953CFLAGS 954LDFLAGS 955LIBS 956CPPFLAGS 957CPP 958PKG_CONFIG' 959 960 961# Initialize some variables set by options. 962ac_init_help= 963ac_init_version=false 964ac_unrecognized_opts= 965ac_unrecognized_sep= 966# The variables have the same names as the options, with 967# dashes changed to underlines. 968cache_file=/dev/null 969exec_prefix=NONE 970no_create= 971no_recursion= 972prefix=NONE 973program_prefix=NONE 974program_suffix=NONE 975program_transform_name=s,x,x, 976silent= 977site= 978srcdir= 979verbose= 980x_includes=NONE 981x_libraries=NONE 982 983# Installation directory options. 984# These are left unexpanded so users can "make install exec_prefix=/foo" 985# and all the variables that are supposed to be based on exec_prefix 986# by default will actually change. 987# Use braces instead of parens because sh, perl, etc. also accept them. 988# (The list follows the same order as the GNU Coding Standards.) 989bindir='${exec_prefix}/bin' 990sbindir='${exec_prefix}/sbin' 991libexecdir='${exec_prefix}/libexec' 992datarootdir='${prefix}/share' 993datadir='${datarootdir}' 994sysconfdir='${prefix}/etc' 995sharedstatedir='${prefix}/com' 996localstatedir='${prefix}/var' 997includedir='${prefix}/include' 998oldincludedir='/usr/include' 999docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1000infodir='${datarootdir}/info' 1001htmldir='${docdir}' 1002dvidir='${docdir}' 1003pdfdir='${docdir}' 1004psdir='${docdir}' 1005libdir='${exec_prefix}/lib' 1006localedir='${datarootdir}/locale' 1007mandir='${datarootdir}/man' 1008 1009ac_prev= 1010ac_dashdash= 1011for ac_option 1012do 1013 # If the previous option needs an argument, assign it. 1014 if test -n "$ac_prev"; then 1015 eval $ac_prev=\$ac_option 1016 ac_prev= 1017 continue 1018 fi 1019 1020 case $ac_option in 1021 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1022 *) ac_optarg=yes ;; 1023 esac 1024 1025 # Accept the important Cygnus configure options, so we can diagnose typos. 1026 1027 case $ac_dashdash$ac_option in 1028 --) 1029 ac_dashdash=yes ;; 1030 1031 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1032 ac_prev=bindir ;; 1033 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1034 bindir=$ac_optarg ;; 1035 1036 -build | --build | --buil | --bui | --bu) 1037 ac_prev=build_alias ;; 1038 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1039 build_alias=$ac_optarg ;; 1040 1041 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1043 ac_prev=cache_file ;; 1044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1046 cache_file=$ac_optarg ;; 1047 1048 --config-cache | -C) 1049 cache_file=config.cache ;; 1050 1051 -datadir | --datadir | --datadi | --datad) 1052 ac_prev=datadir ;; 1053 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1054 datadir=$ac_optarg ;; 1055 1056 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1057 | --dataroo | --dataro | --datar) 1058 ac_prev=datarootdir ;; 1059 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1060 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1061 datarootdir=$ac_optarg ;; 1062 1063 -disable-* | --disable-*) 1064 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1065 # Reject names that are not valid shell variable names. 1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1067 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1068 { (exit 1); exit 1; }; } 1069 ac_useropt_orig=$ac_useropt 1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1071 case $ac_user_opts in 1072 *" 1073"enable_$ac_useropt" 1074"*) ;; 1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1076 ac_unrecognized_sep=', ';; 1077 esac 1078 eval enable_$ac_useropt=no ;; 1079 1080 -docdir | --docdir | --docdi | --doc | --do) 1081 ac_prev=docdir ;; 1082 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1083 docdir=$ac_optarg ;; 1084 1085 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1086 ac_prev=dvidir ;; 1087 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1088 dvidir=$ac_optarg ;; 1089 1090 -enable-* | --enable-*) 1091 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1092 # Reject names that are not valid shell variable names. 1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1094 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1095 { (exit 1); exit 1; }; } 1096 ac_useropt_orig=$ac_useropt 1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1098 case $ac_user_opts in 1099 *" 1100"enable_$ac_useropt" 1101"*) ;; 1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1103 ac_unrecognized_sep=', ';; 1104 esac 1105 eval enable_$ac_useropt=\$ac_optarg ;; 1106 1107 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1108 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1109 | --exec | --exe | --ex) 1110 ac_prev=exec_prefix ;; 1111 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1112 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1113 | --exec=* | --exe=* | --ex=*) 1114 exec_prefix=$ac_optarg ;; 1115 1116 -gas | --gas | --ga | --g) 1117 # Obsolete; use --with-gas. 1118 with_gas=yes ;; 1119 1120 -help | --help | --hel | --he | -h) 1121 ac_init_help=long ;; 1122 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1123 ac_init_help=recursive ;; 1124 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1125 ac_init_help=short ;; 1126 1127 -host | --host | --hos | --ho) 1128 ac_prev=host_alias ;; 1129 -host=* | --host=* | --hos=* | --ho=*) 1130 host_alias=$ac_optarg ;; 1131 1132 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1133 ac_prev=htmldir ;; 1134 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1135 | --ht=*) 1136 htmldir=$ac_optarg ;; 1137 1138 -includedir | --includedir | --includedi | --included | --include \ 1139 | --includ | --inclu | --incl | --inc) 1140 ac_prev=includedir ;; 1141 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1142 | --includ=* | --inclu=* | --incl=* | --inc=*) 1143 includedir=$ac_optarg ;; 1144 1145 -infodir | --infodir | --infodi | --infod | --info | --inf) 1146 ac_prev=infodir ;; 1147 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1148 infodir=$ac_optarg ;; 1149 1150 -libdir | --libdir | --libdi | --libd) 1151 ac_prev=libdir ;; 1152 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1153 libdir=$ac_optarg ;; 1154 1155 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1156 | --libexe | --libex | --libe) 1157 ac_prev=libexecdir ;; 1158 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1159 | --libexe=* | --libex=* | --libe=*) 1160 libexecdir=$ac_optarg ;; 1161 1162 -localedir | --localedir | --localedi | --localed | --locale) 1163 ac_prev=localedir ;; 1164 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1165 localedir=$ac_optarg ;; 1166 1167 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1168 | --localstate | --localstat | --localsta | --localst | --locals) 1169 ac_prev=localstatedir ;; 1170 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1171 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1172 localstatedir=$ac_optarg ;; 1173 1174 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1175 ac_prev=mandir ;; 1176 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1177 mandir=$ac_optarg ;; 1178 1179 -nfp | --nfp | --nf) 1180 # Obsolete; use --without-fp. 1181 with_fp=no ;; 1182 1183 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1184 | --no-cr | --no-c | -n) 1185 no_create=yes ;; 1186 1187 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1188 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1189 no_recursion=yes ;; 1190 1191 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1192 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1193 | --oldin | --oldi | --old | --ol | --o) 1194 ac_prev=oldincludedir ;; 1195 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1196 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1197 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1198 oldincludedir=$ac_optarg ;; 1199 1200 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1201 ac_prev=prefix ;; 1202 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1203 prefix=$ac_optarg ;; 1204 1205 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1206 | --program-pre | --program-pr | --program-p) 1207 ac_prev=program_prefix ;; 1208 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1209 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1210 program_prefix=$ac_optarg ;; 1211 1212 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1213 | --program-suf | --program-su | --program-s) 1214 ac_prev=program_suffix ;; 1215 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1216 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1217 program_suffix=$ac_optarg ;; 1218 1219 -program-transform-name | --program-transform-name \ 1220 | --program-transform-nam | --program-transform-na \ 1221 | --program-transform-n | --program-transform- \ 1222 | --program-transform | --program-transfor \ 1223 | --program-transfo | --program-transf \ 1224 | --program-trans | --program-tran \ 1225 | --progr-tra | --program-tr | --program-t) 1226 ac_prev=program_transform_name ;; 1227 -program-transform-name=* | --program-transform-name=* \ 1228 | --program-transform-nam=* | --program-transform-na=* \ 1229 | --program-transform-n=* | --program-transform-=* \ 1230 | --program-transform=* | --program-transfor=* \ 1231 | --program-transfo=* | --program-transf=* \ 1232 | --program-trans=* | --program-tran=* \ 1233 | --progr-tra=* | --program-tr=* | --program-t=*) 1234 program_transform_name=$ac_optarg ;; 1235 1236 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1237 ac_prev=pdfdir ;; 1238 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1239 pdfdir=$ac_optarg ;; 1240 1241 -psdir | --psdir | --psdi | --psd | --ps) 1242 ac_prev=psdir ;; 1243 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1244 psdir=$ac_optarg ;; 1245 1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1247 | -silent | --silent | --silen | --sile | --sil) 1248 silent=yes ;; 1249 1250 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1251 ac_prev=sbindir ;; 1252 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1253 | --sbi=* | --sb=*) 1254 sbindir=$ac_optarg ;; 1255 1256 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1257 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1258 | --sharedst | --shareds | --shared | --share | --shar \ 1259 | --sha | --sh) 1260 ac_prev=sharedstatedir ;; 1261 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1262 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1263 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1264 | --sha=* | --sh=*) 1265 sharedstatedir=$ac_optarg ;; 1266 1267 -site | --site | --sit) 1268 ac_prev=site ;; 1269 -site=* | --site=* | --sit=*) 1270 site=$ac_optarg ;; 1271 1272 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1273 ac_prev=srcdir ;; 1274 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1275 srcdir=$ac_optarg ;; 1276 1277 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1278 | --syscon | --sysco | --sysc | --sys | --sy) 1279 ac_prev=sysconfdir ;; 1280 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1281 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1282 sysconfdir=$ac_optarg ;; 1283 1284 -target | --target | --targe | --targ | --tar | --ta | --t) 1285 ac_prev=target_alias ;; 1286 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1287 target_alias=$ac_optarg ;; 1288 1289 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1290 verbose=yes ;; 1291 1292 -version | --version | --versio | --versi | --vers | -V) 1293 ac_init_version=: ;; 1294 1295 -with-* | --with-*) 1296 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1297 # Reject names that are not valid shell variable names. 1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1299 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1300 { (exit 1); exit 1; }; } 1301 ac_useropt_orig=$ac_useropt 1302 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1303 case $ac_user_opts in 1304 *" 1305"with_$ac_useropt" 1306"*) ;; 1307 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1308 ac_unrecognized_sep=', ';; 1309 esac 1310 eval with_$ac_useropt=\$ac_optarg ;; 1311 1312 -without-* | --without-*) 1313 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1314 # Reject names that are not valid shell variable names. 1315 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1316 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1317 { (exit 1); exit 1; }; } 1318 ac_useropt_orig=$ac_useropt 1319 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1320 case $ac_user_opts in 1321 *" 1322"with_$ac_useropt" 1323"*) ;; 1324 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1325 ac_unrecognized_sep=', ';; 1326 esac 1327 eval with_$ac_useropt=no ;; 1328 1329 --x) 1330 # Obsolete; use --with-x. 1331 with_x=yes ;; 1332 1333 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1334 | --x-incl | --x-inc | --x-in | --x-i) 1335 ac_prev=x_includes ;; 1336 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1337 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1338 x_includes=$ac_optarg ;; 1339 1340 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1341 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1342 ac_prev=x_libraries ;; 1343 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1344 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1345 x_libraries=$ac_optarg ;; 1346 1347 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1348Try \`$0 --help' for more information." >&2 1349 { (exit 1); exit 1; }; } 1350 ;; 1351 1352 *=*) 1353 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1354 # Reject names that are not valid shell variable names. 1355 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1356 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1357 { (exit 1); exit 1; }; } 1358 eval $ac_envvar=\$ac_optarg 1359 export $ac_envvar ;; 1360 1361 *) 1362 # FIXME: should be removed in autoconf 3.0. 1363 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1364 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1365 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1366 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1367 ;; 1368 1369 esac 1370done 1371 1372if test -n "$ac_prev"; then 1373 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1374 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1375 { (exit 1); exit 1; }; } 1376fi 1377 1378if test -n "$ac_unrecognized_opts"; then 1379 case $enable_option_checking in 1380 no) ;; 1381 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1382 { (exit 1); exit 1; }; } ;; 1383 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1384 esac 1385fi 1386 1387# Check all directory arguments for consistency. 1388for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1389 datadir sysconfdir sharedstatedir localstatedir includedir \ 1390 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1391 libdir localedir mandir 1392do 1393 eval ac_val=\$$ac_var 1394 # Remove trailing slashes. 1395 case $ac_val in 1396 */ ) 1397 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1398 eval $ac_var=\$ac_val;; 1399 esac 1400 # Be sure to have absolute directory names. 1401 case $ac_val in 1402 [\\/$]* | ?:[\\/]* ) continue;; 1403 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1404 esac 1405 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1406 { (exit 1); exit 1; }; } 1407done 1408 1409# There might be people who depend on the old broken behavior: `$host' 1410# used to hold the argument of --host etc. 1411# FIXME: To remove some day. 1412build=$build_alias 1413host=$host_alias 1414target=$target_alias 1415 1416# FIXME: To remove some day. 1417if test "x$host_alias" != x; then 1418 if test "x$build_alias" = x; then 1419 cross_compiling=maybe 1420 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1421 If a cross compiler is detected then cross compile mode will be used." >&2 1422 elif test "x$build_alias" != "x$host_alias"; then 1423 cross_compiling=yes 1424 fi 1425fi 1426 1427ac_tool_prefix= 1428test -n "$host_alias" && ac_tool_prefix=$host_alias- 1429 1430test "$silent" = yes && exec 6>/dev/null 1431 1432 1433ac_pwd=`pwd` && test -n "$ac_pwd" && 1434ac_ls_di=`ls -di .` && 1435ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1436 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1437 { (exit 1); exit 1; }; } 1438test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1439 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1440 { (exit 1); exit 1; }; } 1441 1442 1443# Find the source files, if location was not specified. 1444if test -z "$srcdir"; then 1445 ac_srcdir_defaulted=yes 1446 # Try the directory containing this script, then the parent directory. 1447 ac_confdir=`$as_dirname -- "$as_myself" || 1448$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1449 X"$as_myself" : 'X\(//\)[^/]' \| \ 1450 X"$as_myself" : 'X\(//\)$' \| \ 1451 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1452$as_echo X"$as_myself" | 1453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1454 s//\1/ 1455 q 1456 } 1457 /^X\(\/\/\)[^/].*/{ 1458 s//\1/ 1459 q 1460 } 1461 /^X\(\/\/\)$/{ 1462 s//\1/ 1463 q 1464 } 1465 /^X\(\/\).*/{ 1466 s//\1/ 1467 q 1468 } 1469 s/.*/./; q'` 1470 srcdir=$ac_confdir 1471 if test ! -r "$srcdir/$ac_unique_file"; then 1472 srcdir=.. 1473 fi 1474else 1475 ac_srcdir_defaulted=no 1476fi 1477if test ! -r "$srcdir/$ac_unique_file"; then 1478 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1479 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1480 { (exit 1); exit 1; }; } 1481fi 1482ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1483ac_abs_confdir=`( 1484 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1485 { (exit 1); exit 1; }; } 1486 pwd)` 1487# When building in place, set srcdir=. 1488if test "$ac_abs_confdir" = "$ac_pwd"; then 1489 srcdir=. 1490fi 1491# Remove unnecessary trailing slashes from srcdir. 1492# Double slashes in file names in object file debugging info 1493# mess up M-x gdb in Emacs. 1494case $srcdir in 1495*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1496esac 1497for ac_var in $ac_precious_vars; do 1498 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1499 eval ac_env_${ac_var}_value=\$${ac_var} 1500 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1501 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1502done 1503 1504# 1505# Report the --help message. 1506# 1507if test "$ac_init_help" = "long"; then 1508 # Omit some internal or obsolete options to make the list less imposing. 1509 # This message is too long to be a string in the A/UX 3.1 sh. 1510 cat <<_ACEOF 1511\`configure' configures libpciaccess 0.11.0 to adapt to many kinds of systems. 1512 1513Usage: $0 [OPTION]... [VAR=VALUE]... 1514 1515To assign environment variables (e.g., CC, CFLAGS...), specify them as 1516VAR=VALUE. See below for descriptions of some of the useful variables. 1517 1518Defaults for the options are specified in brackets. 1519 1520Configuration: 1521 -h, --help display this help and exit 1522 --help=short display options specific to this package 1523 --help=recursive display the short help of all the included packages 1524 -V, --version display version information and exit 1525 -q, --quiet, --silent do not print \`checking...' messages 1526 --cache-file=FILE cache test results in FILE [disabled] 1527 -C, --config-cache alias for \`--cache-file=config.cache' 1528 -n, --no-create do not create output files 1529 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1530 1531Installation directories: 1532 --prefix=PREFIX install architecture-independent files in PREFIX 1533 [$ac_default_prefix] 1534 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1535 [PREFIX] 1536 1537By default, \`make install' will install all the files in 1538\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1539an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1540for instance \`--prefix=\$HOME'. 1541 1542For better control, use the options below. 1543 1544Fine tuning of the installation directories: 1545 --bindir=DIR user executables [EPREFIX/bin] 1546 --sbindir=DIR system admin executables [EPREFIX/sbin] 1547 --libexecdir=DIR program executables [EPREFIX/libexec] 1548 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1549 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1550 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1551 --libdir=DIR object code libraries [EPREFIX/lib] 1552 --includedir=DIR C header files [PREFIX/include] 1553 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1554 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1555 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1556 --infodir=DIR info documentation [DATAROOTDIR/info] 1557 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1558 --mandir=DIR man documentation [DATAROOTDIR/man] 1559 --docdir=DIR documentation root [DATAROOTDIR/doc/libpciaccess] 1560 --htmldir=DIR html documentation [DOCDIR] 1561 --dvidir=DIR dvi documentation [DOCDIR] 1562 --pdfdir=DIR pdf documentation [DOCDIR] 1563 --psdir=DIR ps documentation [DOCDIR] 1564_ACEOF 1565 1566 cat <<\_ACEOF 1567 1568Program names: 1569 --program-prefix=PREFIX prepend PREFIX to installed program names 1570 --program-suffix=SUFFIX append SUFFIX to installed program names 1571 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1572 1573System types: 1574 --build=BUILD configure for building on BUILD [guessed] 1575 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1576_ACEOF 1577fi 1578 1579if test -n "$ac_init_help"; then 1580 case $ac_init_help in 1581 short | recursive ) echo "Configuration of libpciaccess 0.11.0:";; 1582 esac 1583 cat <<\_ACEOF 1584 1585Optional Features: 1586 --disable-option-checking ignore unrecognized --enable/--with options 1587 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1588 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1589 --enable-maintainer-mode enable make rules and dependencies not useful 1590 (and sometimes confusing) to the casual installer 1591 --disable-dependency-tracking speeds up one-time build 1592 --enable-dependency-tracking do not reject slow dependency extractors 1593 --enable-silent-rules less verbose build output (undo: `make V=1') 1594 --disable-silent-rules verbose build output (undo: `make V=0') 1595 --enable-strict-compilation 1596 Enable all warnings from compiler and make them 1597 errors (default: disabled) 1598 --enable-shared[=PKGS] build shared libraries [default=yes] 1599 --enable-static[=PKGS] build static libraries [default=yes] 1600 --enable-fast-install[=PKGS] 1601 optimize for fast installation [default=yes] 1602 --disable-libtool-lock avoid locking (might break parallel builds) 1603 --enable-linux-rom-fallback 1604 Enable support for falling back to /dev/mem for roms 1605 (default: disabled) 1606 --disable-largefile omit support for large files 1607 1608Optional Packages: 1609 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1610 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1611 --with-release-version=STRING 1612 Use release version string in package name 1613 --with-pic try to use only PIC/non-PIC objects [default=use 1614 both] 1615 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1616 --with-pciids-path=PCIIDS_PATH 1617 Path to pci.ids file 1618 --with-zlib Enable zlib support to read gzip compressed pci.ids 1619 1620Some influential environment variables: 1621 CC C compiler command 1622 CFLAGS C compiler flags 1623 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1624 nonstandard directory <lib dir> 1625 LIBS libraries to pass to the linker, e.g. -l<library> 1626 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1627 you have headers in a nonstandard directory <include dir> 1628 CPP C preprocessor 1629 PKG_CONFIG path to pkg-config utility 1630 1631Use these variables to override the choices made by `configure' or to help 1632it to find libraries and programs with nonstandard names/locations. 1633 1634Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess>. 1635_ACEOF 1636ac_status=$? 1637fi 1638 1639if test "$ac_init_help" = "recursive"; then 1640 # If there are subdirs, report their specific --help. 1641 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1642 test -d "$ac_dir" || 1643 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1644 continue 1645 ac_builddir=. 1646 1647case "$ac_dir" in 1648.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1649*) 1650 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1651 # A ".." for each directory in $ac_dir_suffix. 1652 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1653 case $ac_top_builddir_sub in 1654 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1655 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1656 esac ;; 1657esac 1658ac_abs_top_builddir=$ac_pwd 1659ac_abs_builddir=$ac_pwd$ac_dir_suffix 1660# for backward compatibility: 1661ac_top_builddir=$ac_top_build_prefix 1662 1663case $srcdir in 1664 .) # We are building in place. 1665 ac_srcdir=. 1666 ac_top_srcdir=$ac_top_builddir_sub 1667 ac_abs_top_srcdir=$ac_pwd ;; 1668 [\\/]* | ?:[\\/]* ) # Absolute name. 1669 ac_srcdir=$srcdir$ac_dir_suffix; 1670 ac_top_srcdir=$srcdir 1671 ac_abs_top_srcdir=$srcdir ;; 1672 *) # Relative name. 1673 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1674 ac_top_srcdir=$ac_top_build_prefix$srcdir 1675 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1676esac 1677ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1678 1679 cd "$ac_dir" || { ac_status=$?; continue; } 1680 # Check for guested configure. 1681 if test -f "$ac_srcdir/configure.gnu"; then 1682 echo && 1683 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1684 elif test -f "$ac_srcdir/configure"; then 1685 echo && 1686 $SHELL "$ac_srcdir/configure" --help=recursive 1687 else 1688 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1689 fi || ac_status=$? 1690 cd "$ac_pwd" || { ac_status=$?; break; } 1691 done 1692fi 1693 1694test -n "$ac_init_help" && exit $ac_status 1695if $ac_init_version; then 1696 cat <<\_ACEOF 1697libpciaccess configure 0.11.0 1698generated by GNU Autoconf 2.63 1699 1700Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17012002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1702This configure script is free software; the Free Software Foundation 1703gives unlimited permission to copy, distribute and modify it. 1704_ACEOF 1705 exit 1706fi 1707cat >config.log <<_ACEOF 1708This file contains any messages produced by compilers while 1709running configure, to aid debugging if configure makes a mistake. 1710 1711It was created by libpciaccess $as_me 0.11.0, which was 1712generated by GNU Autoconf 2.63. Invocation command line was 1713 1714 $ $0 $@ 1715 1716_ACEOF 1717exec 5>>config.log 1718{ 1719cat <<_ASUNAME 1720## --------- ## 1721## Platform. ## 1722## --------- ## 1723 1724hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1725uname -m = `(uname -m) 2>/dev/null || echo unknown` 1726uname -r = `(uname -r) 2>/dev/null || echo unknown` 1727uname -s = `(uname -s) 2>/dev/null || echo unknown` 1728uname -v = `(uname -v) 2>/dev/null || echo unknown` 1729 1730/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1731/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1732 1733/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1734/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1735/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1736/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1737/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1738/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1739/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1740 1741_ASUNAME 1742 1743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1744for as_dir in $PATH 1745do 1746 IFS=$as_save_IFS 1747 test -z "$as_dir" && as_dir=. 1748 $as_echo "PATH: $as_dir" 1749done 1750IFS=$as_save_IFS 1751 1752} >&5 1753 1754cat >&5 <<_ACEOF 1755 1756 1757## ----------- ## 1758## Core tests. ## 1759## ----------- ## 1760 1761_ACEOF 1762 1763 1764# Keep a trace of the command line. 1765# Strip out --no-create and --no-recursion so they do not pile up. 1766# Strip out --silent because we don't want to record it for future runs. 1767# Also quote any args containing shell meta-characters. 1768# Make two passes to allow for proper duplicate-argument suppression. 1769ac_configure_args= 1770ac_configure_args0= 1771ac_configure_args1= 1772ac_must_keep_next=false 1773for ac_pass in 1 2 1774do 1775 for ac_arg 1776 do 1777 case $ac_arg in 1778 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1779 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1780 | -silent | --silent | --silen | --sile | --sil) 1781 continue ;; 1782 *\'*) 1783 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1784 esac 1785 case $ac_pass in 1786 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1787 2) 1788 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1789 if test $ac_must_keep_next = true; then 1790 ac_must_keep_next=false # Got value, back to normal. 1791 else 1792 case $ac_arg in 1793 *=* | --config-cache | -C | -disable-* | --disable-* \ 1794 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1795 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1796 | -with-* | --with-* | -without-* | --without-* | --x) 1797 case "$ac_configure_args0 " in 1798 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1799 esac 1800 ;; 1801 -* ) ac_must_keep_next=true ;; 1802 esac 1803 fi 1804 ac_configure_args="$ac_configure_args '$ac_arg'" 1805 ;; 1806 esac 1807 done 1808done 1809$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1810$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1811 1812# When interrupted or exit'd, cleanup temporary files, and complete 1813# config.log. We remove comments because anyway the quotes in there 1814# would cause problems or look ugly. 1815# WARNING: Use '\'' to represent an apostrophe within the trap. 1816# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1817trap 'exit_status=$? 1818 # Save into config.log some information that might help in debugging. 1819 { 1820 echo 1821 1822 cat <<\_ASBOX 1823## ---------------- ## 1824## Cache variables. ## 1825## ---------------- ## 1826_ASBOX 1827 echo 1828 # The following way of writing the cache mishandles newlines in values, 1829( 1830 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1831 eval ac_val=\$$ac_var 1832 case $ac_val in #( 1833 *${as_nl}*) 1834 case $ac_var in #( 1835 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1836$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1837 esac 1838 case $ac_var in #( 1839 _ | IFS | as_nl) ;; #( 1840 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1841 *) $as_unset $ac_var ;; 1842 esac ;; 1843 esac 1844 done 1845 (set) 2>&1 | 1846 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1847 *${as_nl}ac_space=\ *) 1848 sed -n \ 1849 "s/'\''/'\''\\\\'\'''\''/g; 1850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1851 ;; #( 1852 *) 1853 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1854 ;; 1855 esac | 1856 sort 1857) 1858 echo 1859 1860 cat <<\_ASBOX 1861## ----------------- ## 1862## Output variables. ## 1863## ----------------- ## 1864_ASBOX 1865 echo 1866 for ac_var in $ac_subst_vars 1867 do 1868 eval ac_val=\$$ac_var 1869 case $ac_val in 1870 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1871 esac 1872 $as_echo "$ac_var='\''$ac_val'\''" 1873 done | sort 1874 echo 1875 1876 if test -n "$ac_subst_files"; then 1877 cat <<\_ASBOX 1878## ------------------- ## 1879## File substitutions. ## 1880## ------------------- ## 1881_ASBOX 1882 echo 1883 for ac_var in $ac_subst_files 1884 do 1885 eval ac_val=\$$ac_var 1886 case $ac_val in 1887 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1888 esac 1889 $as_echo "$ac_var='\''$ac_val'\''" 1890 done | sort 1891 echo 1892 fi 1893 1894 if test -s confdefs.h; then 1895 cat <<\_ASBOX 1896## ----------- ## 1897## confdefs.h. ## 1898## ----------- ## 1899_ASBOX 1900 echo 1901 cat confdefs.h 1902 echo 1903 fi 1904 test "$ac_signal" != 0 && 1905 $as_echo "$as_me: caught signal $ac_signal" 1906 $as_echo "$as_me: exit $exit_status" 1907 } >&5 1908 rm -f core *.core core.conftest.* && 1909 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1910 exit $exit_status 1911' 0 1912for ac_signal in 1 2 13 15; do 1913 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1914done 1915ac_signal=0 1916 1917# confdefs.h avoids OS command line length limits that DEFS can exceed. 1918rm -f -r conftest* confdefs.h 1919 1920# Predefined preprocessor variables. 1921 1922cat >>confdefs.h <<_ACEOF 1923#define PACKAGE_NAME "$PACKAGE_NAME" 1924_ACEOF 1925 1926 1927cat >>confdefs.h <<_ACEOF 1928#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1929_ACEOF 1930 1931 1932cat >>confdefs.h <<_ACEOF 1933#define PACKAGE_VERSION "$PACKAGE_VERSION" 1934_ACEOF 1935 1936 1937cat >>confdefs.h <<_ACEOF 1938#define PACKAGE_STRING "$PACKAGE_STRING" 1939_ACEOF 1940 1941 1942cat >>confdefs.h <<_ACEOF 1943#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1944_ACEOF 1945 1946 1947# Let the site file select an alternate cache file if it wants to. 1948# Prefer an explicitly selected file to automatically selected ones. 1949ac_site_file1=NONE 1950ac_site_file2=NONE 1951if test -n "$CONFIG_SITE"; then 1952 ac_site_file1=$CONFIG_SITE 1953elif test "x$prefix" != xNONE; then 1954 ac_site_file1=$prefix/share/config.site 1955 ac_site_file2=$prefix/etc/config.site 1956else 1957 ac_site_file1=$ac_default_prefix/share/config.site 1958 ac_site_file2=$ac_default_prefix/etc/config.site 1959fi 1960for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1961do 1962 test "x$ac_site_file" = xNONE && continue 1963 if test -r "$ac_site_file"; then 1964 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1965$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1966 sed 's/^/| /' "$ac_site_file" >&5 1967 . "$ac_site_file" 1968 fi 1969done 1970 1971if test -r "$cache_file"; then 1972 # Some versions of bash will fail to source /dev/null (special 1973 # files actually), so we avoid doing that. 1974 if test -f "$cache_file"; then 1975 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1976$as_echo "$as_me: loading cache $cache_file" >&6;} 1977 case $cache_file in 1978 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1979 *) . "./$cache_file";; 1980 esac 1981 fi 1982else 1983 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1984$as_echo "$as_me: creating cache $cache_file" >&6;} 1985 >$cache_file 1986fi 1987 1988# Check that the precious variables saved in the cache have kept the same 1989# value. 1990ac_cache_corrupted=false 1991for ac_var in $ac_precious_vars; do 1992 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1993 eval ac_new_set=\$ac_env_${ac_var}_set 1994 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1995 eval ac_new_val=\$ac_env_${ac_var}_value 1996 case $ac_old_set,$ac_new_set in 1997 set,) 1998 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1999$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2000 ac_cache_corrupted=: ;; 2001 ,set) 2002 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2003$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2004 ac_cache_corrupted=: ;; 2005 ,);; 2006 *) 2007 if test "x$ac_old_val" != "x$ac_new_val"; then 2008 # differences in whitespace do not lead to failure. 2009 ac_old_val_w=`echo x $ac_old_val` 2010 ac_new_val_w=`echo x $ac_new_val` 2011 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2012 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2013$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2014 ac_cache_corrupted=: 2015 else 2016 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2017$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2018 eval $ac_var=\$ac_old_val 2019 fi 2020 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2021$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2022 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2023$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2024 fi;; 2025 esac 2026 # Pass precious variables to config.status. 2027 if test "$ac_new_set" = set; then 2028 case $ac_new_val in 2029 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2030 *) ac_arg=$ac_var=$ac_new_val ;; 2031 esac 2032 case " $ac_configure_args " in 2033 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2034 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2035 esac 2036 fi 2037done 2038if $ac_cache_corrupted; then 2039 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2040$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2041 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2042$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2043 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2044$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2045 { (exit 1); exit 1; }; } 2046fi 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072ac_ext=c 2073ac_cpp='$CPP $CPPFLAGS' 2074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2076ac_compiler_gnu=$ac_cv_c_compiler_gnu 2077 2078 2079am__api_version='1.11' 2080 2081ac_aux_dir= 2082for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2083 if test -f "$ac_dir/install-sh"; then 2084 ac_aux_dir=$ac_dir 2085 ac_install_sh="$ac_aux_dir/install-sh -c" 2086 break 2087 elif test -f "$ac_dir/install.sh"; then 2088 ac_aux_dir=$ac_dir 2089 ac_install_sh="$ac_aux_dir/install.sh -c" 2090 break 2091 elif test -f "$ac_dir/shtool"; then 2092 ac_aux_dir=$ac_dir 2093 ac_install_sh="$ac_aux_dir/shtool install -c" 2094 break 2095 fi 2096done 2097if test -z "$ac_aux_dir"; then 2098 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2099$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2100 { (exit 1); exit 1; }; } 2101fi 2102 2103# These three variables are undocumented and unsupported, 2104# and are intended to be withdrawn in a future Autoconf release. 2105# They can cause serious problems if a builder's source tree is in a directory 2106# whose full name contains unusual characters. 2107ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2108ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2109ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2110 2111 2112# Find a good install program. We prefer a C program (faster), 2113# so one script is as good as another. But avoid the broken or 2114# incompatible versions: 2115# SysV /etc/install, /usr/sbin/install 2116# SunOS /usr/etc/install 2117# IRIX /sbin/install 2118# AIX /bin/install 2119# AmigaOS /C/install, which installs bootblocks on floppy discs 2120# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2121# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2122# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2123# OS/2's system install, which has a completely different semantic 2124# ./install, which can be erroneously created by make from ./install.sh. 2125# Reject install programs that cannot install multiple files. 2126{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2127$as_echo_n "checking for a BSD-compatible install... " >&6; } 2128if test -z "$INSTALL"; then 2129if test "${ac_cv_path_install+set}" = set; then 2130 $as_echo_n "(cached) " >&6 2131else 2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2133for as_dir in $PATH 2134do 2135 IFS=$as_save_IFS 2136 test -z "$as_dir" && as_dir=. 2137 # Account for people who put trailing slashes in PATH elements. 2138case $as_dir/ in 2139 ./ | .// | /cC/* | \ 2140 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2141 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2142 /usr/ucb/* ) ;; 2143 *) 2144 # OSF1 and SCO ODT 3.0 have their own names for install. 2145 # Don't use installbsd from OSF since it installs stuff as root 2146 # by default. 2147 for ac_prog in ginstall scoinst install; do 2148 for ac_exec_ext in '' $ac_executable_extensions; do 2149 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2150 if test $ac_prog = install && 2151 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2152 # AIX install. It has an incompatible calling convention. 2153 : 2154 elif test $ac_prog = install && 2155 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2156 # program-specific install script used by HP pwplus--don't use. 2157 : 2158 else 2159 rm -rf conftest.one conftest.two conftest.dir 2160 echo one > conftest.one 2161 echo two > conftest.two 2162 mkdir conftest.dir 2163 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2164 test -s conftest.one && test -s conftest.two && 2165 test -s conftest.dir/conftest.one && 2166 test -s conftest.dir/conftest.two 2167 then 2168 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2169 break 3 2170 fi 2171 fi 2172 fi 2173 done 2174 done 2175 ;; 2176esac 2177 2178done 2179IFS=$as_save_IFS 2180 2181rm -rf conftest.one conftest.two conftest.dir 2182 2183fi 2184 if test "${ac_cv_path_install+set}" = set; then 2185 INSTALL=$ac_cv_path_install 2186 else 2187 # As a last resort, use the slow shell script. Don't cache a 2188 # value for INSTALL within a source directory, because that will 2189 # break other packages using the cache if that directory is 2190 # removed, or if the value is a relative name. 2191 INSTALL=$ac_install_sh 2192 fi 2193fi 2194{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2195$as_echo "$INSTALL" >&6; } 2196 2197# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2198# It thinks the first close brace ends the variable substitution. 2199test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2200 2201test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2202 2203test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2204 2205{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2206$as_echo_n "checking whether build environment is sane... " >&6; } 2207# Just in case 2208sleep 1 2209echo timestamp > conftest.file 2210# Reject unsafe characters in $srcdir or the absolute working directory 2211# name. Accept space and tab only in the latter. 2212am_lf=' 2213' 2214case `pwd` in 2215 *[\\\"\#\$\&\'\`$am_lf]*) 2216 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2217$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2218 { (exit 1); exit 1; }; };; 2219esac 2220case $srcdir in 2221 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2222 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2223$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2224 { (exit 1); exit 1; }; };; 2225esac 2226 2227# Do `set' in a subshell so we don't clobber the current shell's 2228# arguments. Must try -L first in case configure is actually a 2229# symlink; some systems play weird games with the mod time of symlinks 2230# (eg FreeBSD returns the mod time of the symlink's containing 2231# directory). 2232if ( 2233 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2234 if test "$*" = "X"; then 2235 # -L didn't work. 2236 set X `ls -t "$srcdir/configure" conftest.file` 2237 fi 2238 rm -f conftest.file 2239 if test "$*" != "X $srcdir/configure conftest.file" \ 2240 && test "$*" != "X conftest.file $srcdir/configure"; then 2241 2242 # If neither matched, then we have a broken ls. This can happen 2243 # if, for instance, CONFIG_SHELL is bash and it inherits a 2244 # broken ls alias from the environment. This has actually 2245 # happened. Such a system could not be considered "sane". 2246 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2247alias in your environment" >&5 2248$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2249alias in your environment" >&2;} 2250 { (exit 1); exit 1; }; } 2251 fi 2252 2253 test "$2" = conftest.file 2254 ) 2255then 2256 # Ok. 2257 : 2258else 2259 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2260Check your system clock" >&5 2261$as_echo "$as_me: error: newly created file is older than distributed files! 2262Check your system clock" >&2;} 2263 { (exit 1); exit 1; }; } 2264fi 2265{ $as_echo "$as_me:$LINENO: result: yes" >&5 2266$as_echo "yes" >&6; } 2267test "$program_prefix" != NONE && 2268 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2269# Use a double $ so make ignores it. 2270test "$program_suffix" != NONE && 2271 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2272# Double any \ or $. 2273# By default was `s,x,x', remove it if useless. 2274ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2275program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2276 2277# expand $ac_aux_dir to an absolute path 2278am_aux_dir=`cd $ac_aux_dir && pwd` 2279 2280if test x"${MISSING+set}" != xset; then 2281 case $am_aux_dir in 2282 *\ * | *\ *) 2283 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2284 *) 2285 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2286 esac 2287fi 2288# Use eval to expand $SHELL 2289if eval "$MISSING --run true"; then 2290 am_missing_run="$MISSING --run " 2291else 2292 am_missing_run= 2293 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2294$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2295fi 2296 2297if test x"${install_sh}" != xset; then 2298 case $am_aux_dir in 2299 *\ * | *\ *) 2300 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2301 *) 2302 install_sh="\${SHELL} $am_aux_dir/install-sh" 2303 esac 2304fi 2305 2306# Installed binaries are usually stripped using `strip' when the user 2307# run `make install-strip'. However `strip' might not be the right 2308# tool to use in cross-compilation environments, therefore Automake 2309# will honor the `STRIP' environment variable to overrule this program. 2310if test "$cross_compiling" != no; then 2311 if test -n "$ac_tool_prefix"; then 2312 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2313set dummy ${ac_tool_prefix}strip; ac_word=$2 2314{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2315$as_echo_n "checking for $ac_word... " >&6; } 2316if test "${ac_cv_prog_STRIP+set}" = set; then 2317 $as_echo_n "(cached) " >&6 2318else 2319 if test -n "$STRIP"; then 2320 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2321else 2322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2323for as_dir in $PATH 2324do 2325 IFS=$as_save_IFS 2326 test -z "$as_dir" && as_dir=. 2327 for ac_exec_ext in '' $ac_executable_extensions; do 2328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2329 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2330 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2331 break 2 2332 fi 2333done 2334done 2335IFS=$as_save_IFS 2336 2337fi 2338fi 2339STRIP=$ac_cv_prog_STRIP 2340if test -n "$STRIP"; then 2341 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2342$as_echo "$STRIP" >&6; } 2343else 2344 { $as_echo "$as_me:$LINENO: result: no" >&5 2345$as_echo "no" >&6; } 2346fi 2347 2348 2349fi 2350if test -z "$ac_cv_prog_STRIP"; then 2351 ac_ct_STRIP=$STRIP 2352 # Extract the first word of "strip", so it can be a program name with args. 2353set dummy strip; ac_word=$2 2354{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2355$as_echo_n "checking for $ac_word... " >&6; } 2356if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2357 $as_echo_n "(cached) " >&6 2358else 2359 if test -n "$ac_ct_STRIP"; then 2360 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2361else 2362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2363for as_dir in $PATH 2364do 2365 IFS=$as_save_IFS 2366 test -z "$as_dir" && as_dir=. 2367 for ac_exec_ext in '' $ac_executable_extensions; do 2368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2369 ac_cv_prog_ac_ct_STRIP="strip" 2370 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2371 break 2 2372 fi 2373done 2374done 2375IFS=$as_save_IFS 2376 2377fi 2378fi 2379ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2380if test -n "$ac_ct_STRIP"; then 2381 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2382$as_echo "$ac_ct_STRIP" >&6; } 2383else 2384 { $as_echo "$as_me:$LINENO: result: no" >&5 2385$as_echo "no" >&6; } 2386fi 2387 2388 if test "x$ac_ct_STRIP" = x; then 2389 STRIP=":" 2390 else 2391 case $cross_compiling:$ac_tool_warned in 2392yes:) 2393{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2395ac_tool_warned=yes ;; 2396esac 2397 STRIP=$ac_ct_STRIP 2398 fi 2399else 2400 STRIP="$ac_cv_prog_STRIP" 2401fi 2402 2403fi 2404INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2405 2406{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2407$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2408if test -z "$MKDIR_P"; then 2409 if test "${ac_cv_path_mkdir+set}" = set; then 2410 $as_echo_n "(cached) " >&6 2411else 2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2413for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2414do 2415 IFS=$as_save_IFS 2416 test -z "$as_dir" && as_dir=. 2417 for ac_prog in mkdir gmkdir; do 2418 for ac_exec_ext in '' $ac_executable_extensions; do 2419 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2420 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2421 'mkdir (GNU coreutils) '* | \ 2422 'mkdir (coreutils) '* | \ 2423 'mkdir (fileutils) '4.1*) 2424 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2425 break 3;; 2426 esac 2427 done 2428 done 2429done 2430IFS=$as_save_IFS 2431 2432fi 2433 2434 if test "${ac_cv_path_mkdir+set}" = set; then 2435 MKDIR_P="$ac_cv_path_mkdir -p" 2436 else 2437 # As a last resort, use the slow shell script. Don't cache a 2438 # value for MKDIR_P within a source directory, because that will 2439 # break other packages using the cache if that directory is 2440 # removed, or if the value is a relative name. 2441 test -d ./--version && rmdir ./--version 2442 MKDIR_P="$ac_install_sh -d" 2443 fi 2444fi 2445{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2446$as_echo "$MKDIR_P" >&6; } 2447 2448mkdir_p="$MKDIR_P" 2449case $mkdir_p in 2450 [\\/$]* | ?:[\\/]*) ;; 2451 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2452esac 2453 2454for ac_prog in gawk mawk nawk awk 2455do 2456 # Extract the first word of "$ac_prog", so it can be a program name with args. 2457set dummy $ac_prog; ac_word=$2 2458{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2459$as_echo_n "checking for $ac_word... " >&6; } 2460if test "${ac_cv_prog_AWK+set}" = set; then 2461 $as_echo_n "(cached) " >&6 2462else 2463 if test -n "$AWK"; then 2464 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2465else 2466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2467for as_dir in $PATH 2468do 2469 IFS=$as_save_IFS 2470 test -z "$as_dir" && as_dir=. 2471 for ac_exec_ext in '' $ac_executable_extensions; do 2472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2473 ac_cv_prog_AWK="$ac_prog" 2474 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2475 break 2 2476 fi 2477done 2478done 2479IFS=$as_save_IFS 2480 2481fi 2482fi 2483AWK=$ac_cv_prog_AWK 2484if test -n "$AWK"; then 2485 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2486$as_echo "$AWK" >&6; } 2487else 2488 { $as_echo "$as_me:$LINENO: result: no" >&5 2489$as_echo "no" >&6; } 2490fi 2491 2492 2493 test -n "$AWK" && break 2494done 2495 2496{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2497$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2498set x ${MAKE-make} 2499ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2500if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2501 $as_echo_n "(cached) " >&6 2502else 2503 cat >conftest.make <<\_ACEOF 2504SHELL = /bin/sh 2505all: 2506 @echo '@@@%%%=$(MAKE)=@@@%%%' 2507_ACEOF 2508# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2509case `${MAKE-make} -f conftest.make 2>/dev/null` in 2510 *@@@%%%=?*=@@@%%%*) 2511 eval ac_cv_prog_make_${ac_make}_set=yes;; 2512 *) 2513 eval ac_cv_prog_make_${ac_make}_set=no;; 2514esac 2515rm -f conftest.make 2516fi 2517if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2518 { $as_echo "$as_me:$LINENO: result: yes" >&5 2519$as_echo "yes" >&6; } 2520 SET_MAKE= 2521else 2522 { $as_echo "$as_me:$LINENO: result: no" >&5 2523$as_echo "no" >&6; } 2524 SET_MAKE="MAKE=${MAKE-make}" 2525fi 2526 2527rm -rf .tst 2>/dev/null 2528mkdir .tst 2>/dev/null 2529if test -d .tst; then 2530 am__leading_dot=. 2531else 2532 am__leading_dot=_ 2533fi 2534rmdir .tst 2>/dev/null 2535 2536if test "`cd $srcdir && pwd`" != "`pwd`"; then 2537 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2538 # is not polluted with repeated "-I." 2539 am__isrc=' -I$(srcdir)' 2540 # test to see if srcdir already configured 2541 if test -f $srcdir/config.status; then 2542 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2543$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2544 { (exit 1); exit 1; }; } 2545 fi 2546fi 2547 2548# test whether we have cygpath 2549if test -z "$CYGPATH_W"; then 2550 if (cygpath --version) >/dev/null 2>/dev/null; then 2551 CYGPATH_W='cygpath -w' 2552 else 2553 CYGPATH_W=echo 2554 fi 2555fi 2556 2557 2558# Define the identity of the package. 2559 PACKAGE='libpciaccess' 2560 VERSION='0.11.0' 2561 2562 2563cat >>confdefs.h <<_ACEOF 2564#define PACKAGE "$PACKAGE" 2565_ACEOF 2566 2567 2568cat >>confdefs.h <<_ACEOF 2569#define VERSION "$VERSION" 2570_ACEOF 2571 2572# Some tools Automake needs. 2573 2574ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2575 2576 2577AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2578 2579 2580AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2581 2582 2583AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2584 2585 2586MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2587 2588# We need awk for the "check" target. The system "awk" is bad on 2589# some platforms. 2590# Always define AMTAR for backward compatibility. 2591 2592AMTAR=${AMTAR-"${am_missing_run}tar"} 2593 2594am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2595 2596 2597 2598 2599 2600 2601{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2602$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2603 # Check whether --enable-maintainer-mode was given. 2604if test "${enable_maintainer_mode+set}" = set; then 2605 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2606else 2607 USE_MAINTAINER_MODE=no 2608fi 2609 2610 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2611$as_echo "$USE_MAINTAINER_MODE" >&6; } 2612 if test $USE_MAINTAINER_MODE = yes; then 2613 MAINTAINER_MODE_TRUE= 2614 MAINTAINER_MODE_FALSE='#' 2615else 2616 MAINTAINER_MODE_TRUE='#' 2617 MAINTAINER_MODE_FALSE= 2618fi 2619 2620 MAINT=$MAINTAINER_MODE_TRUE 2621 2622 2623 2624# Require xorg-macros: XORG_DEFAULT_OPTIONS 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636DEPDIR="${am__leading_dot}deps" 2637 2638ac_config_commands="$ac_config_commands depfiles" 2639 2640 2641am_make=${MAKE-make} 2642cat > confinc << 'END' 2643am__doit: 2644 @echo this is the am__doit target 2645.PHONY: am__doit 2646END 2647# If we don't find an include directive, just comment out the code. 2648{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2649$as_echo_n "checking for style of include used by $am_make... " >&6; } 2650am__include="#" 2651am__quote= 2652_am_result=none 2653# First try GNU make style include. 2654echo "include confinc" > confmf 2655# Ignore all kinds of additional output from `make'. 2656case `$am_make -s -f confmf 2> /dev/null` in #( 2657*the\ am__doit\ target*) 2658 am__include=include 2659 am__quote= 2660 _am_result=GNU 2661 ;; 2662esac 2663# Now try BSD make style include. 2664if test "$am__include" = "#"; then 2665 echo '.include "confinc"' > confmf 2666 case `$am_make -s -f confmf 2> /dev/null` in #( 2667 *the\ am__doit\ target*) 2668 am__include=.include 2669 am__quote="\"" 2670 _am_result=BSD 2671 ;; 2672 esac 2673fi 2674 2675 2676{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 2677$as_echo "$_am_result" >&6; } 2678rm -f confinc confmf 2679 2680# Check whether --enable-dependency-tracking was given. 2681if test "${enable_dependency_tracking+set}" = set; then 2682 enableval=$enable_dependency_tracking; 2683fi 2684 2685if test "x$enable_dependency_tracking" != xno; then 2686 am_depcomp="$ac_aux_dir/depcomp" 2687 AMDEPBACKSLASH='\' 2688fi 2689 if test "x$enable_dependency_tracking" != xno; then 2690 AMDEP_TRUE= 2691 AMDEP_FALSE='#' 2692else 2693 AMDEP_TRUE='#' 2694 AMDEP_FALSE= 2695fi 2696 2697 2698ac_ext=c 2699ac_cpp='$CPP $CPPFLAGS' 2700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2702ac_compiler_gnu=$ac_cv_c_compiler_gnu 2703if test -n "$ac_tool_prefix"; then 2704 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2705set dummy ${ac_tool_prefix}gcc; ac_word=$2 2706{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2707$as_echo_n "checking for $ac_word... " >&6; } 2708if test "${ac_cv_prog_CC+set}" = set; then 2709 $as_echo_n "(cached) " >&6 2710else 2711 if test -n "$CC"; then 2712 ac_cv_prog_CC="$CC" # Let the user override the test. 2713else 2714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2715for as_dir in $PATH 2716do 2717 IFS=$as_save_IFS 2718 test -z "$as_dir" && as_dir=. 2719 for ac_exec_ext in '' $ac_executable_extensions; do 2720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2721 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2722 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2723 break 2 2724 fi 2725done 2726done 2727IFS=$as_save_IFS 2728 2729fi 2730fi 2731CC=$ac_cv_prog_CC 2732if test -n "$CC"; then 2733 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2734$as_echo "$CC" >&6; } 2735else 2736 { $as_echo "$as_me:$LINENO: result: no" >&5 2737$as_echo "no" >&6; } 2738fi 2739 2740 2741fi 2742if test -z "$ac_cv_prog_CC"; then 2743 ac_ct_CC=$CC 2744 # Extract the first word of "gcc", so it can be a program name with args. 2745set dummy gcc; ac_word=$2 2746{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2747$as_echo_n "checking for $ac_word... " >&6; } 2748if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2749 $as_echo_n "(cached) " >&6 2750else 2751 if test -n "$ac_ct_CC"; then 2752 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2753else 2754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2755for as_dir in $PATH 2756do 2757 IFS=$as_save_IFS 2758 test -z "$as_dir" && as_dir=. 2759 for ac_exec_ext in '' $ac_executable_extensions; do 2760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2761 ac_cv_prog_ac_ct_CC="gcc" 2762 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2763 break 2 2764 fi 2765done 2766done 2767IFS=$as_save_IFS 2768 2769fi 2770fi 2771ac_ct_CC=$ac_cv_prog_ac_ct_CC 2772if test -n "$ac_ct_CC"; then 2773 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2774$as_echo "$ac_ct_CC" >&6; } 2775else 2776 { $as_echo "$as_me:$LINENO: result: no" >&5 2777$as_echo "no" >&6; } 2778fi 2779 2780 if test "x$ac_ct_CC" = x; then 2781 CC="" 2782 else 2783 case $cross_compiling:$ac_tool_warned in 2784yes:) 2785{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2787ac_tool_warned=yes ;; 2788esac 2789 CC=$ac_ct_CC 2790 fi 2791else 2792 CC="$ac_cv_prog_CC" 2793fi 2794 2795if test -z "$CC"; then 2796 if test -n "$ac_tool_prefix"; then 2797 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2798set dummy ${ac_tool_prefix}cc; ac_word=$2 2799{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2800$as_echo_n "checking for $ac_word... " >&6; } 2801if test "${ac_cv_prog_CC+set}" = set; then 2802 $as_echo_n "(cached) " >&6 2803else 2804 if test -n "$CC"; then 2805 ac_cv_prog_CC="$CC" # Let the user override the test. 2806else 2807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2808for as_dir in $PATH 2809do 2810 IFS=$as_save_IFS 2811 test -z "$as_dir" && as_dir=. 2812 for ac_exec_ext in '' $ac_executable_extensions; do 2813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2814 ac_cv_prog_CC="${ac_tool_prefix}cc" 2815 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2816 break 2 2817 fi 2818done 2819done 2820IFS=$as_save_IFS 2821 2822fi 2823fi 2824CC=$ac_cv_prog_CC 2825if test -n "$CC"; then 2826 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2827$as_echo "$CC" >&6; } 2828else 2829 { $as_echo "$as_me:$LINENO: result: no" >&5 2830$as_echo "no" >&6; } 2831fi 2832 2833 2834 fi 2835fi 2836if test -z "$CC"; then 2837 # Extract the first word of "cc", so it can be a program name with args. 2838set dummy cc; ac_word=$2 2839{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2840$as_echo_n "checking for $ac_word... " >&6; } 2841if test "${ac_cv_prog_CC+set}" = set; then 2842 $as_echo_n "(cached) " >&6 2843else 2844 if test -n "$CC"; then 2845 ac_cv_prog_CC="$CC" # Let the user override the test. 2846else 2847 ac_prog_rejected=no 2848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2849for as_dir in $PATH 2850do 2851 IFS=$as_save_IFS 2852 test -z "$as_dir" && as_dir=. 2853 for ac_exec_ext in '' $ac_executable_extensions; do 2854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2855 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2856 ac_prog_rejected=yes 2857 continue 2858 fi 2859 ac_cv_prog_CC="cc" 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 2867if test $ac_prog_rejected = yes; then 2868 # We found a bogon in the path, so make sure we never use it. 2869 set dummy $ac_cv_prog_CC 2870 shift 2871 if test $# != 0; then 2872 # We chose a different compiler from the bogus one. 2873 # However, it has the same basename, so the bogon will be chosen 2874 # first if we set CC to just the basename; use the full file name. 2875 shift 2876 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2877 fi 2878fi 2879fi 2880fi 2881CC=$ac_cv_prog_CC 2882if test -n "$CC"; then 2883 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2884$as_echo "$CC" >&6; } 2885else 2886 { $as_echo "$as_me:$LINENO: result: no" >&5 2887$as_echo "no" >&6; } 2888fi 2889 2890 2891fi 2892if test -z "$CC"; then 2893 if test -n "$ac_tool_prefix"; then 2894 for ac_prog in cl.exe 2895 do 2896 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2897set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2898{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2899$as_echo_n "checking for $ac_word... " >&6; } 2900if test "${ac_cv_prog_CC+set}" = set; then 2901 $as_echo_n "(cached) " >&6 2902else 2903 if test -n "$CC"; then 2904 ac_cv_prog_CC="$CC" # Let the user override the test. 2905else 2906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2907for as_dir in $PATH 2908do 2909 IFS=$as_save_IFS 2910 test -z "$as_dir" && as_dir=. 2911 for ac_exec_ext in '' $ac_executable_extensions; do 2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2913 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2914 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2915 break 2 2916 fi 2917done 2918done 2919IFS=$as_save_IFS 2920 2921fi 2922fi 2923CC=$ac_cv_prog_CC 2924if test -n "$CC"; then 2925 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2926$as_echo "$CC" >&6; } 2927else 2928 { $as_echo "$as_me:$LINENO: result: no" >&5 2929$as_echo "no" >&6; } 2930fi 2931 2932 2933 test -n "$CC" && break 2934 done 2935fi 2936if test -z "$CC"; then 2937 ac_ct_CC=$CC 2938 for ac_prog in cl.exe 2939do 2940 # Extract the first word of "$ac_prog", so it can be a program name with args. 2941set dummy $ac_prog; ac_word=$2 2942{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2943$as_echo_n "checking for $ac_word... " >&6; } 2944if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2945 $as_echo_n "(cached) " >&6 2946else 2947 if test -n "$ac_ct_CC"; then 2948 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2949else 2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2951for as_dir in $PATH 2952do 2953 IFS=$as_save_IFS 2954 test -z "$as_dir" && as_dir=. 2955 for ac_exec_ext in '' $ac_executable_extensions; do 2956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2957 ac_cv_prog_ac_ct_CC="$ac_prog" 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 2965fi 2966fi 2967ac_ct_CC=$ac_cv_prog_ac_ct_CC 2968if test -n "$ac_ct_CC"; then 2969 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2970$as_echo "$ac_ct_CC" >&6; } 2971else 2972 { $as_echo "$as_me:$LINENO: result: no" >&5 2973$as_echo "no" >&6; } 2974fi 2975 2976 2977 test -n "$ac_ct_CC" && break 2978done 2979 2980 if test "x$ac_ct_CC" = x; then 2981 CC="" 2982 else 2983 case $cross_compiling:$ac_tool_warned in 2984yes:) 2985{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2986$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2987ac_tool_warned=yes ;; 2988esac 2989 CC=$ac_ct_CC 2990 fi 2991fi 2992 2993fi 2994 2995 2996test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2998{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2999See \`config.log' for more details." >&5 3000$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3001See \`config.log' for more details." >&2;} 3002 { (exit 1); exit 1; }; }; } 3003 3004# Provide some information about the compiler. 3005$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3006set X $ac_compile 3007ac_compiler=$2 3008{ (ac_try="$ac_compiler --version >&5" 3009case "(($ac_try" in 3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3011 *) ac_try_echo=$ac_try;; 3012esac 3013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3014$as_echo "$ac_try_echo") >&5 3015 (eval "$ac_compiler --version >&5") 2>&5 3016 ac_status=$? 3017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3018 (exit $ac_status); } 3019{ (ac_try="$ac_compiler -v >&5" 3020case "(($ac_try" in 3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3022 *) ac_try_echo=$ac_try;; 3023esac 3024eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3025$as_echo "$ac_try_echo") >&5 3026 (eval "$ac_compiler -v >&5") 2>&5 3027 ac_status=$? 3028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3029 (exit $ac_status); } 3030{ (ac_try="$ac_compiler -V >&5" 3031case "(($ac_try" in 3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3033 *) ac_try_echo=$ac_try;; 3034esac 3035eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3036$as_echo "$ac_try_echo") >&5 3037 (eval "$ac_compiler -V >&5") 2>&5 3038 ac_status=$? 3039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3040 (exit $ac_status); } 3041 3042cat >conftest.$ac_ext <<_ACEOF 3043/* confdefs.h. */ 3044_ACEOF 3045cat confdefs.h >>conftest.$ac_ext 3046cat >>conftest.$ac_ext <<_ACEOF 3047/* end confdefs.h. */ 3048 3049int 3050main () 3051{ 3052 3053 ; 3054 return 0; 3055} 3056_ACEOF 3057ac_clean_files_save=$ac_clean_files 3058ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3059# Try to create an executable without -o first, disregard a.out. 3060# It will help us diagnose broken compilers, and finding out an intuition 3061# of exeext. 3062{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3063$as_echo_n "checking for C compiler default output file name... " >&6; } 3064ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3065 3066# The possible output files: 3067ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3068 3069ac_rmfiles= 3070for ac_file in $ac_files 3071do 3072 case $ac_file in 3073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3074 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3075 esac 3076done 3077rm -f $ac_rmfiles 3078 3079if { (ac_try="$ac_link_default" 3080case "(($ac_try" in 3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3082 *) ac_try_echo=$ac_try;; 3083esac 3084eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3085$as_echo "$ac_try_echo") >&5 3086 (eval "$ac_link_default") 2>&5 3087 ac_status=$? 3088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3089 (exit $ac_status); }; then 3090 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3091# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3092# in a Makefile. We should not override ac_cv_exeext if it was cached, 3093# so that the user can short-circuit this test for compilers unknown to 3094# Autoconf. 3095for ac_file in $ac_files '' 3096do 3097 test -f "$ac_file" || continue 3098 case $ac_file in 3099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3100 ;; 3101 [ab].out ) 3102 # We found the default executable, but exeext='' is most 3103 # certainly right. 3104 break;; 3105 *.* ) 3106 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3107 then :; else 3108 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3109 fi 3110 # We set ac_cv_exeext here because the later test for it is not 3111 # safe: cross compilers may not add the suffix if given an `-o' 3112 # argument, so we may need to know it at that point already. 3113 # Even if this section looks crufty: it has the advantage of 3114 # actually working. 3115 break;; 3116 * ) 3117 break;; 3118 esac 3119done 3120test "$ac_cv_exeext" = no && ac_cv_exeext= 3121 3122else 3123 ac_file='' 3124fi 3125 3126{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3127$as_echo "$ac_file" >&6; } 3128if test -z "$ac_file"; then 3129 $as_echo "$as_me: failed program was:" >&5 3130sed 's/^/| /' conftest.$ac_ext >&5 3131 3132{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3134{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3135See \`config.log' for more details." >&5 3136$as_echo "$as_me: error: C compiler cannot create executables 3137See \`config.log' for more details." >&2;} 3138 { (exit 77); exit 77; }; }; } 3139fi 3140 3141ac_exeext=$ac_cv_exeext 3142 3143# Check that the compiler produces executables we can run. If not, either 3144# the compiler is broken, or we cross compile. 3145{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3146$as_echo_n "checking whether the C compiler works... " >&6; } 3147# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3148# If not cross compiling, check that we can run a simple program. 3149if test "$cross_compiling" != yes; then 3150 if { ac_try='./$ac_file' 3151 { (case "(($ac_try" in 3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3153 *) ac_try_echo=$ac_try;; 3154esac 3155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3156$as_echo "$ac_try_echo") >&5 3157 (eval "$ac_try") 2>&5 3158 ac_status=$? 3159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3160 (exit $ac_status); }; }; then 3161 cross_compiling=no 3162 else 3163 if test "$cross_compiling" = maybe; then 3164 cross_compiling=yes 3165 else 3166 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3167$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3168{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3169If you meant to cross compile, use \`--host'. 3170See \`config.log' for more details." >&5 3171$as_echo "$as_me: error: cannot run C compiled programs. 3172If you meant to cross compile, use \`--host'. 3173See \`config.log' for more details." >&2;} 3174 { (exit 1); exit 1; }; }; } 3175 fi 3176 fi 3177fi 3178{ $as_echo "$as_me:$LINENO: result: yes" >&5 3179$as_echo "yes" >&6; } 3180 3181rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3182ac_clean_files=$ac_clean_files_save 3183# Check that the compiler produces executables we can run. If not, either 3184# the compiler is broken, or we cross compile. 3185{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3186$as_echo_n "checking whether we are cross compiling... " >&6; } 3187{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3188$as_echo "$cross_compiling" >&6; } 3189 3190{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3191$as_echo_n "checking for suffix of executables... " >&6; } 3192if { (ac_try="$ac_link" 3193case "(($ac_try" in 3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3195 *) ac_try_echo=$ac_try;; 3196esac 3197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3198$as_echo "$ac_try_echo") >&5 3199 (eval "$ac_link") 2>&5 3200 ac_status=$? 3201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3202 (exit $ac_status); }; then 3203 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3204# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3205# work properly (i.e., refer to `conftest.exe'), while it won't with 3206# `rm'. 3207for ac_file in conftest.exe conftest conftest.*; do 3208 test -f "$ac_file" || continue 3209 case $ac_file in 3210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3211 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3212 break;; 3213 * ) break;; 3214 esac 3215done 3216else 3217 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3219{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3220See \`config.log' for more details." >&5 3221$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3222See \`config.log' for more details." >&2;} 3223 { (exit 1); exit 1; }; }; } 3224fi 3225 3226rm -f conftest$ac_cv_exeext 3227{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3228$as_echo "$ac_cv_exeext" >&6; } 3229 3230rm -f conftest.$ac_ext 3231EXEEXT=$ac_cv_exeext 3232ac_exeext=$EXEEXT 3233{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3234$as_echo_n "checking for suffix of object files... " >&6; } 3235if test "${ac_cv_objext+set}" = set; then 3236 $as_echo_n "(cached) " >&6 3237else 3238 cat >conftest.$ac_ext <<_ACEOF 3239/* confdefs.h. */ 3240_ACEOF 3241cat confdefs.h >>conftest.$ac_ext 3242cat >>conftest.$ac_ext <<_ACEOF 3243/* end confdefs.h. */ 3244 3245int 3246main () 3247{ 3248 3249 ; 3250 return 0; 3251} 3252_ACEOF 3253rm -f conftest.o conftest.obj 3254if { (ac_try="$ac_compile" 3255case "(($ac_try" in 3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3257 *) ac_try_echo=$ac_try;; 3258esac 3259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3260$as_echo "$ac_try_echo") >&5 3261 (eval "$ac_compile") 2>&5 3262 ac_status=$? 3263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3264 (exit $ac_status); }; then 3265 for ac_file in conftest.o conftest.obj conftest.*; do 3266 test -f "$ac_file" || continue; 3267 case $ac_file in 3268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3269 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3270 break;; 3271 esac 3272done 3273else 3274 $as_echo "$as_me: failed program was:" >&5 3275sed 's/^/| /' conftest.$ac_ext >&5 3276 3277{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3279{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3280See \`config.log' for more details." >&5 3281$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3282See \`config.log' for more details." >&2;} 3283 { (exit 1); exit 1; }; }; } 3284fi 3285 3286rm -f conftest.$ac_cv_objext conftest.$ac_ext 3287fi 3288{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3289$as_echo "$ac_cv_objext" >&6; } 3290OBJEXT=$ac_cv_objext 3291ac_objext=$OBJEXT 3292{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3293$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3294if test "${ac_cv_c_compiler_gnu+set}" = set; then 3295 $as_echo_n "(cached) " >&6 3296else 3297 cat >conftest.$ac_ext <<_ACEOF 3298/* confdefs.h. */ 3299_ACEOF 3300cat confdefs.h >>conftest.$ac_ext 3301cat >>conftest.$ac_ext <<_ACEOF 3302/* end confdefs.h. */ 3303 3304int 3305main () 3306{ 3307#ifndef __GNUC__ 3308 choke me 3309#endif 3310 3311 ; 3312 return 0; 3313} 3314_ACEOF 3315rm -f conftest.$ac_objext 3316if { (ac_try="$ac_compile" 3317case "(($ac_try" in 3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3319 *) ac_try_echo=$ac_try;; 3320esac 3321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3322$as_echo "$ac_try_echo") >&5 3323 (eval "$ac_compile") 2>conftest.er1 3324 ac_status=$? 3325 grep -v '^ *+' conftest.er1 >conftest.err 3326 rm -f conftest.er1 3327 cat conftest.err >&5 3328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3329 (exit $ac_status); } && { 3330 test -z "$ac_c_werror_flag" || 3331 test ! -s conftest.err 3332 } && test -s conftest.$ac_objext; then 3333 ac_compiler_gnu=yes 3334else 3335 $as_echo "$as_me: failed program was:" >&5 3336sed 's/^/| /' conftest.$ac_ext >&5 3337 3338 ac_compiler_gnu=no 3339fi 3340 3341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3342ac_cv_c_compiler_gnu=$ac_compiler_gnu 3343 3344fi 3345{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3346$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3347if test $ac_compiler_gnu = yes; then 3348 GCC=yes 3349else 3350 GCC= 3351fi 3352ac_test_CFLAGS=${CFLAGS+set} 3353ac_save_CFLAGS=$CFLAGS 3354{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3355$as_echo_n "checking whether $CC accepts -g... " >&6; } 3356if test "${ac_cv_prog_cc_g+set}" = set; then 3357 $as_echo_n "(cached) " >&6 3358else 3359 ac_save_c_werror_flag=$ac_c_werror_flag 3360 ac_c_werror_flag=yes 3361 ac_cv_prog_cc_g=no 3362 CFLAGS="-g" 3363 cat >conftest.$ac_ext <<_ACEOF 3364/* confdefs.h. */ 3365_ACEOF 3366cat confdefs.h >>conftest.$ac_ext 3367cat >>conftest.$ac_ext <<_ACEOF 3368/* end confdefs.h. */ 3369 3370int 3371main () 3372{ 3373 3374 ; 3375 return 0; 3376} 3377_ACEOF 3378rm -f conftest.$ac_objext 3379if { (ac_try="$ac_compile" 3380case "(($ac_try" in 3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3382 *) ac_try_echo=$ac_try;; 3383esac 3384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3385$as_echo "$ac_try_echo") >&5 3386 (eval "$ac_compile") 2>conftest.er1 3387 ac_status=$? 3388 grep -v '^ *+' conftest.er1 >conftest.err 3389 rm -f conftest.er1 3390 cat conftest.err >&5 3391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3392 (exit $ac_status); } && { 3393 test -z "$ac_c_werror_flag" || 3394 test ! -s conftest.err 3395 } && test -s conftest.$ac_objext; then 3396 ac_cv_prog_cc_g=yes 3397else 3398 $as_echo "$as_me: failed program was:" >&5 3399sed 's/^/| /' conftest.$ac_ext >&5 3400 3401 CFLAGS="" 3402 cat >conftest.$ac_ext <<_ACEOF 3403/* confdefs.h. */ 3404_ACEOF 3405cat confdefs.h >>conftest.$ac_ext 3406cat >>conftest.$ac_ext <<_ACEOF 3407/* end confdefs.h. */ 3408 3409int 3410main () 3411{ 3412 3413 ; 3414 return 0; 3415} 3416_ACEOF 3417rm -f conftest.$ac_objext 3418if { (ac_try="$ac_compile" 3419case "(($ac_try" in 3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3421 *) ac_try_echo=$ac_try;; 3422esac 3423eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3424$as_echo "$ac_try_echo") >&5 3425 (eval "$ac_compile") 2>conftest.er1 3426 ac_status=$? 3427 grep -v '^ *+' conftest.er1 >conftest.err 3428 rm -f conftest.er1 3429 cat conftest.err >&5 3430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3431 (exit $ac_status); } && { 3432 test -z "$ac_c_werror_flag" || 3433 test ! -s conftest.err 3434 } && test -s conftest.$ac_objext; then 3435 : 3436else 3437 $as_echo "$as_me: failed program was:" >&5 3438sed 's/^/| /' conftest.$ac_ext >&5 3439 3440 ac_c_werror_flag=$ac_save_c_werror_flag 3441 CFLAGS="-g" 3442 cat >conftest.$ac_ext <<_ACEOF 3443/* confdefs.h. */ 3444_ACEOF 3445cat confdefs.h >>conftest.$ac_ext 3446cat >>conftest.$ac_ext <<_ACEOF 3447/* end confdefs.h. */ 3448 3449int 3450main () 3451{ 3452 3453 ; 3454 return 0; 3455} 3456_ACEOF 3457rm -f conftest.$ac_objext 3458if { (ac_try="$ac_compile" 3459case "(($ac_try" in 3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3461 *) ac_try_echo=$ac_try;; 3462esac 3463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3464$as_echo "$ac_try_echo") >&5 3465 (eval "$ac_compile") 2>conftest.er1 3466 ac_status=$? 3467 grep -v '^ *+' conftest.er1 >conftest.err 3468 rm -f conftest.er1 3469 cat conftest.err >&5 3470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3471 (exit $ac_status); } && { 3472 test -z "$ac_c_werror_flag" || 3473 test ! -s conftest.err 3474 } && test -s conftest.$ac_objext; then 3475 ac_cv_prog_cc_g=yes 3476else 3477 $as_echo "$as_me: failed program was:" >&5 3478sed 's/^/| /' conftest.$ac_ext >&5 3479 3480 3481fi 3482 3483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3484fi 3485 3486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3487fi 3488 3489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3490 ac_c_werror_flag=$ac_save_c_werror_flag 3491fi 3492{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3493$as_echo "$ac_cv_prog_cc_g" >&6; } 3494if test "$ac_test_CFLAGS" = set; then 3495 CFLAGS=$ac_save_CFLAGS 3496elif test $ac_cv_prog_cc_g = yes; then 3497 if test "$GCC" = yes; then 3498 CFLAGS="-g -O2" 3499 else 3500 CFLAGS="-g" 3501 fi 3502else 3503 if test "$GCC" = yes; then 3504 CFLAGS="-O2" 3505 else 3506 CFLAGS= 3507 fi 3508fi 3509{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3510$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3511if test "${ac_cv_prog_cc_c89+set}" = set; then 3512 $as_echo_n "(cached) " >&6 3513else 3514 ac_cv_prog_cc_c89=no 3515ac_save_CC=$CC 3516cat >conftest.$ac_ext <<_ACEOF 3517/* confdefs.h. */ 3518_ACEOF 3519cat confdefs.h >>conftest.$ac_ext 3520cat >>conftest.$ac_ext <<_ACEOF 3521/* end confdefs.h. */ 3522#include <stdarg.h> 3523#include <stdio.h> 3524#include <sys/types.h> 3525#include <sys/stat.h> 3526/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3527struct buf { int x; }; 3528FILE * (*rcsopen) (struct buf *, struct stat *, int); 3529static char *e (p, i) 3530 char **p; 3531 int i; 3532{ 3533 return p[i]; 3534} 3535static char *f (char * (*g) (char **, int), char **p, ...) 3536{ 3537 char *s; 3538 va_list v; 3539 va_start (v,p); 3540 s = g (p, va_arg (v,int)); 3541 va_end (v); 3542 return s; 3543} 3544 3545/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3546 function prototypes and stuff, but not '\xHH' hex character constants. 3547 These don't provoke an error unfortunately, instead are silently treated 3548 as 'x'. The following induces an error, until -std is added to get 3549 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3550 array size at least. It's necessary to write '\x00'==0 to get something 3551 that's true only with -std. */ 3552int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3553 3554/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3555 inside strings and character constants. */ 3556#define FOO(x) 'x' 3557int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3558 3559int test (int i, double x); 3560struct s1 {int (*f) (int a);}; 3561struct s2 {int (*f) (double a);}; 3562int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3563int argc; 3564char **argv; 3565int 3566main () 3567{ 3568return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3569 ; 3570 return 0; 3571} 3572_ACEOF 3573for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3574 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3575do 3576 CC="$ac_save_CC $ac_arg" 3577 rm -f conftest.$ac_objext 3578if { (ac_try="$ac_compile" 3579case "(($ac_try" in 3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3581 *) ac_try_echo=$ac_try;; 3582esac 3583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3584$as_echo "$ac_try_echo") >&5 3585 (eval "$ac_compile") 2>conftest.er1 3586 ac_status=$? 3587 grep -v '^ *+' conftest.er1 >conftest.err 3588 rm -f conftest.er1 3589 cat conftest.err >&5 3590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3591 (exit $ac_status); } && { 3592 test -z "$ac_c_werror_flag" || 3593 test ! -s conftest.err 3594 } && test -s conftest.$ac_objext; then 3595 ac_cv_prog_cc_c89=$ac_arg 3596else 3597 $as_echo "$as_me: failed program was:" >&5 3598sed 's/^/| /' conftest.$ac_ext >&5 3599 3600 3601fi 3602 3603rm -f core conftest.err conftest.$ac_objext 3604 test "x$ac_cv_prog_cc_c89" != "xno" && break 3605done 3606rm -f conftest.$ac_ext 3607CC=$ac_save_CC 3608 3609fi 3610# AC_CACHE_VAL 3611case "x$ac_cv_prog_cc_c89" in 3612 x) 3613 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3614$as_echo "none needed" >&6; } ;; 3615 xno) 3616 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3617$as_echo "unsupported" >&6; } ;; 3618 *) 3619 CC="$CC $ac_cv_prog_cc_c89" 3620 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3621$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3622esac 3623 3624 3625ac_ext=c 3626ac_cpp='$CPP $CPPFLAGS' 3627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3629ac_compiler_gnu=$ac_cv_c_compiler_gnu 3630 3631depcc="$CC" am_compiler_list= 3632 3633{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3634$as_echo_n "checking dependency style of $depcc... " >&6; } 3635if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3636 $as_echo_n "(cached) " >&6 3637else 3638 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3639 # We make a subdir and do the tests there. Otherwise we can end up 3640 # making bogus files that we don't know about and never remove. For 3641 # instance it was reported that on HP-UX the gcc test will end up 3642 # making a dummy file named `D' -- because `-MD' means `put the output 3643 # in D'. 3644 mkdir conftest.dir 3645 # Copy depcomp to subdir because otherwise we won't find it if we're 3646 # using a relative directory. 3647 cp "$am_depcomp" conftest.dir 3648 cd conftest.dir 3649 # We will build objects and dependencies in a subdirectory because 3650 # it helps to detect inapplicable dependency modes. For instance 3651 # both Tru64's cc and ICC support -MD to output dependencies as a 3652 # side effect of compilation, but ICC will put the dependencies in 3653 # the current directory while Tru64 will put them in the object 3654 # directory. 3655 mkdir sub 3656 3657 am_cv_CC_dependencies_compiler_type=none 3658 if test "$am_compiler_list" = ""; then 3659 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3660 fi 3661 am__universal=false 3662 case " $depcc " in #( 3663 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3664 esac 3665 3666 for depmode in $am_compiler_list; do 3667 # Setup a source with many dependencies, because some compilers 3668 # like to wrap large dependency lists on column 80 (with \), and 3669 # we should not choose a depcomp mode which is confused by this. 3670 # 3671 # We need to recreate these files for each test, as the compiler may 3672 # overwrite some of them when testing with obscure command lines. 3673 # This happens at least with the AIX C compiler. 3674 : > sub/conftest.c 3675 for i in 1 2 3 4 5 6; do 3676 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3677 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3678 # Solaris 8's {/usr,}/bin/sh. 3679 touch sub/conftst$i.h 3680 done 3681 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3682 3683 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3684 # mode. It turns out that the SunPro C++ compiler does not properly 3685 # handle `-M -o', and we need to detect this. Also, some Intel 3686 # versions had trouble with output in subdirs 3687 am__obj=sub/conftest.${OBJEXT-o} 3688 am__minus_obj="-o $am__obj" 3689 case $depmode in 3690 gcc) 3691 # This depmode causes a compiler race in universal mode. 3692 test "$am__universal" = false || continue 3693 ;; 3694 nosideeffect) 3695 # after this tag, mechanisms are not by side-effect, so they'll 3696 # only be used when explicitly requested 3697 if test "x$enable_dependency_tracking" = xyes; then 3698 continue 3699 else 3700 break 3701 fi 3702 ;; 3703 msvisualcpp | msvcmsys) 3704 # This compiler won't grok `-c -o', but also, the minuso test has 3705 # not run yet. These depmodes are late enough in the game, and 3706 # so weak that their functioning should not be impacted. 3707 am__obj=conftest.${OBJEXT-o} 3708 am__minus_obj= 3709 ;; 3710 none) break ;; 3711 esac 3712 if depmode=$depmode \ 3713 source=sub/conftest.c object=$am__obj \ 3714 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3715 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3716 >/dev/null 2>conftest.err && 3717 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3718 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3719 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3720 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3721 # icc doesn't choke on unknown options, it will just issue warnings 3722 # or remarks (even with -Werror). So we grep stderr for any message 3723 # that says an option was ignored or not supported. 3724 # When given -MP, icc 7.0 and 7.1 complain thusly: 3725 # icc: Command line warning: ignoring option '-M'; no argument required 3726 # The diagnosis changed in icc 8.0: 3727 # icc: Command line remark: option '-MP' not supported 3728 if (grep 'ignoring option' conftest.err || 3729 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3730 am_cv_CC_dependencies_compiler_type=$depmode 3731 break 3732 fi 3733 fi 3734 done 3735 3736 cd .. 3737 rm -rf conftest.dir 3738else 3739 am_cv_CC_dependencies_compiler_type=none 3740fi 3741 3742fi 3743{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3744$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3745CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3746 3747 if 3748 test "x$enable_dependency_tracking" != xno \ 3749 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3750 am__fastdepCC_TRUE= 3751 am__fastdepCC_FALSE='#' 3752else 3753 am__fastdepCC_TRUE='#' 3754 am__fastdepCC_FALSE= 3755fi 3756 3757 3758 3759ac_ext=c 3760ac_cpp='$CPP $CPPFLAGS' 3761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3763ac_compiler_gnu=$ac_cv_c_compiler_gnu 3764{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3765$as_echo_n "checking how to run the C preprocessor... " >&6; } 3766# On Suns, sometimes $CPP names a directory. 3767if test -n "$CPP" && test -d "$CPP"; then 3768 CPP= 3769fi 3770if test -z "$CPP"; then 3771 if test "${ac_cv_prog_CPP+set}" = set; then 3772 $as_echo_n "(cached) " >&6 3773else 3774 # Double quotes because CPP needs to be expanded 3775 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3776 do 3777 ac_preproc_ok=false 3778for ac_c_preproc_warn_flag in '' yes 3779do 3780 # Use a header file that comes with gcc, so configuring glibc 3781 # with a fresh cross-compiler works. 3782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3783 # <limits.h> exists even on freestanding compilers. 3784 # On the NeXT, cc -E runs the code through the compiler's parser, 3785 # not just through cpp. "Syntax error" is here to catch this case. 3786 cat >conftest.$ac_ext <<_ACEOF 3787/* confdefs.h. */ 3788_ACEOF 3789cat confdefs.h >>conftest.$ac_ext 3790cat >>conftest.$ac_ext <<_ACEOF 3791/* end confdefs.h. */ 3792#ifdef __STDC__ 3793# include <limits.h> 3794#else 3795# include <assert.h> 3796#endif 3797 Syntax error 3798_ACEOF 3799if { (ac_try="$ac_cpp conftest.$ac_ext" 3800case "(($ac_try" in 3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3802 *) ac_try_echo=$ac_try;; 3803esac 3804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3805$as_echo "$ac_try_echo") >&5 3806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3807 ac_status=$? 3808 grep -v '^ *+' conftest.er1 >conftest.err 3809 rm -f conftest.er1 3810 cat conftest.err >&5 3811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3812 (exit $ac_status); } >/dev/null && { 3813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3814 test ! -s conftest.err 3815 }; then 3816 : 3817else 3818 $as_echo "$as_me: failed program was:" >&5 3819sed 's/^/| /' conftest.$ac_ext >&5 3820 3821 # Broken: fails on valid input. 3822continue 3823fi 3824 3825rm -f conftest.err conftest.$ac_ext 3826 3827 # OK, works on sane cases. Now check whether nonexistent headers 3828 # can be detected and how. 3829 cat >conftest.$ac_ext <<_ACEOF 3830/* confdefs.h. */ 3831_ACEOF 3832cat confdefs.h >>conftest.$ac_ext 3833cat >>conftest.$ac_ext <<_ACEOF 3834/* end confdefs.h. */ 3835#include <ac_nonexistent.h> 3836_ACEOF 3837if { (ac_try="$ac_cpp conftest.$ac_ext" 3838case "(($ac_try" in 3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3840 *) ac_try_echo=$ac_try;; 3841esac 3842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3843$as_echo "$ac_try_echo") >&5 3844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3845 ac_status=$? 3846 grep -v '^ *+' conftest.er1 >conftest.err 3847 rm -f conftest.er1 3848 cat conftest.err >&5 3849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3850 (exit $ac_status); } >/dev/null && { 3851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3852 test ! -s conftest.err 3853 }; then 3854 # Broken: success on invalid input. 3855continue 3856else 3857 $as_echo "$as_me: failed program was:" >&5 3858sed 's/^/| /' conftest.$ac_ext >&5 3859 3860 # Passes both tests. 3861ac_preproc_ok=: 3862break 3863fi 3864 3865rm -f conftest.err conftest.$ac_ext 3866 3867done 3868# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3869rm -f conftest.err conftest.$ac_ext 3870if $ac_preproc_ok; then 3871 break 3872fi 3873 3874 done 3875 ac_cv_prog_CPP=$CPP 3876 3877fi 3878 CPP=$ac_cv_prog_CPP 3879else 3880 ac_cv_prog_CPP=$CPP 3881fi 3882{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 3883$as_echo "$CPP" >&6; } 3884ac_preproc_ok=false 3885for ac_c_preproc_warn_flag in '' yes 3886do 3887 # Use a header file that comes with gcc, so configuring glibc 3888 # with a fresh cross-compiler works. 3889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3890 # <limits.h> exists even on freestanding compilers. 3891 # On the NeXT, cc -E runs the code through the compiler's parser, 3892 # not just through cpp. "Syntax error" is here to catch this case. 3893 cat >conftest.$ac_ext <<_ACEOF 3894/* confdefs.h. */ 3895_ACEOF 3896cat confdefs.h >>conftest.$ac_ext 3897cat >>conftest.$ac_ext <<_ACEOF 3898/* end confdefs.h. */ 3899#ifdef __STDC__ 3900# include <limits.h> 3901#else 3902# include <assert.h> 3903#endif 3904 Syntax error 3905_ACEOF 3906if { (ac_try="$ac_cpp conftest.$ac_ext" 3907case "(($ac_try" in 3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3909 *) ac_try_echo=$ac_try;; 3910esac 3911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3912$as_echo "$ac_try_echo") >&5 3913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3914 ac_status=$? 3915 grep -v '^ *+' conftest.er1 >conftest.err 3916 rm -f conftest.er1 3917 cat conftest.err >&5 3918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3919 (exit $ac_status); } >/dev/null && { 3920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3921 test ! -s conftest.err 3922 }; then 3923 : 3924else 3925 $as_echo "$as_me: failed program was:" >&5 3926sed 's/^/| /' conftest.$ac_ext >&5 3927 3928 # Broken: fails on valid input. 3929continue 3930fi 3931 3932rm -f conftest.err conftest.$ac_ext 3933 3934 # OK, works on sane cases. Now check whether nonexistent headers 3935 # can be detected and how. 3936 cat >conftest.$ac_ext <<_ACEOF 3937/* confdefs.h. */ 3938_ACEOF 3939cat confdefs.h >>conftest.$ac_ext 3940cat >>conftest.$ac_ext <<_ACEOF 3941/* end confdefs.h. */ 3942#include <ac_nonexistent.h> 3943_ACEOF 3944if { (ac_try="$ac_cpp conftest.$ac_ext" 3945case "(($ac_try" in 3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3947 *) ac_try_echo=$ac_try;; 3948esac 3949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3950$as_echo "$ac_try_echo") >&5 3951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3952 ac_status=$? 3953 grep -v '^ *+' conftest.er1 >conftest.err 3954 rm -f conftest.er1 3955 cat conftest.err >&5 3956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3957 (exit $ac_status); } >/dev/null && { 3958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3959 test ! -s conftest.err 3960 }; then 3961 # Broken: success on invalid input. 3962continue 3963else 3964 $as_echo "$as_me: failed program was:" >&5 3965sed 's/^/| /' conftest.$ac_ext >&5 3966 3967 # Passes both tests. 3968ac_preproc_ok=: 3969break 3970fi 3971 3972rm -f conftest.err conftest.$ac_ext 3973 3974done 3975# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3976rm -f conftest.err conftest.$ac_ext 3977if $ac_preproc_ok; then 3978 : 3979else 3980 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3982{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3983See \`config.log' for more details." >&5 3984$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3985See \`config.log' for more details." >&2;} 3986 { (exit 1); exit 1; }; }; } 3987fi 3988 3989ac_ext=c 3990ac_cpp='$CPP $CPPFLAGS' 3991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3993ac_compiler_gnu=$ac_cv_c_compiler_gnu 3994 3995 3996{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3997$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3998if test "${ac_cv_path_GREP+set}" = set; then 3999 $as_echo_n "(cached) " >&6 4000else 4001 if test -z "$GREP"; then 4002 ac_path_GREP_found=false 4003 # Loop through the user's path and test for each of PROGNAME-LIST 4004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4005for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4006do 4007 IFS=$as_save_IFS 4008 test -z "$as_dir" && as_dir=. 4009 for ac_prog in grep ggrep; do 4010 for ac_exec_ext in '' $ac_executable_extensions; do 4011 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4012 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4013# Check for GNU ac_path_GREP and select it if it is found. 4014 # Check for GNU $ac_path_GREP 4015case `"$ac_path_GREP" --version 2>&1` in 4016*GNU*) 4017 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4018*) 4019 ac_count=0 4020 $as_echo_n 0123456789 >"conftest.in" 4021 while : 4022 do 4023 cat "conftest.in" "conftest.in" >"conftest.tmp" 4024 mv "conftest.tmp" "conftest.in" 4025 cp "conftest.in" "conftest.nl" 4026 $as_echo 'GREP' >> "conftest.nl" 4027 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4028 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4029 ac_count=`expr $ac_count + 1` 4030 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4031 # Best one so far, save it but keep looking for a better one 4032 ac_cv_path_GREP="$ac_path_GREP" 4033 ac_path_GREP_max=$ac_count 4034 fi 4035 # 10*(2^10) chars as input seems more than enough 4036 test $ac_count -gt 10 && break 4037 done 4038 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4039esac 4040 4041 $ac_path_GREP_found && break 3 4042 done 4043 done 4044done 4045IFS=$as_save_IFS 4046 if test -z "$ac_cv_path_GREP"; then 4047 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4048$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4049 { (exit 1); exit 1; }; } 4050 fi 4051else 4052 ac_cv_path_GREP=$GREP 4053fi 4054 4055fi 4056{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4057$as_echo "$ac_cv_path_GREP" >&6; } 4058 GREP="$ac_cv_path_GREP" 4059 4060 4061{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4062$as_echo_n "checking for egrep... " >&6; } 4063if test "${ac_cv_path_EGREP+set}" = set; then 4064 $as_echo_n "(cached) " >&6 4065else 4066 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4067 then ac_cv_path_EGREP="$GREP -E" 4068 else 4069 if test -z "$EGREP"; then 4070 ac_path_EGREP_found=false 4071 # Loop through the user's path and test for each of PROGNAME-LIST 4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4073for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4074do 4075 IFS=$as_save_IFS 4076 test -z "$as_dir" && as_dir=. 4077 for ac_prog in egrep; do 4078 for ac_exec_ext in '' $ac_executable_extensions; do 4079 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4080 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4081# Check for GNU ac_path_EGREP and select it if it is found. 4082 # Check for GNU $ac_path_EGREP 4083case `"$ac_path_EGREP" --version 2>&1` in 4084*GNU*) 4085 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4086*) 4087 ac_count=0 4088 $as_echo_n 0123456789 >"conftest.in" 4089 while : 4090 do 4091 cat "conftest.in" "conftest.in" >"conftest.tmp" 4092 mv "conftest.tmp" "conftest.in" 4093 cp "conftest.in" "conftest.nl" 4094 $as_echo 'EGREP' >> "conftest.nl" 4095 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4097 ac_count=`expr $ac_count + 1` 4098 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4099 # Best one so far, save it but keep looking for a better one 4100 ac_cv_path_EGREP="$ac_path_EGREP" 4101 ac_path_EGREP_max=$ac_count 4102 fi 4103 # 10*(2^10) chars as input seems more than enough 4104 test $ac_count -gt 10 && break 4105 done 4106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4107esac 4108 4109 $ac_path_EGREP_found && break 3 4110 done 4111 done 4112done 4113IFS=$as_save_IFS 4114 if test -z "$ac_cv_path_EGREP"; then 4115 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4116$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4117 { (exit 1); exit 1; }; } 4118 fi 4119else 4120 ac_cv_path_EGREP=$EGREP 4121fi 4122 4123 fi 4124fi 4125{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4126$as_echo "$ac_cv_path_EGREP" >&6; } 4127 EGREP="$ac_cv_path_EGREP" 4128 4129 4130{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4131$as_echo_n "checking for ANSI C header files... " >&6; } 4132if test "${ac_cv_header_stdc+set}" = set; then 4133 $as_echo_n "(cached) " >&6 4134else 4135 cat >conftest.$ac_ext <<_ACEOF 4136/* confdefs.h. */ 4137_ACEOF 4138cat confdefs.h >>conftest.$ac_ext 4139cat >>conftest.$ac_ext <<_ACEOF 4140/* end confdefs.h. */ 4141#include <stdlib.h> 4142#include <stdarg.h> 4143#include <string.h> 4144#include <float.h> 4145 4146int 4147main () 4148{ 4149 4150 ; 4151 return 0; 4152} 4153_ACEOF 4154rm -f conftest.$ac_objext 4155if { (ac_try="$ac_compile" 4156case "(($ac_try" in 4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4158 *) ac_try_echo=$ac_try;; 4159esac 4160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4161$as_echo "$ac_try_echo") >&5 4162 (eval "$ac_compile") 2>conftest.er1 4163 ac_status=$? 4164 grep -v '^ *+' conftest.er1 >conftest.err 4165 rm -f conftest.er1 4166 cat conftest.err >&5 4167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4168 (exit $ac_status); } && { 4169 test -z "$ac_c_werror_flag" || 4170 test ! -s conftest.err 4171 } && test -s conftest.$ac_objext; then 4172 ac_cv_header_stdc=yes 4173else 4174 $as_echo "$as_me: failed program was:" >&5 4175sed 's/^/| /' conftest.$ac_ext >&5 4176 4177 ac_cv_header_stdc=no 4178fi 4179 4180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4181 4182if test $ac_cv_header_stdc = yes; then 4183 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4184 cat >conftest.$ac_ext <<_ACEOF 4185/* confdefs.h. */ 4186_ACEOF 4187cat confdefs.h >>conftest.$ac_ext 4188cat >>conftest.$ac_ext <<_ACEOF 4189/* end confdefs.h. */ 4190#include <string.h> 4191 4192_ACEOF 4193if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4194 $EGREP "memchr" >/dev/null 2>&1; then 4195 : 4196else 4197 ac_cv_header_stdc=no 4198fi 4199rm -f conftest* 4200 4201fi 4202 4203if test $ac_cv_header_stdc = yes; then 4204 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4205 cat >conftest.$ac_ext <<_ACEOF 4206/* confdefs.h. */ 4207_ACEOF 4208cat confdefs.h >>conftest.$ac_ext 4209cat >>conftest.$ac_ext <<_ACEOF 4210/* end confdefs.h. */ 4211#include <stdlib.h> 4212 4213_ACEOF 4214if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4215 $EGREP "free" >/dev/null 2>&1; then 4216 : 4217else 4218 ac_cv_header_stdc=no 4219fi 4220rm -f conftest* 4221 4222fi 4223 4224if test $ac_cv_header_stdc = yes; then 4225 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4226 if test "$cross_compiling" = yes; then 4227 : 4228else 4229 cat >conftest.$ac_ext <<_ACEOF 4230/* confdefs.h. */ 4231_ACEOF 4232cat confdefs.h >>conftest.$ac_ext 4233cat >>conftest.$ac_ext <<_ACEOF 4234/* end confdefs.h. */ 4235#include <ctype.h> 4236#include <stdlib.h> 4237#if ((' ' & 0x0FF) == 0x020) 4238# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4239# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4240#else 4241# define ISLOWER(c) \ 4242 (('a' <= (c) && (c) <= 'i') \ 4243 || ('j' <= (c) && (c) <= 'r') \ 4244 || ('s' <= (c) && (c) <= 'z')) 4245# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4246#endif 4247 4248#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4249int 4250main () 4251{ 4252 int i; 4253 for (i = 0; i < 256; i++) 4254 if (XOR (islower (i), ISLOWER (i)) 4255 || toupper (i) != TOUPPER (i)) 4256 return 2; 4257 return 0; 4258} 4259_ACEOF 4260rm -f conftest$ac_exeext 4261if { (ac_try="$ac_link" 4262case "(($ac_try" in 4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4264 *) ac_try_echo=$ac_try;; 4265esac 4266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4267$as_echo "$ac_try_echo") >&5 4268 (eval "$ac_link") 2>&5 4269 ac_status=$? 4270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4272 { (case "(($ac_try" in 4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4274 *) ac_try_echo=$ac_try;; 4275esac 4276eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4277$as_echo "$ac_try_echo") >&5 4278 (eval "$ac_try") 2>&5 4279 ac_status=$? 4280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4281 (exit $ac_status); }; }; then 4282 : 4283else 4284 $as_echo "$as_me: program exited with status $ac_status" >&5 4285$as_echo "$as_me: failed program was:" >&5 4286sed 's/^/| /' conftest.$ac_ext >&5 4287 4288( exit $ac_status ) 4289ac_cv_header_stdc=no 4290fi 4291rm -rf conftest.dSYM 4292rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4293fi 4294 4295 4296fi 4297fi 4298{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4299$as_echo "$ac_cv_header_stdc" >&6; } 4300if test $ac_cv_header_stdc = yes; then 4301 4302cat >>confdefs.h <<\_ACEOF 4303#define STDC_HEADERS 1 4304_ACEOF 4305 4306fi 4307 4308# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4319 inttypes.h stdint.h unistd.h 4320do 4321as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4322{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4323$as_echo_n "checking for $ac_header... " >&6; } 4324if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4325 $as_echo_n "(cached) " >&6 4326else 4327 cat >conftest.$ac_ext <<_ACEOF 4328/* confdefs.h. */ 4329_ACEOF 4330cat confdefs.h >>conftest.$ac_ext 4331cat >>conftest.$ac_ext <<_ACEOF 4332/* end confdefs.h. */ 4333$ac_includes_default 4334 4335#include <$ac_header> 4336_ACEOF 4337rm -f conftest.$ac_objext 4338if { (ac_try="$ac_compile" 4339case "(($ac_try" in 4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4341 *) ac_try_echo=$ac_try;; 4342esac 4343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4344$as_echo "$ac_try_echo") >&5 4345 (eval "$ac_compile") 2>conftest.er1 4346 ac_status=$? 4347 grep -v '^ *+' conftest.er1 >conftest.err 4348 rm -f conftest.er1 4349 cat conftest.err >&5 4350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4351 (exit $ac_status); } && { 4352 test -z "$ac_c_werror_flag" || 4353 test ! -s conftest.err 4354 } && test -s conftest.$ac_objext; then 4355 eval "$as_ac_Header=yes" 4356else 4357 $as_echo "$as_me: failed program was:" >&5 4358sed 's/^/| /' conftest.$ac_ext >&5 4359 4360 eval "$as_ac_Header=no" 4361fi 4362 4363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4364fi 4365ac_res=`eval 'as_val=${'$as_ac_Header'} 4366 $as_echo "$as_val"'` 4367 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4368$as_echo "$ac_res" >&6; } 4369as_val=`eval 'as_val=${'$as_ac_Header'} 4370 $as_echo "$as_val"'` 4371 if test "x$as_val" = x""yes; then 4372 cat >>confdefs.h <<_ACEOF 4373#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4374_ACEOF 4375 4376fi 4377 4378done 4379 4380 4381 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 4382$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4383if test "${ac_cv_prog_cc_c99+set}" = set; then 4384 $as_echo_n "(cached) " >&6 4385else 4386 ac_cv_prog_cc_c99=no 4387ac_save_CC=$CC 4388cat >conftest.$ac_ext <<_ACEOF 4389/* confdefs.h. */ 4390_ACEOF 4391cat confdefs.h >>conftest.$ac_ext 4392cat >>conftest.$ac_ext <<_ACEOF 4393/* end confdefs.h. */ 4394#include <stdarg.h> 4395#include <stdbool.h> 4396#include <stdlib.h> 4397#include <wchar.h> 4398#include <stdio.h> 4399 4400// Check varargs macros. These examples are taken from C99 6.10.3.5. 4401#define debug(...) fprintf (stderr, __VA_ARGS__) 4402#define showlist(...) puts (#__VA_ARGS__) 4403#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4404static void 4405test_varargs_macros (void) 4406{ 4407 int x = 1234; 4408 int y = 5678; 4409 debug ("Flag"); 4410 debug ("X = %d\n", x); 4411 showlist (The first, second, and third items.); 4412 report (x>y, "x is %d but y is %d", x, y); 4413} 4414 4415// Check long long types. 4416#define BIG64 18446744073709551615ull 4417#define BIG32 4294967295ul 4418#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4419#if !BIG_OK 4420 your preprocessor is broken; 4421#endif 4422#if BIG_OK 4423#else 4424 your preprocessor is broken; 4425#endif 4426static long long int bignum = -9223372036854775807LL; 4427static unsigned long long int ubignum = BIG64; 4428 4429struct incomplete_array 4430{ 4431 int datasize; 4432 double data[]; 4433}; 4434 4435struct named_init { 4436 int number; 4437 const wchar_t *name; 4438 double average; 4439}; 4440 4441typedef const char *ccp; 4442 4443static inline int 4444test_restrict (ccp restrict text) 4445{ 4446 // See if C++-style comments work. 4447 // Iterate through items via the restricted pointer. 4448 // Also check for declarations in for loops. 4449 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4450 continue; 4451 return 0; 4452} 4453 4454// Check varargs and va_copy. 4455static void 4456test_varargs (const char *format, ...) 4457{ 4458 va_list args; 4459 va_start (args, format); 4460 va_list args_copy; 4461 va_copy (args_copy, args); 4462 4463 const char *str; 4464 int number; 4465 float fnumber; 4466 4467 while (*format) 4468 { 4469 switch (*format++) 4470 { 4471 case 's': // string 4472 str = va_arg (args_copy, const char *); 4473 break; 4474 case 'd': // int 4475 number = va_arg (args_copy, int); 4476 break; 4477 case 'f': // float 4478 fnumber = va_arg (args_copy, double); 4479 break; 4480 default: 4481 break; 4482 } 4483 } 4484 va_end (args_copy); 4485 va_end (args); 4486} 4487 4488int 4489main () 4490{ 4491 4492 // Check bool. 4493 _Bool success = false; 4494 4495 // Check restrict. 4496 if (test_restrict ("String literal") == 0) 4497 success = true; 4498 char *restrict newvar = "Another string"; 4499 4500 // Check varargs. 4501 test_varargs ("s, d' f .", "string", 65, 34.234); 4502 test_varargs_macros (); 4503 4504 // Check flexible array members. 4505 struct incomplete_array *ia = 4506 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4507 ia->datasize = 10; 4508 for (int i = 0; i < ia->datasize; ++i) 4509 ia->data[i] = i * 1.234; 4510 4511 // Check named initializers. 4512 struct named_init ni = { 4513 .number = 34, 4514 .name = L"Test wide string", 4515 .average = 543.34343, 4516 }; 4517 4518 ni.number = 58; 4519 4520 int dynamic_array[ni.number]; 4521 dynamic_array[ni.number - 1] = 543; 4522 4523 // work around unused variable warnings 4524 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4525 || dynamic_array[ni.number - 1] != 543); 4526 4527 ; 4528 return 0; 4529} 4530_ACEOF 4531for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4532do 4533 CC="$ac_save_CC $ac_arg" 4534 rm -f conftest.$ac_objext 4535if { (ac_try="$ac_compile" 4536case "(($ac_try" in 4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4538 *) ac_try_echo=$ac_try;; 4539esac 4540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4541$as_echo "$ac_try_echo") >&5 4542 (eval "$ac_compile") 2>conftest.er1 4543 ac_status=$? 4544 grep -v '^ *+' conftest.er1 >conftest.err 4545 rm -f conftest.er1 4546 cat conftest.err >&5 4547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4548 (exit $ac_status); } && { 4549 test -z "$ac_c_werror_flag" || 4550 test ! -s conftest.err 4551 } && test -s conftest.$ac_objext; then 4552 ac_cv_prog_cc_c99=$ac_arg 4553else 4554 $as_echo "$as_me: failed program was:" >&5 4555sed 's/^/| /' conftest.$ac_ext >&5 4556 4557 4558fi 4559 4560rm -f core conftest.err conftest.$ac_objext 4561 test "x$ac_cv_prog_cc_c99" != "xno" && break 4562done 4563rm -f conftest.$ac_ext 4564CC=$ac_save_CC 4565 4566fi 4567# AC_CACHE_VAL 4568case "x$ac_cv_prog_cc_c99" in 4569 x) 4570 { $as_echo "$as_me:$LINENO: result: none needed" >&5 4571$as_echo "none needed" >&6; } ;; 4572 xno) 4573 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 4574$as_echo "unsupported" >&6; } ;; 4575 *) 4576 CC="$CC $ac_cv_prog_cc_c99" 4577 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 4578$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4579esac 4580 4581 4582 4583 4584 4585if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4586 if test -n "$ac_tool_prefix"; then 4587 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4588set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4589{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4590$as_echo_n "checking for $ac_word... " >&6; } 4591if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 4592 $as_echo_n "(cached) " >&6 4593else 4594 case $PKG_CONFIG in 4595 [\\/]* | ?:[\\/]*) 4596 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4597 ;; 4598 *) 4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4600for as_dir in $PATH 4601do 4602 IFS=$as_save_IFS 4603 test -z "$as_dir" && as_dir=. 4604 for ac_exec_ext in '' $ac_executable_extensions; do 4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4606 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4607 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4608 break 2 4609 fi 4610done 4611done 4612IFS=$as_save_IFS 4613 4614 ;; 4615esac 4616fi 4617PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4618if test -n "$PKG_CONFIG"; then 4619 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 4620$as_echo "$PKG_CONFIG" >&6; } 4621else 4622 { $as_echo "$as_me:$LINENO: result: no" >&5 4623$as_echo "no" >&6; } 4624fi 4625 4626 4627fi 4628if test -z "$ac_cv_path_PKG_CONFIG"; then 4629 ac_pt_PKG_CONFIG=$PKG_CONFIG 4630 # Extract the first word of "pkg-config", so it can be a program name with args. 4631set dummy pkg-config; ac_word=$2 4632{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4633$as_echo_n "checking for $ac_word... " >&6; } 4634if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 4635 $as_echo_n "(cached) " >&6 4636else 4637 case $ac_pt_PKG_CONFIG in 4638 [\\/]* | ?:[\\/]*) 4639 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4640 ;; 4641 *) 4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4643for as_dir in $PATH 4644do 4645 IFS=$as_save_IFS 4646 test -z "$as_dir" && as_dir=. 4647 for ac_exec_ext in '' $ac_executable_extensions; do 4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4649 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4650 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4651 break 2 4652 fi 4653done 4654done 4655IFS=$as_save_IFS 4656 4657 ;; 4658esac 4659fi 4660ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4661if test -n "$ac_pt_PKG_CONFIG"; then 4662 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 4663$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4664else 4665 { $as_echo "$as_me:$LINENO: result: no" >&5 4666$as_echo "no" >&6; } 4667fi 4668 4669 if test "x$ac_pt_PKG_CONFIG" = x; then 4670 PKG_CONFIG="" 4671 else 4672 case $cross_compiling:$ac_tool_warned in 4673yes:) 4674{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4676ac_tool_warned=yes ;; 4677esac 4678 PKG_CONFIG=$ac_pt_PKG_CONFIG 4679 fi 4680else 4681 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4682fi 4683 4684fi 4685if test -n "$PKG_CONFIG"; then 4686 _pkg_min_version=0.9.0 4687 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 4688$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4689 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4690 { $as_echo "$as_me:$LINENO: result: yes" >&5 4691$as_echo "yes" >&6; } 4692 else 4693 { $as_echo "$as_me:$LINENO: result: no" >&5 4694$as_echo "no" >&6; } 4695 PKG_CONFIG="" 4696 fi 4697 4698fi 4699# Make sure we can run config.sub. 4700$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4701 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 4702$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 4703 { (exit 1); exit 1; }; } 4704 4705{ $as_echo "$as_me:$LINENO: checking build system type" >&5 4706$as_echo_n "checking build system type... " >&6; } 4707if test "${ac_cv_build+set}" = set; then 4708 $as_echo_n "(cached) " >&6 4709else 4710 ac_build_alias=$build_alias 4711test "x$ac_build_alias" = x && 4712 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4713test "x$ac_build_alias" = x && 4714 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 4715$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 4716 { (exit 1); exit 1; }; } 4717ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4718 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 4719$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 4720 { (exit 1); exit 1; }; } 4721 4722fi 4723{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 4724$as_echo "$ac_cv_build" >&6; } 4725case $ac_cv_build in 4726*-*-*) ;; 4727*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 4728$as_echo "$as_me: error: invalid value of canonical build" >&2;} 4729 { (exit 1); exit 1; }; };; 4730esac 4731build=$ac_cv_build 4732ac_save_IFS=$IFS; IFS='-' 4733set x $ac_cv_build 4734shift 4735build_cpu=$1 4736build_vendor=$2 4737shift; shift 4738# Remember, the first character of IFS is used to create $*, 4739# except with old shells: 4740build_os=$* 4741IFS=$ac_save_IFS 4742case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4743 4744 4745{ $as_echo "$as_me:$LINENO: checking host system type" >&5 4746$as_echo_n "checking host system type... " >&6; } 4747if test "${ac_cv_host+set}" = set; then 4748 $as_echo_n "(cached) " >&6 4749else 4750 if test "x$host_alias" = x; then 4751 ac_cv_host=$ac_cv_build 4752else 4753 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4754 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 4755$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 4756 { (exit 1); exit 1; }; } 4757fi 4758 4759fi 4760{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 4761$as_echo "$ac_cv_host" >&6; } 4762case $ac_cv_host in 4763*-*-*) ;; 4764*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 4765$as_echo "$as_me: error: invalid value of canonical host" >&2;} 4766 { (exit 1); exit 1; }; };; 4767esac 4768host=$ac_cv_host 4769ac_save_IFS=$IFS; IFS='-' 4770set x $ac_cv_host 4771shift 4772host_cpu=$1 4773host_vendor=$2 4774shift; shift 4775# Remember, the first character of IFS is used to create $*, 4776# except with old shells: 4777host_os=$* 4778IFS=$ac_save_IFS 4779case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4780 4781 4782 4783 4784 4785if test "x$GCC" = xyes ; then 4786 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4787-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4788-Wbad-function-cast" 4789 case `$CC -dumpversion` in 4790 3.4.* | 4.*) 4791 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4792 ;; 4793 esac 4794else 4795 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 4796$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 4797if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 4798 $as_echo_n "(cached) " >&6 4799else 4800 cat >conftest.$ac_ext <<_ACEOF 4801/* confdefs.h. */ 4802_ACEOF 4803cat confdefs.h >>conftest.$ac_ext 4804cat >>conftest.$ac_ext <<_ACEOF 4805/* end confdefs.h. */ 4806$ac_includes_default 4807int 4808main () 4809{ 4810#ifndef __SUNPRO_C 4811 (void) __SUNPRO_C; 4812#endif 4813 4814 ; 4815 return 0; 4816} 4817_ACEOF 4818rm -f conftest.$ac_objext 4819if { (ac_try="$ac_compile" 4820case "(($ac_try" in 4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4822 *) ac_try_echo=$ac_try;; 4823esac 4824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4825$as_echo "$ac_try_echo") >&5 4826 (eval "$ac_compile") 2>conftest.er1 4827 ac_status=$? 4828 grep -v '^ *+' conftest.er1 >conftest.err 4829 rm -f conftest.er1 4830 cat conftest.err >&5 4831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4832 (exit $ac_status); } && { 4833 test -z "$ac_c_werror_flag" || 4834 test ! -s conftest.err 4835 } && test -s conftest.$ac_objext; then 4836 ac_cv_have_decl___SUNPRO_C=yes 4837else 4838 $as_echo "$as_me: failed program was:" >&5 4839sed 's/^/| /' conftest.$ac_ext >&5 4840 4841 ac_cv_have_decl___SUNPRO_C=no 4842fi 4843 4844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4845fi 4846{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 4847$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 4848if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 4849 SUNCC="yes" 4850else 4851 SUNCC="no" 4852fi 4853 4854 if test "x$SUNCC" = "xyes"; then 4855 CWARNFLAGS="-v" 4856 fi 4857fi 4858 4859# Check whether --enable-silent-rules was given. 4860if test "${enable_silent_rules+set}" = set; then 4861 enableval=$enable_silent_rules; 4862fi 4863 4864case $enable_silent_rules in 4865yes) AM_DEFAULT_VERBOSITY=0;; 4866no) AM_DEFAULT_VERBOSITY=1;; 4867*) AM_DEFAULT_VERBOSITY=0;; 4868esac 4869AM_BACKSLASH='\' 4870 4871 4872 4873 4874 4875 4876 4877# Check whether --enable-strict-compilation was given. 4878if test "${enable_strict_compilation+set}" = set; then 4879 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4880else 4881 STRICT_COMPILE=no 4882fi 4883 4884if test "x$STRICT_COMPILE" = "xyes"; then 4885 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 4886$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 4887if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 4888 $as_echo_n "(cached) " >&6 4889else 4890 cat >conftest.$ac_ext <<_ACEOF 4891/* confdefs.h. */ 4892_ACEOF 4893cat confdefs.h >>conftest.$ac_ext 4894cat >>conftest.$ac_ext <<_ACEOF 4895/* end confdefs.h. */ 4896$ac_includes_default 4897int 4898main () 4899{ 4900#ifndef __SUNPRO_C 4901 (void) __SUNPRO_C; 4902#endif 4903 4904 ; 4905 return 0; 4906} 4907_ACEOF 4908rm -f conftest.$ac_objext 4909if { (ac_try="$ac_compile" 4910case "(($ac_try" in 4911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4912 *) ac_try_echo=$ac_try;; 4913esac 4914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4915$as_echo "$ac_try_echo") >&5 4916 (eval "$ac_compile") 2>conftest.er1 4917 ac_status=$? 4918 grep -v '^ *+' conftest.er1 >conftest.err 4919 rm -f conftest.er1 4920 cat conftest.err >&5 4921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4922 (exit $ac_status); } && { 4923 test -z "$ac_c_werror_flag" || 4924 test ! -s conftest.err 4925 } && test -s conftest.$ac_objext; then 4926 ac_cv_have_decl___SUNPRO_C=yes 4927else 4928 $as_echo "$as_me: failed program was:" >&5 4929sed 's/^/| /' conftest.$ac_ext >&5 4930 4931 ac_cv_have_decl___SUNPRO_C=no 4932fi 4933 4934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4935fi 4936{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 4937$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 4938if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 4939 SUNCC="yes" 4940else 4941 SUNCC="no" 4942fi 4943 4944 { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5 4945$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; } 4946if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then 4947 $as_echo_n "(cached) " >&6 4948else 4949 cat >conftest.$ac_ext <<_ACEOF 4950/* confdefs.h. */ 4951_ACEOF 4952cat confdefs.h >>conftest.$ac_ext 4953cat >>conftest.$ac_ext <<_ACEOF 4954/* end confdefs.h. */ 4955$ac_includes_default 4956int 4957main () 4958{ 4959#ifndef __INTEL_COMPILER 4960 (void) __INTEL_COMPILER; 4961#endif 4962 4963 ; 4964 return 0; 4965} 4966_ACEOF 4967rm -f conftest.$ac_objext 4968if { (ac_try="$ac_compile" 4969case "(($ac_try" in 4970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4971 *) ac_try_echo=$ac_try;; 4972esac 4973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4974$as_echo "$ac_try_echo") >&5 4975 (eval "$ac_compile") 2>conftest.er1 4976 ac_status=$? 4977 grep -v '^ *+' conftest.er1 >conftest.err 4978 rm -f conftest.er1 4979 cat conftest.err >&5 4980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4981 (exit $ac_status); } && { 4982 test -z "$ac_c_werror_flag" || 4983 test ! -s conftest.err 4984 } && test -s conftest.$ac_objext; then 4985 ac_cv_have_decl___INTEL_COMPILER=yes 4986else 4987 $as_echo "$as_me: failed program was:" >&5 4988sed 's/^/| /' conftest.$ac_ext >&5 4989 4990 ac_cv_have_decl___INTEL_COMPILER=no 4991fi 4992 4993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4994fi 4995{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5 4996$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; } 4997if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then 4998 INTELCC="yes" 4999else 5000 INTELCC="no" 5001fi 5002 5003 if test "x$GCC" = xyes ; then 5004 STRICT_CFLAGS="-pedantic -Werror" 5005 elif test "x$SUNCC" = "xyes"; then 5006 STRICT_CFLAGS="-errwarn" 5007 elif test "x$INTELCC" = "xyes"; then 5008 STRICT_CFLAGS="-Werror" 5009 fi 5010fi 5011CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 5012 5013 5014 5015 5016# Check whether --with-release-version was given. 5017if test "${with_release_version+set}" = set; then 5018 withval=$with_release_version; RELEASE_VERSION="$withval" 5019else 5020 RELEASE_VERSION="" 5021fi 5022 5023 if test "x$RELEASE_VERSION" != "x"; then 5024 PACKAGE="$PACKAGE-$RELEASE_VERSION" 5025 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 5026 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 5027$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 5028 fi 5029 5030cat >>confdefs.h <<_ACEOF 5031#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 5032_ACEOF 5033 5034 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 5035 if test "x$PVM" = "x"; then 5036 PVM="0" 5037 fi 5038 5039cat >>confdefs.h <<_ACEOF 5040#define PACKAGE_VERSION_MINOR $PVM 5041_ACEOF 5042 5043 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 5044 if test "x$PVP" = "x"; then 5045 PVP="0" 5046 fi 5047 5048cat >>confdefs.h <<_ACEOF 5049#define PACKAGE_VERSION_PATCHLEVEL $PVP 5050_ACEOF 5051 5052 5053 5054CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 5055mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 5056|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 5057echo 'git directory not found: installing possibly empty changelog.' >&2)" 5058 5059 5060 5061 5062macros_docdir=$($PKG_CONFIG --print-errors --variable=docdir xorg-macros) 5063INSTALL_CMD="(cp -f "$macros_docdir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 5064mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 5065|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 5066echo 'util-macros \"docdir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 5067 5068 5069 5070 5071 5072if test x$APP_MAN_SUFFIX = x ; then 5073 APP_MAN_SUFFIX=1 5074fi 5075if test x$APP_MAN_DIR = x ; then 5076 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 5077fi 5078 5079if test x$LIB_MAN_SUFFIX = x ; then 5080 LIB_MAN_SUFFIX=3 5081fi 5082if test x$LIB_MAN_DIR = x ; then 5083 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 5084fi 5085 5086if test x$FILE_MAN_SUFFIX = x ; then 5087 case $host_os in 5088 solaris*) FILE_MAN_SUFFIX=4 ;; 5089 *) FILE_MAN_SUFFIX=5 ;; 5090 esac 5091fi 5092if test x$FILE_MAN_DIR = x ; then 5093 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 5094fi 5095 5096if test x$MISC_MAN_SUFFIX = x ; then 5097 case $host_os in 5098 solaris*) MISC_MAN_SUFFIX=5 ;; 5099 *) MISC_MAN_SUFFIX=7 ;; 5100 esac 5101fi 5102if test x$MISC_MAN_DIR = x ; then 5103 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 5104fi 5105 5106if test x$DRIVER_MAN_SUFFIX = x ; then 5107 case $host_os in 5108 solaris*) DRIVER_MAN_SUFFIX=7 ;; 5109 *) DRIVER_MAN_SUFFIX=4 ;; 5110 esac 5111fi 5112if test x$DRIVER_MAN_DIR = x ; then 5113 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 5114fi 5115 5116if test x$ADMIN_MAN_SUFFIX = x ; then 5117 case $host_os in 5118 solaris*) ADMIN_MAN_SUFFIX=1m ;; 5119 *) ADMIN_MAN_SUFFIX=8 ;; 5120 esac 5121fi 5122if test x$ADMIN_MAN_DIR = x ; then 5123 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 5124fi 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141ac_config_headers="$ac_config_headers config.h" 5142 5143 5144# Check for progs 5145ac_ext=c 5146ac_cpp='$CPP $CPPFLAGS' 5147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5149ac_compiler_gnu=$ac_cv_c_compiler_gnu 5150if test -n "$ac_tool_prefix"; then 5151 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5152set dummy ${ac_tool_prefix}gcc; ac_word=$2 5153{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5154$as_echo_n "checking for $ac_word... " >&6; } 5155if test "${ac_cv_prog_CC+set}" = set; then 5156 $as_echo_n "(cached) " >&6 5157else 5158 if test -n "$CC"; then 5159 ac_cv_prog_CC="$CC" # Let the user override the test. 5160else 5161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5162for as_dir in $PATH 5163do 5164 IFS=$as_save_IFS 5165 test -z "$as_dir" && as_dir=. 5166 for ac_exec_ext in '' $ac_executable_extensions; do 5167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5168 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5169 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5170 break 2 5171 fi 5172done 5173done 5174IFS=$as_save_IFS 5175 5176fi 5177fi 5178CC=$ac_cv_prog_CC 5179if test -n "$CC"; then 5180 { $as_echo "$as_me:$LINENO: result: $CC" >&5 5181$as_echo "$CC" >&6; } 5182else 5183 { $as_echo "$as_me:$LINENO: result: no" >&5 5184$as_echo "no" >&6; } 5185fi 5186 5187 5188fi 5189if test -z "$ac_cv_prog_CC"; then 5190 ac_ct_CC=$CC 5191 # Extract the first word of "gcc", so it can be a program name with args. 5192set dummy gcc; ac_word=$2 5193{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5194$as_echo_n "checking for $ac_word... " >&6; } 5195if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 5196 $as_echo_n "(cached) " >&6 5197else 5198 if test -n "$ac_ct_CC"; then 5199 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5200else 5201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5202for as_dir in $PATH 5203do 5204 IFS=$as_save_IFS 5205 test -z "$as_dir" && as_dir=. 5206 for ac_exec_ext in '' $ac_executable_extensions; do 5207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5208 ac_cv_prog_ac_ct_CC="gcc" 5209 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5210 break 2 5211 fi 5212done 5213done 5214IFS=$as_save_IFS 5215 5216fi 5217fi 5218ac_ct_CC=$ac_cv_prog_ac_ct_CC 5219if test -n "$ac_ct_CC"; then 5220 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 5221$as_echo "$ac_ct_CC" >&6; } 5222else 5223 { $as_echo "$as_me:$LINENO: result: no" >&5 5224$as_echo "no" >&6; } 5225fi 5226 5227 if test "x$ac_ct_CC" = x; then 5228 CC="" 5229 else 5230 case $cross_compiling:$ac_tool_warned in 5231yes:) 5232{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5234ac_tool_warned=yes ;; 5235esac 5236 CC=$ac_ct_CC 5237 fi 5238else 5239 CC="$ac_cv_prog_CC" 5240fi 5241 5242if test -z "$CC"; then 5243 if test -n "$ac_tool_prefix"; then 5244 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5245set dummy ${ac_tool_prefix}cc; 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_CC+set}" = set; then 5249 $as_echo_n "(cached) " >&6 5250else 5251 if test -n "$CC"; then 5252 ac_cv_prog_CC="$CC" # 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_CC="${ac_tool_prefix}cc" 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 5271CC=$ac_cv_prog_CC 5272if test -n "$CC"; then 5273 { $as_echo "$as_me:$LINENO: result: $CC" >&5 5274$as_echo "$CC" >&6; } 5275else 5276 { $as_echo "$as_me:$LINENO: result: no" >&5 5277$as_echo "no" >&6; } 5278fi 5279 5280 5281 fi 5282fi 5283if test -z "$CC"; then 5284 # Extract the first word of "cc", so it can be a program name with args. 5285set dummy cc; ac_word=$2 5286{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5287$as_echo_n "checking for $ac_word... " >&6; } 5288if test "${ac_cv_prog_CC+set}" = set; then 5289 $as_echo_n "(cached) " >&6 5290else 5291 if test -n "$CC"; then 5292 ac_cv_prog_CC="$CC" # Let the user override the test. 5293else 5294 ac_prog_rejected=no 5295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5296for as_dir in $PATH 5297do 5298 IFS=$as_save_IFS 5299 test -z "$as_dir" && as_dir=. 5300 for ac_exec_ext in '' $ac_executable_extensions; do 5301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5302 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5303 ac_prog_rejected=yes 5304 continue 5305 fi 5306 ac_cv_prog_CC="cc" 5307 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5308 break 2 5309 fi 5310done 5311done 5312IFS=$as_save_IFS 5313 5314if test $ac_prog_rejected = yes; then 5315 # We found a bogon in the path, so make sure we never use it. 5316 set dummy $ac_cv_prog_CC 5317 shift 5318 if test $# != 0; then 5319 # We chose a different compiler from the bogus one. 5320 # However, it has the same basename, so the bogon will be chosen 5321 # first if we set CC to just the basename; use the full file name. 5322 shift 5323 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5324 fi 5325fi 5326fi 5327fi 5328CC=$ac_cv_prog_CC 5329if test -n "$CC"; then 5330 { $as_echo "$as_me:$LINENO: result: $CC" >&5 5331$as_echo "$CC" >&6; } 5332else 5333 { $as_echo "$as_me:$LINENO: result: no" >&5 5334$as_echo "no" >&6; } 5335fi 5336 5337 5338fi 5339if test -z "$CC"; then 5340 if test -n "$ac_tool_prefix"; then 5341 for ac_prog in cl.exe 5342 do 5343 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5344set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5345{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5346$as_echo_n "checking for $ac_word... " >&6; } 5347if test "${ac_cv_prog_CC+set}" = set; then 5348 $as_echo_n "(cached) " >&6 5349else 5350 if test -n "$CC"; then 5351 ac_cv_prog_CC="$CC" # Let the user override the test. 5352else 5353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5354for as_dir in $PATH 5355do 5356 IFS=$as_save_IFS 5357 test -z "$as_dir" && as_dir=. 5358 for ac_exec_ext in '' $ac_executable_extensions; do 5359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5360 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5362 break 2 5363 fi 5364done 5365done 5366IFS=$as_save_IFS 5367 5368fi 5369fi 5370CC=$ac_cv_prog_CC 5371if test -n "$CC"; then 5372 { $as_echo "$as_me:$LINENO: result: $CC" >&5 5373$as_echo "$CC" >&6; } 5374else 5375 { $as_echo "$as_me:$LINENO: result: no" >&5 5376$as_echo "no" >&6; } 5377fi 5378 5379 5380 test -n "$CC" && break 5381 done 5382fi 5383if test -z "$CC"; then 5384 ac_ct_CC=$CC 5385 for ac_prog in cl.exe 5386do 5387 # Extract the first word of "$ac_prog", so it can be a program name with args. 5388set dummy $ac_prog; ac_word=$2 5389{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5390$as_echo_n "checking for $ac_word... " >&6; } 5391if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 5392 $as_echo_n "(cached) " >&6 5393else 5394 if test -n "$ac_ct_CC"; then 5395 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5396else 5397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5398for as_dir in $PATH 5399do 5400 IFS=$as_save_IFS 5401 test -z "$as_dir" && as_dir=. 5402 for ac_exec_ext in '' $ac_executable_extensions; do 5403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5404 ac_cv_prog_ac_ct_CC="$ac_prog" 5405 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5406 break 2 5407 fi 5408done 5409done 5410IFS=$as_save_IFS 5411 5412fi 5413fi 5414ac_ct_CC=$ac_cv_prog_ac_ct_CC 5415if test -n "$ac_ct_CC"; then 5416 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 5417$as_echo "$ac_ct_CC" >&6; } 5418else 5419 { $as_echo "$as_me:$LINENO: result: no" >&5 5420$as_echo "no" >&6; } 5421fi 5422 5423 5424 test -n "$ac_ct_CC" && break 5425done 5426 5427 if test "x$ac_ct_CC" = x; then 5428 CC="" 5429 else 5430 case $cross_compiling:$ac_tool_warned in 5431yes:) 5432{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5434ac_tool_warned=yes ;; 5435esac 5436 CC=$ac_ct_CC 5437 fi 5438fi 5439 5440fi 5441 5442 5443test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 5444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5445{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 5446See \`config.log' for more details." >&5 5447$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 5448See \`config.log' for more details." >&2;} 5449 { (exit 1); exit 1; }; }; } 5450 5451# Provide some information about the compiler. 5452$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 5453set X $ac_compile 5454ac_compiler=$2 5455{ (ac_try="$ac_compiler --version >&5" 5456case "(($ac_try" in 5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5458 *) ac_try_echo=$ac_try;; 5459esac 5460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5461$as_echo "$ac_try_echo") >&5 5462 (eval "$ac_compiler --version >&5") 2>&5 5463 ac_status=$? 5464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5465 (exit $ac_status); } 5466{ (ac_try="$ac_compiler -v >&5" 5467case "(($ac_try" in 5468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5469 *) ac_try_echo=$ac_try;; 5470esac 5471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5472$as_echo "$ac_try_echo") >&5 5473 (eval "$ac_compiler -v >&5") 2>&5 5474 ac_status=$? 5475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5476 (exit $ac_status); } 5477{ (ac_try="$ac_compiler -V >&5" 5478case "(($ac_try" in 5479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5480 *) ac_try_echo=$ac_try;; 5481esac 5482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5483$as_echo "$ac_try_echo") >&5 5484 (eval "$ac_compiler -V >&5") 2>&5 5485 ac_status=$? 5486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5487 (exit $ac_status); } 5488 5489{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 5490$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5491if test "${ac_cv_c_compiler_gnu+set}" = set; then 5492 $as_echo_n "(cached) " >&6 5493else 5494 cat >conftest.$ac_ext <<_ACEOF 5495/* confdefs.h. */ 5496_ACEOF 5497cat confdefs.h >>conftest.$ac_ext 5498cat >>conftest.$ac_ext <<_ACEOF 5499/* end confdefs.h. */ 5500 5501int 5502main () 5503{ 5504#ifndef __GNUC__ 5505 choke me 5506#endif 5507 5508 ; 5509 return 0; 5510} 5511_ACEOF 5512rm -f conftest.$ac_objext 5513if { (ac_try="$ac_compile" 5514case "(($ac_try" in 5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5516 *) ac_try_echo=$ac_try;; 5517esac 5518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5519$as_echo "$ac_try_echo") >&5 5520 (eval "$ac_compile") 2>conftest.er1 5521 ac_status=$? 5522 grep -v '^ *+' conftest.er1 >conftest.err 5523 rm -f conftest.er1 5524 cat conftest.err >&5 5525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5526 (exit $ac_status); } && { 5527 test -z "$ac_c_werror_flag" || 5528 test ! -s conftest.err 5529 } && test -s conftest.$ac_objext; then 5530 ac_compiler_gnu=yes 5531else 5532 $as_echo "$as_me: failed program was:" >&5 5533sed 's/^/| /' conftest.$ac_ext >&5 5534 5535 ac_compiler_gnu=no 5536fi 5537 5538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5539ac_cv_c_compiler_gnu=$ac_compiler_gnu 5540 5541fi 5542{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 5543$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5544if test $ac_compiler_gnu = yes; then 5545 GCC=yes 5546else 5547 GCC= 5548fi 5549ac_test_CFLAGS=${CFLAGS+set} 5550ac_save_CFLAGS=$CFLAGS 5551{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 5552$as_echo_n "checking whether $CC accepts -g... " >&6; } 5553if test "${ac_cv_prog_cc_g+set}" = set; then 5554 $as_echo_n "(cached) " >&6 5555else 5556 ac_save_c_werror_flag=$ac_c_werror_flag 5557 ac_c_werror_flag=yes 5558 ac_cv_prog_cc_g=no 5559 CFLAGS="-g" 5560 cat >conftest.$ac_ext <<_ACEOF 5561/* confdefs.h. */ 5562_ACEOF 5563cat confdefs.h >>conftest.$ac_ext 5564cat >>conftest.$ac_ext <<_ACEOF 5565/* end confdefs.h. */ 5566 5567int 5568main () 5569{ 5570 5571 ; 5572 return 0; 5573} 5574_ACEOF 5575rm -f conftest.$ac_objext 5576if { (ac_try="$ac_compile" 5577case "(($ac_try" in 5578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5579 *) ac_try_echo=$ac_try;; 5580esac 5581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5582$as_echo "$ac_try_echo") >&5 5583 (eval "$ac_compile") 2>conftest.er1 5584 ac_status=$? 5585 grep -v '^ *+' conftest.er1 >conftest.err 5586 rm -f conftest.er1 5587 cat conftest.err >&5 5588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5589 (exit $ac_status); } && { 5590 test -z "$ac_c_werror_flag" || 5591 test ! -s conftest.err 5592 } && test -s conftest.$ac_objext; then 5593 ac_cv_prog_cc_g=yes 5594else 5595 $as_echo "$as_me: failed program was:" >&5 5596sed 's/^/| /' conftest.$ac_ext >&5 5597 5598 CFLAGS="" 5599 cat >conftest.$ac_ext <<_ACEOF 5600/* confdefs.h. */ 5601_ACEOF 5602cat confdefs.h >>conftest.$ac_ext 5603cat >>conftest.$ac_ext <<_ACEOF 5604/* end confdefs.h. */ 5605 5606int 5607main () 5608{ 5609 5610 ; 5611 return 0; 5612} 5613_ACEOF 5614rm -f conftest.$ac_objext 5615if { (ac_try="$ac_compile" 5616case "(($ac_try" in 5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5618 *) ac_try_echo=$ac_try;; 5619esac 5620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5621$as_echo "$ac_try_echo") >&5 5622 (eval "$ac_compile") 2>conftest.er1 5623 ac_status=$? 5624 grep -v '^ *+' conftest.er1 >conftest.err 5625 rm -f conftest.er1 5626 cat conftest.err >&5 5627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5628 (exit $ac_status); } && { 5629 test -z "$ac_c_werror_flag" || 5630 test ! -s conftest.err 5631 } && test -s conftest.$ac_objext; then 5632 : 5633else 5634 $as_echo "$as_me: failed program was:" >&5 5635sed 's/^/| /' conftest.$ac_ext >&5 5636 5637 ac_c_werror_flag=$ac_save_c_werror_flag 5638 CFLAGS="-g" 5639 cat >conftest.$ac_ext <<_ACEOF 5640/* confdefs.h. */ 5641_ACEOF 5642cat confdefs.h >>conftest.$ac_ext 5643cat >>conftest.$ac_ext <<_ACEOF 5644/* end confdefs.h. */ 5645 5646int 5647main () 5648{ 5649 5650 ; 5651 return 0; 5652} 5653_ACEOF 5654rm -f conftest.$ac_objext 5655if { (ac_try="$ac_compile" 5656case "(($ac_try" in 5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5658 *) ac_try_echo=$ac_try;; 5659esac 5660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5661$as_echo "$ac_try_echo") >&5 5662 (eval "$ac_compile") 2>conftest.er1 5663 ac_status=$? 5664 grep -v '^ *+' conftest.er1 >conftest.err 5665 rm -f conftest.er1 5666 cat conftest.err >&5 5667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5668 (exit $ac_status); } && { 5669 test -z "$ac_c_werror_flag" || 5670 test ! -s conftest.err 5671 } && test -s conftest.$ac_objext; then 5672 ac_cv_prog_cc_g=yes 5673else 5674 $as_echo "$as_me: failed program was:" >&5 5675sed 's/^/| /' conftest.$ac_ext >&5 5676 5677 5678fi 5679 5680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5681fi 5682 5683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5684fi 5685 5686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5687 ac_c_werror_flag=$ac_save_c_werror_flag 5688fi 5689{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 5690$as_echo "$ac_cv_prog_cc_g" >&6; } 5691if test "$ac_test_CFLAGS" = set; then 5692 CFLAGS=$ac_save_CFLAGS 5693elif test $ac_cv_prog_cc_g = yes; then 5694 if test "$GCC" = yes; then 5695 CFLAGS="-g -O2" 5696 else 5697 CFLAGS="-g" 5698 fi 5699else 5700 if test "$GCC" = yes; then 5701 CFLAGS="-O2" 5702 else 5703 CFLAGS= 5704 fi 5705fi 5706{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 5707$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5708if test "${ac_cv_prog_cc_c89+set}" = set; then 5709 $as_echo_n "(cached) " >&6 5710else 5711 ac_cv_prog_cc_c89=no 5712ac_save_CC=$CC 5713cat >conftest.$ac_ext <<_ACEOF 5714/* confdefs.h. */ 5715_ACEOF 5716cat confdefs.h >>conftest.$ac_ext 5717cat >>conftest.$ac_ext <<_ACEOF 5718/* end confdefs.h. */ 5719#include <stdarg.h> 5720#include <stdio.h> 5721#include <sys/types.h> 5722#include <sys/stat.h> 5723/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5724struct buf { int x; }; 5725FILE * (*rcsopen) (struct buf *, struct stat *, int); 5726static char *e (p, i) 5727 char **p; 5728 int i; 5729{ 5730 return p[i]; 5731} 5732static char *f (char * (*g) (char **, int), char **p, ...) 5733{ 5734 char *s; 5735 va_list v; 5736 va_start (v,p); 5737 s = g (p, va_arg (v,int)); 5738 va_end (v); 5739 return s; 5740} 5741 5742/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5743 function prototypes and stuff, but not '\xHH' hex character constants. 5744 These don't provoke an error unfortunately, instead are silently treated 5745 as 'x'. The following induces an error, until -std is added to get 5746 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5747 array size at least. It's necessary to write '\x00'==0 to get something 5748 that's true only with -std. */ 5749int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5750 5751/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5752 inside strings and character constants. */ 5753#define FOO(x) 'x' 5754int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5755 5756int test (int i, double x); 5757struct s1 {int (*f) (int a);}; 5758struct s2 {int (*f) (double a);}; 5759int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5760int argc; 5761char **argv; 5762int 5763main () 5764{ 5765return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5766 ; 5767 return 0; 5768} 5769_ACEOF 5770for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5771 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5772do 5773 CC="$ac_save_CC $ac_arg" 5774 rm -f conftest.$ac_objext 5775if { (ac_try="$ac_compile" 5776case "(($ac_try" in 5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5778 *) ac_try_echo=$ac_try;; 5779esac 5780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5781$as_echo "$ac_try_echo") >&5 5782 (eval "$ac_compile") 2>conftest.er1 5783 ac_status=$? 5784 grep -v '^ *+' conftest.er1 >conftest.err 5785 rm -f conftest.er1 5786 cat conftest.err >&5 5787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5788 (exit $ac_status); } && { 5789 test -z "$ac_c_werror_flag" || 5790 test ! -s conftest.err 5791 } && test -s conftest.$ac_objext; then 5792 ac_cv_prog_cc_c89=$ac_arg 5793else 5794 $as_echo "$as_me: failed program was:" >&5 5795sed 's/^/| /' conftest.$ac_ext >&5 5796 5797 5798fi 5799 5800rm -f core conftest.err conftest.$ac_objext 5801 test "x$ac_cv_prog_cc_c89" != "xno" && break 5802done 5803rm -f conftest.$ac_ext 5804CC=$ac_save_CC 5805 5806fi 5807# AC_CACHE_VAL 5808case "x$ac_cv_prog_cc_c89" in 5809 x) 5810 { $as_echo "$as_me:$LINENO: result: none needed" >&5 5811$as_echo "none needed" >&6; } ;; 5812 xno) 5813 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 5814$as_echo "unsupported" >&6; } ;; 5815 *) 5816 CC="$CC $ac_cv_prog_cc_c89" 5817 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 5818$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5819esac 5820 5821 5822ac_ext=c 5823ac_cpp='$CPP $CPPFLAGS' 5824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5826ac_compiler_gnu=$ac_cv_c_compiler_gnu 5827 5828depcc="$CC" am_compiler_list= 5829 5830{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5831$as_echo_n "checking dependency style of $depcc... " >&6; } 5832if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 5833 $as_echo_n "(cached) " >&6 5834else 5835 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5836 # We make a subdir and do the tests there. Otherwise we can end up 5837 # making bogus files that we don't know about and never remove. For 5838 # instance it was reported that on HP-UX the gcc test will end up 5839 # making a dummy file named `D' -- because `-MD' means `put the output 5840 # in D'. 5841 mkdir conftest.dir 5842 # Copy depcomp to subdir because otherwise we won't find it if we're 5843 # using a relative directory. 5844 cp "$am_depcomp" conftest.dir 5845 cd conftest.dir 5846 # We will build objects and dependencies in a subdirectory because 5847 # it helps to detect inapplicable dependency modes. For instance 5848 # both Tru64's cc and ICC support -MD to output dependencies as a 5849 # side effect of compilation, but ICC will put the dependencies in 5850 # the current directory while Tru64 will put them in the object 5851 # directory. 5852 mkdir sub 5853 5854 am_cv_CC_dependencies_compiler_type=none 5855 if test "$am_compiler_list" = ""; then 5856 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5857 fi 5858 am__universal=false 5859 case " $depcc " in #( 5860 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5861 esac 5862 5863 for depmode in $am_compiler_list; do 5864 # Setup a source with many dependencies, because some compilers 5865 # like to wrap large dependency lists on column 80 (with \), and 5866 # we should not choose a depcomp mode which is confused by this. 5867 # 5868 # We need to recreate these files for each test, as the compiler may 5869 # overwrite some of them when testing with obscure command lines. 5870 # This happens at least with the AIX C compiler. 5871 : > sub/conftest.c 5872 for i in 1 2 3 4 5 6; do 5873 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5874 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5875 # Solaris 8's {/usr,}/bin/sh. 5876 touch sub/conftst$i.h 5877 done 5878 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5879 5880 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5881 # mode. It turns out that the SunPro C++ compiler does not properly 5882 # handle `-M -o', and we need to detect this. Also, some Intel 5883 # versions had trouble with output in subdirs 5884 am__obj=sub/conftest.${OBJEXT-o} 5885 am__minus_obj="-o $am__obj" 5886 case $depmode in 5887 gcc) 5888 # This depmode causes a compiler race in universal mode. 5889 test "$am__universal" = false || continue 5890 ;; 5891 nosideeffect) 5892 # after this tag, mechanisms are not by side-effect, so they'll 5893 # only be used when explicitly requested 5894 if test "x$enable_dependency_tracking" = xyes; then 5895 continue 5896 else 5897 break 5898 fi 5899 ;; 5900 msvisualcpp | msvcmsys) 5901 # This compiler won't grok `-c -o', but also, the minuso test has 5902 # not run yet. These depmodes are late enough in the game, and 5903 # so weak that their functioning should not be impacted. 5904 am__obj=conftest.${OBJEXT-o} 5905 am__minus_obj= 5906 ;; 5907 none) break ;; 5908 esac 5909 if depmode=$depmode \ 5910 source=sub/conftest.c object=$am__obj \ 5911 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5912 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5913 >/dev/null 2>conftest.err && 5914 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5915 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5916 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5917 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5918 # icc doesn't choke on unknown options, it will just issue warnings 5919 # or remarks (even with -Werror). So we grep stderr for any message 5920 # that says an option was ignored or not supported. 5921 # When given -MP, icc 7.0 and 7.1 complain thusly: 5922 # icc: Command line warning: ignoring option '-M'; no argument required 5923 # The diagnosis changed in icc 8.0: 5924 # icc: Command line remark: option '-MP' not supported 5925 if (grep 'ignoring option' conftest.err || 5926 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5927 am_cv_CC_dependencies_compiler_type=$depmode 5928 break 5929 fi 5930 fi 5931 done 5932 5933 cd .. 5934 rm -rf conftest.dir 5935else 5936 am_cv_CC_dependencies_compiler_type=none 5937fi 5938 5939fi 5940{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 5941$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5942CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5943 5944 if 5945 test "x$enable_dependency_tracking" != xno \ 5946 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5947 am__fastdepCC_TRUE= 5948 am__fastdepCC_FALSE='#' 5949else 5950 am__fastdepCC_TRUE='#' 5951 am__fastdepCC_FALSE= 5952fi 5953 5954 5955case `pwd` in 5956 *\ * | *\ *) 5957 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5958$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5959esac 5960 5961 5962 5963macro_version='2.2.6' 5964macro_revision='1.3012' 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978ltmain="$ac_aux_dir/ltmain.sh" 5979 5980{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 5981$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5982if test "${ac_cv_path_SED+set}" = set; then 5983 $as_echo_n "(cached) " >&6 5984else 5985 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5986 for ac_i in 1 2 3 4 5 6 7; do 5987 ac_script="$ac_script$as_nl$ac_script" 5988 done 5989 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5990 $as_unset ac_script || ac_script= 5991 if test -z "$SED"; then 5992 ac_path_SED_found=false 5993 # Loop through the user's path and test for each of PROGNAME-LIST 5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5995for as_dir in $PATH 5996do 5997 IFS=$as_save_IFS 5998 test -z "$as_dir" && as_dir=. 5999 for ac_prog in sed gsed; do 6000 for ac_exec_ext in '' $ac_executable_extensions; do 6001 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6002 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 6003# Check for GNU ac_path_SED and select it if it is found. 6004 # Check for GNU $ac_path_SED 6005case `"$ac_path_SED" --version 2>&1` in 6006*GNU*) 6007 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6008*) 6009 ac_count=0 6010 $as_echo_n 0123456789 >"conftest.in" 6011 while : 6012 do 6013 cat "conftest.in" "conftest.in" >"conftest.tmp" 6014 mv "conftest.tmp" "conftest.in" 6015 cp "conftest.in" "conftest.nl" 6016 $as_echo '' >> "conftest.nl" 6017 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6018 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6019 ac_count=`expr $ac_count + 1` 6020 if test $ac_count -gt ${ac_path_SED_max-0}; then 6021 # Best one so far, save it but keep looking for a better one 6022 ac_cv_path_SED="$ac_path_SED" 6023 ac_path_SED_max=$ac_count 6024 fi 6025 # 10*(2^10) chars as input seems more than enough 6026 test $ac_count -gt 10 && break 6027 done 6028 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6029esac 6030 6031 $ac_path_SED_found && break 3 6032 done 6033 done 6034done 6035IFS=$as_save_IFS 6036 if test -z "$ac_cv_path_SED"; then 6037 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 6038$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 6039 { (exit 1); exit 1; }; } 6040 fi 6041else 6042 ac_cv_path_SED=$SED 6043fi 6044 6045fi 6046{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 6047$as_echo "$ac_cv_path_SED" >&6; } 6048 SED="$ac_cv_path_SED" 6049 rm -f conftest.sed 6050 6051test -z "$SED" && SED=sed 6052Xsed="$SED -e 1s/^X//" 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 6065$as_echo_n "checking for fgrep... " >&6; } 6066if test "${ac_cv_path_FGREP+set}" = set; then 6067 $as_echo_n "(cached) " >&6 6068else 6069 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6070 then ac_cv_path_FGREP="$GREP -F" 6071 else 6072 if test -z "$FGREP"; then 6073 ac_path_FGREP_found=false 6074 # Loop through the user's path and test for each of PROGNAME-LIST 6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6076for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6077do 6078 IFS=$as_save_IFS 6079 test -z "$as_dir" && as_dir=. 6080 for ac_prog in fgrep; do 6081 for ac_exec_ext in '' $ac_executable_extensions; do 6082 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6083 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 6084# Check for GNU ac_path_FGREP and select it if it is found. 6085 # Check for GNU $ac_path_FGREP 6086case `"$ac_path_FGREP" --version 2>&1` in 6087*GNU*) 6088 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6089*) 6090 ac_count=0 6091 $as_echo_n 0123456789 >"conftest.in" 6092 while : 6093 do 6094 cat "conftest.in" "conftest.in" >"conftest.tmp" 6095 mv "conftest.tmp" "conftest.in" 6096 cp "conftest.in" "conftest.nl" 6097 $as_echo 'FGREP' >> "conftest.nl" 6098 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6099 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6100 ac_count=`expr $ac_count + 1` 6101 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6102 # Best one so far, save it but keep looking for a better one 6103 ac_cv_path_FGREP="$ac_path_FGREP" 6104 ac_path_FGREP_max=$ac_count 6105 fi 6106 # 10*(2^10) chars as input seems more than enough 6107 test $ac_count -gt 10 && break 6108 done 6109 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6110esac 6111 6112 $ac_path_FGREP_found && break 3 6113 done 6114 done 6115done 6116IFS=$as_save_IFS 6117 if test -z "$ac_cv_path_FGREP"; then 6118 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 6119$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 6120 { (exit 1); exit 1; }; } 6121 fi 6122else 6123 ac_cv_path_FGREP=$FGREP 6124fi 6125 6126 fi 6127fi 6128{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 6129$as_echo "$ac_cv_path_FGREP" >&6; } 6130 FGREP="$ac_cv_path_FGREP" 6131 6132 6133test -z "$GREP" && GREP=grep 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153# Check whether --with-gnu-ld was given. 6154if test "${with_gnu_ld+set}" = set; then 6155 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6156else 6157 with_gnu_ld=no 6158fi 6159 6160ac_prog=ld 6161if test "$GCC" = yes; then 6162 # Check if gcc -print-prog-name=ld gives a path. 6163 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 6164$as_echo_n "checking for ld used by $CC... " >&6; } 6165 case $host in 6166 *-*-mingw*) 6167 # gcc leaves a trailing carriage return which upsets mingw 6168 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6169 *) 6170 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6171 esac 6172 case $ac_prog in 6173 # Accept absolute paths. 6174 [\\/]* | ?:[\\/]*) 6175 re_direlt='/[^/][^/]*/\.\./' 6176 # Canonicalize the pathname of ld 6177 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6178 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6179 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6180 done 6181 test -z "$LD" && LD="$ac_prog" 6182 ;; 6183 "") 6184 # If it fails, then pretend we aren't using GCC. 6185 ac_prog=ld 6186 ;; 6187 *) 6188 # If it is relative, then search for the first ld in PATH. 6189 with_gnu_ld=unknown 6190 ;; 6191 esac 6192elif test "$with_gnu_ld" = yes; then 6193 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 6194$as_echo_n "checking for GNU ld... " >&6; } 6195else 6196 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 6197$as_echo_n "checking for non-GNU ld... " >&6; } 6198fi 6199if test "${lt_cv_path_LD+set}" = set; then 6200 $as_echo_n "(cached) " >&6 6201else 6202 if test -z "$LD"; then 6203 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6204 for ac_dir in $PATH; do 6205 IFS="$lt_save_ifs" 6206 test -z "$ac_dir" && ac_dir=. 6207 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6208 lt_cv_path_LD="$ac_dir/$ac_prog" 6209 # Check to see if the program is GNU ld. I'd rather use --version, 6210 # but apparently some variants of GNU ld only accept -v. 6211 # Break only if it was the GNU/non-GNU ld that we prefer. 6212 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6213 *GNU* | *'with BFD'*) 6214 test "$with_gnu_ld" != no && break 6215 ;; 6216 *) 6217 test "$with_gnu_ld" != yes && break 6218 ;; 6219 esac 6220 fi 6221 done 6222 IFS="$lt_save_ifs" 6223else 6224 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6225fi 6226fi 6227 6228LD="$lt_cv_path_LD" 6229if test -n "$LD"; then 6230 { $as_echo "$as_me:$LINENO: result: $LD" >&5 6231$as_echo "$LD" >&6; } 6232else 6233 { $as_echo "$as_me:$LINENO: result: no" >&5 6234$as_echo "no" >&6; } 6235fi 6236test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 6237$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 6238 { (exit 1); exit 1; }; } 6239{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 6240$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6241if test "${lt_cv_prog_gnu_ld+set}" = set; then 6242 $as_echo_n "(cached) " >&6 6243else 6244 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6245case `$LD -v 2>&1 </dev/null` in 6246*GNU* | *'with BFD'*) 6247 lt_cv_prog_gnu_ld=yes 6248 ;; 6249*) 6250 lt_cv_prog_gnu_ld=no 6251 ;; 6252esac 6253fi 6254{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 6255$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6256with_gnu_ld=$lt_cv_prog_gnu_ld 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 6267$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6268if test "${lt_cv_path_NM+set}" = set; then 6269 $as_echo_n "(cached) " >&6 6270else 6271 if test -n "$NM"; then 6272 # Let the user override the test. 6273 lt_cv_path_NM="$NM" 6274else 6275 lt_nm_to_check="${ac_tool_prefix}nm" 6276 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6277 lt_nm_to_check="$lt_nm_to_check nm" 6278 fi 6279 for lt_tmp_nm in $lt_nm_to_check; do 6280 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6281 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6282 IFS="$lt_save_ifs" 6283 test -z "$ac_dir" && ac_dir=. 6284 tmp_nm="$ac_dir/$lt_tmp_nm" 6285 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6286 # Check to see if the nm accepts a BSD-compat flag. 6287 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6288 # nm: unknown option "B" ignored 6289 # Tru64's nm complains that /dev/null is an invalid object file 6290 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6291 */dev/null* | *'Invalid file or object type'*) 6292 lt_cv_path_NM="$tmp_nm -B" 6293 break 6294 ;; 6295 *) 6296 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6297 */dev/null*) 6298 lt_cv_path_NM="$tmp_nm -p" 6299 break 6300 ;; 6301 *) 6302 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6303 continue # so that we can try to find one that supports BSD flags 6304 ;; 6305 esac 6306 ;; 6307 esac 6308 fi 6309 done 6310 IFS="$lt_save_ifs" 6311 done 6312 : ${lt_cv_path_NM=no} 6313fi 6314fi 6315{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 6316$as_echo "$lt_cv_path_NM" >&6; } 6317if test "$lt_cv_path_NM" != "no"; then 6318 NM="$lt_cv_path_NM" 6319else 6320 # Didn't find any BSD compatible name lister, look for dumpbin. 6321 if test -n "$ac_tool_prefix"; then 6322 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 6323 do 6324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6325set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6326{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6327$as_echo_n "checking for $ac_word... " >&6; } 6328if test "${ac_cv_prog_DUMPBIN+set}" = set; then 6329 $as_echo_n "(cached) " >&6 6330else 6331 if test -n "$DUMPBIN"; then 6332 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6333else 6334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6335for as_dir in $PATH 6336do 6337 IFS=$as_save_IFS 6338 test -z "$as_dir" && as_dir=. 6339 for ac_exec_ext in '' $ac_executable_extensions; do 6340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6341 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6343 break 2 6344 fi 6345done 6346done 6347IFS=$as_save_IFS 6348 6349fi 6350fi 6351DUMPBIN=$ac_cv_prog_DUMPBIN 6352if test -n "$DUMPBIN"; then 6353 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 6354$as_echo "$DUMPBIN" >&6; } 6355else 6356 { $as_echo "$as_me:$LINENO: result: no" >&5 6357$as_echo "no" >&6; } 6358fi 6359 6360 6361 test -n "$DUMPBIN" && break 6362 done 6363fi 6364if test -z "$DUMPBIN"; then 6365 ac_ct_DUMPBIN=$DUMPBIN 6366 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 6367do 6368 # Extract the first word of "$ac_prog", so it can be a program name with args. 6369set dummy $ac_prog; ac_word=$2 6370{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6371$as_echo_n "checking for $ac_word... " >&6; } 6372if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 6373 $as_echo_n "(cached) " >&6 6374else 6375 if test -n "$ac_ct_DUMPBIN"; then 6376 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6377else 6378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6379for as_dir in $PATH 6380do 6381 IFS=$as_save_IFS 6382 test -z "$as_dir" && as_dir=. 6383 for ac_exec_ext in '' $ac_executable_extensions; do 6384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6385 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6386 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6387 break 2 6388 fi 6389done 6390done 6391IFS=$as_save_IFS 6392 6393fi 6394fi 6395ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6396if test -n "$ac_ct_DUMPBIN"; then 6397 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 6398$as_echo "$ac_ct_DUMPBIN" >&6; } 6399else 6400 { $as_echo "$as_me:$LINENO: result: no" >&5 6401$as_echo "no" >&6; } 6402fi 6403 6404 6405 test -n "$ac_ct_DUMPBIN" && break 6406done 6407 6408 if test "x$ac_ct_DUMPBIN" = x; then 6409 DUMPBIN=":" 6410 else 6411 case $cross_compiling:$ac_tool_warned in 6412yes:) 6413{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6415ac_tool_warned=yes ;; 6416esac 6417 DUMPBIN=$ac_ct_DUMPBIN 6418 fi 6419fi 6420 6421 6422 if test "$DUMPBIN" != ":"; then 6423 NM="$DUMPBIN" 6424 fi 6425fi 6426test -z "$NM" && NM=nm 6427 6428 6429 6430 6431 6432 6433{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 6434$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6435if test "${lt_cv_nm_interface+set}" = set; then 6436 $as_echo_n "(cached) " >&6 6437else 6438 lt_cv_nm_interface="BSD nm" 6439 echo "int some_variable = 0;" > conftest.$ac_ext 6440 (eval echo "\"\$as_me:6440: $ac_compile\"" >&5) 6441 (eval "$ac_compile" 2>conftest.err) 6442 cat conftest.err >&5 6443 (eval echo "\"\$as_me:6443: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6444 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6445 cat conftest.err >&5 6446 (eval echo "\"\$as_me:6446: output\"" >&5) 6447 cat conftest.out >&5 6448 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6449 lt_cv_nm_interface="MS dumpbin" 6450 fi 6451 rm -f conftest* 6452fi 6453{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 6454$as_echo "$lt_cv_nm_interface" >&6; } 6455 6456{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 6457$as_echo_n "checking whether ln -s works... " >&6; } 6458LN_S=$as_ln_s 6459if test "$LN_S" = "ln -s"; then 6460 { $as_echo "$as_me:$LINENO: result: yes" >&5 6461$as_echo "yes" >&6; } 6462else 6463 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 6464$as_echo "no, using $LN_S" >&6; } 6465fi 6466 6467# find the maximum length of command line arguments 6468{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6469$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6470if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6471 $as_echo_n "(cached) " >&6 6472else 6473 i=0 6474 teststring="ABCD" 6475 6476 case $build_os in 6477 msdosdjgpp*) 6478 # On DJGPP, this test can blow up pretty badly due to problems in libc 6479 # (any single argument exceeding 2000 bytes causes a buffer overrun 6480 # during glob expansion). Even if it were fixed, the result of this 6481 # check would be larger than it should be. 6482 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6483 ;; 6484 6485 gnu*) 6486 # Under GNU Hurd, this test is not required because there is 6487 # no limit to the length of command line arguments. 6488 # Libtool will interpret -1 as no limit whatsoever 6489 lt_cv_sys_max_cmd_len=-1; 6490 ;; 6491 6492 cygwin* | mingw* | cegcc*) 6493 # On Win9x/ME, this test blows up -- it succeeds, but takes 6494 # about 5 minutes as the teststring grows exponentially. 6495 # Worse, since 9x/ME are not pre-emptively multitasking, 6496 # you end up with a "frozen" computer, even though with patience 6497 # the test eventually succeeds (with a max line length of 256k). 6498 # Instead, let's just punt: use the minimum linelength reported by 6499 # all of the supported platforms: 8192 (on NT/2K/XP). 6500 lt_cv_sys_max_cmd_len=8192; 6501 ;; 6502 6503 amigaos*) 6504 # On AmigaOS with pdksh, this test takes hours, literally. 6505 # So we just punt and use a minimum line length of 8192. 6506 lt_cv_sys_max_cmd_len=8192; 6507 ;; 6508 6509 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6510 # This has been around since 386BSD, at least. Likely further. 6511 if test -x /sbin/sysctl; then 6512 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6513 elif test -x /usr/sbin/sysctl; then 6514 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6515 else 6516 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6517 fi 6518 # And add a safety zone 6519 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6520 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6521 ;; 6522 6523 interix*) 6524 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6525 lt_cv_sys_max_cmd_len=196608 6526 ;; 6527 6528 osf*) 6529 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6530 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6531 # nice to cause kernel panics so lets avoid the loop below. 6532 # First set a reasonable default. 6533 lt_cv_sys_max_cmd_len=16384 6534 # 6535 if test -x /sbin/sysconfig; then 6536 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6537 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6538 esac 6539 fi 6540 ;; 6541 sco3.2v5*) 6542 lt_cv_sys_max_cmd_len=102400 6543 ;; 6544 sysv5* | sco5v6* | sysv4.2uw2*) 6545 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6546 if test -n "$kargmax"; then 6547 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6548 else 6549 lt_cv_sys_max_cmd_len=32768 6550 fi 6551 ;; 6552 *) 6553 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6554 if test -n "$lt_cv_sys_max_cmd_len"; then 6555 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6556 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6557 else 6558 # Make teststring a little bigger before we do anything with it. 6559 # a 1K string should be a reasonable start. 6560 for i in 1 2 3 4 5 6 7 8 ; do 6561 teststring=$teststring$teststring 6562 done 6563 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6564 # If test is not a shell built-in, we'll probably end up computing a 6565 # maximum length that is only half of the actual maximum length, but 6566 # we can't tell. 6567 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 6568 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 6569 test $i != 17 # 1/2 MB should be enough 6570 do 6571 i=`expr $i + 1` 6572 teststring=$teststring$teststring 6573 done 6574 # Only check the string length outside the loop. 6575 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6576 teststring= 6577 # Add a significant safety factor because C++ compilers can tack on 6578 # massive amounts of additional arguments before passing them to the 6579 # linker. It appears as though 1/2 is a usable value. 6580 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6581 fi 6582 ;; 6583 esac 6584 6585fi 6586 6587if test -n $lt_cv_sys_max_cmd_len ; then 6588 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6589$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6590else 6591 { $as_echo "$as_me:$LINENO: result: none" >&5 6592$as_echo "none" >&6; } 6593fi 6594max_cmd_len=$lt_cv_sys_max_cmd_len 6595 6596 6597 6598 6599 6600 6601: ${CP="cp -f"} 6602: ${MV="mv -f"} 6603: ${RM="rm -f"} 6604 6605{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 6606$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6607# Try some XSI features 6608xsi_shell=no 6609( _lt_dummy="a/b/c" 6610 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 6611 = c,a/b,, \ 6612 && eval 'test $(( 1 + 1 )) -eq 2 \ 6613 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6614 && xsi_shell=yes 6615{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 6616$as_echo "$xsi_shell" >&6; } 6617 6618 6619{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 6620$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6621lt_shell_append=no 6622( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6623 >/dev/null 2>&1 \ 6624 && lt_shell_append=yes 6625{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 6626$as_echo "$lt_shell_append" >&6; } 6627 6628 6629if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6630 lt_unset=unset 6631else 6632 lt_unset=false 6633fi 6634 6635 6636 6637 6638 6639# test EBCDIC or ASCII 6640case `echo X|tr X '\101'` in 6641 A) # ASCII based system 6642 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6643 lt_SP2NL='tr \040 \012' 6644 lt_NL2SP='tr \015\012 \040\040' 6645 ;; 6646 *) # EBCDIC based system 6647 lt_SP2NL='tr \100 \n' 6648 lt_NL2SP='tr \r\n \100\100' 6649 ;; 6650esac 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 6661$as_echo_n "checking for $LD option to reload object files... " >&6; } 6662if test "${lt_cv_ld_reload_flag+set}" = set; then 6663 $as_echo_n "(cached) " >&6 6664else 6665 lt_cv_ld_reload_flag='-r' 6666fi 6667{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 6668$as_echo "$lt_cv_ld_reload_flag" >&6; } 6669reload_flag=$lt_cv_ld_reload_flag 6670case $reload_flag in 6671"" | " "*) ;; 6672*) reload_flag=" $reload_flag" ;; 6673esac 6674reload_cmds='$LD$reload_flag -o $output$reload_objs' 6675case $host_os in 6676 darwin*) 6677 if test "$GCC" = yes; then 6678 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6679 else 6680 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6681 fi 6682 ;; 6683esac 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693if test -n "$ac_tool_prefix"; then 6694 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6695set dummy ${ac_tool_prefix}objdump; ac_word=$2 6696{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6697$as_echo_n "checking for $ac_word... " >&6; } 6698if test "${ac_cv_prog_OBJDUMP+set}" = set; then 6699 $as_echo_n "(cached) " >&6 6700else 6701 if test -n "$OBJDUMP"; then 6702 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6703else 6704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6705for as_dir in $PATH 6706do 6707 IFS=$as_save_IFS 6708 test -z "$as_dir" && as_dir=. 6709 for ac_exec_ext in '' $ac_executable_extensions; do 6710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6711 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6712 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6713 break 2 6714 fi 6715done 6716done 6717IFS=$as_save_IFS 6718 6719fi 6720fi 6721OBJDUMP=$ac_cv_prog_OBJDUMP 6722if test -n "$OBJDUMP"; then 6723 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 6724$as_echo "$OBJDUMP" >&6; } 6725else 6726 { $as_echo "$as_me:$LINENO: result: no" >&5 6727$as_echo "no" >&6; } 6728fi 6729 6730 6731fi 6732if test -z "$ac_cv_prog_OBJDUMP"; then 6733 ac_ct_OBJDUMP=$OBJDUMP 6734 # Extract the first word of "objdump", so it can be a program name with args. 6735set dummy objdump; ac_word=$2 6736{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6737$as_echo_n "checking for $ac_word... " >&6; } 6738if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 6739 $as_echo_n "(cached) " >&6 6740else 6741 if test -n "$ac_ct_OBJDUMP"; then 6742 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6743else 6744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6745for as_dir in $PATH 6746do 6747 IFS=$as_save_IFS 6748 test -z "$as_dir" && as_dir=. 6749 for ac_exec_ext in '' $ac_executable_extensions; do 6750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6751 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6752 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6753 break 2 6754 fi 6755done 6756done 6757IFS=$as_save_IFS 6758 6759fi 6760fi 6761ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6762if test -n "$ac_ct_OBJDUMP"; then 6763 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 6764$as_echo "$ac_ct_OBJDUMP" >&6; } 6765else 6766 { $as_echo "$as_me:$LINENO: result: no" >&5 6767$as_echo "no" >&6; } 6768fi 6769 6770 if test "x$ac_ct_OBJDUMP" = x; then 6771 OBJDUMP="false" 6772 else 6773 case $cross_compiling:$ac_tool_warned in 6774yes:) 6775{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6777ac_tool_warned=yes ;; 6778esac 6779 OBJDUMP=$ac_ct_OBJDUMP 6780 fi 6781else 6782 OBJDUMP="$ac_cv_prog_OBJDUMP" 6783fi 6784 6785test -z "$OBJDUMP" && OBJDUMP=objdump 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 6796$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6797if test "${lt_cv_deplibs_check_method+set}" = set; then 6798 $as_echo_n "(cached) " >&6 6799else 6800 lt_cv_file_magic_cmd='$MAGIC_CMD' 6801lt_cv_file_magic_test_file= 6802lt_cv_deplibs_check_method='unknown' 6803# Need to set the preceding variable on all platforms that support 6804# interlibrary dependencies. 6805# 'none' -- dependencies not supported. 6806# `unknown' -- same as none, but documents that we really don't know. 6807# 'pass_all' -- all dependencies passed with no checks. 6808# 'test_compile' -- check by making test program. 6809# 'file_magic [[regex]]' -- check by looking for files in library path 6810# which responds to the $file_magic_cmd with a given extended regex. 6811# If you have `file' or equivalent on your system and you're not sure 6812# whether `pass_all' will *always* work, you probably want this one. 6813 6814case $host_os in 6815aix[4-9]*) 6816 lt_cv_deplibs_check_method=pass_all 6817 ;; 6818 6819beos*) 6820 lt_cv_deplibs_check_method=pass_all 6821 ;; 6822 6823bsdi[45]*) 6824 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6825 lt_cv_file_magic_cmd='/usr/bin/file -L' 6826 lt_cv_file_magic_test_file=/shlib/libc.so 6827 ;; 6828 6829cygwin*) 6830 # func_win32_libid is a shell function defined in ltmain.sh 6831 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6832 lt_cv_file_magic_cmd='func_win32_libid' 6833 ;; 6834 6835mingw* | pw32*) 6836 # Base MSYS/MinGW do not provide the 'file' command needed by 6837 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6838 # unless we find 'file', for example because we are cross-compiling. 6839 if ( file / ) >/dev/null 2>&1; then 6840 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6841 lt_cv_file_magic_cmd='func_win32_libid' 6842 else 6843 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6844 lt_cv_file_magic_cmd='$OBJDUMP -f' 6845 fi 6846 ;; 6847 6848cegcc) 6849 # use the weaker test based on 'objdump'. See mingw*. 6850 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6851 lt_cv_file_magic_cmd='$OBJDUMP -f' 6852 ;; 6853 6854darwin* | rhapsody*) 6855 lt_cv_deplibs_check_method=pass_all 6856 ;; 6857 6858freebsd* | dragonfly*) 6859 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6860 case $host_cpu in 6861 i*86 ) 6862 # Not sure whether the presence of OpenBSD here was a mistake. 6863 # Let's accept both of them until this is cleared up. 6864 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6865 lt_cv_file_magic_cmd=/usr/bin/file 6866 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6867 ;; 6868 esac 6869 else 6870 lt_cv_deplibs_check_method=pass_all 6871 fi 6872 ;; 6873 6874gnu*) 6875 lt_cv_deplibs_check_method=pass_all 6876 ;; 6877 6878hpux10.20* | hpux11*) 6879 lt_cv_file_magic_cmd=/usr/bin/file 6880 case $host_cpu in 6881 ia64*) 6882 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6883 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6884 ;; 6885 hppa*64*) 6886 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]' 6887 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6888 ;; 6889 *) 6890 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6891 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6892 ;; 6893 esac 6894 ;; 6895 6896interix[3-9]*) 6897 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6898 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6899 ;; 6900 6901irix5* | irix6* | nonstopux*) 6902 case $LD in 6903 *-32|*"-32 ") libmagic=32-bit;; 6904 *-n32|*"-n32 ") libmagic=N32;; 6905 *-64|*"-64 ") libmagic=64-bit;; 6906 *) libmagic=never-match;; 6907 esac 6908 lt_cv_deplibs_check_method=pass_all 6909 ;; 6910 6911# This must be Linux ELF. 6912linux* | k*bsd*-gnu) 6913 lt_cv_deplibs_check_method=pass_all 6914 ;; 6915 6916netbsd*) 6917 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6918 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6919 else 6920 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6921 fi 6922 ;; 6923 6924newos6*) 6925 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6926 lt_cv_file_magic_cmd=/usr/bin/file 6927 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6928 ;; 6929 6930*nto* | *qnx*) 6931 lt_cv_deplibs_check_method=pass_all 6932 ;; 6933 6934openbsd*) 6935 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6936 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6937 else 6938 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6939 fi 6940 ;; 6941 6942osf3* | osf4* | osf5*) 6943 lt_cv_deplibs_check_method=pass_all 6944 ;; 6945 6946rdos*) 6947 lt_cv_deplibs_check_method=pass_all 6948 ;; 6949 6950solaris*) 6951 lt_cv_deplibs_check_method=pass_all 6952 ;; 6953 6954sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6955 lt_cv_deplibs_check_method=pass_all 6956 ;; 6957 6958sysv4 | sysv4.3*) 6959 case $host_vendor in 6960 motorola) 6961 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]' 6962 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6963 ;; 6964 ncr) 6965 lt_cv_deplibs_check_method=pass_all 6966 ;; 6967 sequent) 6968 lt_cv_file_magic_cmd='/bin/file' 6969 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6970 ;; 6971 sni) 6972 lt_cv_file_magic_cmd='/bin/file' 6973 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6974 lt_cv_file_magic_test_file=/lib/libc.so 6975 ;; 6976 siemens) 6977 lt_cv_deplibs_check_method=pass_all 6978 ;; 6979 pc) 6980 lt_cv_deplibs_check_method=pass_all 6981 ;; 6982 esac 6983 ;; 6984 6985tpf*) 6986 lt_cv_deplibs_check_method=pass_all 6987 ;; 6988esac 6989 6990fi 6991{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 6992$as_echo "$lt_cv_deplibs_check_method" >&6; } 6993file_magic_cmd=$lt_cv_file_magic_cmd 6994deplibs_check_method=$lt_cv_deplibs_check_method 6995test -z "$deplibs_check_method" && deplibs_check_method=unknown 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008if test -n "$ac_tool_prefix"; then 7009 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7010set dummy ${ac_tool_prefix}ar; ac_word=$2 7011{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7012$as_echo_n "checking for $ac_word... " >&6; } 7013if test "${ac_cv_prog_AR+set}" = set; then 7014 $as_echo_n "(cached) " >&6 7015else 7016 if test -n "$AR"; then 7017 ac_cv_prog_AR="$AR" # Let the user override the test. 7018else 7019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7020for as_dir in $PATH 7021do 7022 IFS=$as_save_IFS 7023 test -z "$as_dir" && as_dir=. 7024 for ac_exec_ext in '' $ac_executable_extensions; do 7025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7026 ac_cv_prog_AR="${ac_tool_prefix}ar" 7027 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7028 break 2 7029 fi 7030done 7031done 7032IFS=$as_save_IFS 7033 7034fi 7035fi 7036AR=$ac_cv_prog_AR 7037if test -n "$AR"; then 7038 { $as_echo "$as_me:$LINENO: result: $AR" >&5 7039$as_echo "$AR" >&6; } 7040else 7041 { $as_echo "$as_me:$LINENO: result: no" >&5 7042$as_echo "no" >&6; } 7043fi 7044 7045 7046fi 7047if test -z "$ac_cv_prog_AR"; then 7048 ac_ct_AR=$AR 7049 # Extract the first word of "ar", so it can be a program name with args. 7050set dummy ar; ac_word=$2 7051{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7052$as_echo_n "checking for $ac_word... " >&6; } 7053if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7054 $as_echo_n "(cached) " >&6 7055else 7056 if test -n "$ac_ct_AR"; then 7057 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7058else 7059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7060for as_dir in $PATH 7061do 7062 IFS=$as_save_IFS 7063 test -z "$as_dir" && as_dir=. 7064 for ac_exec_ext in '' $ac_executable_extensions; do 7065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7066 ac_cv_prog_ac_ct_AR="ar" 7067 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7068 break 2 7069 fi 7070done 7071done 7072IFS=$as_save_IFS 7073 7074fi 7075fi 7076ac_ct_AR=$ac_cv_prog_ac_ct_AR 7077if test -n "$ac_ct_AR"; then 7078 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7079$as_echo "$ac_ct_AR" >&6; } 7080else 7081 { $as_echo "$as_me:$LINENO: result: no" >&5 7082$as_echo "no" >&6; } 7083fi 7084 7085 if test "x$ac_ct_AR" = x; then 7086 AR="false" 7087 else 7088 case $cross_compiling:$ac_tool_warned in 7089yes:) 7090{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7092ac_tool_warned=yes ;; 7093esac 7094 AR=$ac_ct_AR 7095 fi 7096else 7097 AR="$ac_cv_prog_AR" 7098fi 7099 7100test -z "$AR" && AR=ar 7101test -z "$AR_FLAGS" && AR_FLAGS=cru 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113if test -n "$ac_tool_prefix"; then 7114 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7115set dummy ${ac_tool_prefix}strip; ac_word=$2 7116{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7117$as_echo_n "checking for $ac_word... " >&6; } 7118if test "${ac_cv_prog_STRIP+set}" = set; then 7119 $as_echo_n "(cached) " >&6 7120else 7121 if test -n "$STRIP"; then 7122 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7123else 7124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7125for as_dir in $PATH 7126do 7127 IFS=$as_save_IFS 7128 test -z "$as_dir" && as_dir=. 7129 for ac_exec_ext in '' $ac_executable_extensions; do 7130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7131 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7132 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7133 break 2 7134 fi 7135done 7136done 7137IFS=$as_save_IFS 7138 7139fi 7140fi 7141STRIP=$ac_cv_prog_STRIP 7142if test -n "$STRIP"; then 7143 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 7144$as_echo "$STRIP" >&6; } 7145else 7146 { $as_echo "$as_me:$LINENO: result: no" >&5 7147$as_echo "no" >&6; } 7148fi 7149 7150 7151fi 7152if test -z "$ac_cv_prog_STRIP"; then 7153 ac_ct_STRIP=$STRIP 7154 # Extract the first word of "strip", so it can be a program name with args. 7155set dummy strip; ac_word=$2 7156{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7157$as_echo_n "checking for $ac_word... " >&6; } 7158if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7159 $as_echo_n "(cached) " >&6 7160else 7161 if test -n "$ac_ct_STRIP"; then 7162 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7163else 7164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7165for as_dir in $PATH 7166do 7167 IFS=$as_save_IFS 7168 test -z "$as_dir" && as_dir=. 7169 for ac_exec_ext in '' $ac_executable_extensions; do 7170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7171 ac_cv_prog_ac_ct_STRIP="strip" 7172 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7173 break 2 7174 fi 7175done 7176done 7177IFS=$as_save_IFS 7178 7179fi 7180fi 7181ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7182if test -n "$ac_ct_STRIP"; then 7183 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7184$as_echo "$ac_ct_STRIP" >&6; } 7185else 7186 { $as_echo "$as_me:$LINENO: result: no" >&5 7187$as_echo "no" >&6; } 7188fi 7189 7190 if test "x$ac_ct_STRIP" = x; then 7191 STRIP=":" 7192 else 7193 case $cross_compiling:$ac_tool_warned in 7194yes:) 7195{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7196$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7197ac_tool_warned=yes ;; 7198esac 7199 STRIP=$ac_ct_STRIP 7200 fi 7201else 7202 STRIP="$ac_cv_prog_STRIP" 7203fi 7204 7205test -z "$STRIP" && STRIP=: 7206 7207 7208 7209 7210 7211 7212if test -n "$ac_tool_prefix"; then 7213 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7214set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7215{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7216$as_echo_n "checking for $ac_word... " >&6; } 7217if test "${ac_cv_prog_RANLIB+set}" = set; then 7218 $as_echo_n "(cached) " >&6 7219else 7220 if test -n "$RANLIB"; then 7221 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7222else 7223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7224for as_dir in $PATH 7225do 7226 IFS=$as_save_IFS 7227 test -z "$as_dir" && as_dir=. 7228 for ac_exec_ext in '' $ac_executable_extensions; do 7229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7230 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7231 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7232 break 2 7233 fi 7234done 7235done 7236IFS=$as_save_IFS 7237 7238fi 7239fi 7240RANLIB=$ac_cv_prog_RANLIB 7241if test -n "$RANLIB"; then 7242 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 7243$as_echo "$RANLIB" >&6; } 7244else 7245 { $as_echo "$as_me:$LINENO: result: no" >&5 7246$as_echo "no" >&6; } 7247fi 7248 7249 7250fi 7251if test -z "$ac_cv_prog_RANLIB"; then 7252 ac_ct_RANLIB=$RANLIB 7253 # Extract the first word of "ranlib", so it can be a program name with args. 7254set dummy ranlib; ac_word=$2 7255{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7256$as_echo_n "checking for $ac_word... " >&6; } 7257if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7258 $as_echo_n "(cached) " >&6 7259else 7260 if test -n "$ac_ct_RANLIB"; then 7261 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7262else 7263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7264for as_dir in $PATH 7265do 7266 IFS=$as_save_IFS 7267 test -z "$as_dir" && as_dir=. 7268 for ac_exec_ext in '' $ac_executable_extensions; do 7269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7270 ac_cv_prog_ac_ct_RANLIB="ranlib" 7271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7272 break 2 7273 fi 7274done 7275done 7276IFS=$as_save_IFS 7277 7278fi 7279fi 7280ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7281if test -n "$ac_ct_RANLIB"; then 7282 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7283$as_echo "$ac_ct_RANLIB" >&6; } 7284else 7285 { $as_echo "$as_me:$LINENO: result: no" >&5 7286$as_echo "no" >&6; } 7287fi 7288 7289 if test "x$ac_ct_RANLIB" = x; then 7290 RANLIB=":" 7291 else 7292 case $cross_compiling:$ac_tool_warned in 7293yes:) 7294{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7296ac_tool_warned=yes ;; 7297esac 7298 RANLIB=$ac_ct_RANLIB 7299 fi 7300else 7301 RANLIB="$ac_cv_prog_RANLIB" 7302fi 7303 7304test -z "$RANLIB" && RANLIB=: 7305 7306 7307 7308 7309 7310 7311# Determine commands to create old-style static archives. 7312old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7313old_postinstall_cmds='chmod 644 $oldlib' 7314old_postuninstall_cmds= 7315 7316if test -n "$RANLIB"; then 7317 case $host_os in 7318 openbsd*) 7319 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7320 ;; 7321 *) 7322 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7323 ;; 7324 esac 7325 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7326fi 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361# If no C compiler was specified, use CC. 7362LTCC=${LTCC-"$CC"} 7363 7364# If no C compiler flags were specified, use CFLAGS. 7365LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7366 7367# Allow CC to be a program name with arguments. 7368compiler=$CC 7369 7370 7371# Check for command to grab the raw symbol name followed by C symbol from nm. 7372{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 7373$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7374if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 7375 $as_echo_n "(cached) " >&6 7376else 7377 7378# These are sane defaults that work on at least a few old systems. 7379# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7380 7381# Character class describing NM global symbol codes. 7382symcode='[BCDEGRST]' 7383 7384# Regexp to match symbols that can be accessed directly from C. 7385sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7386 7387# Define system-specific variables. 7388case $host_os in 7389aix*) 7390 symcode='[BCDT]' 7391 ;; 7392cygwin* | mingw* | pw32* | cegcc*) 7393 symcode='[ABCDGISTW]' 7394 ;; 7395hpux*) 7396 if test "$host_cpu" = ia64; then 7397 symcode='[ABCDEGRST]' 7398 fi 7399 ;; 7400irix* | nonstopux*) 7401 symcode='[BCDEGRST]' 7402 ;; 7403osf*) 7404 symcode='[BCDEGQRST]' 7405 ;; 7406solaris*) 7407 symcode='[BDRT]' 7408 ;; 7409sco3.2v5*) 7410 symcode='[DT]' 7411 ;; 7412sysv4.2uw2*) 7413 symcode='[DT]' 7414 ;; 7415sysv5* | sco5v6* | unixware* | OpenUNIX*) 7416 symcode='[ABDT]' 7417 ;; 7418sysv4) 7419 symcode='[DFNSTU]' 7420 ;; 7421esac 7422 7423# If we're using GNU nm, then use its standard symbol codes. 7424case `$NM -V 2>&1` in 7425*GNU* | *'with BFD'*) 7426 symcode='[ABCDGIRSTW]' ;; 7427esac 7428 7429# Transform an extracted symbol line into a proper C declaration. 7430# Some systems (esp. on ia64) link data and code symbols differently, 7431# so use this general approach. 7432lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7433 7434# Transform an extracted symbol line into symbol name and symbol address 7435lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7436lt_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'" 7437 7438# Handle CRLF in mingw tool chain 7439opt_cr= 7440case $build_os in 7441mingw*) 7442 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7443 ;; 7444esac 7445 7446# Try without a prefix underscore, then with it. 7447for ac_symprfx in "" "_"; do 7448 7449 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7450 symxfrm="\\1 $ac_symprfx\\2 \\2" 7451 7452 # Write the raw and C identifiers. 7453 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7454 # Fake it for dumpbin and say T for any non-static function 7455 # and D for any global variable. 7456 # Also find C++ and __fastcall symbols from MSVC++, 7457 # which start with @ or ?. 7458 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7459" {last_section=section; section=\$ 3};"\ 7460" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7461" \$ 0!~/External *\|/{next};"\ 7462" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7463" {if(hide[section]) next};"\ 7464" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7465" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7466" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7467" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7468" ' prfx=^$ac_symprfx" 7469 else 7470 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7471 fi 7472 7473 # Check to see that the pipe works correctly. 7474 pipe_works=no 7475 7476 rm -f conftest* 7477 cat > conftest.$ac_ext <<_LT_EOF 7478#ifdef __cplusplus 7479extern "C" { 7480#endif 7481char nm_test_var; 7482void nm_test_func(void); 7483void nm_test_func(void){} 7484#ifdef __cplusplus 7485} 7486#endif 7487int main(){nm_test_var='a';nm_test_func();return(0);} 7488_LT_EOF 7489 7490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7491 (eval $ac_compile) 2>&5 7492 ac_status=$? 7493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7494 (exit $ac_status); }; then 7495 # Now try to grab the symbols. 7496 nlist=conftest.nm 7497 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 7498 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7499 ac_status=$? 7500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7501 (exit $ac_status); } && test -s "$nlist"; then 7502 # Try sorting and uniquifying the output. 7503 if sort "$nlist" | uniq > "$nlist"T; then 7504 mv -f "$nlist"T "$nlist" 7505 else 7506 rm -f "$nlist"T 7507 fi 7508 7509 # Make sure that we snagged all the symbols we need. 7510 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7511 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7512 cat <<_LT_EOF > conftest.$ac_ext 7513#ifdef __cplusplus 7514extern "C" { 7515#endif 7516 7517_LT_EOF 7518 # Now generate the symbol file. 7519 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7520 7521 cat <<_LT_EOF >> conftest.$ac_ext 7522 7523/* The mapping between symbol names and symbols. */ 7524const struct { 7525 const char *name; 7526 void *address; 7527} 7528lt__PROGRAM__LTX_preloaded_symbols[] = 7529{ 7530 { "@PROGRAM@", (void *) 0 }, 7531_LT_EOF 7532 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7533 cat <<\_LT_EOF >> conftest.$ac_ext 7534 {0, (void *) 0} 7535}; 7536 7537/* This works around a problem in FreeBSD linker */ 7538#ifdef FREEBSD_WORKAROUND 7539static const void *lt_preloaded_setup() { 7540 return lt__PROGRAM__LTX_preloaded_symbols; 7541} 7542#endif 7543 7544#ifdef __cplusplus 7545} 7546#endif 7547_LT_EOF 7548 # Now try linking the two files. 7549 mv conftest.$ac_objext conftstm.$ac_objext 7550 lt_save_LIBS="$LIBS" 7551 lt_save_CFLAGS="$CFLAGS" 7552 LIBS="conftstm.$ac_objext" 7553 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7555 (eval $ac_link) 2>&5 7556 ac_status=$? 7557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7558 (exit $ac_status); } && test -s conftest${ac_exeext}; then 7559 pipe_works=yes 7560 fi 7561 LIBS="$lt_save_LIBS" 7562 CFLAGS="$lt_save_CFLAGS" 7563 else 7564 echo "cannot find nm_test_func in $nlist" >&5 7565 fi 7566 else 7567 echo "cannot find nm_test_var in $nlist" >&5 7568 fi 7569 else 7570 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7571 fi 7572 else 7573 echo "$progname: failed program was:" >&5 7574 cat conftest.$ac_ext >&5 7575 fi 7576 rm -rf conftest* conftst* 7577 7578 # Do not use the global_symbol_pipe unless it works. 7579 if test "$pipe_works" = yes; then 7580 break 7581 else 7582 lt_cv_sys_global_symbol_pipe= 7583 fi 7584done 7585 7586fi 7587 7588if test -z "$lt_cv_sys_global_symbol_pipe"; then 7589 lt_cv_sys_global_symbol_to_cdecl= 7590fi 7591if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7592 { $as_echo "$as_me:$LINENO: result: failed" >&5 7593$as_echo "failed" >&6; } 7594else 7595 { $as_echo "$as_me:$LINENO: result: ok" >&5 7596$as_echo "ok" >&6; } 7597fi 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620# Check whether --enable-libtool-lock was given. 7621if test "${enable_libtool_lock+set}" = set; then 7622 enableval=$enable_libtool_lock; 7623fi 7624 7625test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7626 7627# Some flags need to be propagated to the compiler or linker for good 7628# libtool support. 7629case $host in 7630ia64-*-hpux*) 7631 # Find out which ABI we are using. 7632 echo 'int i;' > conftest.$ac_ext 7633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7634 (eval $ac_compile) 2>&5 7635 ac_status=$? 7636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7637 (exit $ac_status); }; then 7638 case `/usr/bin/file conftest.$ac_objext` in 7639 *ELF-32*) 7640 HPUX_IA64_MODE="32" 7641 ;; 7642 *ELF-64*) 7643 HPUX_IA64_MODE="64" 7644 ;; 7645 esac 7646 fi 7647 rm -rf conftest* 7648 ;; 7649*-*-irix6*) 7650 # Find out which ABI we are using. 7651 echo '#line 7651 "configure"' > conftest.$ac_ext 7652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7653 (eval $ac_compile) 2>&5 7654 ac_status=$? 7655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7656 (exit $ac_status); }; then 7657 if test "$lt_cv_prog_gnu_ld" = yes; then 7658 case `/usr/bin/file conftest.$ac_objext` in 7659 *32-bit*) 7660 LD="${LD-ld} -melf32bsmip" 7661 ;; 7662 *N32*) 7663 LD="${LD-ld} -melf32bmipn32" 7664 ;; 7665 *64-bit*) 7666 LD="${LD-ld} -melf64bmip" 7667 ;; 7668 esac 7669 else 7670 case `/usr/bin/file conftest.$ac_objext` in 7671 *32-bit*) 7672 LD="${LD-ld} -32" 7673 ;; 7674 *N32*) 7675 LD="${LD-ld} -n32" 7676 ;; 7677 *64-bit*) 7678 LD="${LD-ld} -64" 7679 ;; 7680 esac 7681 fi 7682 fi 7683 rm -rf conftest* 7684 ;; 7685 7686x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7687s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7688 # Find out which ABI we are using. 7689 echo 'int i;' > conftest.$ac_ext 7690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7691 (eval $ac_compile) 2>&5 7692 ac_status=$? 7693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7694 (exit $ac_status); }; then 7695 case `/usr/bin/file conftest.o` in 7696 *32-bit*) 7697 case $host in 7698 x86_64-*kfreebsd*-gnu) 7699 LD="${LD-ld} -m elf_i386_fbsd" 7700 ;; 7701 x86_64-*linux*) 7702 LD="${LD-ld} -m elf_i386" 7703 ;; 7704 ppc64-*linux*|powerpc64-*linux*) 7705 LD="${LD-ld} -m elf32ppclinux" 7706 ;; 7707 s390x-*linux*) 7708 LD="${LD-ld} -m elf_s390" 7709 ;; 7710 sparc64-*linux*) 7711 LD="${LD-ld} -m elf32_sparc" 7712 ;; 7713 esac 7714 ;; 7715 *64-bit*) 7716 case $host in 7717 x86_64-*kfreebsd*-gnu) 7718 LD="${LD-ld} -m elf_x86_64_fbsd" 7719 ;; 7720 x86_64-*linux*) 7721 LD="${LD-ld} -m elf_x86_64" 7722 ;; 7723 ppc*-*linux*|powerpc*-*linux*) 7724 LD="${LD-ld} -m elf64ppc" 7725 ;; 7726 s390*-*linux*|s390*-*tpf*) 7727 LD="${LD-ld} -m elf64_s390" 7728 ;; 7729 sparc*-*linux*) 7730 LD="${LD-ld} -m elf64_sparc" 7731 ;; 7732 esac 7733 ;; 7734 esac 7735 fi 7736 rm -rf conftest* 7737 ;; 7738 7739*-*-sco3.2v5*) 7740 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7741 SAVE_CFLAGS="$CFLAGS" 7742 CFLAGS="$CFLAGS -belf" 7743 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 7744$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7745if test "${lt_cv_cc_needs_belf+set}" = set; then 7746 $as_echo_n "(cached) " >&6 7747else 7748 ac_ext=c 7749ac_cpp='$CPP $CPPFLAGS' 7750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7752ac_compiler_gnu=$ac_cv_c_compiler_gnu 7753 7754 cat >conftest.$ac_ext <<_ACEOF 7755/* confdefs.h. */ 7756_ACEOF 7757cat confdefs.h >>conftest.$ac_ext 7758cat >>conftest.$ac_ext <<_ACEOF 7759/* end confdefs.h. */ 7760 7761int 7762main () 7763{ 7764 7765 ; 7766 return 0; 7767} 7768_ACEOF 7769rm -f conftest.$ac_objext conftest$ac_exeext 7770if { (ac_try="$ac_link" 7771case "(($ac_try" in 7772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7773 *) ac_try_echo=$ac_try;; 7774esac 7775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7776$as_echo "$ac_try_echo") >&5 7777 (eval "$ac_link") 2>conftest.er1 7778 ac_status=$? 7779 grep -v '^ *+' conftest.er1 >conftest.err 7780 rm -f conftest.er1 7781 cat conftest.err >&5 7782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7783 (exit $ac_status); } && { 7784 test -z "$ac_c_werror_flag" || 7785 test ! -s conftest.err 7786 } && test -s conftest$ac_exeext && { 7787 test "$cross_compiling" = yes || 7788 $as_test_x conftest$ac_exeext 7789 }; then 7790 lt_cv_cc_needs_belf=yes 7791else 7792 $as_echo "$as_me: failed program was:" >&5 7793sed 's/^/| /' conftest.$ac_ext >&5 7794 7795 lt_cv_cc_needs_belf=no 7796fi 7797 7798rm -rf conftest.dSYM 7799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7800 conftest$ac_exeext conftest.$ac_ext 7801 ac_ext=c 7802ac_cpp='$CPP $CPPFLAGS' 7803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7805ac_compiler_gnu=$ac_cv_c_compiler_gnu 7806 7807fi 7808{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 7809$as_echo "$lt_cv_cc_needs_belf" >&6; } 7810 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7811 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7812 CFLAGS="$SAVE_CFLAGS" 7813 fi 7814 ;; 7815sparc*-*solaris*) 7816 # Find out which ABI we are using. 7817 echo 'int i;' > conftest.$ac_ext 7818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7819 (eval $ac_compile) 2>&5 7820 ac_status=$? 7821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7822 (exit $ac_status); }; then 7823 case `/usr/bin/file conftest.o` in 7824 *64-bit*) 7825 case $lt_cv_prog_gnu_ld in 7826 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7827 *) 7828 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7829 LD="${LD-ld} -64" 7830 fi 7831 ;; 7832 esac 7833 ;; 7834 esac 7835 fi 7836 rm -rf conftest* 7837 ;; 7838esac 7839 7840need_locks="$enable_libtool_lock" 7841 7842 7843 case $host_os in 7844 rhapsody* | darwin*) 7845 if test -n "$ac_tool_prefix"; then 7846 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7847set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7848{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7849$as_echo_n "checking for $ac_word... " >&6; } 7850if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7851 $as_echo_n "(cached) " >&6 7852else 7853 if test -n "$DSYMUTIL"; then 7854 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7855else 7856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7857for as_dir in $PATH 7858do 7859 IFS=$as_save_IFS 7860 test -z "$as_dir" && as_dir=. 7861 for ac_exec_ext in '' $ac_executable_extensions; do 7862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7863 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7864 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7865 break 2 7866 fi 7867done 7868done 7869IFS=$as_save_IFS 7870 7871fi 7872fi 7873DSYMUTIL=$ac_cv_prog_DSYMUTIL 7874if test -n "$DSYMUTIL"; then 7875 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7876$as_echo "$DSYMUTIL" >&6; } 7877else 7878 { $as_echo "$as_me:$LINENO: result: no" >&5 7879$as_echo "no" >&6; } 7880fi 7881 7882 7883fi 7884if test -z "$ac_cv_prog_DSYMUTIL"; then 7885 ac_ct_DSYMUTIL=$DSYMUTIL 7886 # Extract the first word of "dsymutil", so it can be a program name with args. 7887set dummy dsymutil; ac_word=$2 7888{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7889$as_echo_n "checking for $ac_word... " >&6; } 7890if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7891 $as_echo_n "(cached) " >&6 7892else 7893 if test -n "$ac_ct_DSYMUTIL"; then 7894 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7895else 7896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7897for as_dir in $PATH 7898do 7899 IFS=$as_save_IFS 7900 test -z "$as_dir" && as_dir=. 7901 for ac_exec_ext in '' $ac_executable_extensions; do 7902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7903 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7904 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7905 break 2 7906 fi 7907done 7908done 7909IFS=$as_save_IFS 7910 7911fi 7912fi 7913ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7914if test -n "$ac_ct_DSYMUTIL"; then 7915 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7916$as_echo "$ac_ct_DSYMUTIL" >&6; } 7917else 7918 { $as_echo "$as_me:$LINENO: result: no" >&5 7919$as_echo "no" >&6; } 7920fi 7921 7922 if test "x$ac_ct_DSYMUTIL" = x; then 7923 DSYMUTIL=":" 7924 else 7925 case $cross_compiling:$ac_tool_warned in 7926yes:) 7927{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7928$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7929ac_tool_warned=yes ;; 7930esac 7931 DSYMUTIL=$ac_ct_DSYMUTIL 7932 fi 7933else 7934 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7935fi 7936 7937 if test -n "$ac_tool_prefix"; then 7938 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7939set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7940{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7941$as_echo_n "checking for $ac_word... " >&6; } 7942if test "${ac_cv_prog_NMEDIT+set}" = set; then 7943 $as_echo_n "(cached) " >&6 7944else 7945 if test -n "$NMEDIT"; then 7946 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7947else 7948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7949for as_dir in $PATH 7950do 7951 IFS=$as_save_IFS 7952 test -z "$as_dir" && as_dir=. 7953 for ac_exec_ext in '' $ac_executable_extensions; do 7954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7955 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7956 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7957 break 2 7958 fi 7959done 7960done 7961IFS=$as_save_IFS 7962 7963fi 7964fi 7965NMEDIT=$ac_cv_prog_NMEDIT 7966if test -n "$NMEDIT"; then 7967 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 7968$as_echo "$NMEDIT" >&6; } 7969else 7970 { $as_echo "$as_me:$LINENO: result: no" >&5 7971$as_echo "no" >&6; } 7972fi 7973 7974 7975fi 7976if test -z "$ac_cv_prog_NMEDIT"; then 7977 ac_ct_NMEDIT=$NMEDIT 7978 # Extract the first word of "nmedit", so it can be a program name with args. 7979set dummy nmedit; ac_word=$2 7980{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7981$as_echo_n "checking for $ac_word... " >&6; } 7982if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7983 $as_echo_n "(cached) " >&6 7984else 7985 if test -n "$ac_ct_NMEDIT"; then 7986 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7987else 7988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7989for as_dir in $PATH 7990do 7991 IFS=$as_save_IFS 7992 test -z "$as_dir" && as_dir=. 7993 for ac_exec_ext in '' $ac_executable_extensions; do 7994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7995 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7996 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7997 break 2 7998 fi 7999done 8000done 8001IFS=$as_save_IFS 8002 8003fi 8004fi 8005ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8006if test -n "$ac_ct_NMEDIT"; then 8007 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 8008$as_echo "$ac_ct_NMEDIT" >&6; } 8009else 8010 { $as_echo "$as_me:$LINENO: result: no" >&5 8011$as_echo "no" >&6; } 8012fi 8013 8014 if test "x$ac_ct_NMEDIT" = x; then 8015 NMEDIT=":" 8016 else 8017 case $cross_compiling:$ac_tool_warned in 8018yes:) 8019{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 8020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8021ac_tool_warned=yes ;; 8022esac 8023 NMEDIT=$ac_ct_NMEDIT 8024 fi 8025else 8026 NMEDIT="$ac_cv_prog_NMEDIT" 8027fi 8028 8029 if test -n "$ac_tool_prefix"; then 8030 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8031set dummy ${ac_tool_prefix}lipo; ac_word=$2 8032{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 8033$as_echo_n "checking for $ac_word... " >&6; } 8034if test "${ac_cv_prog_LIPO+set}" = set; then 8035 $as_echo_n "(cached) " >&6 8036else 8037 if test -n "$LIPO"; then 8038 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8039else 8040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8041for as_dir in $PATH 8042do 8043 IFS=$as_save_IFS 8044 test -z "$as_dir" && as_dir=. 8045 for ac_exec_ext in '' $ac_executable_extensions; do 8046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8047 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8049 break 2 8050 fi 8051done 8052done 8053IFS=$as_save_IFS 8054 8055fi 8056fi 8057LIPO=$ac_cv_prog_LIPO 8058if test -n "$LIPO"; then 8059 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 8060$as_echo "$LIPO" >&6; } 8061else 8062 { $as_echo "$as_me:$LINENO: result: no" >&5 8063$as_echo "no" >&6; } 8064fi 8065 8066 8067fi 8068if test -z "$ac_cv_prog_LIPO"; then 8069 ac_ct_LIPO=$LIPO 8070 # Extract the first word of "lipo", so it can be a program name with args. 8071set dummy lipo; ac_word=$2 8072{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 8073$as_echo_n "checking for $ac_word... " >&6; } 8074if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 8075 $as_echo_n "(cached) " >&6 8076else 8077 if test -n "$ac_ct_LIPO"; then 8078 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8079else 8080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8081for as_dir in $PATH 8082do 8083 IFS=$as_save_IFS 8084 test -z "$as_dir" && as_dir=. 8085 for ac_exec_ext in '' $ac_executable_extensions; do 8086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8087 ac_cv_prog_ac_ct_LIPO="lipo" 8088 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8089 break 2 8090 fi 8091done 8092done 8093IFS=$as_save_IFS 8094 8095fi 8096fi 8097ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8098if test -n "$ac_ct_LIPO"; then 8099 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 8100$as_echo "$ac_ct_LIPO" >&6; } 8101else 8102 { $as_echo "$as_me:$LINENO: result: no" >&5 8103$as_echo "no" >&6; } 8104fi 8105 8106 if test "x$ac_ct_LIPO" = x; then 8107 LIPO=":" 8108 else 8109 case $cross_compiling:$ac_tool_warned in 8110yes:) 8111{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 8112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8113ac_tool_warned=yes ;; 8114esac 8115 LIPO=$ac_ct_LIPO 8116 fi 8117else 8118 LIPO="$ac_cv_prog_LIPO" 8119fi 8120 8121 if test -n "$ac_tool_prefix"; then 8122 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8123set dummy ${ac_tool_prefix}otool; ac_word=$2 8124{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 8125$as_echo_n "checking for $ac_word... " >&6; } 8126if test "${ac_cv_prog_OTOOL+set}" = set; then 8127 $as_echo_n "(cached) " >&6 8128else 8129 if test -n "$OTOOL"; then 8130 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8131else 8132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8133for as_dir in $PATH 8134do 8135 IFS=$as_save_IFS 8136 test -z "$as_dir" && as_dir=. 8137 for ac_exec_ext in '' $ac_executable_extensions; do 8138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8139 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8140 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8141 break 2 8142 fi 8143done 8144done 8145IFS=$as_save_IFS 8146 8147fi 8148fi 8149OTOOL=$ac_cv_prog_OTOOL 8150if test -n "$OTOOL"; then 8151 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 8152$as_echo "$OTOOL" >&6; } 8153else 8154 { $as_echo "$as_me:$LINENO: result: no" >&5 8155$as_echo "no" >&6; } 8156fi 8157 8158 8159fi 8160if test -z "$ac_cv_prog_OTOOL"; then 8161 ac_ct_OTOOL=$OTOOL 8162 # Extract the first word of "otool", so it can be a program name with args. 8163set dummy otool; ac_word=$2 8164{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 8165$as_echo_n "checking for $ac_word... " >&6; } 8166if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 8167 $as_echo_n "(cached) " >&6 8168else 8169 if test -n "$ac_ct_OTOOL"; then 8170 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8171else 8172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8173for as_dir in $PATH 8174do 8175 IFS=$as_save_IFS 8176 test -z "$as_dir" && as_dir=. 8177 for ac_exec_ext in '' $ac_executable_extensions; do 8178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8179 ac_cv_prog_ac_ct_OTOOL="otool" 8180 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8181 break 2 8182 fi 8183done 8184done 8185IFS=$as_save_IFS 8186 8187fi 8188fi 8189ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8190if test -n "$ac_ct_OTOOL"; then 8191 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 8192$as_echo "$ac_ct_OTOOL" >&6; } 8193else 8194 { $as_echo "$as_me:$LINENO: result: no" >&5 8195$as_echo "no" >&6; } 8196fi 8197 8198 if test "x$ac_ct_OTOOL" = x; then 8199 OTOOL=":" 8200 else 8201 case $cross_compiling:$ac_tool_warned in 8202yes:) 8203{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 8204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8205ac_tool_warned=yes ;; 8206esac 8207 OTOOL=$ac_ct_OTOOL 8208 fi 8209else 8210 OTOOL="$ac_cv_prog_OTOOL" 8211fi 8212 8213 if test -n "$ac_tool_prefix"; then 8214 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8215set dummy ${ac_tool_prefix}otool64; ac_word=$2 8216{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 8217$as_echo_n "checking for $ac_word... " >&6; } 8218if test "${ac_cv_prog_OTOOL64+set}" = set; then 8219 $as_echo_n "(cached) " >&6 8220else 8221 if test -n "$OTOOL64"; then 8222 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8223else 8224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8225for as_dir in $PATH 8226do 8227 IFS=$as_save_IFS 8228 test -z "$as_dir" && as_dir=. 8229 for ac_exec_ext in '' $ac_executable_extensions; do 8230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8231 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8232 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8233 break 2 8234 fi 8235done 8236done 8237IFS=$as_save_IFS 8238 8239fi 8240fi 8241OTOOL64=$ac_cv_prog_OTOOL64 8242if test -n "$OTOOL64"; then 8243 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 8244$as_echo "$OTOOL64" >&6; } 8245else 8246 { $as_echo "$as_me:$LINENO: result: no" >&5 8247$as_echo "no" >&6; } 8248fi 8249 8250 8251fi 8252if test -z "$ac_cv_prog_OTOOL64"; then 8253 ac_ct_OTOOL64=$OTOOL64 8254 # Extract the first word of "otool64", so it can be a program name with args. 8255set dummy otool64; ac_word=$2 8256{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 8257$as_echo_n "checking for $ac_word... " >&6; } 8258if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 8259 $as_echo_n "(cached) " >&6 8260else 8261 if test -n "$ac_ct_OTOOL64"; then 8262 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8263else 8264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8265for as_dir in $PATH 8266do 8267 IFS=$as_save_IFS 8268 test -z "$as_dir" && as_dir=. 8269 for ac_exec_ext in '' $ac_executable_extensions; do 8270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8271 ac_cv_prog_ac_ct_OTOOL64="otool64" 8272 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8273 break 2 8274 fi 8275done 8276done 8277IFS=$as_save_IFS 8278 8279fi 8280fi 8281ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8282if test -n "$ac_ct_OTOOL64"; then 8283 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 8284$as_echo "$ac_ct_OTOOL64" >&6; } 8285else 8286 { $as_echo "$as_me:$LINENO: result: no" >&5 8287$as_echo "no" >&6; } 8288fi 8289 8290 if test "x$ac_ct_OTOOL64" = x; then 8291 OTOOL64=":" 8292 else 8293 case $cross_compiling:$ac_tool_warned in 8294yes:) 8295{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 8296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8297ac_tool_warned=yes ;; 8298esac 8299 OTOOL64=$ac_ct_OTOOL64 8300 fi 8301else 8302 OTOOL64="$ac_cv_prog_OTOOL64" 8303fi 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 8332$as_echo_n "checking for -single_module linker flag... " >&6; } 8333if test "${lt_cv_apple_cc_single_mod+set}" = set; then 8334 $as_echo_n "(cached) " >&6 8335else 8336 lt_cv_apple_cc_single_mod=no 8337 if test -z "${LT_MULTI_MODULE}"; then 8338 # By default we will add the -single_module flag. You can override 8339 # by either setting the environment variable LT_MULTI_MODULE 8340 # non-empty at configure time, or by adding -multi_module to the 8341 # link flags. 8342 rm -rf libconftest.dylib* 8343 echo "int foo(void){return 1;}" > conftest.c 8344 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8345-dynamiclib -Wl,-single_module conftest.c" >&5 8346 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8347 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8348 _lt_result=$? 8349 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 8350 lt_cv_apple_cc_single_mod=yes 8351 else 8352 cat conftest.err >&5 8353 fi 8354 rm -rf libconftest.dylib* 8355 rm -f conftest.* 8356 fi 8357fi 8358{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 8359$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8360 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 8361$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8362if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 8363 $as_echo_n "(cached) " >&6 8364else 8365 lt_cv_ld_exported_symbols_list=no 8366 save_LDFLAGS=$LDFLAGS 8367 echo "_main" > conftest.sym 8368 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8369 cat >conftest.$ac_ext <<_ACEOF 8370/* confdefs.h. */ 8371_ACEOF 8372cat confdefs.h >>conftest.$ac_ext 8373cat >>conftest.$ac_ext <<_ACEOF 8374/* end confdefs.h. */ 8375 8376int 8377main () 8378{ 8379 8380 ; 8381 return 0; 8382} 8383_ACEOF 8384rm -f conftest.$ac_objext conftest$ac_exeext 8385if { (ac_try="$ac_link" 8386case "(($ac_try" in 8387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8388 *) ac_try_echo=$ac_try;; 8389esac 8390eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8391$as_echo "$ac_try_echo") >&5 8392 (eval "$ac_link") 2>conftest.er1 8393 ac_status=$? 8394 grep -v '^ *+' conftest.er1 >conftest.err 8395 rm -f conftest.er1 8396 cat conftest.err >&5 8397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8398 (exit $ac_status); } && { 8399 test -z "$ac_c_werror_flag" || 8400 test ! -s conftest.err 8401 } && test -s conftest$ac_exeext && { 8402 test "$cross_compiling" = yes || 8403 $as_test_x conftest$ac_exeext 8404 }; then 8405 lt_cv_ld_exported_symbols_list=yes 8406else 8407 $as_echo "$as_me: failed program was:" >&5 8408sed 's/^/| /' conftest.$ac_ext >&5 8409 8410 lt_cv_ld_exported_symbols_list=no 8411fi 8412 8413rm -rf conftest.dSYM 8414rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8415 conftest$ac_exeext conftest.$ac_ext 8416 LDFLAGS="$save_LDFLAGS" 8417 8418fi 8419{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 8420$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8421 case $host_os in 8422 rhapsody* | darwin1.[012]) 8423 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8424 darwin1.*) 8425 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8426 darwin*) # darwin 5.x on 8427 # if running on 10.5 or later, the deployment target defaults 8428 # to the OS version, if on x86, and 10.4, the deployment 8429 # target defaults to 10.4. Don't you love it? 8430 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8431 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8432 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8433 10.[012]*) 8434 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8435 10.*) 8436 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8437 esac 8438 ;; 8439 esac 8440 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8441 _lt_dar_single_mod='$single_module' 8442 fi 8443 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8444 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8445 else 8446 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8447 fi 8448 if test "$DSYMUTIL" != ":"; then 8449 _lt_dsymutil='~$DSYMUTIL $lib || :' 8450 else 8451 _lt_dsymutil= 8452 fi 8453 ;; 8454 esac 8455 8456 8457for ac_header in dlfcn.h 8458do 8459as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8460{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 8461$as_echo_n "checking for $ac_header... " >&6; } 8462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8463 $as_echo_n "(cached) " >&6 8464else 8465 cat >conftest.$ac_ext <<_ACEOF 8466/* confdefs.h. */ 8467_ACEOF 8468cat confdefs.h >>conftest.$ac_ext 8469cat >>conftest.$ac_ext <<_ACEOF 8470/* end confdefs.h. */ 8471$ac_includes_default 8472 8473#include <$ac_header> 8474_ACEOF 8475rm -f conftest.$ac_objext 8476if { (ac_try="$ac_compile" 8477case "(($ac_try" in 8478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8479 *) ac_try_echo=$ac_try;; 8480esac 8481eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8482$as_echo "$ac_try_echo") >&5 8483 (eval "$ac_compile") 2>conftest.er1 8484 ac_status=$? 8485 grep -v '^ *+' conftest.er1 >conftest.err 8486 rm -f conftest.er1 8487 cat conftest.err >&5 8488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8489 (exit $ac_status); } && { 8490 test -z "$ac_c_werror_flag" || 8491 test ! -s conftest.err 8492 } && test -s conftest.$ac_objext; then 8493 eval "$as_ac_Header=yes" 8494else 8495 $as_echo "$as_me: failed program was:" >&5 8496sed 's/^/| /' conftest.$ac_ext >&5 8497 8498 eval "$as_ac_Header=no" 8499fi 8500 8501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8502fi 8503ac_res=`eval 'as_val=${'$as_ac_Header'} 8504 $as_echo "$as_val"'` 8505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 8506$as_echo "$ac_res" >&6; } 8507as_val=`eval 'as_val=${'$as_ac_Header'} 8508 $as_echo "$as_val"'` 8509 if test "x$as_val" = x""yes; then 8510 cat >>confdefs.h <<_ACEOF 8511#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8512_ACEOF 8513 8514fi 8515 8516done 8517 8518 8519 8520# Set options 8521 8522 8523 8524 enable_dlopen=no 8525 8526 8527 enable_win32_dll=no 8528 8529 8530 # Check whether --enable-shared was given. 8531if test "${enable_shared+set}" = set; then 8532 enableval=$enable_shared; p=${PACKAGE-default} 8533 case $enableval in 8534 yes) enable_shared=yes ;; 8535 no) enable_shared=no ;; 8536 *) 8537 enable_shared=no 8538 # Look at the argument we got. We use all the common list separators. 8539 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8540 for pkg in $enableval; do 8541 IFS="$lt_save_ifs" 8542 if test "X$pkg" = "X$p"; then 8543 enable_shared=yes 8544 fi 8545 done 8546 IFS="$lt_save_ifs" 8547 ;; 8548 esac 8549else 8550 enable_shared=yes 8551fi 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 # Check whether --enable-static was given. 8562if test "${enable_static+set}" = set; then 8563 enableval=$enable_static; p=${PACKAGE-default} 8564 case $enableval in 8565 yes) enable_static=yes ;; 8566 no) enable_static=no ;; 8567 *) 8568 enable_static=no 8569 # Look at the argument we got. We use all the common list separators. 8570 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8571 for pkg in $enableval; do 8572 IFS="$lt_save_ifs" 8573 if test "X$pkg" = "X$p"; then 8574 enable_static=yes 8575 fi 8576 done 8577 IFS="$lt_save_ifs" 8578 ;; 8579 esac 8580else 8581 enable_static=yes 8582fi 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593# Check whether --with-pic was given. 8594if test "${with_pic+set}" = set; then 8595 withval=$with_pic; pic_mode="$withval" 8596else 8597 pic_mode=default 8598fi 8599 8600 8601test -z "$pic_mode" && pic_mode=default 8602 8603 8604 8605 8606 8607 8608 8609 # Check whether --enable-fast-install was given. 8610if test "${enable_fast_install+set}" = set; then 8611 enableval=$enable_fast_install; p=${PACKAGE-default} 8612 case $enableval in 8613 yes) enable_fast_install=yes ;; 8614 no) enable_fast_install=no ;; 8615 *) 8616 enable_fast_install=no 8617 # Look at the argument we got. We use all the common list separators. 8618 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8619 for pkg in $enableval; do 8620 IFS="$lt_save_ifs" 8621 if test "X$pkg" = "X$p"; then 8622 enable_fast_install=yes 8623 fi 8624 done 8625 IFS="$lt_save_ifs" 8626 ;; 8627 esac 8628else 8629 enable_fast_install=yes 8630fi 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642# This can be used to rebuild libtool when needed 8643LIBTOOL_DEPS="$ltmain" 8644 8645# Always use our own libtool. 8646LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672test -z "$LN_S" && LN_S="ln -s" 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687if test -n "${ZSH_VERSION+set}" ; then 8688 setopt NO_GLOB_SUBST 8689fi 8690 8691{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 8692$as_echo_n "checking for objdir... " >&6; } 8693if test "${lt_cv_objdir+set}" = set; then 8694 $as_echo_n "(cached) " >&6 8695else 8696 rm -f .libs 2>/dev/null 8697mkdir .libs 2>/dev/null 8698if test -d .libs; then 8699 lt_cv_objdir=.libs 8700else 8701 # MS-DOS does not allow filenames that begin with a dot. 8702 lt_cv_objdir=_libs 8703fi 8704rmdir .libs 2>/dev/null 8705fi 8706{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 8707$as_echo "$lt_cv_objdir" >&6; } 8708objdir=$lt_cv_objdir 8709 8710 8711 8712 8713 8714cat >>confdefs.h <<_ACEOF 8715#define LT_OBJDIR "$lt_cv_objdir/" 8716_ACEOF 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734case $host_os in 8735aix3*) 8736 # AIX sometimes has problems with the GCC collect2 program. For some 8737 # reason, if we set the COLLECT_NAMES environment variable, the problems 8738 # vanish in a puff of smoke. 8739 if test "X${COLLECT_NAMES+set}" != Xset; then 8740 COLLECT_NAMES= 8741 export COLLECT_NAMES 8742 fi 8743 ;; 8744esac 8745 8746# Sed substitution that helps us do robust quoting. It backslashifies 8747# metacharacters that are still active within double-quoted strings. 8748sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8749 8750# Same as above, but do not quote variable references. 8751double_quote_subst='s/\(["`\\]\)/\\\1/g' 8752 8753# Sed substitution to delay expansion of an escaped shell variable in a 8754# double_quote_subst'ed string. 8755delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8756 8757# Sed substitution to delay expansion of an escaped single quote. 8758delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8759 8760# Sed substitution to avoid accidental globbing in evaled expressions 8761no_glob_subst='s/\*/\\\*/g' 8762 8763# Global variables: 8764ofile=libtool 8765can_build_shared=yes 8766 8767# All known linkers require a `.a' archive for static linking (except MSVC, 8768# which needs '.lib'). 8769libext=a 8770 8771with_gnu_ld="$lt_cv_prog_gnu_ld" 8772 8773old_CC="$CC" 8774old_CFLAGS="$CFLAGS" 8775 8776# Set sane defaults for various variables 8777test -z "$CC" && CC=cc 8778test -z "$LTCC" && LTCC=$CC 8779test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8780test -z "$LD" && LD=ld 8781test -z "$ac_objext" && ac_objext=o 8782 8783for cc_temp in $compiler""; do 8784 case $cc_temp in 8785 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8786 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8787 \-*) ;; 8788 *) break;; 8789 esac 8790done 8791cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8792 8793 8794# Only perform the check for file, if the check method requires it 8795test -z "$MAGIC_CMD" && MAGIC_CMD=file 8796case $deplibs_check_method in 8797file_magic*) 8798 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8799 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8800$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8801if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8802 $as_echo_n "(cached) " >&6 8803else 8804 case $MAGIC_CMD in 8805[\\/*] | ?:[\\/]*) 8806 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8807 ;; 8808*) 8809 lt_save_MAGIC_CMD="$MAGIC_CMD" 8810 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8811 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8812 for ac_dir in $ac_dummy; do 8813 IFS="$lt_save_ifs" 8814 test -z "$ac_dir" && ac_dir=. 8815 if test -f $ac_dir/${ac_tool_prefix}file; then 8816 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8817 if test -n "$file_magic_test_file"; then 8818 case $deplibs_check_method in 8819 "file_magic "*) 8820 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8822 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8823 $EGREP "$file_magic_regex" > /dev/null; then 8824 : 8825 else 8826 cat <<_LT_EOF 1>&2 8827 8828*** Warning: the command libtool uses to detect shared libraries, 8829*** $file_magic_cmd, produces output that libtool cannot recognize. 8830*** The result is that libtool may fail to recognize shared libraries 8831*** as such. This will affect the creation of libtool libraries that 8832*** depend on shared libraries, but programs linked with such libtool 8833*** libraries will work regardless of this problem. Nevertheless, you 8834*** may want to report the problem to your system manager and/or to 8835*** bug-libtool@gnu.org 8836 8837_LT_EOF 8838 fi ;; 8839 esac 8840 fi 8841 break 8842 fi 8843 done 8844 IFS="$lt_save_ifs" 8845 MAGIC_CMD="$lt_save_MAGIC_CMD" 8846 ;; 8847esac 8848fi 8849 8850MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8851if test -n "$MAGIC_CMD"; then 8852 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8853$as_echo "$MAGIC_CMD" >&6; } 8854else 8855 { $as_echo "$as_me:$LINENO: result: no" >&5 8856$as_echo "no" >&6; } 8857fi 8858 8859 8860 8861 8862 8863if test -z "$lt_cv_path_MAGIC_CMD"; then 8864 if test -n "$ac_tool_prefix"; then 8865 { $as_echo "$as_me:$LINENO: checking for file" >&5 8866$as_echo_n "checking for file... " >&6; } 8867if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8868 $as_echo_n "(cached) " >&6 8869else 8870 case $MAGIC_CMD in 8871[\\/*] | ?:[\\/]*) 8872 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8873 ;; 8874*) 8875 lt_save_MAGIC_CMD="$MAGIC_CMD" 8876 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8877 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8878 for ac_dir in $ac_dummy; do 8879 IFS="$lt_save_ifs" 8880 test -z "$ac_dir" && ac_dir=. 8881 if test -f $ac_dir/file; then 8882 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8883 if test -n "$file_magic_test_file"; then 8884 case $deplibs_check_method in 8885 "file_magic "*) 8886 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8887 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8888 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8889 $EGREP "$file_magic_regex" > /dev/null; then 8890 : 8891 else 8892 cat <<_LT_EOF 1>&2 8893 8894*** Warning: the command libtool uses to detect shared libraries, 8895*** $file_magic_cmd, produces output that libtool cannot recognize. 8896*** The result is that libtool may fail to recognize shared libraries 8897*** as such. This will affect the creation of libtool libraries that 8898*** depend on shared libraries, but programs linked with such libtool 8899*** libraries will work regardless of this problem. Nevertheless, you 8900*** may want to report the problem to your system manager and/or to 8901*** bug-libtool@gnu.org 8902 8903_LT_EOF 8904 fi ;; 8905 esac 8906 fi 8907 break 8908 fi 8909 done 8910 IFS="$lt_save_ifs" 8911 MAGIC_CMD="$lt_save_MAGIC_CMD" 8912 ;; 8913esac 8914fi 8915 8916MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8917if test -n "$MAGIC_CMD"; then 8918 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8919$as_echo "$MAGIC_CMD" >&6; } 8920else 8921 { $as_echo "$as_me:$LINENO: result: no" >&5 8922$as_echo "no" >&6; } 8923fi 8924 8925 8926 else 8927 MAGIC_CMD=: 8928 fi 8929fi 8930 8931 fi 8932 ;; 8933esac 8934 8935# Use C for the default configuration in the libtool script 8936 8937lt_save_CC="$CC" 8938ac_ext=c 8939ac_cpp='$CPP $CPPFLAGS' 8940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8942ac_compiler_gnu=$ac_cv_c_compiler_gnu 8943 8944 8945# Source file extension for C test sources. 8946ac_ext=c 8947 8948# Object file extension for compiled C test sources. 8949objext=o 8950objext=$objext 8951 8952# Code to be used in simple compile tests 8953lt_simple_compile_test_code="int some_variable = 0;" 8954 8955# Code to be used in simple link tests 8956lt_simple_link_test_code='int main(){return(0);}' 8957 8958 8959 8960 8961 8962 8963 8964# If no C compiler was specified, use CC. 8965LTCC=${LTCC-"$CC"} 8966 8967# If no C compiler flags were specified, use CFLAGS. 8968LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8969 8970# Allow CC to be a program name with arguments. 8971compiler=$CC 8972 8973# Save the default compiler, since it gets overwritten when the other 8974# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8975compiler_DEFAULT=$CC 8976 8977# save warnings/boilerplate of simple test code 8978ac_outfile=conftest.$ac_objext 8979echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8980eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8981_lt_compiler_boilerplate=`cat conftest.err` 8982$RM conftest* 8983 8984ac_outfile=conftest.$ac_objext 8985echo "$lt_simple_link_test_code" >conftest.$ac_ext 8986eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8987_lt_linker_boilerplate=`cat conftest.err` 8988$RM -r conftest* 8989 8990 8991## CAVEAT EMPTOR: 8992## There is no encapsulation within the following macros, do not change 8993## the running order or otherwise move them around unless you know exactly 8994## what you are doing... 8995if test -n "$compiler"; then 8996 8997lt_prog_compiler_no_builtin_flag= 8998 8999if test "$GCC" = yes; then 9000 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 9001 9002 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9003$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9004if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 9005 $as_echo_n "(cached) " >&6 9006else 9007 lt_cv_prog_compiler_rtti_exceptions=no 9008 ac_outfile=conftest.$ac_objext 9009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9010 lt_compiler_flag="-fno-rtti -fno-exceptions" 9011 # Insert the option either (1) after the last *FLAGS variable, or 9012 # (2) before a word containing "conftest.", or (3) at the end. 9013 # Note that $ac_compile itself does not contain backslashes and begins 9014 # with a dollar sign (not a hyphen), so the echo should work correctly. 9015 # The option is referenced via a variable to avoid confusing sed. 9016 lt_compile=`echo "$ac_compile" | $SED \ 9017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9019 -e 's:$: $lt_compiler_flag:'` 9020 (eval echo "\"\$as_me:9020: $lt_compile\"" >&5) 9021 (eval "$lt_compile" 2>conftest.err) 9022 ac_status=$? 9023 cat conftest.err >&5 9024 echo "$as_me:9024: \$? = $ac_status" >&5 9025 if (exit $ac_status) && test -s "$ac_outfile"; then 9026 # The compiler can only warn and ignore the option if not recognized 9027 # So say no if there are warnings other than the usual output. 9028 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9029 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9030 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9031 lt_cv_prog_compiler_rtti_exceptions=yes 9032 fi 9033 fi 9034 $RM conftest* 9035 9036fi 9037{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9038$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9039 9040if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9041 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9042else 9043 : 9044fi 9045 9046fi 9047 9048 9049 9050 9051 9052 9053 lt_prog_compiler_wl= 9054lt_prog_compiler_pic= 9055lt_prog_compiler_static= 9056 9057{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 9058$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9059 9060 if test "$GCC" = yes; then 9061 lt_prog_compiler_wl='-Wl,' 9062 lt_prog_compiler_static='-static' 9063 9064 case $host_os in 9065 aix*) 9066 # All AIX code is PIC. 9067 if test "$host_cpu" = ia64; then 9068 # AIX 5 now supports IA64 processor 9069 lt_prog_compiler_static='-Bstatic' 9070 fi 9071 ;; 9072 9073 amigaos*) 9074 case $host_cpu in 9075 powerpc) 9076 # see comment about AmigaOS4 .so support 9077 lt_prog_compiler_pic='-fPIC' 9078 ;; 9079 m68k) 9080 # FIXME: we need at least 68020 code to build shared libraries, but 9081 # adding the `-m68020' flag to GCC prevents building anything better, 9082 # like `-m68040'. 9083 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9084 ;; 9085 esac 9086 ;; 9087 9088 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9089 # PIC is the default for these OSes. 9090 ;; 9091 9092 mingw* | cygwin* | pw32* | os2* | cegcc*) 9093 # This hack is so that the source file can tell whether it is being 9094 # built for inclusion in a dll (and should export symbols for example). 9095 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9096 # (--disable-auto-import) libraries 9097 lt_prog_compiler_pic='-DDLL_EXPORT' 9098 ;; 9099 9100 darwin* | rhapsody*) 9101 # PIC is the default on this platform 9102 # Common symbols not allowed in MH_DYLIB files 9103 lt_prog_compiler_pic='-fno-common' 9104 ;; 9105 9106 hpux*) 9107 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9108 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9109 # sets the default TLS model and affects inlining. 9110 case $host_cpu in 9111 hppa*64*) 9112 # +Z the default 9113 ;; 9114 *) 9115 lt_prog_compiler_pic='-fPIC' 9116 ;; 9117 esac 9118 ;; 9119 9120 interix[3-9]*) 9121 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9122 # Instead, we relocate shared libraries at runtime. 9123 ;; 9124 9125 msdosdjgpp*) 9126 # Just because we use GCC doesn't mean we suddenly get shared libraries 9127 # on systems that don't support them. 9128 lt_prog_compiler_can_build_shared=no 9129 enable_shared=no 9130 ;; 9131 9132 *nto* | *qnx*) 9133 # QNX uses GNU C++, but need to define -shared option too, otherwise 9134 # it will coredump. 9135 lt_prog_compiler_pic='-fPIC -shared' 9136 ;; 9137 9138 sysv4*MP*) 9139 if test -d /usr/nec; then 9140 lt_prog_compiler_pic=-Kconform_pic 9141 fi 9142 ;; 9143 9144 *) 9145 lt_prog_compiler_pic='-fPIC' 9146 ;; 9147 esac 9148 else 9149 # PORTME Check for flag to pass linker flags through the system compiler. 9150 case $host_os in 9151 aix*) 9152 lt_prog_compiler_wl='-Wl,' 9153 if test "$host_cpu" = ia64; then 9154 # AIX 5 now supports IA64 processor 9155 lt_prog_compiler_static='-Bstatic' 9156 else 9157 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9158 fi 9159 ;; 9160 9161 mingw* | cygwin* | pw32* | os2* | cegcc*) 9162 # This hack is so that the source file can tell whether it is being 9163 # built for inclusion in a dll (and should export symbols for example). 9164 lt_prog_compiler_pic='-DDLL_EXPORT' 9165 ;; 9166 9167 hpux9* | hpux10* | hpux11*) 9168 lt_prog_compiler_wl='-Wl,' 9169 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9170 # not for PA HP-UX. 9171 case $host_cpu in 9172 hppa*64*|ia64*) 9173 # +Z the default 9174 ;; 9175 *) 9176 lt_prog_compiler_pic='+Z' 9177 ;; 9178 esac 9179 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9180 lt_prog_compiler_static='${wl}-a ${wl}archive' 9181 ;; 9182 9183 irix5* | irix6* | nonstopux*) 9184 lt_prog_compiler_wl='-Wl,' 9185 # PIC (with -KPIC) is the default. 9186 lt_prog_compiler_static='-non_shared' 9187 ;; 9188 9189 linux* | k*bsd*-gnu) 9190 case $cc_basename in 9191 # old Intel for x86_64 which still supported -KPIC. 9192 ecc*) 9193 lt_prog_compiler_wl='-Wl,' 9194 lt_prog_compiler_pic='-KPIC' 9195 lt_prog_compiler_static='-static' 9196 ;; 9197 # icc used to be incompatible with GCC. 9198 # ICC 10 doesn't accept -KPIC any more. 9199 icc* | ifort*) 9200 lt_prog_compiler_wl='-Wl,' 9201 lt_prog_compiler_pic='-fPIC' 9202 lt_prog_compiler_static='-static' 9203 ;; 9204 # Lahey Fortran 8.1. 9205 lf95*) 9206 lt_prog_compiler_wl='-Wl,' 9207 lt_prog_compiler_pic='--shared' 9208 lt_prog_compiler_static='--static' 9209 ;; 9210 pgcc* | pgf77* | pgf90* | pgf95*) 9211 # Portland Group compilers (*not* the Pentium gcc compiler, 9212 # which looks to be a dead project) 9213 lt_prog_compiler_wl='-Wl,' 9214 lt_prog_compiler_pic='-fpic' 9215 lt_prog_compiler_static='-Bstatic' 9216 ;; 9217 ccc*) 9218 lt_prog_compiler_wl='-Wl,' 9219 # All Alpha code is PIC. 9220 lt_prog_compiler_static='-non_shared' 9221 ;; 9222 xl*) 9223 # IBM XL C 8.0/Fortran 10.1 on PPC 9224 lt_prog_compiler_wl='-Wl,' 9225 lt_prog_compiler_pic='-qpic' 9226 lt_prog_compiler_static='-qstaticlink' 9227 ;; 9228 *) 9229 case `$CC -V 2>&1 | sed 5q` in 9230 *Sun\ C*) 9231 # Sun C 5.9 9232 lt_prog_compiler_pic='-KPIC' 9233 lt_prog_compiler_static='-Bstatic' 9234 lt_prog_compiler_wl='-Wl,' 9235 ;; 9236 *Sun\ F*) 9237 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9238 lt_prog_compiler_pic='-KPIC' 9239 lt_prog_compiler_static='-Bstatic' 9240 lt_prog_compiler_wl='' 9241 ;; 9242 esac 9243 ;; 9244 esac 9245 ;; 9246 9247 newsos6) 9248 lt_prog_compiler_pic='-KPIC' 9249 lt_prog_compiler_static='-Bstatic' 9250 ;; 9251 9252 *nto* | *qnx*) 9253 # QNX uses GNU C++, but need to define -shared option too, otherwise 9254 # it will coredump. 9255 lt_prog_compiler_pic='-fPIC -shared' 9256 ;; 9257 9258 osf3* | osf4* | osf5*) 9259 lt_prog_compiler_wl='-Wl,' 9260 # All OSF/1 code is PIC. 9261 lt_prog_compiler_static='-non_shared' 9262 ;; 9263 9264 rdos*) 9265 lt_prog_compiler_static='-non_shared' 9266 ;; 9267 9268 solaris*) 9269 lt_prog_compiler_pic='-KPIC' 9270 lt_prog_compiler_static='-Bstatic' 9271 case $cc_basename in 9272 f77* | f90* | f95*) 9273 lt_prog_compiler_wl='-Qoption ld ';; 9274 *) 9275 lt_prog_compiler_wl='-Wl,';; 9276 esac 9277 ;; 9278 9279 sunos4*) 9280 lt_prog_compiler_wl='-Qoption ld ' 9281 lt_prog_compiler_pic='-PIC' 9282 lt_prog_compiler_static='-Bstatic' 9283 ;; 9284 9285 sysv4 | sysv4.2uw2* | sysv4.3*) 9286 lt_prog_compiler_wl='-Wl,' 9287 lt_prog_compiler_pic='-KPIC' 9288 lt_prog_compiler_static='-Bstatic' 9289 ;; 9290 9291 sysv4*MP*) 9292 if test -d /usr/nec ;then 9293 lt_prog_compiler_pic='-Kconform_pic' 9294 lt_prog_compiler_static='-Bstatic' 9295 fi 9296 ;; 9297 9298 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9299 lt_prog_compiler_wl='-Wl,' 9300 lt_prog_compiler_pic='-KPIC' 9301 lt_prog_compiler_static='-Bstatic' 9302 ;; 9303 9304 unicos*) 9305 lt_prog_compiler_wl='-Wl,' 9306 lt_prog_compiler_can_build_shared=no 9307 ;; 9308 9309 uts4*) 9310 lt_prog_compiler_pic='-pic' 9311 lt_prog_compiler_static='-Bstatic' 9312 ;; 9313 9314 *) 9315 lt_prog_compiler_can_build_shared=no 9316 ;; 9317 esac 9318 fi 9319 9320case $host_os in 9321 # For platforms which do not support PIC, -DPIC is meaningless: 9322 *djgpp*) 9323 lt_prog_compiler_pic= 9324 ;; 9325 *) 9326 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9327 ;; 9328esac 9329{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 9330$as_echo "$lt_prog_compiler_pic" >&6; } 9331 9332 9333 9334 9335 9336 9337# 9338# Check to make sure the PIC flag actually works. 9339# 9340if test -n "$lt_prog_compiler_pic"; then 9341 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9342$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9343if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 9344 $as_echo_n "(cached) " >&6 9345else 9346 lt_cv_prog_compiler_pic_works=no 9347 ac_outfile=conftest.$ac_objext 9348 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9349 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9350 # Insert the option either (1) after the last *FLAGS variable, or 9351 # (2) before a word containing "conftest.", or (3) at the end. 9352 # Note that $ac_compile itself does not contain backslashes and begins 9353 # with a dollar sign (not a hyphen), so the echo should work correctly. 9354 # The option is referenced via a variable to avoid confusing sed. 9355 lt_compile=`echo "$ac_compile" | $SED \ 9356 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9358 -e 's:$: $lt_compiler_flag:'` 9359 (eval echo "\"\$as_me:9359: $lt_compile\"" >&5) 9360 (eval "$lt_compile" 2>conftest.err) 9361 ac_status=$? 9362 cat conftest.err >&5 9363 echo "$as_me:9363: \$? = $ac_status" >&5 9364 if (exit $ac_status) && test -s "$ac_outfile"; then 9365 # The compiler can only warn and ignore the option if not recognized 9366 # So say no if there are warnings other than the usual output. 9367 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9368 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9369 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9370 lt_cv_prog_compiler_pic_works=yes 9371 fi 9372 fi 9373 $RM conftest* 9374 9375fi 9376{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 9377$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9378 9379if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9380 case $lt_prog_compiler_pic in 9381 "" | " "*) ;; 9382 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9383 esac 9384else 9385 lt_prog_compiler_pic= 9386 lt_prog_compiler_can_build_shared=no 9387fi 9388 9389fi 9390 9391 9392 9393 9394 9395 9396# 9397# Check to make sure the static flag actually works. 9398# 9399wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9400{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9401$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9402if test "${lt_cv_prog_compiler_static_works+set}" = set; then 9403 $as_echo_n "(cached) " >&6 9404else 9405 lt_cv_prog_compiler_static_works=no 9406 save_LDFLAGS="$LDFLAGS" 9407 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9408 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9409 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9410 # The linker can only warn and ignore the option if not recognized 9411 # So say no if there are warnings 9412 if test -s conftest.err; then 9413 # Append any errors to the config.log. 9414 cat conftest.err 1>&5 9415 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 9416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9417 if diff conftest.exp conftest.er2 >/dev/null; then 9418 lt_cv_prog_compiler_static_works=yes 9419 fi 9420 else 9421 lt_cv_prog_compiler_static_works=yes 9422 fi 9423 fi 9424 $RM -r conftest* 9425 LDFLAGS="$save_LDFLAGS" 9426 9427fi 9428{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 9429$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9430 9431if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9432 : 9433else 9434 lt_prog_compiler_static= 9435fi 9436 9437 9438 9439 9440 9441 9442 9443 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 9444$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9445if test "${lt_cv_prog_compiler_c_o+set}" = set; then 9446 $as_echo_n "(cached) " >&6 9447else 9448 lt_cv_prog_compiler_c_o=no 9449 $RM -r conftest 2>/dev/null 9450 mkdir conftest 9451 cd conftest 9452 mkdir out 9453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9454 9455 lt_compiler_flag="-o out/conftest2.$ac_objext" 9456 # Insert the option either (1) after the last *FLAGS variable, or 9457 # (2) before a word containing "conftest.", or (3) at the end. 9458 # Note that $ac_compile itself does not contain backslashes and begins 9459 # with a dollar sign (not a hyphen), so the echo should work correctly. 9460 lt_compile=`echo "$ac_compile" | $SED \ 9461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9463 -e 's:$: $lt_compiler_flag:'` 9464 (eval echo "\"\$as_me:9464: $lt_compile\"" >&5) 9465 (eval "$lt_compile" 2>out/conftest.err) 9466 ac_status=$? 9467 cat out/conftest.err >&5 9468 echo "$as_me:9468: \$? = $ac_status" >&5 9469 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9470 then 9471 # The compiler can only warn and ignore the option if not recognized 9472 # So say no if there are warnings 9473 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9474 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9475 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9476 lt_cv_prog_compiler_c_o=yes 9477 fi 9478 fi 9479 chmod u+w . 2>&5 9480 $RM conftest* 9481 # SGI C++ compiler will create directory out/ii_files/ for 9482 # template instantiation 9483 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9484 $RM out/* && rmdir out 9485 cd .. 9486 $RM -r conftest 9487 $RM conftest* 9488 9489fi 9490{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 9491$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9492 9493 9494 9495 9496 9497 9498 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 9499$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9500if test "${lt_cv_prog_compiler_c_o+set}" = set; then 9501 $as_echo_n "(cached) " >&6 9502else 9503 lt_cv_prog_compiler_c_o=no 9504 $RM -r conftest 2>/dev/null 9505 mkdir conftest 9506 cd conftest 9507 mkdir out 9508 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9509 9510 lt_compiler_flag="-o out/conftest2.$ac_objext" 9511 # Insert the option either (1) after the last *FLAGS variable, or 9512 # (2) before a word containing "conftest.", or (3) at the end. 9513 # Note that $ac_compile itself does not contain backslashes and begins 9514 # with a dollar sign (not a hyphen), so the echo should work correctly. 9515 lt_compile=`echo "$ac_compile" | $SED \ 9516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9518 -e 's:$: $lt_compiler_flag:'` 9519 (eval echo "\"\$as_me:9519: $lt_compile\"" >&5) 9520 (eval "$lt_compile" 2>out/conftest.err) 9521 ac_status=$? 9522 cat out/conftest.err >&5 9523 echo "$as_me:9523: \$? = $ac_status" >&5 9524 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9525 then 9526 # The compiler can only warn and ignore the option if not recognized 9527 # So say no if there are warnings 9528 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9529 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9530 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9531 lt_cv_prog_compiler_c_o=yes 9532 fi 9533 fi 9534 chmod u+w . 2>&5 9535 $RM conftest* 9536 # SGI C++ compiler will create directory out/ii_files/ for 9537 # template instantiation 9538 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9539 $RM out/* && rmdir out 9540 cd .. 9541 $RM -r conftest 9542 $RM conftest* 9543 9544fi 9545{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 9546$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9547 9548 9549 9550 9551hard_links="nottested" 9552if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9553 # do not overwrite the value of need_locks provided by the user 9554 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 9555$as_echo_n "checking if we can lock with hard links... " >&6; } 9556 hard_links=yes 9557 $RM conftest* 9558 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9559 touch conftest.a 9560 ln conftest.a conftest.b 2>&5 || hard_links=no 9561 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9562 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 9563$as_echo "$hard_links" >&6; } 9564 if test "$hard_links" = no; then 9565 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9566$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9567 need_locks=warn 9568 fi 9569else 9570 need_locks=no 9571fi 9572 9573 9574 9575 9576 9577 9578 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9579$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9580 9581 runpath_var= 9582 allow_undefined_flag= 9583 always_export_symbols=no 9584 archive_cmds= 9585 archive_expsym_cmds= 9586 compiler_needs_object=no 9587 enable_shared_with_static_runtimes=no 9588 export_dynamic_flag_spec= 9589 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9590 hardcode_automatic=no 9591 hardcode_direct=no 9592 hardcode_direct_absolute=no 9593 hardcode_libdir_flag_spec= 9594 hardcode_libdir_flag_spec_ld= 9595 hardcode_libdir_separator= 9596 hardcode_minus_L=no 9597 hardcode_shlibpath_var=unsupported 9598 inherit_rpath=no 9599 link_all_deplibs=unknown 9600 module_cmds= 9601 module_expsym_cmds= 9602 old_archive_from_new_cmds= 9603 old_archive_from_expsyms_cmds= 9604 thread_safe_flag_spec= 9605 whole_archive_flag_spec= 9606 # include_expsyms should be a list of space-separated symbols to be *always* 9607 # included in the symbol list 9608 include_expsyms= 9609 # exclude_expsyms can be an extended regexp of symbols to exclude 9610 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9611 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9612 # as well as any symbol that contains `d'. 9613 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9614 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9615 # platforms (ab)use it in PIC code, but their linkers get confused if 9616 # the symbol is explicitly referenced. Since portable code cannot 9617 # rely on this symbol name, it's probably fine to never include it in 9618 # preloaded symbol tables. 9619 # Exclude shared library initialization/finalization symbols. 9620 extract_expsyms_cmds= 9621 9622 case $host_os in 9623 cygwin* | mingw* | pw32* | cegcc*) 9624 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9625 # When not using gcc, we currently assume that we are using 9626 # Microsoft Visual C++. 9627 if test "$GCC" != yes; then 9628 with_gnu_ld=no 9629 fi 9630 ;; 9631 interix*) 9632 # we just hope/assume this is gcc and not c89 (= MSVC++) 9633 with_gnu_ld=yes 9634 ;; 9635 openbsd*) 9636 with_gnu_ld=no 9637 ;; 9638 esac 9639 9640 ld_shlibs=yes 9641 if test "$with_gnu_ld" = yes; then 9642 # If archive_cmds runs LD, not CC, wlarc should be empty 9643 wlarc='${wl}' 9644 9645 # Set some defaults for GNU ld with shared library support. These 9646 # are reset later if shared libraries are not supported. Putting them 9647 # here allows them to be overridden if necessary. 9648 runpath_var=LD_RUN_PATH 9649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9650 export_dynamic_flag_spec='${wl}--export-dynamic' 9651 # ancient GNU ld didn't support --whole-archive et. al. 9652 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9653 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9654 else 9655 whole_archive_flag_spec= 9656 fi 9657 supports_anon_versioning=no 9658 case `$LD -v 2>&1` in 9659 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9660 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9661 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9662 *\ 2.11.*) ;; # other 2.11 versions 9663 *) supports_anon_versioning=yes ;; 9664 esac 9665 9666 # See if GNU ld supports shared libraries. 9667 case $host_os in 9668 aix[3-9]*) 9669 # On AIX/PPC, the GNU linker is very broken 9670 if test "$host_cpu" != ia64; then 9671 ld_shlibs=no 9672 cat <<_LT_EOF 1>&2 9673 9674*** Warning: the GNU linker, at least up to release 2.9.1, is reported 9675*** to be unable to reliably create shared libraries on AIX. 9676*** Therefore, libtool is disabling shared libraries support. If you 9677*** really care for shared libraries, you may want to modify your PATH 9678*** so that a non-GNU linker is found, and then restart. 9679 9680_LT_EOF 9681 fi 9682 ;; 9683 9684 amigaos*) 9685 case $host_cpu in 9686 powerpc) 9687 # see comment about AmigaOS4 .so support 9688 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9689 archive_expsym_cmds='' 9690 ;; 9691 m68k) 9692 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)' 9693 hardcode_libdir_flag_spec='-L$libdir' 9694 hardcode_minus_L=yes 9695 ;; 9696 esac 9697 ;; 9698 9699 beos*) 9700 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9701 allow_undefined_flag=unsupported 9702 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9703 # support --undefined. This deserves some investigation. FIXME 9704 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9705 else 9706 ld_shlibs=no 9707 fi 9708 ;; 9709 9710 cygwin* | mingw* | pw32* | cegcc*) 9711 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9712 # as there is no search path for DLLs. 9713 hardcode_libdir_flag_spec='-L$libdir' 9714 allow_undefined_flag=unsupported 9715 always_export_symbols=no 9716 enable_shared_with_static_runtimes=yes 9717 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9718 9719 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9721 # If the export-symbols file already is a .def file (1st line 9722 # is EXPORTS), use it as is; otherwise, prepend... 9723 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9724 cp $export_symbols $output_objdir/$soname.def; 9725 else 9726 echo EXPORTS > $output_objdir/$soname.def; 9727 cat $export_symbols >> $output_objdir/$soname.def; 9728 fi~ 9729 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9730 else 9731 ld_shlibs=no 9732 fi 9733 ;; 9734 9735 interix[3-9]*) 9736 hardcode_direct=no 9737 hardcode_shlibpath_var=no 9738 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9739 export_dynamic_flag_spec='${wl}-E' 9740 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9741 # Instead, shared libraries are loaded at an image base (0x10000000 by 9742 # default) and relocated if they conflict, which is a slow very memory 9743 # consuming and fragmenting process. To avoid this, we pick a random, 9744 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9745 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9746 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9747 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' 9748 ;; 9749 9750 gnu* | linux* | tpf* | k*bsd*-gnu) 9751 tmp_diet=no 9752 if test "$host_os" = linux-dietlibc; then 9753 case $cc_basename in 9754 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9755 esac 9756 fi 9757 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9758 && test "$tmp_diet" = no 9759 then 9760 tmp_addflag= 9761 tmp_sharedflag='-shared' 9762 case $cc_basename,$host_cpu in 9763 pgcc*) # Portland Group C compiler 9764 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' 9765 tmp_addflag=' $pic_flag' 9766 ;; 9767 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9768 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' 9769 tmp_addflag=' $pic_flag -Mnomain' ;; 9770 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9771 tmp_addflag=' -i_dynamic' ;; 9772 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9773 tmp_addflag=' -i_dynamic -nofor_main' ;; 9774 ifc* | ifort*) # Intel Fortran compiler 9775 tmp_addflag=' -nofor_main' ;; 9776 lf95*) # Lahey Fortran 8.1 9777 whole_archive_flag_spec= 9778 tmp_sharedflag='--shared' ;; 9779 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9780 tmp_sharedflag='-qmkshrobj' 9781 tmp_addflag= ;; 9782 esac 9783 case `$CC -V 2>&1 | sed 5q` in 9784 *Sun\ C*) # Sun C 5.9 9785 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' 9786 compiler_needs_object=yes 9787 tmp_sharedflag='-G' ;; 9788 *Sun\ F*) # Sun Fortran 8.3 9789 tmp_sharedflag='-G' ;; 9790 esac 9791 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9792 9793 if test "x$supports_anon_versioning" = xyes; then 9794 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9795 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9796 echo "local: *; };" >> $output_objdir/$libname.ver~ 9797 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9798 fi 9799 9800 case $cc_basename in 9801 xlf*) 9802 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9803 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9804 hardcode_libdir_flag_spec= 9805 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9806 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9807 if test "x$supports_anon_versioning" = xyes; then 9808 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9809 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9810 echo "local: *; };" >> $output_objdir/$libname.ver~ 9811 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9812 fi 9813 ;; 9814 esac 9815 else 9816 ld_shlibs=no 9817 fi 9818 ;; 9819 9820 netbsd*) 9821 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9822 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9823 wlarc= 9824 else 9825 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9826 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9827 fi 9828 ;; 9829 9830 solaris*) 9831 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9832 ld_shlibs=no 9833 cat <<_LT_EOF 1>&2 9834 9835*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9836*** create shared libraries on Solaris systems. Therefore, libtool 9837*** is disabling shared libraries support. We urge you to upgrade GNU 9838*** binutils to release 2.9.1 or newer. Another option is to modify 9839*** your PATH or compiler configuration so that the native linker is 9840*** used, and then restart. 9841 9842_LT_EOF 9843 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9845 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9846 else 9847 ld_shlibs=no 9848 fi 9849 ;; 9850 9851 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9852 case `$LD -v 2>&1` in 9853 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9854 ld_shlibs=no 9855 cat <<_LT_EOF 1>&2 9856 9857*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9858*** reliably create shared libraries on SCO systems. Therefore, libtool 9859*** is disabling shared libraries support. We urge you to upgrade GNU 9860*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9861*** your PATH or compiler configuration so that the native linker is 9862*** used, and then restart. 9863 9864_LT_EOF 9865 ;; 9866 *) 9867 # For security reasons, it is highly recommended that you always 9868 # use absolute paths for naming shared libraries, and exclude the 9869 # DT_RUNPATH tag from executables and libraries. But doing so 9870 # requires that you compile everything twice, which is a pain. 9871 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9872 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9874 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9875 else 9876 ld_shlibs=no 9877 fi 9878 ;; 9879 esac 9880 ;; 9881 9882 sunos4*) 9883 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9884 wlarc= 9885 hardcode_direct=yes 9886 hardcode_shlibpath_var=no 9887 ;; 9888 9889 *) 9890 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9891 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9892 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9893 else 9894 ld_shlibs=no 9895 fi 9896 ;; 9897 esac 9898 9899 if test "$ld_shlibs" = no; then 9900 runpath_var= 9901 hardcode_libdir_flag_spec= 9902 export_dynamic_flag_spec= 9903 whole_archive_flag_spec= 9904 fi 9905 else 9906 # PORTME fill in a description of your system's linker (not GNU ld) 9907 case $host_os in 9908 aix3*) 9909 allow_undefined_flag=unsupported 9910 always_export_symbols=yes 9911 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' 9912 # Note: this linker hardcodes the directories in LIBPATH if there 9913 # are no directories specified by -L. 9914 hardcode_minus_L=yes 9915 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9916 # Neither direct hardcoding nor static linking is supported with a 9917 # broken collect2. 9918 hardcode_direct=unsupported 9919 fi 9920 ;; 9921 9922 aix[4-9]*) 9923 if test "$host_cpu" = ia64; then 9924 # On IA64, the linker does run time linking by default, so we don't 9925 # have to do anything special. 9926 aix_use_runtimelinking=no 9927 exp_sym_flag='-Bexport' 9928 no_entry_flag="" 9929 else 9930 # If we're using GNU nm, then we don't want the "-C" option. 9931 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9932 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9933 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' 9934 else 9935 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' 9936 fi 9937 aix_use_runtimelinking=no 9938 9939 # Test if we are trying to use run time linking or normal 9940 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9941 # need to do runtime linking. 9942 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9943 for ld_flag in $LDFLAGS; do 9944 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9945 aix_use_runtimelinking=yes 9946 break 9947 fi 9948 done 9949 ;; 9950 esac 9951 9952 exp_sym_flag='-bexport' 9953 no_entry_flag='-bnoentry' 9954 fi 9955 9956 # When large executables or shared objects are built, AIX ld can 9957 # have problems creating the table of contents. If linking a library 9958 # or program results in "error TOC overflow" add -mminimal-toc to 9959 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9960 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9961 9962 archive_cmds='' 9963 hardcode_direct=yes 9964 hardcode_direct_absolute=yes 9965 hardcode_libdir_separator=':' 9966 link_all_deplibs=yes 9967 file_list_spec='${wl}-f,' 9968 9969 if test "$GCC" = yes; then 9970 case $host_os in aix4.[012]|aix4.[012].*) 9971 # We only want to do this on AIX 4.2 and lower, the check 9972 # below for broken collect2 doesn't work under 4.3+ 9973 collect2name=`${CC} -print-prog-name=collect2` 9974 if test -f "$collect2name" && 9975 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9976 then 9977 # We have reworked collect2 9978 : 9979 else 9980 # We have old collect2 9981 hardcode_direct=unsupported 9982 # It fails to find uninstalled libraries when the uninstalled 9983 # path is not listed in the libpath. Setting hardcode_minus_L 9984 # to unsupported forces relinking 9985 hardcode_minus_L=yes 9986 hardcode_libdir_flag_spec='-L$libdir' 9987 hardcode_libdir_separator= 9988 fi 9989 ;; 9990 esac 9991 shared_flag='-shared' 9992 if test "$aix_use_runtimelinking" = yes; then 9993 shared_flag="$shared_flag "'${wl}-G' 9994 fi 9995 else 9996 # not using gcc 9997 if test "$host_cpu" = ia64; then 9998 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9999 # chokes on -Wl,-G. The following line is correct: 10000 shared_flag='-G' 10001 else 10002 if test "$aix_use_runtimelinking" = yes; then 10003 shared_flag='${wl}-G' 10004 else 10005 shared_flag='${wl}-bM:SRE' 10006 fi 10007 fi 10008 fi 10009 10010 export_dynamic_flag_spec='${wl}-bexpall' 10011 # It seems that -bexpall does not export symbols beginning with 10012 # underscore (_), so it is better to generate a list of symbols to export. 10013 always_export_symbols=yes 10014 if test "$aix_use_runtimelinking" = yes; then 10015 # Warning - without using the other runtime loading flags (-brtl), 10016 # -berok will link without error, but may produce a broken library. 10017 allow_undefined_flag='-berok' 10018 # Determine the default libpath from the value encoded in an 10019 # empty executable. 10020 cat >conftest.$ac_ext <<_ACEOF 10021/* confdefs.h. */ 10022_ACEOF 10023cat confdefs.h >>conftest.$ac_ext 10024cat >>conftest.$ac_ext <<_ACEOF 10025/* end confdefs.h. */ 10026 10027int 10028main () 10029{ 10030 10031 ; 10032 return 0; 10033} 10034_ACEOF 10035rm -f conftest.$ac_objext conftest$ac_exeext 10036if { (ac_try="$ac_link" 10037case "(($ac_try" in 10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10039 *) ac_try_echo=$ac_try;; 10040esac 10041eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10042$as_echo "$ac_try_echo") >&5 10043 (eval "$ac_link") 2>conftest.er1 10044 ac_status=$? 10045 grep -v '^ *+' conftest.er1 >conftest.err 10046 rm -f conftest.er1 10047 cat conftest.err >&5 10048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10049 (exit $ac_status); } && { 10050 test -z "$ac_c_werror_flag" || 10051 test ! -s conftest.err 10052 } && test -s conftest$ac_exeext && { 10053 test "$cross_compiling" = yes || 10054 $as_test_x conftest$ac_exeext 10055 }; then 10056 10057lt_aix_libpath_sed=' 10058 /Import File Strings/,/^$/ { 10059 /^0/ { 10060 s/^0 *\(.*\)$/\1/ 10061 p 10062 } 10063 }' 10064aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10065# Check for a 64-bit object if we didn't find anything. 10066if test -z "$aix_libpath"; then 10067 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10068fi 10069else 10070 $as_echo "$as_me: failed program was:" >&5 10071sed 's/^/| /' conftest.$ac_ext >&5 10072 10073 10074fi 10075 10076rm -rf conftest.dSYM 10077rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10078 conftest$ac_exeext conftest.$ac_ext 10079if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10080 10081 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10082 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" 10083 else 10084 if test "$host_cpu" = ia64; then 10085 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10086 allow_undefined_flag="-z nodefs" 10087 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" 10088 else 10089 # Determine the default libpath from the value encoded in an 10090 # empty executable. 10091 cat >conftest.$ac_ext <<_ACEOF 10092/* confdefs.h. */ 10093_ACEOF 10094cat confdefs.h >>conftest.$ac_ext 10095cat >>conftest.$ac_ext <<_ACEOF 10096/* end confdefs.h. */ 10097 10098int 10099main () 10100{ 10101 10102 ; 10103 return 0; 10104} 10105_ACEOF 10106rm -f conftest.$ac_objext conftest$ac_exeext 10107if { (ac_try="$ac_link" 10108case "(($ac_try" in 10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10110 *) ac_try_echo=$ac_try;; 10111esac 10112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10113$as_echo "$ac_try_echo") >&5 10114 (eval "$ac_link") 2>conftest.er1 10115 ac_status=$? 10116 grep -v '^ *+' conftest.er1 >conftest.err 10117 rm -f conftest.er1 10118 cat conftest.err >&5 10119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10120 (exit $ac_status); } && { 10121 test -z "$ac_c_werror_flag" || 10122 test ! -s conftest.err 10123 } && test -s conftest$ac_exeext && { 10124 test "$cross_compiling" = yes || 10125 $as_test_x conftest$ac_exeext 10126 }; then 10127 10128lt_aix_libpath_sed=' 10129 /Import File Strings/,/^$/ { 10130 /^0/ { 10131 s/^0 *\(.*\)$/\1/ 10132 p 10133 } 10134 }' 10135aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10136# Check for a 64-bit object if we didn't find anything. 10137if test -z "$aix_libpath"; then 10138 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10139fi 10140else 10141 $as_echo "$as_me: failed program was:" >&5 10142sed 's/^/| /' conftest.$ac_ext >&5 10143 10144 10145fi 10146 10147rm -rf conftest.dSYM 10148rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10149 conftest$ac_exeext conftest.$ac_ext 10150if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10151 10152 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10153 # Warning - without using the other run time loading flags, 10154 # -berok will link without error, but may produce a broken library. 10155 no_undefined_flag=' ${wl}-bernotok' 10156 allow_undefined_flag=' ${wl}-berok' 10157 # Exported symbols can be pulled into shared objects from archives 10158 whole_archive_flag_spec='$convenience' 10159 archive_cmds_need_lc=yes 10160 # This is similar to how AIX traditionally builds its shared libraries. 10161 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' 10162 fi 10163 fi 10164 ;; 10165 10166 amigaos*) 10167 case $host_cpu in 10168 powerpc) 10169 # see comment about AmigaOS4 .so support 10170 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10171 archive_expsym_cmds='' 10172 ;; 10173 m68k) 10174 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)' 10175 hardcode_libdir_flag_spec='-L$libdir' 10176 hardcode_minus_L=yes 10177 ;; 10178 esac 10179 ;; 10180 10181 bsdi[45]*) 10182 export_dynamic_flag_spec=-rdynamic 10183 ;; 10184 10185 cygwin* | mingw* | pw32* | cegcc*) 10186 # When not using gcc, we currently assume that we are using 10187 # Microsoft Visual C++. 10188 # hardcode_libdir_flag_spec is actually meaningless, as there is 10189 # no search path for DLLs. 10190 hardcode_libdir_flag_spec=' ' 10191 allow_undefined_flag=unsupported 10192 # Tell ltmain to make .lib files, not .a files. 10193 libext=lib 10194 # Tell ltmain to make .dll files, not .so files. 10195 shrext_cmds=".dll" 10196 # FIXME: Setting linknames here is a bad hack. 10197 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 10198 # The linker will automatically build a .lib file if we build a DLL. 10199 old_archive_from_new_cmds='true' 10200 # FIXME: Should let the user specify the lib program. 10201 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10202 fix_srcfile_path='`cygpath -w "$srcfile"`' 10203 enable_shared_with_static_runtimes=yes 10204 ;; 10205 10206 darwin* | rhapsody*) 10207 10208 10209 archive_cmds_need_lc=no 10210 hardcode_direct=no 10211 hardcode_automatic=yes 10212 hardcode_shlibpath_var=unsupported 10213 whole_archive_flag_spec='' 10214 link_all_deplibs=yes 10215 allow_undefined_flag="$_lt_dar_allow_undefined" 10216 case $cc_basename in 10217 ifort*) _lt_dar_can_shared=yes ;; 10218 *) _lt_dar_can_shared=$GCC ;; 10219 esac 10220 if test "$_lt_dar_can_shared" = "yes"; then 10221 output_verbose_link_cmd=echo 10222 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10223 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10224 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}" 10225 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}" 10226 10227 else 10228 ld_shlibs=no 10229 fi 10230 10231 ;; 10232 10233 dgux*) 10234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10235 hardcode_libdir_flag_spec='-L$libdir' 10236 hardcode_shlibpath_var=no 10237 ;; 10238 10239 freebsd1*) 10240 ld_shlibs=no 10241 ;; 10242 10243 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10244 # support. Future versions do this automatically, but an explicit c++rt0.o 10245 # does not break anything, and helps significantly (at the cost of a little 10246 # extra space). 10247 freebsd2.2*) 10248 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10249 hardcode_libdir_flag_spec='-R$libdir' 10250 hardcode_direct=yes 10251 hardcode_shlibpath_var=no 10252 ;; 10253 10254 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10255 freebsd2*) 10256 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10257 hardcode_direct=yes 10258 hardcode_minus_L=yes 10259 hardcode_shlibpath_var=no 10260 ;; 10261 10262 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10263 freebsd* | dragonfly*) 10264 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 10265 hardcode_libdir_flag_spec='-R$libdir' 10266 hardcode_direct=yes 10267 hardcode_shlibpath_var=no 10268 ;; 10269 10270 hpux9*) 10271 if test "$GCC" = yes; then 10272 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' 10273 else 10274 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' 10275 fi 10276 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10277 hardcode_libdir_separator=: 10278 hardcode_direct=yes 10279 10280 # hardcode_minus_L: Not really in the search PATH, 10281 # but as the default location of the library. 10282 hardcode_minus_L=yes 10283 export_dynamic_flag_spec='${wl}-E' 10284 ;; 10285 10286 hpux10*) 10287 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 10288 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10289 else 10290 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10291 fi 10292 if test "$with_gnu_ld" = no; then 10293 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10294 hardcode_libdir_flag_spec_ld='+b $libdir' 10295 hardcode_libdir_separator=: 10296 hardcode_direct=yes 10297 hardcode_direct_absolute=yes 10298 export_dynamic_flag_spec='${wl}-E' 10299 # hardcode_minus_L: Not really in the search PATH, 10300 # but as the default location of the library. 10301 hardcode_minus_L=yes 10302 fi 10303 ;; 10304 10305 hpux11*) 10306 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 10307 case $host_cpu in 10308 hppa*64*) 10309 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10310 ;; 10311 ia64*) 10312 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10313 ;; 10314 *) 10315 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10316 ;; 10317 esac 10318 else 10319 case $host_cpu in 10320 hppa*64*) 10321 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10322 ;; 10323 ia64*) 10324 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10325 ;; 10326 *) 10327 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10328 ;; 10329 esac 10330 fi 10331 if test "$with_gnu_ld" = no; then 10332 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10333 hardcode_libdir_separator=: 10334 10335 case $host_cpu in 10336 hppa*64*|ia64*) 10337 hardcode_direct=no 10338 hardcode_shlibpath_var=no 10339 ;; 10340 *) 10341 hardcode_direct=yes 10342 hardcode_direct_absolute=yes 10343 export_dynamic_flag_spec='${wl}-E' 10344 10345 # hardcode_minus_L: Not really in the search PATH, 10346 # but as the default location of the library. 10347 hardcode_minus_L=yes 10348 ;; 10349 esac 10350 fi 10351 ;; 10352 10353 irix5* | irix6* | nonstopux*) 10354 if test "$GCC" = yes; then 10355 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' 10356 # Try to use the -exported_symbol ld option, if it does not 10357 # work, assume that -exports_file does not work either and 10358 # implicitly export all symbols. 10359 save_LDFLAGS="$LDFLAGS" 10360 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10361 cat >conftest.$ac_ext <<_ACEOF 10362int foo(void) {} 10363_ACEOF 10364rm -f conftest.$ac_objext conftest$ac_exeext 10365if { (ac_try="$ac_link" 10366case "(($ac_try" in 10367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10368 *) ac_try_echo=$ac_try;; 10369esac 10370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10371$as_echo "$ac_try_echo") >&5 10372 (eval "$ac_link") 2>conftest.er1 10373 ac_status=$? 10374 grep -v '^ *+' conftest.er1 >conftest.err 10375 rm -f conftest.er1 10376 cat conftest.err >&5 10377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10378 (exit $ac_status); } && { 10379 test -z "$ac_c_werror_flag" || 10380 test ! -s conftest.err 10381 } && test -s conftest$ac_exeext && { 10382 test "$cross_compiling" = yes || 10383 $as_test_x conftest$ac_exeext 10384 }; then 10385 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' 10386 10387else 10388 $as_echo "$as_me: failed program was:" >&5 10389sed 's/^/| /' conftest.$ac_ext >&5 10390 10391 10392fi 10393 10394rm -rf conftest.dSYM 10395rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10396 conftest$ac_exeext conftest.$ac_ext 10397 LDFLAGS="$save_LDFLAGS" 10398 else 10399 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' 10400 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' 10401 fi 10402 archive_cmds_need_lc='no' 10403 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10404 hardcode_libdir_separator=: 10405 inherit_rpath=yes 10406 link_all_deplibs=yes 10407 ;; 10408 10409 netbsd*) 10410 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10411 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10412 else 10413 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10414 fi 10415 hardcode_libdir_flag_spec='-R$libdir' 10416 hardcode_direct=yes 10417 hardcode_shlibpath_var=no 10418 ;; 10419 10420 newsos6) 10421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10422 hardcode_direct=yes 10423 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10424 hardcode_libdir_separator=: 10425 hardcode_shlibpath_var=no 10426 ;; 10427 10428 *nto* | *qnx*) 10429 ;; 10430 10431 openbsd*) 10432 if test -f /usr/libexec/ld.so; then 10433 hardcode_direct=yes 10434 hardcode_shlibpath_var=no 10435 hardcode_direct_absolute=yes 10436 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10437 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10438 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10439 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10440 export_dynamic_flag_spec='${wl}-E' 10441 else 10442 case $host_os in 10443 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10444 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10445 hardcode_libdir_flag_spec='-R$libdir' 10446 ;; 10447 *) 10448 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10449 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10450 ;; 10451 esac 10452 fi 10453 else 10454 ld_shlibs=no 10455 fi 10456 ;; 10457 10458 os2*) 10459 hardcode_libdir_flag_spec='-L$libdir' 10460 hardcode_minus_L=yes 10461 allow_undefined_flag=unsupported 10462 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' 10463 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10464 ;; 10465 10466 osf3*) 10467 if test "$GCC" = yes; then 10468 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10469 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' 10470 else 10471 allow_undefined_flag=' -expect_unresolved \*' 10472 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' 10473 fi 10474 archive_cmds_need_lc='no' 10475 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10476 hardcode_libdir_separator=: 10477 ;; 10478 10479 osf4* | osf5*) # as osf3* with the addition of -msym flag 10480 if test "$GCC" = yes; then 10481 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10482 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' 10483 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10484 else 10485 allow_undefined_flag=' -expect_unresolved \*' 10486 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' 10487 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~ 10488 $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' 10489 10490 # Both c and cxx compiler support -rpath directly 10491 hardcode_libdir_flag_spec='-rpath $libdir' 10492 fi 10493 archive_cmds_need_lc='no' 10494 hardcode_libdir_separator=: 10495 ;; 10496 10497 solaris*) 10498 no_undefined_flag=' -z defs' 10499 if test "$GCC" = yes; then 10500 wlarc='${wl}' 10501 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10502 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10503 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10504 else 10505 case `$CC -V 2>&1` in 10506 *"Compilers 5.0"*) 10507 wlarc='' 10508 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10509 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10510 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10511 ;; 10512 *) 10513 wlarc='${wl}' 10514 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10515 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10516 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10517 ;; 10518 esac 10519 fi 10520 hardcode_libdir_flag_spec='-R$libdir' 10521 hardcode_shlibpath_var=no 10522 case $host_os in 10523 solaris2.[0-5] | solaris2.[0-5].*) ;; 10524 *) 10525 # The compiler driver will combine and reorder linker options, 10526 # but understands `-z linker_flag'. GCC discards it without `$wl', 10527 # but is careful enough not to reorder. 10528 # Supported since Solaris 2.6 (maybe 2.5.1?) 10529 if test "$GCC" = yes; then 10530 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10531 else 10532 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10533 fi 10534 ;; 10535 esac 10536 link_all_deplibs=yes 10537 ;; 10538 10539 sunos4*) 10540 if test "x$host_vendor" = xsequent; then 10541 # Use $CC to link under sequent, because it throws in some extra .o 10542 # files that make .init and .fini sections work. 10543 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10544 else 10545 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10546 fi 10547 hardcode_libdir_flag_spec='-L$libdir' 10548 hardcode_direct=yes 10549 hardcode_minus_L=yes 10550 hardcode_shlibpath_var=no 10551 ;; 10552 10553 sysv4) 10554 case $host_vendor in 10555 sni) 10556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10557 hardcode_direct=yes # is this really true??? 10558 ;; 10559 siemens) 10560 ## LD is ld it makes a PLAMLIB 10561 ## CC just makes a GrossModule. 10562 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10563 reload_cmds='$CC -r -o $output$reload_objs' 10564 hardcode_direct=no 10565 ;; 10566 motorola) 10567 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10568 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10569 ;; 10570 esac 10571 runpath_var='LD_RUN_PATH' 10572 hardcode_shlibpath_var=no 10573 ;; 10574 10575 sysv4.3*) 10576 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10577 hardcode_shlibpath_var=no 10578 export_dynamic_flag_spec='-Bexport' 10579 ;; 10580 10581 sysv4*MP*) 10582 if test -d /usr/nec; then 10583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10584 hardcode_shlibpath_var=no 10585 runpath_var=LD_RUN_PATH 10586 hardcode_runpath_var=yes 10587 ld_shlibs=yes 10588 fi 10589 ;; 10590 10591 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10592 no_undefined_flag='${wl}-z,text' 10593 archive_cmds_need_lc=no 10594 hardcode_shlibpath_var=no 10595 runpath_var='LD_RUN_PATH' 10596 10597 if test "$GCC" = yes; then 10598 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10599 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10600 else 10601 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10602 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10603 fi 10604 ;; 10605 10606 sysv5* | sco3.2v5* | sco5v6*) 10607 # Note: We can NOT use -z defs as we might desire, because we do not 10608 # link with -lc, and that would cause any symbols used from libc to 10609 # always be unresolved, which means just about no library would 10610 # ever link correctly. If we're not using GNU ld we use -z text 10611 # though, which does catch some bad symbols but isn't as heavy-handed 10612 # as -z defs. 10613 no_undefined_flag='${wl}-z,text' 10614 allow_undefined_flag='${wl}-z,nodefs' 10615 archive_cmds_need_lc=no 10616 hardcode_shlibpath_var=no 10617 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10618 hardcode_libdir_separator=':' 10619 link_all_deplibs=yes 10620 export_dynamic_flag_spec='${wl}-Bexport' 10621 runpath_var='LD_RUN_PATH' 10622 10623 if test "$GCC" = yes; then 10624 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10625 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10626 else 10627 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10628 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10629 fi 10630 ;; 10631 10632 uts4*) 10633 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10634 hardcode_libdir_flag_spec='-L$libdir' 10635 hardcode_shlibpath_var=no 10636 ;; 10637 10638 *) 10639 ld_shlibs=no 10640 ;; 10641 esac 10642 10643 if test x$host_vendor = xsni; then 10644 case $host in 10645 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10646 export_dynamic_flag_spec='${wl}-Blargedynsym' 10647 ;; 10648 esac 10649 fi 10650 fi 10651 10652{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 10653$as_echo "$ld_shlibs" >&6; } 10654test "$ld_shlibs" = no && can_build_shared=no 10655 10656with_gnu_ld=$with_gnu_ld 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672# 10673# Do we need to explicitly link libc? 10674# 10675case "x$archive_cmds_need_lc" in 10676x|xyes) 10677 # Assume -lc should be added 10678 archive_cmds_need_lc=yes 10679 10680 if test "$enable_shared" = yes && test "$GCC" = yes; then 10681 case $archive_cmds in 10682 *'~'*) 10683 # FIXME: we may have to deal with multi-command sequences. 10684 ;; 10685 '$CC '*) 10686 # Test whether the compiler implicitly links with -lc since on some 10687 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10688 # to ld, don't add -lc before -lgcc. 10689 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 10690$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10691 $RM conftest* 10692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10693 10694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10695 (eval $ac_compile) 2>&5 10696 ac_status=$? 10697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10698 (exit $ac_status); } 2>conftest.err; then 10699 soname=conftest 10700 lib=conftest 10701 libobjs=conftest.$ac_objext 10702 deplibs= 10703 wl=$lt_prog_compiler_wl 10704 pic_flag=$lt_prog_compiler_pic 10705 compiler_flags=-v 10706 linker_flags=-v 10707 verstring= 10708 output_objdir=. 10709 libname=conftest 10710 lt_save_allow_undefined_flag=$allow_undefined_flag 10711 allow_undefined_flag= 10712 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 10713 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10714 ac_status=$? 10715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10716 (exit $ac_status); } 10717 then 10718 archive_cmds_need_lc=no 10719 else 10720 archive_cmds_need_lc=yes 10721 fi 10722 allow_undefined_flag=$lt_save_allow_undefined_flag 10723 else 10724 cat conftest.err 1>&5 10725 fi 10726 $RM conftest* 10727 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 10728$as_echo "$archive_cmds_need_lc" >&6; } 10729 ;; 10730 esac 10731 fi 10732 ;; 10733esac 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10892$as_echo_n "checking dynamic linker characteristics... " >&6; } 10893 10894if test "$GCC" = yes; then 10895 case $host_os in 10896 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10897 *) lt_awk_arg="/^libraries:/" ;; 10898 esac 10899 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10900 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10901 # if the path contains ";" then we assume it to be the separator 10902 # otherwise default to the standard path separator (i.e. ":") - it is 10903 # assumed that no part of a normal pathname contains ";" but that should 10904 # okay in the real world where ";" in dirpaths is itself problematic. 10905 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10906 else 10907 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10908 fi 10909 # Ok, now we have the path, separated by spaces, we can step through it 10910 # and add multilib dir if necessary. 10911 lt_tmp_lt_search_path_spec= 10912 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10913 for lt_sys_path in $lt_search_path_spec; do 10914 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10915 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10916 else 10917 test -d "$lt_sys_path" && \ 10918 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10919 fi 10920 done 10921 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10922BEGIN {RS=" "; FS="/|\n";} { 10923 lt_foo=""; 10924 lt_count=0; 10925 for (lt_i = NF; lt_i > 0; lt_i--) { 10926 if ($lt_i != "" && $lt_i != ".") { 10927 if ($lt_i == "..") { 10928 lt_count++; 10929 } else { 10930 if (lt_count == 0) { 10931 lt_foo="/" $lt_i lt_foo; 10932 } else { 10933 lt_count--; 10934 } 10935 } 10936 } 10937 } 10938 if (lt_foo != "") { lt_freq[lt_foo]++; } 10939 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10940}'` 10941 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10942else 10943 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10944fi 10945library_names_spec= 10946libname_spec='lib$name' 10947soname_spec= 10948shrext_cmds=".so" 10949postinstall_cmds= 10950postuninstall_cmds= 10951finish_cmds= 10952finish_eval= 10953shlibpath_var= 10954shlibpath_overrides_runpath=unknown 10955version_type=none 10956dynamic_linker="$host_os ld.so" 10957sys_lib_dlsearch_path_spec="/lib /usr/lib" 10958need_lib_prefix=unknown 10959hardcode_into_libs=no 10960 10961# when you set need_version to no, make sure it does not cause -set_version 10962# flags to be left without arguments 10963need_version=unknown 10964 10965case $host_os in 10966aix3*) 10967 version_type=linux 10968 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10969 shlibpath_var=LIBPATH 10970 10971 # AIX 3 has no versioning support, so we append a major version to the name. 10972 soname_spec='${libname}${release}${shared_ext}$major' 10973 ;; 10974 10975aix[4-9]*) 10976 version_type=linux 10977 need_lib_prefix=no 10978 need_version=no 10979 hardcode_into_libs=yes 10980 if test "$host_cpu" = ia64; then 10981 # AIX 5 supports IA64 10982 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10983 shlibpath_var=LD_LIBRARY_PATH 10984 else 10985 # With GCC up to 2.95.x, collect2 would create an import file 10986 # for dependence libraries. The import file would start with 10987 # the line `#! .'. This would cause the generated library to 10988 # depend on `.', always an invalid library. This was fixed in 10989 # development snapshots of GCC prior to 3.0. 10990 case $host_os in 10991 aix4 | aix4.[01] | aix4.[01].*) 10992 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10993 echo ' yes ' 10994 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10995 : 10996 else 10997 can_build_shared=no 10998 fi 10999 ;; 11000 esac 11001 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11002 # soname into executable. Probably we can add versioning support to 11003 # collect2, so additional links can be useful in future. 11004 if test "$aix_use_runtimelinking" = yes; then 11005 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11006 # instead of lib<name>.a to let people know that these are not 11007 # typical AIX shared libraries. 11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11009 else 11010 # We preserve .a as extension for shared libraries through AIX4.2 11011 # and later when we are not doing run time linking. 11012 library_names_spec='${libname}${release}.a $libname.a' 11013 soname_spec='${libname}${release}${shared_ext}$major' 11014 fi 11015 shlibpath_var=LIBPATH 11016 fi 11017 ;; 11018 11019amigaos*) 11020 case $host_cpu in 11021 powerpc) 11022 # Since July 2007 AmigaOS4 officially supports .so libraries. 11023 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11025 ;; 11026 m68k) 11027 library_names_spec='$libname.ixlibrary $libname.a' 11028 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11029 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' 11030 ;; 11031 esac 11032 ;; 11033 11034beos*) 11035 library_names_spec='${libname}${shared_ext}' 11036 dynamic_linker="$host_os ld.so" 11037 shlibpath_var=LIBRARY_PATH 11038 ;; 11039 11040bsdi[45]*) 11041 version_type=linux 11042 need_version=no 11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11044 soname_spec='${libname}${release}${shared_ext}$major' 11045 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11046 shlibpath_var=LD_LIBRARY_PATH 11047 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11048 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11049 # the default ld.so.conf also contains /usr/contrib/lib and 11050 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11051 # libtool to hard-code these into programs 11052 ;; 11053 11054cygwin* | mingw* | pw32* | cegcc*) 11055 version_type=windows 11056 shrext_cmds=".dll" 11057 need_version=no 11058 need_lib_prefix=no 11059 11060 case $GCC,$host_os in 11061 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 11062 library_names_spec='$libname.dll.a' 11063 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11064 postinstall_cmds='base_file=`basename \${file}`~ 11065 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11066 dldir=$destdir/`dirname \$dlpath`~ 11067 test -d \$dldir || mkdir -p \$dldir~ 11068 $install_prog $dir/$dlname \$dldir/$dlname~ 11069 chmod a+x \$dldir/$dlname~ 11070 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11071 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11072 fi' 11073 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11074 dlpath=$dir/\$dldll~ 11075 $RM \$dlpath' 11076 shlibpath_overrides_runpath=yes 11077 11078 case $host_os in 11079 cygwin*) 11080 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11081 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11082 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11083 ;; 11084 mingw* | cegcc*) 11085 # MinGW DLLs use traditional 'lib' prefix 11086 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11087 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11088 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11089 # It is most probably a Windows format PATH printed by 11090 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11091 # path with ; separators, and with drive letters. We can handle the 11092 # drive letters (cygwin fileutils understands them), so leave them, 11093 # especially as we might pass files found there to a mingw objdump, 11094 # which wouldn't understand a cygwinified path. Ahh. 11095 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11096 else 11097 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11098 fi 11099 ;; 11100 pw32*) 11101 # pw32 DLLs use 'pw' prefix rather than 'lib' 11102 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11103 ;; 11104 esac 11105 ;; 11106 11107 *) 11108 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11109 ;; 11110 esac 11111 dynamic_linker='Win32 ld.exe' 11112 # FIXME: first we should search . and the directory the executable is in 11113 shlibpath_var=PATH 11114 ;; 11115 11116darwin* | rhapsody*) 11117 dynamic_linker="$host_os dyld" 11118 version_type=darwin 11119 need_lib_prefix=no 11120 need_version=no 11121 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11122 soname_spec='${libname}${release}${major}$shared_ext' 11123 shlibpath_overrides_runpath=yes 11124 shlibpath_var=DYLD_LIBRARY_PATH 11125 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11126 11127 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11128 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11129 ;; 11130 11131dgux*) 11132 version_type=linux 11133 need_lib_prefix=no 11134 need_version=no 11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11136 soname_spec='${libname}${release}${shared_ext}$major' 11137 shlibpath_var=LD_LIBRARY_PATH 11138 ;; 11139 11140freebsd1*) 11141 dynamic_linker=no 11142 ;; 11143 11144freebsd* | dragonfly*) 11145 # DragonFly does not have aout. When/if they implement a new 11146 # versioning mechanism, adjust this. 11147 if test -x /usr/bin/objformat; then 11148 objformat=`/usr/bin/objformat` 11149 else 11150 case $host_os in 11151 freebsd[123]*) objformat=aout ;; 11152 *) objformat=elf ;; 11153 esac 11154 fi 11155 version_type=freebsd-$objformat 11156 case $version_type in 11157 freebsd-elf*) 11158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11159 need_version=no 11160 need_lib_prefix=no 11161 ;; 11162 freebsd-*) 11163 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11164 need_version=yes 11165 ;; 11166 esac 11167 shlibpath_var=LD_LIBRARY_PATH 11168 case $host_os in 11169 freebsd2*) 11170 shlibpath_overrides_runpath=yes 11171 ;; 11172 freebsd3.[01]* | freebsdelf3.[01]*) 11173 shlibpath_overrides_runpath=yes 11174 hardcode_into_libs=yes 11175 ;; 11176 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11177 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11178 shlibpath_overrides_runpath=no 11179 hardcode_into_libs=yes 11180 ;; 11181 *) # from 4.6 on, and DragonFly 11182 shlibpath_overrides_runpath=yes 11183 hardcode_into_libs=yes 11184 ;; 11185 esac 11186 ;; 11187 11188gnu*) 11189 version_type=linux 11190 need_lib_prefix=no 11191 need_version=no 11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11193 soname_spec='${libname}${release}${shared_ext}$major' 11194 shlibpath_var=LD_LIBRARY_PATH 11195 hardcode_into_libs=yes 11196 ;; 11197 11198hpux9* | hpux10* | hpux11*) 11199 # Give a soname corresponding to the major version so that dld.sl refuses to 11200 # link against other versions. 11201 version_type=sunos 11202 need_lib_prefix=no 11203 need_version=no 11204 case $host_cpu in 11205 ia64*) 11206 shrext_cmds='.so' 11207 hardcode_into_libs=yes 11208 dynamic_linker="$host_os dld.so" 11209 shlibpath_var=LD_LIBRARY_PATH 11210 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11212 soname_spec='${libname}${release}${shared_ext}$major' 11213 if test "X$HPUX_IA64_MODE" = X32; then 11214 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11215 else 11216 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11217 fi 11218 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11219 ;; 11220 hppa*64*) 11221 shrext_cmds='.sl' 11222 hardcode_into_libs=yes 11223 dynamic_linker="$host_os dld.sl" 11224 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11225 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11227 soname_spec='${libname}${release}${shared_ext}$major' 11228 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11229 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11230 ;; 11231 *) 11232 shrext_cmds='.sl' 11233 dynamic_linker="$host_os dld.sl" 11234 shlibpath_var=SHLIB_PATH 11235 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11237 soname_spec='${libname}${release}${shared_ext}$major' 11238 ;; 11239 esac 11240 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11241 postinstall_cmds='chmod 555 $lib' 11242 ;; 11243 11244interix[3-9]*) 11245 version_type=linux 11246 need_lib_prefix=no 11247 need_version=no 11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11249 soname_spec='${libname}${release}${shared_ext}$major' 11250 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11251 shlibpath_var=LD_LIBRARY_PATH 11252 shlibpath_overrides_runpath=no 11253 hardcode_into_libs=yes 11254 ;; 11255 11256irix5* | irix6* | nonstopux*) 11257 case $host_os in 11258 nonstopux*) version_type=nonstopux ;; 11259 *) 11260 if test "$lt_cv_prog_gnu_ld" = yes; then 11261 version_type=linux 11262 else 11263 version_type=irix 11264 fi ;; 11265 esac 11266 need_lib_prefix=no 11267 need_version=no 11268 soname_spec='${libname}${release}${shared_ext}$major' 11269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11270 case $host_os in 11271 irix5* | nonstopux*) 11272 libsuff= shlibsuff= 11273 ;; 11274 *) 11275 case $LD in # libtool.m4 will add one of these switches to LD 11276 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11277 libsuff= shlibsuff= libmagic=32-bit;; 11278 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11279 libsuff=32 shlibsuff=N32 libmagic=N32;; 11280 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11281 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11282 *) libsuff= shlibsuff= libmagic=never-match;; 11283 esac 11284 ;; 11285 esac 11286 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11287 shlibpath_overrides_runpath=no 11288 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11289 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11290 hardcode_into_libs=yes 11291 ;; 11292 11293# No shared lib support for Linux oldld, aout, or coff. 11294linux*oldld* | linux*aout* | linux*coff*) 11295 dynamic_linker=no 11296 ;; 11297 11298# This must be Linux ELF. 11299linux* | k*bsd*-gnu) 11300 version_type=linux 11301 need_lib_prefix=no 11302 need_version=no 11303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11304 soname_spec='${libname}${release}${shared_ext}$major' 11305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11306 shlibpath_var=LD_LIBRARY_PATH 11307 shlibpath_overrides_runpath=no 11308 # Some binutils ld are patched to set DT_RUNPATH 11309 save_LDFLAGS=$LDFLAGS 11310 save_libdir=$libdir 11311 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11312 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11313 cat >conftest.$ac_ext <<_ACEOF 11314/* confdefs.h. */ 11315_ACEOF 11316cat confdefs.h >>conftest.$ac_ext 11317cat >>conftest.$ac_ext <<_ACEOF 11318/* end confdefs.h. */ 11319 11320int 11321main () 11322{ 11323 11324 ; 11325 return 0; 11326} 11327_ACEOF 11328rm -f conftest.$ac_objext conftest$ac_exeext 11329if { (ac_try="$ac_link" 11330case "(($ac_try" in 11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11332 *) ac_try_echo=$ac_try;; 11333esac 11334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11335$as_echo "$ac_try_echo") >&5 11336 (eval "$ac_link") 2>conftest.er1 11337 ac_status=$? 11338 grep -v '^ *+' conftest.er1 >conftest.err 11339 rm -f conftest.er1 11340 cat conftest.err >&5 11341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11342 (exit $ac_status); } && { 11343 test -z "$ac_c_werror_flag" || 11344 test ! -s conftest.err 11345 } && test -s conftest$ac_exeext && { 11346 test "$cross_compiling" = yes || 11347 $as_test_x conftest$ac_exeext 11348 }; then 11349 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 11350 shlibpath_overrides_runpath=yes 11351fi 11352 11353else 11354 $as_echo "$as_me: failed program was:" >&5 11355sed 's/^/| /' conftest.$ac_ext >&5 11356 11357 11358fi 11359 11360rm -rf conftest.dSYM 11361rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11362 conftest$ac_exeext conftest.$ac_ext 11363 LDFLAGS=$save_LDFLAGS 11364 libdir=$save_libdir 11365 11366 # This implies no fast_install, which is unacceptable. 11367 # Some rework will be needed to allow for fast_install 11368 # before this can be enabled. 11369 hardcode_into_libs=yes 11370 11371 # Add ABI-specific directories to the system library path. 11372 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11373 11374 # Append ld.so.conf contents to the search path 11375 if test -f /etc/ld.so.conf; then 11376 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' ' '` 11377 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11378 fi 11379 11380 # We used to test for /lib/ld.so.1 and disable shared libraries on 11381 # powerpc, because MkLinux only supported shared libraries with the 11382 # GNU dynamic linker. Since this was broken with cross compilers, 11383 # most powerpc-linux boxes support dynamic linking these days and 11384 # people can always --disable-shared, the test was removed, and we 11385 # assume the GNU/Linux dynamic linker is in use. 11386 dynamic_linker='GNU/Linux ld.so' 11387 ;; 11388 11389netbsd*) 11390 version_type=sunos 11391 need_lib_prefix=no 11392 need_version=no 11393 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11395 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11396 dynamic_linker='NetBSD (a.out) ld.so' 11397 else 11398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11399 soname_spec='${libname}${release}${shared_ext}$major' 11400 dynamic_linker='NetBSD ld.elf_so' 11401 fi 11402 shlibpath_var=LD_LIBRARY_PATH 11403 shlibpath_overrides_runpath=yes 11404 hardcode_into_libs=yes 11405 ;; 11406 11407newsos6) 11408 version_type=linux 11409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11410 shlibpath_var=LD_LIBRARY_PATH 11411 shlibpath_overrides_runpath=yes 11412 ;; 11413 11414*nto* | *qnx*) 11415 version_type=qnx 11416 need_lib_prefix=no 11417 need_version=no 11418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11419 soname_spec='${libname}${release}${shared_ext}$major' 11420 shlibpath_var=LD_LIBRARY_PATH 11421 shlibpath_overrides_runpath=no 11422 hardcode_into_libs=yes 11423 dynamic_linker='ldqnx.so' 11424 ;; 11425 11426openbsd*) 11427 version_type=sunos 11428 sys_lib_dlsearch_path_spec="/usr/lib" 11429 need_lib_prefix=no 11430 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11431 case $host_os in 11432 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11433 *) need_version=no ;; 11434 esac 11435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11437 shlibpath_var=LD_LIBRARY_PATH 11438 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11439 case $host_os in 11440 openbsd2.[89] | openbsd2.[89].*) 11441 shlibpath_overrides_runpath=no 11442 ;; 11443 *) 11444 shlibpath_overrides_runpath=yes 11445 ;; 11446 esac 11447 else 11448 shlibpath_overrides_runpath=yes 11449 fi 11450 ;; 11451 11452os2*) 11453 libname_spec='$name' 11454 shrext_cmds=".dll" 11455 need_lib_prefix=no 11456 library_names_spec='$libname${shared_ext} $libname.a' 11457 dynamic_linker='OS/2 ld.exe' 11458 shlibpath_var=LIBPATH 11459 ;; 11460 11461osf3* | osf4* | osf5*) 11462 version_type=osf 11463 need_lib_prefix=no 11464 need_version=no 11465 soname_spec='${libname}${release}${shared_ext}$major' 11466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11467 shlibpath_var=LD_LIBRARY_PATH 11468 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11469 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11470 ;; 11471 11472rdos*) 11473 dynamic_linker=no 11474 ;; 11475 11476solaris*) 11477 version_type=linux 11478 need_lib_prefix=no 11479 need_version=no 11480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11481 soname_spec='${libname}${release}${shared_ext}$major' 11482 shlibpath_var=LD_LIBRARY_PATH 11483 shlibpath_overrides_runpath=yes 11484 hardcode_into_libs=yes 11485 # ldd complains unless libraries are executable 11486 postinstall_cmds='chmod +x $lib' 11487 ;; 11488 11489sunos4*) 11490 version_type=sunos 11491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11492 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11493 shlibpath_var=LD_LIBRARY_PATH 11494 shlibpath_overrides_runpath=yes 11495 if test "$with_gnu_ld" = yes; then 11496 need_lib_prefix=no 11497 fi 11498 need_version=yes 11499 ;; 11500 11501sysv4 | sysv4.3*) 11502 version_type=linux 11503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11504 soname_spec='${libname}${release}${shared_ext}$major' 11505 shlibpath_var=LD_LIBRARY_PATH 11506 case $host_vendor in 11507 sni) 11508 shlibpath_overrides_runpath=no 11509 need_lib_prefix=no 11510 runpath_var=LD_RUN_PATH 11511 ;; 11512 siemens) 11513 need_lib_prefix=no 11514 ;; 11515 motorola) 11516 need_lib_prefix=no 11517 need_version=no 11518 shlibpath_overrides_runpath=no 11519 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11520 ;; 11521 esac 11522 ;; 11523 11524sysv4*MP*) 11525 if test -d /usr/nec ;then 11526 version_type=linux 11527 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11528 soname_spec='$libname${shared_ext}.$major' 11529 shlibpath_var=LD_LIBRARY_PATH 11530 fi 11531 ;; 11532 11533sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11534 version_type=freebsd-elf 11535 need_lib_prefix=no 11536 need_version=no 11537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11538 soname_spec='${libname}${release}${shared_ext}$major' 11539 shlibpath_var=LD_LIBRARY_PATH 11540 shlibpath_overrides_runpath=yes 11541 hardcode_into_libs=yes 11542 if test "$with_gnu_ld" = yes; then 11543 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11544 else 11545 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11546 case $host_os in 11547 sco3.2v5*) 11548 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11549 ;; 11550 esac 11551 fi 11552 sys_lib_dlsearch_path_spec='/usr/lib' 11553 ;; 11554 11555tpf*) 11556 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11557 version_type=linux 11558 need_lib_prefix=no 11559 need_version=no 11560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11561 shlibpath_var=LD_LIBRARY_PATH 11562 shlibpath_overrides_runpath=no 11563 hardcode_into_libs=yes 11564 ;; 11565 11566uts4*) 11567 version_type=linux 11568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11569 soname_spec='${libname}${release}${shared_ext}$major' 11570 shlibpath_var=LD_LIBRARY_PATH 11571 ;; 11572 11573*) 11574 dynamic_linker=no 11575 ;; 11576esac 11577{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11578$as_echo "$dynamic_linker" >&6; } 11579test "$dynamic_linker" = no && can_build_shared=no 11580 11581variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11582if test "$GCC" = yes; then 11583 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11584fi 11585 11586if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11587 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11588fi 11589if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11590 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11591fi 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 11680$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11681hardcode_action= 11682if test -n "$hardcode_libdir_flag_spec" || 11683 test -n "$runpath_var" || 11684 test "X$hardcode_automatic" = "Xyes" ; then 11685 11686 # We can hardcode non-existent directories. 11687 if test "$hardcode_direct" != no && 11688 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11689 # have to relink, otherwise we might link with an installed library 11690 # when we should be linking with a yet-to-be-installed one 11691 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11692 test "$hardcode_minus_L" != no; then 11693 # Linking always hardcodes the temporary library directory. 11694 hardcode_action=relink 11695 else 11696 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11697 hardcode_action=immediate 11698 fi 11699else 11700 # We cannot hardcode anything, or else we can only hardcode existing 11701 # directories. 11702 hardcode_action=unsupported 11703fi 11704{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 11705$as_echo "$hardcode_action" >&6; } 11706 11707if test "$hardcode_action" = relink || 11708 test "$inherit_rpath" = yes; then 11709 # Fast installation is not supported 11710 enable_fast_install=no 11711elif test "$shlibpath_overrides_runpath" = yes || 11712 test "$enable_shared" = no; then 11713 # Fast installation is not necessary 11714 enable_fast_install=needless 11715fi 11716 11717 11718 11719 11720 11721 11722 if test "x$enable_dlopen" != xyes; then 11723 enable_dlopen=unknown 11724 enable_dlopen_self=unknown 11725 enable_dlopen_self_static=unknown 11726else 11727 lt_cv_dlopen=no 11728 lt_cv_dlopen_libs= 11729 11730 case $host_os in 11731 beos*) 11732 lt_cv_dlopen="load_add_on" 11733 lt_cv_dlopen_libs= 11734 lt_cv_dlopen_self=yes 11735 ;; 11736 11737 mingw* | pw32* | cegcc*) 11738 lt_cv_dlopen="LoadLibrary" 11739 lt_cv_dlopen_libs= 11740 ;; 11741 11742 cygwin*) 11743 lt_cv_dlopen="dlopen" 11744 lt_cv_dlopen_libs= 11745 ;; 11746 11747 darwin*) 11748 # if libdl is installed we need to link against it 11749 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11750$as_echo_n "checking for dlopen in -ldl... " >&6; } 11751if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11752 $as_echo_n "(cached) " >&6 11753else 11754 ac_check_lib_save_LIBS=$LIBS 11755LIBS="-ldl $LIBS" 11756cat >conftest.$ac_ext <<_ACEOF 11757/* confdefs.h. */ 11758_ACEOF 11759cat confdefs.h >>conftest.$ac_ext 11760cat >>conftest.$ac_ext <<_ACEOF 11761/* end confdefs.h. */ 11762 11763/* Override any GCC internal prototype to avoid an error. 11764 Use char because int might match the return type of a GCC 11765 builtin and then its argument prototype would still apply. */ 11766#ifdef __cplusplus 11767extern "C" 11768#endif 11769char dlopen (); 11770int 11771main () 11772{ 11773return dlopen (); 11774 ; 11775 return 0; 11776} 11777_ACEOF 11778rm -f conftest.$ac_objext conftest$ac_exeext 11779if { (ac_try="$ac_link" 11780case "(($ac_try" in 11781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11782 *) ac_try_echo=$ac_try;; 11783esac 11784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11785$as_echo "$ac_try_echo") >&5 11786 (eval "$ac_link") 2>conftest.er1 11787 ac_status=$? 11788 grep -v '^ *+' conftest.er1 >conftest.err 11789 rm -f conftest.er1 11790 cat conftest.err >&5 11791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11792 (exit $ac_status); } && { 11793 test -z "$ac_c_werror_flag" || 11794 test ! -s conftest.err 11795 } && test -s conftest$ac_exeext && { 11796 test "$cross_compiling" = yes || 11797 $as_test_x conftest$ac_exeext 11798 }; then 11799 ac_cv_lib_dl_dlopen=yes 11800else 11801 $as_echo "$as_me: failed program was:" >&5 11802sed 's/^/| /' conftest.$ac_ext >&5 11803 11804 ac_cv_lib_dl_dlopen=no 11805fi 11806 11807rm -rf conftest.dSYM 11808rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11809 conftest$ac_exeext conftest.$ac_ext 11810LIBS=$ac_check_lib_save_LIBS 11811fi 11812{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11813$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11814if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 11815 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11816else 11817 11818 lt_cv_dlopen="dyld" 11819 lt_cv_dlopen_libs= 11820 lt_cv_dlopen_self=yes 11821 11822fi 11823 11824 ;; 11825 11826 *) 11827 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 11828$as_echo_n "checking for shl_load... " >&6; } 11829if test "${ac_cv_func_shl_load+set}" = set; then 11830 $as_echo_n "(cached) " >&6 11831else 11832 cat >conftest.$ac_ext <<_ACEOF 11833/* confdefs.h. */ 11834_ACEOF 11835cat confdefs.h >>conftest.$ac_ext 11836cat >>conftest.$ac_ext <<_ACEOF 11837/* end confdefs.h. */ 11838/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11839 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11840#define shl_load innocuous_shl_load 11841 11842/* System header to define __stub macros and hopefully few prototypes, 11843 which can conflict with char shl_load (); below. 11844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11845 <limits.h> exists even on freestanding compilers. */ 11846 11847#ifdef __STDC__ 11848# include <limits.h> 11849#else 11850# include <assert.h> 11851#endif 11852 11853#undef shl_load 11854 11855/* Override any GCC internal prototype to avoid an error. 11856 Use char because int might match the return type of a GCC 11857 builtin and then its argument prototype would still apply. */ 11858#ifdef __cplusplus 11859extern "C" 11860#endif 11861char shl_load (); 11862/* The GNU C library defines this for functions which it implements 11863 to always fail with ENOSYS. Some functions are actually named 11864 something starting with __ and the normal name is an alias. */ 11865#if defined __stub_shl_load || defined __stub___shl_load 11866choke me 11867#endif 11868 11869int 11870main () 11871{ 11872return shl_load (); 11873 ; 11874 return 0; 11875} 11876_ACEOF 11877rm -f conftest.$ac_objext conftest$ac_exeext 11878if { (ac_try="$ac_link" 11879case "(($ac_try" in 11880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11881 *) ac_try_echo=$ac_try;; 11882esac 11883eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11884$as_echo "$ac_try_echo") >&5 11885 (eval "$ac_link") 2>conftest.er1 11886 ac_status=$? 11887 grep -v '^ *+' conftest.er1 >conftest.err 11888 rm -f conftest.er1 11889 cat conftest.err >&5 11890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11891 (exit $ac_status); } && { 11892 test -z "$ac_c_werror_flag" || 11893 test ! -s conftest.err 11894 } && test -s conftest$ac_exeext && { 11895 test "$cross_compiling" = yes || 11896 $as_test_x conftest$ac_exeext 11897 }; then 11898 ac_cv_func_shl_load=yes 11899else 11900 $as_echo "$as_me: failed program was:" >&5 11901sed 's/^/| /' conftest.$ac_ext >&5 11902 11903 ac_cv_func_shl_load=no 11904fi 11905 11906rm -rf conftest.dSYM 11907rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11908 conftest$ac_exeext conftest.$ac_ext 11909fi 11910{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11911$as_echo "$ac_cv_func_shl_load" >&6; } 11912if test "x$ac_cv_func_shl_load" = x""yes; then 11913 lt_cv_dlopen="shl_load" 11914else 11915 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11916$as_echo_n "checking for shl_load in -ldld... " >&6; } 11917if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11918 $as_echo_n "(cached) " >&6 11919else 11920 ac_check_lib_save_LIBS=$LIBS 11921LIBS="-ldld $LIBS" 11922cat >conftest.$ac_ext <<_ACEOF 11923/* confdefs.h. */ 11924_ACEOF 11925cat confdefs.h >>conftest.$ac_ext 11926cat >>conftest.$ac_ext <<_ACEOF 11927/* end confdefs.h. */ 11928 11929/* Override any GCC internal prototype to avoid an error. 11930 Use char because int might match the return type of a GCC 11931 builtin and then its argument prototype would still apply. */ 11932#ifdef __cplusplus 11933extern "C" 11934#endif 11935char shl_load (); 11936int 11937main () 11938{ 11939return shl_load (); 11940 ; 11941 return 0; 11942} 11943_ACEOF 11944rm -f conftest.$ac_objext conftest$ac_exeext 11945if { (ac_try="$ac_link" 11946case "(($ac_try" in 11947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11948 *) ac_try_echo=$ac_try;; 11949esac 11950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11951$as_echo "$ac_try_echo") >&5 11952 (eval "$ac_link") 2>conftest.er1 11953 ac_status=$? 11954 grep -v '^ *+' conftest.er1 >conftest.err 11955 rm -f conftest.er1 11956 cat conftest.err >&5 11957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11958 (exit $ac_status); } && { 11959 test -z "$ac_c_werror_flag" || 11960 test ! -s conftest.err 11961 } && test -s conftest$ac_exeext && { 11962 test "$cross_compiling" = yes || 11963 $as_test_x conftest$ac_exeext 11964 }; then 11965 ac_cv_lib_dld_shl_load=yes 11966else 11967 $as_echo "$as_me: failed program was:" >&5 11968sed 's/^/| /' conftest.$ac_ext >&5 11969 11970 ac_cv_lib_dld_shl_load=no 11971fi 11972 11973rm -rf conftest.dSYM 11974rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11975 conftest$ac_exeext conftest.$ac_ext 11976LIBS=$ac_check_lib_save_LIBS 11977fi 11978{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11979$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11980if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 11981 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11982else 11983 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 11984$as_echo_n "checking for dlopen... " >&6; } 11985if test "${ac_cv_func_dlopen+set}" = set; then 11986 $as_echo_n "(cached) " >&6 11987else 11988 cat >conftest.$ac_ext <<_ACEOF 11989/* confdefs.h. */ 11990_ACEOF 11991cat confdefs.h >>conftest.$ac_ext 11992cat >>conftest.$ac_ext <<_ACEOF 11993/* end confdefs.h. */ 11994/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11995 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11996#define dlopen innocuous_dlopen 11997 11998/* System header to define __stub macros and hopefully few prototypes, 11999 which can conflict with char dlopen (); below. 12000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12001 <limits.h> exists even on freestanding compilers. */ 12002 12003#ifdef __STDC__ 12004# include <limits.h> 12005#else 12006# include <assert.h> 12007#endif 12008 12009#undef dlopen 12010 12011/* Override any GCC internal prototype to avoid an error. 12012 Use char because int might match the return type of a GCC 12013 builtin and then its argument prototype would still apply. */ 12014#ifdef __cplusplus 12015extern "C" 12016#endif 12017char dlopen (); 12018/* The GNU C library defines this for functions which it implements 12019 to always fail with ENOSYS. Some functions are actually named 12020 something starting with __ and the normal name is an alias. */ 12021#if defined __stub_dlopen || defined __stub___dlopen 12022choke me 12023#endif 12024 12025int 12026main () 12027{ 12028return dlopen (); 12029 ; 12030 return 0; 12031} 12032_ACEOF 12033rm -f conftest.$ac_objext conftest$ac_exeext 12034if { (ac_try="$ac_link" 12035case "(($ac_try" in 12036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12037 *) ac_try_echo=$ac_try;; 12038esac 12039eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12040$as_echo "$ac_try_echo") >&5 12041 (eval "$ac_link") 2>conftest.er1 12042 ac_status=$? 12043 grep -v '^ *+' conftest.er1 >conftest.err 12044 rm -f conftest.er1 12045 cat conftest.err >&5 12046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12047 (exit $ac_status); } && { 12048 test -z "$ac_c_werror_flag" || 12049 test ! -s conftest.err 12050 } && test -s conftest$ac_exeext && { 12051 test "$cross_compiling" = yes || 12052 $as_test_x conftest$ac_exeext 12053 }; then 12054 ac_cv_func_dlopen=yes 12055else 12056 $as_echo "$as_me: failed program was:" >&5 12057sed 's/^/| /' conftest.$ac_ext >&5 12058 12059 ac_cv_func_dlopen=no 12060fi 12061 12062rm -rf conftest.dSYM 12063rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12064 conftest$ac_exeext conftest.$ac_ext 12065fi 12066{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 12067$as_echo "$ac_cv_func_dlopen" >&6; } 12068if test "x$ac_cv_func_dlopen" = x""yes; then 12069 lt_cv_dlopen="dlopen" 12070else 12071 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12072$as_echo_n "checking for dlopen in -ldl... " >&6; } 12073if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12074 $as_echo_n "(cached) " >&6 12075else 12076 ac_check_lib_save_LIBS=$LIBS 12077LIBS="-ldl $LIBS" 12078cat >conftest.$ac_ext <<_ACEOF 12079/* confdefs.h. */ 12080_ACEOF 12081cat confdefs.h >>conftest.$ac_ext 12082cat >>conftest.$ac_ext <<_ACEOF 12083/* end confdefs.h. */ 12084 12085/* Override any GCC internal prototype to avoid an error. 12086 Use char because int might match the return type of a GCC 12087 builtin and then its argument prototype would still apply. */ 12088#ifdef __cplusplus 12089extern "C" 12090#endif 12091char dlopen (); 12092int 12093main () 12094{ 12095return dlopen (); 12096 ; 12097 return 0; 12098} 12099_ACEOF 12100rm -f conftest.$ac_objext conftest$ac_exeext 12101if { (ac_try="$ac_link" 12102case "(($ac_try" in 12103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12104 *) ac_try_echo=$ac_try;; 12105esac 12106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12107$as_echo "$ac_try_echo") >&5 12108 (eval "$ac_link") 2>conftest.er1 12109 ac_status=$? 12110 grep -v '^ *+' conftest.er1 >conftest.err 12111 rm -f conftest.er1 12112 cat conftest.err >&5 12113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12114 (exit $ac_status); } && { 12115 test -z "$ac_c_werror_flag" || 12116 test ! -s conftest.err 12117 } && test -s conftest$ac_exeext && { 12118 test "$cross_compiling" = yes || 12119 $as_test_x conftest$ac_exeext 12120 }; then 12121 ac_cv_lib_dl_dlopen=yes 12122else 12123 $as_echo "$as_me: failed program was:" >&5 12124sed 's/^/| /' conftest.$ac_ext >&5 12125 12126 ac_cv_lib_dl_dlopen=no 12127fi 12128 12129rm -rf conftest.dSYM 12130rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12131 conftest$ac_exeext conftest.$ac_ext 12132LIBS=$ac_check_lib_save_LIBS 12133fi 12134{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12135$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12136if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 12137 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12138else 12139 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 12140$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12141if test "${ac_cv_lib_svld_dlopen+set}" = set; then 12142 $as_echo_n "(cached) " >&6 12143else 12144 ac_check_lib_save_LIBS=$LIBS 12145LIBS="-lsvld $LIBS" 12146cat >conftest.$ac_ext <<_ACEOF 12147/* confdefs.h. */ 12148_ACEOF 12149cat confdefs.h >>conftest.$ac_ext 12150cat >>conftest.$ac_ext <<_ACEOF 12151/* end confdefs.h. */ 12152 12153/* Override any GCC internal prototype to avoid an error. 12154 Use char because int might match the return type of a GCC 12155 builtin and then its argument prototype would still apply. */ 12156#ifdef __cplusplus 12157extern "C" 12158#endif 12159char dlopen (); 12160int 12161main () 12162{ 12163return dlopen (); 12164 ; 12165 return 0; 12166} 12167_ACEOF 12168rm -f conftest.$ac_objext conftest$ac_exeext 12169if { (ac_try="$ac_link" 12170case "(($ac_try" in 12171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12172 *) ac_try_echo=$ac_try;; 12173esac 12174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12175$as_echo "$ac_try_echo") >&5 12176 (eval "$ac_link") 2>conftest.er1 12177 ac_status=$? 12178 grep -v '^ *+' conftest.er1 >conftest.err 12179 rm -f conftest.er1 12180 cat conftest.err >&5 12181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12182 (exit $ac_status); } && { 12183 test -z "$ac_c_werror_flag" || 12184 test ! -s conftest.err 12185 } && test -s conftest$ac_exeext && { 12186 test "$cross_compiling" = yes || 12187 $as_test_x conftest$ac_exeext 12188 }; then 12189 ac_cv_lib_svld_dlopen=yes 12190else 12191 $as_echo "$as_me: failed program was:" >&5 12192sed 's/^/| /' conftest.$ac_ext >&5 12193 12194 ac_cv_lib_svld_dlopen=no 12195fi 12196 12197rm -rf conftest.dSYM 12198rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12199 conftest$ac_exeext conftest.$ac_ext 12200LIBS=$ac_check_lib_save_LIBS 12201fi 12202{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 12203$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12204if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 12205 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12206else 12207 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 12208$as_echo_n "checking for dld_link in -ldld... " >&6; } 12209if test "${ac_cv_lib_dld_dld_link+set}" = set; then 12210 $as_echo_n "(cached) " >&6 12211else 12212 ac_check_lib_save_LIBS=$LIBS 12213LIBS="-ldld $LIBS" 12214cat >conftest.$ac_ext <<_ACEOF 12215/* confdefs.h. */ 12216_ACEOF 12217cat confdefs.h >>conftest.$ac_ext 12218cat >>conftest.$ac_ext <<_ACEOF 12219/* end confdefs.h. */ 12220 12221/* Override any GCC internal prototype to avoid an error. 12222 Use char because int might match the return type of a GCC 12223 builtin and then its argument prototype would still apply. */ 12224#ifdef __cplusplus 12225extern "C" 12226#endif 12227char dld_link (); 12228int 12229main () 12230{ 12231return dld_link (); 12232 ; 12233 return 0; 12234} 12235_ACEOF 12236rm -f conftest.$ac_objext conftest$ac_exeext 12237if { (ac_try="$ac_link" 12238case "(($ac_try" in 12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12240 *) ac_try_echo=$ac_try;; 12241esac 12242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12243$as_echo "$ac_try_echo") >&5 12244 (eval "$ac_link") 2>conftest.er1 12245 ac_status=$? 12246 grep -v '^ *+' conftest.er1 >conftest.err 12247 rm -f conftest.er1 12248 cat conftest.err >&5 12249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12250 (exit $ac_status); } && { 12251 test -z "$ac_c_werror_flag" || 12252 test ! -s conftest.err 12253 } && test -s conftest$ac_exeext && { 12254 test "$cross_compiling" = yes || 12255 $as_test_x conftest$ac_exeext 12256 }; then 12257 ac_cv_lib_dld_dld_link=yes 12258else 12259 $as_echo "$as_me: failed program was:" >&5 12260sed 's/^/| /' conftest.$ac_ext >&5 12261 12262 ac_cv_lib_dld_dld_link=no 12263fi 12264 12265rm -rf conftest.dSYM 12266rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12267 conftest$ac_exeext conftest.$ac_ext 12268LIBS=$ac_check_lib_save_LIBS 12269fi 12270{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 12271$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12272if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 12273 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12274fi 12275 12276 12277fi 12278 12279 12280fi 12281 12282 12283fi 12284 12285 12286fi 12287 12288 12289fi 12290 12291 ;; 12292 esac 12293 12294 if test "x$lt_cv_dlopen" != xno; then 12295 enable_dlopen=yes 12296 else 12297 enable_dlopen=no 12298 fi 12299 12300 case $lt_cv_dlopen in 12301 dlopen) 12302 save_CPPFLAGS="$CPPFLAGS" 12303 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12304 12305 save_LDFLAGS="$LDFLAGS" 12306 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12307 12308 save_LIBS="$LIBS" 12309 LIBS="$lt_cv_dlopen_libs $LIBS" 12310 12311 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12312$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12313if test "${lt_cv_dlopen_self+set}" = set; then 12314 $as_echo_n "(cached) " >&6 12315else 12316 if test "$cross_compiling" = yes; then : 12317 lt_cv_dlopen_self=cross 12318else 12319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12320 lt_status=$lt_dlunknown 12321 cat > conftest.$ac_ext <<_LT_EOF 12322#line 12322 "configure" 12323#include "confdefs.h" 12324 12325#if HAVE_DLFCN_H 12326#include <dlfcn.h> 12327#endif 12328 12329#include <stdio.h> 12330 12331#ifdef RTLD_GLOBAL 12332# define LT_DLGLOBAL RTLD_GLOBAL 12333#else 12334# ifdef DL_GLOBAL 12335# define LT_DLGLOBAL DL_GLOBAL 12336# else 12337# define LT_DLGLOBAL 0 12338# endif 12339#endif 12340 12341/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12342 find out it does not work in some platform. */ 12343#ifndef LT_DLLAZY_OR_NOW 12344# ifdef RTLD_LAZY 12345# define LT_DLLAZY_OR_NOW RTLD_LAZY 12346# else 12347# ifdef DL_LAZY 12348# define LT_DLLAZY_OR_NOW DL_LAZY 12349# else 12350# ifdef RTLD_NOW 12351# define LT_DLLAZY_OR_NOW RTLD_NOW 12352# else 12353# ifdef DL_NOW 12354# define LT_DLLAZY_OR_NOW DL_NOW 12355# else 12356# define LT_DLLAZY_OR_NOW 0 12357# endif 12358# endif 12359# endif 12360# endif 12361#endif 12362 12363void fnord() { int i=42;} 12364int main () 12365{ 12366 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12367 int status = $lt_dlunknown; 12368 12369 if (self) 12370 { 12371 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12372 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12373 /* dlclose (self); */ 12374 } 12375 else 12376 puts (dlerror ()); 12377 12378 return status; 12379} 12380_LT_EOF 12381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12382 (eval $ac_link) 2>&5 12383 ac_status=$? 12384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12385 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12386 (./conftest; exit; ) >&5 2>/dev/null 12387 lt_status=$? 12388 case x$lt_status in 12389 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12390 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12391 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12392 esac 12393 else : 12394 # compilation failed 12395 lt_cv_dlopen_self=no 12396 fi 12397fi 12398rm -fr conftest* 12399 12400 12401fi 12402{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12403$as_echo "$lt_cv_dlopen_self" >&6; } 12404 12405 if test "x$lt_cv_dlopen_self" = xyes; then 12406 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12407 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12408$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12409if test "${lt_cv_dlopen_self_static+set}" = set; then 12410 $as_echo_n "(cached) " >&6 12411else 12412 if test "$cross_compiling" = yes; then : 12413 lt_cv_dlopen_self_static=cross 12414else 12415 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12416 lt_status=$lt_dlunknown 12417 cat > conftest.$ac_ext <<_LT_EOF 12418#line 12418 "configure" 12419#include "confdefs.h" 12420 12421#if HAVE_DLFCN_H 12422#include <dlfcn.h> 12423#endif 12424 12425#include <stdio.h> 12426 12427#ifdef RTLD_GLOBAL 12428# define LT_DLGLOBAL RTLD_GLOBAL 12429#else 12430# ifdef DL_GLOBAL 12431# define LT_DLGLOBAL DL_GLOBAL 12432# else 12433# define LT_DLGLOBAL 0 12434# endif 12435#endif 12436 12437/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12438 find out it does not work in some platform. */ 12439#ifndef LT_DLLAZY_OR_NOW 12440# ifdef RTLD_LAZY 12441# define LT_DLLAZY_OR_NOW RTLD_LAZY 12442# else 12443# ifdef DL_LAZY 12444# define LT_DLLAZY_OR_NOW DL_LAZY 12445# else 12446# ifdef RTLD_NOW 12447# define LT_DLLAZY_OR_NOW RTLD_NOW 12448# else 12449# ifdef DL_NOW 12450# define LT_DLLAZY_OR_NOW DL_NOW 12451# else 12452# define LT_DLLAZY_OR_NOW 0 12453# endif 12454# endif 12455# endif 12456# endif 12457#endif 12458 12459void fnord() { int i=42;} 12460int main () 12461{ 12462 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12463 int status = $lt_dlunknown; 12464 12465 if (self) 12466 { 12467 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12468 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12469 /* dlclose (self); */ 12470 } 12471 else 12472 puts (dlerror ()); 12473 12474 return status; 12475} 12476_LT_EOF 12477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12478 (eval $ac_link) 2>&5 12479 ac_status=$? 12480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12481 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12482 (./conftest; exit; ) >&5 2>/dev/null 12483 lt_status=$? 12484 case x$lt_status in 12485 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12486 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12487 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12488 esac 12489 else : 12490 # compilation failed 12491 lt_cv_dlopen_self_static=no 12492 fi 12493fi 12494rm -fr conftest* 12495 12496 12497fi 12498{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 12499$as_echo "$lt_cv_dlopen_self_static" >&6; } 12500 fi 12501 12502 CPPFLAGS="$save_CPPFLAGS" 12503 LDFLAGS="$save_LDFLAGS" 12504 LIBS="$save_LIBS" 12505 ;; 12506 esac 12507 12508 case $lt_cv_dlopen_self in 12509 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12510 *) enable_dlopen_self=unknown ;; 12511 esac 12512 12513 case $lt_cv_dlopen_self_static in 12514 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12515 *) enable_dlopen_self_static=unknown ;; 12516 esac 12517fi 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535striplib= 12536old_striplib= 12537{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 12538$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12539if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12540 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12541 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12542 { $as_echo "$as_me:$LINENO: result: yes" >&5 12543$as_echo "yes" >&6; } 12544else 12545# FIXME - insert some real tests, host_os isn't really good enough 12546 case $host_os in 12547 darwin*) 12548 if test -n "$STRIP" ; then 12549 striplib="$STRIP -x" 12550 old_striplib="$STRIP -S" 12551 { $as_echo "$as_me:$LINENO: result: yes" >&5 12552$as_echo "yes" >&6; } 12553 else 12554 { $as_echo "$as_me:$LINENO: result: no" >&5 12555$as_echo "no" >&6; } 12556 fi 12557 ;; 12558 *) 12559 { $as_echo "$as_me:$LINENO: result: no" >&5 12560$as_echo "no" >&6; } 12561 ;; 12562 esac 12563fi 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 # Report which library types will actually be built 12577 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12578$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12579 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 12580$as_echo "$can_build_shared" >&6; } 12581 12582 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12583$as_echo_n "checking whether to build shared libraries... " >&6; } 12584 test "$can_build_shared" = "no" && enable_shared=no 12585 12586 # On AIX, shared libraries and static libraries use the same namespace, and 12587 # are all built from PIC. 12588 case $host_os in 12589 aix3*) 12590 test "$enable_shared" = yes && enable_static=no 12591 if test -n "$RANLIB"; then 12592 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12593 postinstall_cmds='$RANLIB $lib' 12594 fi 12595 ;; 12596 12597 aix[4-9]*) 12598 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12599 test "$enable_shared" = yes && enable_static=no 12600 fi 12601 ;; 12602 esac 12603 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 12604$as_echo "$enable_shared" >&6; } 12605 12606 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 12607$as_echo_n "checking whether to build static libraries... " >&6; } 12608 # Make sure either enable_shared or enable_static is yes. 12609 test "$enable_shared" = yes || enable_static=yes 12610 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 12611$as_echo "$enable_static" >&6; } 12612 12613 12614 12615 12616fi 12617ac_ext=c 12618ac_cpp='$CPP $CPPFLAGS' 12619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12621ac_compiler_gnu=$ac_cv_c_compiler_gnu 12622 12623CC="$lt_save_CC" 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 ac_config_commands="$ac_config_commands libtool" 12638 12639 12640 12641 12642# Only expand once: 12643 12644 12645 12646pciids_path=/usr/share/hwdata 12647 12648# Check whether --with-pciids-path was given. 12649if test "${with_pciids_path+set}" = set; then 12650 withval=$with_pciids_path; pciids_path="$withval" 12651fi 12652 12653 12654 prefix_NONE= 12655 exec_prefix_NONE= 12656 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 12657 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 12658 eval ac_define_dir="\"$pciids_path\"" 12659 eval ac_define_dir="\"$ac_define_dir\"" 12660 PCIIDS_PATH="$ac_define_dir" 12661 12662 12663cat >>confdefs.h <<_ACEOF 12664#define PCIIDS_PATH "$ac_define_dir" 12665_ACEOF 12666 12667 test "$prefix_NONE" && prefix=NONE 12668 test "$exec_prefix_NONE" && exec_prefix=NONE 12669 12670 12671# Check whether --enable-linux-rom-fallback was given. 12672if test "${enable_linux_rom_fallback+set}" = set; then 12673 enableval=$enable_linux_rom_fallback; LINUX_ROM=$enableval 12674else 12675 LINUX_ROM=no 12676fi 12677 12678 12679if test "x$LINUX_ROM" = xyes; then 12680 12681cat >>confdefs.h <<\_ACEOF 12682#define LINUX_ROM 1 12683_ACEOF 12684 12685fi 12686 12687use_zlib=no 12688 12689# Check whether --with-zlib was given. 12690if test "${with_zlib+set}" = set; then 12691 withval=$with_zlib; use_zlib="$withval" 12692fi 12693 12694if test "x$use_zlib" = xyes; then 12695 { $as_echo "$as_me:$LINENO: checking for gzopen in -lz" >&5 12696$as_echo_n "checking for gzopen in -lz... " >&6; } 12697if test "${ac_cv_lib_z_gzopen+set}" = set; then 12698 $as_echo_n "(cached) " >&6 12699else 12700 ac_check_lib_save_LIBS=$LIBS 12701LIBS="-lz $LIBS" 12702cat >conftest.$ac_ext <<_ACEOF 12703/* confdefs.h. */ 12704_ACEOF 12705cat confdefs.h >>conftest.$ac_ext 12706cat >>conftest.$ac_ext <<_ACEOF 12707/* end confdefs.h. */ 12708 12709/* Override any GCC internal prototype to avoid an error. 12710 Use char because int might match the return type of a GCC 12711 builtin and then its argument prototype would still apply. */ 12712#ifdef __cplusplus 12713extern "C" 12714#endif 12715char gzopen (); 12716int 12717main () 12718{ 12719return gzopen (); 12720 ; 12721 return 0; 12722} 12723_ACEOF 12724rm -f conftest.$ac_objext conftest$ac_exeext 12725if { (ac_try="$ac_link" 12726case "(($ac_try" in 12727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12728 *) ac_try_echo=$ac_try;; 12729esac 12730eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12731$as_echo "$ac_try_echo") >&5 12732 (eval "$ac_link") 2>conftest.er1 12733 ac_status=$? 12734 grep -v '^ *+' conftest.er1 >conftest.err 12735 rm -f conftest.er1 12736 cat conftest.err >&5 12737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12738 (exit $ac_status); } && { 12739 test -z "$ac_c_werror_flag" || 12740 test ! -s conftest.err 12741 } && test -s conftest$ac_exeext && { 12742 test "$cross_compiling" = yes || 12743 $as_test_x conftest$ac_exeext 12744 }; then 12745 ac_cv_lib_z_gzopen=yes 12746else 12747 $as_echo "$as_me: failed program was:" >&5 12748sed 's/^/| /' conftest.$ac_ext >&5 12749 12750 ac_cv_lib_z_gzopen=no 12751fi 12752 12753rm -rf conftest.dSYM 12754rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12755 conftest$ac_exeext conftest.$ac_ext 12756LIBS=$ac_check_lib_save_LIBS 12757fi 12758{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5 12759$as_echo "$ac_cv_lib_z_gzopen" >&6; } 12760if test "x$ac_cv_lib_z_gzopen" = x""yes; then 12761 PCIACCESS_LIBS="$PCIACCESS_LIBS -lz" 12762else 12763 { { $as_echo "$as_me:$LINENO: error: Check for zlib library failed" >&5 12764$as_echo "$as_me: error: Check for zlib library failed" >&2;} 12765 { (exit 1); exit 1; }; } 12766fi 12767 12768 if test "${ac_cv_header_zlib_h+set}" = set; then 12769 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5 12770$as_echo_n "checking for zlib.h... " >&6; } 12771if test "${ac_cv_header_zlib_h+set}" = set; then 12772 $as_echo_n "(cached) " >&6 12773fi 12774{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 12775$as_echo "$ac_cv_header_zlib_h" >&6; } 12776else 12777 # Is the header compilable? 12778{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5 12779$as_echo_n "checking zlib.h usability... " >&6; } 12780cat >conftest.$ac_ext <<_ACEOF 12781/* confdefs.h. */ 12782_ACEOF 12783cat confdefs.h >>conftest.$ac_ext 12784cat >>conftest.$ac_ext <<_ACEOF 12785/* end confdefs.h. */ 12786$ac_includes_default 12787#include <zlib.h> 12788_ACEOF 12789rm -f conftest.$ac_objext 12790if { (ac_try="$ac_compile" 12791case "(($ac_try" in 12792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12793 *) ac_try_echo=$ac_try;; 12794esac 12795eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12796$as_echo "$ac_try_echo") >&5 12797 (eval "$ac_compile") 2>conftest.er1 12798 ac_status=$? 12799 grep -v '^ *+' conftest.er1 >conftest.err 12800 rm -f conftest.er1 12801 cat conftest.err >&5 12802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12803 (exit $ac_status); } && { 12804 test -z "$ac_c_werror_flag" || 12805 test ! -s conftest.err 12806 } && test -s conftest.$ac_objext; then 12807 ac_header_compiler=yes 12808else 12809 $as_echo "$as_me: failed program was:" >&5 12810sed 's/^/| /' conftest.$ac_ext >&5 12811 12812 ac_header_compiler=no 12813fi 12814 12815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12816{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12817$as_echo "$ac_header_compiler" >&6; } 12818 12819# Is the header present? 12820{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5 12821$as_echo_n "checking zlib.h presence... " >&6; } 12822cat >conftest.$ac_ext <<_ACEOF 12823/* confdefs.h. */ 12824_ACEOF 12825cat confdefs.h >>conftest.$ac_ext 12826cat >>conftest.$ac_ext <<_ACEOF 12827/* end confdefs.h. */ 12828#include <zlib.h> 12829_ACEOF 12830if { (ac_try="$ac_cpp conftest.$ac_ext" 12831case "(($ac_try" in 12832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12833 *) ac_try_echo=$ac_try;; 12834esac 12835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12836$as_echo "$ac_try_echo") >&5 12837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12838 ac_status=$? 12839 grep -v '^ *+' conftest.er1 >conftest.err 12840 rm -f conftest.er1 12841 cat conftest.err >&5 12842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12843 (exit $ac_status); } >/dev/null && { 12844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12845 test ! -s conftest.err 12846 }; then 12847 ac_header_preproc=yes 12848else 12849 $as_echo "$as_me: failed program was:" >&5 12850sed 's/^/| /' conftest.$ac_ext >&5 12851 12852 ac_header_preproc=no 12853fi 12854 12855rm -f conftest.err conftest.$ac_ext 12856{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12857$as_echo "$ac_header_preproc" >&6; } 12858 12859# So? What about this header? 12860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12861 yes:no: ) 12862 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 12863$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 12864 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 12865$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} 12866 ac_header_preproc=yes 12867 ;; 12868 no:yes:* ) 12869 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 12870$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} 12871 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 12872$as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} 12873 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 12874$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} 12875 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 12876$as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 12877 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 12878$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} 12879 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 12880$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} 12881 ( cat <<\_ASBOX 12882## --------------------------------------------------------------------------------------------- ## 12883## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess ## 12884## --------------------------------------------------------------------------------------------- ## 12885_ASBOX 12886 ) | sed "s/^/$as_me: WARNING: /" >&2 12887 ;; 12888esac 12889{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5 12890$as_echo_n "checking for zlib.h... " >&6; } 12891if test "${ac_cv_header_zlib_h+set}" = set; then 12892 $as_echo_n "(cached) " >&6 12893else 12894 ac_cv_header_zlib_h=$ac_header_preproc 12895fi 12896{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 12897$as_echo "$ac_cv_header_zlib_h" >&6; } 12898 12899fi 12900if test "x$ac_cv_header_zlib_h" = x""yes; then 12901 12902cat >>confdefs.h <<\_ACEOF 12903#define HAVE_ZLIB 1 12904_ACEOF 12905 12906else 12907 { { $as_echo "$as_me:$LINENO: error: Check for zlib.h header file failed" >&5 12908$as_echo "$as_me: error: Check for zlib.h header file failed" >&2;} 12909 { (exit 1); exit 1; }; } 12910fi 12911 12912 12913fi 12914 12915case $host_os in 12916 *freebsd* | *dragonfly*) 12917 freebsd=yes 12918 ;; 12919 *linux*) 12920 linux=yes 12921 ;; 12922 *netbsd*) 12923 case $host in 12924 *i386*) 12925 PCIACCESS_LIBS="-li386" 12926 ;; 12927 *x86_64*|*amd64*) 12928 PCIACCESS_LIBS="-lx86_64" 12929 ;; 12930 esac 12931 netbsd=yes 12932 ;; 12933 *openbsd*) 12934 openbsd=yes 12935 ;; 12936 *solaris*) 12937 solaris=yes 12938 PCIACCESS_LIBS="$PCIACCESS_LIBS -ldevinfo" 12939 ;; 12940esac 12941 12942 if test "x$linux" = xyes; then 12943 LINUX_TRUE= 12944 LINUX_FALSE='#' 12945else 12946 LINUX_TRUE='#' 12947 LINUX_FALSE= 12948fi 12949 12950 if test "x$freebsd" = xyes; then 12951 FREEBSD_TRUE= 12952 FREEBSD_FALSE='#' 12953else 12954 FREEBSD_TRUE='#' 12955 FREEBSD_FALSE= 12956fi 12957 12958 if test "x$netbsd" = xyes; then 12959 NETBSD_TRUE= 12960 NETBSD_FALSE='#' 12961else 12962 NETBSD_TRUE='#' 12963 NETBSD_FALSE= 12964fi 12965 12966 if test "x$openbsd" = xyes; then 12967 OPENBSD_TRUE= 12968 OPENBSD_FALSE='#' 12969else 12970 OPENBSD_TRUE='#' 12971 OPENBSD_FALSE= 12972fi 12973 12974 if test "x$solaris" = xyes; then 12975 SOLARIS_TRUE= 12976 SOLARIS_FALSE='#' 12977else 12978 SOLARIS_TRUE='#' 12979 SOLARIS_FALSE= 12980fi 12981 12982 12983# Check whether --enable-largefile was given. 12984if test "${enable_largefile+set}" = set; then 12985 enableval=$enable_largefile; 12986fi 12987 12988if test "$enable_largefile" != no; then 12989 12990 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 12991$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12992if test "${ac_cv_sys_largefile_CC+set}" = set; then 12993 $as_echo_n "(cached) " >&6 12994else 12995 ac_cv_sys_largefile_CC=no 12996 if test "$GCC" != yes; then 12997 ac_save_CC=$CC 12998 while :; do 12999 # IRIX 6.2 and later do not support large files by default, 13000 # so use the C compiler's -n32 option if that helps. 13001 cat >conftest.$ac_ext <<_ACEOF 13002/* confdefs.h. */ 13003_ACEOF 13004cat confdefs.h >>conftest.$ac_ext 13005cat >>conftest.$ac_ext <<_ACEOF 13006/* end confdefs.h. */ 13007#include <sys/types.h> 13008 /* Check that off_t can represent 2**63 - 1 correctly. 13009 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13010 since some C++ compilers masquerading as C compilers 13011 incorrectly reject 9223372036854775807. */ 13012#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13013 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13014 && LARGE_OFF_T % 2147483647 == 1) 13015 ? 1 : -1]; 13016int 13017main () 13018{ 13019 13020 ; 13021 return 0; 13022} 13023_ACEOF 13024 rm -f conftest.$ac_objext 13025if { (ac_try="$ac_compile" 13026case "(($ac_try" in 13027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13028 *) ac_try_echo=$ac_try;; 13029esac 13030eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13031$as_echo "$ac_try_echo") >&5 13032 (eval "$ac_compile") 2>conftest.er1 13033 ac_status=$? 13034 grep -v '^ *+' conftest.er1 >conftest.err 13035 rm -f conftest.er1 13036 cat conftest.err >&5 13037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13038 (exit $ac_status); } && { 13039 test -z "$ac_c_werror_flag" || 13040 test ! -s conftest.err 13041 } && test -s conftest.$ac_objext; then 13042 break 13043else 13044 $as_echo "$as_me: failed program was:" >&5 13045sed 's/^/| /' conftest.$ac_ext >&5 13046 13047 13048fi 13049 13050rm -f core conftest.err conftest.$ac_objext 13051 CC="$CC -n32" 13052 rm -f conftest.$ac_objext 13053if { (ac_try="$ac_compile" 13054case "(($ac_try" in 13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13056 *) ac_try_echo=$ac_try;; 13057esac 13058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13059$as_echo "$ac_try_echo") >&5 13060 (eval "$ac_compile") 2>conftest.er1 13061 ac_status=$? 13062 grep -v '^ *+' conftest.er1 >conftest.err 13063 rm -f conftest.er1 13064 cat conftest.err >&5 13065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13066 (exit $ac_status); } && { 13067 test -z "$ac_c_werror_flag" || 13068 test ! -s conftest.err 13069 } && test -s conftest.$ac_objext; then 13070 ac_cv_sys_largefile_CC=' -n32'; break 13071else 13072 $as_echo "$as_me: failed program was:" >&5 13073sed 's/^/| /' conftest.$ac_ext >&5 13074 13075 13076fi 13077 13078rm -f core conftest.err conftest.$ac_objext 13079 break 13080 done 13081 CC=$ac_save_CC 13082 rm -f conftest.$ac_ext 13083 fi 13084fi 13085{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 13086$as_echo "$ac_cv_sys_largefile_CC" >&6; } 13087 if test "$ac_cv_sys_largefile_CC" != no; then 13088 CC=$CC$ac_cv_sys_largefile_CC 13089 fi 13090 13091 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 13092$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 13093if test "${ac_cv_sys_file_offset_bits+set}" = set; then 13094 $as_echo_n "(cached) " >&6 13095else 13096 while :; do 13097 cat >conftest.$ac_ext <<_ACEOF 13098/* confdefs.h. */ 13099_ACEOF 13100cat confdefs.h >>conftest.$ac_ext 13101cat >>conftest.$ac_ext <<_ACEOF 13102/* end confdefs.h. */ 13103#include <sys/types.h> 13104 /* Check that off_t can represent 2**63 - 1 correctly. 13105 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13106 since some C++ compilers masquerading as C compilers 13107 incorrectly reject 9223372036854775807. */ 13108#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13109 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13110 && LARGE_OFF_T % 2147483647 == 1) 13111 ? 1 : -1]; 13112int 13113main () 13114{ 13115 13116 ; 13117 return 0; 13118} 13119_ACEOF 13120rm -f conftest.$ac_objext 13121if { (ac_try="$ac_compile" 13122case "(($ac_try" in 13123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13124 *) ac_try_echo=$ac_try;; 13125esac 13126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13127$as_echo "$ac_try_echo") >&5 13128 (eval "$ac_compile") 2>conftest.er1 13129 ac_status=$? 13130 grep -v '^ *+' conftest.er1 >conftest.err 13131 rm -f conftest.er1 13132 cat conftest.err >&5 13133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13134 (exit $ac_status); } && { 13135 test -z "$ac_c_werror_flag" || 13136 test ! -s conftest.err 13137 } && test -s conftest.$ac_objext; then 13138 ac_cv_sys_file_offset_bits=no; break 13139else 13140 $as_echo "$as_me: failed program was:" >&5 13141sed 's/^/| /' conftest.$ac_ext >&5 13142 13143 13144fi 13145 13146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13147 cat >conftest.$ac_ext <<_ACEOF 13148/* confdefs.h. */ 13149_ACEOF 13150cat confdefs.h >>conftest.$ac_ext 13151cat >>conftest.$ac_ext <<_ACEOF 13152/* end confdefs.h. */ 13153#define _FILE_OFFSET_BITS 64 13154#include <sys/types.h> 13155 /* Check that off_t can represent 2**63 - 1 correctly. 13156 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13157 since some C++ compilers masquerading as C compilers 13158 incorrectly reject 9223372036854775807. */ 13159#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13160 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13161 && LARGE_OFF_T % 2147483647 == 1) 13162 ? 1 : -1]; 13163int 13164main () 13165{ 13166 13167 ; 13168 return 0; 13169} 13170_ACEOF 13171rm -f conftest.$ac_objext 13172if { (ac_try="$ac_compile" 13173case "(($ac_try" in 13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13175 *) ac_try_echo=$ac_try;; 13176esac 13177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13178$as_echo "$ac_try_echo") >&5 13179 (eval "$ac_compile") 2>conftest.er1 13180 ac_status=$? 13181 grep -v '^ *+' conftest.er1 >conftest.err 13182 rm -f conftest.er1 13183 cat conftest.err >&5 13184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13185 (exit $ac_status); } && { 13186 test -z "$ac_c_werror_flag" || 13187 test ! -s conftest.err 13188 } && test -s conftest.$ac_objext; then 13189 ac_cv_sys_file_offset_bits=64; break 13190else 13191 $as_echo "$as_me: failed program was:" >&5 13192sed 's/^/| /' conftest.$ac_ext >&5 13193 13194 13195fi 13196 13197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13198 ac_cv_sys_file_offset_bits=unknown 13199 break 13200done 13201fi 13202{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 13203$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 13204case $ac_cv_sys_file_offset_bits in #( 13205 no | unknown) ;; 13206 *) 13207cat >>confdefs.h <<_ACEOF 13208#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 13209_ACEOF 13210;; 13211esac 13212rm -rf conftest* 13213 if test $ac_cv_sys_file_offset_bits = unknown; then 13214 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 13215$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 13216if test "${ac_cv_sys_large_files+set}" = set; then 13217 $as_echo_n "(cached) " >&6 13218else 13219 while :; do 13220 cat >conftest.$ac_ext <<_ACEOF 13221/* confdefs.h. */ 13222_ACEOF 13223cat confdefs.h >>conftest.$ac_ext 13224cat >>conftest.$ac_ext <<_ACEOF 13225/* end confdefs.h. */ 13226#include <sys/types.h> 13227 /* Check that off_t can represent 2**63 - 1 correctly. 13228 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13229 since some C++ compilers masquerading as C compilers 13230 incorrectly reject 9223372036854775807. */ 13231#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13232 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13233 && LARGE_OFF_T % 2147483647 == 1) 13234 ? 1 : -1]; 13235int 13236main () 13237{ 13238 13239 ; 13240 return 0; 13241} 13242_ACEOF 13243rm -f conftest.$ac_objext 13244if { (ac_try="$ac_compile" 13245case "(($ac_try" in 13246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13247 *) ac_try_echo=$ac_try;; 13248esac 13249eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13250$as_echo "$ac_try_echo") >&5 13251 (eval "$ac_compile") 2>conftest.er1 13252 ac_status=$? 13253 grep -v '^ *+' conftest.er1 >conftest.err 13254 rm -f conftest.er1 13255 cat conftest.err >&5 13256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13257 (exit $ac_status); } && { 13258 test -z "$ac_c_werror_flag" || 13259 test ! -s conftest.err 13260 } && test -s conftest.$ac_objext; then 13261 ac_cv_sys_large_files=no; break 13262else 13263 $as_echo "$as_me: failed program was:" >&5 13264sed 's/^/| /' conftest.$ac_ext >&5 13265 13266 13267fi 13268 13269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13270 cat >conftest.$ac_ext <<_ACEOF 13271/* confdefs.h. */ 13272_ACEOF 13273cat confdefs.h >>conftest.$ac_ext 13274cat >>conftest.$ac_ext <<_ACEOF 13275/* end confdefs.h. */ 13276#define _LARGE_FILES 1 13277#include <sys/types.h> 13278 /* Check that off_t can represent 2**63 - 1 correctly. 13279 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13280 since some C++ compilers masquerading as C compilers 13281 incorrectly reject 9223372036854775807. */ 13282#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13283 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13284 && LARGE_OFF_T % 2147483647 == 1) 13285 ? 1 : -1]; 13286int 13287main () 13288{ 13289 13290 ; 13291 return 0; 13292} 13293_ACEOF 13294rm -f conftest.$ac_objext 13295if { (ac_try="$ac_compile" 13296case "(($ac_try" in 13297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13298 *) ac_try_echo=$ac_try;; 13299esac 13300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13301$as_echo "$ac_try_echo") >&5 13302 (eval "$ac_compile") 2>conftest.er1 13303 ac_status=$? 13304 grep -v '^ *+' conftest.er1 >conftest.err 13305 rm -f conftest.er1 13306 cat conftest.err >&5 13307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13308 (exit $ac_status); } && { 13309 test -z "$ac_c_werror_flag" || 13310 test ! -s conftest.err 13311 } && test -s conftest.$ac_objext; then 13312 ac_cv_sys_large_files=1; break 13313else 13314 $as_echo "$as_me: failed program was:" >&5 13315sed 's/^/| /' conftest.$ac_ext >&5 13316 13317 13318fi 13319 13320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13321 ac_cv_sys_large_files=unknown 13322 break 13323done 13324fi 13325{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 13326$as_echo "$ac_cv_sys_large_files" >&6; } 13327case $ac_cv_sys_large_files in #( 13328 no | unknown) ;; 13329 *) 13330cat >>confdefs.h <<_ACEOF 13331#define _LARGE_FILES $ac_cv_sys_large_files 13332_ACEOF 13333;; 13334esac 13335rm -rf conftest* 13336 fi 13337fi 13338 13339 13340if test "${ac_cv_header_asm_mtrr_h+set}" = set; then 13341 { $as_echo "$as_me:$LINENO: checking for asm/mtrr.h" >&5 13342$as_echo_n "checking for asm/mtrr.h... " >&6; } 13343if test "${ac_cv_header_asm_mtrr_h+set}" = set; then 13344 $as_echo_n "(cached) " >&6 13345fi 13346{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_asm_mtrr_h" >&5 13347$as_echo "$ac_cv_header_asm_mtrr_h" >&6; } 13348else 13349 # Is the header compilable? 13350{ $as_echo "$as_me:$LINENO: checking asm/mtrr.h usability" >&5 13351$as_echo_n "checking asm/mtrr.h usability... " >&6; } 13352cat >conftest.$ac_ext <<_ACEOF 13353/* confdefs.h. */ 13354_ACEOF 13355cat confdefs.h >>conftest.$ac_ext 13356cat >>conftest.$ac_ext <<_ACEOF 13357/* end confdefs.h. */ 13358$ac_includes_default 13359#include <asm/mtrr.h> 13360_ACEOF 13361rm -f conftest.$ac_objext 13362if { (ac_try="$ac_compile" 13363case "(($ac_try" in 13364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13365 *) ac_try_echo=$ac_try;; 13366esac 13367eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13368$as_echo "$ac_try_echo") >&5 13369 (eval "$ac_compile") 2>conftest.er1 13370 ac_status=$? 13371 grep -v '^ *+' conftest.er1 >conftest.err 13372 rm -f conftest.er1 13373 cat conftest.err >&5 13374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13375 (exit $ac_status); } && { 13376 test -z "$ac_c_werror_flag" || 13377 test ! -s conftest.err 13378 } && test -s conftest.$ac_objext; then 13379 ac_header_compiler=yes 13380else 13381 $as_echo "$as_me: failed program was:" >&5 13382sed 's/^/| /' conftest.$ac_ext >&5 13383 13384 ac_header_compiler=no 13385fi 13386 13387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13388{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13389$as_echo "$ac_header_compiler" >&6; } 13390 13391# Is the header present? 13392{ $as_echo "$as_me:$LINENO: checking asm/mtrr.h presence" >&5 13393$as_echo_n "checking asm/mtrr.h presence... " >&6; } 13394cat >conftest.$ac_ext <<_ACEOF 13395/* confdefs.h. */ 13396_ACEOF 13397cat confdefs.h >>conftest.$ac_ext 13398cat >>conftest.$ac_ext <<_ACEOF 13399/* end confdefs.h. */ 13400#include <asm/mtrr.h> 13401_ACEOF 13402if { (ac_try="$ac_cpp conftest.$ac_ext" 13403case "(($ac_try" in 13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13405 *) ac_try_echo=$ac_try;; 13406esac 13407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13408$as_echo "$ac_try_echo") >&5 13409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13410 ac_status=$? 13411 grep -v '^ *+' conftest.er1 >conftest.err 13412 rm -f conftest.er1 13413 cat conftest.err >&5 13414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13415 (exit $ac_status); } >/dev/null && { 13416 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13417 test ! -s conftest.err 13418 }; then 13419 ac_header_preproc=yes 13420else 13421 $as_echo "$as_me: failed program was:" >&5 13422sed 's/^/| /' conftest.$ac_ext >&5 13423 13424 ac_header_preproc=no 13425fi 13426 13427rm -f conftest.err conftest.$ac_ext 13428{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13429$as_echo "$ac_header_preproc" >&6; } 13430 13431# So? What about this header? 13432case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13433 yes:no: ) 13434 { $as_echo "$as_me:$LINENO: WARNING: asm/mtrr.h: accepted by the compiler, rejected by the preprocessor!" >&5 13435$as_echo "$as_me: WARNING: asm/mtrr.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13436 { $as_echo "$as_me:$LINENO: WARNING: asm/mtrr.h: proceeding with the compiler's result" >&5 13437$as_echo "$as_me: WARNING: asm/mtrr.h: proceeding with the compiler's result" >&2;} 13438 ac_header_preproc=yes 13439 ;; 13440 no:yes:* ) 13441 { $as_echo "$as_me:$LINENO: WARNING: asm/mtrr.h: present but cannot be compiled" >&5 13442$as_echo "$as_me: WARNING: asm/mtrr.h: present but cannot be compiled" >&2;} 13443 { $as_echo "$as_me:$LINENO: WARNING: asm/mtrr.h: check for missing prerequisite headers?" >&5 13444$as_echo "$as_me: WARNING: asm/mtrr.h: check for missing prerequisite headers?" >&2;} 13445 { $as_echo "$as_me:$LINENO: WARNING: asm/mtrr.h: see the Autoconf documentation" >&5 13446$as_echo "$as_me: WARNING: asm/mtrr.h: see the Autoconf documentation" >&2;} 13447 { $as_echo "$as_me:$LINENO: WARNING: asm/mtrr.h: section \"Present But Cannot Be Compiled\"" >&5 13448$as_echo "$as_me: WARNING: asm/mtrr.h: section \"Present But Cannot Be Compiled\"" >&2;} 13449 { $as_echo "$as_me:$LINENO: WARNING: asm/mtrr.h: proceeding with the preprocessor's result" >&5 13450$as_echo "$as_me: WARNING: asm/mtrr.h: proceeding with the preprocessor's result" >&2;} 13451 { $as_echo "$as_me:$LINENO: WARNING: asm/mtrr.h: in the future, the compiler will take precedence" >&5 13452$as_echo "$as_me: WARNING: asm/mtrr.h: in the future, the compiler will take precedence" >&2;} 13453 ( cat <<\_ASBOX 13454## --------------------------------------------------------------------------------------------- ## 13455## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess ## 13456## --------------------------------------------------------------------------------------------- ## 13457_ASBOX 13458 ) | sed "s/^/$as_me: WARNING: /" >&2 13459 ;; 13460esac 13461{ $as_echo "$as_me:$LINENO: checking for asm/mtrr.h" >&5 13462$as_echo_n "checking for asm/mtrr.h... " >&6; } 13463if test "${ac_cv_header_asm_mtrr_h+set}" = set; then 13464 $as_echo_n "(cached) " >&6 13465else 13466 ac_cv_header_asm_mtrr_h=$ac_header_preproc 13467fi 13468{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_asm_mtrr_h" >&5 13469$as_echo "$ac_cv_header_asm_mtrr_h" >&6; } 13470 13471fi 13472if test "x$ac_cv_header_asm_mtrr_h" = x""yes; then 13473 have_mtrr_h="yes" 13474else 13475 have_mtrr_h="no" 13476fi 13477 13478 13479 13480if test "x$have_mtrr_h" = xyes; then 13481 13482cat >>confdefs.h <<\_ACEOF 13483#define HAVE_MTRR 1 13484_ACEOF 13485 13486fi 13487 13488{ $as_echo "$as_me:$LINENO: checking for struct pci_io.pi_sel.pc_domain" >&5 13489$as_echo_n "checking for struct pci_io.pi_sel.pc_domain... " >&6; } 13490if test "${ac_cv_member_struct_pci_io_pi_sel_pc_domain+set}" = set; then 13491 $as_echo_n "(cached) " >&6 13492else 13493 cat >conftest.$ac_ext <<_ACEOF 13494/* confdefs.h. */ 13495_ACEOF 13496cat confdefs.h >>conftest.$ac_ext 13497cat >>conftest.$ac_ext <<_ACEOF 13498/* end confdefs.h. */ 13499 #include <sys/types.h> 13500 #include <sys/pciio.h> 13501 13502 13503int 13504main () 13505{ 13506static struct pci_io ac_aggr; 13507if (ac_aggr.pi_sel.pc_domain) 13508return 0; 13509 ; 13510 return 0; 13511} 13512_ACEOF 13513rm -f conftest.$ac_objext 13514if { (ac_try="$ac_compile" 13515case "(($ac_try" in 13516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13517 *) ac_try_echo=$ac_try;; 13518esac 13519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13520$as_echo "$ac_try_echo") >&5 13521 (eval "$ac_compile") 2>conftest.er1 13522 ac_status=$? 13523 grep -v '^ *+' conftest.er1 >conftest.err 13524 rm -f conftest.er1 13525 cat conftest.err >&5 13526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13527 (exit $ac_status); } && { 13528 test -z "$ac_c_werror_flag" || 13529 test ! -s conftest.err 13530 } && test -s conftest.$ac_objext; then 13531 ac_cv_member_struct_pci_io_pi_sel_pc_domain=yes 13532else 13533 $as_echo "$as_me: failed program was:" >&5 13534sed 's/^/| /' conftest.$ac_ext >&5 13535 13536 cat >conftest.$ac_ext <<_ACEOF 13537/* confdefs.h. */ 13538_ACEOF 13539cat confdefs.h >>conftest.$ac_ext 13540cat >>conftest.$ac_ext <<_ACEOF 13541/* end confdefs.h. */ 13542 #include <sys/types.h> 13543 #include <sys/pciio.h> 13544 13545 13546int 13547main () 13548{ 13549static struct pci_io ac_aggr; 13550if (sizeof ac_aggr.pi_sel.pc_domain) 13551return 0; 13552 ; 13553 return 0; 13554} 13555_ACEOF 13556rm -f conftest.$ac_objext 13557if { (ac_try="$ac_compile" 13558case "(($ac_try" in 13559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13560 *) ac_try_echo=$ac_try;; 13561esac 13562eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13563$as_echo "$ac_try_echo") >&5 13564 (eval "$ac_compile") 2>conftest.er1 13565 ac_status=$? 13566 grep -v '^ *+' conftest.er1 >conftest.err 13567 rm -f conftest.er1 13568 cat conftest.err >&5 13569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13570 (exit $ac_status); } && { 13571 test -z "$ac_c_werror_flag" || 13572 test ! -s conftest.err 13573 } && test -s conftest.$ac_objext; then 13574 ac_cv_member_struct_pci_io_pi_sel_pc_domain=yes 13575else 13576 $as_echo "$as_me: failed program was:" >&5 13577sed 's/^/| /' conftest.$ac_ext >&5 13578 13579 ac_cv_member_struct_pci_io_pi_sel_pc_domain=no 13580fi 13581 13582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13583fi 13584 13585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13586fi 13587{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_pci_io_pi_sel_pc_domain" >&5 13588$as_echo "$ac_cv_member_struct_pci_io_pi_sel_pc_domain" >&6; } 13589if test "x$ac_cv_member_struct_pci_io_pi_sel_pc_domain" = x""yes; then 13590 13591cat >>confdefs.h <<\_ACEOF 13592#define HAVE_PCI_IO_PC_DOMAIN 1 13593_ACEOF 13594 13595fi 13596 13597 13598 13599 13600 13601 13602ac_config_files="$ac_config_files Makefile src/Makefile pciaccess.pc" 13603 13604cat >confcache <<\_ACEOF 13605# This file is a shell script that caches the results of configure 13606# tests run on this system so they can be shared between configure 13607# scripts and configure runs, see configure's option --config-cache. 13608# It is not useful on other systems. If it contains results you don't 13609# want to keep, you may remove or edit it. 13610# 13611# config.status only pays attention to the cache file if you give it 13612# the --recheck option to rerun configure. 13613# 13614# `ac_cv_env_foo' variables (set or unset) will be overridden when 13615# loading this file, other *unset* `ac_cv_foo' will be assigned the 13616# following values. 13617 13618_ACEOF 13619 13620# The following way of writing the cache mishandles newlines in values, 13621# but we know of no workaround that is simple, portable, and efficient. 13622# So, we kill variables containing newlines. 13623# Ultrix sh set writes to stderr and can't be redirected directly, 13624# and sets the high bit in the cache file unless we assign to the vars. 13625( 13626 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13627 eval ac_val=\$$ac_var 13628 case $ac_val in #( 13629 *${as_nl}*) 13630 case $ac_var in #( 13631 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 13632$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13633 esac 13634 case $ac_var in #( 13635 _ | IFS | as_nl) ;; #( 13636 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13637 *) $as_unset $ac_var ;; 13638 esac ;; 13639 esac 13640 done 13641 13642 (set) 2>&1 | 13643 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13644 *${as_nl}ac_space=\ *) 13645 # `set' does not quote correctly, so add quotes (double-quote 13646 # substitution turns \\\\ into \\, and sed turns \\ into \). 13647 sed -n \ 13648 "s/'/'\\\\''/g; 13649 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13650 ;; #( 13651 *) 13652 # `set' quotes correctly as required by POSIX, so do not add quotes. 13653 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13654 ;; 13655 esac | 13656 sort 13657) | 13658 sed ' 13659 /^ac_cv_env_/b end 13660 t clear 13661 :clear 13662 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13663 t end 13664 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13665 :end' >>confcache 13666if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13667 if test -w "$cache_file"; then 13668 test "x$cache_file" != "x/dev/null" && 13669 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 13670$as_echo "$as_me: updating cache $cache_file" >&6;} 13671 cat confcache >$cache_file 13672 else 13673 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 13674$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13675 fi 13676fi 13677rm -f confcache 13678 13679test "x$prefix" = xNONE && prefix=$ac_default_prefix 13680# Let make expand exec_prefix. 13681test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13682 13683DEFS=-DHAVE_CONFIG_H 13684 13685ac_libobjs= 13686ac_ltlibobjs= 13687for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13688 # 1. Remove the extension, and $U if already installed. 13689 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13690 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13691 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13692 # will be set to the directory where LIBOBJS objects are built. 13693 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13694 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 13695done 13696LIBOBJS=$ac_libobjs 13697 13698LTLIBOBJS=$ac_ltlibobjs 13699 13700 13701 if test -n "$EXEEXT"; then 13702 am__EXEEXT_TRUE= 13703 am__EXEEXT_FALSE='#' 13704else 13705 am__EXEEXT_TRUE='#' 13706 am__EXEEXT_FALSE= 13707fi 13708 13709if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13710 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 13711Usually this means the macro was only invoked conditionally." >&5 13712$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 13713Usually this means the macro was only invoked conditionally." >&2;} 13714 { (exit 1); exit 1; }; } 13715fi 13716if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13717 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 13718Usually this means the macro was only invoked conditionally." >&5 13719$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 13720Usually this means the macro was only invoked conditionally." >&2;} 13721 { (exit 1); exit 1; }; } 13722fi 13723if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13724 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13725Usually this means the macro was only invoked conditionally." >&5 13726$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13727Usually this means the macro was only invoked conditionally." >&2;} 13728 { (exit 1); exit 1; }; } 13729fi 13730if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13731 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13732Usually this means the macro was only invoked conditionally." >&5 13733$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13734Usually this means the macro was only invoked conditionally." >&2;} 13735 { (exit 1); exit 1; }; } 13736fi 13737if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then 13738 { { $as_echo "$as_me:$LINENO: error: conditional \"LINUX\" was never defined. 13739Usually this means the macro was only invoked conditionally." >&5 13740$as_echo "$as_me: error: conditional \"LINUX\" was never defined. 13741Usually this means the macro was only invoked conditionally." >&2;} 13742 { (exit 1); exit 1; }; } 13743fi 13744if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then 13745 { { $as_echo "$as_me:$LINENO: error: conditional \"FREEBSD\" was never defined. 13746Usually this means the macro was only invoked conditionally." >&5 13747$as_echo "$as_me: error: conditional \"FREEBSD\" was never defined. 13748Usually this means the macro was only invoked conditionally." >&2;} 13749 { (exit 1); exit 1; }; } 13750fi 13751if test -z "${NETBSD_TRUE}" && test -z "${NETBSD_FALSE}"; then 13752 { { $as_echo "$as_me:$LINENO: error: conditional \"NETBSD\" was never defined. 13753Usually this means the macro was only invoked conditionally." >&5 13754$as_echo "$as_me: error: conditional \"NETBSD\" was never defined. 13755Usually this means the macro was only invoked conditionally." >&2;} 13756 { (exit 1); exit 1; }; } 13757fi 13758if test -z "${OPENBSD_TRUE}" && test -z "${OPENBSD_FALSE}"; then 13759 { { $as_echo "$as_me:$LINENO: error: conditional \"OPENBSD\" was never defined. 13760Usually this means the macro was only invoked conditionally." >&5 13761$as_echo "$as_me: error: conditional \"OPENBSD\" was never defined. 13762Usually this means the macro was only invoked conditionally." >&2;} 13763 { (exit 1); exit 1; }; } 13764fi 13765if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then 13766 { { $as_echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined. 13767Usually this means the macro was only invoked conditionally." >&5 13768$as_echo "$as_me: error: conditional \"SOLARIS\" was never defined. 13769Usually this means the macro was only invoked conditionally." >&2;} 13770 { (exit 1); exit 1; }; } 13771fi 13772 13773: ${CONFIG_STATUS=./config.status} 13774ac_write_fail=0 13775ac_clean_files_save=$ac_clean_files 13776ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13777{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13778$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13779cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13780#! $SHELL 13781# Generated by $as_me. 13782# Run this file to recreate the current configuration. 13783# Compiler output produced by configure, useful for debugging 13784# configure, is in config.log if it exists. 13785 13786debug=false 13787ac_cs_recheck=false 13788ac_cs_silent=false 13789SHELL=\${CONFIG_SHELL-$SHELL} 13790_ACEOF 13791 13792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13793## --------------------- ## 13794## M4sh Initialization. ## 13795## --------------------- ## 13796 13797# Be more Bourne compatible 13798DUALCASE=1; export DUALCASE # for MKS sh 13799if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13800 emulate sh 13801 NULLCMD=: 13802 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13803 # is contrary to our usage. Disable this feature. 13804 alias -g '${1+"$@"}'='"$@"' 13805 setopt NO_GLOB_SUBST 13806else 13807 case `(set -o) 2>/dev/null` in 13808 *posix*) set -o posix ;; 13809esac 13810 13811fi 13812 13813 13814 13815 13816# PATH needs CR 13817# Avoid depending upon Character Ranges. 13818as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13819as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13820as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13821as_cr_digits='0123456789' 13822as_cr_alnum=$as_cr_Letters$as_cr_digits 13823 13824as_nl=' 13825' 13826export as_nl 13827# Printing a long string crashes Solaris 7 /usr/bin/printf. 13828as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13829as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13830as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13831if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13832 as_echo='printf %s\n' 13833 as_echo_n='printf %s' 13834else 13835 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13836 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13837 as_echo_n='/usr/ucb/echo -n' 13838 else 13839 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13840 as_echo_n_body='eval 13841 arg=$1; 13842 case $arg in 13843 *"$as_nl"*) 13844 expr "X$arg" : "X\\(.*\\)$as_nl"; 13845 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13846 esac; 13847 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13848 ' 13849 export as_echo_n_body 13850 as_echo_n='sh -c $as_echo_n_body as_echo' 13851 fi 13852 export as_echo_body 13853 as_echo='sh -c $as_echo_body as_echo' 13854fi 13855 13856# The user is always right. 13857if test "${PATH_SEPARATOR+set}" != set; then 13858 PATH_SEPARATOR=: 13859 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13860 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13861 PATH_SEPARATOR=';' 13862 } 13863fi 13864 13865# Support unset when possible. 13866if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13867 as_unset=unset 13868else 13869 as_unset=false 13870fi 13871 13872 13873# IFS 13874# We need space, tab and new line, in precisely that order. Quoting is 13875# there to prevent editors from complaining about space-tab. 13876# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13877# splitting by setting IFS to empty value.) 13878IFS=" "" $as_nl" 13879 13880# Find who we are. Look in the path if we contain no directory separator. 13881case $0 in 13882 *[\\/]* ) as_myself=$0 ;; 13883 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13884for as_dir in $PATH 13885do 13886 IFS=$as_save_IFS 13887 test -z "$as_dir" && as_dir=. 13888 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13889done 13890IFS=$as_save_IFS 13891 13892 ;; 13893esac 13894# We did not find ourselves, most probably we were run as `sh COMMAND' 13895# in which case we are not to be found in the path. 13896if test "x$as_myself" = x; then 13897 as_myself=$0 13898fi 13899if test ! -f "$as_myself"; then 13900 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13901 { (exit 1); exit 1; } 13902fi 13903 13904# Work around bugs in pre-3.0 UWIN ksh. 13905for as_var in ENV MAIL MAILPATH 13906do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13907done 13908PS1='$ ' 13909PS2='> ' 13910PS4='+ ' 13911 13912# NLS nuisances. 13913LC_ALL=C 13914export LC_ALL 13915LANGUAGE=C 13916export LANGUAGE 13917 13918# Required to use basename. 13919if expr a : '\(a\)' >/dev/null 2>&1 && 13920 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13921 as_expr=expr 13922else 13923 as_expr=false 13924fi 13925 13926if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13927 as_basename=basename 13928else 13929 as_basename=false 13930fi 13931 13932 13933# Name of the executable. 13934as_me=`$as_basename -- "$0" || 13935$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13936 X"$0" : 'X\(//\)$' \| \ 13937 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13938$as_echo X/"$0" | 13939 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13940 s//\1/ 13941 q 13942 } 13943 /^X\/\(\/\/\)$/{ 13944 s//\1/ 13945 q 13946 } 13947 /^X\/\(\/\).*/{ 13948 s//\1/ 13949 q 13950 } 13951 s/.*/./; q'` 13952 13953# CDPATH. 13954$as_unset CDPATH 13955 13956 13957 13958 as_lineno_1=$LINENO 13959 as_lineno_2=$LINENO 13960 test "x$as_lineno_1" != "x$as_lineno_2" && 13961 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 13962 13963 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13964 # uniformly replaced by the line number. The first 'sed' inserts a 13965 # line-number line after each line using $LINENO; the second 'sed' 13966 # does the real work. The second script uses 'N' to pair each 13967 # line-number line with the line containing $LINENO, and appends 13968 # trailing '-' during substitution so that $LINENO is not a special 13969 # case at line end. 13970 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13971 # scripts with optimization help from Paolo Bonzini. Blame Lee 13972 # E. McMahon (1931-1989) for sed's syntax. :-) 13973 sed -n ' 13974 p 13975 /[$]LINENO/= 13976 ' <$as_myself | 13977 sed ' 13978 s/[$]LINENO.*/&-/ 13979 t lineno 13980 b 13981 :lineno 13982 N 13983 :loop 13984 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 13985 t loop 13986 s/-\n.*// 13987 ' >$as_me.lineno && 13988 chmod +x "$as_me.lineno" || 13989 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 13990 { (exit 1); exit 1; }; } 13991 13992 # Don't try to exec as it changes $[0], causing all sort of problems 13993 # (the dirname of $[0] is not the place where we might find the 13994 # original and so on. Autoconf is especially sensitive to this). 13995 . "./$as_me.lineno" 13996 # Exit status is that of the last command. 13997 exit 13998} 13999 14000 14001if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14002 as_dirname=dirname 14003else 14004 as_dirname=false 14005fi 14006 14007ECHO_C= ECHO_N= ECHO_T= 14008case `echo -n x` in 14009-n*) 14010 case `echo 'x\c'` in 14011 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14012 *) ECHO_C='\c';; 14013 esac;; 14014*) 14015 ECHO_N='-n';; 14016esac 14017if expr a : '\(a\)' >/dev/null 2>&1 && 14018 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14019 as_expr=expr 14020else 14021 as_expr=false 14022fi 14023 14024rm -f conf$$ conf$$.exe conf$$.file 14025if test -d conf$$.dir; then 14026 rm -f conf$$.dir/conf$$.file 14027else 14028 rm -f conf$$.dir 14029 mkdir conf$$.dir 2>/dev/null 14030fi 14031if (echo >conf$$.file) 2>/dev/null; then 14032 if ln -s conf$$.file conf$$ 2>/dev/null; then 14033 as_ln_s='ln -s' 14034 # ... but there are two gotchas: 14035 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14036 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14037 # In both cases, we have to default to `cp -p'. 14038 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14039 as_ln_s='cp -p' 14040 elif ln conf$$.file conf$$ 2>/dev/null; then 14041 as_ln_s=ln 14042 else 14043 as_ln_s='cp -p' 14044 fi 14045else 14046 as_ln_s='cp -p' 14047fi 14048rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14049rmdir conf$$.dir 2>/dev/null 14050 14051if mkdir -p . 2>/dev/null; then 14052 as_mkdir_p=: 14053else 14054 test -d ./-p && rmdir ./-p 14055 as_mkdir_p=false 14056fi 14057 14058if test -x / >/dev/null 2>&1; then 14059 as_test_x='test -x' 14060else 14061 if ls -dL / >/dev/null 2>&1; then 14062 as_ls_L_option=L 14063 else 14064 as_ls_L_option= 14065 fi 14066 as_test_x=' 14067 eval sh -c '\'' 14068 if test -d "$1"; then 14069 test -d "$1/."; 14070 else 14071 case $1 in 14072 -*)set "./$1";; 14073 esac; 14074 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 14075 ???[sx]*):;;*)false;;esac;fi 14076 '\'' sh 14077 ' 14078fi 14079as_executable_p=$as_test_x 14080 14081# Sed expression to map a string onto a valid CPP name. 14082as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14083 14084# Sed expression to map a string onto a valid variable name. 14085as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14086 14087 14088exec 6>&1 14089 14090# Save the log message, to keep $[0] and so on meaningful, and to 14091# report actual input values of CONFIG_FILES etc. instead of their 14092# values after options handling. 14093ac_log=" 14094This file was extended by libpciaccess $as_me 0.11.0, which was 14095generated by GNU Autoconf 2.63. Invocation command line was 14096 14097 CONFIG_FILES = $CONFIG_FILES 14098 CONFIG_HEADERS = $CONFIG_HEADERS 14099 CONFIG_LINKS = $CONFIG_LINKS 14100 CONFIG_COMMANDS = $CONFIG_COMMANDS 14101 $ $0 $@ 14102 14103on `(hostname || uname -n) 2>/dev/null | sed 1q` 14104" 14105 14106_ACEOF 14107 14108case $ac_config_files in *" 14109"*) set x $ac_config_files; shift; ac_config_files=$*;; 14110esac 14111 14112case $ac_config_headers in *" 14113"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14114esac 14115 14116 14117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14118# Files that config.status was made for. 14119config_files="$ac_config_files" 14120config_headers="$ac_config_headers" 14121config_commands="$ac_config_commands" 14122 14123_ACEOF 14124 14125cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14126ac_cs_usage="\ 14127\`$as_me' instantiates files from templates according to the 14128current configuration. 14129 14130Usage: $0 [OPTION]... [FILE]... 14131 14132 -h, --help print this help, then exit 14133 -V, --version print version number and configuration settings, then exit 14134 -q, --quiet, --silent 14135 do not print progress messages 14136 -d, --debug don't remove temporary files 14137 --recheck update $as_me by reconfiguring in the same conditions 14138 --file=FILE[:TEMPLATE] 14139 instantiate the configuration file FILE 14140 --header=FILE[:TEMPLATE] 14141 instantiate the configuration header FILE 14142 14143Configuration files: 14144$config_files 14145 14146Configuration headers: 14147$config_headers 14148 14149Configuration commands: 14150$config_commands 14151 14152Report bugs to <bug-autoconf@gnu.org>." 14153 14154_ACEOF 14155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14156ac_cs_version="\\ 14157libpciaccess config.status 0.11.0 14158configured by $0, generated by GNU Autoconf 2.63, 14159 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 14160 14161Copyright (C) 2008 Free Software Foundation, Inc. 14162This config.status script is free software; the Free Software Foundation 14163gives unlimited permission to copy, distribute and modify it." 14164 14165ac_pwd='$ac_pwd' 14166srcdir='$srcdir' 14167INSTALL='$INSTALL' 14168MKDIR_P='$MKDIR_P' 14169AWK='$AWK' 14170test -n "\$AWK" || AWK=awk 14171_ACEOF 14172 14173cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14174# The default lists apply if the user does not specify any file. 14175ac_need_defaults=: 14176while test $# != 0 14177do 14178 case $1 in 14179 --*=*) 14180 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14181 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14182 ac_shift=: 14183 ;; 14184 *) 14185 ac_option=$1 14186 ac_optarg=$2 14187 ac_shift=shift 14188 ;; 14189 esac 14190 14191 case $ac_option in 14192 # Handling of the options. 14193 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14194 ac_cs_recheck=: ;; 14195 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14196 $as_echo "$ac_cs_version"; exit ;; 14197 --debug | --debu | --deb | --de | --d | -d ) 14198 debug=: ;; 14199 --file | --fil | --fi | --f ) 14200 $ac_shift 14201 case $ac_optarg in 14202 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14203 esac 14204 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 14205 ac_need_defaults=false;; 14206 --header | --heade | --head | --hea ) 14207 $ac_shift 14208 case $ac_optarg in 14209 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14210 esac 14211 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 14212 ac_need_defaults=false;; 14213 --he | --h) 14214 # Conflict between --help and --header 14215 { $as_echo "$as_me: error: ambiguous option: $1 14216Try \`$0 --help' for more information." >&2 14217 { (exit 1); exit 1; }; };; 14218 --help | --hel | -h ) 14219 $as_echo "$ac_cs_usage"; exit ;; 14220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14221 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14222 ac_cs_silent=: ;; 14223 14224 # This is an error. 14225 -*) { $as_echo "$as_me: error: unrecognized option: $1 14226Try \`$0 --help' for more information." >&2 14227 { (exit 1); exit 1; }; } ;; 14228 14229 *) ac_config_targets="$ac_config_targets $1" 14230 ac_need_defaults=false ;; 14231 14232 esac 14233 shift 14234done 14235 14236ac_configure_extra_args= 14237 14238if $ac_cs_silent; then 14239 exec 6>/dev/null 14240 ac_configure_extra_args="$ac_configure_extra_args --silent" 14241fi 14242 14243_ACEOF 14244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14245if \$ac_cs_recheck; then 14246 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14247 shift 14248 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14249 CONFIG_SHELL='$SHELL' 14250 export CONFIG_SHELL 14251 exec "\$@" 14252fi 14253 14254_ACEOF 14255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14256exec 5>>config.log 14257{ 14258 echo 14259 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14260## Running $as_me. ## 14261_ASBOX 14262 $as_echo "$ac_log" 14263} >&5 14264 14265_ACEOF 14266cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14267# 14268# INIT-COMMANDS 14269# 14270AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14271 14272 14273# The HP-UX ksh and POSIX shell print the target directory to stdout 14274# if CDPATH is set. 14275(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14276 14277sed_quote_subst='$sed_quote_subst' 14278double_quote_subst='$double_quote_subst' 14279delay_variable_subst='$delay_variable_subst' 14280macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 14281macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 14282enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 14283enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 14284pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 14285enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 14286host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 14287host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 14288host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 14289build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 14290build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 14291build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 14292SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 14293Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 14294GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 14295EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 14296FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 14297LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 14298NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 14299LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 14300max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 14301ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 14302exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 14303lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 14304lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 14305lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 14306reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 14307reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14308OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 14309deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 14310file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 14311AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 14312AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14313STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 14314RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 14315old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14316old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14317old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14318CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 14319CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14320compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 14321GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 14322lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 14323lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 14324lt_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"`' 14325lt_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"`' 14326objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 14327SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 14328ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 14329MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 14330lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 14331lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 14332lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 14333lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 14334lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 14335need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 14336DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 14337NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 14338LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 14339OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 14340OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 14341libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 14342shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14343extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14344archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 14345enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 14346export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14347whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14348compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 14349old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14350old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14351archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14352archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14353module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14354module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14355with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 14356allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14357no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14358hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14359hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 14360hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 14361hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 14362hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 14363hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 14364hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14365hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 14366inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 14367link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 14368fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 14369always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 14370export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14371exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14372include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14373prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14374file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 14375variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 14376need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 14377need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 14378version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 14379runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14380shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14381shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 14382libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14383library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 14384soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14385postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14386postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14387finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14388finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 14389hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 14390sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14391sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14392hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 14393enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 14394enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 14395enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 14396old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 14397striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 14398 14399LTCC='$LTCC' 14400LTCFLAGS='$LTCFLAGS' 14401compiler='$compiler_DEFAULT' 14402 14403# Quote evaled strings. 14404for var in SED \ 14405GREP \ 14406EGREP \ 14407FGREP \ 14408LD \ 14409NM \ 14410LN_S \ 14411lt_SP2NL \ 14412lt_NL2SP \ 14413reload_flag \ 14414OBJDUMP \ 14415deplibs_check_method \ 14416file_magic_cmd \ 14417AR \ 14418AR_FLAGS \ 14419STRIP \ 14420RANLIB \ 14421CC \ 14422CFLAGS \ 14423compiler \ 14424lt_cv_sys_global_symbol_pipe \ 14425lt_cv_sys_global_symbol_to_cdecl \ 14426lt_cv_sys_global_symbol_to_c_name_address \ 14427lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14428SHELL \ 14429ECHO \ 14430lt_prog_compiler_no_builtin_flag \ 14431lt_prog_compiler_wl \ 14432lt_prog_compiler_pic \ 14433lt_prog_compiler_static \ 14434lt_cv_prog_compiler_c_o \ 14435need_locks \ 14436DSYMUTIL \ 14437NMEDIT \ 14438LIPO \ 14439OTOOL \ 14440OTOOL64 \ 14441shrext_cmds \ 14442export_dynamic_flag_spec \ 14443whole_archive_flag_spec \ 14444compiler_needs_object \ 14445with_gnu_ld \ 14446allow_undefined_flag \ 14447no_undefined_flag \ 14448hardcode_libdir_flag_spec \ 14449hardcode_libdir_flag_spec_ld \ 14450hardcode_libdir_separator \ 14451fix_srcfile_path \ 14452exclude_expsyms \ 14453include_expsyms \ 14454file_list_spec \ 14455variables_saved_for_relink \ 14456libname_spec \ 14457library_names_spec \ 14458soname_spec \ 14459finish_eval \ 14460old_striplib \ 14461striplib; do 14462 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14463 *[\\\\\\\`\\"\\\$]*) 14464 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14465 ;; 14466 *) 14467 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14468 ;; 14469 esac 14470done 14471 14472# Double-quote double-evaled strings. 14473for var in reload_cmds \ 14474old_postinstall_cmds \ 14475old_postuninstall_cmds \ 14476old_archive_cmds \ 14477extract_expsyms_cmds \ 14478old_archive_from_new_cmds \ 14479old_archive_from_expsyms_cmds \ 14480archive_cmds \ 14481archive_expsym_cmds \ 14482module_cmds \ 14483module_expsym_cmds \ 14484export_symbols_cmds \ 14485prelink_cmds \ 14486postinstall_cmds \ 14487postuninstall_cmds \ 14488finish_cmds \ 14489sys_lib_search_path_spec \ 14490sys_lib_dlsearch_path_spec; do 14491 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14492 *[\\\\\\\`\\"\\\$]*) 14493 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14494 ;; 14495 *) 14496 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14497 ;; 14498 esac 14499done 14500 14501# Fix-up fallback echo if it was mangled by the above quoting rules. 14502case \$lt_ECHO in 14503*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 14504 ;; 14505esac 14506 14507ac_aux_dir='$ac_aux_dir' 14508xsi_shell='$xsi_shell' 14509lt_shell_append='$lt_shell_append' 14510 14511# See if we are running on zsh, and set the options which allow our 14512# commands through without removal of \ escapes INIT. 14513if test -n "\${ZSH_VERSION+set}" ; then 14514 setopt NO_GLOB_SUBST 14515fi 14516 14517 14518 PACKAGE='$PACKAGE' 14519 VERSION='$VERSION' 14520 TIMESTAMP='$TIMESTAMP' 14521 RM='$RM' 14522 ofile='$ofile' 14523 14524 14525 14526 14527_ACEOF 14528 14529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14530 14531# Handling of arguments. 14532for ac_config_target in $ac_config_targets 14533do 14534 case $ac_config_target in 14535 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14536 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14537 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14538 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14539 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14540 "pciaccess.pc") CONFIG_FILES="$CONFIG_FILES pciaccess.pc" ;; 14541 14542 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14543$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14544 { (exit 1); exit 1; }; };; 14545 esac 14546done 14547 14548 14549# If the user did not use the arguments to specify the items to instantiate, 14550# then the envvar interface is used. Set only those that are not. 14551# We use the long form for the default assignment because of an extremely 14552# bizarre bug on SunOS 4.1.3. 14553if $ac_need_defaults; then 14554 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14555 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14556 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14557fi 14558 14559# Have a temporary directory for convenience. Make it in the build tree 14560# simply because there is no reason against having it here, and in addition, 14561# creating and moving files from /tmp can sometimes cause problems. 14562# Hook for its removal unless debugging. 14563# Note that there is a small window in which the directory will not be cleaned: 14564# after its creation but before its name has been assigned to `$tmp'. 14565$debug || 14566{ 14567 tmp= 14568 trap 'exit_status=$? 14569 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14570' 0 14571 trap '{ (exit 1); exit 1; }' 1 2 13 15 14572} 14573# Create a (secure) tmp directory for tmp files. 14574 14575{ 14576 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14577 test -n "$tmp" && test -d "$tmp" 14578} || 14579{ 14580 tmp=./conf$$-$RANDOM 14581 (umask 077 && mkdir "$tmp") 14582} || 14583{ 14584 $as_echo "$as_me: cannot create a temporary directory in ." >&2 14585 { (exit 1); exit 1; } 14586} 14587 14588# Set up the scripts for CONFIG_FILES section. 14589# No need to generate them if there are no CONFIG_FILES. 14590# This happens for instance with `./config.status config.h'. 14591if test -n "$CONFIG_FILES"; then 14592 14593 14594ac_cr=' 14595' 14596ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14597if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14598 ac_cs_awk_cr='\\r' 14599else 14600 ac_cs_awk_cr=$ac_cr 14601fi 14602 14603echo 'BEGIN {' >"$tmp/subs1.awk" && 14604_ACEOF 14605 14606 14607{ 14608 echo "cat >conf$$subs.awk <<_ACEOF" && 14609 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14610 echo "_ACEOF" 14611} >conf$$subs.sh || 14612 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14613$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14614 { (exit 1); exit 1; }; } 14615ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 14616ac_delim='%!_!# ' 14617for ac_last_try in false false false false false :; do 14618 . ./conf$$subs.sh || 14619 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14620$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14621 { (exit 1); exit 1; }; } 14622 14623 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14624 if test $ac_delim_n = $ac_delim_num; then 14625 break 14626 elif $ac_last_try; then 14627 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14628$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14629 { (exit 1); exit 1; }; } 14630 else 14631 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14632 fi 14633done 14634rm -f conf$$subs.sh 14635 14636cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14637cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 14638_ACEOF 14639sed -n ' 14640h 14641s/^/S["/; s/!.*/"]=/ 14642p 14643g 14644s/^[^!]*!// 14645:repl 14646t repl 14647s/'"$ac_delim"'$// 14648t delim 14649:nl 14650h 14651s/\(.\{148\}\).*/\1/ 14652t more1 14653s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14654p 14655n 14656b repl 14657:more1 14658s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14659p 14660g 14661s/.\{148\}// 14662t nl 14663:delim 14664h 14665s/\(.\{148\}\).*/\1/ 14666t more2 14667s/["\\]/\\&/g; s/^/"/; s/$/"/ 14668p 14669b 14670:more2 14671s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14672p 14673g 14674s/.\{148\}// 14675t delim 14676' <conf$$subs.awk | sed ' 14677/^[^""]/{ 14678 N 14679 s/\n// 14680} 14681' >>$CONFIG_STATUS || ac_write_fail=1 14682rm -f conf$$subs.awk 14683cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14684_ACAWK 14685cat >>"\$tmp/subs1.awk" <<_ACAWK && 14686 for (key in S) S_is_set[key] = 1 14687 FS = "" 14688 14689} 14690{ 14691 line = $ 0 14692 nfields = split(line, field, "@") 14693 substed = 0 14694 len = length(field[1]) 14695 for (i = 2; i < nfields; i++) { 14696 key = field[i] 14697 keylen = length(key) 14698 if (S_is_set[key]) { 14699 value = S[key] 14700 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14701 len += length(value) + length(field[++i]) 14702 substed = 1 14703 } else 14704 len += 1 + keylen 14705 } 14706 14707 print line 14708} 14709 14710_ACAWK 14711_ACEOF 14712cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14713if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14714 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14715else 14716 cat 14717fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14718 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 14719$as_echo "$as_me: error: could not setup config files machinery" >&2;} 14720 { (exit 1); exit 1; }; } 14721_ACEOF 14722 14723# VPATH may cause trouble with some makes, so we remove $(srcdir), 14724# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14725# trailing colons and then remove the whole line if VPATH becomes empty 14726# (actually we leave an empty line to preserve line numbers). 14727if test "x$srcdir" = x.; then 14728 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14729s/:*\$(srcdir):*/:/ 14730s/:*\${srcdir}:*/:/ 14731s/:*@srcdir@:*/:/ 14732s/^\([^=]*=[ ]*\):*/\1/ 14733s/:*$// 14734s/^[^=]*=[ ]*$// 14735}' 14736fi 14737 14738cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14739fi # test -n "$CONFIG_FILES" 14740 14741# Set up the scripts for CONFIG_HEADERS section. 14742# No need to generate them if there are no CONFIG_HEADERS. 14743# This happens for instance with `./config.status Makefile'. 14744if test -n "$CONFIG_HEADERS"; then 14745cat >"$tmp/defines.awk" <<\_ACAWK || 14746BEGIN { 14747_ACEOF 14748 14749# Transform confdefs.h into an awk script `defines.awk', embedded as 14750# here-document in config.status, that substitutes the proper values into 14751# config.h.in to produce config.h. 14752 14753# Create a delimiter string that does not exist in confdefs.h, to ease 14754# handling of long lines. 14755ac_delim='%!_!# ' 14756for ac_last_try in false false :; do 14757 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 14758 if test -z "$ac_t"; then 14759 break 14760 elif $ac_last_try; then 14761 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 14762$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 14763 { (exit 1); exit 1; }; } 14764 else 14765 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14766 fi 14767done 14768 14769# For the awk script, D is an array of macro values keyed by name, 14770# likewise P contains macro parameters if any. Preserve backslash 14771# newline sequences. 14772 14773ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14774sed -n ' 14775s/.\{148\}/&'"$ac_delim"'/g 14776t rset 14777:rset 14778s/^[ ]*#[ ]*define[ ][ ]*/ / 14779t def 14780d 14781:def 14782s/\\$// 14783t bsnl 14784s/["\\]/\\&/g 14785s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14786D["\1"]=" \3"/p 14787s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14788d 14789:bsnl 14790s/["\\]/\\&/g 14791s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14792D["\1"]=" \3\\\\\\n"\\/p 14793t cont 14794s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14795t cont 14796d 14797:cont 14798n 14799s/.\{148\}/&'"$ac_delim"'/g 14800t clear 14801:clear 14802s/\\$// 14803t bsnlc 14804s/["\\]/\\&/g; s/^/"/; s/$/"/p 14805d 14806:bsnlc 14807s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14808b cont 14809' <confdefs.h | sed ' 14810s/'"$ac_delim"'/"\\\ 14811"/g' >>$CONFIG_STATUS || ac_write_fail=1 14812 14813cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14814 for (key in D) D_is_set[key] = 1 14815 FS = "" 14816} 14817/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14818 line = \$ 0 14819 split(line, arg, " ") 14820 if (arg[1] == "#") { 14821 defundef = arg[2] 14822 mac1 = arg[3] 14823 } else { 14824 defundef = substr(arg[1], 2) 14825 mac1 = arg[2] 14826 } 14827 split(mac1, mac2, "(") #) 14828 macro = mac2[1] 14829 prefix = substr(line, 1, index(line, defundef) - 1) 14830 if (D_is_set[macro]) { 14831 # Preserve the white space surrounding the "#". 14832 print prefix "define", macro P[macro] D[macro] 14833 next 14834 } else { 14835 # Replace #undef with comments. This is necessary, for example, 14836 # in the case of _POSIX_SOURCE, which is predefined and required 14837 # on some systems where configure will not decide to define it. 14838 if (defundef == "undef") { 14839 print "/*", prefix defundef, macro, "*/" 14840 next 14841 } 14842 } 14843} 14844{ print } 14845_ACAWK 14846_ACEOF 14847cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14848 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 14849$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 14850 { (exit 1); exit 1; }; } 14851fi # test -n "$CONFIG_HEADERS" 14852 14853 14854eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14855shift 14856for ac_tag 14857do 14858 case $ac_tag in 14859 :[FHLC]) ac_mode=$ac_tag; continue;; 14860 esac 14861 case $ac_mode$ac_tag in 14862 :[FHL]*:*);; 14863 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 14864$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 14865 { (exit 1); exit 1; }; };; 14866 :[FH]-) ac_tag=-:-;; 14867 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14868 esac 14869 ac_save_IFS=$IFS 14870 IFS=: 14871 set x $ac_tag 14872 IFS=$ac_save_IFS 14873 shift 14874 ac_file=$1 14875 shift 14876 14877 case $ac_mode in 14878 :L) ac_source=$1;; 14879 :[FH]) 14880 ac_file_inputs= 14881 for ac_f 14882 do 14883 case $ac_f in 14884 -) ac_f="$tmp/stdin";; 14885 *) # Look for the file first in the build tree, then in the source tree 14886 # (if the path is not absolute). The absolute path cannot be DOS-style, 14887 # because $ac_f cannot contain `:'. 14888 test -f "$ac_f" || 14889 case $ac_f in 14890 [\\/$]*) false;; 14891 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14892 esac || 14893 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14894$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 14895 { (exit 1); exit 1; }; };; 14896 esac 14897 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14898 ac_file_inputs="$ac_file_inputs '$ac_f'" 14899 done 14900 14901 # Let's still pretend it is `configure' which instantiates (i.e., don't 14902 # use $as_me), people would be surprised to read: 14903 # /* config.h. Generated by config.status. */ 14904 configure_input='Generated from '` 14905 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14906 `' by configure.' 14907 if test x"$ac_file" != x-; then 14908 configure_input="$ac_file. $configure_input" 14909 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 14910$as_echo "$as_me: creating $ac_file" >&6;} 14911 fi 14912 # Neutralize special characters interpreted by sed in replacement strings. 14913 case $configure_input in #( 14914 *\&* | *\|* | *\\* ) 14915 ac_sed_conf_input=`$as_echo "$configure_input" | 14916 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14917 *) ac_sed_conf_input=$configure_input;; 14918 esac 14919 14920 case $ac_tag in 14921 *:-:* | *:-) cat >"$tmp/stdin" \ 14922 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14923$as_echo "$as_me: error: could not create $ac_file" >&2;} 14924 { (exit 1); exit 1; }; } ;; 14925 esac 14926 ;; 14927 esac 14928 14929 ac_dir=`$as_dirname -- "$ac_file" || 14930$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14931 X"$ac_file" : 'X\(//\)[^/]' \| \ 14932 X"$ac_file" : 'X\(//\)$' \| \ 14933 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14934$as_echo X"$ac_file" | 14935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14936 s//\1/ 14937 q 14938 } 14939 /^X\(\/\/\)[^/].*/{ 14940 s//\1/ 14941 q 14942 } 14943 /^X\(\/\/\)$/{ 14944 s//\1/ 14945 q 14946 } 14947 /^X\(\/\).*/{ 14948 s//\1/ 14949 q 14950 } 14951 s/.*/./; q'` 14952 { as_dir="$ac_dir" 14953 case $as_dir in #( 14954 -*) as_dir=./$as_dir;; 14955 esac 14956 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14957 as_dirs= 14958 while :; do 14959 case $as_dir in #( 14960 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14961 *) as_qdir=$as_dir;; 14962 esac 14963 as_dirs="'$as_qdir' $as_dirs" 14964 as_dir=`$as_dirname -- "$as_dir" || 14965$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14966 X"$as_dir" : 'X\(//\)[^/]' \| \ 14967 X"$as_dir" : 'X\(//\)$' \| \ 14968 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14969$as_echo X"$as_dir" | 14970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14971 s//\1/ 14972 q 14973 } 14974 /^X\(\/\/\)[^/].*/{ 14975 s//\1/ 14976 q 14977 } 14978 /^X\(\/\/\)$/{ 14979 s//\1/ 14980 q 14981 } 14982 /^X\(\/\).*/{ 14983 s//\1/ 14984 q 14985 } 14986 s/.*/./; q'` 14987 test -d "$as_dir" && break 14988 done 14989 test -z "$as_dirs" || eval "mkdir $as_dirs" 14990 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14991$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14992 { (exit 1); exit 1; }; }; } 14993 ac_builddir=. 14994 14995case "$ac_dir" in 14996.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14997*) 14998 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14999 # A ".." for each directory in $ac_dir_suffix. 15000 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15001 case $ac_top_builddir_sub in 15002 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15003 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15004 esac ;; 15005esac 15006ac_abs_top_builddir=$ac_pwd 15007ac_abs_builddir=$ac_pwd$ac_dir_suffix 15008# for backward compatibility: 15009ac_top_builddir=$ac_top_build_prefix 15010 15011case $srcdir in 15012 .) # We are building in place. 15013 ac_srcdir=. 15014 ac_top_srcdir=$ac_top_builddir_sub 15015 ac_abs_top_srcdir=$ac_pwd ;; 15016 [\\/]* | ?:[\\/]* ) # Absolute name. 15017 ac_srcdir=$srcdir$ac_dir_suffix; 15018 ac_top_srcdir=$srcdir 15019 ac_abs_top_srcdir=$srcdir ;; 15020 *) # Relative name. 15021 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15022 ac_top_srcdir=$ac_top_build_prefix$srcdir 15023 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15024esac 15025ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15026 15027 15028 case $ac_mode in 15029 :F) 15030 # 15031 # CONFIG_FILE 15032 # 15033 15034 case $INSTALL in 15035 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15036 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15037 esac 15038 ac_MKDIR_P=$MKDIR_P 15039 case $MKDIR_P in 15040 [\\/$]* | ?:[\\/]* ) ;; 15041 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15042 esac 15043_ACEOF 15044 15045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15046# If the template does not know about datarootdir, expand it. 15047# FIXME: This hack should be removed a few years after 2.60. 15048ac_datarootdir_hack=; ac_datarootdir_seen= 15049 15050ac_sed_dataroot=' 15051/datarootdir/ { 15052 p 15053 q 15054} 15055/@datadir@/p 15056/@docdir@/p 15057/@infodir@/p 15058/@localedir@/p 15059/@mandir@/p 15060' 15061case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15062*datarootdir*) ac_datarootdir_seen=yes;; 15063*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15064 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15065$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15066_ACEOF 15067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15068 ac_datarootdir_hack=' 15069 s&@datadir@&$datadir&g 15070 s&@docdir@&$docdir&g 15071 s&@infodir@&$infodir&g 15072 s&@localedir@&$localedir&g 15073 s&@mandir@&$mandir&g 15074 s&\\\${datarootdir}&$datarootdir&g' ;; 15075esac 15076_ACEOF 15077 15078# Neutralize VPATH when `$srcdir' = `.'. 15079# Shell code in configure.ac might set extrasub. 15080# FIXME: do we really want to maintain this feature? 15081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15082ac_sed_extra="$ac_vpsub 15083$extrasub 15084_ACEOF 15085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15086:t 15087/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15088s|@configure_input@|$ac_sed_conf_input|;t t 15089s&@top_builddir@&$ac_top_builddir_sub&;t t 15090s&@top_build_prefix@&$ac_top_build_prefix&;t t 15091s&@srcdir@&$ac_srcdir&;t t 15092s&@abs_srcdir@&$ac_abs_srcdir&;t t 15093s&@top_srcdir@&$ac_top_srcdir&;t t 15094s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15095s&@builddir@&$ac_builddir&;t t 15096s&@abs_builddir@&$ac_abs_builddir&;t t 15097s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15098s&@INSTALL@&$ac_INSTALL&;t t 15099s&@MKDIR_P@&$ac_MKDIR_P&;t t 15100$ac_datarootdir_hack 15101" 15102eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 15103 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15104$as_echo "$as_me: error: could not create $ac_file" >&2;} 15105 { (exit 1); exit 1; }; } 15106 15107test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15108 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 15109 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 15110 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15111which seems to be undefined. Please make sure it is defined." >&5 15112$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15113which seems to be undefined. Please make sure it is defined." >&2;} 15114 15115 rm -f "$tmp/stdin" 15116 case $ac_file in 15117 -) cat "$tmp/out" && rm -f "$tmp/out";; 15118 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 15119 esac \ 15120 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15121$as_echo "$as_me: error: could not create $ac_file" >&2;} 15122 { (exit 1); exit 1; }; } 15123 ;; 15124 :H) 15125 # 15126 # CONFIG_HEADER 15127 # 15128 if test x"$ac_file" != x-; then 15129 { 15130 $as_echo "/* $configure_input */" \ 15131 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 15132 } >"$tmp/config.h" \ 15133 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15134$as_echo "$as_me: error: could not create $ac_file" >&2;} 15135 { (exit 1); exit 1; }; } 15136 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 15137 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 15138$as_echo "$as_me: $ac_file is unchanged" >&6;} 15139 else 15140 rm -f "$ac_file" 15141 mv "$tmp/config.h" "$ac_file" \ 15142 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15143$as_echo "$as_me: error: could not create $ac_file" >&2;} 15144 { (exit 1); exit 1; }; } 15145 fi 15146 else 15147 $as_echo "/* $configure_input */" \ 15148 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 15149 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 15150$as_echo "$as_me: error: could not create -" >&2;} 15151 { (exit 1); exit 1; }; } 15152 fi 15153# Compute "$ac_file"'s index in $config_headers. 15154_am_arg="$ac_file" 15155_am_stamp_count=1 15156for _am_header in $config_headers :; do 15157 case $_am_header in 15158 $_am_arg | $_am_arg:* ) 15159 break ;; 15160 * ) 15161 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15162 esac 15163done 15164echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15165$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15166 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15167 X"$_am_arg" : 'X\(//\)$' \| \ 15168 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15169$as_echo X"$_am_arg" | 15170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15171 s//\1/ 15172 q 15173 } 15174 /^X\(\/\/\)[^/].*/{ 15175 s//\1/ 15176 q 15177 } 15178 /^X\(\/\/\)$/{ 15179 s//\1/ 15180 q 15181 } 15182 /^X\(\/\).*/{ 15183 s//\1/ 15184 q 15185 } 15186 s/.*/./; q'`/stamp-h$_am_stamp_count 15187 ;; 15188 15189 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 15190$as_echo "$as_me: executing $ac_file commands" >&6;} 15191 ;; 15192 esac 15193 15194 15195 case $ac_file$ac_mode in 15196 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15197 # Autoconf 2.62 quotes --file arguments for eval, but not when files 15198 # are listed without --file. Let's play safe and only enable the eval 15199 # if we detect the quoting. 15200 case $CONFIG_FILES in 15201 *\'*) eval set x "$CONFIG_FILES" ;; 15202 *) set x $CONFIG_FILES ;; 15203 esac 15204 shift 15205 for mf 15206 do 15207 # Strip MF so we end up with the name of the file. 15208 mf=`echo "$mf" | sed -e 's/:.*$//'` 15209 # Check whether this is an Automake generated Makefile or not. 15210 # We used to match only the files named `Makefile.in', but 15211 # some people rename them; so instead we look at the file content. 15212 # Grep'ing the first line is not enough: some people post-process 15213 # each Makefile.in and add a new line on top of each file to say so. 15214 # Grep'ing the whole file is not good either: AIX grep has a line 15215 # limit of 2048, but all sed's we know have understand at least 4000. 15216 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 15217 dirpart=`$as_dirname -- "$mf" || 15218$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15219 X"$mf" : 'X\(//\)[^/]' \| \ 15220 X"$mf" : 'X\(//\)$' \| \ 15221 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 15222$as_echo X"$mf" | 15223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15224 s//\1/ 15225 q 15226 } 15227 /^X\(\/\/\)[^/].*/{ 15228 s//\1/ 15229 q 15230 } 15231 /^X\(\/\/\)$/{ 15232 s//\1/ 15233 q 15234 } 15235 /^X\(\/\).*/{ 15236 s//\1/ 15237 q 15238 } 15239 s/.*/./; q'` 15240 else 15241 continue 15242 fi 15243 # Extract the definition of DEPDIR, am__include, and am__quote 15244 # from the Makefile without running `make'. 15245 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15246 test -z "$DEPDIR" && continue 15247 am__include=`sed -n 's/^am__include = //p' < "$mf"` 15248 test -z "am__include" && continue 15249 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15250 # When using ansi2knr, U may be empty or an underscore; expand it 15251 U=`sed -n 's/^U = //p' < "$mf"` 15252 # Find all dependency output files, they are included files with 15253 # $(DEPDIR) in their names. We invoke sed twice because it is the 15254 # simplest approach to changing $(DEPDIR) to its actual value in the 15255 # expansion. 15256 for file in `sed -n " 15257 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15258 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 15259 # Make sure the directory exists. 15260 test -f "$dirpart/$file" && continue 15261 fdir=`$as_dirname -- "$file" || 15262$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15263 X"$file" : 'X\(//\)[^/]' \| \ 15264 X"$file" : 'X\(//\)$' \| \ 15265 X"$file" : 'X\(/\)' \| . 2>/dev/null || 15266$as_echo X"$file" | 15267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15268 s//\1/ 15269 q 15270 } 15271 /^X\(\/\/\)[^/].*/{ 15272 s//\1/ 15273 q 15274 } 15275 /^X\(\/\/\)$/{ 15276 s//\1/ 15277 q 15278 } 15279 /^X\(\/\).*/{ 15280 s//\1/ 15281 q 15282 } 15283 s/.*/./; q'` 15284 { as_dir=$dirpart/$fdir 15285 case $as_dir in #( 15286 -*) as_dir=./$as_dir;; 15287 esac 15288 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 15289 as_dirs= 15290 while :; do 15291 case $as_dir in #( 15292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15293 *) as_qdir=$as_dir;; 15294 esac 15295 as_dirs="'$as_qdir' $as_dirs" 15296 as_dir=`$as_dirname -- "$as_dir" || 15297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15298 X"$as_dir" : 'X\(//\)[^/]' \| \ 15299 X"$as_dir" : 'X\(//\)$' \| \ 15300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15301$as_echo X"$as_dir" | 15302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15303 s//\1/ 15304 q 15305 } 15306 /^X\(\/\/\)[^/].*/{ 15307 s//\1/ 15308 q 15309 } 15310 /^X\(\/\/\)$/{ 15311 s//\1/ 15312 q 15313 } 15314 /^X\(\/\).*/{ 15315 s//\1/ 15316 q 15317 } 15318 s/.*/./; q'` 15319 test -d "$as_dir" && break 15320 done 15321 test -z "$as_dirs" || eval "mkdir $as_dirs" 15322 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 15323$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 15324 { (exit 1); exit 1; }; }; } 15325 # echo "creating $dirpart/$file" 15326 echo '# dummy' > "$dirpart/$file" 15327 done 15328 done 15329} 15330 ;; 15331 "libtool":C) 15332 15333 # See if we are running on zsh, and set the options which allow our 15334 # commands through without removal of \ escapes. 15335 if test -n "${ZSH_VERSION+set}" ; then 15336 setopt NO_GLOB_SUBST 15337 fi 15338 15339 cfgfile="${ofile}T" 15340 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15341 $RM "$cfgfile" 15342 15343 cat <<_LT_EOF >> "$cfgfile" 15344#! $SHELL 15345 15346# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15347# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15348# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15349# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15350# 15351# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15352# 2006, 2007, 2008 Free Software Foundation, Inc. 15353# Written by Gordon Matzigkeit, 1996 15354# 15355# This file is part of GNU Libtool. 15356# 15357# GNU Libtool is free software; you can redistribute it and/or 15358# modify it under the terms of the GNU General Public License as 15359# published by the Free Software Foundation; either version 2 of 15360# the License, or (at your option) any later version. 15361# 15362# As a special exception to the GNU General Public License, 15363# if you distribute this file as part of a program or library that 15364# is built using GNU Libtool, you may include this file under the 15365# same distribution terms that you use for the rest of that program. 15366# 15367# GNU Libtool is distributed in the hope that it will be useful, 15368# but WITHOUT ANY WARRANTY; without even the implied warranty of 15369# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15370# GNU General Public License for more details. 15371# 15372# You should have received a copy of the GNU General Public License 15373# along with GNU Libtool; see the file COPYING. If not, a copy 15374# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15375# obtained by writing to the Free Software Foundation, Inc., 15376# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15377 15378 15379# The names of the tagged configurations supported by this script. 15380available_tags="" 15381 15382# ### BEGIN LIBTOOL CONFIG 15383 15384# Which release of libtool.m4 was used? 15385macro_version=$macro_version 15386macro_revision=$macro_revision 15387 15388# Whether or not to build shared libraries. 15389build_libtool_libs=$enable_shared 15390 15391# Whether or not to build static libraries. 15392build_old_libs=$enable_static 15393 15394# What type of objects to build. 15395pic_mode=$pic_mode 15396 15397# Whether or not to optimize for fast installation. 15398fast_install=$enable_fast_install 15399 15400# The host system. 15401host_alias=$host_alias 15402host=$host 15403host_os=$host_os 15404 15405# The build system. 15406build_alias=$build_alias 15407build=$build 15408build_os=$build_os 15409 15410# A sed program that does not truncate output. 15411SED=$lt_SED 15412 15413# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15414Xsed="\$SED -e 1s/^X//" 15415 15416# A grep program that handles long lines. 15417GREP=$lt_GREP 15418 15419# An ERE matcher. 15420EGREP=$lt_EGREP 15421 15422# A literal string matcher. 15423FGREP=$lt_FGREP 15424 15425# A BSD- or MS-compatible name lister. 15426NM=$lt_NM 15427 15428# Whether we need soft or hard links. 15429LN_S=$lt_LN_S 15430 15431# What is the maximum length of a command? 15432max_cmd_len=$max_cmd_len 15433 15434# Object file suffix (normally "o"). 15435objext=$ac_objext 15436 15437# Executable file suffix (normally ""). 15438exeext=$exeext 15439 15440# whether the shell understands "unset". 15441lt_unset=$lt_unset 15442 15443# turn spaces into newlines. 15444SP2NL=$lt_lt_SP2NL 15445 15446# turn newlines into spaces. 15447NL2SP=$lt_lt_NL2SP 15448 15449# How to create reloadable object files. 15450reload_flag=$lt_reload_flag 15451reload_cmds=$lt_reload_cmds 15452 15453# An object symbol dumper. 15454OBJDUMP=$lt_OBJDUMP 15455 15456# Method to check whether dependent libraries are shared objects. 15457deplibs_check_method=$lt_deplibs_check_method 15458 15459# Command to use when deplibs_check_method == "file_magic". 15460file_magic_cmd=$lt_file_magic_cmd 15461 15462# The archiver. 15463AR=$lt_AR 15464AR_FLAGS=$lt_AR_FLAGS 15465 15466# A symbol stripping program. 15467STRIP=$lt_STRIP 15468 15469# Commands used to install an old-style archive. 15470RANLIB=$lt_RANLIB 15471old_postinstall_cmds=$lt_old_postinstall_cmds 15472old_postuninstall_cmds=$lt_old_postuninstall_cmds 15473 15474# A C compiler. 15475LTCC=$lt_CC 15476 15477# LTCC compiler flags. 15478LTCFLAGS=$lt_CFLAGS 15479 15480# Take the output of nm and produce a listing of raw symbols and C names. 15481global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15482 15483# Transform the output of nm in a proper C declaration. 15484global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15485 15486# Transform the output of nm in a C name address pair. 15487global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15488 15489# Transform the output of nm in a C name address pair when lib prefix is needed. 15490global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15491 15492# The name of the directory that contains temporary libtool files. 15493objdir=$objdir 15494 15495# Shell to use when invoking shell scripts. 15496SHELL=$lt_SHELL 15497 15498# An echo program that does not interpret backslashes. 15499ECHO=$lt_ECHO 15500 15501# Used to examine libraries when file_magic_cmd begins with "file". 15502MAGIC_CMD=$MAGIC_CMD 15503 15504# Must we lock files when doing compilation? 15505need_locks=$lt_need_locks 15506 15507# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15508DSYMUTIL=$lt_DSYMUTIL 15509 15510# Tool to change global to local symbols on Mac OS X. 15511NMEDIT=$lt_NMEDIT 15512 15513# Tool to manipulate fat objects and archives on Mac OS X. 15514LIPO=$lt_LIPO 15515 15516# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15517OTOOL=$lt_OTOOL 15518 15519# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15520OTOOL64=$lt_OTOOL64 15521 15522# Old archive suffix (normally "a"). 15523libext=$libext 15524 15525# Shared library suffix (normally ".so"). 15526shrext_cmds=$lt_shrext_cmds 15527 15528# The commands to extract the exported symbol list from a shared archive. 15529extract_expsyms_cmds=$lt_extract_expsyms_cmds 15530 15531# Variables whose values should be saved in libtool wrapper scripts and 15532# restored at link time. 15533variables_saved_for_relink=$lt_variables_saved_for_relink 15534 15535# Do we need the "lib" prefix for modules? 15536need_lib_prefix=$need_lib_prefix 15537 15538# Do we need a version for libraries? 15539need_version=$need_version 15540 15541# Library versioning type. 15542version_type=$version_type 15543 15544# Shared library runtime path variable. 15545runpath_var=$runpath_var 15546 15547# Shared library path variable. 15548shlibpath_var=$shlibpath_var 15549 15550# Is shlibpath searched before the hard-coded library search path? 15551shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15552 15553# Format of library name prefix. 15554libname_spec=$lt_libname_spec 15555 15556# List of archive names. First name is the real one, the rest are links. 15557# The last name is the one that the linker finds with -lNAME 15558library_names_spec=$lt_library_names_spec 15559 15560# The coded name of the library, if different from the real name. 15561soname_spec=$lt_soname_spec 15562 15563# Command to use after installation of a shared archive. 15564postinstall_cmds=$lt_postinstall_cmds 15565 15566# Command to use after uninstallation of a shared archive. 15567postuninstall_cmds=$lt_postuninstall_cmds 15568 15569# Commands used to finish a libtool library installation in a directory. 15570finish_cmds=$lt_finish_cmds 15571 15572# As "finish_cmds", except a single script fragment to be evaled but 15573# not shown. 15574finish_eval=$lt_finish_eval 15575 15576# Whether we should hardcode library paths into libraries. 15577hardcode_into_libs=$hardcode_into_libs 15578 15579# Compile-time system search path for libraries. 15580sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15581 15582# Run-time system search path for libraries. 15583sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15584 15585# Whether dlopen is supported. 15586dlopen_support=$enable_dlopen 15587 15588# Whether dlopen of programs is supported. 15589dlopen_self=$enable_dlopen_self 15590 15591# Whether dlopen of statically linked programs is supported. 15592dlopen_self_static=$enable_dlopen_self_static 15593 15594# Commands to strip libraries. 15595old_striplib=$lt_old_striplib 15596striplib=$lt_striplib 15597 15598 15599# The linker used to build libraries. 15600LD=$lt_LD 15601 15602# Commands used to build an old-style archive. 15603old_archive_cmds=$lt_old_archive_cmds 15604 15605# A language specific compiler. 15606CC=$lt_compiler 15607 15608# Is the compiler the GNU compiler? 15609with_gcc=$GCC 15610 15611# Compiler flag to turn off builtin functions. 15612no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15613 15614# How to pass a linker flag through the compiler. 15615wl=$lt_lt_prog_compiler_wl 15616 15617# Additional compiler flags for building library objects. 15618pic_flag=$lt_lt_prog_compiler_pic 15619 15620# Compiler flag to prevent dynamic linking. 15621link_static_flag=$lt_lt_prog_compiler_static 15622 15623# Does compiler simultaneously support -c and -o options? 15624compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15625 15626# Whether or not to add -lc for building shared libraries. 15627build_libtool_need_lc=$archive_cmds_need_lc 15628 15629# Whether or not to disallow shared libs when runtime libs are static. 15630allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15631 15632# Compiler flag to allow reflexive dlopens. 15633export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15634 15635# Compiler flag to generate shared objects directly from archives. 15636whole_archive_flag_spec=$lt_whole_archive_flag_spec 15637 15638# Whether the compiler copes with passing no objects directly. 15639compiler_needs_object=$lt_compiler_needs_object 15640 15641# Create an old-style archive from a shared archive. 15642old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15643 15644# Create a temporary old-style archive to link instead of a shared archive. 15645old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15646 15647# Commands used to build a shared archive. 15648archive_cmds=$lt_archive_cmds 15649archive_expsym_cmds=$lt_archive_expsym_cmds 15650 15651# Commands used to build a loadable module if different from building 15652# a shared archive. 15653module_cmds=$lt_module_cmds 15654module_expsym_cmds=$lt_module_expsym_cmds 15655 15656# Whether we are building with GNU ld or not. 15657with_gnu_ld=$lt_with_gnu_ld 15658 15659# Flag that allows shared libraries with undefined symbols to be built. 15660allow_undefined_flag=$lt_allow_undefined_flag 15661 15662# Flag that enforces no undefined symbols. 15663no_undefined_flag=$lt_no_undefined_flag 15664 15665# Flag to hardcode \$libdir into a binary during linking. 15666# This must work even if \$libdir does not exist 15667hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15668 15669# If ld is used when linking, flag to hardcode \$libdir into a binary 15670# during linking. This must work even if \$libdir does not exist. 15671hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15672 15673# Whether we need a single "-rpath" flag with a separated argument. 15674hardcode_libdir_separator=$lt_hardcode_libdir_separator 15675 15676# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15677# DIR into the resulting binary. 15678hardcode_direct=$hardcode_direct 15679 15680# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15681# DIR into the resulting binary and the resulting library dependency is 15682# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15683# library is relocated. 15684hardcode_direct_absolute=$hardcode_direct_absolute 15685 15686# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15687# into the resulting binary. 15688hardcode_minus_L=$hardcode_minus_L 15689 15690# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15691# into the resulting binary. 15692hardcode_shlibpath_var=$hardcode_shlibpath_var 15693 15694# Set to "yes" if building a shared library automatically hardcodes DIR 15695# into the library and all subsequent libraries and executables linked 15696# against it. 15697hardcode_automatic=$hardcode_automatic 15698 15699# Set to yes if linker adds runtime paths of dependent libraries 15700# to runtime path list. 15701inherit_rpath=$inherit_rpath 15702 15703# Whether libtool must link a program against all its dependency libraries. 15704link_all_deplibs=$link_all_deplibs 15705 15706# Fix the shell variable \$srcfile for the compiler. 15707fix_srcfile_path=$lt_fix_srcfile_path 15708 15709# Set to "yes" if exported symbols are required. 15710always_export_symbols=$always_export_symbols 15711 15712# The commands to list exported symbols. 15713export_symbols_cmds=$lt_export_symbols_cmds 15714 15715# Symbols that should not be listed in the preloaded symbols. 15716exclude_expsyms=$lt_exclude_expsyms 15717 15718# Symbols that must always be exported. 15719include_expsyms=$lt_include_expsyms 15720 15721# Commands necessary for linking programs (against libraries) with templates. 15722prelink_cmds=$lt_prelink_cmds 15723 15724# Specify filename containing input files. 15725file_list_spec=$lt_file_list_spec 15726 15727# How to hardcode a shared library path into an executable. 15728hardcode_action=$hardcode_action 15729 15730# ### END LIBTOOL CONFIG 15731 15732_LT_EOF 15733 15734 case $host_os in 15735 aix3*) 15736 cat <<\_LT_EOF >> "$cfgfile" 15737# AIX sometimes has problems with the GCC collect2 program. For some 15738# reason, if we set the COLLECT_NAMES environment variable, the problems 15739# vanish in a puff of smoke. 15740if test "X${COLLECT_NAMES+set}" != Xset; then 15741 COLLECT_NAMES= 15742 export COLLECT_NAMES 15743fi 15744_LT_EOF 15745 ;; 15746 esac 15747 15748 15749ltmain="$ac_aux_dir/ltmain.sh" 15750 15751 15752 # We use sed instead of cat because bash on DJGPP gets confused if 15753 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15754 # text mode, it properly converts lines to CR/LF. This bash problem 15755 # is reportedly fixed, but why not run on old versions too? 15756 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15757 || (rm -f "$cfgfile"; exit 1) 15758 15759 case $xsi_shell in 15760 yes) 15761 cat << \_LT_EOF >> "$cfgfile" 15762 15763# func_dirname file append nondir_replacement 15764# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15765# otherwise set result to NONDIR_REPLACEMENT. 15766func_dirname () 15767{ 15768 case ${1} in 15769 */*) func_dirname_result="${1%/*}${2}" ;; 15770 * ) func_dirname_result="${3}" ;; 15771 esac 15772} 15773 15774# func_basename file 15775func_basename () 15776{ 15777 func_basename_result="${1##*/}" 15778} 15779 15780# func_dirname_and_basename file append nondir_replacement 15781# perform func_basename and func_dirname in a single function 15782# call: 15783# dirname: Compute the dirname of FILE. If nonempty, 15784# add APPEND to the result, otherwise set result 15785# to NONDIR_REPLACEMENT. 15786# value returned in "$func_dirname_result" 15787# basename: Compute filename of FILE. 15788# value retuned in "$func_basename_result" 15789# Implementation must be kept synchronized with func_dirname 15790# and func_basename. For efficiency, we do not delegate to 15791# those functions but instead duplicate the functionality here. 15792func_dirname_and_basename () 15793{ 15794 case ${1} in 15795 */*) func_dirname_result="${1%/*}${2}" ;; 15796 * ) func_dirname_result="${3}" ;; 15797 esac 15798 func_basename_result="${1##*/}" 15799} 15800 15801# func_stripname prefix suffix name 15802# strip PREFIX and SUFFIX off of NAME. 15803# PREFIX and SUFFIX must not contain globbing or regex special 15804# characters, hashes, percent signs, but SUFFIX may contain a leading 15805# dot (in which case that matches only a dot). 15806func_stripname () 15807{ 15808 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15809 # positional parameters, so assign one to ordinary parameter first. 15810 func_stripname_result=${3} 15811 func_stripname_result=${func_stripname_result#"${1}"} 15812 func_stripname_result=${func_stripname_result%"${2}"} 15813} 15814 15815# func_opt_split 15816func_opt_split () 15817{ 15818 func_opt_split_opt=${1%%=*} 15819 func_opt_split_arg=${1#*=} 15820} 15821 15822# func_lo2o object 15823func_lo2o () 15824{ 15825 case ${1} in 15826 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15827 *) func_lo2o_result=${1} ;; 15828 esac 15829} 15830 15831# func_xform libobj-or-source 15832func_xform () 15833{ 15834 func_xform_result=${1%.*}.lo 15835} 15836 15837# func_arith arithmetic-term... 15838func_arith () 15839{ 15840 func_arith_result=$(( $* )) 15841} 15842 15843# func_len string 15844# STRING may not start with a hyphen. 15845func_len () 15846{ 15847 func_len_result=${#1} 15848} 15849 15850_LT_EOF 15851 ;; 15852 *) # Bourne compatible functions. 15853 cat << \_LT_EOF >> "$cfgfile" 15854 15855# func_dirname file append nondir_replacement 15856# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15857# otherwise set result to NONDIR_REPLACEMENT. 15858func_dirname () 15859{ 15860 # Extract subdirectory from the argument. 15861 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15862 if test "X$func_dirname_result" = "X${1}"; then 15863 func_dirname_result="${3}" 15864 else 15865 func_dirname_result="$func_dirname_result${2}" 15866 fi 15867} 15868 15869# func_basename file 15870func_basename () 15871{ 15872 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15873} 15874 15875 15876# func_stripname prefix suffix name 15877# strip PREFIX and SUFFIX off of NAME. 15878# PREFIX and SUFFIX must not contain globbing or regex special 15879# characters, hashes, percent signs, but SUFFIX may contain a leading 15880# dot (in which case that matches only a dot). 15881# func_strip_suffix prefix name 15882func_stripname () 15883{ 15884 case ${2} in 15885 .*) func_stripname_result=`$ECHO "X${3}" \ 15886 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15887 *) func_stripname_result=`$ECHO "X${3}" \ 15888 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15889 esac 15890} 15891 15892# sed scripts: 15893my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15894my_sed_long_arg='1s/^-[^=]*=//' 15895 15896# func_opt_split 15897func_opt_split () 15898{ 15899 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15900 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15901} 15902 15903# func_lo2o object 15904func_lo2o () 15905{ 15906 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15907} 15908 15909# func_xform libobj-or-source 15910func_xform () 15911{ 15912 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15913} 15914 15915# func_arith arithmetic-term... 15916func_arith () 15917{ 15918 func_arith_result=`expr "$@"` 15919} 15920 15921# func_len string 15922# STRING may not start with a hyphen. 15923func_len () 15924{ 15925 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15926} 15927 15928_LT_EOF 15929esac 15930 15931case $lt_shell_append in 15932 yes) 15933 cat << \_LT_EOF >> "$cfgfile" 15934 15935# func_append var value 15936# Append VALUE to the end of shell variable VAR. 15937func_append () 15938{ 15939 eval "$1+=\$2" 15940} 15941_LT_EOF 15942 ;; 15943 *) 15944 cat << \_LT_EOF >> "$cfgfile" 15945 15946# func_append var value 15947# Append VALUE to the end of shell variable VAR. 15948func_append () 15949{ 15950 eval "$1=\$$1\$2" 15951} 15952 15953_LT_EOF 15954 ;; 15955 esac 15956 15957 15958 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15959 || (rm -f "$cfgfile"; exit 1) 15960 15961 mv -f "$cfgfile" "$ofile" || 15962 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15963 chmod +x "$ofile" 15964 15965 ;; 15966 15967 esac 15968done # for ac_tag 15969 15970 15971{ (exit 0); exit 0; } 15972_ACEOF 15973chmod +x $CONFIG_STATUS 15974ac_clean_files=$ac_clean_files_save 15975 15976test $ac_write_fail = 0 || 15977 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 15978$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 15979 { (exit 1); exit 1; }; } 15980 15981 15982# configure is writing to config.log, and then calls config.status. 15983# config.status does its own redirection, appending to config.log. 15984# Unfortunately, on DOS this fails, as config.log is still kept open 15985# by configure, so config.status won't be able to write to it; its 15986# output is simply discarded. So we exec the FD to /dev/null, 15987# effectively closing config.log, so it can be properly (re)opened and 15988# appended to by config.status. When coming back to configure, we 15989# need to make the FD available again. 15990if test "$no_create" != yes; then 15991 ac_cs_success=: 15992 ac_config_status_args= 15993 test "$silent" = yes && 15994 ac_config_status_args="$ac_config_status_args --quiet" 15995 exec 5>/dev/null 15996 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15997 exec 5>>config.log 15998 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15999 # would make configure fail if this is the last instruction. 16000 $ac_cs_success || { (exit 1); exit 1; } 16001fi 16002if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16003 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16004$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16005fi 16006 16007