configure revision c4ae5be6
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for xf86-video-ati 6.14.2. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42as_nl=' 43' 44export as_nl 45# Printing a long string crashes Solaris 7 /usr/bin/printf. 46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83# Support unset when possible. 84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85 as_unset=unset 86else 87 as_unset=false 88fi 89 90 91# IFS 92# We need space, tab and new line, in precisely that order. Quoting is 93# there to prevent editors from complaining about space-tab. 94# (If _AS_PATH_WALK were called with IFS unset, it would disable word 95# splitting by setting IFS to empty value.) 96IFS=" "" $as_nl" 97 98# Find who we are. Look in the path if we contain no directory separator. 99case $0 in 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102for as_dir in $PATH 103do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107done 108IFS=$as_save_IFS 109 110 ;; 111esac 112# We did not find ourselves, most probably we were run as `sh COMMAND' 113# in which case we are not to be found in the path. 114if test "x$as_myself" = x; then 115 as_myself=$0 116fi 117if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120fi 121 122# Work around bugs in pre-3.0 UWIN ksh. 123for as_var in ENV MAIL MAILPATH 124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# Required to use basename. 137if expr a : '\(a\)' >/dev/null 2>&1 && 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 139 as_expr=expr 140else 141 as_expr=false 142fi 143 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145 as_basename=basename 146else 147 as_basename=false 148fi 149 150 151# Name of the executable. 152as_me=`$as_basename -- "$0" || 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154 X"$0" : 'X\(//\)$' \| \ 155 X"$0" : 'X\(/\)' \| . 2>/dev/null || 156$as_echo X/"$0" | 157 sed '/^.*\/\([^/][^/]*\)\/*$/{ 158 s//\1/ 159 q 160 } 161 /^X\/\(\/\/\)$/{ 162 s//\1/ 163 q 164 } 165 /^X\/\(\/\).*/{ 166 s//\1/ 167 q 168 } 169 s/.*/./; q'` 170 171# CDPATH. 172$as_unset CDPATH 173 174 175if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 182 if test $as_have_required = yes && (eval ": 183(as_func_return () { 184 (exit \$1) 185} 186as_func_success () { 187 as_func_return 0 188} 189as_func_failure () { 190 as_func_return 1 191} 192as_func_ret_success () { 193 return 0 194} 195as_func_ret_failure () { 196 return 1 197} 198 199exitcode=0 200if as_func_success; then 201 : 202else 203 exitcode=1 204 echo as_func_success failed. 205fi 206 207if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210fi 211 212if as_func_ret_success; then 213 : 214else 215 exitcode=1 216 echo as_func_ret_success failed. 217fi 218 219if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222fi 223 224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226else 227 exitcode=1 228 echo positional parameters were not saved. 229fi 230 231test \$exitcode = 0) || { (exit 1); exit 1; } 232 233( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238") 2> /dev/null; then 239 : 240else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253done 254IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$as_shell") 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277_ASEOF 278}; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292esac 293 294fi 295 296 297: 298(as_func_return () { 299 (exit $1) 300} 301as_func_success () { 302 as_func_return 0 303} 304as_func_failure () { 305 as_func_return 1 306} 307as_func_ret_success () { 308 return 0 309} 310as_func_ret_failure () { 311 return 1 312} 313 314exitcode=0 315if as_func_success; then 316 : 317else 318 exitcode=1 319 echo as_func_success failed. 320fi 321 322if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325fi 326 327if as_func_ret_success; then 328 : 329else 330 exitcode=1 331 echo as_func_ret_success failed. 332fi 333 334if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337fi 338 339if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341else 342 exitcode=1 343 echo positional parameters were not saved. 344fi 345 346test $exitcode = 0) || { (exit 1); exit 1; } 347 348( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354_ASEOF 355}; then 356 break 357fi 358 359fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378fi 379 380 381fi 382 383fi 384 385 386 387(eval "as_func_return () { 388 (exit \$1) 389} 390as_func_success () { 391 as_func_return 0 392} 393as_func_failure () { 394 as_func_return 1 395} 396as_func_ret_success () { 397 return 0 398} 399as_func_ret_failure () { 400 return 1 401} 402 403exitcode=0 404if as_func_success; then 405 : 406else 407 exitcode=1 408 echo as_func_success failed. 409fi 410 411if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414fi 415 416if as_func_ret_success; then 417 : 418else 419 exitcode=1 420 echo as_func_ret_success failed. 421fi 422 423if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426fi 427 428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430else 431 exitcode=1 432 echo positional parameters were not saved. 433fi 434 435test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441} 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 460 sed -n ' 461 p 462 /[$]LINENO/= 463 ' <$as_myself | 464 sed ' 465 s/[$]LINENO.*/&-/ 466 t lineno 467 b 468 :lineno 469 N 470 :loop 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472 t loop 473 s/-\n.*// 474 ' >$as_me.lineno && 475 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 478 479 # Don't try to exec as it changes $[0], causing all sort of problems 480 # (the dirname of $[0] is not the place where we might find the 481 # original and so on. Autoconf is especially sensitive to this). 482 . "./$as_me.lineno" 483 # Exit status is that of the last command. 484 exit 485} 486 487 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 as_dirname=dirname 490else 491 as_dirname=false 492fi 493 494ECHO_C= ECHO_N= ECHO_T= 495case `echo -n x` in 496-n*) 497 case `echo 'x\c'` in 498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 500 esac;; 501*) 502 ECHO_N='-n';; 503esac 504if expr a : '\(a\)' >/dev/null 2>&1 && 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 506 as_expr=expr 507else 508 as_expr=false 509fi 510 511rm -f conf$$ conf$$.exe conf$$.file 512if test -d conf$$.dir; then 513 rm -f conf$$.dir/conf$$.file 514else 515 rm -f conf$$.dir 516 mkdir conf$$.dir 2>/dev/null 517fi 518if (echo >conf$$.file) 2>/dev/null; then 519 if ln -s conf$$.file conf$$ 2>/dev/null; then 520 as_ln_s='ln -s' 521 # ... but there are two gotchas: 522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 # In both cases, we have to default to `cp -p'. 525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 as_ln_s='cp -p' 527 elif ln conf$$.file conf$$ 2>/dev/null; then 528 as_ln_s=ln 529 else 530 as_ln_s='cp -p' 531 fi 532else 533 as_ln_s='cp -p' 534fi 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536rmdir conf$$.dir 2>/dev/null 537 538if mkdir -p . 2>/dev/null; then 539 as_mkdir_p=: 540else 541 test -d ./-p && rmdir ./-p 542 as_mkdir_p=false 543fi 544 545if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547else 548 if ls -dL / >/dev/null 2>&1; then 549 as_ls_L_option=L 550 else 551 as_ls_L_option= 552 fi 553 as_test_x=' 554 eval sh -c '\'' 555 if test -d "$1"; then 556 test -d "$1/."; 557 else 558 case $1 in 559 -*)set "./$1";; 560 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 ???[sx]*):;;*)false;;esac;fi 563 '\'' sh 564 ' 565fi 566as_executable_p=$as_test_x 567 568# Sed expression to map a string onto a valid CPP name. 569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571# Sed expression to map a string onto a valid variable name. 572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574 575 576 577# Check that we are running under the correct shell. 578SHELL=${CONFIG_SHELL-/bin/sh} 579 580case X$lt_ECHO in 581X*--fallback-echo) 582 # Remove one level of quotation (which was required for Make). 583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 584 ;; 585esac 586 587ECHO=${lt_ECHO-echo} 588if test "X$1" = X--no-reexec; then 589 # Discard the --no-reexec flag, and continue. 590 shift 591elif test "X$1" = X--fallback-echo; then 592 # Avoid inline document here, it may be left over 593 : 594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 595 # Yippee, $ECHO works! 596 : 597else 598 # Restart under the correct shell. 599 exec $SHELL "$0" --no-reexec ${1+"$@"} 600fi 601 602if test "X$1" = X--fallback-echo; then 603 # used as fallback echo 604 shift 605 cat <<_LT_EOF 606$* 607_LT_EOF 608 exit 0 609fi 610 611# The HP-UX ksh and POSIX shell print the target directory to stdout 612# if CDPATH is set. 613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 614 615if test -z "$lt_ECHO"; then 616 if test "X${echo_test_string+set}" != Xset; then 617 # find a string as large as possible, as long as the shell can cope with it 618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 620 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 622 then 623 break 624 fi 625 done 626 fi 627 628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 630 test "X$echo_testing_string" = "X$echo_test_string"; then 631 : 632 else 633 # The Solaris, AIX, and Digital Unix default echo programs unquote 634 # backslashes. This makes it impossible to quote backslashes using 635 # echo "$something" | sed 's/\\/\\\\/g' 636 # 637 # So, first we look for a working echo in the user's PATH. 638 639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 640 for dir in $PATH /usr/ucb; do 641 IFS="$lt_save_ifs" 642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 645 test "X$echo_testing_string" = "X$echo_test_string"; then 646 ECHO="$dir/echo" 647 break 648 fi 649 done 650 IFS="$lt_save_ifs" 651 652 if test "X$ECHO" = Xecho; then 653 # We didn't find a better echo, so look for alternatives. 654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 656 test "X$echo_testing_string" = "X$echo_test_string"; then 657 # This shell has a builtin print -r that does the trick. 658 ECHO='print -r' 659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 660 test "X$CONFIG_SHELL" != X/bin/ksh; then 661 # If we have ksh, try running configure again with it. 662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 663 export ORIGINAL_CONFIG_SHELL 664 CONFIG_SHELL=/bin/ksh 665 export CONFIG_SHELL 666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 667 else 668 # Try using printf. 669 ECHO='printf %s\n' 670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 672 test "X$echo_testing_string" = "X$echo_test_string"; then 673 # Cool, printf works 674 : 675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 676 test "X$echo_testing_string" = 'X\t' && 677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 678 test "X$echo_testing_string" = "X$echo_test_string"; then 679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 680 export CONFIG_SHELL 681 SHELL="$CONFIG_SHELL" 682 export SHELL 683 ECHO="$CONFIG_SHELL $0 --fallback-echo" 684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 685 test "X$echo_testing_string" = 'X\t' && 686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 687 test "X$echo_testing_string" = "X$echo_test_string"; then 688 ECHO="$CONFIG_SHELL $0 --fallback-echo" 689 else 690 # maybe with a smaller string... 691 prev=: 692 693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 695 then 696 break 697 fi 698 prev="$cmd" 699 done 700 701 if test "$prev" != 'sed 50q "$0"'; then 702 echo_test_string=`eval $prev` 703 export echo_test_string 704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 705 else 706 # Oops. We lost completely, so just stick with echo. 707 ECHO=echo 708 fi 709 fi 710 fi 711 fi 712 fi 713fi 714 715# Copy echo and quote the copy suitably for passing to libtool from 716# the Makefile, instead of quoting the original, which is used later. 717lt_ECHO=$ECHO 718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 720fi 721 722 723 724 725exec 7<&0 </dev/null 6>&1 726 727# Name of the host. 728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 729# so uname gets run too. 730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 731 732# 733# Initializations. 734# 735ac_default_prefix=/usr/local 736ac_clean_files= 737ac_config_libobj_dir=. 738LIBOBJS= 739cross_compiling=no 740subdirs= 741MFLAGS= 742MAKEFLAGS= 743SHELL=${CONFIG_SHELL-/bin/sh} 744 745# Identity of this package. 746PACKAGE_NAME='xf86-video-ati' 747PACKAGE_TARNAME='xf86-video-ati' 748PACKAGE_VERSION='6.14.2' 749PACKAGE_STRING='xf86-video-ati 6.14.2' 750PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 751 752ac_unique_file="Makefile.am" 753# Factoring default headers for most tests. 754ac_includes_default="\ 755#include <stdio.h> 756#ifdef HAVE_SYS_TYPES_H 757# include <sys/types.h> 758#endif 759#ifdef HAVE_SYS_STAT_H 760# include <sys/stat.h> 761#endif 762#ifdef STDC_HEADERS 763# include <stdlib.h> 764# include <stddef.h> 765#else 766# ifdef HAVE_STDLIB_H 767# include <stdlib.h> 768# endif 769#endif 770#ifdef HAVE_STRING_H 771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 772# include <memory.h> 773# endif 774# include <string.h> 775#endif 776#ifdef HAVE_STRINGS_H 777# include <strings.h> 778#endif 779#ifdef HAVE_INTTYPES_H 780# include <inttypes.h> 781#endif 782#ifdef HAVE_STDINT_H 783# include <stdint.h> 784#endif 785#ifdef HAVE_UNISTD_H 786# include <unistd.h> 787#endif" 788 789ac_subst_vars='am__EXEEXT_FALSE 790am__EXEEXT_TRUE 791LTLIBOBJS 792LIBOBJS 793DRIVER_NAME 794moduledir 795XSERVER_LIBPCIACCESS_FALSE 796XSERVER_LIBPCIACCESS_TRUE 797PCIACCESS_LIBS 798PCIACCESS_CFLAGS 799XF86DRM_MODE_FALSE 800XF86DRM_MODE_TRUE 801USE_EXA_FALSE 802USE_EXA_TRUE 803LIBUDEV_FALSE 804LIBUDEV_TRUE 805DRM_MODE_FALSE 806DRM_MODE_TRUE 807LIBUDEV_LIBS 808LIBUDEV_CFLAGS 809LIBDRM_RADEON_LIBS 810LIBDRM_RADEON_CFLAGS 811DRI_FALSE 812DRI_TRUE 813DRI_LIBS 814DRI_CFLAGS 815HAVE_XEXTPROTO_71_FALSE 816HAVE_XEXTPROTO_71_TRUE 817XEXT_LIBS 818XEXT_CFLAGS 819XORG_LIBS 820XORG_CFLAGS 821OTOOL64 822OTOOL 823LIPO 824NMEDIT 825DSYMUTIL 826lt_ECHO 827RANLIB 828AR 829OBJDUMP 830LN_S 831NM 832ac_ct_DUMPBIN 833DUMPBIN 834LD 835FGREP 836LIBTOOL 837MAINT 838MAINTAINER_MODE_FALSE 839MAINTAINER_MODE_TRUE 840am__fastdepCC_FALSE 841am__fastdepCC_TRUE 842CCDEPMODE 843AMDEPBACKSLASH 844AMDEP_FALSE 845AMDEP_TRUE 846am__quote 847am__include 848DEPDIR 849am__untar 850am__tar 851AMTAR 852am__leading_dot 853SET_MAKE 854AWK 855mkdir_p 856MKDIR_P 857INSTALL_STRIP_PROGRAM 858STRIP 859install_sh 860MAKEINFO 861AUTOHEADER 862AUTOMAKE 863AUTOCONF 864ACLOCAL 865VERSION 866PACKAGE 867CYGPATH_W 868am__isrc 869AM_BACKSLASH 870AM_DEFAULT_VERBOSITY 871MAN_SUBSTS 872XORG_MAN_PAGE 873ADMIN_MAN_DIR 874DRIVER_MAN_DIR 875MISC_MAN_DIR 876FILE_MAN_DIR 877LIB_MAN_DIR 878APP_MAN_DIR 879ADMIN_MAN_SUFFIX 880DRIVER_MAN_SUFFIX 881MISC_MAN_SUFFIX 882FILE_MAN_SUFFIX 883LIB_MAN_SUFFIX 884APP_MAN_SUFFIX 885SED 886host_os 887host_vendor 888host_cpu 889host 890build_os 891build_vendor 892build_cpu 893build 894INSTALL_CMD 895PKG_CONFIG 896CHANGELOG_CMD 897CWARNFLAGS 898EGREP 899GREP 900CPP 901OBJEXT 902EXEEXT 903ac_ct_CC 904CPPFLAGS 905LDFLAGS 906CFLAGS 907CC 908INSTALL_DATA 909INSTALL_SCRIPT 910INSTALL_PROGRAM 911target_alias 912host_alias 913build_alias 914LIBS 915ECHO_T 916ECHO_N 917ECHO_C 918DEFS 919mandir 920localedir 921libdir 922psdir 923pdfdir 924dvidir 925htmldir 926infodir 927docdir 928oldincludedir 929includedir 930localstatedir 931sharedstatedir 932sysconfdir 933datadir 934datarootdir 935libexecdir 936sbindir 937bindir 938program_transform_name 939prefix 940exec_prefix 941PACKAGE_BUGREPORT 942PACKAGE_STRING 943PACKAGE_VERSION 944PACKAGE_TARNAME 945PACKAGE_NAME 946PATH_SEPARATOR 947SHELL' 948ac_subst_files='' 949ac_user_opts=' 950enable_option_checking 951enable_strict_compilation 952enable_silent_rules 953enable_dependency_tracking 954enable_largefile 955enable_maintainer_mode 956enable_static 957enable_shared 958with_pic 959enable_fast_install 960with_gnu_ld 961enable_libtool_lock 962with_xorg_module_dir 963enable_dri 964enable_exa 965enable_kms 966' 967 ac_precious_vars='build_alias 968host_alias 969target_alias 970CC 971CFLAGS 972LDFLAGS 973LIBS 974CPPFLAGS 975CPP 976PKG_CONFIG 977XORG_CFLAGS 978XORG_LIBS 979XEXT_CFLAGS 980XEXT_LIBS 981DRI_CFLAGS 982DRI_LIBS 983LIBDRM_RADEON_CFLAGS 984LIBDRM_RADEON_LIBS 985LIBUDEV_CFLAGS 986LIBUDEV_LIBS 987PCIACCESS_CFLAGS 988PCIACCESS_LIBS' 989 990 991# Initialize some variables set by options. 992ac_init_help= 993ac_init_version=false 994ac_unrecognized_opts= 995ac_unrecognized_sep= 996# The variables have the same names as the options, with 997# dashes changed to underlines. 998cache_file=/dev/null 999exec_prefix=NONE 1000no_create= 1001no_recursion= 1002prefix=NONE 1003program_prefix=NONE 1004program_suffix=NONE 1005program_transform_name=s,x,x, 1006silent= 1007site= 1008srcdir= 1009verbose= 1010x_includes=NONE 1011x_libraries=NONE 1012 1013# Installation directory options. 1014# These are left unexpanded so users can "make install exec_prefix=/foo" 1015# and all the variables that are supposed to be based on exec_prefix 1016# by default will actually change. 1017# Use braces instead of parens because sh, perl, etc. also accept them. 1018# (The list follows the same order as the GNU Coding Standards.) 1019bindir='${exec_prefix}/bin' 1020sbindir='${exec_prefix}/sbin' 1021libexecdir='${exec_prefix}/libexec' 1022datarootdir='${prefix}/share' 1023datadir='${datarootdir}' 1024sysconfdir='${prefix}/etc' 1025sharedstatedir='${prefix}/com' 1026localstatedir='${prefix}/var' 1027includedir='${prefix}/include' 1028oldincludedir='/usr/include' 1029docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1030infodir='${datarootdir}/info' 1031htmldir='${docdir}' 1032dvidir='${docdir}' 1033pdfdir='${docdir}' 1034psdir='${docdir}' 1035libdir='${exec_prefix}/lib' 1036localedir='${datarootdir}/locale' 1037mandir='${datarootdir}/man' 1038 1039ac_prev= 1040ac_dashdash= 1041for ac_option 1042do 1043 # If the previous option needs an argument, assign it. 1044 if test -n "$ac_prev"; then 1045 eval $ac_prev=\$ac_option 1046 ac_prev= 1047 continue 1048 fi 1049 1050 case $ac_option in 1051 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1052 *) ac_optarg=yes ;; 1053 esac 1054 1055 # Accept the important Cygnus configure options, so we can diagnose typos. 1056 1057 case $ac_dashdash$ac_option in 1058 --) 1059 ac_dashdash=yes ;; 1060 1061 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1062 ac_prev=bindir ;; 1063 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1064 bindir=$ac_optarg ;; 1065 1066 -build | --build | --buil | --bui | --bu) 1067 ac_prev=build_alias ;; 1068 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1069 build_alias=$ac_optarg ;; 1070 1071 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1072 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1073 ac_prev=cache_file ;; 1074 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1075 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1076 cache_file=$ac_optarg ;; 1077 1078 --config-cache | -C) 1079 cache_file=config.cache ;; 1080 1081 -datadir | --datadir | --datadi | --datad) 1082 ac_prev=datadir ;; 1083 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1084 datadir=$ac_optarg ;; 1085 1086 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1087 | --dataroo | --dataro | --datar) 1088 ac_prev=datarootdir ;; 1089 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1090 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1091 datarootdir=$ac_optarg ;; 1092 1093 -disable-* | --disable-*) 1094 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1095 # Reject names that are not valid shell variable names. 1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1097 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1098 { (exit 1); exit 1; }; } 1099 ac_useropt_orig=$ac_useropt 1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1101 case $ac_user_opts in 1102 *" 1103"enable_$ac_useropt" 1104"*) ;; 1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1106 ac_unrecognized_sep=', ';; 1107 esac 1108 eval enable_$ac_useropt=no ;; 1109 1110 -docdir | --docdir | --docdi | --doc | --do) 1111 ac_prev=docdir ;; 1112 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1113 docdir=$ac_optarg ;; 1114 1115 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1116 ac_prev=dvidir ;; 1117 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1118 dvidir=$ac_optarg ;; 1119 1120 -enable-* | --enable-*) 1121 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1122 # Reject names that are not valid shell variable names. 1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1124 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1125 { (exit 1); exit 1; }; } 1126 ac_useropt_orig=$ac_useropt 1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1128 case $ac_user_opts in 1129 *" 1130"enable_$ac_useropt" 1131"*) ;; 1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1133 ac_unrecognized_sep=', ';; 1134 esac 1135 eval enable_$ac_useropt=\$ac_optarg ;; 1136 1137 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1138 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1139 | --exec | --exe | --ex) 1140 ac_prev=exec_prefix ;; 1141 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1142 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1143 | --exec=* | --exe=* | --ex=*) 1144 exec_prefix=$ac_optarg ;; 1145 1146 -gas | --gas | --ga | --g) 1147 # Obsolete; use --with-gas. 1148 with_gas=yes ;; 1149 1150 -help | --help | --hel | --he | -h) 1151 ac_init_help=long ;; 1152 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1153 ac_init_help=recursive ;; 1154 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1155 ac_init_help=short ;; 1156 1157 -host | --host | --hos | --ho) 1158 ac_prev=host_alias ;; 1159 -host=* | --host=* | --hos=* | --ho=*) 1160 host_alias=$ac_optarg ;; 1161 1162 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1163 ac_prev=htmldir ;; 1164 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1165 | --ht=*) 1166 htmldir=$ac_optarg ;; 1167 1168 -includedir | --includedir | --includedi | --included | --include \ 1169 | --includ | --inclu | --incl | --inc) 1170 ac_prev=includedir ;; 1171 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1172 | --includ=* | --inclu=* | --incl=* | --inc=*) 1173 includedir=$ac_optarg ;; 1174 1175 -infodir | --infodir | --infodi | --infod | --info | --inf) 1176 ac_prev=infodir ;; 1177 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1178 infodir=$ac_optarg ;; 1179 1180 -libdir | --libdir | --libdi | --libd) 1181 ac_prev=libdir ;; 1182 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1183 libdir=$ac_optarg ;; 1184 1185 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1186 | --libexe | --libex | --libe) 1187 ac_prev=libexecdir ;; 1188 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1189 | --libexe=* | --libex=* | --libe=*) 1190 libexecdir=$ac_optarg ;; 1191 1192 -localedir | --localedir | --localedi | --localed | --locale) 1193 ac_prev=localedir ;; 1194 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1195 localedir=$ac_optarg ;; 1196 1197 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1198 | --localstate | --localstat | --localsta | --localst | --locals) 1199 ac_prev=localstatedir ;; 1200 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1201 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1202 localstatedir=$ac_optarg ;; 1203 1204 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1205 ac_prev=mandir ;; 1206 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1207 mandir=$ac_optarg ;; 1208 1209 -nfp | --nfp | --nf) 1210 # Obsolete; use --without-fp. 1211 with_fp=no ;; 1212 1213 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1214 | --no-cr | --no-c | -n) 1215 no_create=yes ;; 1216 1217 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1218 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1219 no_recursion=yes ;; 1220 1221 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1222 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1223 | --oldin | --oldi | --old | --ol | --o) 1224 ac_prev=oldincludedir ;; 1225 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1226 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1227 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1228 oldincludedir=$ac_optarg ;; 1229 1230 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1231 ac_prev=prefix ;; 1232 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1233 prefix=$ac_optarg ;; 1234 1235 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1236 | --program-pre | --program-pr | --program-p) 1237 ac_prev=program_prefix ;; 1238 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1239 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1240 program_prefix=$ac_optarg ;; 1241 1242 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1243 | --program-suf | --program-su | --program-s) 1244 ac_prev=program_suffix ;; 1245 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1246 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1247 program_suffix=$ac_optarg ;; 1248 1249 -program-transform-name | --program-transform-name \ 1250 | --program-transform-nam | --program-transform-na \ 1251 | --program-transform-n | --program-transform- \ 1252 | --program-transform | --program-transfor \ 1253 | --program-transfo | --program-transf \ 1254 | --program-trans | --program-tran \ 1255 | --progr-tra | --program-tr | --program-t) 1256 ac_prev=program_transform_name ;; 1257 -program-transform-name=* | --program-transform-name=* \ 1258 | --program-transform-nam=* | --program-transform-na=* \ 1259 | --program-transform-n=* | --program-transform-=* \ 1260 | --program-transform=* | --program-transfor=* \ 1261 | --program-transfo=* | --program-transf=* \ 1262 | --program-trans=* | --program-tran=* \ 1263 | --progr-tra=* | --program-tr=* | --program-t=*) 1264 program_transform_name=$ac_optarg ;; 1265 1266 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1267 ac_prev=pdfdir ;; 1268 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1269 pdfdir=$ac_optarg ;; 1270 1271 -psdir | --psdir | --psdi | --psd | --ps) 1272 ac_prev=psdir ;; 1273 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1274 psdir=$ac_optarg ;; 1275 1276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1277 | -silent | --silent | --silen | --sile | --sil) 1278 silent=yes ;; 1279 1280 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1281 ac_prev=sbindir ;; 1282 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1283 | --sbi=* | --sb=*) 1284 sbindir=$ac_optarg ;; 1285 1286 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1287 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1288 | --sharedst | --shareds | --shared | --share | --shar \ 1289 | --sha | --sh) 1290 ac_prev=sharedstatedir ;; 1291 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1292 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1293 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1294 | --sha=* | --sh=*) 1295 sharedstatedir=$ac_optarg ;; 1296 1297 -site | --site | --sit) 1298 ac_prev=site ;; 1299 -site=* | --site=* | --sit=*) 1300 site=$ac_optarg ;; 1301 1302 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1303 ac_prev=srcdir ;; 1304 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1305 srcdir=$ac_optarg ;; 1306 1307 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1308 | --syscon | --sysco | --sysc | --sys | --sy) 1309 ac_prev=sysconfdir ;; 1310 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1311 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1312 sysconfdir=$ac_optarg ;; 1313 1314 -target | --target | --targe | --targ | --tar | --ta | --t) 1315 ac_prev=target_alias ;; 1316 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1317 target_alias=$ac_optarg ;; 1318 1319 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1320 verbose=yes ;; 1321 1322 -version | --version | --versio | --versi | --vers | -V) 1323 ac_init_version=: ;; 1324 1325 -with-* | --with-*) 1326 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1327 # Reject names that are not valid shell variable names. 1328 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1329 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1330 { (exit 1); exit 1; }; } 1331 ac_useropt_orig=$ac_useropt 1332 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1333 case $ac_user_opts in 1334 *" 1335"with_$ac_useropt" 1336"*) ;; 1337 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1338 ac_unrecognized_sep=', ';; 1339 esac 1340 eval with_$ac_useropt=\$ac_optarg ;; 1341 1342 -without-* | --without-*) 1343 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1344 # Reject names that are not valid shell variable names. 1345 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1346 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1347 { (exit 1); exit 1; }; } 1348 ac_useropt_orig=$ac_useropt 1349 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1350 case $ac_user_opts in 1351 *" 1352"with_$ac_useropt" 1353"*) ;; 1354 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1355 ac_unrecognized_sep=', ';; 1356 esac 1357 eval with_$ac_useropt=no ;; 1358 1359 --x) 1360 # Obsolete; use --with-x. 1361 with_x=yes ;; 1362 1363 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1364 | --x-incl | --x-inc | --x-in | --x-i) 1365 ac_prev=x_includes ;; 1366 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1367 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1368 x_includes=$ac_optarg ;; 1369 1370 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1371 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1372 ac_prev=x_libraries ;; 1373 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1374 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1375 x_libraries=$ac_optarg ;; 1376 1377 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1378Try \`$0 --help' for more information." >&2 1379 { (exit 1); exit 1; }; } 1380 ;; 1381 1382 *=*) 1383 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1384 # Reject names that are not valid shell variable names. 1385 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1386 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1387 { (exit 1); exit 1; }; } 1388 eval $ac_envvar=\$ac_optarg 1389 export $ac_envvar ;; 1390 1391 *) 1392 # FIXME: should be removed in autoconf 3.0. 1393 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1394 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1395 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1396 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1397 ;; 1398 1399 esac 1400done 1401 1402if test -n "$ac_prev"; then 1403 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1404 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1405 { (exit 1); exit 1; }; } 1406fi 1407 1408if test -n "$ac_unrecognized_opts"; then 1409 case $enable_option_checking in 1410 no) ;; 1411 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1412 { (exit 1); exit 1; }; } ;; 1413 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1414 esac 1415fi 1416 1417# Check all directory arguments for consistency. 1418for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1419 datadir sysconfdir sharedstatedir localstatedir includedir \ 1420 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1421 libdir localedir mandir 1422do 1423 eval ac_val=\$$ac_var 1424 # Remove trailing slashes. 1425 case $ac_val in 1426 */ ) 1427 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1428 eval $ac_var=\$ac_val;; 1429 esac 1430 # Be sure to have absolute directory names. 1431 case $ac_val in 1432 [\\/$]* | ?:[\\/]* ) continue;; 1433 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1434 esac 1435 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1436 { (exit 1); exit 1; }; } 1437done 1438 1439# There might be people who depend on the old broken behavior: `$host' 1440# used to hold the argument of --host etc. 1441# FIXME: To remove some day. 1442build=$build_alias 1443host=$host_alias 1444target=$target_alias 1445 1446# FIXME: To remove some day. 1447if test "x$host_alias" != x; then 1448 if test "x$build_alias" = x; then 1449 cross_compiling=maybe 1450 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1451 If a cross compiler is detected then cross compile mode will be used." >&2 1452 elif test "x$build_alias" != "x$host_alias"; then 1453 cross_compiling=yes 1454 fi 1455fi 1456 1457ac_tool_prefix= 1458test -n "$host_alias" && ac_tool_prefix=$host_alias- 1459 1460test "$silent" = yes && exec 6>/dev/null 1461 1462 1463ac_pwd=`pwd` && test -n "$ac_pwd" && 1464ac_ls_di=`ls -di .` && 1465ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1466 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1467 { (exit 1); exit 1; }; } 1468test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1469 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1470 { (exit 1); exit 1; }; } 1471 1472 1473# Find the source files, if location was not specified. 1474if test -z "$srcdir"; then 1475 ac_srcdir_defaulted=yes 1476 # Try the directory containing this script, then the parent directory. 1477 ac_confdir=`$as_dirname -- "$as_myself" || 1478$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1479 X"$as_myself" : 'X\(//\)[^/]' \| \ 1480 X"$as_myself" : 'X\(//\)$' \| \ 1481 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1482$as_echo X"$as_myself" | 1483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1484 s//\1/ 1485 q 1486 } 1487 /^X\(\/\/\)[^/].*/{ 1488 s//\1/ 1489 q 1490 } 1491 /^X\(\/\/\)$/{ 1492 s//\1/ 1493 q 1494 } 1495 /^X\(\/\).*/{ 1496 s//\1/ 1497 q 1498 } 1499 s/.*/./; q'` 1500 srcdir=$ac_confdir 1501 if test ! -r "$srcdir/$ac_unique_file"; then 1502 srcdir=.. 1503 fi 1504else 1505 ac_srcdir_defaulted=no 1506fi 1507if test ! -r "$srcdir/$ac_unique_file"; then 1508 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1509 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1510 { (exit 1); exit 1; }; } 1511fi 1512ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1513ac_abs_confdir=`( 1514 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1515 { (exit 1); exit 1; }; } 1516 pwd)` 1517# When building in place, set srcdir=. 1518if test "$ac_abs_confdir" = "$ac_pwd"; then 1519 srcdir=. 1520fi 1521# Remove unnecessary trailing slashes from srcdir. 1522# Double slashes in file names in object file debugging info 1523# mess up M-x gdb in Emacs. 1524case $srcdir in 1525*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1526esac 1527for ac_var in $ac_precious_vars; do 1528 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1529 eval ac_env_${ac_var}_value=\$${ac_var} 1530 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1531 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1532done 1533 1534# 1535# Report the --help message. 1536# 1537if test "$ac_init_help" = "long"; then 1538 # Omit some internal or obsolete options to make the list less imposing. 1539 # This message is too long to be a string in the A/UX 3.1 sh. 1540 cat <<_ACEOF 1541\`configure' configures xf86-video-ati 6.14.2 to adapt to many kinds of systems. 1542 1543Usage: $0 [OPTION]... [VAR=VALUE]... 1544 1545To assign environment variables (e.g., CC, CFLAGS...), specify them as 1546VAR=VALUE. See below for descriptions of some of the useful variables. 1547 1548Defaults for the options are specified in brackets. 1549 1550Configuration: 1551 -h, --help display this help and exit 1552 --help=short display options specific to this package 1553 --help=recursive display the short help of all the included packages 1554 -V, --version display version information and exit 1555 -q, --quiet, --silent do not print \`checking...' messages 1556 --cache-file=FILE cache test results in FILE [disabled] 1557 -C, --config-cache alias for \`--cache-file=config.cache' 1558 -n, --no-create do not create output files 1559 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1560 1561Installation directories: 1562 --prefix=PREFIX install architecture-independent files in PREFIX 1563 [$ac_default_prefix] 1564 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1565 [PREFIX] 1566 1567By default, \`make install' will install all the files in 1568\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1569an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1570for instance \`--prefix=\$HOME'. 1571 1572For better control, use the options below. 1573 1574Fine tuning of the installation directories: 1575 --bindir=DIR user executables [EPREFIX/bin] 1576 --sbindir=DIR system admin executables [EPREFIX/sbin] 1577 --libexecdir=DIR program executables [EPREFIX/libexec] 1578 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1579 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1580 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1581 --libdir=DIR object code libraries [EPREFIX/lib] 1582 --includedir=DIR C header files [PREFIX/include] 1583 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1584 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1585 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1586 --infodir=DIR info documentation [DATAROOTDIR/info] 1587 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1588 --mandir=DIR man documentation [DATAROOTDIR/man] 1589 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-ati] 1590 --htmldir=DIR html documentation [DOCDIR] 1591 --dvidir=DIR dvi documentation [DOCDIR] 1592 --pdfdir=DIR pdf documentation [DOCDIR] 1593 --psdir=DIR ps documentation [DOCDIR] 1594_ACEOF 1595 1596 cat <<\_ACEOF 1597 1598Program names: 1599 --program-prefix=PREFIX prepend PREFIX to installed program names 1600 --program-suffix=SUFFIX append SUFFIX to installed program names 1601 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1602 1603System types: 1604 --build=BUILD configure for building on BUILD [guessed] 1605 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1606_ACEOF 1607fi 1608 1609if test -n "$ac_init_help"; then 1610 case $ac_init_help in 1611 short | recursive ) echo "Configuration of xf86-video-ati 6.14.2:";; 1612 esac 1613 cat <<\_ACEOF 1614 1615Optional Features: 1616 --disable-option-checking ignore unrecognized --enable/--with options 1617 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1618 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1619 --enable-strict-compilation 1620 Enable all warnings from compiler and make them 1621 errors (default: disabled) 1622 --enable-silent-rules less verbose build output (undo: `make V=1') 1623 --disable-silent-rules verbose build output (undo: `make V=0') 1624 --disable-dependency-tracking speeds up one-time build 1625 --enable-dependency-tracking do not reject slow dependency extractors 1626 --disable-largefile omit support for large files 1627 --enable-maintainer-mode enable make rules and dependencies not useful 1628 (and sometimes confusing) to the casual installer 1629 --enable-static[=PKGS] build static libraries [default=no] 1630 --enable-shared[=PKGS] build shared libraries [default=yes] 1631 --enable-fast-install[=PKGS] 1632 optimize for fast installation [default=yes] 1633 --disable-libtool-lock avoid locking (might break parallel builds) 1634 --disable-dri Disable DRI support [default=auto] 1635 --disable-exa Disable EXA support [default=enabled] 1636 --disable-kms Disable KMS support [default=enabled] 1637 1638Optional Packages: 1639 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1640 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1641 --with-pic try to use only PIC/non-PIC objects [default=use 1642 both] 1643 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1644 --with-xorg-module-dir=DIR 1645 Default xorg module directory 1646 [default=$libdir/xorg/modules] 1647 1648Some influential environment variables: 1649 CC C compiler command 1650 CFLAGS C compiler flags 1651 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1652 nonstandard directory <lib dir> 1653 LIBS libraries to pass to the linker, e.g. -l<library> 1654 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1655 you have headers in a nonstandard directory <include dir> 1656 CPP C preprocessor 1657 PKG_CONFIG path to pkg-config utility 1658 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1659 XORG_LIBS linker flags for XORG, overriding pkg-config 1660 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1661 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1662 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config 1663 DRI_LIBS linker flags for DRI, overriding pkg-config 1664 LIBDRM_RADEON_CFLAGS 1665 C compiler flags for LIBDRM_RADEON, overriding pkg-config 1666 LIBDRM_RADEON_LIBS 1667 linker flags for LIBDRM_RADEON, overriding pkg-config 1668 LIBUDEV_CFLAGS 1669 C compiler flags for LIBUDEV, overriding pkg-config 1670 LIBUDEV_LIBS 1671 linker flags for LIBUDEV, overriding pkg-config 1672 PCIACCESS_CFLAGS 1673 C compiler flags for PCIACCESS, overriding pkg-config 1674 PCIACCESS_LIBS 1675 linker flags for PCIACCESS, overriding pkg-config 1676 1677Use these variables to override the choices made by `configure' or to help 1678it to find libraries and programs with nonstandard names/locations. 1679 1680Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1681_ACEOF 1682ac_status=$? 1683fi 1684 1685if test "$ac_init_help" = "recursive"; then 1686 # If there are subdirs, report their specific --help. 1687 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1688 test -d "$ac_dir" || 1689 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1690 continue 1691 ac_builddir=. 1692 1693case "$ac_dir" in 1694.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1695*) 1696 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1697 # A ".." for each directory in $ac_dir_suffix. 1698 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1699 case $ac_top_builddir_sub in 1700 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1701 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1702 esac ;; 1703esac 1704ac_abs_top_builddir=$ac_pwd 1705ac_abs_builddir=$ac_pwd$ac_dir_suffix 1706# for backward compatibility: 1707ac_top_builddir=$ac_top_build_prefix 1708 1709case $srcdir in 1710 .) # We are building in place. 1711 ac_srcdir=. 1712 ac_top_srcdir=$ac_top_builddir_sub 1713 ac_abs_top_srcdir=$ac_pwd ;; 1714 [\\/]* | ?:[\\/]* ) # Absolute name. 1715 ac_srcdir=$srcdir$ac_dir_suffix; 1716 ac_top_srcdir=$srcdir 1717 ac_abs_top_srcdir=$srcdir ;; 1718 *) # Relative name. 1719 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1720 ac_top_srcdir=$ac_top_build_prefix$srcdir 1721 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1722esac 1723ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1724 1725 cd "$ac_dir" || { ac_status=$?; continue; } 1726 # Check for guested configure. 1727 if test -f "$ac_srcdir/configure.gnu"; then 1728 echo && 1729 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1730 elif test -f "$ac_srcdir/configure"; then 1731 echo && 1732 $SHELL "$ac_srcdir/configure" --help=recursive 1733 else 1734 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1735 fi || ac_status=$? 1736 cd "$ac_pwd" || { ac_status=$?; break; } 1737 done 1738fi 1739 1740test -n "$ac_init_help" && exit $ac_status 1741if $ac_init_version; then 1742 cat <<\_ACEOF 1743xf86-video-ati configure 6.14.2 1744generated by GNU Autoconf 2.63 1745 1746Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17472002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1748This configure script is free software; the Free Software Foundation 1749gives unlimited permission to copy, distribute and modify it. 1750_ACEOF 1751 exit 1752fi 1753cat >config.log <<_ACEOF 1754This file contains any messages produced by compilers while 1755running configure, to aid debugging if configure makes a mistake. 1756 1757It was created by xf86-video-ati $as_me 6.14.2, which was 1758generated by GNU Autoconf 2.63. Invocation command line was 1759 1760 $ $0 $@ 1761 1762_ACEOF 1763exec 5>>config.log 1764{ 1765cat <<_ASUNAME 1766## --------- ## 1767## Platform. ## 1768## --------- ## 1769 1770hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1771uname -m = `(uname -m) 2>/dev/null || echo unknown` 1772uname -r = `(uname -r) 2>/dev/null || echo unknown` 1773uname -s = `(uname -s) 2>/dev/null || echo unknown` 1774uname -v = `(uname -v) 2>/dev/null || echo unknown` 1775 1776/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1777/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1778 1779/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1780/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1781/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1782/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1783/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1784/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1785/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1786 1787_ASUNAME 1788 1789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1790for as_dir in $PATH 1791do 1792 IFS=$as_save_IFS 1793 test -z "$as_dir" && as_dir=. 1794 $as_echo "PATH: $as_dir" 1795done 1796IFS=$as_save_IFS 1797 1798} >&5 1799 1800cat >&5 <<_ACEOF 1801 1802 1803## ----------- ## 1804## Core tests. ## 1805## ----------- ## 1806 1807_ACEOF 1808 1809 1810# Keep a trace of the command line. 1811# Strip out --no-create and --no-recursion so they do not pile up. 1812# Strip out --silent because we don't want to record it for future runs. 1813# Also quote any args containing shell meta-characters. 1814# Make two passes to allow for proper duplicate-argument suppression. 1815ac_configure_args= 1816ac_configure_args0= 1817ac_configure_args1= 1818ac_must_keep_next=false 1819for ac_pass in 1 2 1820do 1821 for ac_arg 1822 do 1823 case $ac_arg in 1824 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1825 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1826 | -silent | --silent | --silen | --sile | --sil) 1827 continue ;; 1828 *\'*) 1829 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1830 esac 1831 case $ac_pass in 1832 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1833 2) 1834 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1835 if test $ac_must_keep_next = true; then 1836 ac_must_keep_next=false # Got value, back to normal. 1837 else 1838 case $ac_arg in 1839 *=* | --config-cache | -C | -disable-* | --disable-* \ 1840 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1841 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1842 | -with-* | --with-* | -without-* | --without-* | --x) 1843 case "$ac_configure_args0 " in 1844 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1845 esac 1846 ;; 1847 -* ) ac_must_keep_next=true ;; 1848 esac 1849 fi 1850 ac_configure_args="$ac_configure_args '$ac_arg'" 1851 ;; 1852 esac 1853 done 1854done 1855$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1856$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1857 1858# When interrupted or exit'd, cleanup temporary files, and complete 1859# config.log. We remove comments because anyway the quotes in there 1860# would cause problems or look ugly. 1861# WARNING: Use '\'' to represent an apostrophe within the trap. 1862# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1863trap 'exit_status=$? 1864 # Save into config.log some information that might help in debugging. 1865 { 1866 echo 1867 1868 cat <<\_ASBOX 1869## ---------------- ## 1870## Cache variables. ## 1871## ---------------- ## 1872_ASBOX 1873 echo 1874 # The following way of writing the cache mishandles newlines in values, 1875( 1876 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1877 eval ac_val=\$$ac_var 1878 case $ac_val in #( 1879 *${as_nl}*) 1880 case $ac_var in #( 1881 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1882$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1883 esac 1884 case $ac_var in #( 1885 _ | IFS | as_nl) ;; #( 1886 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1887 *) $as_unset $ac_var ;; 1888 esac ;; 1889 esac 1890 done 1891 (set) 2>&1 | 1892 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1893 *${as_nl}ac_space=\ *) 1894 sed -n \ 1895 "s/'\''/'\''\\\\'\'''\''/g; 1896 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1897 ;; #( 1898 *) 1899 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1900 ;; 1901 esac | 1902 sort 1903) 1904 echo 1905 1906 cat <<\_ASBOX 1907## ----------------- ## 1908## Output variables. ## 1909## ----------------- ## 1910_ASBOX 1911 echo 1912 for ac_var in $ac_subst_vars 1913 do 1914 eval ac_val=\$$ac_var 1915 case $ac_val in 1916 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1917 esac 1918 $as_echo "$ac_var='\''$ac_val'\''" 1919 done | sort 1920 echo 1921 1922 if test -n "$ac_subst_files"; then 1923 cat <<\_ASBOX 1924## ------------------- ## 1925## File substitutions. ## 1926## ------------------- ## 1927_ASBOX 1928 echo 1929 for ac_var in $ac_subst_files 1930 do 1931 eval ac_val=\$$ac_var 1932 case $ac_val in 1933 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1934 esac 1935 $as_echo "$ac_var='\''$ac_val'\''" 1936 done | sort 1937 echo 1938 fi 1939 1940 if test -s confdefs.h; then 1941 cat <<\_ASBOX 1942## ----------- ## 1943## confdefs.h. ## 1944## ----------- ## 1945_ASBOX 1946 echo 1947 cat confdefs.h 1948 echo 1949 fi 1950 test "$ac_signal" != 0 && 1951 $as_echo "$as_me: caught signal $ac_signal" 1952 $as_echo "$as_me: exit $exit_status" 1953 } >&5 1954 rm -f core *.core core.conftest.* && 1955 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1956 exit $exit_status 1957' 0 1958for ac_signal in 1 2 13 15; do 1959 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1960done 1961ac_signal=0 1962 1963# confdefs.h avoids OS command line length limits that DEFS can exceed. 1964rm -f -r conftest* confdefs.h 1965 1966# Predefined preprocessor variables. 1967 1968cat >>confdefs.h <<_ACEOF 1969#define PACKAGE_NAME "$PACKAGE_NAME" 1970_ACEOF 1971 1972 1973cat >>confdefs.h <<_ACEOF 1974#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1975_ACEOF 1976 1977 1978cat >>confdefs.h <<_ACEOF 1979#define PACKAGE_VERSION "$PACKAGE_VERSION" 1980_ACEOF 1981 1982 1983cat >>confdefs.h <<_ACEOF 1984#define PACKAGE_STRING "$PACKAGE_STRING" 1985_ACEOF 1986 1987 1988cat >>confdefs.h <<_ACEOF 1989#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1990_ACEOF 1991 1992 1993# Let the site file select an alternate cache file if it wants to. 1994# Prefer an explicitly selected file to automatically selected ones. 1995ac_site_file1=NONE 1996ac_site_file2=NONE 1997if test -n "$CONFIG_SITE"; then 1998 ac_site_file1=$CONFIG_SITE 1999elif test "x$prefix" != xNONE; then 2000 ac_site_file1=$prefix/share/config.site 2001 ac_site_file2=$prefix/etc/config.site 2002else 2003 ac_site_file1=$ac_default_prefix/share/config.site 2004 ac_site_file2=$ac_default_prefix/etc/config.site 2005fi 2006for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2007do 2008 test "x$ac_site_file" = xNONE && continue 2009 if test -r "$ac_site_file"; then 2010 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 2011$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2012 sed 's/^/| /' "$ac_site_file" >&5 2013 . "$ac_site_file" 2014 fi 2015done 2016 2017if test -r "$cache_file"; then 2018 # Some versions of bash will fail to source /dev/null (special 2019 # files actually), so we avoid doing that. 2020 if test -f "$cache_file"; then 2021 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 2022$as_echo "$as_me: loading cache $cache_file" >&6;} 2023 case $cache_file in 2024 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2025 *) . "./$cache_file";; 2026 esac 2027 fi 2028else 2029 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 2030$as_echo "$as_me: creating cache $cache_file" >&6;} 2031 >$cache_file 2032fi 2033 2034# Check that the precious variables saved in the cache have kept the same 2035# value. 2036ac_cache_corrupted=false 2037for ac_var in $ac_precious_vars; do 2038 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2039 eval ac_new_set=\$ac_env_${ac_var}_set 2040 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2041 eval ac_new_val=\$ac_env_${ac_var}_value 2042 case $ac_old_set,$ac_new_set in 2043 set,) 2044 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2045$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2046 ac_cache_corrupted=: ;; 2047 ,set) 2048 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2049$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2050 ac_cache_corrupted=: ;; 2051 ,);; 2052 *) 2053 if test "x$ac_old_val" != "x$ac_new_val"; then 2054 # differences in whitespace do not lead to failure. 2055 ac_old_val_w=`echo x $ac_old_val` 2056 ac_new_val_w=`echo x $ac_new_val` 2057 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2058 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2059$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2060 ac_cache_corrupted=: 2061 else 2062 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2063$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2064 eval $ac_var=\$ac_old_val 2065 fi 2066 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2067$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2068 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2069$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2070 fi;; 2071 esac 2072 # Pass precious variables to config.status. 2073 if test "$ac_new_set" = set; then 2074 case $ac_new_val in 2075 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2076 *) ac_arg=$ac_var=$ac_new_val ;; 2077 esac 2078 case " $ac_configure_args " in 2079 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2080 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2081 esac 2082 fi 2083done 2084if $ac_cache_corrupted; then 2085 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2087 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2088$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2089 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2090$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2091 { (exit 1); exit 1; }; } 2092fi 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118ac_ext=c 2119ac_cpp='$CPP $CPPFLAGS' 2120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2122ac_compiler_gnu=$ac_cv_c_compiler_gnu 2123 2124 2125 2126 2127ac_config_headers="$ac_config_headers config.h" 2128 2129 2130# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142ac_aux_dir= 2143for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2144 if test -f "$ac_dir/install-sh"; then 2145 ac_aux_dir=$ac_dir 2146 ac_install_sh="$ac_aux_dir/install-sh -c" 2147 break 2148 elif test -f "$ac_dir/install.sh"; then 2149 ac_aux_dir=$ac_dir 2150 ac_install_sh="$ac_aux_dir/install.sh -c" 2151 break 2152 elif test -f "$ac_dir/shtool"; then 2153 ac_aux_dir=$ac_dir 2154 ac_install_sh="$ac_aux_dir/shtool install -c" 2155 break 2156 fi 2157done 2158if test -z "$ac_aux_dir"; then 2159 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2160$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2161 { (exit 1); exit 1; }; } 2162fi 2163 2164# These three variables are undocumented and unsupported, 2165# and are intended to be withdrawn in a future Autoconf release. 2166# They can cause serious problems if a builder's source tree is in a directory 2167# whose full name contains unusual characters. 2168ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2169ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2170ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2171 2172 2173# Find a good install program. We prefer a C program (faster), 2174# so one script is as good as another. But avoid the broken or 2175# incompatible versions: 2176# SysV /etc/install, /usr/sbin/install 2177# SunOS /usr/etc/install 2178# IRIX /sbin/install 2179# AIX /bin/install 2180# AmigaOS /C/install, which installs bootblocks on floppy discs 2181# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2182# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2183# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2184# OS/2's system install, which has a completely different semantic 2185# ./install, which can be erroneously created by make from ./install.sh. 2186# Reject install programs that cannot install multiple files. 2187{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2188$as_echo_n "checking for a BSD-compatible install... " >&6; } 2189if test -z "$INSTALL"; then 2190if test "${ac_cv_path_install+set}" = set; then 2191 $as_echo_n "(cached) " >&6 2192else 2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2194for as_dir in $PATH 2195do 2196 IFS=$as_save_IFS 2197 test -z "$as_dir" && as_dir=. 2198 # Account for people who put trailing slashes in PATH elements. 2199case $as_dir/ in 2200 ./ | .// | /cC/* | \ 2201 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2202 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2203 /usr/ucb/* ) ;; 2204 *) 2205 # OSF1 and SCO ODT 3.0 have their own names for install. 2206 # Don't use installbsd from OSF since it installs stuff as root 2207 # by default. 2208 for ac_prog in ginstall scoinst install; do 2209 for ac_exec_ext in '' $ac_executable_extensions; do 2210 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2211 if test $ac_prog = install && 2212 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2213 # AIX install. It has an incompatible calling convention. 2214 : 2215 elif test $ac_prog = install && 2216 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2217 # program-specific install script used by HP pwplus--don't use. 2218 : 2219 else 2220 rm -rf conftest.one conftest.two conftest.dir 2221 echo one > conftest.one 2222 echo two > conftest.two 2223 mkdir conftest.dir 2224 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2225 test -s conftest.one && test -s conftest.two && 2226 test -s conftest.dir/conftest.one && 2227 test -s conftest.dir/conftest.two 2228 then 2229 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2230 break 3 2231 fi 2232 fi 2233 fi 2234 done 2235 done 2236 ;; 2237esac 2238 2239done 2240IFS=$as_save_IFS 2241 2242rm -rf conftest.one conftest.two conftest.dir 2243 2244fi 2245 if test "${ac_cv_path_install+set}" = set; then 2246 INSTALL=$ac_cv_path_install 2247 else 2248 # As a last resort, use the slow shell script. Don't cache a 2249 # value for INSTALL within a source directory, because that will 2250 # break other packages using the cache if that directory is 2251 # removed, or if the value is a relative name. 2252 INSTALL=$ac_install_sh 2253 fi 2254fi 2255{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2256$as_echo "$INSTALL" >&6; } 2257 2258# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2259# It thinks the first close brace ends the variable substitution. 2260test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2261 2262test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2263 2264test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2265 2266ac_ext=c 2267ac_cpp='$CPP $CPPFLAGS' 2268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2270ac_compiler_gnu=$ac_cv_c_compiler_gnu 2271if test -n "$ac_tool_prefix"; then 2272 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2273set dummy ${ac_tool_prefix}gcc; ac_word=$2 2274{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2275$as_echo_n "checking for $ac_word... " >&6; } 2276if test "${ac_cv_prog_CC+set}" = set; then 2277 $as_echo_n "(cached) " >&6 2278else 2279 if test -n "$CC"; then 2280 ac_cv_prog_CC="$CC" # Let the user override the test. 2281else 2282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2283for as_dir in $PATH 2284do 2285 IFS=$as_save_IFS 2286 test -z "$as_dir" && as_dir=. 2287 for ac_exec_ext in '' $ac_executable_extensions; do 2288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2289 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2290 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2291 break 2 2292 fi 2293done 2294done 2295IFS=$as_save_IFS 2296 2297fi 2298fi 2299CC=$ac_cv_prog_CC 2300if test -n "$CC"; then 2301 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2302$as_echo "$CC" >&6; } 2303else 2304 { $as_echo "$as_me:$LINENO: result: no" >&5 2305$as_echo "no" >&6; } 2306fi 2307 2308 2309fi 2310if test -z "$ac_cv_prog_CC"; then 2311 ac_ct_CC=$CC 2312 # Extract the first word of "gcc", so it can be a program name with args. 2313set dummy gcc; 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_ac_ct_CC+set}" = set; then 2317 $as_echo_n "(cached) " >&6 2318else 2319 if test -n "$ac_ct_CC"; then 2320 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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_ac_ct_CC="gcc" 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 2339ac_ct_CC=$ac_cv_prog_ac_ct_CC 2340if test -n "$ac_ct_CC"; then 2341 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2342$as_echo "$ac_ct_CC" >&6; } 2343else 2344 { $as_echo "$as_me:$LINENO: result: no" >&5 2345$as_echo "no" >&6; } 2346fi 2347 2348 if test "x$ac_ct_CC" = x; then 2349 CC="" 2350 else 2351 case $cross_compiling:$ac_tool_warned in 2352yes:) 2353{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2355ac_tool_warned=yes ;; 2356esac 2357 CC=$ac_ct_CC 2358 fi 2359else 2360 CC="$ac_cv_prog_CC" 2361fi 2362 2363if test -z "$CC"; then 2364 if test -n "$ac_tool_prefix"; then 2365 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2366set dummy ${ac_tool_prefix}cc; ac_word=$2 2367{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2368$as_echo_n "checking for $ac_word... " >&6; } 2369if test "${ac_cv_prog_CC+set}" = set; then 2370 $as_echo_n "(cached) " >&6 2371else 2372 if test -n "$CC"; then 2373 ac_cv_prog_CC="$CC" # Let the user override the test. 2374else 2375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2376for as_dir in $PATH 2377do 2378 IFS=$as_save_IFS 2379 test -z "$as_dir" && as_dir=. 2380 for ac_exec_ext in '' $ac_executable_extensions; do 2381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2382 ac_cv_prog_CC="${ac_tool_prefix}cc" 2383 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2384 break 2 2385 fi 2386done 2387done 2388IFS=$as_save_IFS 2389 2390fi 2391fi 2392CC=$ac_cv_prog_CC 2393if test -n "$CC"; then 2394 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2395$as_echo "$CC" >&6; } 2396else 2397 { $as_echo "$as_me:$LINENO: result: no" >&5 2398$as_echo "no" >&6; } 2399fi 2400 2401 2402 fi 2403fi 2404if test -z "$CC"; then 2405 # Extract the first word of "cc", so it can be a program name with args. 2406set dummy cc; ac_word=$2 2407{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2408$as_echo_n "checking for $ac_word... " >&6; } 2409if test "${ac_cv_prog_CC+set}" = set; then 2410 $as_echo_n "(cached) " >&6 2411else 2412 if test -n "$CC"; then 2413 ac_cv_prog_CC="$CC" # Let the user override the test. 2414else 2415 ac_prog_rejected=no 2416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2417for as_dir in $PATH 2418do 2419 IFS=$as_save_IFS 2420 test -z "$as_dir" && as_dir=. 2421 for ac_exec_ext in '' $ac_executable_extensions; do 2422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2423 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2424 ac_prog_rejected=yes 2425 continue 2426 fi 2427 ac_cv_prog_CC="cc" 2428 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2429 break 2 2430 fi 2431done 2432done 2433IFS=$as_save_IFS 2434 2435if test $ac_prog_rejected = yes; then 2436 # We found a bogon in the path, so make sure we never use it. 2437 set dummy $ac_cv_prog_CC 2438 shift 2439 if test $# != 0; then 2440 # We chose a different compiler from the bogus one. 2441 # However, it has the same basename, so the bogon will be chosen 2442 # first if we set CC to just the basename; use the full file name. 2443 shift 2444 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2445 fi 2446fi 2447fi 2448fi 2449CC=$ac_cv_prog_CC 2450if test -n "$CC"; then 2451 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2452$as_echo "$CC" >&6; } 2453else 2454 { $as_echo "$as_me:$LINENO: result: no" >&5 2455$as_echo "no" >&6; } 2456fi 2457 2458 2459fi 2460if test -z "$CC"; then 2461 if test -n "$ac_tool_prefix"; then 2462 for ac_prog in cl.exe 2463 do 2464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2465set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2466{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2467$as_echo_n "checking for $ac_word... " >&6; } 2468if test "${ac_cv_prog_CC+set}" = set; then 2469 $as_echo_n "(cached) " >&6 2470else 2471 if test -n "$CC"; then 2472 ac_cv_prog_CC="$CC" # Let the user override the test. 2473else 2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2475for as_dir in $PATH 2476do 2477 IFS=$as_save_IFS 2478 test -z "$as_dir" && as_dir=. 2479 for ac_exec_ext in '' $ac_executable_extensions; do 2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2481 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2482 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2483 break 2 2484 fi 2485done 2486done 2487IFS=$as_save_IFS 2488 2489fi 2490fi 2491CC=$ac_cv_prog_CC 2492if test -n "$CC"; then 2493 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2494$as_echo "$CC" >&6; } 2495else 2496 { $as_echo "$as_me:$LINENO: result: no" >&5 2497$as_echo "no" >&6; } 2498fi 2499 2500 2501 test -n "$CC" && break 2502 done 2503fi 2504if test -z "$CC"; then 2505 ac_ct_CC=$CC 2506 for ac_prog in cl.exe 2507do 2508 # Extract the first word of "$ac_prog", so it can be a program name with args. 2509set dummy $ac_prog; ac_word=$2 2510{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2511$as_echo_n "checking for $ac_word... " >&6; } 2512if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2513 $as_echo_n "(cached) " >&6 2514else 2515 if test -n "$ac_ct_CC"; then 2516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2517else 2518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2519for as_dir in $PATH 2520do 2521 IFS=$as_save_IFS 2522 test -z "$as_dir" && as_dir=. 2523 for ac_exec_ext in '' $ac_executable_extensions; do 2524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2525 ac_cv_prog_ac_ct_CC="$ac_prog" 2526 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2527 break 2 2528 fi 2529done 2530done 2531IFS=$as_save_IFS 2532 2533fi 2534fi 2535ac_ct_CC=$ac_cv_prog_ac_ct_CC 2536if test -n "$ac_ct_CC"; then 2537 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2538$as_echo "$ac_ct_CC" >&6; } 2539else 2540 { $as_echo "$as_me:$LINENO: result: no" >&5 2541$as_echo "no" >&6; } 2542fi 2543 2544 2545 test -n "$ac_ct_CC" && break 2546done 2547 2548 if test "x$ac_ct_CC" = x; then 2549 CC="" 2550 else 2551 case $cross_compiling:$ac_tool_warned in 2552yes:) 2553{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2555ac_tool_warned=yes ;; 2556esac 2557 CC=$ac_ct_CC 2558 fi 2559fi 2560 2561fi 2562 2563 2564test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2566{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2567See \`config.log' for more details." >&5 2568$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2569See \`config.log' for more details." >&2;} 2570 { (exit 1); exit 1; }; }; } 2571 2572# Provide some information about the compiler. 2573$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2574set X $ac_compile 2575ac_compiler=$2 2576{ (ac_try="$ac_compiler --version >&5" 2577case "(($ac_try" in 2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2579 *) ac_try_echo=$ac_try;; 2580esac 2581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2582$as_echo "$ac_try_echo") >&5 2583 (eval "$ac_compiler --version >&5") 2>&5 2584 ac_status=$? 2585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2586 (exit $ac_status); } 2587{ (ac_try="$ac_compiler -v >&5" 2588case "(($ac_try" in 2589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2590 *) ac_try_echo=$ac_try;; 2591esac 2592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2593$as_echo "$ac_try_echo") >&5 2594 (eval "$ac_compiler -v >&5") 2>&5 2595 ac_status=$? 2596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2597 (exit $ac_status); } 2598{ (ac_try="$ac_compiler -V >&5" 2599case "(($ac_try" in 2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2601 *) ac_try_echo=$ac_try;; 2602esac 2603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2604$as_echo "$ac_try_echo") >&5 2605 (eval "$ac_compiler -V >&5") 2>&5 2606 ac_status=$? 2607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2608 (exit $ac_status); } 2609 2610cat >conftest.$ac_ext <<_ACEOF 2611/* confdefs.h. */ 2612_ACEOF 2613cat confdefs.h >>conftest.$ac_ext 2614cat >>conftest.$ac_ext <<_ACEOF 2615/* end confdefs.h. */ 2616 2617int 2618main () 2619{ 2620 2621 ; 2622 return 0; 2623} 2624_ACEOF 2625ac_clean_files_save=$ac_clean_files 2626ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2627# Try to create an executable without -o first, disregard a.out. 2628# It will help us diagnose broken compilers, and finding out an intuition 2629# of exeext. 2630{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2631$as_echo_n "checking for C compiler default output file name... " >&6; } 2632ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2633 2634# The possible output files: 2635ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2636 2637ac_rmfiles= 2638for ac_file in $ac_files 2639do 2640 case $ac_file in 2641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2642 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2643 esac 2644done 2645rm -f $ac_rmfiles 2646 2647if { (ac_try="$ac_link_default" 2648case "(($ac_try" in 2649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2650 *) ac_try_echo=$ac_try;; 2651esac 2652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2653$as_echo "$ac_try_echo") >&5 2654 (eval "$ac_link_default") 2>&5 2655 ac_status=$? 2656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2657 (exit $ac_status); }; then 2658 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2659# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2660# in a Makefile. We should not override ac_cv_exeext if it was cached, 2661# so that the user can short-circuit this test for compilers unknown to 2662# Autoconf. 2663for ac_file in $ac_files '' 2664do 2665 test -f "$ac_file" || continue 2666 case $ac_file in 2667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2668 ;; 2669 [ab].out ) 2670 # We found the default executable, but exeext='' is most 2671 # certainly right. 2672 break;; 2673 *.* ) 2674 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2675 then :; else 2676 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2677 fi 2678 # We set ac_cv_exeext here because the later test for it is not 2679 # safe: cross compilers may not add the suffix if given an `-o' 2680 # argument, so we may need to know it at that point already. 2681 # Even if this section looks crufty: it has the advantage of 2682 # actually working. 2683 break;; 2684 * ) 2685 break;; 2686 esac 2687done 2688test "$ac_cv_exeext" = no && ac_cv_exeext= 2689 2690else 2691 ac_file='' 2692fi 2693 2694{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2695$as_echo "$ac_file" >&6; } 2696if test -z "$ac_file"; then 2697 $as_echo "$as_me: failed program was:" >&5 2698sed 's/^/| /' conftest.$ac_ext >&5 2699 2700{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2701$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2702{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 2703See \`config.log' for more details." >&5 2704$as_echo "$as_me: error: C compiler cannot create executables 2705See \`config.log' for more details." >&2;} 2706 { (exit 77); exit 77; }; }; } 2707fi 2708 2709ac_exeext=$ac_cv_exeext 2710 2711# Check that the compiler produces executables we can run. If not, either 2712# the compiler is broken, or we cross compile. 2713{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2714$as_echo_n "checking whether the C compiler works... " >&6; } 2715# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2716# If not cross compiling, check that we can run a simple program. 2717if test "$cross_compiling" != yes; then 2718 if { ac_try='./$ac_file' 2719 { (case "(($ac_try" in 2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2721 *) ac_try_echo=$ac_try;; 2722esac 2723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2724$as_echo "$ac_try_echo") >&5 2725 (eval "$ac_try") 2>&5 2726 ac_status=$? 2727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2728 (exit $ac_status); }; }; then 2729 cross_compiling=no 2730 else 2731 if test "$cross_compiling" = maybe; then 2732 cross_compiling=yes 2733 else 2734 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2735$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2736{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 2737If you meant to cross compile, use \`--host'. 2738See \`config.log' for more details." >&5 2739$as_echo "$as_me: error: cannot run C compiled programs. 2740If you meant to cross compile, use \`--host'. 2741See \`config.log' for more details." >&2;} 2742 { (exit 1); exit 1; }; }; } 2743 fi 2744 fi 2745fi 2746{ $as_echo "$as_me:$LINENO: result: yes" >&5 2747$as_echo "yes" >&6; } 2748 2749rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2750ac_clean_files=$ac_clean_files_save 2751# Check that the compiler produces executables we can run. If not, either 2752# the compiler is broken, or we cross compile. 2753{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2754$as_echo_n "checking whether we are cross compiling... " >&6; } 2755{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 2756$as_echo "$cross_compiling" >&6; } 2757 2758{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 2759$as_echo_n "checking for suffix of executables... " >&6; } 2760if { (ac_try="$ac_link" 2761case "(($ac_try" in 2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2763 *) ac_try_echo=$ac_try;; 2764esac 2765eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2766$as_echo "$ac_try_echo") >&5 2767 (eval "$ac_link") 2>&5 2768 ac_status=$? 2769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2770 (exit $ac_status); }; then 2771 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2772# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2773# work properly (i.e., refer to `conftest.exe'), while it won't with 2774# `rm'. 2775for ac_file in conftest.exe conftest conftest.*; do 2776 test -f "$ac_file" || continue 2777 case $ac_file in 2778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2779 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2780 break;; 2781 * ) break;; 2782 esac 2783done 2784else 2785 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2786$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2787{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2788See \`config.log' for more details." >&5 2789$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2790See \`config.log' for more details." >&2;} 2791 { (exit 1); exit 1; }; }; } 2792fi 2793 2794rm -f conftest$ac_cv_exeext 2795{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2796$as_echo "$ac_cv_exeext" >&6; } 2797 2798rm -f conftest.$ac_ext 2799EXEEXT=$ac_cv_exeext 2800ac_exeext=$EXEEXT 2801{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 2802$as_echo_n "checking for suffix of object files... " >&6; } 2803if test "${ac_cv_objext+set}" = set; then 2804 $as_echo_n "(cached) " >&6 2805else 2806 cat >conftest.$ac_ext <<_ACEOF 2807/* confdefs.h. */ 2808_ACEOF 2809cat confdefs.h >>conftest.$ac_ext 2810cat >>conftest.$ac_ext <<_ACEOF 2811/* end confdefs.h. */ 2812 2813int 2814main () 2815{ 2816 2817 ; 2818 return 0; 2819} 2820_ACEOF 2821rm -f conftest.o conftest.obj 2822if { (ac_try="$ac_compile" 2823case "(($ac_try" in 2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2825 *) ac_try_echo=$ac_try;; 2826esac 2827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2828$as_echo "$ac_try_echo") >&5 2829 (eval "$ac_compile") 2>&5 2830 ac_status=$? 2831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2832 (exit $ac_status); }; then 2833 for ac_file in conftest.o conftest.obj conftest.*; do 2834 test -f "$ac_file" || continue; 2835 case $ac_file in 2836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2837 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2838 break;; 2839 esac 2840done 2841else 2842 $as_echo "$as_me: failed program was:" >&5 2843sed 's/^/| /' conftest.$ac_ext >&5 2844 2845{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2847{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2848See \`config.log' for more details." >&5 2849$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 2850See \`config.log' for more details." >&2;} 2851 { (exit 1); exit 1; }; }; } 2852fi 2853 2854rm -f conftest.$ac_cv_objext conftest.$ac_ext 2855fi 2856{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2857$as_echo "$ac_cv_objext" >&6; } 2858OBJEXT=$ac_cv_objext 2859ac_objext=$OBJEXT 2860{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2861$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2862if test "${ac_cv_c_compiler_gnu+set}" = set; then 2863 $as_echo_n "(cached) " >&6 2864else 2865 cat >conftest.$ac_ext <<_ACEOF 2866/* confdefs.h. */ 2867_ACEOF 2868cat confdefs.h >>conftest.$ac_ext 2869cat >>conftest.$ac_ext <<_ACEOF 2870/* end confdefs.h. */ 2871 2872int 2873main () 2874{ 2875#ifndef __GNUC__ 2876 choke me 2877#endif 2878 2879 ; 2880 return 0; 2881} 2882_ACEOF 2883rm -f conftest.$ac_objext 2884if { (ac_try="$ac_compile" 2885case "(($ac_try" in 2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2887 *) ac_try_echo=$ac_try;; 2888esac 2889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2890$as_echo "$ac_try_echo") >&5 2891 (eval "$ac_compile") 2>conftest.er1 2892 ac_status=$? 2893 grep -v '^ *+' conftest.er1 >conftest.err 2894 rm -f conftest.er1 2895 cat conftest.err >&5 2896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2897 (exit $ac_status); } && { 2898 test -z "$ac_c_werror_flag" || 2899 test ! -s conftest.err 2900 } && test -s conftest.$ac_objext; then 2901 ac_compiler_gnu=yes 2902else 2903 $as_echo "$as_me: failed program was:" >&5 2904sed 's/^/| /' conftest.$ac_ext >&5 2905 2906 ac_compiler_gnu=no 2907fi 2908 2909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2910ac_cv_c_compiler_gnu=$ac_compiler_gnu 2911 2912fi 2913{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2914$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2915if test $ac_compiler_gnu = yes; then 2916 GCC=yes 2917else 2918 GCC= 2919fi 2920ac_test_CFLAGS=${CFLAGS+set} 2921ac_save_CFLAGS=$CFLAGS 2922{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2923$as_echo_n "checking whether $CC accepts -g... " >&6; } 2924if test "${ac_cv_prog_cc_g+set}" = set; then 2925 $as_echo_n "(cached) " >&6 2926else 2927 ac_save_c_werror_flag=$ac_c_werror_flag 2928 ac_c_werror_flag=yes 2929 ac_cv_prog_cc_g=no 2930 CFLAGS="-g" 2931 cat >conftest.$ac_ext <<_ACEOF 2932/* confdefs.h. */ 2933_ACEOF 2934cat confdefs.h >>conftest.$ac_ext 2935cat >>conftest.$ac_ext <<_ACEOF 2936/* end confdefs.h. */ 2937 2938int 2939main () 2940{ 2941 2942 ; 2943 return 0; 2944} 2945_ACEOF 2946rm -f conftest.$ac_objext 2947if { (ac_try="$ac_compile" 2948case "(($ac_try" in 2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2950 *) ac_try_echo=$ac_try;; 2951esac 2952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2953$as_echo "$ac_try_echo") >&5 2954 (eval "$ac_compile") 2>conftest.er1 2955 ac_status=$? 2956 grep -v '^ *+' conftest.er1 >conftest.err 2957 rm -f conftest.er1 2958 cat conftest.err >&5 2959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2960 (exit $ac_status); } && { 2961 test -z "$ac_c_werror_flag" || 2962 test ! -s conftest.err 2963 } && test -s conftest.$ac_objext; then 2964 ac_cv_prog_cc_g=yes 2965else 2966 $as_echo "$as_me: failed program was:" >&5 2967sed 's/^/| /' conftest.$ac_ext >&5 2968 2969 CFLAGS="" 2970 cat >conftest.$ac_ext <<_ACEOF 2971/* confdefs.h. */ 2972_ACEOF 2973cat confdefs.h >>conftest.$ac_ext 2974cat >>conftest.$ac_ext <<_ACEOF 2975/* end confdefs.h. */ 2976 2977int 2978main () 2979{ 2980 2981 ; 2982 return 0; 2983} 2984_ACEOF 2985rm -f conftest.$ac_objext 2986if { (ac_try="$ac_compile" 2987case "(($ac_try" in 2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2989 *) ac_try_echo=$ac_try;; 2990esac 2991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2992$as_echo "$ac_try_echo") >&5 2993 (eval "$ac_compile") 2>conftest.er1 2994 ac_status=$? 2995 grep -v '^ *+' conftest.er1 >conftest.err 2996 rm -f conftest.er1 2997 cat conftest.err >&5 2998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2999 (exit $ac_status); } && { 3000 test -z "$ac_c_werror_flag" || 3001 test ! -s conftest.err 3002 } && test -s conftest.$ac_objext; then 3003 : 3004else 3005 $as_echo "$as_me: failed program was:" >&5 3006sed 's/^/| /' conftest.$ac_ext >&5 3007 3008 ac_c_werror_flag=$ac_save_c_werror_flag 3009 CFLAGS="-g" 3010 cat >conftest.$ac_ext <<_ACEOF 3011/* confdefs.h. */ 3012_ACEOF 3013cat confdefs.h >>conftest.$ac_ext 3014cat >>conftest.$ac_ext <<_ACEOF 3015/* end confdefs.h. */ 3016 3017int 3018main () 3019{ 3020 3021 ; 3022 return 0; 3023} 3024_ACEOF 3025rm -f conftest.$ac_objext 3026if { (ac_try="$ac_compile" 3027case "(($ac_try" in 3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3029 *) ac_try_echo=$ac_try;; 3030esac 3031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3032$as_echo "$ac_try_echo") >&5 3033 (eval "$ac_compile") 2>conftest.er1 3034 ac_status=$? 3035 grep -v '^ *+' conftest.er1 >conftest.err 3036 rm -f conftest.er1 3037 cat conftest.err >&5 3038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3039 (exit $ac_status); } && { 3040 test -z "$ac_c_werror_flag" || 3041 test ! -s conftest.err 3042 } && test -s conftest.$ac_objext; then 3043 ac_cv_prog_cc_g=yes 3044else 3045 $as_echo "$as_me: failed program was:" >&5 3046sed 's/^/| /' conftest.$ac_ext >&5 3047 3048 3049fi 3050 3051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3052fi 3053 3054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3055fi 3056 3057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3058 ac_c_werror_flag=$ac_save_c_werror_flag 3059fi 3060{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3061$as_echo "$ac_cv_prog_cc_g" >&6; } 3062if test "$ac_test_CFLAGS" = set; then 3063 CFLAGS=$ac_save_CFLAGS 3064elif test $ac_cv_prog_cc_g = yes; then 3065 if test "$GCC" = yes; then 3066 CFLAGS="-g -O2" 3067 else 3068 CFLAGS="-g" 3069 fi 3070else 3071 if test "$GCC" = yes; then 3072 CFLAGS="-O2" 3073 else 3074 CFLAGS= 3075 fi 3076fi 3077{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3078$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3079if test "${ac_cv_prog_cc_c89+set}" = set; then 3080 $as_echo_n "(cached) " >&6 3081else 3082 ac_cv_prog_cc_c89=no 3083ac_save_CC=$CC 3084cat >conftest.$ac_ext <<_ACEOF 3085/* confdefs.h. */ 3086_ACEOF 3087cat confdefs.h >>conftest.$ac_ext 3088cat >>conftest.$ac_ext <<_ACEOF 3089/* end confdefs.h. */ 3090#include <stdarg.h> 3091#include <stdio.h> 3092#include <sys/types.h> 3093#include <sys/stat.h> 3094/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3095struct buf { int x; }; 3096FILE * (*rcsopen) (struct buf *, struct stat *, int); 3097static char *e (p, i) 3098 char **p; 3099 int i; 3100{ 3101 return p[i]; 3102} 3103static char *f (char * (*g) (char **, int), char **p, ...) 3104{ 3105 char *s; 3106 va_list v; 3107 va_start (v,p); 3108 s = g (p, va_arg (v,int)); 3109 va_end (v); 3110 return s; 3111} 3112 3113/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3114 function prototypes and stuff, but not '\xHH' hex character constants. 3115 These don't provoke an error unfortunately, instead are silently treated 3116 as 'x'. The following induces an error, until -std is added to get 3117 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3118 array size at least. It's necessary to write '\x00'==0 to get something 3119 that's true only with -std. */ 3120int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3121 3122/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3123 inside strings and character constants. */ 3124#define FOO(x) 'x' 3125int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3126 3127int test (int i, double x); 3128struct s1 {int (*f) (int a);}; 3129struct s2 {int (*f) (double a);}; 3130int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3131int argc; 3132char **argv; 3133int 3134main () 3135{ 3136return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3137 ; 3138 return 0; 3139} 3140_ACEOF 3141for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3142 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3143do 3144 CC="$ac_save_CC $ac_arg" 3145 rm -f conftest.$ac_objext 3146if { (ac_try="$ac_compile" 3147case "(($ac_try" in 3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3149 *) ac_try_echo=$ac_try;; 3150esac 3151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3152$as_echo "$ac_try_echo") >&5 3153 (eval "$ac_compile") 2>conftest.er1 3154 ac_status=$? 3155 grep -v '^ *+' conftest.er1 >conftest.err 3156 rm -f conftest.er1 3157 cat conftest.err >&5 3158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3159 (exit $ac_status); } && { 3160 test -z "$ac_c_werror_flag" || 3161 test ! -s conftest.err 3162 } && test -s conftest.$ac_objext; then 3163 ac_cv_prog_cc_c89=$ac_arg 3164else 3165 $as_echo "$as_me: failed program was:" >&5 3166sed 's/^/| /' conftest.$ac_ext >&5 3167 3168 3169fi 3170 3171rm -f core conftest.err conftest.$ac_objext 3172 test "x$ac_cv_prog_cc_c89" != "xno" && break 3173done 3174rm -f conftest.$ac_ext 3175CC=$ac_save_CC 3176 3177fi 3178# AC_CACHE_VAL 3179case "x$ac_cv_prog_cc_c89" in 3180 x) 3181 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3182$as_echo "none needed" >&6; } ;; 3183 xno) 3184 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3185$as_echo "unsupported" >&6; } ;; 3186 *) 3187 CC="$CC $ac_cv_prog_cc_c89" 3188 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3189$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3190esac 3191 3192 3193ac_ext=c 3194ac_cpp='$CPP $CPPFLAGS' 3195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3197ac_compiler_gnu=$ac_cv_c_compiler_gnu 3198 3199 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 3200$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3201if test "${ac_cv_prog_cc_c99+set}" = set; then 3202 $as_echo_n "(cached) " >&6 3203else 3204 ac_cv_prog_cc_c99=no 3205ac_save_CC=$CC 3206cat >conftest.$ac_ext <<_ACEOF 3207/* confdefs.h. */ 3208_ACEOF 3209cat confdefs.h >>conftest.$ac_ext 3210cat >>conftest.$ac_ext <<_ACEOF 3211/* end confdefs.h. */ 3212#include <stdarg.h> 3213#include <stdbool.h> 3214#include <stdlib.h> 3215#include <wchar.h> 3216#include <stdio.h> 3217 3218// Check varargs macros. These examples are taken from C99 6.10.3.5. 3219#define debug(...) fprintf (stderr, __VA_ARGS__) 3220#define showlist(...) puts (#__VA_ARGS__) 3221#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3222static void 3223test_varargs_macros (void) 3224{ 3225 int x = 1234; 3226 int y = 5678; 3227 debug ("Flag"); 3228 debug ("X = %d\n", x); 3229 showlist (The first, second, and third items.); 3230 report (x>y, "x is %d but y is %d", x, y); 3231} 3232 3233// Check long long types. 3234#define BIG64 18446744073709551615ull 3235#define BIG32 4294967295ul 3236#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3237#if !BIG_OK 3238 your preprocessor is broken; 3239#endif 3240#if BIG_OK 3241#else 3242 your preprocessor is broken; 3243#endif 3244static long long int bignum = -9223372036854775807LL; 3245static unsigned long long int ubignum = BIG64; 3246 3247struct incomplete_array 3248{ 3249 int datasize; 3250 double data[]; 3251}; 3252 3253struct named_init { 3254 int number; 3255 const wchar_t *name; 3256 double average; 3257}; 3258 3259typedef const char *ccp; 3260 3261static inline int 3262test_restrict (ccp restrict text) 3263{ 3264 // See if C++-style comments work. 3265 // Iterate through items via the restricted pointer. 3266 // Also check for declarations in for loops. 3267 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3268 continue; 3269 return 0; 3270} 3271 3272// Check varargs and va_copy. 3273static void 3274test_varargs (const char *format, ...) 3275{ 3276 va_list args; 3277 va_start (args, format); 3278 va_list args_copy; 3279 va_copy (args_copy, args); 3280 3281 const char *str; 3282 int number; 3283 float fnumber; 3284 3285 while (*format) 3286 { 3287 switch (*format++) 3288 { 3289 case 's': // string 3290 str = va_arg (args_copy, const char *); 3291 break; 3292 case 'd': // int 3293 number = va_arg (args_copy, int); 3294 break; 3295 case 'f': // float 3296 fnumber = va_arg (args_copy, double); 3297 break; 3298 default: 3299 break; 3300 } 3301 } 3302 va_end (args_copy); 3303 va_end (args); 3304} 3305 3306int 3307main () 3308{ 3309 3310 // Check bool. 3311 _Bool success = false; 3312 3313 // Check restrict. 3314 if (test_restrict ("String literal") == 0) 3315 success = true; 3316 char *restrict newvar = "Another string"; 3317 3318 // Check varargs. 3319 test_varargs ("s, d' f .", "string", 65, 34.234); 3320 test_varargs_macros (); 3321 3322 // Check flexible array members. 3323 struct incomplete_array *ia = 3324 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3325 ia->datasize = 10; 3326 for (int i = 0; i < ia->datasize; ++i) 3327 ia->data[i] = i * 1.234; 3328 3329 // Check named initializers. 3330 struct named_init ni = { 3331 .number = 34, 3332 .name = L"Test wide string", 3333 .average = 543.34343, 3334 }; 3335 3336 ni.number = 58; 3337 3338 int dynamic_array[ni.number]; 3339 dynamic_array[ni.number - 1] = 543; 3340 3341 // work around unused variable warnings 3342 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3343 || dynamic_array[ni.number - 1] != 543); 3344 3345 ; 3346 return 0; 3347} 3348_ACEOF 3349for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3350do 3351 CC="$ac_save_CC $ac_arg" 3352 rm -f conftest.$ac_objext 3353if { (ac_try="$ac_compile" 3354case "(($ac_try" in 3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3356 *) ac_try_echo=$ac_try;; 3357esac 3358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3359$as_echo "$ac_try_echo") >&5 3360 (eval "$ac_compile") 2>conftest.er1 3361 ac_status=$? 3362 grep -v '^ *+' conftest.er1 >conftest.err 3363 rm -f conftest.er1 3364 cat conftest.err >&5 3365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3366 (exit $ac_status); } && { 3367 test -z "$ac_c_werror_flag" || 3368 test ! -s conftest.err 3369 } && test -s conftest.$ac_objext; then 3370 ac_cv_prog_cc_c99=$ac_arg 3371else 3372 $as_echo "$as_me: failed program was:" >&5 3373sed 's/^/| /' conftest.$ac_ext >&5 3374 3375 3376fi 3377 3378rm -f core conftest.err conftest.$ac_objext 3379 test "x$ac_cv_prog_cc_c99" != "xno" && break 3380done 3381rm -f conftest.$ac_ext 3382CC=$ac_save_CC 3383 3384fi 3385# AC_CACHE_VAL 3386case "x$ac_cv_prog_cc_c99" in 3387 x) 3388 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3389$as_echo "none needed" >&6; } ;; 3390 xno) 3391 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3392$as_echo "unsupported" >&6; } ;; 3393 *) 3394 CC="$CC $ac_cv_prog_cc_c99" 3395 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 3396$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3397esac 3398 3399 3400 3401 3402ac_ext=c 3403ac_cpp='$CPP $CPPFLAGS' 3404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3406ac_compiler_gnu=$ac_cv_c_compiler_gnu 3407{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3408$as_echo_n "checking how to run the C preprocessor... " >&6; } 3409# On Suns, sometimes $CPP names a directory. 3410if test -n "$CPP" && test -d "$CPP"; then 3411 CPP= 3412fi 3413if test -z "$CPP"; then 3414 if test "${ac_cv_prog_CPP+set}" = set; then 3415 $as_echo_n "(cached) " >&6 3416else 3417 # Double quotes because CPP needs to be expanded 3418 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3419 do 3420 ac_preproc_ok=false 3421for ac_c_preproc_warn_flag in '' yes 3422do 3423 # Use a header file that comes with gcc, so configuring glibc 3424 # with a fresh cross-compiler works. 3425 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3426 # <limits.h> exists even on freestanding compilers. 3427 # On the NeXT, cc -E runs the code through the compiler's parser, 3428 # not just through cpp. "Syntax error" is here to catch this case. 3429 cat >conftest.$ac_ext <<_ACEOF 3430/* confdefs.h. */ 3431_ACEOF 3432cat confdefs.h >>conftest.$ac_ext 3433cat >>conftest.$ac_ext <<_ACEOF 3434/* end confdefs.h. */ 3435#ifdef __STDC__ 3436# include <limits.h> 3437#else 3438# include <assert.h> 3439#endif 3440 Syntax error 3441_ACEOF 3442if { (ac_try="$ac_cpp conftest.$ac_ext" 3443case "(($ac_try" in 3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3445 *) ac_try_echo=$ac_try;; 3446esac 3447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3448$as_echo "$ac_try_echo") >&5 3449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3450 ac_status=$? 3451 grep -v '^ *+' conftest.er1 >conftest.err 3452 rm -f conftest.er1 3453 cat conftest.err >&5 3454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3455 (exit $ac_status); } >/dev/null && { 3456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3457 test ! -s conftest.err 3458 }; then 3459 : 3460else 3461 $as_echo "$as_me: failed program was:" >&5 3462sed 's/^/| /' conftest.$ac_ext >&5 3463 3464 # Broken: fails on valid input. 3465continue 3466fi 3467 3468rm -f conftest.err conftest.$ac_ext 3469 3470 # OK, works on sane cases. Now check whether nonexistent headers 3471 # can be detected and how. 3472 cat >conftest.$ac_ext <<_ACEOF 3473/* confdefs.h. */ 3474_ACEOF 3475cat confdefs.h >>conftest.$ac_ext 3476cat >>conftest.$ac_ext <<_ACEOF 3477/* end confdefs.h. */ 3478#include <ac_nonexistent.h> 3479_ACEOF 3480if { (ac_try="$ac_cpp conftest.$ac_ext" 3481case "(($ac_try" in 3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3483 *) ac_try_echo=$ac_try;; 3484esac 3485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3486$as_echo "$ac_try_echo") >&5 3487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3488 ac_status=$? 3489 grep -v '^ *+' conftest.er1 >conftest.err 3490 rm -f conftest.er1 3491 cat conftest.err >&5 3492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3493 (exit $ac_status); } >/dev/null && { 3494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3495 test ! -s conftest.err 3496 }; then 3497 # Broken: success on invalid input. 3498continue 3499else 3500 $as_echo "$as_me: failed program was:" >&5 3501sed 's/^/| /' conftest.$ac_ext >&5 3502 3503 # Passes both tests. 3504ac_preproc_ok=: 3505break 3506fi 3507 3508rm -f conftest.err conftest.$ac_ext 3509 3510done 3511# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3512rm -f conftest.err conftest.$ac_ext 3513if $ac_preproc_ok; then 3514 break 3515fi 3516 3517 done 3518 ac_cv_prog_CPP=$CPP 3519 3520fi 3521 CPP=$ac_cv_prog_CPP 3522else 3523 ac_cv_prog_CPP=$CPP 3524fi 3525{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 3526$as_echo "$CPP" >&6; } 3527ac_preproc_ok=false 3528for ac_c_preproc_warn_flag in '' yes 3529do 3530 # Use a header file that comes with gcc, so configuring glibc 3531 # with a fresh cross-compiler works. 3532 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3533 # <limits.h> exists even on freestanding compilers. 3534 # On the NeXT, cc -E runs the code through the compiler's parser, 3535 # not just through cpp. "Syntax error" is here to catch this case. 3536 cat >conftest.$ac_ext <<_ACEOF 3537/* confdefs.h. */ 3538_ACEOF 3539cat confdefs.h >>conftest.$ac_ext 3540cat >>conftest.$ac_ext <<_ACEOF 3541/* end confdefs.h. */ 3542#ifdef __STDC__ 3543# include <limits.h> 3544#else 3545# include <assert.h> 3546#endif 3547 Syntax error 3548_ACEOF 3549if { (ac_try="$ac_cpp conftest.$ac_ext" 3550case "(($ac_try" in 3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3552 *) ac_try_echo=$ac_try;; 3553esac 3554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3555$as_echo "$ac_try_echo") >&5 3556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3557 ac_status=$? 3558 grep -v '^ *+' conftest.er1 >conftest.err 3559 rm -f conftest.er1 3560 cat conftest.err >&5 3561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3562 (exit $ac_status); } >/dev/null && { 3563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3564 test ! -s conftest.err 3565 }; then 3566 : 3567else 3568 $as_echo "$as_me: failed program was:" >&5 3569sed 's/^/| /' conftest.$ac_ext >&5 3570 3571 # Broken: fails on valid input. 3572continue 3573fi 3574 3575rm -f conftest.err conftest.$ac_ext 3576 3577 # OK, works on sane cases. Now check whether nonexistent headers 3578 # can be detected and how. 3579 cat >conftest.$ac_ext <<_ACEOF 3580/* confdefs.h. */ 3581_ACEOF 3582cat confdefs.h >>conftest.$ac_ext 3583cat >>conftest.$ac_ext <<_ACEOF 3584/* end confdefs.h. */ 3585#include <ac_nonexistent.h> 3586_ACEOF 3587if { (ac_try="$ac_cpp conftest.$ac_ext" 3588case "(($ac_try" in 3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3590 *) ac_try_echo=$ac_try;; 3591esac 3592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3593$as_echo "$ac_try_echo") >&5 3594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3595 ac_status=$? 3596 grep -v '^ *+' conftest.er1 >conftest.err 3597 rm -f conftest.er1 3598 cat conftest.err >&5 3599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3600 (exit $ac_status); } >/dev/null && { 3601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3602 test ! -s conftest.err 3603 }; then 3604 # Broken: success on invalid input. 3605continue 3606else 3607 $as_echo "$as_me: failed program was:" >&5 3608sed 's/^/| /' conftest.$ac_ext >&5 3609 3610 # Passes both tests. 3611ac_preproc_ok=: 3612break 3613fi 3614 3615rm -f conftest.err conftest.$ac_ext 3616 3617done 3618# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3619rm -f conftest.err conftest.$ac_ext 3620if $ac_preproc_ok; then 3621 : 3622else 3623 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3624$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3625{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3626See \`config.log' for more details." >&5 3627$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3628See \`config.log' for more details." >&2;} 3629 { (exit 1); exit 1; }; }; } 3630fi 3631 3632ac_ext=c 3633ac_cpp='$CPP $CPPFLAGS' 3634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3636ac_compiler_gnu=$ac_cv_c_compiler_gnu 3637 3638 3639{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3640$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3641if test "${ac_cv_path_GREP+set}" = set; then 3642 $as_echo_n "(cached) " >&6 3643else 3644 if test -z "$GREP"; then 3645 ac_path_GREP_found=false 3646 # Loop through the user's path and test for each of PROGNAME-LIST 3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3648for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3649do 3650 IFS=$as_save_IFS 3651 test -z "$as_dir" && as_dir=. 3652 for ac_prog in grep ggrep; do 3653 for ac_exec_ext in '' $ac_executable_extensions; do 3654 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3655 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3656# Check for GNU ac_path_GREP and select it if it is found. 3657 # Check for GNU $ac_path_GREP 3658case `"$ac_path_GREP" --version 2>&1` in 3659*GNU*) 3660 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3661*) 3662 ac_count=0 3663 $as_echo_n 0123456789 >"conftest.in" 3664 while : 3665 do 3666 cat "conftest.in" "conftest.in" >"conftest.tmp" 3667 mv "conftest.tmp" "conftest.in" 3668 cp "conftest.in" "conftest.nl" 3669 $as_echo 'GREP' >> "conftest.nl" 3670 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3672 ac_count=`expr $ac_count + 1` 3673 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3674 # Best one so far, save it but keep looking for a better one 3675 ac_cv_path_GREP="$ac_path_GREP" 3676 ac_path_GREP_max=$ac_count 3677 fi 3678 # 10*(2^10) chars as input seems more than enough 3679 test $ac_count -gt 10 && break 3680 done 3681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3682esac 3683 3684 $ac_path_GREP_found && break 3 3685 done 3686 done 3687done 3688IFS=$as_save_IFS 3689 if test -z "$ac_cv_path_GREP"; then 3690 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3691$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3692 { (exit 1); exit 1; }; } 3693 fi 3694else 3695 ac_cv_path_GREP=$GREP 3696fi 3697 3698fi 3699{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3700$as_echo "$ac_cv_path_GREP" >&6; } 3701 GREP="$ac_cv_path_GREP" 3702 3703 3704{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3705$as_echo_n "checking for egrep... " >&6; } 3706if test "${ac_cv_path_EGREP+set}" = set; then 3707 $as_echo_n "(cached) " >&6 3708else 3709 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3710 then ac_cv_path_EGREP="$GREP -E" 3711 else 3712 if test -z "$EGREP"; then 3713 ac_path_EGREP_found=false 3714 # Loop through the user's path and test for each of PROGNAME-LIST 3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3716for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3717do 3718 IFS=$as_save_IFS 3719 test -z "$as_dir" && as_dir=. 3720 for ac_prog in egrep; do 3721 for ac_exec_ext in '' $ac_executable_extensions; do 3722 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3723 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3724# Check for GNU ac_path_EGREP and select it if it is found. 3725 # Check for GNU $ac_path_EGREP 3726case `"$ac_path_EGREP" --version 2>&1` in 3727*GNU*) 3728 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3729*) 3730 ac_count=0 3731 $as_echo_n 0123456789 >"conftest.in" 3732 while : 3733 do 3734 cat "conftest.in" "conftest.in" >"conftest.tmp" 3735 mv "conftest.tmp" "conftest.in" 3736 cp "conftest.in" "conftest.nl" 3737 $as_echo 'EGREP' >> "conftest.nl" 3738 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3739 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3740 ac_count=`expr $ac_count + 1` 3741 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3742 # Best one so far, save it but keep looking for a better one 3743 ac_cv_path_EGREP="$ac_path_EGREP" 3744 ac_path_EGREP_max=$ac_count 3745 fi 3746 # 10*(2^10) chars as input seems more than enough 3747 test $ac_count -gt 10 && break 3748 done 3749 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3750esac 3751 3752 $ac_path_EGREP_found && break 3 3753 done 3754 done 3755done 3756IFS=$as_save_IFS 3757 if test -z "$ac_cv_path_EGREP"; then 3758 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3759$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3760 { (exit 1); exit 1; }; } 3761 fi 3762else 3763 ac_cv_path_EGREP=$EGREP 3764fi 3765 3766 fi 3767fi 3768{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3769$as_echo "$ac_cv_path_EGREP" >&6; } 3770 EGREP="$ac_cv_path_EGREP" 3771 3772 3773{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3774$as_echo_n "checking for ANSI C header files... " >&6; } 3775if test "${ac_cv_header_stdc+set}" = set; then 3776 $as_echo_n "(cached) " >&6 3777else 3778 cat >conftest.$ac_ext <<_ACEOF 3779/* confdefs.h. */ 3780_ACEOF 3781cat confdefs.h >>conftest.$ac_ext 3782cat >>conftest.$ac_ext <<_ACEOF 3783/* end confdefs.h. */ 3784#include <stdlib.h> 3785#include <stdarg.h> 3786#include <string.h> 3787#include <float.h> 3788 3789int 3790main () 3791{ 3792 3793 ; 3794 return 0; 3795} 3796_ACEOF 3797rm -f conftest.$ac_objext 3798if { (ac_try="$ac_compile" 3799case "(($ac_try" in 3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3801 *) ac_try_echo=$ac_try;; 3802esac 3803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3804$as_echo "$ac_try_echo") >&5 3805 (eval "$ac_compile") 2>conftest.er1 3806 ac_status=$? 3807 grep -v '^ *+' conftest.er1 >conftest.err 3808 rm -f conftest.er1 3809 cat conftest.err >&5 3810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3811 (exit $ac_status); } && { 3812 test -z "$ac_c_werror_flag" || 3813 test ! -s conftest.err 3814 } && test -s conftest.$ac_objext; then 3815 ac_cv_header_stdc=yes 3816else 3817 $as_echo "$as_me: failed program was:" >&5 3818sed 's/^/| /' conftest.$ac_ext >&5 3819 3820 ac_cv_header_stdc=no 3821fi 3822 3823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3824 3825if test $ac_cv_header_stdc = yes; then 3826 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3827 cat >conftest.$ac_ext <<_ACEOF 3828/* confdefs.h. */ 3829_ACEOF 3830cat confdefs.h >>conftest.$ac_ext 3831cat >>conftest.$ac_ext <<_ACEOF 3832/* end confdefs.h. */ 3833#include <string.h> 3834 3835_ACEOF 3836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3837 $EGREP "memchr" >/dev/null 2>&1; then 3838 : 3839else 3840 ac_cv_header_stdc=no 3841fi 3842rm -f conftest* 3843 3844fi 3845 3846if test $ac_cv_header_stdc = yes; then 3847 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3848 cat >conftest.$ac_ext <<_ACEOF 3849/* confdefs.h. */ 3850_ACEOF 3851cat confdefs.h >>conftest.$ac_ext 3852cat >>conftest.$ac_ext <<_ACEOF 3853/* end confdefs.h. */ 3854#include <stdlib.h> 3855 3856_ACEOF 3857if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3858 $EGREP "free" >/dev/null 2>&1; then 3859 : 3860else 3861 ac_cv_header_stdc=no 3862fi 3863rm -f conftest* 3864 3865fi 3866 3867if test $ac_cv_header_stdc = yes; then 3868 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3869 if test "$cross_compiling" = yes; then 3870 : 3871else 3872 cat >conftest.$ac_ext <<_ACEOF 3873/* confdefs.h. */ 3874_ACEOF 3875cat confdefs.h >>conftest.$ac_ext 3876cat >>conftest.$ac_ext <<_ACEOF 3877/* end confdefs.h. */ 3878#include <ctype.h> 3879#include <stdlib.h> 3880#if ((' ' & 0x0FF) == 0x020) 3881# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3882# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3883#else 3884# define ISLOWER(c) \ 3885 (('a' <= (c) && (c) <= 'i') \ 3886 || ('j' <= (c) && (c) <= 'r') \ 3887 || ('s' <= (c) && (c) <= 'z')) 3888# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3889#endif 3890 3891#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3892int 3893main () 3894{ 3895 int i; 3896 for (i = 0; i < 256; i++) 3897 if (XOR (islower (i), ISLOWER (i)) 3898 || toupper (i) != TOUPPER (i)) 3899 return 2; 3900 return 0; 3901} 3902_ACEOF 3903rm -f conftest$ac_exeext 3904if { (ac_try="$ac_link" 3905case "(($ac_try" in 3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3907 *) ac_try_echo=$ac_try;; 3908esac 3909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3910$as_echo "$ac_try_echo") >&5 3911 (eval "$ac_link") 2>&5 3912 ac_status=$? 3913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3915 { (case "(($ac_try" in 3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3917 *) ac_try_echo=$ac_try;; 3918esac 3919eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3920$as_echo "$ac_try_echo") >&5 3921 (eval "$ac_try") 2>&5 3922 ac_status=$? 3923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3924 (exit $ac_status); }; }; then 3925 : 3926else 3927 $as_echo "$as_me: program exited with status $ac_status" >&5 3928$as_echo "$as_me: failed program was:" >&5 3929sed 's/^/| /' conftest.$ac_ext >&5 3930 3931( exit $ac_status ) 3932ac_cv_header_stdc=no 3933fi 3934rm -rf conftest.dSYM 3935rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3936fi 3937 3938 3939fi 3940fi 3941{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3942$as_echo "$ac_cv_header_stdc" >&6; } 3943if test $ac_cv_header_stdc = yes; then 3944 3945cat >>confdefs.h <<\_ACEOF 3946#define STDC_HEADERS 1 3947_ACEOF 3948 3949fi 3950 3951# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3962 inttypes.h stdint.h unistd.h 3963do 3964as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3965{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 3966$as_echo_n "checking for $ac_header... " >&6; } 3967if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3968 $as_echo_n "(cached) " >&6 3969else 3970 cat >conftest.$ac_ext <<_ACEOF 3971/* confdefs.h. */ 3972_ACEOF 3973cat confdefs.h >>conftest.$ac_ext 3974cat >>conftest.$ac_ext <<_ACEOF 3975/* end confdefs.h. */ 3976$ac_includes_default 3977 3978#include <$ac_header> 3979_ACEOF 3980rm -f conftest.$ac_objext 3981if { (ac_try="$ac_compile" 3982case "(($ac_try" in 3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3984 *) ac_try_echo=$ac_try;; 3985esac 3986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3987$as_echo "$ac_try_echo") >&5 3988 (eval "$ac_compile") 2>conftest.er1 3989 ac_status=$? 3990 grep -v '^ *+' conftest.er1 >conftest.err 3991 rm -f conftest.er1 3992 cat conftest.err >&5 3993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3994 (exit $ac_status); } && { 3995 test -z "$ac_c_werror_flag" || 3996 test ! -s conftest.err 3997 } && test -s conftest.$ac_objext; then 3998 eval "$as_ac_Header=yes" 3999else 4000 $as_echo "$as_me: failed program was:" >&5 4001sed 's/^/| /' conftest.$ac_ext >&5 4002 4003 eval "$as_ac_Header=no" 4004fi 4005 4006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4007fi 4008ac_res=`eval 'as_val=${'$as_ac_Header'} 4009 $as_echo "$as_val"'` 4010 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4011$as_echo "$ac_res" >&6; } 4012as_val=`eval 'as_val=${'$as_ac_Header'} 4013 $as_echo "$as_val"'` 4014 if test "x$as_val" = x""yes; then 4015 cat >>confdefs.h <<_ACEOF 4016#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4017_ACEOF 4018 4019fi 4020 4021done 4022 4023 4024 4025 4026if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4027 if test -n "$ac_tool_prefix"; then 4028 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4029set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4030{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4031$as_echo_n "checking for $ac_word... " >&6; } 4032if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 4033 $as_echo_n "(cached) " >&6 4034else 4035 case $PKG_CONFIG in 4036 [\\/]* | ?:[\\/]*) 4037 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4038 ;; 4039 *) 4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4041for as_dir in $PATH 4042do 4043 IFS=$as_save_IFS 4044 test -z "$as_dir" && as_dir=. 4045 for ac_exec_ext in '' $ac_executable_extensions; do 4046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4047 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4049 break 2 4050 fi 4051done 4052done 4053IFS=$as_save_IFS 4054 4055 ;; 4056esac 4057fi 4058PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4059if test -n "$PKG_CONFIG"; then 4060 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 4061$as_echo "$PKG_CONFIG" >&6; } 4062else 4063 { $as_echo "$as_me:$LINENO: result: no" >&5 4064$as_echo "no" >&6; } 4065fi 4066 4067 4068fi 4069if test -z "$ac_cv_path_PKG_CONFIG"; then 4070 ac_pt_PKG_CONFIG=$PKG_CONFIG 4071 # Extract the first word of "pkg-config", so it can be a program name with args. 4072set dummy pkg-config; ac_word=$2 4073{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4074$as_echo_n "checking for $ac_word... " >&6; } 4075if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 4076 $as_echo_n "(cached) " >&6 4077else 4078 case $ac_pt_PKG_CONFIG in 4079 [\\/]* | ?:[\\/]*) 4080 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4081 ;; 4082 *) 4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4084for as_dir in $PATH 4085do 4086 IFS=$as_save_IFS 4087 test -z "$as_dir" && as_dir=. 4088 for ac_exec_ext in '' $ac_executable_extensions; do 4089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4090 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4091 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4092 break 2 4093 fi 4094done 4095done 4096IFS=$as_save_IFS 4097 4098 ;; 4099esac 4100fi 4101ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4102if test -n "$ac_pt_PKG_CONFIG"; then 4103 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 4104$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4105else 4106 { $as_echo "$as_me:$LINENO: result: no" >&5 4107$as_echo "no" >&6; } 4108fi 4109 4110 if test "x$ac_pt_PKG_CONFIG" = x; then 4111 PKG_CONFIG="" 4112 else 4113 case $cross_compiling:$ac_tool_warned in 4114yes:) 4115{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4117ac_tool_warned=yes ;; 4118esac 4119 PKG_CONFIG=$ac_pt_PKG_CONFIG 4120 fi 4121else 4122 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4123fi 4124 4125fi 4126if test -n "$PKG_CONFIG"; then 4127 _pkg_min_version=0.9.0 4128 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 4129$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4130 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4131 { $as_echo "$as_me:$LINENO: result: yes" >&5 4132$as_echo "yes" >&6; } 4133 else 4134 { $as_echo "$as_me:$LINENO: result: no" >&5 4135$as_echo "no" >&6; } 4136 PKG_CONFIG="" 4137 fi 4138 4139fi 4140# Make sure we can run config.sub. 4141$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4142 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 4143$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 4144 { (exit 1); exit 1; }; } 4145 4146{ $as_echo "$as_me:$LINENO: checking build system type" >&5 4147$as_echo_n "checking build system type... " >&6; } 4148if test "${ac_cv_build+set}" = set; then 4149 $as_echo_n "(cached) " >&6 4150else 4151 ac_build_alias=$build_alias 4152test "x$ac_build_alias" = x && 4153 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4154test "x$ac_build_alias" = x && 4155 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 4156$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 4157 { (exit 1); exit 1; }; } 4158ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4159 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 4160$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 4161 { (exit 1); exit 1; }; } 4162 4163fi 4164{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 4165$as_echo "$ac_cv_build" >&6; } 4166case $ac_cv_build in 4167*-*-*) ;; 4168*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 4169$as_echo "$as_me: error: invalid value of canonical build" >&2;} 4170 { (exit 1); exit 1; }; };; 4171esac 4172build=$ac_cv_build 4173ac_save_IFS=$IFS; IFS='-' 4174set x $ac_cv_build 4175shift 4176build_cpu=$1 4177build_vendor=$2 4178shift; shift 4179# Remember, the first character of IFS is used to create $*, 4180# except with old shells: 4181build_os=$* 4182IFS=$ac_save_IFS 4183case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4184 4185 4186{ $as_echo "$as_me:$LINENO: checking host system type" >&5 4187$as_echo_n "checking host system type... " >&6; } 4188if test "${ac_cv_host+set}" = set; then 4189 $as_echo_n "(cached) " >&6 4190else 4191 if test "x$host_alias" = x; then 4192 ac_cv_host=$ac_cv_build 4193else 4194 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4195 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 4196$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 4197 { (exit 1); exit 1; }; } 4198fi 4199 4200fi 4201{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 4202$as_echo "$ac_cv_host" >&6; } 4203case $ac_cv_host in 4204*-*-*) ;; 4205*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 4206$as_echo "$as_me: error: invalid value of canonical host" >&2;} 4207 { (exit 1); exit 1; }; };; 4208esac 4209host=$ac_cv_host 4210ac_save_IFS=$IFS; IFS='-' 4211set x $ac_cv_host 4212shift 4213host_cpu=$1 4214host_vendor=$2 4215shift; shift 4216# Remember, the first character of IFS is used to create $*, 4217# except with old shells: 4218host_os=$* 4219IFS=$ac_save_IFS 4220case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4221 4222 4223{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4224$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4225if test "${ac_cv_path_SED+set}" = set; then 4226 $as_echo_n "(cached) " >&6 4227else 4228 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4229 for ac_i in 1 2 3 4 5 6 7; do 4230 ac_script="$ac_script$as_nl$ac_script" 4231 done 4232 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4233 $as_unset ac_script || ac_script= 4234 if test -z "$SED"; then 4235 ac_path_SED_found=false 4236 # Loop through the user's path and test for each of PROGNAME-LIST 4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4238for as_dir in $PATH 4239do 4240 IFS=$as_save_IFS 4241 test -z "$as_dir" && as_dir=. 4242 for ac_prog in sed gsed; do 4243 for ac_exec_ext in '' $ac_executable_extensions; do 4244 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4245 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4246# Check for GNU ac_path_SED and select it if it is found. 4247 # Check for GNU $ac_path_SED 4248case `"$ac_path_SED" --version 2>&1` in 4249*GNU*) 4250 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4251*) 4252 ac_count=0 4253 $as_echo_n 0123456789 >"conftest.in" 4254 while : 4255 do 4256 cat "conftest.in" "conftest.in" >"conftest.tmp" 4257 mv "conftest.tmp" "conftest.in" 4258 cp "conftest.in" "conftest.nl" 4259 $as_echo '' >> "conftest.nl" 4260 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4262 ac_count=`expr $ac_count + 1` 4263 if test $ac_count -gt ${ac_path_SED_max-0}; then 4264 # Best one so far, save it but keep looking for a better one 4265 ac_cv_path_SED="$ac_path_SED" 4266 ac_path_SED_max=$ac_count 4267 fi 4268 # 10*(2^10) chars as input seems more than enough 4269 test $ac_count -gt 10 && break 4270 done 4271 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4272esac 4273 4274 $ac_path_SED_found && break 3 4275 done 4276 done 4277done 4278IFS=$as_save_IFS 4279 if test -z "$ac_cv_path_SED"; then 4280 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 4281$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 4282 { (exit 1); exit 1; }; } 4283 fi 4284else 4285 ac_cv_path_SED=$SED 4286fi 4287 4288fi 4289{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 4290$as_echo "$ac_cv_path_SED" >&6; } 4291 SED="$ac_cv_path_SED" 4292 rm -f conftest.sed 4293 4294 4295 4296 4297 4298if test "x$GCC" = xyes ; then 4299 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4300-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4301-Wbad-function-cast -Wformat=2" 4302 case `$CC -dumpversion` in 4303 3.4.* | 4.*) 4304 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4305 ;; 4306 esac 4307else 4308 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 4309$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 4310if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 4311 $as_echo_n "(cached) " >&6 4312else 4313 cat >conftest.$ac_ext <<_ACEOF 4314/* confdefs.h. */ 4315_ACEOF 4316cat confdefs.h >>conftest.$ac_ext 4317cat >>conftest.$ac_ext <<_ACEOF 4318/* end confdefs.h. */ 4319$ac_includes_default 4320int 4321main () 4322{ 4323#ifndef __SUNPRO_C 4324 (void) __SUNPRO_C; 4325#endif 4326 4327 ; 4328 return 0; 4329} 4330_ACEOF 4331rm -f conftest.$ac_objext 4332if { (ac_try="$ac_compile" 4333case "(($ac_try" in 4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4335 *) ac_try_echo=$ac_try;; 4336esac 4337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4338$as_echo "$ac_try_echo") >&5 4339 (eval "$ac_compile") 2>conftest.er1 4340 ac_status=$? 4341 grep -v '^ *+' conftest.er1 >conftest.err 4342 rm -f conftest.er1 4343 cat conftest.err >&5 4344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4345 (exit $ac_status); } && { 4346 test -z "$ac_c_werror_flag" || 4347 test ! -s conftest.err 4348 } && test -s conftest.$ac_objext; then 4349 ac_cv_have_decl___SUNPRO_C=yes 4350else 4351 $as_echo "$as_me: failed program was:" >&5 4352sed 's/^/| /' conftest.$ac_ext >&5 4353 4354 ac_cv_have_decl___SUNPRO_C=no 4355fi 4356 4357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4358fi 4359{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 4360$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 4361if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 4362 SUNCC="yes" 4363else 4364 SUNCC="no" 4365fi 4366 4367 if test "x$SUNCC" = "xyes"; then 4368 CWARNFLAGS="-v" 4369 fi 4370fi 4371 4372 4373 4374# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 4375 4376 4377 4378# Check whether --enable-strict-compilation was given. 4379if test "${enable_strict_compilation+set}" = set; then 4380 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4381else 4382 STRICT_COMPILE=no 4383fi 4384 4385if test "x$STRICT_COMPILE" = "xyes"; then 4386 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 4387$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 4388if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 4389 $as_echo_n "(cached) " >&6 4390else 4391 cat >conftest.$ac_ext <<_ACEOF 4392/* confdefs.h. */ 4393_ACEOF 4394cat confdefs.h >>conftest.$ac_ext 4395cat >>conftest.$ac_ext <<_ACEOF 4396/* end confdefs.h. */ 4397$ac_includes_default 4398int 4399main () 4400{ 4401#ifndef __SUNPRO_C 4402 (void) __SUNPRO_C; 4403#endif 4404 4405 ; 4406 return 0; 4407} 4408_ACEOF 4409rm -f conftest.$ac_objext 4410if { (ac_try="$ac_compile" 4411case "(($ac_try" in 4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4413 *) ac_try_echo=$ac_try;; 4414esac 4415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4416$as_echo "$ac_try_echo") >&5 4417 (eval "$ac_compile") 2>conftest.er1 4418 ac_status=$? 4419 grep -v '^ *+' conftest.er1 >conftest.err 4420 rm -f conftest.er1 4421 cat conftest.err >&5 4422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4423 (exit $ac_status); } && { 4424 test -z "$ac_c_werror_flag" || 4425 test ! -s conftest.err 4426 } && test -s conftest.$ac_objext; then 4427 ac_cv_have_decl___SUNPRO_C=yes 4428else 4429 $as_echo "$as_me: failed program was:" >&5 4430sed 's/^/| /' conftest.$ac_ext >&5 4431 4432 ac_cv_have_decl___SUNPRO_C=no 4433fi 4434 4435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4436fi 4437{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 4438$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 4439if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 4440 SUNCC="yes" 4441else 4442 SUNCC="no" 4443fi 4444 4445 { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5 4446$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; } 4447if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then 4448 $as_echo_n "(cached) " >&6 4449else 4450 cat >conftest.$ac_ext <<_ACEOF 4451/* confdefs.h. */ 4452_ACEOF 4453cat confdefs.h >>conftest.$ac_ext 4454cat >>conftest.$ac_ext <<_ACEOF 4455/* end confdefs.h. */ 4456$ac_includes_default 4457int 4458main () 4459{ 4460#ifndef __INTEL_COMPILER 4461 (void) __INTEL_COMPILER; 4462#endif 4463 4464 ; 4465 return 0; 4466} 4467_ACEOF 4468rm -f conftest.$ac_objext 4469if { (ac_try="$ac_compile" 4470case "(($ac_try" in 4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4472 *) ac_try_echo=$ac_try;; 4473esac 4474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4475$as_echo "$ac_try_echo") >&5 4476 (eval "$ac_compile") 2>conftest.er1 4477 ac_status=$? 4478 grep -v '^ *+' conftest.er1 >conftest.err 4479 rm -f conftest.er1 4480 cat conftest.err >&5 4481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4482 (exit $ac_status); } && { 4483 test -z "$ac_c_werror_flag" || 4484 test ! -s conftest.err 4485 } && test -s conftest.$ac_objext; then 4486 ac_cv_have_decl___INTEL_COMPILER=yes 4487else 4488 $as_echo "$as_me: failed program was:" >&5 4489sed 's/^/| /' conftest.$ac_ext >&5 4490 4491 ac_cv_have_decl___INTEL_COMPILER=no 4492fi 4493 4494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4495fi 4496{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5 4497$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; } 4498if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then 4499 INTELCC="yes" 4500else 4501 INTELCC="no" 4502fi 4503 4504 if test "x$GCC" = xyes ; then 4505 STRICT_CFLAGS="-pedantic -Werror" 4506 elif test "x$SUNCC" = "xyes"; then 4507 STRICT_CFLAGS="-errwarn" 4508 elif test "x$INTELCC" = "xyes"; then 4509 STRICT_CFLAGS="-Werror" 4510 fi 4511fi 4512CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4513 4514 4515 4516 4517cat >>confdefs.h <<_ACEOF 4518#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4519_ACEOF 4520 4521 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4522 if test "x$PVM" = "x"; then 4523 PVM="0" 4524 fi 4525 4526cat >>confdefs.h <<_ACEOF 4527#define PACKAGE_VERSION_MINOR $PVM 4528_ACEOF 4529 4530 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4531 if test "x$PVP" = "x"; then 4532 PVP="0" 4533 fi 4534 4535cat >>confdefs.h <<_ACEOF 4536#define PACKAGE_VERSION_PATCHLEVEL $PVP 4537_ACEOF 4538 4539 4540 4541CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 4542mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 4543|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 4544echo 'git directory not found: installing possibly empty changelog.' >&2)" 4545 4546 4547 4548 4549macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 4550INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 4551mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 4552|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 4553echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 4554 4555 4556 4557 4558 4559 4560if test x$APP_MAN_SUFFIX = x ; then 4561 APP_MAN_SUFFIX=1 4562fi 4563if test x$APP_MAN_DIR = x ; then 4564 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4565fi 4566 4567if test x$LIB_MAN_SUFFIX = x ; then 4568 LIB_MAN_SUFFIX=3 4569fi 4570if test x$LIB_MAN_DIR = x ; then 4571 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4572fi 4573 4574if test x$FILE_MAN_SUFFIX = x ; then 4575 case $host_os in 4576 solaris*) FILE_MAN_SUFFIX=4 ;; 4577 *) FILE_MAN_SUFFIX=5 ;; 4578 esac 4579fi 4580if test x$FILE_MAN_DIR = x ; then 4581 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4582fi 4583 4584if test x$MISC_MAN_SUFFIX = x ; then 4585 case $host_os in 4586 solaris*) MISC_MAN_SUFFIX=5 ;; 4587 *) MISC_MAN_SUFFIX=7 ;; 4588 esac 4589fi 4590if test x$MISC_MAN_DIR = x ; then 4591 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4592fi 4593 4594if test x$DRIVER_MAN_SUFFIX = x ; then 4595 case $host_os in 4596 solaris*) DRIVER_MAN_SUFFIX=7 ;; 4597 *) DRIVER_MAN_SUFFIX=4 ;; 4598 esac 4599fi 4600if test x$DRIVER_MAN_DIR = x ; then 4601 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4602fi 4603 4604if test x$ADMIN_MAN_SUFFIX = x ; then 4605 case $host_os in 4606 solaris*) ADMIN_MAN_SUFFIX=1m ;; 4607 *) ADMIN_MAN_SUFFIX=8 ;; 4608 esac 4609fi 4610if test x$ADMIN_MAN_DIR = x ; then 4611 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4612fi 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628XORG_MAN_PAGE="X Version 11" 4629 4630MAN_SUBSTS="\ 4631 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4632 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4633 -e 's|__xservername__|Xorg|g' \ 4634 -e 's|__xconfigfile__|xorg.conf|g' \ 4635 -e 's|__projectroot__|\$(prefix)|g' \ 4636 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 4637 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 4638 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 4639 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 4640 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 4641 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 4642 4643 4644 4645# Check whether --enable-silent-rules was given. 4646if test "${enable_silent_rules+set}" = set; then 4647 enableval=$enable_silent_rules; 4648fi 4649 4650case $enable_silent_rules in 4651yes) AM_DEFAULT_VERBOSITY=0;; 4652no) AM_DEFAULT_VERBOSITY=1;; 4653*) AM_DEFAULT_VERBOSITY=0;; 4654esac 4655AM_BACKSLASH='\' 4656 4657 4658 4659ac_aux_dir= 4660for ac_dir in . "$srcdir"/.; do 4661 if test -f "$ac_dir/install-sh"; then 4662 ac_aux_dir=$ac_dir 4663 ac_install_sh="$ac_aux_dir/install-sh -c" 4664 break 4665 elif test -f "$ac_dir/install.sh"; then 4666 ac_aux_dir=$ac_dir 4667 ac_install_sh="$ac_aux_dir/install.sh -c" 4668 break 4669 elif test -f "$ac_dir/shtool"; then 4670 ac_aux_dir=$ac_dir 4671 ac_install_sh="$ac_aux_dir/shtool install -c" 4672 break 4673 fi 4674done 4675if test -z "$ac_aux_dir"; then 4676 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 4677$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 4678 { (exit 1); exit 1; }; } 4679fi 4680 4681# These three variables are undocumented and unsupported, 4682# and are intended to be withdrawn in a future Autoconf release. 4683# They can cause serious problems if a builder's source tree is in a directory 4684# whose full name contains unusual characters. 4685ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 4686ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 4687ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 4688 4689 4690 4691# Initialize Automake 4692am__api_version='1.11' 4693 4694{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 4695$as_echo_n "checking whether build environment is sane... " >&6; } 4696# Just in case 4697sleep 1 4698echo timestamp > conftest.file 4699# Reject unsafe characters in $srcdir or the absolute working directory 4700# name. Accept space and tab only in the latter. 4701am_lf=' 4702' 4703case `pwd` in 4704 *[\\\"\#\$\&\'\`$am_lf]*) 4705 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 4706$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 4707 { (exit 1); exit 1; }; };; 4708esac 4709case $srcdir in 4710 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4711 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 4712$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 4713 { (exit 1); exit 1; }; };; 4714esac 4715 4716# Do `set' in a subshell so we don't clobber the current shell's 4717# arguments. Must try -L first in case configure is actually a 4718# symlink; some systems play weird games with the mod time of symlinks 4719# (eg FreeBSD returns the mod time of the symlink's containing 4720# directory). 4721if ( 4722 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4723 if test "$*" = "X"; then 4724 # -L didn't work. 4725 set X `ls -t "$srcdir/configure" conftest.file` 4726 fi 4727 rm -f conftest.file 4728 if test "$*" != "X $srcdir/configure conftest.file" \ 4729 && test "$*" != "X conftest.file $srcdir/configure"; then 4730 4731 # If neither matched, then we have a broken ls. This can happen 4732 # if, for instance, CONFIG_SHELL is bash and it inherits a 4733 # broken ls alias from the environment. This has actually 4734 # happened. Such a system could not be considered "sane". 4735 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 4736alias in your environment" >&5 4737$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 4738alias in your environment" >&2;} 4739 { (exit 1); exit 1; }; } 4740 fi 4741 4742 test "$2" = conftest.file 4743 ) 4744then 4745 # Ok. 4746 : 4747else 4748 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 4749Check your system clock" >&5 4750$as_echo "$as_me: error: newly created file is older than distributed files! 4751Check your system clock" >&2;} 4752 { (exit 1); exit 1; }; } 4753fi 4754{ $as_echo "$as_me:$LINENO: result: yes" >&5 4755$as_echo "yes" >&6; } 4756test "$program_prefix" != NONE && 4757 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4758# Use a double $ so make ignores it. 4759test "$program_suffix" != NONE && 4760 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4761# Double any \ or $. 4762# By default was `s,x,x', remove it if useless. 4763ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4764program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 4765 4766# expand $ac_aux_dir to an absolute path 4767am_aux_dir=`cd $ac_aux_dir && pwd` 4768 4769if test x"${MISSING+set}" != xset; then 4770 case $am_aux_dir in 4771 *\ * | *\ *) 4772 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 4773 *) 4774 MISSING="\${SHELL} $am_aux_dir/missing" ;; 4775 esac 4776fi 4777# Use eval to expand $SHELL 4778if eval "$MISSING --run true"; then 4779 am_missing_run="$MISSING --run " 4780else 4781 am_missing_run= 4782 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 4783$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 4784fi 4785 4786if test x"${install_sh}" != xset; then 4787 case $am_aux_dir in 4788 *\ * | *\ *) 4789 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4790 *) 4791 install_sh="\${SHELL} $am_aux_dir/install-sh" 4792 esac 4793fi 4794 4795# Installed binaries are usually stripped using `strip' when the user 4796# run `make install-strip'. However `strip' might not be the right 4797# tool to use in cross-compilation environments, therefore Automake 4798# will honor the `STRIP' environment variable to overrule this program. 4799if test "$cross_compiling" != no; then 4800 if test -n "$ac_tool_prefix"; then 4801 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4802set dummy ${ac_tool_prefix}strip; ac_word=$2 4803{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4804$as_echo_n "checking for $ac_word... " >&6; } 4805if test "${ac_cv_prog_STRIP+set}" = set; then 4806 $as_echo_n "(cached) " >&6 4807else 4808 if test -n "$STRIP"; then 4809 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4810else 4811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4812for as_dir in $PATH 4813do 4814 IFS=$as_save_IFS 4815 test -z "$as_dir" && as_dir=. 4816 for ac_exec_ext in '' $ac_executable_extensions; do 4817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4818 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4819 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4820 break 2 4821 fi 4822done 4823done 4824IFS=$as_save_IFS 4825 4826fi 4827fi 4828STRIP=$ac_cv_prog_STRIP 4829if test -n "$STRIP"; then 4830 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 4831$as_echo "$STRIP" >&6; } 4832else 4833 { $as_echo "$as_me:$LINENO: result: no" >&5 4834$as_echo "no" >&6; } 4835fi 4836 4837 4838fi 4839if test -z "$ac_cv_prog_STRIP"; then 4840 ac_ct_STRIP=$STRIP 4841 # Extract the first word of "strip", so it can be a program name with args. 4842set dummy strip; ac_word=$2 4843{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4844$as_echo_n "checking for $ac_word... " >&6; } 4845if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 4846 $as_echo_n "(cached) " >&6 4847else 4848 if test -n "$ac_ct_STRIP"; then 4849 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4850else 4851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4852for as_dir in $PATH 4853do 4854 IFS=$as_save_IFS 4855 test -z "$as_dir" && as_dir=. 4856 for ac_exec_ext in '' $ac_executable_extensions; do 4857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4858 ac_cv_prog_ac_ct_STRIP="strip" 4859 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4860 break 2 4861 fi 4862done 4863done 4864IFS=$as_save_IFS 4865 4866fi 4867fi 4868ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4869if test -n "$ac_ct_STRIP"; then 4870 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 4871$as_echo "$ac_ct_STRIP" >&6; } 4872else 4873 { $as_echo "$as_me:$LINENO: result: no" >&5 4874$as_echo "no" >&6; } 4875fi 4876 4877 if test "x$ac_ct_STRIP" = x; then 4878 STRIP=":" 4879 else 4880 case $cross_compiling:$ac_tool_warned in 4881yes:) 4882{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4884ac_tool_warned=yes ;; 4885esac 4886 STRIP=$ac_ct_STRIP 4887 fi 4888else 4889 STRIP="$ac_cv_prog_STRIP" 4890fi 4891 4892fi 4893INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4894 4895{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 4896$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4897if test -z "$MKDIR_P"; then 4898 if test "${ac_cv_path_mkdir+set}" = set; then 4899 $as_echo_n "(cached) " >&6 4900else 4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4902for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4903do 4904 IFS=$as_save_IFS 4905 test -z "$as_dir" && as_dir=. 4906 for ac_prog in mkdir gmkdir; do 4907 for ac_exec_ext in '' $ac_executable_extensions; do 4908 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 4909 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4910 'mkdir (GNU coreutils) '* | \ 4911 'mkdir (coreutils) '* | \ 4912 'mkdir (fileutils) '4.1*) 4913 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4914 break 3;; 4915 esac 4916 done 4917 done 4918done 4919IFS=$as_save_IFS 4920 4921fi 4922 4923 if test "${ac_cv_path_mkdir+set}" = set; then 4924 MKDIR_P="$ac_cv_path_mkdir -p" 4925 else 4926 # As a last resort, use the slow shell script. Don't cache a 4927 # value for MKDIR_P within a source directory, because that will 4928 # break other packages using the cache if that directory is 4929 # removed, or if the value is a relative name. 4930 test -d ./--version && rmdir ./--version 4931 MKDIR_P="$ac_install_sh -d" 4932 fi 4933fi 4934{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 4935$as_echo "$MKDIR_P" >&6; } 4936 4937mkdir_p="$MKDIR_P" 4938case $mkdir_p in 4939 [\\/$]* | ?:[\\/]*) ;; 4940 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 4941esac 4942 4943for ac_prog in gawk mawk nawk awk 4944do 4945 # Extract the first word of "$ac_prog", so it can be a program name with args. 4946set dummy $ac_prog; ac_word=$2 4947{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4948$as_echo_n "checking for $ac_word... " >&6; } 4949if test "${ac_cv_prog_AWK+set}" = set; then 4950 $as_echo_n "(cached) " >&6 4951else 4952 if test -n "$AWK"; then 4953 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4954else 4955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4956for as_dir in $PATH 4957do 4958 IFS=$as_save_IFS 4959 test -z "$as_dir" && as_dir=. 4960 for ac_exec_ext in '' $ac_executable_extensions; do 4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4962 ac_cv_prog_AWK="$ac_prog" 4963 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4964 break 2 4965 fi 4966done 4967done 4968IFS=$as_save_IFS 4969 4970fi 4971fi 4972AWK=$ac_cv_prog_AWK 4973if test -n "$AWK"; then 4974 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 4975$as_echo "$AWK" >&6; } 4976else 4977 { $as_echo "$as_me:$LINENO: result: no" >&5 4978$as_echo "no" >&6; } 4979fi 4980 4981 4982 test -n "$AWK" && break 4983done 4984 4985{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4986$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4987set x ${MAKE-make} 4988ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4989if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 4990 $as_echo_n "(cached) " >&6 4991else 4992 cat >conftest.make <<\_ACEOF 4993SHELL = /bin/sh 4994all: 4995 @echo '@@@%%%=$(MAKE)=@@@%%%' 4996_ACEOF 4997# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4998case `${MAKE-make} -f conftest.make 2>/dev/null` in 4999 *@@@%%%=?*=@@@%%%*) 5000 eval ac_cv_prog_make_${ac_make}_set=yes;; 5001 *) 5002 eval ac_cv_prog_make_${ac_make}_set=no;; 5003esac 5004rm -f conftest.make 5005fi 5006if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5007 { $as_echo "$as_me:$LINENO: result: yes" >&5 5008$as_echo "yes" >&6; } 5009 SET_MAKE= 5010else 5011 { $as_echo "$as_me:$LINENO: result: no" >&5 5012$as_echo "no" >&6; } 5013 SET_MAKE="MAKE=${MAKE-make}" 5014fi 5015 5016rm -rf .tst 2>/dev/null 5017mkdir .tst 2>/dev/null 5018if test -d .tst; then 5019 am__leading_dot=. 5020else 5021 am__leading_dot=_ 5022fi 5023rmdir .tst 2>/dev/null 5024 5025DEPDIR="${am__leading_dot}deps" 5026 5027ac_config_commands="$ac_config_commands depfiles" 5028 5029 5030am_make=${MAKE-make} 5031cat > confinc << 'END' 5032am__doit: 5033 @echo this is the am__doit target 5034.PHONY: am__doit 5035END 5036# If we don't find an include directive, just comment out the code. 5037{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 5038$as_echo_n "checking for style of include used by $am_make... " >&6; } 5039am__include="#" 5040am__quote= 5041_am_result=none 5042# First try GNU make style include. 5043echo "include confinc" > confmf 5044# Ignore all kinds of additional output from `make'. 5045case `$am_make -s -f confmf 2> /dev/null` in #( 5046*the\ am__doit\ target*) 5047 am__include=include 5048 am__quote= 5049 _am_result=GNU 5050 ;; 5051esac 5052# Now try BSD make style include. 5053if test "$am__include" = "#"; then 5054 echo '.include "confinc"' > confmf 5055 case `$am_make -s -f confmf 2> /dev/null` in #( 5056 *the\ am__doit\ target*) 5057 am__include=.include 5058 am__quote="\"" 5059 _am_result=BSD 5060 ;; 5061 esac 5062fi 5063 5064 5065{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 5066$as_echo "$_am_result" >&6; } 5067rm -f confinc confmf 5068 5069# Check whether --enable-dependency-tracking was given. 5070if test "${enable_dependency_tracking+set}" = set; then 5071 enableval=$enable_dependency_tracking; 5072fi 5073 5074if test "x$enable_dependency_tracking" != xno; then 5075 am_depcomp="$ac_aux_dir/depcomp" 5076 AMDEPBACKSLASH='\' 5077fi 5078 if test "x$enable_dependency_tracking" != xno; then 5079 AMDEP_TRUE= 5080 AMDEP_FALSE='#' 5081else 5082 AMDEP_TRUE='#' 5083 AMDEP_FALSE= 5084fi 5085 5086 5087if test "`cd $srcdir && pwd`" != "`pwd`"; then 5088 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 5089 # is not polluted with repeated "-I." 5090 am__isrc=' -I$(srcdir)' 5091 # test to see if srcdir already configured 5092 if test -f $srcdir/config.status; then 5093 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 5094$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 5095 { (exit 1); exit 1; }; } 5096 fi 5097fi 5098 5099# test whether we have cygpath 5100if test -z "$CYGPATH_W"; then 5101 if (cygpath --version) >/dev/null 2>/dev/null; then 5102 CYGPATH_W='cygpath -w' 5103 else 5104 CYGPATH_W=echo 5105 fi 5106fi 5107 5108 5109# Define the identity of the package. 5110 PACKAGE='xf86-video-ati' 5111 VERSION='6.14.2' 5112 5113 5114cat >>confdefs.h <<_ACEOF 5115#define PACKAGE "$PACKAGE" 5116_ACEOF 5117 5118 5119cat >>confdefs.h <<_ACEOF 5120#define VERSION "$VERSION" 5121_ACEOF 5122 5123# Some tools Automake needs. 5124 5125ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 5126 5127 5128AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 5129 5130 5131AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 5132 5133 5134AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 5135 5136 5137MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 5138 5139# We need awk for the "check" target. The system "awk" is bad on 5140# some platforms. 5141# Always define AMTAR for backward compatibility. 5142 5143AMTAR=${AMTAR-"${am_missing_run}tar"} 5144 5145am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 5146 5147 5148 5149 5150depcc="$CC" am_compiler_list= 5151 5152{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5153$as_echo_n "checking dependency style of $depcc... " >&6; } 5154if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 5155 $as_echo_n "(cached) " >&6 5156else 5157 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5158 # We make a subdir and do the tests there. Otherwise we can end up 5159 # making bogus files that we don't know about and never remove. For 5160 # instance it was reported that on HP-UX the gcc test will end up 5161 # making a dummy file named `D' -- because `-MD' means `put the output 5162 # in D'. 5163 mkdir conftest.dir 5164 # Copy depcomp to subdir because otherwise we won't find it if we're 5165 # using a relative directory. 5166 cp "$am_depcomp" conftest.dir 5167 cd conftest.dir 5168 # We will build objects and dependencies in a subdirectory because 5169 # it helps to detect inapplicable dependency modes. For instance 5170 # both Tru64's cc and ICC support -MD to output dependencies as a 5171 # side effect of compilation, but ICC will put the dependencies in 5172 # the current directory while Tru64 will put them in the object 5173 # directory. 5174 mkdir sub 5175 5176 am_cv_CC_dependencies_compiler_type=none 5177 if test "$am_compiler_list" = ""; then 5178 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5179 fi 5180 am__universal=false 5181 case " $depcc " in #( 5182 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5183 esac 5184 5185 for depmode in $am_compiler_list; do 5186 # Setup a source with many dependencies, because some compilers 5187 # like to wrap large dependency lists on column 80 (with \), and 5188 # we should not choose a depcomp mode which is confused by this. 5189 # 5190 # We need to recreate these files for each test, as the compiler may 5191 # overwrite some of them when testing with obscure command lines. 5192 # This happens at least with the AIX C compiler. 5193 : > sub/conftest.c 5194 for i in 1 2 3 4 5 6; do 5195 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5196 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5197 # Solaris 8's {/usr,}/bin/sh. 5198 touch sub/conftst$i.h 5199 done 5200 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5201 5202 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5203 # mode. It turns out that the SunPro C++ compiler does not properly 5204 # handle `-M -o', and we need to detect this. Also, some Intel 5205 # versions had trouble with output in subdirs 5206 am__obj=sub/conftest.${OBJEXT-o} 5207 am__minus_obj="-o $am__obj" 5208 case $depmode in 5209 gcc) 5210 # This depmode causes a compiler race in universal mode. 5211 test "$am__universal" = false || continue 5212 ;; 5213 nosideeffect) 5214 # after this tag, mechanisms are not by side-effect, so they'll 5215 # only be used when explicitly requested 5216 if test "x$enable_dependency_tracking" = xyes; then 5217 continue 5218 else 5219 break 5220 fi 5221 ;; 5222 msvisualcpp | msvcmsys) 5223 # This compiler won't grok `-c -o', but also, the minuso test has 5224 # not run yet. These depmodes are late enough in the game, and 5225 # so weak that their functioning should not be impacted. 5226 am__obj=conftest.${OBJEXT-o} 5227 am__minus_obj= 5228 ;; 5229 none) break ;; 5230 esac 5231 if depmode=$depmode \ 5232 source=sub/conftest.c object=$am__obj \ 5233 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5234 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5235 >/dev/null 2>conftest.err && 5236 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5237 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5238 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5239 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5240 # icc doesn't choke on unknown options, it will just issue warnings 5241 # or remarks (even with -Werror). So we grep stderr for any message 5242 # that says an option was ignored or not supported. 5243 # When given -MP, icc 7.0 and 7.1 complain thusly: 5244 # icc: Command line warning: ignoring option '-M'; no argument required 5245 # The diagnosis changed in icc 8.0: 5246 # icc: Command line remark: option '-MP' not supported 5247 if (grep 'ignoring option' conftest.err || 5248 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5249 am_cv_CC_dependencies_compiler_type=$depmode 5250 break 5251 fi 5252 fi 5253 done 5254 5255 cd .. 5256 rm -rf conftest.dir 5257else 5258 am_cv_CC_dependencies_compiler_type=none 5259fi 5260 5261fi 5262{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 5263$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5264CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5265 5266 if 5267 test "x$enable_dependency_tracking" != xno \ 5268 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5269 am__fastdepCC_TRUE= 5270 am__fastdepCC_FALSE='#' 5271else 5272 am__fastdepCC_TRUE='#' 5273 am__fastdepCC_FALSE= 5274fi 5275 5276 5277 5278# Check whether --enable-largefile was given. 5279if test "${enable_largefile+set}" = set; then 5280 enableval=$enable_largefile; 5281fi 5282 5283if test "$enable_largefile" != no; then 5284 5285 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 5286$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 5287if test "${ac_cv_sys_largefile_CC+set}" = set; then 5288 $as_echo_n "(cached) " >&6 5289else 5290 ac_cv_sys_largefile_CC=no 5291 if test "$GCC" != yes; then 5292 ac_save_CC=$CC 5293 while :; do 5294 # IRIX 6.2 and later do not support large files by default, 5295 # so use the C compiler's -n32 option if that helps. 5296 cat >conftest.$ac_ext <<_ACEOF 5297/* confdefs.h. */ 5298_ACEOF 5299cat confdefs.h >>conftest.$ac_ext 5300cat >>conftest.$ac_ext <<_ACEOF 5301/* end confdefs.h. */ 5302#include <sys/types.h> 5303 /* Check that off_t can represent 2**63 - 1 correctly. 5304 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5305 since some C++ compilers masquerading as C compilers 5306 incorrectly reject 9223372036854775807. */ 5307#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5308 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5309 && LARGE_OFF_T % 2147483647 == 1) 5310 ? 1 : -1]; 5311int 5312main () 5313{ 5314 5315 ; 5316 return 0; 5317} 5318_ACEOF 5319 rm -f conftest.$ac_objext 5320if { (ac_try="$ac_compile" 5321case "(($ac_try" in 5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5323 *) ac_try_echo=$ac_try;; 5324esac 5325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5326$as_echo "$ac_try_echo") >&5 5327 (eval "$ac_compile") 2>conftest.er1 5328 ac_status=$? 5329 grep -v '^ *+' conftest.er1 >conftest.err 5330 rm -f conftest.er1 5331 cat conftest.err >&5 5332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5333 (exit $ac_status); } && { 5334 test -z "$ac_c_werror_flag" || 5335 test ! -s conftest.err 5336 } && test -s conftest.$ac_objext; then 5337 break 5338else 5339 $as_echo "$as_me: failed program was:" >&5 5340sed 's/^/| /' conftest.$ac_ext >&5 5341 5342 5343fi 5344 5345rm -f core conftest.err conftest.$ac_objext 5346 CC="$CC -n32" 5347 rm -f conftest.$ac_objext 5348if { (ac_try="$ac_compile" 5349case "(($ac_try" in 5350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5351 *) ac_try_echo=$ac_try;; 5352esac 5353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5354$as_echo "$ac_try_echo") >&5 5355 (eval "$ac_compile") 2>conftest.er1 5356 ac_status=$? 5357 grep -v '^ *+' conftest.er1 >conftest.err 5358 rm -f conftest.er1 5359 cat conftest.err >&5 5360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5361 (exit $ac_status); } && { 5362 test -z "$ac_c_werror_flag" || 5363 test ! -s conftest.err 5364 } && test -s conftest.$ac_objext; then 5365 ac_cv_sys_largefile_CC=' -n32'; break 5366else 5367 $as_echo "$as_me: failed program was:" >&5 5368sed 's/^/| /' conftest.$ac_ext >&5 5369 5370 5371fi 5372 5373rm -f core conftest.err conftest.$ac_objext 5374 break 5375 done 5376 CC=$ac_save_CC 5377 rm -f conftest.$ac_ext 5378 fi 5379fi 5380{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 5381$as_echo "$ac_cv_sys_largefile_CC" >&6; } 5382 if test "$ac_cv_sys_largefile_CC" != no; then 5383 CC=$CC$ac_cv_sys_largefile_CC 5384 fi 5385 5386 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 5387$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 5388if test "${ac_cv_sys_file_offset_bits+set}" = set; then 5389 $as_echo_n "(cached) " >&6 5390else 5391 while :; do 5392 cat >conftest.$ac_ext <<_ACEOF 5393/* confdefs.h. */ 5394_ACEOF 5395cat confdefs.h >>conftest.$ac_ext 5396cat >>conftest.$ac_ext <<_ACEOF 5397/* end confdefs.h. */ 5398#include <sys/types.h> 5399 /* Check that off_t can represent 2**63 - 1 correctly. 5400 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5401 since some C++ compilers masquerading as C compilers 5402 incorrectly reject 9223372036854775807. */ 5403#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5404 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5405 && LARGE_OFF_T % 2147483647 == 1) 5406 ? 1 : -1]; 5407int 5408main () 5409{ 5410 5411 ; 5412 return 0; 5413} 5414_ACEOF 5415rm -f conftest.$ac_objext 5416if { (ac_try="$ac_compile" 5417case "(($ac_try" in 5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5419 *) ac_try_echo=$ac_try;; 5420esac 5421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5422$as_echo "$ac_try_echo") >&5 5423 (eval "$ac_compile") 2>conftest.er1 5424 ac_status=$? 5425 grep -v '^ *+' conftest.er1 >conftest.err 5426 rm -f conftest.er1 5427 cat conftest.err >&5 5428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5429 (exit $ac_status); } && { 5430 test -z "$ac_c_werror_flag" || 5431 test ! -s conftest.err 5432 } && test -s conftest.$ac_objext; then 5433 ac_cv_sys_file_offset_bits=no; break 5434else 5435 $as_echo "$as_me: failed program was:" >&5 5436sed 's/^/| /' conftest.$ac_ext >&5 5437 5438 5439fi 5440 5441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5442 cat >conftest.$ac_ext <<_ACEOF 5443/* confdefs.h. */ 5444_ACEOF 5445cat confdefs.h >>conftest.$ac_ext 5446cat >>conftest.$ac_ext <<_ACEOF 5447/* end confdefs.h. */ 5448#define _FILE_OFFSET_BITS 64 5449#include <sys/types.h> 5450 /* Check that off_t can represent 2**63 - 1 correctly. 5451 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5452 since some C++ compilers masquerading as C compilers 5453 incorrectly reject 9223372036854775807. */ 5454#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5455 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5456 && LARGE_OFF_T % 2147483647 == 1) 5457 ? 1 : -1]; 5458int 5459main () 5460{ 5461 5462 ; 5463 return 0; 5464} 5465_ACEOF 5466rm -f conftest.$ac_objext 5467if { (ac_try="$ac_compile" 5468case "(($ac_try" in 5469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5470 *) ac_try_echo=$ac_try;; 5471esac 5472eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5473$as_echo "$ac_try_echo") >&5 5474 (eval "$ac_compile") 2>conftest.er1 5475 ac_status=$? 5476 grep -v '^ *+' conftest.er1 >conftest.err 5477 rm -f conftest.er1 5478 cat conftest.err >&5 5479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5480 (exit $ac_status); } && { 5481 test -z "$ac_c_werror_flag" || 5482 test ! -s conftest.err 5483 } && test -s conftest.$ac_objext; then 5484 ac_cv_sys_file_offset_bits=64; break 5485else 5486 $as_echo "$as_me: failed program was:" >&5 5487sed 's/^/| /' conftest.$ac_ext >&5 5488 5489 5490fi 5491 5492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5493 ac_cv_sys_file_offset_bits=unknown 5494 break 5495done 5496fi 5497{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 5498$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 5499case $ac_cv_sys_file_offset_bits in #( 5500 no | unknown) ;; 5501 *) 5502cat >>confdefs.h <<_ACEOF 5503#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 5504_ACEOF 5505;; 5506esac 5507rm -rf conftest* 5508 if test $ac_cv_sys_file_offset_bits = unknown; then 5509 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 5510$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 5511if test "${ac_cv_sys_large_files+set}" = set; then 5512 $as_echo_n "(cached) " >&6 5513else 5514 while :; do 5515 cat >conftest.$ac_ext <<_ACEOF 5516/* confdefs.h. */ 5517_ACEOF 5518cat confdefs.h >>conftest.$ac_ext 5519cat >>conftest.$ac_ext <<_ACEOF 5520/* end confdefs.h. */ 5521#include <sys/types.h> 5522 /* Check that off_t can represent 2**63 - 1 correctly. 5523 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5524 since some C++ compilers masquerading as C compilers 5525 incorrectly reject 9223372036854775807. */ 5526#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5527 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5528 && LARGE_OFF_T % 2147483647 == 1) 5529 ? 1 : -1]; 5530int 5531main () 5532{ 5533 5534 ; 5535 return 0; 5536} 5537_ACEOF 5538rm -f conftest.$ac_objext 5539if { (ac_try="$ac_compile" 5540case "(($ac_try" in 5541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5542 *) ac_try_echo=$ac_try;; 5543esac 5544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5545$as_echo "$ac_try_echo") >&5 5546 (eval "$ac_compile") 2>conftest.er1 5547 ac_status=$? 5548 grep -v '^ *+' conftest.er1 >conftest.err 5549 rm -f conftest.er1 5550 cat conftest.err >&5 5551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5552 (exit $ac_status); } && { 5553 test -z "$ac_c_werror_flag" || 5554 test ! -s conftest.err 5555 } && test -s conftest.$ac_objext; then 5556 ac_cv_sys_large_files=no; break 5557else 5558 $as_echo "$as_me: failed program was:" >&5 5559sed 's/^/| /' conftest.$ac_ext >&5 5560 5561 5562fi 5563 5564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5565 cat >conftest.$ac_ext <<_ACEOF 5566/* confdefs.h. */ 5567_ACEOF 5568cat confdefs.h >>conftest.$ac_ext 5569cat >>conftest.$ac_ext <<_ACEOF 5570/* end confdefs.h. */ 5571#define _LARGE_FILES 1 5572#include <sys/types.h> 5573 /* Check that off_t can represent 2**63 - 1 correctly. 5574 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5575 since some C++ compilers masquerading as C compilers 5576 incorrectly reject 9223372036854775807. */ 5577#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5578 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5579 && LARGE_OFF_T % 2147483647 == 1) 5580 ? 1 : -1]; 5581int 5582main () 5583{ 5584 5585 ; 5586 return 0; 5587} 5588_ACEOF 5589rm -f conftest.$ac_objext 5590if { (ac_try="$ac_compile" 5591case "(($ac_try" in 5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5593 *) ac_try_echo=$ac_try;; 5594esac 5595eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5596$as_echo "$ac_try_echo") >&5 5597 (eval "$ac_compile") 2>conftest.er1 5598 ac_status=$? 5599 grep -v '^ *+' conftest.er1 >conftest.err 5600 rm -f conftest.er1 5601 cat conftest.err >&5 5602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5603 (exit $ac_status); } && { 5604 test -z "$ac_c_werror_flag" || 5605 test ! -s conftest.err 5606 } && test -s conftest.$ac_objext; then 5607 ac_cv_sys_large_files=1; break 5608else 5609 $as_echo "$as_me: failed program was:" >&5 5610sed 's/^/| /' conftest.$ac_ext >&5 5611 5612 5613fi 5614 5615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5616 ac_cv_sys_large_files=unknown 5617 break 5618done 5619fi 5620{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 5621$as_echo "$ac_cv_sys_large_files" >&6; } 5622case $ac_cv_sys_large_files in #( 5623 no | unknown) ;; 5624 *) 5625cat >>confdefs.h <<_ACEOF 5626#define _LARGE_FILES $ac_cv_sys_large_files 5627_ACEOF 5628;; 5629esac 5630rm -rf conftest* 5631 fi 5632fi 5633 5634 5635 5636{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 5637$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 5638 # Check whether --enable-maintainer-mode was given. 5639if test "${enable_maintainer_mode+set}" = set; then 5640 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 5641else 5642 USE_MAINTAINER_MODE=no 5643fi 5644 5645 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 5646$as_echo "$USE_MAINTAINER_MODE" >&6; } 5647 if test $USE_MAINTAINER_MODE = yes; then 5648 MAINTAINER_MODE_TRUE= 5649 MAINTAINER_MODE_FALSE='#' 5650else 5651 MAINTAINER_MODE_TRUE='#' 5652 MAINTAINER_MODE_FALSE= 5653fi 5654 5655 MAINT=$MAINTAINER_MODE_TRUE 5656 5657 5658 5659# Initialize libtool 5660# Check whether --enable-static was given. 5661if test "${enable_static+set}" = set; then 5662 enableval=$enable_static; p=${PACKAGE-default} 5663 case $enableval in 5664 yes) enable_static=yes ;; 5665 no) enable_static=no ;; 5666 *) 5667 enable_static=no 5668 # Look at the argument we got. We use all the common list separators. 5669 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5670 for pkg in $enableval; do 5671 IFS="$lt_save_ifs" 5672 if test "X$pkg" = "X$p"; then 5673 enable_static=yes 5674 fi 5675 done 5676 IFS="$lt_save_ifs" 5677 ;; 5678 esac 5679else 5680 enable_static=no 5681fi 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691case `pwd` in 5692 *\ * | *\ *) 5693 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5694$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5695esac 5696 5697 5698 5699macro_version='2.2.6b' 5700macro_revision='1.3017' 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714ltmain="$ac_aux_dir/ltmain.sh" 5715 5716{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 5717$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5718if test "${ac_cv_path_SED+set}" = set; then 5719 $as_echo_n "(cached) " >&6 5720else 5721 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5722 for ac_i in 1 2 3 4 5 6 7; do 5723 ac_script="$ac_script$as_nl$ac_script" 5724 done 5725 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5726 $as_unset ac_script || ac_script= 5727 if test -z "$SED"; then 5728 ac_path_SED_found=false 5729 # Loop through the user's path and test for each of PROGNAME-LIST 5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5731for as_dir in $PATH 5732do 5733 IFS=$as_save_IFS 5734 test -z "$as_dir" && as_dir=. 5735 for ac_prog in sed gsed; do 5736 for ac_exec_ext in '' $ac_executable_extensions; do 5737 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5738 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5739# Check for GNU ac_path_SED and select it if it is found. 5740 # Check for GNU $ac_path_SED 5741case `"$ac_path_SED" --version 2>&1` in 5742*GNU*) 5743 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5744*) 5745 ac_count=0 5746 $as_echo_n 0123456789 >"conftest.in" 5747 while : 5748 do 5749 cat "conftest.in" "conftest.in" >"conftest.tmp" 5750 mv "conftest.tmp" "conftest.in" 5751 cp "conftest.in" "conftest.nl" 5752 $as_echo '' >> "conftest.nl" 5753 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5754 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5755 ac_count=`expr $ac_count + 1` 5756 if test $ac_count -gt ${ac_path_SED_max-0}; then 5757 # Best one so far, save it but keep looking for a better one 5758 ac_cv_path_SED="$ac_path_SED" 5759 ac_path_SED_max=$ac_count 5760 fi 5761 # 10*(2^10) chars as input seems more than enough 5762 test $ac_count -gt 10 && break 5763 done 5764 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5765esac 5766 5767 $ac_path_SED_found && break 3 5768 done 5769 done 5770done 5771IFS=$as_save_IFS 5772 if test -z "$ac_cv_path_SED"; then 5773 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 5774$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 5775 { (exit 1); exit 1; }; } 5776 fi 5777else 5778 ac_cv_path_SED=$SED 5779fi 5780 5781fi 5782{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 5783$as_echo "$ac_cv_path_SED" >&6; } 5784 SED="$ac_cv_path_SED" 5785 rm -f conftest.sed 5786 5787test -z "$SED" && SED=sed 5788Xsed="$SED -e 1s/^X//" 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 5801$as_echo_n "checking for fgrep... " >&6; } 5802if test "${ac_cv_path_FGREP+set}" = set; then 5803 $as_echo_n "(cached) " >&6 5804else 5805 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5806 then ac_cv_path_FGREP="$GREP -F" 5807 else 5808 if test -z "$FGREP"; then 5809 ac_path_FGREP_found=false 5810 # Loop through the user's path and test for each of PROGNAME-LIST 5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5812for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5813do 5814 IFS=$as_save_IFS 5815 test -z "$as_dir" && as_dir=. 5816 for ac_prog in fgrep; do 5817 for ac_exec_ext in '' $ac_executable_extensions; do 5818 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5819 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5820# Check for GNU ac_path_FGREP and select it if it is found. 5821 # Check for GNU $ac_path_FGREP 5822case `"$ac_path_FGREP" --version 2>&1` in 5823*GNU*) 5824 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5825*) 5826 ac_count=0 5827 $as_echo_n 0123456789 >"conftest.in" 5828 while : 5829 do 5830 cat "conftest.in" "conftest.in" >"conftest.tmp" 5831 mv "conftest.tmp" "conftest.in" 5832 cp "conftest.in" "conftest.nl" 5833 $as_echo 'FGREP' >> "conftest.nl" 5834 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5835 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5836 ac_count=`expr $ac_count + 1` 5837 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5838 # Best one so far, save it but keep looking for a better one 5839 ac_cv_path_FGREP="$ac_path_FGREP" 5840 ac_path_FGREP_max=$ac_count 5841 fi 5842 # 10*(2^10) chars as input seems more than enough 5843 test $ac_count -gt 10 && break 5844 done 5845 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5846esac 5847 5848 $ac_path_FGREP_found && break 3 5849 done 5850 done 5851done 5852IFS=$as_save_IFS 5853 if test -z "$ac_cv_path_FGREP"; then 5854 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5855$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5856 { (exit 1); exit 1; }; } 5857 fi 5858else 5859 ac_cv_path_FGREP=$FGREP 5860fi 5861 5862 fi 5863fi 5864{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 5865$as_echo "$ac_cv_path_FGREP" >&6; } 5866 FGREP="$ac_cv_path_FGREP" 5867 5868 5869test -z "$GREP" && GREP=grep 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889# Check whether --with-gnu-ld was given. 5890if test "${with_gnu_ld+set}" = set; then 5891 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5892else 5893 with_gnu_ld=no 5894fi 5895 5896ac_prog=ld 5897if test "$GCC" = yes; then 5898 # Check if gcc -print-prog-name=ld gives a path. 5899 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 5900$as_echo_n "checking for ld used by $CC... " >&6; } 5901 case $host in 5902 *-*-mingw*) 5903 # gcc leaves a trailing carriage return which upsets mingw 5904 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5905 *) 5906 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5907 esac 5908 case $ac_prog in 5909 # Accept absolute paths. 5910 [\\/]* | ?:[\\/]*) 5911 re_direlt='/[^/][^/]*/\.\./' 5912 # Canonicalize the pathname of ld 5913 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5914 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5915 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5916 done 5917 test -z "$LD" && LD="$ac_prog" 5918 ;; 5919 "") 5920 # If it fails, then pretend we aren't using GCC. 5921 ac_prog=ld 5922 ;; 5923 *) 5924 # If it is relative, then search for the first ld in PATH. 5925 with_gnu_ld=unknown 5926 ;; 5927 esac 5928elif test "$with_gnu_ld" = yes; then 5929 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 5930$as_echo_n "checking for GNU ld... " >&6; } 5931else 5932 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 5933$as_echo_n "checking for non-GNU ld... " >&6; } 5934fi 5935if test "${lt_cv_path_LD+set}" = set; then 5936 $as_echo_n "(cached) " >&6 5937else 5938 if test -z "$LD"; then 5939 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5940 for ac_dir in $PATH; do 5941 IFS="$lt_save_ifs" 5942 test -z "$ac_dir" && ac_dir=. 5943 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5944 lt_cv_path_LD="$ac_dir/$ac_prog" 5945 # Check to see if the program is GNU ld. I'd rather use --version, 5946 # but apparently some variants of GNU ld only accept -v. 5947 # Break only if it was the GNU/non-GNU ld that we prefer. 5948 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5949 *GNU* | *'with BFD'*) 5950 test "$with_gnu_ld" != no && break 5951 ;; 5952 *) 5953 test "$with_gnu_ld" != yes && break 5954 ;; 5955 esac 5956 fi 5957 done 5958 IFS="$lt_save_ifs" 5959else 5960 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5961fi 5962fi 5963 5964LD="$lt_cv_path_LD" 5965if test -n "$LD"; then 5966 { $as_echo "$as_me:$LINENO: result: $LD" >&5 5967$as_echo "$LD" >&6; } 5968else 5969 { $as_echo "$as_me:$LINENO: result: no" >&5 5970$as_echo "no" >&6; } 5971fi 5972test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 5973$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 5974 { (exit 1); exit 1; }; } 5975{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 5976$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5977if test "${lt_cv_prog_gnu_ld+set}" = set; then 5978 $as_echo_n "(cached) " >&6 5979else 5980 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5981case `$LD -v 2>&1 </dev/null` in 5982*GNU* | *'with BFD'*) 5983 lt_cv_prog_gnu_ld=yes 5984 ;; 5985*) 5986 lt_cv_prog_gnu_ld=no 5987 ;; 5988esac 5989fi 5990{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 5991$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5992with_gnu_ld=$lt_cv_prog_gnu_ld 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 6003$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6004if test "${lt_cv_path_NM+set}" = set; then 6005 $as_echo_n "(cached) " >&6 6006else 6007 if test -n "$NM"; then 6008 # Let the user override the test. 6009 lt_cv_path_NM="$NM" 6010else 6011 lt_nm_to_check="${ac_tool_prefix}nm" 6012 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6013 lt_nm_to_check="$lt_nm_to_check nm" 6014 fi 6015 for lt_tmp_nm in $lt_nm_to_check; do 6016 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6017 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6018 IFS="$lt_save_ifs" 6019 test -z "$ac_dir" && ac_dir=. 6020 tmp_nm="$ac_dir/$lt_tmp_nm" 6021 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6022 # Check to see if the nm accepts a BSD-compat flag. 6023 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6024 # nm: unknown option "B" ignored 6025 # Tru64's nm complains that /dev/null is an invalid object file 6026 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6027 */dev/null* | *'Invalid file or object type'*) 6028 lt_cv_path_NM="$tmp_nm -B" 6029 break 6030 ;; 6031 *) 6032 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6033 */dev/null*) 6034 lt_cv_path_NM="$tmp_nm -p" 6035 break 6036 ;; 6037 *) 6038 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6039 continue # so that we can try to find one that supports BSD flags 6040 ;; 6041 esac 6042 ;; 6043 esac 6044 fi 6045 done 6046 IFS="$lt_save_ifs" 6047 done 6048 : ${lt_cv_path_NM=no} 6049fi 6050fi 6051{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 6052$as_echo "$lt_cv_path_NM" >&6; } 6053if test "$lt_cv_path_NM" != "no"; then 6054 NM="$lt_cv_path_NM" 6055else 6056 # Didn't find any BSD compatible name lister, look for dumpbin. 6057 if test -n "$ac_tool_prefix"; then 6058 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 6059 do 6060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6061set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6062{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6063$as_echo_n "checking for $ac_word... " >&6; } 6064if test "${ac_cv_prog_DUMPBIN+set}" = set; then 6065 $as_echo_n "(cached) " >&6 6066else 6067 if test -n "$DUMPBIN"; then 6068 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6069else 6070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6071for as_dir in $PATH 6072do 6073 IFS=$as_save_IFS 6074 test -z "$as_dir" && as_dir=. 6075 for ac_exec_ext in '' $ac_executable_extensions; do 6076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6077 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6078 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6079 break 2 6080 fi 6081done 6082done 6083IFS=$as_save_IFS 6084 6085fi 6086fi 6087DUMPBIN=$ac_cv_prog_DUMPBIN 6088if test -n "$DUMPBIN"; then 6089 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 6090$as_echo "$DUMPBIN" >&6; } 6091else 6092 { $as_echo "$as_me:$LINENO: result: no" >&5 6093$as_echo "no" >&6; } 6094fi 6095 6096 6097 test -n "$DUMPBIN" && break 6098 done 6099fi 6100if test -z "$DUMPBIN"; then 6101 ac_ct_DUMPBIN=$DUMPBIN 6102 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 6103do 6104 # Extract the first word of "$ac_prog", so it can be a program name with args. 6105set dummy $ac_prog; ac_word=$2 6106{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6107$as_echo_n "checking for $ac_word... " >&6; } 6108if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 6109 $as_echo_n "(cached) " >&6 6110else 6111 if test -n "$ac_ct_DUMPBIN"; then 6112 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6113else 6114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6115for as_dir in $PATH 6116do 6117 IFS=$as_save_IFS 6118 test -z "$as_dir" && as_dir=. 6119 for ac_exec_ext in '' $ac_executable_extensions; do 6120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6121 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6122 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6123 break 2 6124 fi 6125done 6126done 6127IFS=$as_save_IFS 6128 6129fi 6130fi 6131ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6132if test -n "$ac_ct_DUMPBIN"; then 6133 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 6134$as_echo "$ac_ct_DUMPBIN" >&6; } 6135else 6136 { $as_echo "$as_me:$LINENO: result: no" >&5 6137$as_echo "no" >&6; } 6138fi 6139 6140 6141 test -n "$ac_ct_DUMPBIN" && break 6142done 6143 6144 if test "x$ac_ct_DUMPBIN" = x; then 6145 DUMPBIN=":" 6146 else 6147 case $cross_compiling:$ac_tool_warned in 6148yes:) 6149{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6151ac_tool_warned=yes ;; 6152esac 6153 DUMPBIN=$ac_ct_DUMPBIN 6154 fi 6155fi 6156 6157 6158 if test "$DUMPBIN" != ":"; then 6159 NM="$DUMPBIN" 6160 fi 6161fi 6162test -z "$NM" && NM=nm 6163 6164 6165 6166 6167 6168 6169{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 6170$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6171if test "${lt_cv_nm_interface+set}" = set; then 6172 $as_echo_n "(cached) " >&6 6173else 6174 lt_cv_nm_interface="BSD nm" 6175 echo "int some_variable = 0;" > conftest.$ac_ext 6176 (eval echo "\"\$as_me:6176: $ac_compile\"" >&5) 6177 (eval "$ac_compile" 2>conftest.err) 6178 cat conftest.err >&5 6179 (eval echo "\"\$as_me:6179: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6180 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6181 cat conftest.err >&5 6182 (eval echo "\"\$as_me:6182: output\"" >&5) 6183 cat conftest.out >&5 6184 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6185 lt_cv_nm_interface="MS dumpbin" 6186 fi 6187 rm -f conftest* 6188fi 6189{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 6190$as_echo "$lt_cv_nm_interface" >&6; } 6191 6192{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 6193$as_echo_n "checking whether ln -s works... " >&6; } 6194LN_S=$as_ln_s 6195if test "$LN_S" = "ln -s"; then 6196 { $as_echo "$as_me:$LINENO: result: yes" >&5 6197$as_echo "yes" >&6; } 6198else 6199 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 6200$as_echo "no, using $LN_S" >&6; } 6201fi 6202 6203# find the maximum length of command line arguments 6204{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6205$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6206if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6207 $as_echo_n "(cached) " >&6 6208else 6209 i=0 6210 teststring="ABCD" 6211 6212 case $build_os in 6213 msdosdjgpp*) 6214 # On DJGPP, this test can blow up pretty badly due to problems in libc 6215 # (any single argument exceeding 2000 bytes causes a buffer overrun 6216 # during glob expansion). Even if it were fixed, the result of this 6217 # check would be larger than it should be. 6218 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6219 ;; 6220 6221 gnu*) 6222 # Under GNU Hurd, this test is not required because there is 6223 # no limit to the length of command line arguments. 6224 # Libtool will interpret -1 as no limit whatsoever 6225 lt_cv_sys_max_cmd_len=-1; 6226 ;; 6227 6228 cygwin* | mingw* | cegcc*) 6229 # On Win9x/ME, this test blows up -- it succeeds, but takes 6230 # about 5 minutes as the teststring grows exponentially. 6231 # Worse, since 9x/ME are not pre-emptively multitasking, 6232 # you end up with a "frozen" computer, even though with patience 6233 # the test eventually succeeds (with a max line length of 256k). 6234 # Instead, let's just punt: use the minimum linelength reported by 6235 # all of the supported platforms: 8192 (on NT/2K/XP). 6236 lt_cv_sys_max_cmd_len=8192; 6237 ;; 6238 6239 amigaos*) 6240 # On AmigaOS with pdksh, this test takes hours, literally. 6241 # So we just punt and use a minimum line length of 8192. 6242 lt_cv_sys_max_cmd_len=8192; 6243 ;; 6244 6245 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6246 # This has been around since 386BSD, at least. Likely further. 6247 if test -x /sbin/sysctl; then 6248 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6249 elif test -x /usr/sbin/sysctl; then 6250 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6251 else 6252 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6253 fi 6254 # And add a safety zone 6255 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6256 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6257 ;; 6258 6259 interix*) 6260 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6261 lt_cv_sys_max_cmd_len=196608 6262 ;; 6263 6264 osf*) 6265 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6266 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6267 # nice to cause kernel panics so lets avoid the loop below. 6268 # First set a reasonable default. 6269 lt_cv_sys_max_cmd_len=16384 6270 # 6271 if test -x /sbin/sysconfig; then 6272 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6273 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6274 esac 6275 fi 6276 ;; 6277 sco3.2v5*) 6278 lt_cv_sys_max_cmd_len=102400 6279 ;; 6280 sysv5* | sco5v6* | sysv4.2uw2*) 6281 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6282 if test -n "$kargmax"; then 6283 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6284 else 6285 lt_cv_sys_max_cmd_len=32768 6286 fi 6287 ;; 6288 *) 6289 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6290 if test -n "$lt_cv_sys_max_cmd_len"; then 6291 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6292 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6293 else 6294 # Make teststring a little bigger before we do anything with it. 6295 # a 1K string should be a reasonable start. 6296 for i in 1 2 3 4 5 6 7 8 ; do 6297 teststring=$teststring$teststring 6298 done 6299 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6300 # If test is not a shell built-in, we'll probably end up computing a 6301 # maximum length that is only half of the actual maximum length, but 6302 # we can't tell. 6303 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 6304 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 6305 test $i != 17 # 1/2 MB should be enough 6306 do 6307 i=`expr $i + 1` 6308 teststring=$teststring$teststring 6309 done 6310 # Only check the string length outside the loop. 6311 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6312 teststring= 6313 # Add a significant safety factor because C++ compilers can tack on 6314 # massive amounts of additional arguments before passing them to the 6315 # linker. It appears as though 1/2 is a usable value. 6316 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6317 fi 6318 ;; 6319 esac 6320 6321fi 6322 6323if test -n $lt_cv_sys_max_cmd_len ; then 6324 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6325$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6326else 6327 { $as_echo "$as_me:$LINENO: result: none" >&5 6328$as_echo "none" >&6; } 6329fi 6330max_cmd_len=$lt_cv_sys_max_cmd_len 6331 6332 6333 6334 6335 6336 6337: ${CP="cp -f"} 6338: ${MV="mv -f"} 6339: ${RM="rm -f"} 6340 6341{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 6342$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6343# Try some XSI features 6344xsi_shell=no 6345( _lt_dummy="a/b/c" 6346 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 6347 = c,a/b,, \ 6348 && eval 'test $(( 1 + 1 )) -eq 2 \ 6349 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6350 && xsi_shell=yes 6351{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 6352$as_echo "$xsi_shell" >&6; } 6353 6354 6355{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 6356$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6357lt_shell_append=no 6358( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6359 >/dev/null 2>&1 \ 6360 && lt_shell_append=yes 6361{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 6362$as_echo "$lt_shell_append" >&6; } 6363 6364 6365if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6366 lt_unset=unset 6367else 6368 lt_unset=false 6369fi 6370 6371 6372 6373 6374 6375# test EBCDIC or ASCII 6376case `echo X|tr X '\101'` in 6377 A) # ASCII based system 6378 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6379 lt_SP2NL='tr \040 \012' 6380 lt_NL2SP='tr \015\012 \040\040' 6381 ;; 6382 *) # EBCDIC based system 6383 lt_SP2NL='tr \100 \n' 6384 lt_NL2SP='tr \r\n \100\100' 6385 ;; 6386esac 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 6397$as_echo_n "checking for $LD option to reload object files... " >&6; } 6398if test "${lt_cv_ld_reload_flag+set}" = set; then 6399 $as_echo_n "(cached) " >&6 6400else 6401 lt_cv_ld_reload_flag='-r' 6402fi 6403{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 6404$as_echo "$lt_cv_ld_reload_flag" >&6; } 6405reload_flag=$lt_cv_ld_reload_flag 6406case $reload_flag in 6407"" | " "*) ;; 6408*) reload_flag=" $reload_flag" ;; 6409esac 6410reload_cmds='$LD$reload_flag -o $output$reload_objs' 6411case $host_os in 6412 darwin*) 6413 if test "$GCC" = yes; then 6414 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6415 else 6416 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6417 fi 6418 ;; 6419esac 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429if test -n "$ac_tool_prefix"; then 6430 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6431set dummy ${ac_tool_prefix}objdump; ac_word=$2 6432{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6433$as_echo_n "checking for $ac_word... " >&6; } 6434if test "${ac_cv_prog_OBJDUMP+set}" = set; then 6435 $as_echo_n "(cached) " >&6 6436else 6437 if test -n "$OBJDUMP"; then 6438 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6439else 6440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6441for as_dir in $PATH 6442do 6443 IFS=$as_save_IFS 6444 test -z "$as_dir" && as_dir=. 6445 for ac_exec_ext in '' $ac_executable_extensions; do 6446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6447 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6448 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6449 break 2 6450 fi 6451done 6452done 6453IFS=$as_save_IFS 6454 6455fi 6456fi 6457OBJDUMP=$ac_cv_prog_OBJDUMP 6458if test -n "$OBJDUMP"; then 6459 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 6460$as_echo "$OBJDUMP" >&6; } 6461else 6462 { $as_echo "$as_me:$LINENO: result: no" >&5 6463$as_echo "no" >&6; } 6464fi 6465 6466 6467fi 6468if test -z "$ac_cv_prog_OBJDUMP"; then 6469 ac_ct_OBJDUMP=$OBJDUMP 6470 # Extract the first word of "objdump", so it can be a program name with args. 6471set dummy objdump; ac_word=$2 6472{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6473$as_echo_n "checking for $ac_word... " >&6; } 6474if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 6475 $as_echo_n "(cached) " >&6 6476else 6477 if test -n "$ac_ct_OBJDUMP"; then 6478 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6479else 6480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6481for as_dir in $PATH 6482do 6483 IFS=$as_save_IFS 6484 test -z "$as_dir" && as_dir=. 6485 for ac_exec_ext in '' $ac_executable_extensions; do 6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6487 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6488 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6489 break 2 6490 fi 6491done 6492done 6493IFS=$as_save_IFS 6494 6495fi 6496fi 6497ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6498if test -n "$ac_ct_OBJDUMP"; then 6499 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 6500$as_echo "$ac_ct_OBJDUMP" >&6; } 6501else 6502 { $as_echo "$as_me:$LINENO: result: no" >&5 6503$as_echo "no" >&6; } 6504fi 6505 6506 if test "x$ac_ct_OBJDUMP" = x; then 6507 OBJDUMP="false" 6508 else 6509 case $cross_compiling:$ac_tool_warned in 6510yes:) 6511{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6513ac_tool_warned=yes ;; 6514esac 6515 OBJDUMP=$ac_ct_OBJDUMP 6516 fi 6517else 6518 OBJDUMP="$ac_cv_prog_OBJDUMP" 6519fi 6520 6521test -z "$OBJDUMP" && OBJDUMP=objdump 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 6532$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6533if test "${lt_cv_deplibs_check_method+set}" = set; then 6534 $as_echo_n "(cached) " >&6 6535else 6536 lt_cv_file_magic_cmd='$MAGIC_CMD' 6537lt_cv_file_magic_test_file= 6538lt_cv_deplibs_check_method='unknown' 6539# Need to set the preceding variable on all platforms that support 6540# interlibrary dependencies. 6541# 'none' -- dependencies not supported. 6542# `unknown' -- same as none, but documents that we really don't know. 6543# 'pass_all' -- all dependencies passed with no checks. 6544# 'test_compile' -- check by making test program. 6545# 'file_magic [[regex]]' -- check by looking for files in library path 6546# which responds to the $file_magic_cmd with a given extended regex. 6547# If you have `file' or equivalent on your system and you're not sure 6548# whether `pass_all' will *always* work, you probably want this one. 6549 6550case $host_os in 6551aix[4-9]*) 6552 lt_cv_deplibs_check_method=pass_all 6553 ;; 6554 6555beos*) 6556 lt_cv_deplibs_check_method=pass_all 6557 ;; 6558 6559bsdi[45]*) 6560 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6561 lt_cv_file_magic_cmd='/usr/bin/file -L' 6562 lt_cv_file_magic_test_file=/shlib/libc.so 6563 ;; 6564 6565cygwin*) 6566 # func_win32_libid is a shell function defined in ltmain.sh 6567 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6568 lt_cv_file_magic_cmd='func_win32_libid' 6569 ;; 6570 6571mingw* | pw32*) 6572 # Base MSYS/MinGW do not provide the 'file' command needed by 6573 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6574 # unless we find 'file', for example because we are cross-compiling. 6575 if ( file / ) >/dev/null 2>&1; then 6576 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6577 lt_cv_file_magic_cmd='func_win32_libid' 6578 else 6579 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6580 lt_cv_file_magic_cmd='$OBJDUMP -f' 6581 fi 6582 ;; 6583 6584cegcc) 6585 # use the weaker test based on 'objdump'. See mingw*. 6586 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6587 lt_cv_file_magic_cmd='$OBJDUMP -f' 6588 ;; 6589 6590darwin* | rhapsody*) 6591 lt_cv_deplibs_check_method=pass_all 6592 ;; 6593 6594freebsd* | dragonfly*) 6595 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6596 case $host_cpu in 6597 i*86 ) 6598 # Not sure whether the presence of OpenBSD here was a mistake. 6599 # Let's accept both of them until this is cleared up. 6600 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6601 lt_cv_file_magic_cmd=/usr/bin/file 6602 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6603 ;; 6604 esac 6605 else 6606 lt_cv_deplibs_check_method=pass_all 6607 fi 6608 ;; 6609 6610gnu*) 6611 lt_cv_deplibs_check_method=pass_all 6612 ;; 6613 6614hpux10.20* | hpux11*) 6615 lt_cv_file_magic_cmd=/usr/bin/file 6616 case $host_cpu in 6617 ia64*) 6618 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6619 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6620 ;; 6621 hppa*64*) 6622 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]' 6623 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6624 ;; 6625 *) 6626 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6627 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6628 ;; 6629 esac 6630 ;; 6631 6632interix[3-9]*) 6633 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6635 ;; 6636 6637irix5* | irix6* | nonstopux*) 6638 case $LD in 6639 *-32|*"-32 ") libmagic=32-bit;; 6640 *-n32|*"-n32 ") libmagic=N32;; 6641 *-64|*"-64 ") libmagic=64-bit;; 6642 *) libmagic=never-match;; 6643 esac 6644 lt_cv_deplibs_check_method=pass_all 6645 ;; 6646 6647# This must be Linux ELF. 6648linux* | k*bsd*-gnu) 6649 lt_cv_deplibs_check_method=pass_all 6650 ;; 6651 6652netbsd*) 6653 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6654 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6655 else 6656 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6657 fi 6658 ;; 6659 6660newos6*) 6661 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6662 lt_cv_file_magic_cmd=/usr/bin/file 6663 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6664 ;; 6665 6666*nto* | *qnx*) 6667 lt_cv_deplibs_check_method=pass_all 6668 ;; 6669 6670openbsd*) 6671 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6672 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6673 else 6674 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6675 fi 6676 ;; 6677 6678osf3* | osf4* | osf5*) 6679 lt_cv_deplibs_check_method=pass_all 6680 ;; 6681 6682rdos*) 6683 lt_cv_deplibs_check_method=pass_all 6684 ;; 6685 6686solaris*) 6687 lt_cv_deplibs_check_method=pass_all 6688 ;; 6689 6690sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6691 lt_cv_deplibs_check_method=pass_all 6692 ;; 6693 6694sysv4 | sysv4.3*) 6695 case $host_vendor in 6696 motorola) 6697 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]' 6698 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6699 ;; 6700 ncr) 6701 lt_cv_deplibs_check_method=pass_all 6702 ;; 6703 sequent) 6704 lt_cv_file_magic_cmd='/bin/file' 6705 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6706 ;; 6707 sni) 6708 lt_cv_file_magic_cmd='/bin/file' 6709 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6710 lt_cv_file_magic_test_file=/lib/libc.so 6711 ;; 6712 siemens) 6713 lt_cv_deplibs_check_method=pass_all 6714 ;; 6715 pc) 6716 lt_cv_deplibs_check_method=pass_all 6717 ;; 6718 esac 6719 ;; 6720 6721tpf*) 6722 lt_cv_deplibs_check_method=pass_all 6723 ;; 6724esac 6725 6726fi 6727{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 6728$as_echo "$lt_cv_deplibs_check_method" >&6; } 6729file_magic_cmd=$lt_cv_file_magic_cmd 6730deplibs_check_method=$lt_cv_deplibs_check_method 6731test -z "$deplibs_check_method" && deplibs_check_method=unknown 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744if test -n "$ac_tool_prefix"; then 6745 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6746set dummy ${ac_tool_prefix}ar; ac_word=$2 6747{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6748$as_echo_n "checking for $ac_word... " >&6; } 6749if test "${ac_cv_prog_AR+set}" = set; then 6750 $as_echo_n "(cached) " >&6 6751else 6752 if test -n "$AR"; then 6753 ac_cv_prog_AR="$AR" # Let the user override the test. 6754else 6755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6756for as_dir in $PATH 6757do 6758 IFS=$as_save_IFS 6759 test -z "$as_dir" && as_dir=. 6760 for ac_exec_ext in '' $ac_executable_extensions; do 6761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6762 ac_cv_prog_AR="${ac_tool_prefix}ar" 6763 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6764 break 2 6765 fi 6766done 6767done 6768IFS=$as_save_IFS 6769 6770fi 6771fi 6772AR=$ac_cv_prog_AR 6773if test -n "$AR"; then 6774 { $as_echo "$as_me:$LINENO: result: $AR" >&5 6775$as_echo "$AR" >&6; } 6776else 6777 { $as_echo "$as_me:$LINENO: result: no" >&5 6778$as_echo "no" >&6; } 6779fi 6780 6781 6782fi 6783if test -z "$ac_cv_prog_AR"; then 6784 ac_ct_AR=$AR 6785 # Extract the first word of "ar", so it can be a program name with args. 6786set dummy ar; ac_word=$2 6787{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6788$as_echo_n "checking for $ac_word... " >&6; } 6789if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6790 $as_echo_n "(cached) " >&6 6791else 6792 if test -n "$ac_ct_AR"; then 6793 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6794else 6795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6796for as_dir in $PATH 6797do 6798 IFS=$as_save_IFS 6799 test -z "$as_dir" && as_dir=. 6800 for ac_exec_ext in '' $ac_executable_extensions; do 6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6802 ac_cv_prog_ac_ct_AR="ar" 6803 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6804 break 2 6805 fi 6806done 6807done 6808IFS=$as_save_IFS 6809 6810fi 6811fi 6812ac_ct_AR=$ac_cv_prog_ac_ct_AR 6813if test -n "$ac_ct_AR"; then 6814 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6815$as_echo "$ac_ct_AR" >&6; } 6816else 6817 { $as_echo "$as_me:$LINENO: result: no" >&5 6818$as_echo "no" >&6; } 6819fi 6820 6821 if test "x$ac_ct_AR" = x; then 6822 AR="false" 6823 else 6824 case $cross_compiling:$ac_tool_warned in 6825yes:) 6826{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6828ac_tool_warned=yes ;; 6829esac 6830 AR=$ac_ct_AR 6831 fi 6832else 6833 AR="$ac_cv_prog_AR" 6834fi 6835 6836test -z "$AR" && AR=ar 6837test -z "$AR_FLAGS" && AR_FLAGS=cru 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849if test -n "$ac_tool_prefix"; then 6850 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6851set dummy ${ac_tool_prefix}strip; ac_word=$2 6852{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6853$as_echo_n "checking for $ac_word... " >&6; } 6854if test "${ac_cv_prog_STRIP+set}" = set; then 6855 $as_echo_n "(cached) " >&6 6856else 6857 if test -n "$STRIP"; then 6858 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6859else 6860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6861for as_dir in $PATH 6862do 6863 IFS=$as_save_IFS 6864 test -z "$as_dir" && as_dir=. 6865 for ac_exec_ext in '' $ac_executable_extensions; do 6866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6867 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6868 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6869 break 2 6870 fi 6871done 6872done 6873IFS=$as_save_IFS 6874 6875fi 6876fi 6877STRIP=$ac_cv_prog_STRIP 6878if test -n "$STRIP"; then 6879 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 6880$as_echo "$STRIP" >&6; } 6881else 6882 { $as_echo "$as_me:$LINENO: result: no" >&5 6883$as_echo "no" >&6; } 6884fi 6885 6886 6887fi 6888if test -z "$ac_cv_prog_STRIP"; then 6889 ac_ct_STRIP=$STRIP 6890 # Extract the first word of "strip", so it can be a program name with args. 6891set dummy strip; ac_word=$2 6892{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6893$as_echo_n "checking for $ac_word... " >&6; } 6894if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6895 $as_echo_n "(cached) " >&6 6896else 6897 if test -n "$ac_ct_STRIP"; then 6898 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6899else 6900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6901for as_dir in $PATH 6902do 6903 IFS=$as_save_IFS 6904 test -z "$as_dir" && as_dir=. 6905 for ac_exec_ext in '' $ac_executable_extensions; do 6906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6907 ac_cv_prog_ac_ct_STRIP="strip" 6908 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6909 break 2 6910 fi 6911done 6912done 6913IFS=$as_save_IFS 6914 6915fi 6916fi 6917ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6918if test -n "$ac_ct_STRIP"; then 6919 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6920$as_echo "$ac_ct_STRIP" >&6; } 6921else 6922 { $as_echo "$as_me:$LINENO: result: no" >&5 6923$as_echo "no" >&6; } 6924fi 6925 6926 if test "x$ac_ct_STRIP" = x; then 6927 STRIP=":" 6928 else 6929 case $cross_compiling:$ac_tool_warned in 6930yes:) 6931{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6933ac_tool_warned=yes ;; 6934esac 6935 STRIP=$ac_ct_STRIP 6936 fi 6937else 6938 STRIP="$ac_cv_prog_STRIP" 6939fi 6940 6941test -z "$STRIP" && STRIP=: 6942 6943 6944 6945 6946 6947 6948if test -n "$ac_tool_prefix"; then 6949 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6950set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6951{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6952$as_echo_n "checking for $ac_word... " >&6; } 6953if test "${ac_cv_prog_RANLIB+set}" = set; then 6954 $as_echo_n "(cached) " >&6 6955else 6956 if test -n "$RANLIB"; then 6957 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6958else 6959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6960for as_dir in $PATH 6961do 6962 IFS=$as_save_IFS 6963 test -z "$as_dir" && as_dir=. 6964 for ac_exec_ext in '' $ac_executable_extensions; do 6965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6966 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6967 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6968 break 2 6969 fi 6970done 6971done 6972IFS=$as_save_IFS 6973 6974fi 6975fi 6976RANLIB=$ac_cv_prog_RANLIB 6977if test -n "$RANLIB"; then 6978 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6979$as_echo "$RANLIB" >&6; } 6980else 6981 { $as_echo "$as_me:$LINENO: result: no" >&5 6982$as_echo "no" >&6; } 6983fi 6984 6985 6986fi 6987if test -z "$ac_cv_prog_RANLIB"; then 6988 ac_ct_RANLIB=$RANLIB 6989 # Extract the first word of "ranlib", so it can be a program name with args. 6990set dummy ranlib; ac_word=$2 6991{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6992$as_echo_n "checking for $ac_word... " >&6; } 6993if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6994 $as_echo_n "(cached) " >&6 6995else 6996 if test -n "$ac_ct_RANLIB"; then 6997 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6998else 6999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7000for as_dir in $PATH 7001do 7002 IFS=$as_save_IFS 7003 test -z "$as_dir" && as_dir=. 7004 for ac_exec_ext in '' $ac_executable_extensions; do 7005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7006 ac_cv_prog_ac_ct_RANLIB="ranlib" 7007 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7008 break 2 7009 fi 7010done 7011done 7012IFS=$as_save_IFS 7013 7014fi 7015fi 7016ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7017if test -n "$ac_ct_RANLIB"; then 7018 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7019$as_echo "$ac_ct_RANLIB" >&6; } 7020else 7021 { $as_echo "$as_me:$LINENO: result: no" >&5 7022$as_echo "no" >&6; } 7023fi 7024 7025 if test "x$ac_ct_RANLIB" = x; then 7026 RANLIB=":" 7027 else 7028 case $cross_compiling:$ac_tool_warned in 7029yes:) 7030{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7032ac_tool_warned=yes ;; 7033esac 7034 RANLIB=$ac_ct_RANLIB 7035 fi 7036else 7037 RANLIB="$ac_cv_prog_RANLIB" 7038fi 7039 7040test -z "$RANLIB" && RANLIB=: 7041 7042 7043 7044 7045 7046 7047# Determine commands to create old-style static archives. 7048old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7049old_postinstall_cmds='chmod 644 $oldlib' 7050old_postuninstall_cmds= 7051 7052if test -n "$RANLIB"; then 7053 case $host_os in 7054 openbsd*) 7055 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7056 ;; 7057 *) 7058 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7059 ;; 7060 esac 7061 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7062fi 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097# If no C compiler was specified, use CC. 7098LTCC=${LTCC-"$CC"} 7099 7100# If no C compiler flags were specified, use CFLAGS. 7101LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7102 7103# Allow CC to be a program name with arguments. 7104compiler=$CC 7105 7106 7107# Check for command to grab the raw symbol name followed by C symbol from nm. 7108{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 7109$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7110if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 7111 $as_echo_n "(cached) " >&6 7112else 7113 7114# These are sane defaults that work on at least a few old systems. 7115# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7116 7117# Character class describing NM global symbol codes. 7118symcode='[BCDEGRST]' 7119 7120# Regexp to match symbols that can be accessed directly from C. 7121sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7122 7123# Define system-specific variables. 7124case $host_os in 7125aix*) 7126 symcode='[BCDT]' 7127 ;; 7128cygwin* | mingw* | pw32* | cegcc*) 7129 symcode='[ABCDGISTW]' 7130 ;; 7131hpux*) 7132 if test "$host_cpu" = ia64; then 7133 symcode='[ABCDEGRST]' 7134 fi 7135 ;; 7136irix* | nonstopux*) 7137 symcode='[BCDEGRST]' 7138 ;; 7139osf*) 7140 symcode='[BCDEGQRST]' 7141 ;; 7142solaris*) 7143 symcode='[BDRT]' 7144 ;; 7145sco3.2v5*) 7146 symcode='[DT]' 7147 ;; 7148sysv4.2uw2*) 7149 symcode='[DT]' 7150 ;; 7151sysv5* | sco5v6* | unixware* | OpenUNIX*) 7152 symcode='[ABDT]' 7153 ;; 7154sysv4) 7155 symcode='[DFNSTU]' 7156 ;; 7157esac 7158 7159# If we're using GNU nm, then use its standard symbol codes. 7160case `$NM -V 2>&1` in 7161*GNU* | *'with BFD'*) 7162 symcode='[ABCDGIRSTW]' ;; 7163esac 7164 7165# Transform an extracted symbol line into a proper C declaration. 7166# Some systems (esp. on ia64) link data and code symbols differently, 7167# so use this general approach. 7168lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7169 7170# Transform an extracted symbol line into symbol name and symbol address 7171lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7172lt_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'" 7173 7174# Handle CRLF in mingw tool chain 7175opt_cr= 7176case $build_os in 7177mingw*) 7178 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7179 ;; 7180esac 7181 7182# Try without a prefix underscore, then with it. 7183for ac_symprfx in "" "_"; do 7184 7185 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7186 symxfrm="\\1 $ac_symprfx\\2 \\2" 7187 7188 # Write the raw and C identifiers. 7189 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7190 # Fake it for dumpbin and say T for any non-static function 7191 # and D for any global variable. 7192 # Also find C++ and __fastcall symbols from MSVC++, 7193 # which start with @ or ?. 7194 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7195" {last_section=section; section=\$ 3};"\ 7196" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7197" \$ 0!~/External *\|/{next};"\ 7198" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7199" {if(hide[section]) next};"\ 7200" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7201" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7202" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7203" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7204" ' prfx=^$ac_symprfx" 7205 else 7206 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7207 fi 7208 7209 # Check to see that the pipe works correctly. 7210 pipe_works=no 7211 7212 rm -f conftest* 7213 cat > conftest.$ac_ext <<_LT_EOF 7214#ifdef __cplusplus 7215extern "C" { 7216#endif 7217char nm_test_var; 7218void nm_test_func(void); 7219void nm_test_func(void){} 7220#ifdef __cplusplus 7221} 7222#endif 7223int main(){nm_test_var='a';nm_test_func();return(0);} 7224_LT_EOF 7225 7226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7227 (eval $ac_compile) 2>&5 7228 ac_status=$? 7229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7230 (exit $ac_status); }; then 7231 # Now try to grab the symbols. 7232 nlist=conftest.nm 7233 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 7234 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7235 ac_status=$? 7236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7237 (exit $ac_status); } && test -s "$nlist"; then 7238 # Try sorting and uniquifying the output. 7239 if sort "$nlist" | uniq > "$nlist"T; then 7240 mv -f "$nlist"T "$nlist" 7241 else 7242 rm -f "$nlist"T 7243 fi 7244 7245 # Make sure that we snagged all the symbols we need. 7246 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7247 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7248 cat <<_LT_EOF > conftest.$ac_ext 7249#ifdef __cplusplus 7250extern "C" { 7251#endif 7252 7253_LT_EOF 7254 # Now generate the symbol file. 7255 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7256 7257 cat <<_LT_EOF >> conftest.$ac_ext 7258 7259/* The mapping between symbol names and symbols. */ 7260const struct { 7261 const char *name; 7262 void *address; 7263} 7264lt__PROGRAM__LTX_preloaded_symbols[] = 7265{ 7266 { "@PROGRAM@", (void *) 0 }, 7267_LT_EOF 7268 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7269 cat <<\_LT_EOF >> conftest.$ac_ext 7270 {0, (void *) 0} 7271}; 7272 7273/* This works around a problem in FreeBSD linker */ 7274#ifdef FREEBSD_WORKAROUND 7275static const void *lt_preloaded_setup() { 7276 return lt__PROGRAM__LTX_preloaded_symbols; 7277} 7278#endif 7279 7280#ifdef __cplusplus 7281} 7282#endif 7283_LT_EOF 7284 # Now try linking the two files. 7285 mv conftest.$ac_objext conftstm.$ac_objext 7286 lt_save_LIBS="$LIBS" 7287 lt_save_CFLAGS="$CFLAGS" 7288 LIBS="conftstm.$ac_objext" 7289 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7291 (eval $ac_link) 2>&5 7292 ac_status=$? 7293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7294 (exit $ac_status); } && test -s conftest${ac_exeext}; then 7295 pipe_works=yes 7296 fi 7297 LIBS="$lt_save_LIBS" 7298 CFLAGS="$lt_save_CFLAGS" 7299 else 7300 echo "cannot find nm_test_func in $nlist" >&5 7301 fi 7302 else 7303 echo "cannot find nm_test_var in $nlist" >&5 7304 fi 7305 else 7306 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7307 fi 7308 else 7309 echo "$progname: failed program was:" >&5 7310 cat conftest.$ac_ext >&5 7311 fi 7312 rm -rf conftest* conftst* 7313 7314 # Do not use the global_symbol_pipe unless it works. 7315 if test "$pipe_works" = yes; then 7316 break 7317 else 7318 lt_cv_sys_global_symbol_pipe= 7319 fi 7320done 7321 7322fi 7323 7324if test -z "$lt_cv_sys_global_symbol_pipe"; then 7325 lt_cv_sys_global_symbol_to_cdecl= 7326fi 7327if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7328 { $as_echo "$as_me:$LINENO: result: failed" >&5 7329$as_echo "failed" >&6; } 7330else 7331 { $as_echo "$as_me:$LINENO: result: ok" >&5 7332$as_echo "ok" >&6; } 7333fi 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356# Check whether --enable-libtool-lock was given. 7357if test "${enable_libtool_lock+set}" = set; then 7358 enableval=$enable_libtool_lock; 7359fi 7360 7361test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7362 7363# Some flags need to be propagated to the compiler or linker for good 7364# libtool support. 7365case $host in 7366ia64-*-hpux*) 7367 # Find out which ABI we are using. 7368 echo 'int i;' > conftest.$ac_ext 7369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7370 (eval $ac_compile) 2>&5 7371 ac_status=$? 7372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7373 (exit $ac_status); }; then 7374 case `/usr/bin/file conftest.$ac_objext` in 7375 *ELF-32*) 7376 HPUX_IA64_MODE="32" 7377 ;; 7378 *ELF-64*) 7379 HPUX_IA64_MODE="64" 7380 ;; 7381 esac 7382 fi 7383 rm -rf conftest* 7384 ;; 7385*-*-irix6*) 7386 # Find out which ABI we are using. 7387 echo '#line 7387 "configure"' > conftest.$ac_ext 7388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7389 (eval $ac_compile) 2>&5 7390 ac_status=$? 7391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7392 (exit $ac_status); }; then 7393 if test "$lt_cv_prog_gnu_ld" = yes; then 7394 case `/usr/bin/file conftest.$ac_objext` in 7395 *32-bit*) 7396 LD="${LD-ld} -melf32bsmip" 7397 ;; 7398 *N32*) 7399 LD="${LD-ld} -melf32bmipn32" 7400 ;; 7401 *64-bit*) 7402 LD="${LD-ld} -melf64bmip" 7403 ;; 7404 esac 7405 else 7406 case `/usr/bin/file conftest.$ac_objext` in 7407 *32-bit*) 7408 LD="${LD-ld} -32" 7409 ;; 7410 *N32*) 7411 LD="${LD-ld} -n32" 7412 ;; 7413 *64-bit*) 7414 LD="${LD-ld} -64" 7415 ;; 7416 esac 7417 fi 7418 fi 7419 rm -rf conftest* 7420 ;; 7421 7422x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7423s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7424 # Find out which ABI we are using. 7425 echo 'int i;' > conftest.$ac_ext 7426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7427 (eval $ac_compile) 2>&5 7428 ac_status=$? 7429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7430 (exit $ac_status); }; then 7431 case `/usr/bin/file conftest.o` in 7432 *32-bit*) 7433 case $host in 7434 x86_64-*kfreebsd*-gnu) 7435 LD="${LD-ld} -m elf_i386_fbsd" 7436 ;; 7437 x86_64-*linux*) 7438 LD="${LD-ld} -m elf_i386" 7439 ;; 7440 ppc64-*linux*|powerpc64-*linux*) 7441 LD="${LD-ld} -m elf32ppclinux" 7442 ;; 7443 s390x-*linux*) 7444 LD="${LD-ld} -m elf_s390" 7445 ;; 7446 sparc64-*linux*) 7447 LD="${LD-ld} -m elf32_sparc" 7448 ;; 7449 esac 7450 ;; 7451 *64-bit*) 7452 case $host in 7453 x86_64-*kfreebsd*-gnu) 7454 LD="${LD-ld} -m elf_x86_64_fbsd" 7455 ;; 7456 x86_64-*linux*) 7457 LD="${LD-ld} -m elf_x86_64" 7458 ;; 7459 ppc*-*linux*|powerpc*-*linux*) 7460 LD="${LD-ld} -m elf64ppc" 7461 ;; 7462 s390*-*linux*|s390*-*tpf*) 7463 LD="${LD-ld} -m elf64_s390" 7464 ;; 7465 sparc*-*linux*) 7466 LD="${LD-ld} -m elf64_sparc" 7467 ;; 7468 esac 7469 ;; 7470 esac 7471 fi 7472 rm -rf conftest* 7473 ;; 7474 7475*-*-sco3.2v5*) 7476 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7477 SAVE_CFLAGS="$CFLAGS" 7478 CFLAGS="$CFLAGS -belf" 7479 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 7480$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7481if test "${lt_cv_cc_needs_belf+set}" = set; then 7482 $as_echo_n "(cached) " >&6 7483else 7484 ac_ext=c 7485ac_cpp='$CPP $CPPFLAGS' 7486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7488ac_compiler_gnu=$ac_cv_c_compiler_gnu 7489 7490 cat >conftest.$ac_ext <<_ACEOF 7491/* confdefs.h. */ 7492_ACEOF 7493cat confdefs.h >>conftest.$ac_ext 7494cat >>conftest.$ac_ext <<_ACEOF 7495/* end confdefs.h. */ 7496 7497int 7498main () 7499{ 7500 7501 ; 7502 return 0; 7503} 7504_ACEOF 7505rm -f conftest.$ac_objext conftest$ac_exeext 7506if { (ac_try="$ac_link" 7507case "(($ac_try" in 7508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7509 *) ac_try_echo=$ac_try;; 7510esac 7511eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7512$as_echo "$ac_try_echo") >&5 7513 (eval "$ac_link") 2>conftest.er1 7514 ac_status=$? 7515 grep -v '^ *+' conftest.er1 >conftest.err 7516 rm -f conftest.er1 7517 cat conftest.err >&5 7518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7519 (exit $ac_status); } && { 7520 test -z "$ac_c_werror_flag" || 7521 test ! -s conftest.err 7522 } && test -s conftest$ac_exeext && { 7523 test "$cross_compiling" = yes || 7524 $as_test_x conftest$ac_exeext 7525 }; then 7526 lt_cv_cc_needs_belf=yes 7527else 7528 $as_echo "$as_me: failed program was:" >&5 7529sed 's/^/| /' conftest.$ac_ext >&5 7530 7531 lt_cv_cc_needs_belf=no 7532fi 7533 7534rm -rf conftest.dSYM 7535rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7536 conftest$ac_exeext conftest.$ac_ext 7537 ac_ext=c 7538ac_cpp='$CPP $CPPFLAGS' 7539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7541ac_compiler_gnu=$ac_cv_c_compiler_gnu 7542 7543fi 7544{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 7545$as_echo "$lt_cv_cc_needs_belf" >&6; } 7546 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7547 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7548 CFLAGS="$SAVE_CFLAGS" 7549 fi 7550 ;; 7551sparc*-*solaris*) 7552 # Find out which ABI we are using. 7553 echo 'int i;' > conftest.$ac_ext 7554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7555 (eval $ac_compile) 2>&5 7556 ac_status=$? 7557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7558 (exit $ac_status); }; then 7559 case `/usr/bin/file conftest.o` in 7560 *64-bit*) 7561 case $lt_cv_prog_gnu_ld in 7562 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7563 *) 7564 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7565 LD="${LD-ld} -64" 7566 fi 7567 ;; 7568 esac 7569 ;; 7570 esac 7571 fi 7572 rm -rf conftest* 7573 ;; 7574esac 7575 7576need_locks="$enable_libtool_lock" 7577 7578 7579 case $host_os in 7580 rhapsody* | darwin*) 7581 if test -n "$ac_tool_prefix"; then 7582 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7583set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7584{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7585$as_echo_n "checking for $ac_word... " >&6; } 7586if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7587 $as_echo_n "(cached) " >&6 7588else 7589 if test -n "$DSYMUTIL"; then 7590 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7591else 7592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7593for as_dir in $PATH 7594do 7595 IFS=$as_save_IFS 7596 test -z "$as_dir" && as_dir=. 7597 for ac_exec_ext in '' $ac_executable_extensions; do 7598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7599 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7600 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7601 break 2 7602 fi 7603done 7604done 7605IFS=$as_save_IFS 7606 7607fi 7608fi 7609DSYMUTIL=$ac_cv_prog_DSYMUTIL 7610if test -n "$DSYMUTIL"; then 7611 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7612$as_echo "$DSYMUTIL" >&6; } 7613else 7614 { $as_echo "$as_me:$LINENO: result: no" >&5 7615$as_echo "no" >&6; } 7616fi 7617 7618 7619fi 7620if test -z "$ac_cv_prog_DSYMUTIL"; then 7621 ac_ct_DSYMUTIL=$DSYMUTIL 7622 # Extract the first word of "dsymutil", so it can be a program name with args. 7623set dummy dsymutil; ac_word=$2 7624{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7625$as_echo_n "checking for $ac_word... " >&6; } 7626if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7627 $as_echo_n "(cached) " >&6 7628else 7629 if test -n "$ac_ct_DSYMUTIL"; then 7630 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7631else 7632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7633for as_dir in $PATH 7634do 7635 IFS=$as_save_IFS 7636 test -z "$as_dir" && as_dir=. 7637 for ac_exec_ext in '' $ac_executable_extensions; do 7638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7639 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7640 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7641 break 2 7642 fi 7643done 7644done 7645IFS=$as_save_IFS 7646 7647fi 7648fi 7649ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7650if test -n "$ac_ct_DSYMUTIL"; then 7651 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7652$as_echo "$ac_ct_DSYMUTIL" >&6; } 7653else 7654 { $as_echo "$as_me:$LINENO: result: no" >&5 7655$as_echo "no" >&6; } 7656fi 7657 7658 if test "x$ac_ct_DSYMUTIL" = x; then 7659 DSYMUTIL=":" 7660 else 7661 case $cross_compiling:$ac_tool_warned in 7662yes:) 7663{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7664$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7665ac_tool_warned=yes ;; 7666esac 7667 DSYMUTIL=$ac_ct_DSYMUTIL 7668 fi 7669else 7670 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7671fi 7672 7673 if test -n "$ac_tool_prefix"; then 7674 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7675set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7676{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7677$as_echo_n "checking for $ac_word... " >&6; } 7678if test "${ac_cv_prog_NMEDIT+set}" = set; then 7679 $as_echo_n "(cached) " >&6 7680else 7681 if test -n "$NMEDIT"; then 7682 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7683else 7684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7685for as_dir in $PATH 7686do 7687 IFS=$as_save_IFS 7688 test -z "$as_dir" && as_dir=. 7689 for ac_exec_ext in '' $ac_executable_extensions; do 7690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7691 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7692 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7693 break 2 7694 fi 7695done 7696done 7697IFS=$as_save_IFS 7698 7699fi 7700fi 7701NMEDIT=$ac_cv_prog_NMEDIT 7702if test -n "$NMEDIT"; then 7703 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 7704$as_echo "$NMEDIT" >&6; } 7705else 7706 { $as_echo "$as_me:$LINENO: result: no" >&5 7707$as_echo "no" >&6; } 7708fi 7709 7710 7711fi 7712if test -z "$ac_cv_prog_NMEDIT"; then 7713 ac_ct_NMEDIT=$NMEDIT 7714 # Extract the first word of "nmedit", so it can be a program name with args. 7715set dummy nmedit; ac_word=$2 7716{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7717$as_echo_n "checking for $ac_word... " >&6; } 7718if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7719 $as_echo_n "(cached) " >&6 7720else 7721 if test -n "$ac_ct_NMEDIT"; then 7722 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7723else 7724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7725for as_dir in $PATH 7726do 7727 IFS=$as_save_IFS 7728 test -z "$as_dir" && as_dir=. 7729 for ac_exec_ext in '' $ac_executable_extensions; do 7730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7731 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7732 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7733 break 2 7734 fi 7735done 7736done 7737IFS=$as_save_IFS 7738 7739fi 7740fi 7741ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7742if test -n "$ac_ct_NMEDIT"; then 7743 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7744$as_echo "$ac_ct_NMEDIT" >&6; } 7745else 7746 { $as_echo "$as_me:$LINENO: result: no" >&5 7747$as_echo "no" >&6; } 7748fi 7749 7750 if test "x$ac_ct_NMEDIT" = x; then 7751 NMEDIT=":" 7752 else 7753 case $cross_compiling:$ac_tool_warned in 7754yes:) 7755{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7757ac_tool_warned=yes ;; 7758esac 7759 NMEDIT=$ac_ct_NMEDIT 7760 fi 7761else 7762 NMEDIT="$ac_cv_prog_NMEDIT" 7763fi 7764 7765 if test -n "$ac_tool_prefix"; then 7766 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7767set dummy ${ac_tool_prefix}lipo; ac_word=$2 7768{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7769$as_echo_n "checking for $ac_word... " >&6; } 7770if test "${ac_cv_prog_LIPO+set}" = set; then 7771 $as_echo_n "(cached) " >&6 7772else 7773 if test -n "$LIPO"; then 7774 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7775else 7776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7777for as_dir in $PATH 7778do 7779 IFS=$as_save_IFS 7780 test -z "$as_dir" && as_dir=. 7781 for ac_exec_ext in '' $ac_executable_extensions; do 7782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7783 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7784 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7785 break 2 7786 fi 7787done 7788done 7789IFS=$as_save_IFS 7790 7791fi 7792fi 7793LIPO=$ac_cv_prog_LIPO 7794if test -n "$LIPO"; then 7795 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 7796$as_echo "$LIPO" >&6; } 7797else 7798 { $as_echo "$as_me:$LINENO: result: no" >&5 7799$as_echo "no" >&6; } 7800fi 7801 7802 7803fi 7804if test -z "$ac_cv_prog_LIPO"; then 7805 ac_ct_LIPO=$LIPO 7806 # Extract the first word of "lipo", so it can be a program name with args. 7807set dummy lipo; ac_word=$2 7808{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7809$as_echo_n "checking for $ac_word... " >&6; } 7810if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 7811 $as_echo_n "(cached) " >&6 7812else 7813 if test -n "$ac_ct_LIPO"; then 7814 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7815else 7816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7817for as_dir in $PATH 7818do 7819 IFS=$as_save_IFS 7820 test -z "$as_dir" && as_dir=. 7821 for ac_exec_ext in '' $ac_executable_extensions; do 7822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7823 ac_cv_prog_ac_ct_LIPO="lipo" 7824 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7825 break 2 7826 fi 7827done 7828done 7829IFS=$as_save_IFS 7830 7831fi 7832fi 7833ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7834if test -n "$ac_ct_LIPO"; then 7835 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 7836$as_echo "$ac_ct_LIPO" >&6; } 7837else 7838 { $as_echo "$as_me:$LINENO: result: no" >&5 7839$as_echo "no" >&6; } 7840fi 7841 7842 if test "x$ac_ct_LIPO" = x; then 7843 LIPO=":" 7844 else 7845 case $cross_compiling:$ac_tool_warned in 7846yes:) 7847{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7849ac_tool_warned=yes ;; 7850esac 7851 LIPO=$ac_ct_LIPO 7852 fi 7853else 7854 LIPO="$ac_cv_prog_LIPO" 7855fi 7856 7857 if test -n "$ac_tool_prefix"; then 7858 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7859set dummy ${ac_tool_prefix}otool; ac_word=$2 7860{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7861$as_echo_n "checking for $ac_word... " >&6; } 7862if test "${ac_cv_prog_OTOOL+set}" = set; then 7863 $as_echo_n "(cached) " >&6 7864else 7865 if test -n "$OTOOL"; then 7866 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7867else 7868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7869for as_dir in $PATH 7870do 7871 IFS=$as_save_IFS 7872 test -z "$as_dir" && as_dir=. 7873 for ac_exec_ext in '' $ac_executable_extensions; do 7874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7875 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7876 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7877 break 2 7878 fi 7879done 7880done 7881IFS=$as_save_IFS 7882 7883fi 7884fi 7885OTOOL=$ac_cv_prog_OTOOL 7886if test -n "$OTOOL"; then 7887 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 7888$as_echo "$OTOOL" >&6; } 7889else 7890 { $as_echo "$as_me:$LINENO: result: no" >&5 7891$as_echo "no" >&6; } 7892fi 7893 7894 7895fi 7896if test -z "$ac_cv_prog_OTOOL"; then 7897 ac_ct_OTOOL=$OTOOL 7898 # Extract the first word of "otool", so it can be a program name with args. 7899set dummy otool; ac_word=$2 7900{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7901$as_echo_n "checking for $ac_word... " >&6; } 7902if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 7903 $as_echo_n "(cached) " >&6 7904else 7905 if test -n "$ac_ct_OTOOL"; then 7906 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7907else 7908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7909for as_dir in $PATH 7910do 7911 IFS=$as_save_IFS 7912 test -z "$as_dir" && as_dir=. 7913 for ac_exec_ext in '' $ac_executable_extensions; do 7914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7915 ac_cv_prog_ac_ct_OTOOL="otool" 7916 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7917 break 2 7918 fi 7919done 7920done 7921IFS=$as_save_IFS 7922 7923fi 7924fi 7925ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7926if test -n "$ac_ct_OTOOL"; then 7927 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 7928$as_echo "$ac_ct_OTOOL" >&6; } 7929else 7930 { $as_echo "$as_me:$LINENO: result: no" >&5 7931$as_echo "no" >&6; } 7932fi 7933 7934 if test "x$ac_ct_OTOOL" = x; then 7935 OTOOL=":" 7936 else 7937 case $cross_compiling:$ac_tool_warned in 7938yes:) 7939{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7940$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7941ac_tool_warned=yes ;; 7942esac 7943 OTOOL=$ac_ct_OTOOL 7944 fi 7945else 7946 OTOOL="$ac_cv_prog_OTOOL" 7947fi 7948 7949 if test -n "$ac_tool_prefix"; then 7950 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7951set dummy ${ac_tool_prefix}otool64; ac_word=$2 7952{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7953$as_echo_n "checking for $ac_word... " >&6; } 7954if test "${ac_cv_prog_OTOOL64+set}" = set; then 7955 $as_echo_n "(cached) " >&6 7956else 7957 if test -n "$OTOOL64"; then 7958 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7959else 7960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7961for as_dir in $PATH 7962do 7963 IFS=$as_save_IFS 7964 test -z "$as_dir" && as_dir=. 7965 for ac_exec_ext in '' $ac_executable_extensions; do 7966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7967 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7968 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7969 break 2 7970 fi 7971done 7972done 7973IFS=$as_save_IFS 7974 7975fi 7976fi 7977OTOOL64=$ac_cv_prog_OTOOL64 7978if test -n "$OTOOL64"; then 7979 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 7980$as_echo "$OTOOL64" >&6; } 7981else 7982 { $as_echo "$as_me:$LINENO: result: no" >&5 7983$as_echo "no" >&6; } 7984fi 7985 7986 7987fi 7988if test -z "$ac_cv_prog_OTOOL64"; then 7989 ac_ct_OTOOL64=$OTOOL64 7990 # Extract the first word of "otool64", so it can be a program name with args. 7991set dummy otool64; ac_word=$2 7992{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7993$as_echo_n "checking for $ac_word... " >&6; } 7994if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 7995 $as_echo_n "(cached) " >&6 7996else 7997 if test -n "$ac_ct_OTOOL64"; then 7998 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7999else 8000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8001for as_dir in $PATH 8002do 8003 IFS=$as_save_IFS 8004 test -z "$as_dir" && as_dir=. 8005 for ac_exec_ext in '' $ac_executable_extensions; do 8006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8007 ac_cv_prog_ac_ct_OTOOL64="otool64" 8008 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8009 break 2 8010 fi 8011done 8012done 8013IFS=$as_save_IFS 8014 8015fi 8016fi 8017ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8018if test -n "$ac_ct_OTOOL64"; then 8019 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 8020$as_echo "$ac_ct_OTOOL64" >&6; } 8021else 8022 { $as_echo "$as_me:$LINENO: result: no" >&5 8023$as_echo "no" >&6; } 8024fi 8025 8026 if test "x$ac_ct_OTOOL64" = x; then 8027 OTOOL64=":" 8028 else 8029 case $cross_compiling:$ac_tool_warned in 8030yes:) 8031{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 8032$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8033ac_tool_warned=yes ;; 8034esac 8035 OTOOL64=$ac_ct_OTOOL64 8036 fi 8037else 8038 OTOOL64="$ac_cv_prog_OTOOL64" 8039fi 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 8068$as_echo_n "checking for -single_module linker flag... " >&6; } 8069if test "${lt_cv_apple_cc_single_mod+set}" = set; then 8070 $as_echo_n "(cached) " >&6 8071else 8072 lt_cv_apple_cc_single_mod=no 8073 if test -z "${LT_MULTI_MODULE}"; then 8074 # By default we will add the -single_module flag. You can override 8075 # by either setting the environment variable LT_MULTI_MODULE 8076 # non-empty at configure time, or by adding -multi_module to the 8077 # link flags. 8078 rm -rf libconftest.dylib* 8079 echo "int foo(void){return 1;}" > conftest.c 8080 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8081-dynamiclib -Wl,-single_module conftest.c" >&5 8082 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8083 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8084 _lt_result=$? 8085 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 8086 lt_cv_apple_cc_single_mod=yes 8087 else 8088 cat conftest.err >&5 8089 fi 8090 rm -rf libconftest.dylib* 8091 rm -f conftest.* 8092 fi 8093fi 8094{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 8095$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8096 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 8097$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8098if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 8099 $as_echo_n "(cached) " >&6 8100else 8101 lt_cv_ld_exported_symbols_list=no 8102 save_LDFLAGS=$LDFLAGS 8103 echo "_main" > conftest.sym 8104 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8105 cat >conftest.$ac_ext <<_ACEOF 8106/* confdefs.h. */ 8107_ACEOF 8108cat confdefs.h >>conftest.$ac_ext 8109cat >>conftest.$ac_ext <<_ACEOF 8110/* end confdefs.h. */ 8111 8112int 8113main () 8114{ 8115 8116 ; 8117 return 0; 8118} 8119_ACEOF 8120rm -f conftest.$ac_objext conftest$ac_exeext 8121if { (ac_try="$ac_link" 8122case "(($ac_try" in 8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8124 *) ac_try_echo=$ac_try;; 8125esac 8126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8127$as_echo "$ac_try_echo") >&5 8128 (eval "$ac_link") 2>conftest.er1 8129 ac_status=$? 8130 grep -v '^ *+' conftest.er1 >conftest.err 8131 rm -f conftest.er1 8132 cat conftest.err >&5 8133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8134 (exit $ac_status); } && { 8135 test -z "$ac_c_werror_flag" || 8136 test ! -s conftest.err 8137 } && test -s conftest$ac_exeext && { 8138 test "$cross_compiling" = yes || 8139 $as_test_x conftest$ac_exeext 8140 }; then 8141 lt_cv_ld_exported_symbols_list=yes 8142else 8143 $as_echo "$as_me: failed program was:" >&5 8144sed 's/^/| /' conftest.$ac_ext >&5 8145 8146 lt_cv_ld_exported_symbols_list=no 8147fi 8148 8149rm -rf conftest.dSYM 8150rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8151 conftest$ac_exeext conftest.$ac_ext 8152 LDFLAGS="$save_LDFLAGS" 8153 8154fi 8155{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 8156$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8157 case $host_os in 8158 rhapsody* | darwin1.[012]) 8159 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8160 darwin1.*) 8161 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8162 darwin*) # darwin 5.x on 8163 # if running on 10.5 or later, the deployment target defaults 8164 # to the OS version, if on x86, and 10.4, the deployment 8165 # target defaults to 10.4. Don't you love it? 8166 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8167 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8168 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8169 10.[012]*) 8170 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8171 10.*) 8172 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8173 esac 8174 ;; 8175 esac 8176 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8177 _lt_dar_single_mod='$single_module' 8178 fi 8179 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8180 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8181 else 8182 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8183 fi 8184 if test "$DSYMUTIL" != ":"; then 8185 _lt_dsymutil='~$DSYMUTIL $lib || :' 8186 else 8187 _lt_dsymutil= 8188 fi 8189 ;; 8190 esac 8191 8192 8193for ac_header in dlfcn.h 8194do 8195as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8196{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 8197$as_echo_n "checking for $ac_header... " >&6; } 8198if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8199 $as_echo_n "(cached) " >&6 8200else 8201 cat >conftest.$ac_ext <<_ACEOF 8202/* confdefs.h. */ 8203_ACEOF 8204cat confdefs.h >>conftest.$ac_ext 8205cat >>conftest.$ac_ext <<_ACEOF 8206/* end confdefs.h. */ 8207$ac_includes_default 8208 8209#include <$ac_header> 8210_ACEOF 8211rm -f conftest.$ac_objext 8212if { (ac_try="$ac_compile" 8213case "(($ac_try" in 8214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8215 *) ac_try_echo=$ac_try;; 8216esac 8217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8218$as_echo "$ac_try_echo") >&5 8219 (eval "$ac_compile") 2>conftest.er1 8220 ac_status=$? 8221 grep -v '^ *+' conftest.er1 >conftest.err 8222 rm -f conftest.er1 8223 cat conftest.err >&5 8224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8225 (exit $ac_status); } && { 8226 test -z "$ac_c_werror_flag" || 8227 test ! -s conftest.err 8228 } && test -s conftest.$ac_objext; then 8229 eval "$as_ac_Header=yes" 8230else 8231 $as_echo "$as_me: failed program was:" >&5 8232sed 's/^/| /' conftest.$ac_ext >&5 8233 8234 eval "$as_ac_Header=no" 8235fi 8236 8237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8238fi 8239ac_res=`eval 'as_val=${'$as_ac_Header'} 8240 $as_echo "$as_val"'` 8241 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 8242$as_echo "$ac_res" >&6; } 8243as_val=`eval 'as_val=${'$as_ac_Header'} 8244 $as_echo "$as_val"'` 8245 if test "x$as_val" = x""yes; then 8246 cat >>confdefs.h <<_ACEOF 8247#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8248_ACEOF 8249 8250fi 8251 8252done 8253 8254 8255 8256# Set options 8257 8258 8259 8260 enable_dlopen=no 8261 8262 8263 enable_win32_dll=no 8264 8265 8266 # Check whether --enable-shared was given. 8267if test "${enable_shared+set}" = set; then 8268 enableval=$enable_shared; p=${PACKAGE-default} 8269 case $enableval in 8270 yes) enable_shared=yes ;; 8271 no) enable_shared=no ;; 8272 *) 8273 enable_shared=no 8274 # Look at the argument we got. We use all the common list separators. 8275 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8276 for pkg in $enableval; do 8277 IFS="$lt_save_ifs" 8278 if test "X$pkg" = "X$p"; then 8279 enable_shared=yes 8280 fi 8281 done 8282 IFS="$lt_save_ifs" 8283 ;; 8284 esac 8285else 8286 enable_shared=yes 8287fi 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299# Check whether --with-pic was given. 8300if test "${with_pic+set}" = set; then 8301 withval=$with_pic; pic_mode="$withval" 8302else 8303 pic_mode=default 8304fi 8305 8306 8307test -z "$pic_mode" && pic_mode=default 8308 8309 8310 8311 8312 8313 8314 8315 # Check whether --enable-fast-install was given. 8316if test "${enable_fast_install+set}" = set; then 8317 enableval=$enable_fast_install; p=${PACKAGE-default} 8318 case $enableval in 8319 yes) enable_fast_install=yes ;; 8320 no) enable_fast_install=no ;; 8321 *) 8322 enable_fast_install=no 8323 # Look at the argument we got. We use all the common list separators. 8324 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8325 for pkg in $enableval; do 8326 IFS="$lt_save_ifs" 8327 if test "X$pkg" = "X$p"; then 8328 enable_fast_install=yes 8329 fi 8330 done 8331 IFS="$lt_save_ifs" 8332 ;; 8333 esac 8334else 8335 enable_fast_install=yes 8336fi 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348# This can be used to rebuild libtool when needed 8349LIBTOOL_DEPS="$ltmain" 8350 8351# Always use our own libtool. 8352LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378test -z "$LN_S" && LN_S="ln -s" 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393if test -n "${ZSH_VERSION+set}" ; then 8394 setopt NO_GLOB_SUBST 8395fi 8396 8397{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 8398$as_echo_n "checking for objdir... " >&6; } 8399if test "${lt_cv_objdir+set}" = set; then 8400 $as_echo_n "(cached) " >&6 8401else 8402 rm -f .libs 2>/dev/null 8403mkdir .libs 2>/dev/null 8404if test -d .libs; then 8405 lt_cv_objdir=.libs 8406else 8407 # MS-DOS does not allow filenames that begin with a dot. 8408 lt_cv_objdir=_libs 8409fi 8410rmdir .libs 2>/dev/null 8411fi 8412{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 8413$as_echo "$lt_cv_objdir" >&6; } 8414objdir=$lt_cv_objdir 8415 8416 8417 8418 8419 8420cat >>confdefs.h <<_ACEOF 8421#define LT_OBJDIR "$lt_cv_objdir/" 8422_ACEOF 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440case $host_os in 8441aix3*) 8442 # AIX sometimes has problems with the GCC collect2 program. For some 8443 # reason, if we set the COLLECT_NAMES environment variable, the problems 8444 # vanish in a puff of smoke. 8445 if test "X${COLLECT_NAMES+set}" != Xset; then 8446 COLLECT_NAMES= 8447 export COLLECT_NAMES 8448 fi 8449 ;; 8450esac 8451 8452# Sed substitution that helps us do robust quoting. It backslashifies 8453# metacharacters that are still active within double-quoted strings. 8454sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8455 8456# Same as above, but do not quote variable references. 8457double_quote_subst='s/\(["`\\]\)/\\\1/g' 8458 8459# Sed substitution to delay expansion of an escaped shell variable in a 8460# double_quote_subst'ed string. 8461delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8462 8463# Sed substitution to delay expansion of an escaped single quote. 8464delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8465 8466# Sed substitution to avoid accidental globbing in evaled expressions 8467no_glob_subst='s/\*/\\\*/g' 8468 8469# Global variables: 8470ofile=libtool 8471can_build_shared=yes 8472 8473# All known linkers require a `.a' archive for static linking (except MSVC, 8474# which needs '.lib'). 8475libext=a 8476 8477with_gnu_ld="$lt_cv_prog_gnu_ld" 8478 8479old_CC="$CC" 8480old_CFLAGS="$CFLAGS" 8481 8482# Set sane defaults for various variables 8483test -z "$CC" && CC=cc 8484test -z "$LTCC" && LTCC=$CC 8485test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8486test -z "$LD" && LD=ld 8487test -z "$ac_objext" && ac_objext=o 8488 8489for cc_temp in $compiler""; do 8490 case $cc_temp in 8491 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8492 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8493 \-*) ;; 8494 *) break;; 8495 esac 8496done 8497cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8498 8499 8500# Only perform the check for file, if the check method requires it 8501test -z "$MAGIC_CMD" && MAGIC_CMD=file 8502case $deplibs_check_method in 8503file_magic*) 8504 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8505 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8506$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8507if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8508 $as_echo_n "(cached) " >&6 8509else 8510 case $MAGIC_CMD in 8511[\\/*] | ?:[\\/]*) 8512 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8513 ;; 8514*) 8515 lt_save_MAGIC_CMD="$MAGIC_CMD" 8516 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8517 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8518 for ac_dir in $ac_dummy; do 8519 IFS="$lt_save_ifs" 8520 test -z "$ac_dir" && ac_dir=. 8521 if test -f $ac_dir/${ac_tool_prefix}file; then 8522 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8523 if test -n "$file_magic_test_file"; then 8524 case $deplibs_check_method in 8525 "file_magic "*) 8526 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8527 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8528 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8529 $EGREP "$file_magic_regex" > /dev/null; then 8530 : 8531 else 8532 cat <<_LT_EOF 1>&2 8533 8534*** Warning: the command libtool uses to detect shared libraries, 8535*** $file_magic_cmd, produces output that libtool cannot recognize. 8536*** The result is that libtool may fail to recognize shared libraries 8537*** as such. This will affect the creation of libtool libraries that 8538*** depend on shared libraries, but programs linked with such libtool 8539*** libraries will work regardless of this problem. Nevertheless, you 8540*** may want to report the problem to your system manager and/or to 8541*** bug-libtool@gnu.org 8542 8543_LT_EOF 8544 fi ;; 8545 esac 8546 fi 8547 break 8548 fi 8549 done 8550 IFS="$lt_save_ifs" 8551 MAGIC_CMD="$lt_save_MAGIC_CMD" 8552 ;; 8553esac 8554fi 8555 8556MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8557if test -n "$MAGIC_CMD"; then 8558 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8559$as_echo "$MAGIC_CMD" >&6; } 8560else 8561 { $as_echo "$as_me:$LINENO: result: no" >&5 8562$as_echo "no" >&6; } 8563fi 8564 8565 8566 8567 8568 8569if test -z "$lt_cv_path_MAGIC_CMD"; then 8570 if test -n "$ac_tool_prefix"; then 8571 { $as_echo "$as_me:$LINENO: checking for file" >&5 8572$as_echo_n "checking for file... " >&6; } 8573if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8574 $as_echo_n "(cached) " >&6 8575else 8576 case $MAGIC_CMD in 8577[\\/*] | ?:[\\/]*) 8578 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8579 ;; 8580*) 8581 lt_save_MAGIC_CMD="$MAGIC_CMD" 8582 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8583 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8584 for ac_dir in $ac_dummy; do 8585 IFS="$lt_save_ifs" 8586 test -z "$ac_dir" && ac_dir=. 8587 if test -f $ac_dir/file; then 8588 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8589 if test -n "$file_magic_test_file"; then 8590 case $deplibs_check_method in 8591 "file_magic "*) 8592 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8593 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8594 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8595 $EGREP "$file_magic_regex" > /dev/null; then 8596 : 8597 else 8598 cat <<_LT_EOF 1>&2 8599 8600*** Warning: the command libtool uses to detect shared libraries, 8601*** $file_magic_cmd, produces output that libtool cannot recognize. 8602*** The result is that libtool may fail to recognize shared libraries 8603*** as such. This will affect the creation of libtool libraries that 8604*** depend on shared libraries, but programs linked with such libtool 8605*** libraries will work regardless of this problem. Nevertheless, you 8606*** may want to report the problem to your system manager and/or to 8607*** bug-libtool@gnu.org 8608 8609_LT_EOF 8610 fi ;; 8611 esac 8612 fi 8613 break 8614 fi 8615 done 8616 IFS="$lt_save_ifs" 8617 MAGIC_CMD="$lt_save_MAGIC_CMD" 8618 ;; 8619esac 8620fi 8621 8622MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8623if test -n "$MAGIC_CMD"; then 8624 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8625$as_echo "$MAGIC_CMD" >&6; } 8626else 8627 { $as_echo "$as_me:$LINENO: result: no" >&5 8628$as_echo "no" >&6; } 8629fi 8630 8631 8632 else 8633 MAGIC_CMD=: 8634 fi 8635fi 8636 8637 fi 8638 ;; 8639esac 8640 8641# Use C for the default configuration in the libtool script 8642 8643lt_save_CC="$CC" 8644ac_ext=c 8645ac_cpp='$CPP $CPPFLAGS' 8646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8648ac_compiler_gnu=$ac_cv_c_compiler_gnu 8649 8650 8651# Source file extension for C test sources. 8652ac_ext=c 8653 8654# Object file extension for compiled C test sources. 8655objext=o 8656objext=$objext 8657 8658# Code to be used in simple compile tests 8659lt_simple_compile_test_code="int some_variable = 0;" 8660 8661# Code to be used in simple link tests 8662lt_simple_link_test_code='int main(){return(0);}' 8663 8664 8665 8666 8667 8668 8669 8670# If no C compiler was specified, use CC. 8671LTCC=${LTCC-"$CC"} 8672 8673# If no C compiler flags were specified, use CFLAGS. 8674LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8675 8676# Allow CC to be a program name with arguments. 8677compiler=$CC 8678 8679# Save the default compiler, since it gets overwritten when the other 8680# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8681compiler_DEFAULT=$CC 8682 8683# save warnings/boilerplate of simple test code 8684ac_outfile=conftest.$ac_objext 8685echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8686eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8687_lt_compiler_boilerplate=`cat conftest.err` 8688$RM conftest* 8689 8690ac_outfile=conftest.$ac_objext 8691echo "$lt_simple_link_test_code" >conftest.$ac_ext 8692eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8693_lt_linker_boilerplate=`cat conftest.err` 8694$RM -r conftest* 8695 8696 8697if test -n "$compiler"; then 8698 8699lt_prog_compiler_no_builtin_flag= 8700 8701if test "$GCC" = yes; then 8702 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8703 8704 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8705$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8706if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8707 $as_echo_n "(cached) " >&6 8708else 8709 lt_cv_prog_compiler_rtti_exceptions=no 8710 ac_outfile=conftest.$ac_objext 8711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8712 lt_compiler_flag="-fno-rtti -fno-exceptions" 8713 # Insert the option either (1) after the last *FLAGS variable, or 8714 # (2) before a word containing "conftest.", or (3) at the end. 8715 # Note that $ac_compile itself does not contain backslashes and begins 8716 # with a dollar sign (not a hyphen), so the echo should work correctly. 8717 # The option is referenced via a variable to avoid confusing sed. 8718 lt_compile=`echo "$ac_compile" | $SED \ 8719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8721 -e 's:$: $lt_compiler_flag:'` 8722 (eval echo "\"\$as_me:8722: $lt_compile\"" >&5) 8723 (eval "$lt_compile" 2>conftest.err) 8724 ac_status=$? 8725 cat conftest.err >&5 8726 echo "$as_me:8726: \$? = $ac_status" >&5 8727 if (exit $ac_status) && test -s "$ac_outfile"; then 8728 # The compiler can only warn and ignore the option if not recognized 8729 # So say no if there are warnings other than the usual output. 8730 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8732 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8733 lt_cv_prog_compiler_rtti_exceptions=yes 8734 fi 8735 fi 8736 $RM conftest* 8737 8738fi 8739{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8740$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8741 8742if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8743 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8744else 8745 : 8746fi 8747 8748fi 8749 8750 8751 8752 8753 8754 8755 lt_prog_compiler_wl= 8756lt_prog_compiler_pic= 8757lt_prog_compiler_static= 8758 8759{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8760$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8761 8762 if test "$GCC" = yes; then 8763 lt_prog_compiler_wl='-Wl,' 8764 lt_prog_compiler_static='-static' 8765 8766 case $host_os in 8767 aix*) 8768 # All AIX code is PIC. 8769 if test "$host_cpu" = ia64; then 8770 # AIX 5 now supports IA64 processor 8771 lt_prog_compiler_static='-Bstatic' 8772 fi 8773 ;; 8774 8775 amigaos*) 8776 case $host_cpu in 8777 powerpc) 8778 # see comment about AmigaOS4 .so support 8779 lt_prog_compiler_pic='-fPIC' 8780 ;; 8781 m68k) 8782 # FIXME: we need at least 68020 code to build shared libraries, but 8783 # adding the `-m68020' flag to GCC prevents building anything better, 8784 # like `-m68040'. 8785 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8786 ;; 8787 esac 8788 ;; 8789 8790 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8791 # PIC is the default for these OSes. 8792 ;; 8793 8794 mingw* | cygwin* | pw32* | os2* | cegcc*) 8795 # This hack is so that the source file can tell whether it is being 8796 # built for inclusion in a dll (and should export symbols for example). 8797 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8798 # (--disable-auto-import) libraries 8799 lt_prog_compiler_pic='-DDLL_EXPORT' 8800 ;; 8801 8802 darwin* | rhapsody*) 8803 # PIC is the default on this platform 8804 # Common symbols not allowed in MH_DYLIB files 8805 lt_prog_compiler_pic='-fno-common' 8806 ;; 8807 8808 hpux*) 8809 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8810 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8811 # sets the default TLS model and affects inlining. 8812 case $host_cpu in 8813 hppa*64*) 8814 # +Z the default 8815 ;; 8816 *) 8817 lt_prog_compiler_pic='-fPIC' 8818 ;; 8819 esac 8820 ;; 8821 8822 interix[3-9]*) 8823 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8824 # Instead, we relocate shared libraries at runtime. 8825 ;; 8826 8827 msdosdjgpp*) 8828 # Just because we use GCC doesn't mean we suddenly get shared libraries 8829 # on systems that don't support them. 8830 lt_prog_compiler_can_build_shared=no 8831 enable_shared=no 8832 ;; 8833 8834 *nto* | *qnx*) 8835 # QNX uses GNU C++, but need to define -shared option too, otherwise 8836 # it will coredump. 8837 lt_prog_compiler_pic='-fPIC -shared' 8838 ;; 8839 8840 sysv4*MP*) 8841 if test -d /usr/nec; then 8842 lt_prog_compiler_pic=-Kconform_pic 8843 fi 8844 ;; 8845 8846 *) 8847 lt_prog_compiler_pic='-fPIC' 8848 ;; 8849 esac 8850 else 8851 # PORTME Check for flag to pass linker flags through the system compiler. 8852 case $host_os in 8853 aix*) 8854 lt_prog_compiler_wl='-Wl,' 8855 if test "$host_cpu" = ia64; then 8856 # AIX 5 now supports IA64 processor 8857 lt_prog_compiler_static='-Bstatic' 8858 else 8859 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8860 fi 8861 ;; 8862 8863 mingw* | cygwin* | pw32* | os2* | cegcc*) 8864 # This hack is so that the source file can tell whether it is being 8865 # built for inclusion in a dll (and should export symbols for example). 8866 lt_prog_compiler_pic='-DDLL_EXPORT' 8867 ;; 8868 8869 hpux9* | hpux10* | hpux11*) 8870 lt_prog_compiler_wl='-Wl,' 8871 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8872 # not for PA HP-UX. 8873 case $host_cpu in 8874 hppa*64*|ia64*) 8875 # +Z the default 8876 ;; 8877 *) 8878 lt_prog_compiler_pic='+Z' 8879 ;; 8880 esac 8881 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8882 lt_prog_compiler_static='${wl}-a ${wl}archive' 8883 ;; 8884 8885 irix5* | irix6* | nonstopux*) 8886 lt_prog_compiler_wl='-Wl,' 8887 # PIC (with -KPIC) is the default. 8888 lt_prog_compiler_static='-non_shared' 8889 ;; 8890 8891 linux* | k*bsd*-gnu) 8892 case $cc_basename in 8893 # old Intel for x86_64 which still supported -KPIC. 8894 ecc*) 8895 lt_prog_compiler_wl='-Wl,' 8896 lt_prog_compiler_pic='-KPIC' 8897 lt_prog_compiler_static='-static' 8898 ;; 8899 # icc used to be incompatible with GCC. 8900 # ICC 10 doesn't accept -KPIC any more. 8901 icc* | ifort*) 8902 lt_prog_compiler_wl='-Wl,' 8903 lt_prog_compiler_pic='-fPIC' 8904 lt_prog_compiler_static='-static' 8905 ;; 8906 # Lahey Fortran 8.1. 8907 lf95*) 8908 lt_prog_compiler_wl='-Wl,' 8909 lt_prog_compiler_pic='--shared' 8910 lt_prog_compiler_static='--static' 8911 ;; 8912 pgcc* | pgf77* | pgf90* | pgf95*) 8913 # Portland Group compilers (*not* the Pentium gcc compiler, 8914 # which looks to be a dead project) 8915 lt_prog_compiler_wl='-Wl,' 8916 lt_prog_compiler_pic='-fpic' 8917 lt_prog_compiler_static='-Bstatic' 8918 ;; 8919 ccc*) 8920 lt_prog_compiler_wl='-Wl,' 8921 # All Alpha code is PIC. 8922 lt_prog_compiler_static='-non_shared' 8923 ;; 8924 xl*) 8925 # IBM XL C 8.0/Fortran 10.1 on PPC 8926 lt_prog_compiler_wl='-Wl,' 8927 lt_prog_compiler_pic='-qpic' 8928 lt_prog_compiler_static='-qstaticlink' 8929 ;; 8930 *) 8931 case `$CC -V 2>&1 | sed 5q` in 8932 *Sun\ C*) 8933 # Sun C 5.9 8934 lt_prog_compiler_pic='-KPIC' 8935 lt_prog_compiler_static='-Bstatic' 8936 lt_prog_compiler_wl='-Wl,' 8937 ;; 8938 *Sun\ F*) 8939 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8940 lt_prog_compiler_pic='-KPIC' 8941 lt_prog_compiler_static='-Bstatic' 8942 lt_prog_compiler_wl='' 8943 ;; 8944 esac 8945 ;; 8946 esac 8947 ;; 8948 8949 newsos6) 8950 lt_prog_compiler_pic='-KPIC' 8951 lt_prog_compiler_static='-Bstatic' 8952 ;; 8953 8954 *nto* | *qnx*) 8955 # QNX uses GNU C++, but need to define -shared option too, otherwise 8956 # it will coredump. 8957 lt_prog_compiler_pic='-fPIC -shared' 8958 ;; 8959 8960 osf3* | osf4* | osf5*) 8961 lt_prog_compiler_wl='-Wl,' 8962 # All OSF/1 code is PIC. 8963 lt_prog_compiler_static='-non_shared' 8964 ;; 8965 8966 rdos*) 8967 lt_prog_compiler_static='-non_shared' 8968 ;; 8969 8970 solaris*) 8971 lt_prog_compiler_pic='-KPIC' 8972 lt_prog_compiler_static='-Bstatic' 8973 case $cc_basename in 8974 f77* | f90* | f95*) 8975 lt_prog_compiler_wl='-Qoption ld ';; 8976 *) 8977 lt_prog_compiler_wl='-Wl,';; 8978 esac 8979 ;; 8980 8981 sunos4*) 8982 lt_prog_compiler_wl='-Qoption ld ' 8983 lt_prog_compiler_pic='-PIC' 8984 lt_prog_compiler_static='-Bstatic' 8985 ;; 8986 8987 sysv4 | sysv4.2uw2* | sysv4.3*) 8988 lt_prog_compiler_wl='-Wl,' 8989 lt_prog_compiler_pic='-KPIC' 8990 lt_prog_compiler_static='-Bstatic' 8991 ;; 8992 8993 sysv4*MP*) 8994 if test -d /usr/nec ;then 8995 lt_prog_compiler_pic='-Kconform_pic' 8996 lt_prog_compiler_static='-Bstatic' 8997 fi 8998 ;; 8999 9000 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9001 lt_prog_compiler_wl='-Wl,' 9002 lt_prog_compiler_pic='-KPIC' 9003 lt_prog_compiler_static='-Bstatic' 9004 ;; 9005 9006 unicos*) 9007 lt_prog_compiler_wl='-Wl,' 9008 lt_prog_compiler_can_build_shared=no 9009 ;; 9010 9011 uts4*) 9012 lt_prog_compiler_pic='-pic' 9013 lt_prog_compiler_static='-Bstatic' 9014 ;; 9015 9016 *) 9017 lt_prog_compiler_can_build_shared=no 9018 ;; 9019 esac 9020 fi 9021 9022case $host_os in 9023 # For platforms which do not support PIC, -DPIC is meaningless: 9024 *djgpp*) 9025 lt_prog_compiler_pic= 9026 ;; 9027 *) 9028 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9029 ;; 9030esac 9031{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 9032$as_echo "$lt_prog_compiler_pic" >&6; } 9033 9034 9035 9036 9037 9038 9039# 9040# Check to make sure the PIC flag actually works. 9041# 9042if test -n "$lt_prog_compiler_pic"; then 9043 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9044$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9045if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 9046 $as_echo_n "(cached) " >&6 9047else 9048 lt_cv_prog_compiler_pic_works=no 9049 ac_outfile=conftest.$ac_objext 9050 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9051 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9052 # Insert the option either (1) after the last *FLAGS variable, or 9053 # (2) before a word containing "conftest.", or (3) at the end. 9054 # Note that $ac_compile itself does not contain backslashes and begins 9055 # with a dollar sign (not a hyphen), so the echo should work correctly. 9056 # The option is referenced via a variable to avoid confusing sed. 9057 lt_compile=`echo "$ac_compile" | $SED \ 9058 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9059 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9060 -e 's:$: $lt_compiler_flag:'` 9061 (eval echo "\"\$as_me:9061: $lt_compile\"" >&5) 9062 (eval "$lt_compile" 2>conftest.err) 9063 ac_status=$? 9064 cat conftest.err >&5 9065 echo "$as_me:9065: \$? = $ac_status" >&5 9066 if (exit $ac_status) && test -s "$ac_outfile"; then 9067 # The compiler can only warn and ignore the option if not recognized 9068 # So say no if there are warnings other than the usual output. 9069 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9070 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9071 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9072 lt_cv_prog_compiler_pic_works=yes 9073 fi 9074 fi 9075 $RM conftest* 9076 9077fi 9078{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 9079$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9080 9081if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9082 case $lt_prog_compiler_pic in 9083 "" | " "*) ;; 9084 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9085 esac 9086else 9087 lt_prog_compiler_pic= 9088 lt_prog_compiler_can_build_shared=no 9089fi 9090 9091fi 9092 9093 9094 9095 9096 9097 9098# 9099# Check to make sure the static flag actually works. 9100# 9101wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9102{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9103$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9104if test "${lt_cv_prog_compiler_static_works+set}" = set; then 9105 $as_echo_n "(cached) " >&6 9106else 9107 lt_cv_prog_compiler_static_works=no 9108 save_LDFLAGS="$LDFLAGS" 9109 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9110 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9111 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9112 # The linker can only warn and ignore the option if not recognized 9113 # So say no if there are warnings 9114 if test -s conftest.err; then 9115 # Append any errors to the config.log. 9116 cat conftest.err 1>&5 9117 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 9118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9119 if diff conftest.exp conftest.er2 >/dev/null; then 9120 lt_cv_prog_compiler_static_works=yes 9121 fi 9122 else 9123 lt_cv_prog_compiler_static_works=yes 9124 fi 9125 fi 9126 $RM -r conftest* 9127 LDFLAGS="$save_LDFLAGS" 9128 9129fi 9130{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 9131$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9132 9133if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9134 : 9135else 9136 lt_prog_compiler_static= 9137fi 9138 9139 9140 9141 9142 9143 9144 9145 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 9146$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9147if test "${lt_cv_prog_compiler_c_o+set}" = set; then 9148 $as_echo_n "(cached) " >&6 9149else 9150 lt_cv_prog_compiler_c_o=no 9151 $RM -r conftest 2>/dev/null 9152 mkdir conftest 9153 cd conftest 9154 mkdir out 9155 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9156 9157 lt_compiler_flag="-o out/conftest2.$ac_objext" 9158 # Insert the option either (1) after the last *FLAGS variable, or 9159 # (2) before a word containing "conftest.", or (3) at the end. 9160 # Note that $ac_compile itself does not contain backslashes and begins 9161 # with a dollar sign (not a hyphen), so the echo should work correctly. 9162 lt_compile=`echo "$ac_compile" | $SED \ 9163 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9165 -e 's:$: $lt_compiler_flag:'` 9166 (eval echo "\"\$as_me:9166: $lt_compile\"" >&5) 9167 (eval "$lt_compile" 2>out/conftest.err) 9168 ac_status=$? 9169 cat out/conftest.err >&5 9170 echo "$as_me:9170: \$? = $ac_status" >&5 9171 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9172 then 9173 # The compiler can only warn and ignore the option if not recognized 9174 # So say no if there are warnings 9175 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9176 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9177 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9178 lt_cv_prog_compiler_c_o=yes 9179 fi 9180 fi 9181 chmod u+w . 2>&5 9182 $RM conftest* 9183 # SGI C++ compiler will create directory out/ii_files/ for 9184 # template instantiation 9185 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9186 $RM out/* && rmdir out 9187 cd .. 9188 $RM -r conftest 9189 $RM conftest* 9190 9191fi 9192{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 9193$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9194 9195 9196 9197 9198 9199 9200 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 9201$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9202if test "${lt_cv_prog_compiler_c_o+set}" = set; then 9203 $as_echo_n "(cached) " >&6 9204else 9205 lt_cv_prog_compiler_c_o=no 9206 $RM -r conftest 2>/dev/null 9207 mkdir conftest 9208 cd conftest 9209 mkdir out 9210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9211 9212 lt_compiler_flag="-o out/conftest2.$ac_objext" 9213 # Insert the option either (1) after the last *FLAGS variable, or 9214 # (2) before a word containing "conftest.", or (3) at the end. 9215 # Note that $ac_compile itself does not contain backslashes and begins 9216 # with a dollar sign (not a hyphen), so the echo should work correctly. 9217 lt_compile=`echo "$ac_compile" | $SED \ 9218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9220 -e 's:$: $lt_compiler_flag:'` 9221 (eval echo "\"\$as_me:9221: $lt_compile\"" >&5) 9222 (eval "$lt_compile" 2>out/conftest.err) 9223 ac_status=$? 9224 cat out/conftest.err >&5 9225 echo "$as_me:9225: \$? = $ac_status" >&5 9226 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9227 then 9228 # The compiler can only warn and ignore the option if not recognized 9229 # So say no if there are warnings 9230 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9231 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9232 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9233 lt_cv_prog_compiler_c_o=yes 9234 fi 9235 fi 9236 chmod u+w . 2>&5 9237 $RM conftest* 9238 # SGI C++ compiler will create directory out/ii_files/ for 9239 # template instantiation 9240 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9241 $RM out/* && rmdir out 9242 cd .. 9243 $RM -r conftest 9244 $RM conftest* 9245 9246fi 9247{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 9248$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9249 9250 9251 9252 9253hard_links="nottested" 9254if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9255 # do not overwrite the value of need_locks provided by the user 9256 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 9257$as_echo_n "checking if we can lock with hard links... " >&6; } 9258 hard_links=yes 9259 $RM conftest* 9260 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9261 touch conftest.a 9262 ln conftest.a conftest.b 2>&5 || hard_links=no 9263 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9264 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 9265$as_echo "$hard_links" >&6; } 9266 if test "$hard_links" = no; then 9267 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9268$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9269 need_locks=warn 9270 fi 9271else 9272 need_locks=no 9273fi 9274 9275 9276 9277 9278 9279 9280 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9281$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9282 9283 runpath_var= 9284 allow_undefined_flag= 9285 always_export_symbols=no 9286 archive_cmds= 9287 archive_expsym_cmds= 9288 compiler_needs_object=no 9289 enable_shared_with_static_runtimes=no 9290 export_dynamic_flag_spec= 9291 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9292 hardcode_automatic=no 9293 hardcode_direct=no 9294 hardcode_direct_absolute=no 9295 hardcode_libdir_flag_spec= 9296 hardcode_libdir_flag_spec_ld= 9297 hardcode_libdir_separator= 9298 hardcode_minus_L=no 9299 hardcode_shlibpath_var=unsupported 9300 inherit_rpath=no 9301 link_all_deplibs=unknown 9302 module_cmds= 9303 module_expsym_cmds= 9304 old_archive_from_new_cmds= 9305 old_archive_from_expsyms_cmds= 9306 thread_safe_flag_spec= 9307 whole_archive_flag_spec= 9308 # include_expsyms should be a list of space-separated symbols to be *always* 9309 # included in the symbol list 9310 include_expsyms= 9311 # exclude_expsyms can be an extended regexp of symbols to exclude 9312 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9313 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9314 # as well as any symbol that contains `d'. 9315 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9316 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9317 # platforms (ab)use it in PIC code, but their linkers get confused if 9318 # the symbol is explicitly referenced. Since portable code cannot 9319 # rely on this symbol name, it's probably fine to never include it in 9320 # preloaded symbol tables. 9321 # Exclude shared library initialization/finalization symbols. 9322 extract_expsyms_cmds= 9323 9324 case $host_os in 9325 cygwin* | mingw* | pw32* | cegcc*) 9326 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9327 # When not using gcc, we currently assume that we are using 9328 # Microsoft Visual C++. 9329 if test "$GCC" != yes; then 9330 with_gnu_ld=no 9331 fi 9332 ;; 9333 interix*) 9334 # we just hope/assume this is gcc and not c89 (= MSVC++) 9335 with_gnu_ld=yes 9336 ;; 9337 openbsd*) 9338 with_gnu_ld=no 9339 ;; 9340 esac 9341 9342 ld_shlibs=yes 9343 if test "$with_gnu_ld" = yes; then 9344 # If archive_cmds runs LD, not CC, wlarc should be empty 9345 wlarc='${wl}' 9346 9347 # Set some defaults for GNU ld with shared library support. These 9348 # are reset later if shared libraries are not supported. Putting them 9349 # here allows them to be overridden if necessary. 9350 runpath_var=LD_RUN_PATH 9351 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9352 export_dynamic_flag_spec='${wl}--export-dynamic' 9353 # ancient GNU ld didn't support --whole-archive et. al. 9354 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9355 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9356 else 9357 whole_archive_flag_spec= 9358 fi 9359 supports_anon_versioning=no 9360 case `$LD -v 2>&1` in 9361 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9362 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9363 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9364 *\ 2.11.*) ;; # other 2.11 versions 9365 *) supports_anon_versioning=yes ;; 9366 esac 9367 9368 # See if GNU ld supports shared libraries. 9369 case $host_os in 9370 aix[3-9]*) 9371 # On AIX/PPC, the GNU linker is very broken 9372 if test "$host_cpu" != ia64; then 9373 ld_shlibs=no 9374 cat <<_LT_EOF 1>&2 9375 9376*** Warning: the GNU linker, at least up to release 2.9.1, is reported 9377*** to be unable to reliably create shared libraries on AIX. 9378*** Therefore, libtool is disabling shared libraries support. If you 9379*** really care for shared libraries, you may want to modify your PATH 9380*** so that a non-GNU linker is found, and then restart. 9381 9382_LT_EOF 9383 fi 9384 ;; 9385 9386 amigaos*) 9387 case $host_cpu in 9388 powerpc) 9389 # see comment about AmigaOS4 .so support 9390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9391 archive_expsym_cmds='' 9392 ;; 9393 m68k) 9394 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)' 9395 hardcode_libdir_flag_spec='-L$libdir' 9396 hardcode_minus_L=yes 9397 ;; 9398 esac 9399 ;; 9400 9401 beos*) 9402 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9403 allow_undefined_flag=unsupported 9404 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9405 # support --undefined. This deserves some investigation. FIXME 9406 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9407 else 9408 ld_shlibs=no 9409 fi 9410 ;; 9411 9412 cygwin* | mingw* | pw32* | cegcc*) 9413 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9414 # as there is no search path for DLLs. 9415 hardcode_libdir_flag_spec='-L$libdir' 9416 allow_undefined_flag=unsupported 9417 always_export_symbols=no 9418 enable_shared_with_static_runtimes=yes 9419 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9420 9421 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9423 # If the export-symbols file already is a .def file (1st line 9424 # is EXPORTS), use it as is; otherwise, prepend... 9425 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9426 cp $export_symbols $output_objdir/$soname.def; 9427 else 9428 echo EXPORTS > $output_objdir/$soname.def; 9429 cat $export_symbols >> $output_objdir/$soname.def; 9430 fi~ 9431 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9432 else 9433 ld_shlibs=no 9434 fi 9435 ;; 9436 9437 interix[3-9]*) 9438 hardcode_direct=no 9439 hardcode_shlibpath_var=no 9440 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9441 export_dynamic_flag_spec='${wl}-E' 9442 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9443 # Instead, shared libraries are loaded at an image base (0x10000000 by 9444 # default) and relocated if they conflict, which is a slow very memory 9445 # consuming and fragmenting process. To avoid this, we pick a random, 9446 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9447 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9448 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9449 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' 9450 ;; 9451 9452 gnu* | linux* | tpf* | k*bsd*-gnu) 9453 tmp_diet=no 9454 if test "$host_os" = linux-dietlibc; then 9455 case $cc_basename in 9456 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9457 esac 9458 fi 9459 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9460 && test "$tmp_diet" = no 9461 then 9462 tmp_addflag= 9463 tmp_sharedflag='-shared' 9464 case $cc_basename,$host_cpu in 9465 pgcc*) # Portland Group C compiler 9466 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' 9467 tmp_addflag=' $pic_flag' 9468 ;; 9469 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9470 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' 9471 tmp_addflag=' $pic_flag -Mnomain' ;; 9472 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9473 tmp_addflag=' -i_dynamic' ;; 9474 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9475 tmp_addflag=' -i_dynamic -nofor_main' ;; 9476 ifc* | ifort*) # Intel Fortran compiler 9477 tmp_addflag=' -nofor_main' ;; 9478 lf95*) # Lahey Fortran 8.1 9479 whole_archive_flag_spec= 9480 tmp_sharedflag='--shared' ;; 9481 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9482 tmp_sharedflag='-qmkshrobj' 9483 tmp_addflag= ;; 9484 esac 9485 case `$CC -V 2>&1 | sed 5q` in 9486 *Sun\ C*) # Sun C 5.9 9487 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' 9488 compiler_needs_object=yes 9489 tmp_sharedflag='-G' ;; 9490 *Sun\ F*) # Sun Fortran 8.3 9491 tmp_sharedflag='-G' ;; 9492 esac 9493 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9494 9495 if test "x$supports_anon_versioning" = xyes; then 9496 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9497 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9498 echo "local: *; };" >> $output_objdir/$libname.ver~ 9499 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9500 fi 9501 9502 case $cc_basename in 9503 xlf*) 9504 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9505 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9506 hardcode_libdir_flag_spec= 9507 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9508 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9509 if test "x$supports_anon_versioning" = xyes; then 9510 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9511 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9512 echo "local: *; };" >> $output_objdir/$libname.ver~ 9513 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9514 fi 9515 ;; 9516 esac 9517 else 9518 ld_shlibs=no 9519 fi 9520 ;; 9521 9522 netbsd*) 9523 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9524 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9525 wlarc= 9526 else 9527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9528 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9529 fi 9530 ;; 9531 9532 solaris*) 9533 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9534 ld_shlibs=no 9535 cat <<_LT_EOF 1>&2 9536 9537*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9538*** create shared libraries on Solaris systems. Therefore, libtool 9539*** is disabling shared libraries support. We urge you to upgrade GNU 9540*** binutils to release 2.9.1 or newer. Another option is to modify 9541*** your PATH or compiler configuration so that the native linker is 9542*** used, and then restart. 9543 9544_LT_EOF 9545 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9546 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9547 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9548 else 9549 ld_shlibs=no 9550 fi 9551 ;; 9552 9553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9554 case `$LD -v 2>&1` in 9555 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9556 ld_shlibs=no 9557 cat <<_LT_EOF 1>&2 9558 9559*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9560*** reliably create shared libraries on SCO systems. Therefore, libtool 9561*** is disabling shared libraries support. We urge you to upgrade GNU 9562*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9563*** your PATH or compiler configuration so that the native linker is 9564*** used, and then restart. 9565 9566_LT_EOF 9567 ;; 9568 *) 9569 # For security reasons, it is highly recommended that you always 9570 # use absolute paths for naming shared libraries, and exclude the 9571 # DT_RUNPATH tag from executables and libraries. But doing so 9572 # requires that you compile everything twice, which is a pain. 9573 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9574 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9576 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9577 else 9578 ld_shlibs=no 9579 fi 9580 ;; 9581 esac 9582 ;; 9583 9584 sunos4*) 9585 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9586 wlarc= 9587 hardcode_direct=yes 9588 hardcode_shlibpath_var=no 9589 ;; 9590 9591 *) 9592 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9594 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9595 else 9596 ld_shlibs=no 9597 fi 9598 ;; 9599 esac 9600 9601 if test "$ld_shlibs" = no; then 9602 runpath_var= 9603 hardcode_libdir_flag_spec= 9604 export_dynamic_flag_spec= 9605 whole_archive_flag_spec= 9606 fi 9607 else 9608 # PORTME fill in a description of your system's linker (not GNU ld) 9609 case $host_os in 9610 aix3*) 9611 allow_undefined_flag=unsupported 9612 always_export_symbols=yes 9613 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' 9614 # Note: this linker hardcodes the directories in LIBPATH if there 9615 # are no directories specified by -L. 9616 hardcode_minus_L=yes 9617 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9618 # Neither direct hardcoding nor static linking is supported with a 9619 # broken collect2. 9620 hardcode_direct=unsupported 9621 fi 9622 ;; 9623 9624 aix[4-9]*) 9625 if test "$host_cpu" = ia64; then 9626 # On IA64, the linker does run time linking by default, so we don't 9627 # have to do anything special. 9628 aix_use_runtimelinking=no 9629 exp_sym_flag='-Bexport' 9630 no_entry_flag="" 9631 else 9632 # If we're using GNU nm, then we don't want the "-C" option. 9633 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9634 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9635 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' 9636 else 9637 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' 9638 fi 9639 aix_use_runtimelinking=no 9640 9641 # Test if we are trying to use run time linking or normal 9642 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9643 # need to do runtime linking. 9644 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9645 for ld_flag in $LDFLAGS; do 9646 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9647 aix_use_runtimelinking=yes 9648 break 9649 fi 9650 done 9651 ;; 9652 esac 9653 9654 exp_sym_flag='-bexport' 9655 no_entry_flag='-bnoentry' 9656 fi 9657 9658 # When large executables or shared objects are built, AIX ld can 9659 # have problems creating the table of contents. If linking a library 9660 # or program results in "error TOC overflow" add -mminimal-toc to 9661 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9662 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9663 9664 archive_cmds='' 9665 hardcode_direct=yes 9666 hardcode_direct_absolute=yes 9667 hardcode_libdir_separator=':' 9668 link_all_deplibs=yes 9669 file_list_spec='${wl}-f,' 9670 9671 if test "$GCC" = yes; then 9672 case $host_os in aix4.[012]|aix4.[012].*) 9673 # We only want to do this on AIX 4.2 and lower, the check 9674 # below for broken collect2 doesn't work under 4.3+ 9675 collect2name=`${CC} -print-prog-name=collect2` 9676 if test -f "$collect2name" && 9677 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9678 then 9679 # We have reworked collect2 9680 : 9681 else 9682 # We have old collect2 9683 hardcode_direct=unsupported 9684 # It fails to find uninstalled libraries when the uninstalled 9685 # path is not listed in the libpath. Setting hardcode_minus_L 9686 # to unsupported forces relinking 9687 hardcode_minus_L=yes 9688 hardcode_libdir_flag_spec='-L$libdir' 9689 hardcode_libdir_separator= 9690 fi 9691 ;; 9692 esac 9693 shared_flag='-shared' 9694 if test "$aix_use_runtimelinking" = yes; then 9695 shared_flag="$shared_flag "'${wl}-G' 9696 fi 9697 else 9698 # not using gcc 9699 if test "$host_cpu" = ia64; then 9700 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9701 # chokes on -Wl,-G. The following line is correct: 9702 shared_flag='-G' 9703 else 9704 if test "$aix_use_runtimelinking" = yes; then 9705 shared_flag='${wl}-G' 9706 else 9707 shared_flag='${wl}-bM:SRE' 9708 fi 9709 fi 9710 fi 9711 9712 export_dynamic_flag_spec='${wl}-bexpall' 9713 # It seems that -bexpall does not export symbols beginning with 9714 # underscore (_), so it is better to generate a list of symbols to export. 9715 always_export_symbols=yes 9716 if test "$aix_use_runtimelinking" = yes; then 9717 # Warning - without using the other runtime loading flags (-brtl), 9718 # -berok will link without error, but may produce a broken library. 9719 allow_undefined_flag='-berok' 9720 # Determine the default libpath from the value encoded in an 9721 # empty executable. 9722 cat >conftest.$ac_ext <<_ACEOF 9723/* confdefs.h. */ 9724_ACEOF 9725cat confdefs.h >>conftest.$ac_ext 9726cat >>conftest.$ac_ext <<_ACEOF 9727/* end confdefs.h. */ 9728 9729int 9730main () 9731{ 9732 9733 ; 9734 return 0; 9735} 9736_ACEOF 9737rm -f conftest.$ac_objext conftest$ac_exeext 9738if { (ac_try="$ac_link" 9739case "(($ac_try" in 9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9741 *) ac_try_echo=$ac_try;; 9742esac 9743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9744$as_echo "$ac_try_echo") >&5 9745 (eval "$ac_link") 2>conftest.er1 9746 ac_status=$? 9747 grep -v '^ *+' conftest.er1 >conftest.err 9748 rm -f conftest.er1 9749 cat conftest.err >&5 9750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9751 (exit $ac_status); } && { 9752 test -z "$ac_c_werror_flag" || 9753 test ! -s conftest.err 9754 } && test -s conftest$ac_exeext && { 9755 test "$cross_compiling" = yes || 9756 $as_test_x conftest$ac_exeext 9757 }; then 9758 9759lt_aix_libpath_sed=' 9760 /Import File Strings/,/^$/ { 9761 /^0/ { 9762 s/^0 *\(.*\)$/\1/ 9763 p 9764 } 9765 }' 9766aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9767# Check for a 64-bit object if we didn't find anything. 9768if test -z "$aix_libpath"; then 9769 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9770fi 9771else 9772 $as_echo "$as_me: failed program was:" >&5 9773sed 's/^/| /' conftest.$ac_ext >&5 9774 9775 9776fi 9777 9778rm -rf conftest.dSYM 9779rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9780 conftest$ac_exeext conftest.$ac_ext 9781if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9782 9783 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9784 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" 9785 else 9786 if test "$host_cpu" = ia64; then 9787 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9788 allow_undefined_flag="-z nodefs" 9789 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" 9790 else 9791 # Determine the default libpath from the value encoded in an 9792 # empty executable. 9793 cat >conftest.$ac_ext <<_ACEOF 9794/* confdefs.h. */ 9795_ACEOF 9796cat confdefs.h >>conftest.$ac_ext 9797cat >>conftest.$ac_ext <<_ACEOF 9798/* end confdefs.h. */ 9799 9800int 9801main () 9802{ 9803 9804 ; 9805 return 0; 9806} 9807_ACEOF 9808rm -f conftest.$ac_objext conftest$ac_exeext 9809if { (ac_try="$ac_link" 9810case "(($ac_try" in 9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9812 *) ac_try_echo=$ac_try;; 9813esac 9814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9815$as_echo "$ac_try_echo") >&5 9816 (eval "$ac_link") 2>conftest.er1 9817 ac_status=$? 9818 grep -v '^ *+' conftest.er1 >conftest.err 9819 rm -f conftest.er1 9820 cat conftest.err >&5 9821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9822 (exit $ac_status); } && { 9823 test -z "$ac_c_werror_flag" || 9824 test ! -s conftest.err 9825 } && test -s conftest$ac_exeext && { 9826 test "$cross_compiling" = yes || 9827 $as_test_x conftest$ac_exeext 9828 }; then 9829 9830lt_aix_libpath_sed=' 9831 /Import File Strings/,/^$/ { 9832 /^0/ { 9833 s/^0 *\(.*\)$/\1/ 9834 p 9835 } 9836 }' 9837aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9838# Check for a 64-bit object if we didn't find anything. 9839if test -z "$aix_libpath"; then 9840 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9841fi 9842else 9843 $as_echo "$as_me: failed program was:" >&5 9844sed 's/^/| /' conftest.$ac_ext >&5 9845 9846 9847fi 9848 9849rm -rf conftest.dSYM 9850rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9851 conftest$ac_exeext conftest.$ac_ext 9852if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9853 9854 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9855 # Warning - without using the other run time loading flags, 9856 # -berok will link without error, but may produce a broken library. 9857 no_undefined_flag=' ${wl}-bernotok' 9858 allow_undefined_flag=' ${wl}-berok' 9859 # Exported symbols can be pulled into shared objects from archives 9860 whole_archive_flag_spec='$convenience' 9861 archive_cmds_need_lc=yes 9862 # This is similar to how AIX traditionally builds its shared libraries. 9863 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' 9864 fi 9865 fi 9866 ;; 9867 9868 amigaos*) 9869 case $host_cpu in 9870 powerpc) 9871 # see comment about AmigaOS4 .so support 9872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9873 archive_expsym_cmds='' 9874 ;; 9875 m68k) 9876 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)' 9877 hardcode_libdir_flag_spec='-L$libdir' 9878 hardcode_minus_L=yes 9879 ;; 9880 esac 9881 ;; 9882 9883 bsdi[45]*) 9884 export_dynamic_flag_spec=-rdynamic 9885 ;; 9886 9887 cygwin* | mingw* | pw32* | cegcc*) 9888 # When not using gcc, we currently assume that we are using 9889 # Microsoft Visual C++. 9890 # hardcode_libdir_flag_spec is actually meaningless, as there is 9891 # no search path for DLLs. 9892 hardcode_libdir_flag_spec=' ' 9893 allow_undefined_flag=unsupported 9894 # Tell ltmain to make .lib files, not .a files. 9895 libext=lib 9896 # Tell ltmain to make .dll files, not .so files. 9897 shrext_cmds=".dll" 9898 # FIXME: Setting linknames here is a bad hack. 9899 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9900 # The linker will automatically build a .lib file if we build a DLL. 9901 old_archive_from_new_cmds='true' 9902 # FIXME: Should let the user specify the lib program. 9903 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9904 fix_srcfile_path='`cygpath -w "$srcfile"`' 9905 enable_shared_with_static_runtimes=yes 9906 ;; 9907 9908 darwin* | rhapsody*) 9909 9910 9911 archive_cmds_need_lc=no 9912 hardcode_direct=no 9913 hardcode_automatic=yes 9914 hardcode_shlibpath_var=unsupported 9915 whole_archive_flag_spec='' 9916 link_all_deplibs=yes 9917 allow_undefined_flag="$_lt_dar_allow_undefined" 9918 case $cc_basename in 9919 ifort*) _lt_dar_can_shared=yes ;; 9920 *) _lt_dar_can_shared=$GCC ;; 9921 esac 9922 if test "$_lt_dar_can_shared" = "yes"; then 9923 output_verbose_link_cmd=echo 9924 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9925 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9926 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}" 9927 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}" 9928 9929 else 9930 ld_shlibs=no 9931 fi 9932 9933 ;; 9934 9935 dgux*) 9936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9937 hardcode_libdir_flag_spec='-L$libdir' 9938 hardcode_shlibpath_var=no 9939 ;; 9940 9941 freebsd1*) 9942 ld_shlibs=no 9943 ;; 9944 9945 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9946 # support. Future versions do this automatically, but an explicit c++rt0.o 9947 # does not break anything, and helps significantly (at the cost of a little 9948 # extra space). 9949 freebsd2.2*) 9950 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9951 hardcode_libdir_flag_spec='-R$libdir' 9952 hardcode_direct=yes 9953 hardcode_shlibpath_var=no 9954 ;; 9955 9956 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9957 freebsd2*) 9958 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9959 hardcode_direct=yes 9960 hardcode_minus_L=yes 9961 hardcode_shlibpath_var=no 9962 ;; 9963 9964 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9965 freebsd* | dragonfly*) 9966 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9967 hardcode_libdir_flag_spec='-R$libdir' 9968 hardcode_direct=yes 9969 hardcode_shlibpath_var=no 9970 ;; 9971 9972 hpux9*) 9973 if test "$GCC" = yes; then 9974 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' 9975 else 9976 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' 9977 fi 9978 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9979 hardcode_libdir_separator=: 9980 hardcode_direct=yes 9981 9982 # hardcode_minus_L: Not really in the search PATH, 9983 # but as the default location of the library. 9984 hardcode_minus_L=yes 9985 export_dynamic_flag_spec='${wl}-E' 9986 ;; 9987 9988 hpux10*) 9989 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9990 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9991 else 9992 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9993 fi 9994 if test "$with_gnu_ld" = no; then 9995 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9996 hardcode_libdir_flag_spec_ld='+b $libdir' 9997 hardcode_libdir_separator=: 9998 hardcode_direct=yes 9999 hardcode_direct_absolute=yes 10000 export_dynamic_flag_spec='${wl}-E' 10001 # hardcode_minus_L: Not really in the search PATH, 10002 # but as the default location of the library. 10003 hardcode_minus_L=yes 10004 fi 10005 ;; 10006 10007 hpux11*) 10008 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 10009 case $host_cpu in 10010 hppa*64*) 10011 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10012 ;; 10013 ia64*) 10014 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10015 ;; 10016 *) 10017 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10018 ;; 10019 esac 10020 else 10021 case $host_cpu in 10022 hppa*64*) 10023 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10024 ;; 10025 ia64*) 10026 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10027 ;; 10028 *) 10029 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10030 ;; 10031 esac 10032 fi 10033 if test "$with_gnu_ld" = no; then 10034 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10035 hardcode_libdir_separator=: 10036 10037 case $host_cpu in 10038 hppa*64*|ia64*) 10039 hardcode_direct=no 10040 hardcode_shlibpath_var=no 10041 ;; 10042 *) 10043 hardcode_direct=yes 10044 hardcode_direct_absolute=yes 10045 export_dynamic_flag_spec='${wl}-E' 10046 10047 # hardcode_minus_L: Not really in the search PATH, 10048 # but as the default location of the library. 10049 hardcode_minus_L=yes 10050 ;; 10051 esac 10052 fi 10053 ;; 10054 10055 irix5* | irix6* | nonstopux*) 10056 if test "$GCC" = yes; then 10057 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' 10058 # Try to use the -exported_symbol ld option, if it does not 10059 # work, assume that -exports_file does not work either and 10060 # implicitly export all symbols. 10061 save_LDFLAGS="$LDFLAGS" 10062 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10063 cat >conftest.$ac_ext <<_ACEOF 10064int foo(void) {} 10065_ACEOF 10066rm -f conftest.$ac_objext conftest$ac_exeext 10067if { (ac_try="$ac_link" 10068case "(($ac_try" in 10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10070 *) ac_try_echo=$ac_try;; 10071esac 10072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10073$as_echo "$ac_try_echo") >&5 10074 (eval "$ac_link") 2>conftest.er1 10075 ac_status=$? 10076 grep -v '^ *+' conftest.er1 >conftest.err 10077 rm -f conftest.er1 10078 cat conftest.err >&5 10079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10080 (exit $ac_status); } && { 10081 test -z "$ac_c_werror_flag" || 10082 test ! -s conftest.err 10083 } && test -s conftest$ac_exeext && { 10084 test "$cross_compiling" = yes || 10085 $as_test_x conftest$ac_exeext 10086 }; then 10087 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' 10088 10089else 10090 $as_echo "$as_me: failed program was:" >&5 10091sed 's/^/| /' conftest.$ac_ext >&5 10092 10093 10094fi 10095 10096rm -rf conftest.dSYM 10097rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10098 conftest$ac_exeext conftest.$ac_ext 10099 LDFLAGS="$save_LDFLAGS" 10100 else 10101 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' 10102 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' 10103 fi 10104 archive_cmds_need_lc='no' 10105 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10106 hardcode_libdir_separator=: 10107 inherit_rpath=yes 10108 link_all_deplibs=yes 10109 ;; 10110 10111 netbsd*) 10112 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10113 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10114 else 10115 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10116 fi 10117 hardcode_libdir_flag_spec='-R$libdir' 10118 hardcode_direct=yes 10119 hardcode_shlibpath_var=no 10120 ;; 10121 10122 newsos6) 10123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10124 hardcode_direct=yes 10125 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10126 hardcode_libdir_separator=: 10127 hardcode_shlibpath_var=no 10128 ;; 10129 10130 *nto* | *qnx*) 10131 ;; 10132 10133 openbsd*) 10134 if test -f /usr/libexec/ld.so; then 10135 hardcode_direct=yes 10136 hardcode_shlibpath_var=no 10137 hardcode_direct_absolute=yes 10138 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10139 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10140 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10141 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10142 export_dynamic_flag_spec='${wl}-E' 10143 else 10144 case $host_os in 10145 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10146 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10147 hardcode_libdir_flag_spec='-R$libdir' 10148 ;; 10149 *) 10150 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10151 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10152 ;; 10153 esac 10154 fi 10155 else 10156 ld_shlibs=no 10157 fi 10158 ;; 10159 10160 os2*) 10161 hardcode_libdir_flag_spec='-L$libdir' 10162 hardcode_minus_L=yes 10163 allow_undefined_flag=unsupported 10164 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' 10165 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10166 ;; 10167 10168 osf3*) 10169 if test "$GCC" = yes; then 10170 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10171 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' 10172 else 10173 allow_undefined_flag=' -expect_unresolved \*' 10174 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' 10175 fi 10176 archive_cmds_need_lc='no' 10177 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10178 hardcode_libdir_separator=: 10179 ;; 10180 10181 osf4* | osf5*) # as osf3* with the addition of -msym flag 10182 if test "$GCC" = yes; then 10183 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10184 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' 10185 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10186 else 10187 allow_undefined_flag=' -expect_unresolved \*' 10188 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' 10189 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~ 10190 $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' 10191 10192 # Both c and cxx compiler support -rpath directly 10193 hardcode_libdir_flag_spec='-rpath $libdir' 10194 fi 10195 archive_cmds_need_lc='no' 10196 hardcode_libdir_separator=: 10197 ;; 10198 10199 solaris*) 10200 no_undefined_flag=' -z defs' 10201 if test "$GCC" = yes; then 10202 wlarc='${wl}' 10203 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10204 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10205 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10206 else 10207 case `$CC -V 2>&1` in 10208 *"Compilers 5.0"*) 10209 wlarc='' 10210 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10211 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10212 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10213 ;; 10214 *) 10215 wlarc='${wl}' 10216 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10217 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10218 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10219 ;; 10220 esac 10221 fi 10222 hardcode_libdir_flag_spec='-R$libdir' 10223 hardcode_shlibpath_var=no 10224 case $host_os in 10225 solaris2.[0-5] | solaris2.[0-5].*) ;; 10226 *) 10227 # The compiler driver will combine and reorder linker options, 10228 # but understands `-z linker_flag'. GCC discards it without `$wl', 10229 # but is careful enough not to reorder. 10230 # Supported since Solaris 2.6 (maybe 2.5.1?) 10231 if test "$GCC" = yes; then 10232 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10233 else 10234 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10235 fi 10236 ;; 10237 esac 10238 link_all_deplibs=yes 10239 ;; 10240 10241 sunos4*) 10242 if test "x$host_vendor" = xsequent; then 10243 # Use $CC to link under sequent, because it throws in some extra .o 10244 # files that make .init and .fini sections work. 10245 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10246 else 10247 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10248 fi 10249 hardcode_libdir_flag_spec='-L$libdir' 10250 hardcode_direct=yes 10251 hardcode_minus_L=yes 10252 hardcode_shlibpath_var=no 10253 ;; 10254 10255 sysv4) 10256 case $host_vendor in 10257 sni) 10258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10259 hardcode_direct=yes # is this really true??? 10260 ;; 10261 siemens) 10262 ## LD is ld it makes a PLAMLIB 10263 ## CC just makes a GrossModule. 10264 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10265 reload_cmds='$CC -r -o $output$reload_objs' 10266 hardcode_direct=no 10267 ;; 10268 motorola) 10269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10270 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10271 ;; 10272 esac 10273 runpath_var='LD_RUN_PATH' 10274 hardcode_shlibpath_var=no 10275 ;; 10276 10277 sysv4.3*) 10278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10279 hardcode_shlibpath_var=no 10280 export_dynamic_flag_spec='-Bexport' 10281 ;; 10282 10283 sysv4*MP*) 10284 if test -d /usr/nec; then 10285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10286 hardcode_shlibpath_var=no 10287 runpath_var=LD_RUN_PATH 10288 hardcode_runpath_var=yes 10289 ld_shlibs=yes 10290 fi 10291 ;; 10292 10293 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10294 no_undefined_flag='${wl}-z,text' 10295 archive_cmds_need_lc=no 10296 hardcode_shlibpath_var=no 10297 runpath_var='LD_RUN_PATH' 10298 10299 if test "$GCC" = yes; then 10300 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10301 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10302 else 10303 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10304 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10305 fi 10306 ;; 10307 10308 sysv5* | sco3.2v5* | sco5v6*) 10309 # Note: We can NOT use -z defs as we might desire, because we do not 10310 # link with -lc, and that would cause any symbols used from libc to 10311 # always be unresolved, which means just about no library would 10312 # ever link correctly. If we're not using GNU ld we use -z text 10313 # though, which does catch some bad symbols but isn't as heavy-handed 10314 # as -z defs. 10315 no_undefined_flag='${wl}-z,text' 10316 allow_undefined_flag='${wl}-z,nodefs' 10317 archive_cmds_need_lc=no 10318 hardcode_shlibpath_var=no 10319 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10320 hardcode_libdir_separator=':' 10321 link_all_deplibs=yes 10322 export_dynamic_flag_spec='${wl}-Bexport' 10323 runpath_var='LD_RUN_PATH' 10324 10325 if test "$GCC" = yes; then 10326 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10327 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10328 else 10329 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10330 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10331 fi 10332 ;; 10333 10334 uts4*) 10335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10336 hardcode_libdir_flag_spec='-L$libdir' 10337 hardcode_shlibpath_var=no 10338 ;; 10339 10340 *) 10341 ld_shlibs=no 10342 ;; 10343 esac 10344 10345 if test x$host_vendor = xsni; then 10346 case $host in 10347 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10348 export_dynamic_flag_spec='${wl}-Blargedynsym' 10349 ;; 10350 esac 10351 fi 10352 fi 10353 10354{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 10355$as_echo "$ld_shlibs" >&6; } 10356test "$ld_shlibs" = no && can_build_shared=no 10357 10358with_gnu_ld=$with_gnu_ld 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374# 10375# Do we need to explicitly link libc? 10376# 10377case "x$archive_cmds_need_lc" in 10378x|xyes) 10379 # Assume -lc should be added 10380 archive_cmds_need_lc=yes 10381 10382 if test "$enable_shared" = yes && test "$GCC" = yes; then 10383 case $archive_cmds in 10384 *'~'*) 10385 # FIXME: we may have to deal with multi-command sequences. 10386 ;; 10387 '$CC '*) 10388 # Test whether the compiler implicitly links with -lc since on some 10389 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10390 # to ld, don't add -lc before -lgcc. 10391 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 10392$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10393 $RM conftest* 10394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10395 10396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10397 (eval $ac_compile) 2>&5 10398 ac_status=$? 10399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10400 (exit $ac_status); } 2>conftest.err; then 10401 soname=conftest 10402 lib=conftest 10403 libobjs=conftest.$ac_objext 10404 deplibs= 10405 wl=$lt_prog_compiler_wl 10406 pic_flag=$lt_prog_compiler_pic 10407 compiler_flags=-v 10408 linker_flags=-v 10409 verstring= 10410 output_objdir=. 10411 libname=conftest 10412 lt_save_allow_undefined_flag=$allow_undefined_flag 10413 allow_undefined_flag= 10414 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 10415 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10416 ac_status=$? 10417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10418 (exit $ac_status); } 10419 then 10420 archive_cmds_need_lc=no 10421 else 10422 archive_cmds_need_lc=yes 10423 fi 10424 allow_undefined_flag=$lt_save_allow_undefined_flag 10425 else 10426 cat conftest.err 1>&5 10427 fi 10428 $RM conftest* 10429 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 10430$as_echo "$archive_cmds_need_lc" >&6; } 10431 ;; 10432 esac 10433 fi 10434 ;; 10435esac 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10594$as_echo_n "checking dynamic linker characteristics... " >&6; } 10595 10596if test "$GCC" = yes; then 10597 case $host_os in 10598 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10599 *) lt_awk_arg="/^libraries:/" ;; 10600 esac 10601 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10602 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10603 # if the path contains ";" then we assume it to be the separator 10604 # otherwise default to the standard path separator (i.e. ":") - it is 10605 # assumed that no part of a normal pathname contains ";" but that should 10606 # okay in the real world where ";" in dirpaths is itself problematic. 10607 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10608 else 10609 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10610 fi 10611 # Ok, now we have the path, separated by spaces, we can step through it 10612 # and add multilib dir if necessary. 10613 lt_tmp_lt_search_path_spec= 10614 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10615 for lt_sys_path in $lt_search_path_spec; do 10616 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10617 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10618 else 10619 test -d "$lt_sys_path" && \ 10620 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10621 fi 10622 done 10623 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10624BEGIN {RS=" "; FS="/|\n";} { 10625 lt_foo=""; 10626 lt_count=0; 10627 for (lt_i = NF; lt_i > 0; lt_i--) { 10628 if ($lt_i != "" && $lt_i != ".") { 10629 if ($lt_i == "..") { 10630 lt_count++; 10631 } else { 10632 if (lt_count == 0) { 10633 lt_foo="/" $lt_i lt_foo; 10634 } else { 10635 lt_count--; 10636 } 10637 } 10638 } 10639 } 10640 if (lt_foo != "") { lt_freq[lt_foo]++; } 10641 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10642}'` 10643 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10644else 10645 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10646fi 10647library_names_spec= 10648libname_spec='lib$name' 10649soname_spec= 10650shrext_cmds=".so" 10651postinstall_cmds= 10652postuninstall_cmds= 10653finish_cmds= 10654finish_eval= 10655shlibpath_var= 10656shlibpath_overrides_runpath=unknown 10657version_type=none 10658dynamic_linker="$host_os ld.so" 10659sys_lib_dlsearch_path_spec="/lib /usr/lib" 10660need_lib_prefix=unknown 10661hardcode_into_libs=no 10662 10663# when you set need_version to no, make sure it does not cause -set_version 10664# flags to be left without arguments 10665need_version=unknown 10666 10667case $host_os in 10668aix3*) 10669 version_type=linux 10670 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10671 shlibpath_var=LIBPATH 10672 10673 # AIX 3 has no versioning support, so we append a major version to the name. 10674 soname_spec='${libname}${release}${shared_ext}$major' 10675 ;; 10676 10677aix[4-9]*) 10678 version_type=linux 10679 need_lib_prefix=no 10680 need_version=no 10681 hardcode_into_libs=yes 10682 if test "$host_cpu" = ia64; then 10683 # AIX 5 supports IA64 10684 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10685 shlibpath_var=LD_LIBRARY_PATH 10686 else 10687 # With GCC up to 2.95.x, collect2 would create an import file 10688 # for dependence libraries. The import file would start with 10689 # the line `#! .'. This would cause the generated library to 10690 # depend on `.', always an invalid library. This was fixed in 10691 # development snapshots of GCC prior to 3.0. 10692 case $host_os in 10693 aix4 | aix4.[01] | aix4.[01].*) 10694 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10695 echo ' yes ' 10696 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10697 : 10698 else 10699 can_build_shared=no 10700 fi 10701 ;; 10702 esac 10703 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10704 # soname into executable. Probably we can add versioning support to 10705 # collect2, so additional links can be useful in future. 10706 if test "$aix_use_runtimelinking" = yes; then 10707 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10708 # instead of lib<name>.a to let people know that these are not 10709 # typical AIX shared libraries. 10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10711 else 10712 # We preserve .a as extension for shared libraries through AIX4.2 10713 # and later when we are not doing run time linking. 10714 library_names_spec='${libname}${release}.a $libname.a' 10715 soname_spec='${libname}${release}${shared_ext}$major' 10716 fi 10717 shlibpath_var=LIBPATH 10718 fi 10719 ;; 10720 10721amigaos*) 10722 case $host_cpu in 10723 powerpc) 10724 # Since July 2007 AmigaOS4 officially supports .so libraries. 10725 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10727 ;; 10728 m68k) 10729 library_names_spec='$libname.ixlibrary $libname.a' 10730 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10731 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' 10732 ;; 10733 esac 10734 ;; 10735 10736beos*) 10737 library_names_spec='${libname}${shared_ext}' 10738 dynamic_linker="$host_os ld.so" 10739 shlibpath_var=LIBRARY_PATH 10740 ;; 10741 10742bsdi[45]*) 10743 version_type=linux 10744 need_version=no 10745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10746 soname_spec='${libname}${release}${shared_ext}$major' 10747 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10748 shlibpath_var=LD_LIBRARY_PATH 10749 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10750 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10751 # the default ld.so.conf also contains /usr/contrib/lib and 10752 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10753 # libtool to hard-code these into programs 10754 ;; 10755 10756cygwin* | mingw* | pw32* | cegcc*) 10757 version_type=windows 10758 shrext_cmds=".dll" 10759 need_version=no 10760 need_lib_prefix=no 10761 10762 case $GCC,$host_os in 10763 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10764 library_names_spec='$libname.dll.a' 10765 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10766 postinstall_cmds='base_file=`basename \${file}`~ 10767 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10768 dldir=$destdir/`dirname \$dlpath`~ 10769 test -d \$dldir || mkdir -p \$dldir~ 10770 $install_prog $dir/$dlname \$dldir/$dlname~ 10771 chmod a+x \$dldir/$dlname~ 10772 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10773 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10774 fi' 10775 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10776 dlpath=$dir/\$dldll~ 10777 $RM \$dlpath' 10778 shlibpath_overrides_runpath=yes 10779 10780 case $host_os in 10781 cygwin*) 10782 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10783 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10784 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10785 ;; 10786 mingw* | cegcc*) 10787 # MinGW DLLs use traditional 'lib' prefix 10788 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10789 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10790 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10791 # It is most probably a Windows format PATH printed by 10792 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10793 # path with ; separators, and with drive letters. We can handle the 10794 # drive letters (cygwin fileutils understands them), so leave them, 10795 # especially as we might pass files found there to a mingw objdump, 10796 # which wouldn't understand a cygwinified path. Ahh. 10797 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10798 else 10799 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10800 fi 10801 ;; 10802 pw32*) 10803 # pw32 DLLs use 'pw' prefix rather than 'lib' 10804 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10805 ;; 10806 esac 10807 ;; 10808 10809 *) 10810 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10811 ;; 10812 esac 10813 dynamic_linker='Win32 ld.exe' 10814 # FIXME: first we should search . and the directory the executable is in 10815 shlibpath_var=PATH 10816 ;; 10817 10818darwin* | rhapsody*) 10819 dynamic_linker="$host_os dyld" 10820 version_type=darwin 10821 need_lib_prefix=no 10822 need_version=no 10823 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10824 soname_spec='${libname}${release}${major}$shared_ext' 10825 shlibpath_overrides_runpath=yes 10826 shlibpath_var=DYLD_LIBRARY_PATH 10827 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10828 10829 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10830 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10831 ;; 10832 10833dgux*) 10834 version_type=linux 10835 need_lib_prefix=no 10836 need_version=no 10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10838 soname_spec='${libname}${release}${shared_ext}$major' 10839 shlibpath_var=LD_LIBRARY_PATH 10840 ;; 10841 10842freebsd1*) 10843 dynamic_linker=no 10844 ;; 10845 10846freebsd* | dragonfly*) 10847 # DragonFly does not have aout. When/if they implement a new 10848 # versioning mechanism, adjust this. 10849 if test -x /usr/bin/objformat; then 10850 objformat=`/usr/bin/objformat` 10851 else 10852 case $host_os in 10853 freebsd[123]*) objformat=aout ;; 10854 *) objformat=elf ;; 10855 esac 10856 fi 10857 version_type=freebsd-$objformat 10858 case $version_type in 10859 freebsd-elf*) 10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10861 need_version=no 10862 need_lib_prefix=no 10863 ;; 10864 freebsd-*) 10865 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10866 need_version=yes 10867 ;; 10868 esac 10869 shlibpath_var=LD_LIBRARY_PATH 10870 case $host_os in 10871 freebsd2*) 10872 shlibpath_overrides_runpath=yes 10873 ;; 10874 freebsd3.[01]* | freebsdelf3.[01]*) 10875 shlibpath_overrides_runpath=yes 10876 hardcode_into_libs=yes 10877 ;; 10878 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10879 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10880 shlibpath_overrides_runpath=no 10881 hardcode_into_libs=yes 10882 ;; 10883 *) # from 4.6 on, and DragonFly 10884 shlibpath_overrides_runpath=yes 10885 hardcode_into_libs=yes 10886 ;; 10887 esac 10888 ;; 10889 10890gnu*) 10891 version_type=linux 10892 need_lib_prefix=no 10893 need_version=no 10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10895 soname_spec='${libname}${release}${shared_ext}$major' 10896 shlibpath_var=LD_LIBRARY_PATH 10897 hardcode_into_libs=yes 10898 ;; 10899 10900hpux9* | hpux10* | hpux11*) 10901 # Give a soname corresponding to the major version so that dld.sl refuses to 10902 # link against other versions. 10903 version_type=sunos 10904 need_lib_prefix=no 10905 need_version=no 10906 case $host_cpu in 10907 ia64*) 10908 shrext_cmds='.so' 10909 hardcode_into_libs=yes 10910 dynamic_linker="$host_os dld.so" 10911 shlibpath_var=LD_LIBRARY_PATH 10912 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10914 soname_spec='${libname}${release}${shared_ext}$major' 10915 if test "X$HPUX_IA64_MODE" = X32; then 10916 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10917 else 10918 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10919 fi 10920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10921 ;; 10922 hppa*64*) 10923 shrext_cmds='.sl' 10924 hardcode_into_libs=yes 10925 dynamic_linker="$host_os dld.sl" 10926 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10927 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10929 soname_spec='${libname}${release}${shared_ext}$major' 10930 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10931 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10932 ;; 10933 *) 10934 shrext_cmds='.sl' 10935 dynamic_linker="$host_os dld.sl" 10936 shlibpath_var=SHLIB_PATH 10937 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10939 soname_spec='${libname}${release}${shared_ext}$major' 10940 ;; 10941 esac 10942 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10943 postinstall_cmds='chmod 555 $lib' 10944 ;; 10945 10946interix[3-9]*) 10947 version_type=linux 10948 need_lib_prefix=no 10949 need_version=no 10950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10951 soname_spec='${libname}${release}${shared_ext}$major' 10952 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10953 shlibpath_var=LD_LIBRARY_PATH 10954 shlibpath_overrides_runpath=no 10955 hardcode_into_libs=yes 10956 ;; 10957 10958irix5* | irix6* | nonstopux*) 10959 case $host_os in 10960 nonstopux*) version_type=nonstopux ;; 10961 *) 10962 if test "$lt_cv_prog_gnu_ld" = yes; then 10963 version_type=linux 10964 else 10965 version_type=irix 10966 fi ;; 10967 esac 10968 need_lib_prefix=no 10969 need_version=no 10970 soname_spec='${libname}${release}${shared_ext}$major' 10971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10972 case $host_os in 10973 irix5* | nonstopux*) 10974 libsuff= shlibsuff= 10975 ;; 10976 *) 10977 case $LD in # libtool.m4 will add one of these switches to LD 10978 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10979 libsuff= shlibsuff= libmagic=32-bit;; 10980 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10981 libsuff=32 shlibsuff=N32 libmagic=N32;; 10982 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10983 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10984 *) libsuff= shlibsuff= libmagic=never-match;; 10985 esac 10986 ;; 10987 esac 10988 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10989 shlibpath_overrides_runpath=no 10990 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10991 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10992 hardcode_into_libs=yes 10993 ;; 10994 10995# No shared lib support for Linux oldld, aout, or coff. 10996linux*oldld* | linux*aout* | linux*coff*) 10997 dynamic_linker=no 10998 ;; 10999 11000# This must be Linux ELF. 11001linux* | k*bsd*-gnu) 11002 version_type=linux 11003 need_lib_prefix=no 11004 need_version=no 11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11006 soname_spec='${libname}${release}${shared_ext}$major' 11007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11008 shlibpath_var=LD_LIBRARY_PATH 11009 shlibpath_overrides_runpath=no 11010 # Some binutils ld are patched to set DT_RUNPATH 11011 save_LDFLAGS=$LDFLAGS 11012 save_libdir=$libdir 11013 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11014 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11015 cat >conftest.$ac_ext <<_ACEOF 11016/* confdefs.h. */ 11017_ACEOF 11018cat confdefs.h >>conftest.$ac_ext 11019cat >>conftest.$ac_ext <<_ACEOF 11020/* end confdefs.h. */ 11021 11022int 11023main () 11024{ 11025 11026 ; 11027 return 0; 11028} 11029_ACEOF 11030rm -f conftest.$ac_objext conftest$ac_exeext 11031if { (ac_try="$ac_link" 11032case "(($ac_try" in 11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11034 *) ac_try_echo=$ac_try;; 11035esac 11036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11037$as_echo "$ac_try_echo") >&5 11038 (eval "$ac_link") 2>conftest.er1 11039 ac_status=$? 11040 grep -v '^ *+' conftest.er1 >conftest.err 11041 rm -f conftest.er1 11042 cat conftest.err >&5 11043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11044 (exit $ac_status); } && { 11045 test -z "$ac_c_werror_flag" || 11046 test ! -s conftest.err 11047 } && test -s conftest$ac_exeext && { 11048 test "$cross_compiling" = yes || 11049 $as_test_x conftest$ac_exeext 11050 }; then 11051 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 11052 shlibpath_overrides_runpath=yes 11053fi 11054 11055else 11056 $as_echo "$as_me: failed program was:" >&5 11057sed 's/^/| /' conftest.$ac_ext >&5 11058 11059 11060fi 11061 11062rm -rf conftest.dSYM 11063rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11064 conftest$ac_exeext conftest.$ac_ext 11065 LDFLAGS=$save_LDFLAGS 11066 libdir=$save_libdir 11067 11068 # This implies no fast_install, which is unacceptable. 11069 # Some rework will be needed to allow for fast_install 11070 # before this can be enabled. 11071 hardcode_into_libs=yes 11072 11073 # Add ABI-specific directories to the system library path. 11074 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11075 11076 # Append ld.so.conf contents to the search path 11077 if test -f /etc/ld.so.conf; then 11078 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' ' '` 11079 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11080 fi 11081 11082 # We used to test for /lib/ld.so.1 and disable shared libraries on 11083 # powerpc, because MkLinux only supported shared libraries with the 11084 # GNU dynamic linker. Since this was broken with cross compilers, 11085 # most powerpc-linux boxes support dynamic linking these days and 11086 # people can always --disable-shared, the test was removed, and we 11087 # assume the GNU/Linux dynamic linker is in use. 11088 dynamic_linker='GNU/Linux ld.so' 11089 ;; 11090 11091netbsd*) 11092 version_type=sunos 11093 need_lib_prefix=no 11094 need_version=no 11095 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11097 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11098 dynamic_linker='NetBSD (a.out) ld.so' 11099 else 11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11101 soname_spec='${libname}${release}${shared_ext}$major' 11102 dynamic_linker='NetBSD ld.elf_so' 11103 fi 11104 shlibpath_var=LD_LIBRARY_PATH 11105 shlibpath_overrides_runpath=yes 11106 hardcode_into_libs=yes 11107 ;; 11108 11109newsos6) 11110 version_type=linux 11111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11112 shlibpath_var=LD_LIBRARY_PATH 11113 shlibpath_overrides_runpath=yes 11114 ;; 11115 11116*nto* | *qnx*) 11117 version_type=qnx 11118 need_lib_prefix=no 11119 need_version=no 11120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11121 soname_spec='${libname}${release}${shared_ext}$major' 11122 shlibpath_var=LD_LIBRARY_PATH 11123 shlibpath_overrides_runpath=no 11124 hardcode_into_libs=yes 11125 dynamic_linker='ldqnx.so' 11126 ;; 11127 11128openbsd*) 11129 version_type=sunos 11130 sys_lib_dlsearch_path_spec="/usr/lib" 11131 need_lib_prefix=no 11132 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11133 case $host_os in 11134 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11135 *) need_version=no ;; 11136 esac 11137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11139 shlibpath_var=LD_LIBRARY_PATH 11140 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11141 case $host_os in 11142 openbsd2.[89] | openbsd2.[89].*) 11143 shlibpath_overrides_runpath=no 11144 ;; 11145 *) 11146 shlibpath_overrides_runpath=yes 11147 ;; 11148 esac 11149 else 11150 shlibpath_overrides_runpath=yes 11151 fi 11152 ;; 11153 11154os2*) 11155 libname_spec='$name' 11156 shrext_cmds=".dll" 11157 need_lib_prefix=no 11158 library_names_spec='$libname${shared_ext} $libname.a' 11159 dynamic_linker='OS/2 ld.exe' 11160 shlibpath_var=LIBPATH 11161 ;; 11162 11163osf3* | osf4* | osf5*) 11164 version_type=osf 11165 need_lib_prefix=no 11166 need_version=no 11167 soname_spec='${libname}${release}${shared_ext}$major' 11168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11169 shlibpath_var=LD_LIBRARY_PATH 11170 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11171 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11172 ;; 11173 11174rdos*) 11175 dynamic_linker=no 11176 ;; 11177 11178solaris*) 11179 version_type=linux 11180 need_lib_prefix=no 11181 need_version=no 11182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11183 soname_spec='${libname}${release}${shared_ext}$major' 11184 shlibpath_var=LD_LIBRARY_PATH 11185 shlibpath_overrides_runpath=yes 11186 hardcode_into_libs=yes 11187 # ldd complains unless libraries are executable 11188 postinstall_cmds='chmod +x $lib' 11189 ;; 11190 11191sunos4*) 11192 version_type=sunos 11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11194 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11195 shlibpath_var=LD_LIBRARY_PATH 11196 shlibpath_overrides_runpath=yes 11197 if test "$with_gnu_ld" = yes; then 11198 need_lib_prefix=no 11199 fi 11200 need_version=yes 11201 ;; 11202 11203sysv4 | sysv4.3*) 11204 version_type=linux 11205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11206 soname_spec='${libname}${release}${shared_ext}$major' 11207 shlibpath_var=LD_LIBRARY_PATH 11208 case $host_vendor in 11209 sni) 11210 shlibpath_overrides_runpath=no 11211 need_lib_prefix=no 11212 runpath_var=LD_RUN_PATH 11213 ;; 11214 siemens) 11215 need_lib_prefix=no 11216 ;; 11217 motorola) 11218 need_lib_prefix=no 11219 need_version=no 11220 shlibpath_overrides_runpath=no 11221 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11222 ;; 11223 esac 11224 ;; 11225 11226sysv4*MP*) 11227 if test -d /usr/nec ;then 11228 version_type=linux 11229 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11230 soname_spec='$libname${shared_ext}.$major' 11231 shlibpath_var=LD_LIBRARY_PATH 11232 fi 11233 ;; 11234 11235sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11236 version_type=freebsd-elf 11237 need_lib_prefix=no 11238 need_version=no 11239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11240 soname_spec='${libname}${release}${shared_ext}$major' 11241 shlibpath_var=LD_LIBRARY_PATH 11242 shlibpath_overrides_runpath=yes 11243 hardcode_into_libs=yes 11244 if test "$with_gnu_ld" = yes; then 11245 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11246 else 11247 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11248 case $host_os in 11249 sco3.2v5*) 11250 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11251 ;; 11252 esac 11253 fi 11254 sys_lib_dlsearch_path_spec='/usr/lib' 11255 ;; 11256 11257tpf*) 11258 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11259 version_type=linux 11260 need_lib_prefix=no 11261 need_version=no 11262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11263 shlibpath_var=LD_LIBRARY_PATH 11264 shlibpath_overrides_runpath=no 11265 hardcode_into_libs=yes 11266 ;; 11267 11268uts4*) 11269 version_type=linux 11270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11271 soname_spec='${libname}${release}${shared_ext}$major' 11272 shlibpath_var=LD_LIBRARY_PATH 11273 ;; 11274 11275*) 11276 dynamic_linker=no 11277 ;; 11278esac 11279{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11280$as_echo "$dynamic_linker" >&6; } 11281test "$dynamic_linker" = no && can_build_shared=no 11282 11283variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11284if test "$GCC" = yes; then 11285 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11286fi 11287 11288if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11289 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11290fi 11291if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11292 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11293fi 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 11382$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11383hardcode_action= 11384if test -n "$hardcode_libdir_flag_spec" || 11385 test -n "$runpath_var" || 11386 test "X$hardcode_automatic" = "Xyes" ; then 11387 11388 # We can hardcode non-existent directories. 11389 if test "$hardcode_direct" != no && 11390 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11391 # have to relink, otherwise we might link with an installed library 11392 # when we should be linking with a yet-to-be-installed one 11393 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11394 test "$hardcode_minus_L" != no; then 11395 # Linking always hardcodes the temporary library directory. 11396 hardcode_action=relink 11397 else 11398 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11399 hardcode_action=immediate 11400 fi 11401else 11402 # We cannot hardcode anything, or else we can only hardcode existing 11403 # directories. 11404 hardcode_action=unsupported 11405fi 11406{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 11407$as_echo "$hardcode_action" >&6; } 11408 11409if test "$hardcode_action" = relink || 11410 test "$inherit_rpath" = yes; then 11411 # Fast installation is not supported 11412 enable_fast_install=no 11413elif test "$shlibpath_overrides_runpath" = yes || 11414 test "$enable_shared" = no; then 11415 # Fast installation is not necessary 11416 enable_fast_install=needless 11417fi 11418 11419 11420 11421 11422 11423 11424 if test "x$enable_dlopen" != xyes; then 11425 enable_dlopen=unknown 11426 enable_dlopen_self=unknown 11427 enable_dlopen_self_static=unknown 11428else 11429 lt_cv_dlopen=no 11430 lt_cv_dlopen_libs= 11431 11432 case $host_os in 11433 beos*) 11434 lt_cv_dlopen="load_add_on" 11435 lt_cv_dlopen_libs= 11436 lt_cv_dlopen_self=yes 11437 ;; 11438 11439 mingw* | pw32* | cegcc*) 11440 lt_cv_dlopen="LoadLibrary" 11441 lt_cv_dlopen_libs= 11442 ;; 11443 11444 cygwin*) 11445 lt_cv_dlopen="dlopen" 11446 lt_cv_dlopen_libs= 11447 ;; 11448 11449 darwin*) 11450 # if libdl is installed we need to link against it 11451 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11452$as_echo_n "checking for dlopen in -ldl... " >&6; } 11453if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11454 $as_echo_n "(cached) " >&6 11455else 11456 ac_check_lib_save_LIBS=$LIBS 11457LIBS="-ldl $LIBS" 11458cat >conftest.$ac_ext <<_ACEOF 11459/* confdefs.h. */ 11460_ACEOF 11461cat confdefs.h >>conftest.$ac_ext 11462cat >>conftest.$ac_ext <<_ACEOF 11463/* end confdefs.h. */ 11464 11465/* Override any GCC internal prototype to avoid an error. 11466 Use char because int might match the return type of a GCC 11467 builtin and then its argument prototype would still apply. */ 11468#ifdef __cplusplus 11469extern "C" 11470#endif 11471char dlopen (); 11472int 11473main () 11474{ 11475return dlopen (); 11476 ; 11477 return 0; 11478} 11479_ACEOF 11480rm -f conftest.$ac_objext conftest$ac_exeext 11481if { (ac_try="$ac_link" 11482case "(($ac_try" in 11483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11484 *) ac_try_echo=$ac_try;; 11485esac 11486eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11487$as_echo "$ac_try_echo") >&5 11488 (eval "$ac_link") 2>conftest.er1 11489 ac_status=$? 11490 grep -v '^ *+' conftest.er1 >conftest.err 11491 rm -f conftest.er1 11492 cat conftest.err >&5 11493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11494 (exit $ac_status); } && { 11495 test -z "$ac_c_werror_flag" || 11496 test ! -s conftest.err 11497 } && test -s conftest$ac_exeext && { 11498 test "$cross_compiling" = yes || 11499 $as_test_x conftest$ac_exeext 11500 }; then 11501 ac_cv_lib_dl_dlopen=yes 11502else 11503 $as_echo "$as_me: failed program was:" >&5 11504sed 's/^/| /' conftest.$ac_ext >&5 11505 11506 ac_cv_lib_dl_dlopen=no 11507fi 11508 11509rm -rf conftest.dSYM 11510rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11511 conftest$ac_exeext conftest.$ac_ext 11512LIBS=$ac_check_lib_save_LIBS 11513fi 11514{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11515$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11516if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 11517 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11518else 11519 11520 lt_cv_dlopen="dyld" 11521 lt_cv_dlopen_libs= 11522 lt_cv_dlopen_self=yes 11523 11524fi 11525 11526 ;; 11527 11528 *) 11529 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 11530$as_echo_n "checking for shl_load... " >&6; } 11531if test "${ac_cv_func_shl_load+set}" = set; then 11532 $as_echo_n "(cached) " >&6 11533else 11534 cat >conftest.$ac_ext <<_ACEOF 11535/* confdefs.h. */ 11536_ACEOF 11537cat confdefs.h >>conftest.$ac_ext 11538cat >>conftest.$ac_ext <<_ACEOF 11539/* end confdefs.h. */ 11540/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11541 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11542#define shl_load innocuous_shl_load 11543 11544/* System header to define __stub macros and hopefully few prototypes, 11545 which can conflict with char shl_load (); below. 11546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11547 <limits.h> exists even on freestanding compilers. */ 11548 11549#ifdef __STDC__ 11550# include <limits.h> 11551#else 11552# include <assert.h> 11553#endif 11554 11555#undef shl_load 11556 11557/* Override any GCC internal prototype to avoid an error. 11558 Use char because int might match the return type of a GCC 11559 builtin and then its argument prototype would still apply. */ 11560#ifdef __cplusplus 11561extern "C" 11562#endif 11563char shl_load (); 11564/* The GNU C library defines this for functions which it implements 11565 to always fail with ENOSYS. Some functions are actually named 11566 something starting with __ and the normal name is an alias. */ 11567#if defined __stub_shl_load || defined __stub___shl_load 11568choke me 11569#endif 11570 11571int 11572main () 11573{ 11574return shl_load (); 11575 ; 11576 return 0; 11577} 11578_ACEOF 11579rm -f conftest.$ac_objext conftest$ac_exeext 11580if { (ac_try="$ac_link" 11581case "(($ac_try" in 11582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11583 *) ac_try_echo=$ac_try;; 11584esac 11585eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11586$as_echo "$ac_try_echo") >&5 11587 (eval "$ac_link") 2>conftest.er1 11588 ac_status=$? 11589 grep -v '^ *+' conftest.er1 >conftest.err 11590 rm -f conftest.er1 11591 cat conftest.err >&5 11592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11593 (exit $ac_status); } && { 11594 test -z "$ac_c_werror_flag" || 11595 test ! -s conftest.err 11596 } && test -s conftest$ac_exeext && { 11597 test "$cross_compiling" = yes || 11598 $as_test_x conftest$ac_exeext 11599 }; then 11600 ac_cv_func_shl_load=yes 11601else 11602 $as_echo "$as_me: failed program was:" >&5 11603sed 's/^/| /' conftest.$ac_ext >&5 11604 11605 ac_cv_func_shl_load=no 11606fi 11607 11608rm -rf conftest.dSYM 11609rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11610 conftest$ac_exeext conftest.$ac_ext 11611fi 11612{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11613$as_echo "$ac_cv_func_shl_load" >&6; } 11614if test "x$ac_cv_func_shl_load" = x""yes; then 11615 lt_cv_dlopen="shl_load" 11616else 11617 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11618$as_echo_n "checking for shl_load in -ldld... " >&6; } 11619if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11620 $as_echo_n "(cached) " >&6 11621else 11622 ac_check_lib_save_LIBS=$LIBS 11623LIBS="-ldld $LIBS" 11624cat >conftest.$ac_ext <<_ACEOF 11625/* confdefs.h. */ 11626_ACEOF 11627cat confdefs.h >>conftest.$ac_ext 11628cat >>conftest.$ac_ext <<_ACEOF 11629/* end confdefs.h. */ 11630 11631/* Override any GCC internal prototype to avoid an error. 11632 Use char because int might match the return type of a GCC 11633 builtin and then its argument prototype would still apply. */ 11634#ifdef __cplusplus 11635extern "C" 11636#endif 11637char shl_load (); 11638int 11639main () 11640{ 11641return shl_load (); 11642 ; 11643 return 0; 11644} 11645_ACEOF 11646rm -f conftest.$ac_objext conftest$ac_exeext 11647if { (ac_try="$ac_link" 11648case "(($ac_try" in 11649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11650 *) ac_try_echo=$ac_try;; 11651esac 11652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11653$as_echo "$ac_try_echo") >&5 11654 (eval "$ac_link") 2>conftest.er1 11655 ac_status=$? 11656 grep -v '^ *+' conftest.er1 >conftest.err 11657 rm -f conftest.er1 11658 cat conftest.err >&5 11659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11660 (exit $ac_status); } && { 11661 test -z "$ac_c_werror_flag" || 11662 test ! -s conftest.err 11663 } && test -s conftest$ac_exeext && { 11664 test "$cross_compiling" = yes || 11665 $as_test_x conftest$ac_exeext 11666 }; then 11667 ac_cv_lib_dld_shl_load=yes 11668else 11669 $as_echo "$as_me: failed program was:" >&5 11670sed 's/^/| /' conftest.$ac_ext >&5 11671 11672 ac_cv_lib_dld_shl_load=no 11673fi 11674 11675rm -rf conftest.dSYM 11676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11677 conftest$ac_exeext conftest.$ac_ext 11678LIBS=$ac_check_lib_save_LIBS 11679fi 11680{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11681$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11682if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 11683 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11684else 11685 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 11686$as_echo_n "checking for dlopen... " >&6; } 11687if test "${ac_cv_func_dlopen+set}" = set; then 11688 $as_echo_n "(cached) " >&6 11689else 11690 cat >conftest.$ac_ext <<_ACEOF 11691/* confdefs.h. */ 11692_ACEOF 11693cat confdefs.h >>conftest.$ac_ext 11694cat >>conftest.$ac_ext <<_ACEOF 11695/* end confdefs.h. */ 11696/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11697 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11698#define dlopen innocuous_dlopen 11699 11700/* System header to define __stub macros and hopefully few prototypes, 11701 which can conflict with char dlopen (); below. 11702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11703 <limits.h> exists even on freestanding compilers. */ 11704 11705#ifdef __STDC__ 11706# include <limits.h> 11707#else 11708# include <assert.h> 11709#endif 11710 11711#undef dlopen 11712 11713/* Override any GCC internal prototype to avoid an error. 11714 Use char because int might match the return type of a GCC 11715 builtin and then its argument prototype would still apply. */ 11716#ifdef __cplusplus 11717extern "C" 11718#endif 11719char dlopen (); 11720/* The GNU C library defines this for functions which it implements 11721 to always fail with ENOSYS. Some functions are actually named 11722 something starting with __ and the normal name is an alias. */ 11723#if defined __stub_dlopen || defined __stub___dlopen 11724choke me 11725#endif 11726 11727int 11728main () 11729{ 11730return dlopen (); 11731 ; 11732 return 0; 11733} 11734_ACEOF 11735rm -f conftest.$ac_objext conftest$ac_exeext 11736if { (ac_try="$ac_link" 11737case "(($ac_try" in 11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11739 *) ac_try_echo=$ac_try;; 11740esac 11741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11742$as_echo "$ac_try_echo") >&5 11743 (eval "$ac_link") 2>conftest.er1 11744 ac_status=$? 11745 grep -v '^ *+' conftest.er1 >conftest.err 11746 rm -f conftest.er1 11747 cat conftest.err >&5 11748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11749 (exit $ac_status); } && { 11750 test -z "$ac_c_werror_flag" || 11751 test ! -s conftest.err 11752 } && test -s conftest$ac_exeext && { 11753 test "$cross_compiling" = yes || 11754 $as_test_x conftest$ac_exeext 11755 }; then 11756 ac_cv_func_dlopen=yes 11757else 11758 $as_echo "$as_me: failed program was:" >&5 11759sed 's/^/| /' conftest.$ac_ext >&5 11760 11761 ac_cv_func_dlopen=no 11762fi 11763 11764rm -rf conftest.dSYM 11765rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11766 conftest$ac_exeext conftest.$ac_ext 11767fi 11768{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11769$as_echo "$ac_cv_func_dlopen" >&6; } 11770if test "x$ac_cv_func_dlopen" = x""yes; then 11771 lt_cv_dlopen="dlopen" 11772else 11773 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11774$as_echo_n "checking for dlopen in -ldl... " >&6; } 11775if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11776 $as_echo_n "(cached) " >&6 11777else 11778 ac_check_lib_save_LIBS=$LIBS 11779LIBS="-ldl $LIBS" 11780cat >conftest.$ac_ext <<_ACEOF 11781/* confdefs.h. */ 11782_ACEOF 11783cat confdefs.h >>conftest.$ac_ext 11784cat >>conftest.$ac_ext <<_ACEOF 11785/* end confdefs.h. */ 11786 11787/* Override any GCC internal prototype to avoid an error. 11788 Use char because int might match the return type of a GCC 11789 builtin and then its argument prototype would still apply. */ 11790#ifdef __cplusplus 11791extern "C" 11792#endif 11793char dlopen (); 11794int 11795main () 11796{ 11797return dlopen (); 11798 ; 11799 return 0; 11800} 11801_ACEOF 11802rm -f conftest.$ac_objext conftest$ac_exeext 11803if { (ac_try="$ac_link" 11804case "(($ac_try" in 11805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11806 *) ac_try_echo=$ac_try;; 11807esac 11808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11809$as_echo "$ac_try_echo") >&5 11810 (eval "$ac_link") 2>conftest.er1 11811 ac_status=$? 11812 grep -v '^ *+' conftest.er1 >conftest.err 11813 rm -f conftest.er1 11814 cat conftest.err >&5 11815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11816 (exit $ac_status); } && { 11817 test -z "$ac_c_werror_flag" || 11818 test ! -s conftest.err 11819 } && test -s conftest$ac_exeext && { 11820 test "$cross_compiling" = yes || 11821 $as_test_x conftest$ac_exeext 11822 }; then 11823 ac_cv_lib_dl_dlopen=yes 11824else 11825 $as_echo "$as_me: failed program was:" >&5 11826sed 's/^/| /' conftest.$ac_ext >&5 11827 11828 ac_cv_lib_dl_dlopen=no 11829fi 11830 11831rm -rf conftest.dSYM 11832rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11833 conftest$ac_exeext conftest.$ac_ext 11834LIBS=$ac_check_lib_save_LIBS 11835fi 11836{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11837$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11838if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 11839 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11840else 11841 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11842$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11843if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11844 $as_echo_n "(cached) " >&6 11845else 11846 ac_check_lib_save_LIBS=$LIBS 11847LIBS="-lsvld $LIBS" 11848cat >conftest.$ac_ext <<_ACEOF 11849/* confdefs.h. */ 11850_ACEOF 11851cat confdefs.h >>conftest.$ac_ext 11852cat >>conftest.$ac_ext <<_ACEOF 11853/* end confdefs.h. */ 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 dlopen (); 11862int 11863main () 11864{ 11865return dlopen (); 11866 ; 11867 return 0; 11868} 11869_ACEOF 11870rm -f conftest.$ac_objext conftest$ac_exeext 11871if { (ac_try="$ac_link" 11872case "(($ac_try" in 11873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11874 *) ac_try_echo=$ac_try;; 11875esac 11876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11877$as_echo "$ac_try_echo") >&5 11878 (eval "$ac_link") 2>conftest.er1 11879 ac_status=$? 11880 grep -v '^ *+' conftest.er1 >conftest.err 11881 rm -f conftest.er1 11882 cat conftest.err >&5 11883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11884 (exit $ac_status); } && { 11885 test -z "$ac_c_werror_flag" || 11886 test ! -s conftest.err 11887 } && test -s conftest$ac_exeext && { 11888 test "$cross_compiling" = yes || 11889 $as_test_x conftest$ac_exeext 11890 }; then 11891 ac_cv_lib_svld_dlopen=yes 11892else 11893 $as_echo "$as_me: failed program was:" >&5 11894sed 's/^/| /' conftest.$ac_ext >&5 11895 11896 ac_cv_lib_svld_dlopen=no 11897fi 11898 11899rm -rf conftest.dSYM 11900rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11901 conftest$ac_exeext conftest.$ac_ext 11902LIBS=$ac_check_lib_save_LIBS 11903fi 11904{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11905$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11906if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 11907 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11908else 11909 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11910$as_echo_n "checking for dld_link in -ldld... " >&6; } 11911if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11912 $as_echo_n "(cached) " >&6 11913else 11914 ac_check_lib_save_LIBS=$LIBS 11915LIBS="-ldld $LIBS" 11916cat >conftest.$ac_ext <<_ACEOF 11917/* confdefs.h. */ 11918_ACEOF 11919cat confdefs.h >>conftest.$ac_ext 11920cat >>conftest.$ac_ext <<_ACEOF 11921/* end confdefs.h. */ 11922 11923/* Override any GCC internal prototype to avoid an error. 11924 Use char because int might match the return type of a GCC 11925 builtin and then its argument prototype would still apply. */ 11926#ifdef __cplusplus 11927extern "C" 11928#endif 11929char dld_link (); 11930int 11931main () 11932{ 11933return dld_link (); 11934 ; 11935 return 0; 11936} 11937_ACEOF 11938rm -f conftest.$ac_objext conftest$ac_exeext 11939if { (ac_try="$ac_link" 11940case "(($ac_try" in 11941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11942 *) ac_try_echo=$ac_try;; 11943esac 11944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11945$as_echo "$ac_try_echo") >&5 11946 (eval "$ac_link") 2>conftest.er1 11947 ac_status=$? 11948 grep -v '^ *+' conftest.er1 >conftest.err 11949 rm -f conftest.er1 11950 cat conftest.err >&5 11951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11952 (exit $ac_status); } && { 11953 test -z "$ac_c_werror_flag" || 11954 test ! -s conftest.err 11955 } && test -s conftest$ac_exeext && { 11956 test "$cross_compiling" = yes || 11957 $as_test_x conftest$ac_exeext 11958 }; then 11959 ac_cv_lib_dld_dld_link=yes 11960else 11961 $as_echo "$as_me: failed program was:" >&5 11962sed 's/^/| /' conftest.$ac_ext >&5 11963 11964 ac_cv_lib_dld_dld_link=no 11965fi 11966 11967rm -rf conftest.dSYM 11968rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11969 conftest$ac_exeext conftest.$ac_ext 11970LIBS=$ac_check_lib_save_LIBS 11971fi 11972{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11973$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11974if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 11975 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11976fi 11977 11978 11979fi 11980 11981 11982fi 11983 11984 11985fi 11986 11987 11988fi 11989 11990 11991fi 11992 11993 ;; 11994 esac 11995 11996 if test "x$lt_cv_dlopen" != xno; then 11997 enable_dlopen=yes 11998 else 11999 enable_dlopen=no 12000 fi 12001 12002 case $lt_cv_dlopen in 12003 dlopen) 12004 save_CPPFLAGS="$CPPFLAGS" 12005 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12006 12007 save_LDFLAGS="$LDFLAGS" 12008 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12009 12010 save_LIBS="$LIBS" 12011 LIBS="$lt_cv_dlopen_libs $LIBS" 12012 12013 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12014$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12015if test "${lt_cv_dlopen_self+set}" = set; then 12016 $as_echo_n "(cached) " >&6 12017else 12018 if test "$cross_compiling" = yes; then : 12019 lt_cv_dlopen_self=cross 12020else 12021 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12022 lt_status=$lt_dlunknown 12023 cat > conftest.$ac_ext <<_LT_EOF 12024#line 12024 "configure" 12025#include "confdefs.h" 12026 12027#if HAVE_DLFCN_H 12028#include <dlfcn.h> 12029#endif 12030 12031#include <stdio.h> 12032 12033#ifdef RTLD_GLOBAL 12034# define LT_DLGLOBAL RTLD_GLOBAL 12035#else 12036# ifdef DL_GLOBAL 12037# define LT_DLGLOBAL DL_GLOBAL 12038# else 12039# define LT_DLGLOBAL 0 12040# endif 12041#endif 12042 12043/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12044 find out it does not work in some platform. */ 12045#ifndef LT_DLLAZY_OR_NOW 12046# ifdef RTLD_LAZY 12047# define LT_DLLAZY_OR_NOW RTLD_LAZY 12048# else 12049# ifdef DL_LAZY 12050# define LT_DLLAZY_OR_NOW DL_LAZY 12051# else 12052# ifdef RTLD_NOW 12053# define LT_DLLAZY_OR_NOW RTLD_NOW 12054# else 12055# ifdef DL_NOW 12056# define LT_DLLAZY_OR_NOW DL_NOW 12057# else 12058# define LT_DLLAZY_OR_NOW 0 12059# endif 12060# endif 12061# endif 12062# endif 12063#endif 12064 12065void fnord() { int i=42;} 12066int main () 12067{ 12068 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12069 int status = $lt_dlunknown; 12070 12071 if (self) 12072 { 12073 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12074 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12075 /* dlclose (self); */ 12076 } 12077 else 12078 puts (dlerror ()); 12079 12080 return status; 12081} 12082_LT_EOF 12083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12084 (eval $ac_link) 2>&5 12085 ac_status=$? 12086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12087 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12088 (./conftest; exit; ) >&5 2>/dev/null 12089 lt_status=$? 12090 case x$lt_status in 12091 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12092 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12093 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12094 esac 12095 else : 12096 # compilation failed 12097 lt_cv_dlopen_self=no 12098 fi 12099fi 12100rm -fr conftest* 12101 12102 12103fi 12104{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12105$as_echo "$lt_cv_dlopen_self" >&6; } 12106 12107 if test "x$lt_cv_dlopen_self" = xyes; then 12108 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12109 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12110$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12111if test "${lt_cv_dlopen_self_static+set}" = set; then 12112 $as_echo_n "(cached) " >&6 12113else 12114 if test "$cross_compiling" = yes; then : 12115 lt_cv_dlopen_self_static=cross 12116else 12117 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12118 lt_status=$lt_dlunknown 12119 cat > conftest.$ac_ext <<_LT_EOF 12120#line 12120 "configure" 12121#include "confdefs.h" 12122 12123#if HAVE_DLFCN_H 12124#include <dlfcn.h> 12125#endif 12126 12127#include <stdio.h> 12128 12129#ifdef RTLD_GLOBAL 12130# define LT_DLGLOBAL RTLD_GLOBAL 12131#else 12132# ifdef DL_GLOBAL 12133# define LT_DLGLOBAL DL_GLOBAL 12134# else 12135# define LT_DLGLOBAL 0 12136# endif 12137#endif 12138 12139/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12140 find out it does not work in some platform. */ 12141#ifndef LT_DLLAZY_OR_NOW 12142# ifdef RTLD_LAZY 12143# define LT_DLLAZY_OR_NOW RTLD_LAZY 12144# else 12145# ifdef DL_LAZY 12146# define LT_DLLAZY_OR_NOW DL_LAZY 12147# else 12148# ifdef RTLD_NOW 12149# define LT_DLLAZY_OR_NOW RTLD_NOW 12150# else 12151# ifdef DL_NOW 12152# define LT_DLLAZY_OR_NOW DL_NOW 12153# else 12154# define LT_DLLAZY_OR_NOW 0 12155# endif 12156# endif 12157# endif 12158# endif 12159#endif 12160 12161void fnord() { int i=42;} 12162int main () 12163{ 12164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12165 int status = $lt_dlunknown; 12166 12167 if (self) 12168 { 12169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12170 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12171 /* dlclose (self); */ 12172 } 12173 else 12174 puts (dlerror ()); 12175 12176 return status; 12177} 12178_LT_EOF 12179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12180 (eval $ac_link) 2>&5 12181 ac_status=$? 12182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12183 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12184 (./conftest; exit; ) >&5 2>/dev/null 12185 lt_status=$? 12186 case x$lt_status in 12187 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12188 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12189 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12190 esac 12191 else : 12192 # compilation failed 12193 lt_cv_dlopen_self_static=no 12194 fi 12195fi 12196rm -fr conftest* 12197 12198 12199fi 12200{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 12201$as_echo "$lt_cv_dlopen_self_static" >&6; } 12202 fi 12203 12204 CPPFLAGS="$save_CPPFLAGS" 12205 LDFLAGS="$save_LDFLAGS" 12206 LIBS="$save_LIBS" 12207 ;; 12208 esac 12209 12210 case $lt_cv_dlopen_self in 12211 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12212 *) enable_dlopen_self=unknown ;; 12213 esac 12214 12215 case $lt_cv_dlopen_self_static in 12216 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12217 *) enable_dlopen_self_static=unknown ;; 12218 esac 12219fi 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237striplib= 12238old_striplib= 12239{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 12240$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12241if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12242 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12243 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12244 { $as_echo "$as_me:$LINENO: result: yes" >&5 12245$as_echo "yes" >&6; } 12246else 12247# FIXME - insert some real tests, host_os isn't really good enough 12248 case $host_os in 12249 darwin*) 12250 if test -n "$STRIP" ; then 12251 striplib="$STRIP -x" 12252 old_striplib="$STRIP -S" 12253 { $as_echo "$as_me:$LINENO: result: yes" >&5 12254$as_echo "yes" >&6; } 12255 else 12256 { $as_echo "$as_me:$LINENO: result: no" >&5 12257$as_echo "no" >&6; } 12258 fi 12259 ;; 12260 *) 12261 { $as_echo "$as_me:$LINENO: result: no" >&5 12262$as_echo "no" >&6; } 12263 ;; 12264 esac 12265fi 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 # Report which library types will actually be built 12279 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12280$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12281 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 12282$as_echo "$can_build_shared" >&6; } 12283 12284 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12285$as_echo_n "checking whether to build shared libraries... " >&6; } 12286 test "$can_build_shared" = "no" && enable_shared=no 12287 12288 # On AIX, shared libraries and static libraries use the same namespace, and 12289 # are all built from PIC. 12290 case $host_os in 12291 aix3*) 12292 test "$enable_shared" = yes && enable_static=no 12293 if test -n "$RANLIB"; then 12294 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12295 postinstall_cmds='$RANLIB $lib' 12296 fi 12297 ;; 12298 12299 aix[4-9]*) 12300 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12301 test "$enable_shared" = yes && enable_static=no 12302 fi 12303 ;; 12304 esac 12305 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 12306$as_echo "$enable_shared" >&6; } 12307 12308 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 12309$as_echo_n "checking whether to build static libraries... " >&6; } 12310 # Make sure either enable_shared or enable_static is yes. 12311 test "$enable_shared" = yes || enable_static=yes 12312 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 12313$as_echo "$enable_static" >&6; } 12314 12315 12316 12317 12318fi 12319ac_ext=c 12320ac_cpp='$CPP $CPPFLAGS' 12321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12323ac_compiler_gnu=$ac_cv_c_compiler_gnu 12324 12325CC="$lt_save_CC" 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 ac_config_commands="$ac_config_commands libtool" 12340 12341 12342 12343 12344# Only expand once: 12345 12346 12347 12348# Checks for programs. 12349if test "x$CC" != xcc; then 12350 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 12351$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 12352else 12353 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 12354$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 12355fi 12356set dummy $CC; ac_cc=`$as_echo "$2" | 12357 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 12358if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then 12359 $as_echo_n "(cached) " >&6 12360else 12361 cat >conftest.$ac_ext <<_ACEOF 12362/* confdefs.h. */ 12363_ACEOF 12364cat confdefs.h >>conftest.$ac_ext 12365cat >>conftest.$ac_ext <<_ACEOF 12366/* end confdefs.h. */ 12367 12368int 12369main () 12370{ 12371 12372 ; 12373 return 0; 12374} 12375_ACEOF 12376# Make sure it works both with $CC and with simple cc. 12377# We do the test twice because some compilers refuse to overwrite an 12378# existing .o file with -o, though they will create one. 12379ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 12380rm -f conftest2.* 12381if { (case "(($ac_try" in 12382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12383 *) ac_try_echo=$ac_try;; 12384esac 12385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12386$as_echo "$ac_try_echo") >&5 12387 (eval "$ac_try") 2>&5 12388 ac_status=$? 12389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12390 (exit $ac_status); } && 12391 test -f conftest2.$ac_objext && { (case "(($ac_try" in 12392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12393 *) ac_try_echo=$ac_try;; 12394esac 12395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12396$as_echo "$ac_try_echo") >&5 12397 (eval "$ac_try") 2>&5 12398 ac_status=$? 12399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12400 (exit $ac_status); }; 12401then 12402 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 12403 if test "x$CC" != xcc; then 12404 # Test first that cc exists at all. 12405 if { ac_try='cc -c conftest.$ac_ext >&5' 12406 { (case "(($ac_try" in 12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12408 *) ac_try_echo=$ac_try;; 12409esac 12410eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12411$as_echo "$ac_try_echo") >&5 12412 (eval "$ac_try") 2>&5 12413 ac_status=$? 12414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12415 (exit $ac_status); }; }; then 12416 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 12417 rm -f conftest2.* 12418 if { (case "(($ac_try" in 12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12420 *) ac_try_echo=$ac_try;; 12421esac 12422eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12423$as_echo "$ac_try_echo") >&5 12424 (eval "$ac_try") 2>&5 12425 ac_status=$? 12426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12427 (exit $ac_status); } && 12428 test -f conftest2.$ac_objext && { (case "(($ac_try" in 12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12430 *) ac_try_echo=$ac_try;; 12431esac 12432eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12433$as_echo "$ac_try_echo") >&5 12434 (eval "$ac_try") 2>&5 12435 ac_status=$? 12436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12437 (exit $ac_status); }; 12438 then 12439 # cc works too. 12440 : 12441 else 12442 # cc exists but doesn't like -o. 12443 eval ac_cv_prog_cc_${ac_cc}_c_o=no 12444 fi 12445 fi 12446 fi 12447else 12448 eval ac_cv_prog_cc_${ac_cc}_c_o=no 12449fi 12450rm -f core conftest* 12451 12452fi 12453if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 12454 { $as_echo "$as_me:$LINENO: result: yes" >&5 12455$as_echo "yes" >&6; } 12456else 12457 { $as_echo "$as_me:$LINENO: result: no" >&5 12458$as_echo "no" >&6; } 12459 12460cat >>confdefs.h <<\_ACEOF 12461#define NO_MINUS_C_MINUS_O 1 12462_ACEOF 12463 12464fi 12465 12466# FIXME: we rely on the cache variable name because 12467# there is no other way. 12468set dummy $CC 12469am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 12470eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 12471if test "$am_t" != yes; then 12472 # Losing compiler, so override with the script. 12473 # FIXME: It is wrong to rewrite CC. 12474 # But if we don't then we get into trouble of one sort or another. 12475 # A longer-term fix would be to have automake use am__CC in this case, 12476 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 12477 CC="$am_aux_dir/compile $CC" 12478fi 12479 12480 12481 12482if test "x$GCC" = "xyes"; then 12483 CPPFLAGS="$CPPFLAGS -Wall" 12484fi 12485 12486 12487 12488 12489# Define a configure option for an alternate module directory 12490 12491# Check whether --with-xorg-module-dir was given. 12492if test "${with_xorg_module_dir+set}" = set; then 12493 withval=$with_xorg_module_dir; moduledir="$withval" 12494else 12495 moduledir="$libdir/xorg/modules" 12496fi 12497 12498 12499# Check whether --enable-dri was given. 12500if test "${enable_dri+set}" = set; then 12501 enableval=$enable_dri; DRI="$enableval" 12502else 12503 DRI=auto 12504fi 12505 12506 12507# Check whether --enable-exa was given. 12508if test "${enable_exa+set}" = set; then 12509 enableval=$enable_exa; EXA="$enableval" 12510else 12511 EXA=yes 12512fi 12513 12514 12515# Check whether --enable-kms was given. 12516if test "${enable_kms+set}" = set; then 12517 enableval=$enable_kms; DRM_MODE="$enableval" 12518else 12519 DRM_MODE=yes 12520fi 12521 12522 12523# Store the list of server defined optional extensions in REQUIRED_MODULES 12524 12525 12526 SAVE_CFLAGS="$CFLAGS" 12527 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 12528 cat >conftest.$ac_ext <<_ACEOF 12529/* confdefs.h. */ 12530_ACEOF 12531cat confdefs.h >>conftest.$ac_ext 12532cat >>conftest.$ac_ext <<_ACEOF 12533/* end confdefs.h. */ 12534 12535#include "xorg-server.h" 12536#if !defined RANDR 12537#error RANDR not defined 12538#endif 12539 12540int 12541main () 12542{ 12543 12544 ; 12545 return 0; 12546} 12547_ACEOF 12548rm -f conftest.$ac_objext 12549if { (ac_try="$ac_compile" 12550case "(($ac_try" in 12551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12552 *) ac_try_echo=$ac_try;; 12553esac 12554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12555$as_echo "$ac_try_echo") >&5 12556 (eval "$ac_compile") 2>conftest.er1 12557 ac_status=$? 12558 grep -v '^ *+' conftest.er1 >conftest.err 12559 rm -f conftest.er1 12560 cat conftest.err >&5 12561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12562 (exit $ac_status); } && { 12563 test -z "$ac_c_werror_flag" || 12564 test ! -s conftest.err 12565 } && test -s conftest.$ac_objext; then 12566 _EXT_CHECK=yes 12567else 12568 $as_echo "$as_me: failed program was:" >&5 12569sed 's/^/| /' conftest.$ac_ext >&5 12570 12571 _EXT_CHECK=no 12572fi 12573 12574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12575 CFLAGS="$SAVE_CFLAGS" 12576 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5 12577$as_echo_n "checking if RANDR is defined... " >&6; } 12578 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12579$as_echo "$_EXT_CHECK" >&6; } 12580 if test "$_EXT_CHECK" != no; then 12581 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 12582 fi 12583 12584 12585 12586 SAVE_CFLAGS="$CFLAGS" 12587 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 12588 cat >conftest.$ac_ext <<_ACEOF 12589/* confdefs.h. */ 12590_ACEOF 12591cat confdefs.h >>conftest.$ac_ext 12592cat >>conftest.$ac_ext <<_ACEOF 12593/* end confdefs.h. */ 12594 12595#include "xorg-server.h" 12596#if !defined RENDER 12597#error RENDER not defined 12598#endif 12599 12600int 12601main () 12602{ 12603 12604 ; 12605 return 0; 12606} 12607_ACEOF 12608rm -f conftest.$ac_objext 12609if { (ac_try="$ac_compile" 12610case "(($ac_try" in 12611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12612 *) ac_try_echo=$ac_try;; 12613esac 12614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12615$as_echo "$ac_try_echo") >&5 12616 (eval "$ac_compile") 2>conftest.er1 12617 ac_status=$? 12618 grep -v '^ *+' conftest.er1 >conftest.err 12619 rm -f conftest.er1 12620 cat conftest.err >&5 12621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12622 (exit $ac_status); } && { 12623 test -z "$ac_c_werror_flag" || 12624 test ! -s conftest.err 12625 } && test -s conftest.$ac_objext; then 12626 _EXT_CHECK=yes 12627else 12628 $as_echo "$as_me: failed program was:" >&5 12629sed 's/^/| /' conftest.$ac_ext >&5 12630 12631 _EXT_CHECK=no 12632fi 12633 12634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12635 CFLAGS="$SAVE_CFLAGS" 12636 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5 12637$as_echo_n "checking if RENDER is defined... " >&6; } 12638 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12639$as_echo "$_EXT_CHECK" >&6; } 12640 if test "$_EXT_CHECK" != no; then 12641 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 12642 fi 12643 12644 12645 12646 SAVE_CFLAGS="$CFLAGS" 12647 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 12648 cat >conftest.$ac_ext <<_ACEOF 12649/* confdefs.h. */ 12650_ACEOF 12651cat confdefs.h >>conftest.$ac_ext 12652cat >>conftest.$ac_ext <<_ACEOF 12653/* end confdefs.h. */ 12654 12655#include "xorg-server.h" 12656#if !defined XV 12657#error XV not defined 12658#endif 12659 12660int 12661main () 12662{ 12663 12664 ; 12665 return 0; 12666} 12667_ACEOF 12668rm -f conftest.$ac_objext 12669if { (ac_try="$ac_compile" 12670case "(($ac_try" in 12671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12672 *) ac_try_echo=$ac_try;; 12673esac 12674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12675$as_echo "$ac_try_echo") >&5 12676 (eval "$ac_compile") 2>conftest.er1 12677 ac_status=$? 12678 grep -v '^ *+' conftest.er1 >conftest.err 12679 rm -f conftest.er1 12680 cat conftest.err >&5 12681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12682 (exit $ac_status); } && { 12683 test -z "$ac_c_werror_flag" || 12684 test ! -s conftest.err 12685 } && test -s conftest.$ac_objext; then 12686 _EXT_CHECK=yes 12687else 12688 $as_echo "$as_me: failed program was:" >&5 12689sed 's/^/| /' conftest.$ac_ext >&5 12690 12691 _EXT_CHECK=no 12692fi 12693 12694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12695 CFLAGS="$SAVE_CFLAGS" 12696 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5 12697$as_echo_n "checking if XV is defined... " >&6; } 12698 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12699$as_echo "$_EXT_CHECK" >&6; } 12700 if test "$_EXT_CHECK" != no; then 12701 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 12702 fi 12703 12704 12705 12706 SAVE_CFLAGS="$CFLAGS" 12707 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 12708 cat >conftest.$ac_ext <<_ACEOF 12709/* confdefs.h. */ 12710_ACEOF 12711cat confdefs.h >>conftest.$ac_ext 12712cat >>conftest.$ac_ext <<_ACEOF 12713/* end confdefs.h. */ 12714 12715#include "xorg-server.h" 12716#if !defined DPMSExtension 12717#error DPMSExtension not defined 12718#endif 12719 12720int 12721main () 12722{ 12723 12724 ; 12725 return 0; 12726} 12727_ACEOF 12728rm -f conftest.$ac_objext 12729if { (ac_try="$ac_compile" 12730case "(($ac_try" in 12731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12732 *) ac_try_echo=$ac_try;; 12733esac 12734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12735$as_echo "$ac_try_echo") >&5 12736 (eval "$ac_compile") 2>conftest.er1 12737 ac_status=$? 12738 grep -v '^ *+' conftest.er1 >conftest.err 12739 rm -f conftest.er1 12740 cat conftest.err >&5 12741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12742 (exit $ac_status); } && { 12743 test -z "$ac_c_werror_flag" || 12744 test ! -s conftest.err 12745 } && test -s conftest.$ac_objext; then 12746 _EXT_CHECK=yes 12747else 12748 $as_echo "$as_me: failed program was:" >&5 12749sed 's/^/| /' conftest.$ac_ext >&5 12750 12751 _EXT_CHECK=no 12752fi 12753 12754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12755 CFLAGS="$SAVE_CFLAGS" 12756 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5 12757$as_echo_n "checking if DPMSExtension is defined... " >&6; } 12758 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12759$as_echo "$_EXT_CHECK" >&6; } 12760 if test "$_EXT_CHECK" != no; then 12761 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 12762 fi 12763 12764 12765# Obtain compiler/linker options for the driver dependencies 12766 12767pkg_failed=no 12768{ $as_echo "$as_me:$LINENO: checking for XORG" >&5 12769$as_echo_n "checking for XORG... " >&6; } 12770 12771if test -n "$XORG_CFLAGS"; then 12772 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 12773 elif test -n "$PKG_CONFIG"; then 12774 if test -n "$PKG_CONFIG" && \ 12775 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\"") >&5 12776 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5 12777 ac_status=$? 12778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12779 (exit $ac_status); }; then 12780 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 12781else 12782 pkg_failed=yes 12783fi 12784 else 12785 pkg_failed=untried 12786fi 12787if test -n "$XORG_LIBS"; then 12788 pkg_cv_XORG_LIBS="$XORG_LIBS" 12789 elif test -n "$PKG_CONFIG"; then 12790 if test -n "$PKG_CONFIG" && \ 12791 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\"") >&5 12792 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5 12793 ac_status=$? 12794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12795 (exit $ac_status); }; then 12796 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 12797else 12798 pkg_failed=yes 12799fi 12800 else 12801 pkg_failed=untried 12802fi 12803 12804 12805 12806if test $pkg_failed = yes; then 12807 12808if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12809 _pkg_short_errors_supported=yes 12810else 12811 _pkg_short_errors_supported=no 12812fi 12813 if test $_pkg_short_errors_supported = yes; then 12814 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1` 12815 else 12816 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1` 12817 fi 12818 # Put the nasty error message in config.log where it belongs 12819 echo "$XORG_PKG_ERRORS" >&5 12820 12821 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES) were not met: 12822 12823$XORG_PKG_ERRORS 12824 12825Consider adjusting the PKG_CONFIG_PATH environment variable if you 12826installed software in a non-standard prefix. 12827 12828Alternatively, you may set the environment variables XORG_CFLAGS 12829and XORG_LIBS to avoid the need to call pkg-config. 12830See the pkg-config man page for more details. 12831" >&5 12832$as_echo "$as_me: error: Package requirements (xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES) were not met: 12833 12834$XORG_PKG_ERRORS 12835 12836Consider adjusting the PKG_CONFIG_PATH environment variable if you 12837installed software in a non-standard prefix. 12838 12839Alternatively, you may set the environment variables XORG_CFLAGS 12840and XORG_LIBS to avoid the need to call pkg-config. 12841See the pkg-config man page for more details. 12842" >&2;} 12843 { (exit 1); exit 1; }; } 12844elif test $pkg_failed = untried; then 12845 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 12846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12847{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 12848is in your PATH or set the PKG_CONFIG environment variable to the full 12849path to pkg-config. 12850 12851Alternatively, you may set the environment variables XORG_CFLAGS 12852and XORG_LIBS to avoid the need to call pkg-config. 12853See the pkg-config man page for more details. 12854 12855To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12856See \`config.log' for more details." >&5 12857$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 12858is in your PATH or set the PKG_CONFIG environment variable to the full 12859path to pkg-config. 12860 12861Alternatively, you may set the environment variables XORG_CFLAGS 12862and XORG_LIBS to avoid the need to call pkg-config. 12863See the pkg-config man page for more details. 12864 12865To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12866See \`config.log' for more details." >&2;} 12867 { (exit 1); exit 1; }; }; } 12868else 12869 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 12870 XORG_LIBS=$pkg_cv_XORG_LIBS 12871 { $as_echo "$as_me:$LINENO: result: yes" >&5 12872$as_echo "yes" >&6; } 12873 : 12874fi 12875 12876pkg_failed=no 12877{ $as_echo "$as_me:$LINENO: checking for XEXT" >&5 12878$as_echo_n "checking for XEXT... " >&6; } 12879 12880if test -n "$XEXT_CFLAGS"; then 12881 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 12882 elif test -n "$PKG_CONFIG"; then 12883 if test -n "$PKG_CONFIG" && \ 12884 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5 12885 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 12886 ac_status=$? 12887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12888 (exit $ac_status); }; then 12889 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 12890else 12891 pkg_failed=yes 12892fi 12893 else 12894 pkg_failed=untried 12895fi 12896if test -n "$XEXT_LIBS"; then 12897 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 12898 elif test -n "$PKG_CONFIG"; then 12899 if test -n "$PKG_CONFIG" && \ 12900 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5 12901 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 12902 ac_status=$? 12903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12904 (exit $ac_status); }; then 12905 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 12906else 12907 pkg_failed=yes 12908fi 12909 else 12910 pkg_failed=untried 12911fi 12912 12913 12914 12915if test $pkg_failed = yes; then 12916 12917if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12918 _pkg_short_errors_supported=yes 12919else 12920 _pkg_short_errors_supported=no 12921fi 12922 if test $_pkg_short_errors_supported = yes; then 12923 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1` 12924 else 12925 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1` 12926 fi 12927 # Put the nasty error message in config.log where it belongs 12928 echo "$XEXT_PKG_ERRORS" >&5 12929 12930 { $as_echo "$as_me:$LINENO: result: no" >&5 12931$as_echo "no" >&6; } 12932 HAVE_XEXTPROTO_71="no" 12933elif test $pkg_failed = untried; then 12934 HAVE_XEXTPROTO_71="no" 12935else 12936 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 12937 XEXT_LIBS=$pkg_cv_XEXT_LIBS 12938 { $as_echo "$as_me:$LINENO: result: yes" >&5 12939$as_echo "yes" >&6; } 12940 HAVE_XEXTPROTO_71="yes"; 12941cat >>confdefs.h <<\_ACEOF 12942#define HAVE_XEXTPROTO_71 1 12943_ACEOF 12944 12945fi 12946 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 12947 HAVE_XEXTPROTO_71_TRUE= 12948 HAVE_XEXTPROTO_71_FALSE='#' 12949else 12950 HAVE_XEXTPROTO_71_TRUE='#' 12951 HAVE_XEXTPROTO_71_FALSE= 12952fi 12953 12954 12955# Checks for libraries. 12956 12957 12958if test "$DRI" != no; then 12959 12960pkg_failed=no 12961{ $as_echo "$as_me:$LINENO: checking for DRI" >&5 12962$as_echo_n "checking for DRI... " >&6; } 12963 12964if test -n "$DRI_CFLAGS"; then 12965 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS" 12966 elif test -n "$PKG_CONFIG"; then 12967 if test -n "$PKG_CONFIG" && \ 12968 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\"") >&5 12969 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5 12970 ac_status=$? 12971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12972 (exit $ac_status); }; then 12973 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.2 xf86driproto" 2>/dev/null` 12974else 12975 pkg_failed=yes 12976fi 12977 else 12978 pkg_failed=untried 12979fi 12980if test -n "$DRI_LIBS"; then 12981 pkg_cv_DRI_LIBS="$DRI_LIBS" 12982 elif test -n "$PKG_CONFIG"; then 12983 if test -n "$PKG_CONFIG" && \ 12984 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\"") >&5 12985 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5 12986 ac_status=$? 12987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12988 (exit $ac_status); }; then 12989 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.2 xf86driproto" 2>/dev/null` 12990else 12991 pkg_failed=yes 12992fi 12993 else 12994 pkg_failed=untried 12995fi 12996 12997 12998 12999if test $pkg_failed = yes; then 13000 13001if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13002 _pkg_short_errors_supported=yes 13003else 13004 _pkg_short_errors_supported=no 13005fi 13006 if test $_pkg_short_errors_supported = yes; then 13007 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.2 xf86driproto" 2>&1` 13008 else 13009 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.2 xf86driproto" 2>&1` 13010 fi 13011 # Put the nasty error message in config.log where it belongs 13012 echo "$DRI_PKG_ERRORS" >&5 13013 13014 { { $as_echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.2 xf86driproto) were not met: 13015 13016$DRI_PKG_ERRORS 13017 13018Consider adjusting the PKG_CONFIG_PATH environment variable if you 13019installed software in a non-standard prefix. 13020 13021Alternatively, you may set the environment variables DRI_CFLAGS 13022and DRI_LIBS to avoid the need to call pkg-config. 13023See the pkg-config man page for more details. 13024" >&5 13025$as_echo "$as_me: error: Package requirements (libdrm >= 2.2 xf86driproto) were not met: 13026 13027$DRI_PKG_ERRORS 13028 13029Consider adjusting the PKG_CONFIG_PATH environment variable if you 13030installed software in a non-standard prefix. 13031 13032Alternatively, you may set the environment variables DRI_CFLAGS 13033and DRI_LIBS to avoid the need to call pkg-config. 13034See the pkg-config man page for more details. 13035" >&2;} 13036 { (exit 1); exit 1; }; } 13037elif test $pkg_failed = untried; then 13038 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 13039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13040{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 13041is in your PATH or set the PKG_CONFIG environment variable to the full 13042path to pkg-config. 13043 13044Alternatively, you may set the environment variables DRI_CFLAGS 13045and DRI_LIBS to avoid the need to call pkg-config. 13046See the pkg-config man page for more details. 13047 13048To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13049See \`config.log' for more details." >&5 13050$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 13051is in your PATH or set the PKG_CONFIG environment variable to the full 13052path to pkg-config. 13053 13054Alternatively, you may set the environment variables DRI_CFLAGS 13055and DRI_LIBS to avoid the need to call pkg-config. 13056See the pkg-config man page for more details. 13057 13058To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13059See \`config.log' for more details." >&2;} 13060 { (exit 1); exit 1; }; }; } 13061else 13062 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS 13063 DRI_LIBS=$pkg_cv_DRI_LIBS 13064 { $as_echo "$as_me:$LINENO: result: yes" >&5 13065$as_echo "yes" >&6; } 13066 : 13067fi 13068 save_CPPFLAGS="$CPPFLAGS" 13069 CPPFLAGS="$XORG_CFLAGS $DRI_CFLAGS" 13070 { $as_echo "$as_me:$LINENO: checking for dri.h" >&5 13071$as_echo_n "checking for dri.h... " >&6; } 13072if test "${ac_cv_header_dri_h+set}" = set; then 13073 $as_echo_n "(cached) " >&6 13074else 13075 cat >conftest.$ac_ext <<_ACEOF 13076/* confdefs.h. */ 13077_ACEOF 13078cat confdefs.h >>conftest.$ac_ext 13079cat >>conftest.$ac_ext <<_ACEOF 13080/* end confdefs.h. */ 13081#include <dri.h> 13082_ACEOF 13083if { (ac_try="$ac_cpp conftest.$ac_ext" 13084case "(($ac_try" in 13085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13086 *) ac_try_echo=$ac_try;; 13087esac 13088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13089$as_echo "$ac_try_echo") >&5 13090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13091 ac_status=$? 13092 grep -v '^ *+' conftest.er1 >conftest.err 13093 rm -f conftest.er1 13094 cat conftest.err >&5 13095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13096 (exit $ac_status); } >/dev/null && { 13097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13098 test ! -s conftest.err 13099 }; then 13100 ac_cv_header_dri_h=yes 13101else 13102 $as_echo "$as_me: failed program was:" >&5 13103sed 's/^/| /' conftest.$ac_ext >&5 13104 13105 ac_cv_header_dri_h=no 13106fi 13107 13108rm -f conftest.err conftest.$ac_ext 13109fi 13110{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dri_h" >&5 13111$as_echo "$ac_cv_header_dri_h" >&6; } 13112if test "x$ac_cv_header_dri_h" = x""yes; then 13113 have_dri_h="yes" 13114else 13115 have_dri_h="no" 13116fi 13117 13118 13119 { $as_echo "$as_me:$LINENO: checking for sarea.h" >&5 13120$as_echo_n "checking for sarea.h... " >&6; } 13121if test "${ac_cv_header_sarea_h+set}" = set; then 13122 $as_echo_n "(cached) " >&6 13123else 13124 cat >conftest.$ac_ext <<_ACEOF 13125/* confdefs.h. */ 13126_ACEOF 13127cat confdefs.h >>conftest.$ac_ext 13128cat >>conftest.$ac_ext <<_ACEOF 13129/* end confdefs.h. */ 13130#include <sarea.h> 13131_ACEOF 13132if { (ac_try="$ac_cpp conftest.$ac_ext" 13133case "(($ac_try" in 13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13135 *) ac_try_echo=$ac_try;; 13136esac 13137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13138$as_echo "$ac_try_echo") >&5 13139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13140 ac_status=$? 13141 grep -v '^ *+' conftest.er1 >conftest.err 13142 rm -f conftest.er1 13143 cat conftest.err >&5 13144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13145 (exit $ac_status); } >/dev/null && { 13146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13147 test ! -s conftest.err 13148 }; then 13149 ac_cv_header_sarea_h=yes 13150else 13151 $as_echo "$as_me: failed program was:" >&5 13152sed 's/^/| /' conftest.$ac_ext >&5 13153 13154 ac_cv_header_sarea_h=no 13155fi 13156 13157rm -f conftest.err conftest.$ac_ext 13158fi 13159{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sarea_h" >&5 13160$as_echo "$ac_cv_header_sarea_h" >&6; } 13161if test "x$ac_cv_header_sarea_h" = x""yes; then 13162 have_sarea_h="yes" 13163else 13164 have_sarea_h="no" 13165fi 13166 13167 13168 cat >conftest.$ac_ext <<_ACEOF 13169/* confdefs.h. */ 13170_ACEOF 13171cat confdefs.h >>conftest.$ac_ext 13172cat >>conftest.$ac_ext <<_ACEOF 13173/* end confdefs.h. */ 13174 13175#include <xorg-server.h> 13176#include <dristruct.h> 13177 13178int 13179main () 13180{ 13181 13182 ; 13183 return 0; 13184} 13185_ACEOF 13186if { (ac_try="$ac_cpp conftest.$ac_ext" 13187case "(($ac_try" in 13188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13189 *) ac_try_echo=$ac_try;; 13190esac 13191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13192$as_echo "$ac_try_echo") >&5 13193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13194 ac_status=$? 13195 grep -v '^ *+' conftest.er1 >conftest.err 13196 rm -f conftest.er1 13197 cat conftest.err >&5 13198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13199 (exit $ac_status); } >/dev/null && { 13200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13201 test ! -s conftest.err 13202 }; then 13203 have_dristruct_h="yes" 13204else 13205 $as_echo "$as_me: failed program was:" >&5 13206sed 's/^/| /' conftest.$ac_ext >&5 13207 13208 have_dristruct_h="no" 13209fi 13210 13211rm -f conftest.err conftest.$ac_ext 13212 { $as_echo "$as_me:$LINENO: checking for damage.h" >&5 13213$as_echo_n "checking for damage.h... " >&6; } 13214if test "${ac_cv_header_damage_h+set}" = set; then 13215 $as_echo_n "(cached) " >&6 13216else 13217 cat >conftest.$ac_ext <<_ACEOF 13218/* confdefs.h. */ 13219_ACEOF 13220cat confdefs.h >>conftest.$ac_ext 13221cat >>conftest.$ac_ext <<_ACEOF 13222/* end confdefs.h. */ 13223#include <damage.h> 13224_ACEOF 13225if { (ac_try="$ac_cpp conftest.$ac_ext" 13226case "(($ac_try" in 13227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13228 *) ac_try_echo=$ac_try;; 13229esac 13230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13231$as_echo "$ac_try_echo") >&5 13232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13233 ac_status=$? 13234 grep -v '^ *+' conftest.er1 >conftest.err 13235 rm -f conftest.er1 13236 cat conftest.err >&5 13237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13238 (exit $ac_status); } >/dev/null && { 13239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13240 test ! -s conftest.err 13241 }; then 13242 ac_cv_header_damage_h=yes 13243else 13244 $as_echo "$as_me: failed program was:" >&5 13245sed 's/^/| /' conftest.$ac_ext >&5 13246 13247 ac_cv_header_damage_h=no 13248fi 13249 13250rm -f conftest.err conftest.$ac_ext 13251fi 13252{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_damage_h" >&5 13253$as_echo "$ac_cv_header_damage_h" >&6; } 13254if test "x$ac_cv_header_damage_h" = x""yes; then 13255 have_damage_h="yes" 13256else 13257 have_damage_h="no" 13258fi 13259 13260 13261 CPPFLAGS="$save_CPPFLAGS" 13262fi 13263 13264{ $as_echo "$as_me:$LINENO: checking whether to include DRI support" >&5 13265$as_echo_n "checking whether to include DRI support... " >&6; } 13266if test x$DRI = xauto; then 13267 if test "$have_dri_h" = yes -a \ 13268 "$have_sarea_h" = yes -a \ 13269 "$have_dristruct_h" = yes; then 13270 DRI="yes" 13271 else 13272 DRI="no" 13273 fi 13274fi 13275{ $as_echo "$as_me:$LINENO: result: $DRI" >&5 13276$as_echo "$DRI" >&6; } 13277 13278 if test x$DRI = xyes; then 13279 DRI_TRUE= 13280 DRI_FALSE='#' 13281else 13282 DRI_TRUE='#' 13283 DRI_FALSE= 13284fi 13285 13286if test "$DRI" = yes; then 13287 13288cat >>confdefs.h <<\_ACEOF 13289#define XF86DRI 1 13290_ACEOF 13291 13292 13293cat >>confdefs.h <<\_ACEOF 13294#define XF86DRI_DEVEL 1 13295_ACEOF 13296 13297 if test "$have_damage_h" = yes; then 13298 13299cat >>confdefs.h <<\_ACEOF 13300#define DAMAGE 1 13301_ACEOF 13302 13303 fi 13304 13305 save_CFLAGS="$CFLAGS" 13306 CFLAGS="$XORG_CFLAGS $DRI_CFLAGS $CFLAGS" 13307 if test "$DRM_MODE" = yes; then 13308 { $as_echo "$as_me:$LINENO: checking for xf86drmMode.h" >&5 13309$as_echo_n "checking for xf86drmMode.h... " >&6; } 13310if test "${ac_cv_header_xf86drmMode_h+set}" = set; then 13311 $as_echo_n "(cached) " >&6 13312else 13313 cat >conftest.$ac_ext <<_ACEOF 13314/* confdefs.h. */ 13315_ACEOF 13316cat confdefs.h >>conftest.$ac_ext 13317cat >>conftest.$ac_ext <<_ACEOF 13318/* end confdefs.h. */ 13319#include <stdint.h> 13320#include <stdlib.h> 13321 13322#include <xf86drmMode.h> 13323_ACEOF 13324rm -f conftest.$ac_objext 13325if { (ac_try="$ac_compile" 13326case "(($ac_try" in 13327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13328 *) ac_try_echo=$ac_try;; 13329esac 13330eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13331$as_echo "$ac_try_echo") >&5 13332 (eval "$ac_compile") 2>conftest.er1 13333 ac_status=$? 13334 grep -v '^ *+' conftest.er1 >conftest.err 13335 rm -f conftest.er1 13336 cat conftest.err >&5 13337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13338 (exit $ac_status); } && { 13339 test -z "$ac_c_werror_flag" || 13340 test ! -s conftest.err 13341 } && test -s conftest.$ac_objext; then 13342 ac_cv_header_xf86drmMode_h=yes 13343else 13344 $as_echo "$as_me: failed program was:" >&5 13345sed 's/^/| /' conftest.$ac_ext >&5 13346 13347 ac_cv_header_xf86drmMode_h=no 13348fi 13349 13350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13351fi 13352{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf86drmMode_h" >&5 13353$as_echo "$ac_cv_header_xf86drmMode_h" >&6; } 13354if test "x$ac_cv_header_xf86drmMode_h" = x""yes; then 13355 DRM_MODE=yes 13356else 13357 DRM_MODE=no 13358fi 13359 13360 13361 if test "x$DRM_MODE" = xyes; then 13362 13363pkg_failed=no 13364{ $as_echo "$as_me:$LINENO: checking for LIBDRM_RADEON" >&5 13365$as_echo_n "checking for LIBDRM_RADEON... " >&6; } 13366 13367if test -n "$LIBDRM_RADEON_CFLAGS"; then 13368 pkg_cv_LIBDRM_RADEON_CFLAGS="$LIBDRM_RADEON_CFLAGS" 13369 elif test -n "$PKG_CONFIG"; then 13370 if test -n "$PKG_CONFIG" && \ 13371 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6.2 libdrm_radeon\"") >&5 13372 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6.2 libdrm_radeon") 2>&5 13373 ac_status=$? 13374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13375 (exit $ac_status); }; then 13376 pkg_cv_LIBDRM_RADEON_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.6.2 libdrm_radeon" 2>/dev/null` 13377else 13378 pkg_failed=yes 13379fi 13380 else 13381 pkg_failed=untried 13382fi 13383if test -n "$LIBDRM_RADEON_LIBS"; then 13384 pkg_cv_LIBDRM_RADEON_LIBS="$LIBDRM_RADEON_LIBS" 13385 elif test -n "$PKG_CONFIG"; then 13386 if test -n "$PKG_CONFIG" && \ 13387 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6.2 libdrm_radeon\"") >&5 13388 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6.2 libdrm_radeon") 2>&5 13389 ac_status=$? 13390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13391 (exit $ac_status); }; then 13392 pkg_cv_LIBDRM_RADEON_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.6.2 libdrm_radeon" 2>/dev/null` 13393else 13394 pkg_failed=yes 13395fi 13396 else 13397 pkg_failed=untried 13398fi 13399 13400 13401 13402if test $pkg_failed = yes; then 13403 13404if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13405 _pkg_short_errors_supported=yes 13406else 13407 _pkg_short_errors_supported=no 13408fi 13409 if test $_pkg_short_errors_supported = yes; then 13410 LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.6.2 libdrm_radeon" 2>&1` 13411 else 13412 LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.6.2 libdrm_radeon" 2>&1` 13413 fi 13414 # Put the nasty error message in config.log where it belongs 13415 echo "$LIBDRM_RADEON_PKG_ERRORS" >&5 13416 13417 { $as_echo "$as_me:$LINENO: result: no" >&5 13418$as_echo "no" >&6; } 13419 LIBDRM_RADEON=no 13420elif test $pkg_failed = untried; then 13421 LIBDRM_RADEON=no 13422else 13423 LIBDRM_RADEON_CFLAGS=$pkg_cv_LIBDRM_RADEON_CFLAGS 13424 LIBDRM_RADEON_LIBS=$pkg_cv_LIBDRM_RADEON_LIBS 13425 { $as_echo "$as_me:$LINENO: result: yes" >&5 13426$as_echo "yes" >&6; } 13427 LIBDRM_RADEON=yes 13428fi 13429 13430 if test "x$LIBDRM_RADEON" = xyes; then 13431 13432cat >>confdefs.h <<\_ACEOF 13433#define XF86DRM_MODE 1 13434_ACEOF 13435 13436 13437cat >>confdefs.h <<\_ACEOF 13438#define RADEON_DRI2 1 13439_ACEOF 13440 13441 else 13442 DRM_MODE=no 13443 fi 13444 13445pkg_failed=no 13446{ $as_echo "$as_me:$LINENO: checking for LIBUDEV" >&5 13447$as_echo_n "checking for LIBUDEV... " >&6; } 13448 13449if test -n "$LIBUDEV_CFLAGS"; then 13450 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS" 13451 elif test -n "$PKG_CONFIG"; then 13452 if test -n "$PKG_CONFIG" && \ 13453 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libudev\"") >&5 13454 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 13455 ac_status=$? 13456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13457 (exit $ac_status); }; then 13458 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null` 13459else 13460 pkg_failed=yes 13461fi 13462 else 13463 pkg_failed=untried 13464fi 13465if test -n "$LIBUDEV_LIBS"; then 13466 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS" 13467 elif test -n "$PKG_CONFIG"; then 13468 if test -n "$PKG_CONFIG" && \ 13469 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libudev\"") >&5 13470 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 13471 ac_status=$? 13472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13473 (exit $ac_status); }; then 13474 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null` 13475else 13476 pkg_failed=yes 13477fi 13478 else 13479 pkg_failed=untried 13480fi 13481 13482 13483 13484if test $pkg_failed = yes; then 13485 13486if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13487 _pkg_short_errors_supported=yes 13488else 13489 _pkg_short_errors_supported=no 13490fi 13491 if test $_pkg_short_errors_supported = yes; then 13492 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev" 2>&1` 13493 else 13494 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev" 2>&1` 13495 fi 13496 # Put the nasty error message in config.log where it belongs 13497 echo "$LIBUDEV_PKG_ERRORS" >&5 13498 13499 { $as_echo "$as_me:$LINENO: result: no" >&5 13500$as_echo "no" >&6; } 13501 LIBUDEV=no 13502elif test $pkg_failed = untried; then 13503 LIBUDEV=no 13504else 13505 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS 13506 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS 13507 { $as_echo "$as_me:$LINENO: result: yes" >&5 13508$as_echo "yes" >&6; } 13509 LIBUDEV=yes 13510fi 13511 if test "x$LIBUDEV" = xyes; then 13512 13513cat >>confdefs.h <<\_ACEOF 13514#define HAVE_LIBUDEV 1 13515_ACEOF 13516 13517 fi 13518 fi 13519 fi 13520 CFLAGS="$save_CFLAGS" 13521else 13522 DRM_MODE=no 13523fi 13524 if test x$DRM_MODE = xyes; then 13525 DRM_MODE_TRUE= 13526 DRM_MODE_FALSE='#' 13527else 13528 DRM_MODE_TRUE='#' 13529 DRM_MODE_FALSE= 13530fi 13531 13532 if test x$LIBUDEV = xyes; then 13533 LIBUDEV_TRUE= 13534 LIBUDEV_FALSE='#' 13535else 13536 LIBUDEV_TRUE='#' 13537 LIBUDEV_FALSE= 13538fi 13539 13540 13541 13542cat >>confdefs.h <<\_ACEOF 13543#define USE_XAA 1 13544_ACEOF 13545 13546 13547# Properly handle EXA. 13548{ $as_echo "$as_me:$LINENO: checking whether to enable EXA support" >&5 13549$as_echo_n "checking whether to enable EXA support... " >&6; } 13550if test "x$EXA" = xyes; then 13551 { $as_echo "$as_me:$LINENO: result: yes" >&5 13552$as_echo "yes" >&6; } 13553 13554 SAVE_CPPFLAGS="$CPPFLAGS" 13555 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 13556 if test "${ac_cv_header_exa_h+set}" = set; then 13557 { $as_echo "$as_me:$LINENO: checking for exa.h" >&5 13558$as_echo_n "checking for exa.h... " >&6; } 13559if test "${ac_cv_header_exa_h+set}" = set; then 13560 $as_echo_n "(cached) " >&6 13561fi 13562{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_exa_h" >&5 13563$as_echo "$ac_cv_header_exa_h" >&6; } 13564else 13565 # Is the header compilable? 13566{ $as_echo "$as_me:$LINENO: checking exa.h usability" >&5 13567$as_echo_n "checking exa.h usability... " >&6; } 13568cat >conftest.$ac_ext <<_ACEOF 13569/* confdefs.h. */ 13570_ACEOF 13571cat confdefs.h >>conftest.$ac_ext 13572cat >>conftest.$ac_ext <<_ACEOF 13573/* end confdefs.h. */ 13574$ac_includes_default 13575#include <exa.h> 13576_ACEOF 13577rm -f conftest.$ac_objext 13578if { (ac_try="$ac_compile" 13579case "(($ac_try" in 13580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13581 *) ac_try_echo=$ac_try;; 13582esac 13583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13584$as_echo "$ac_try_echo") >&5 13585 (eval "$ac_compile") 2>conftest.er1 13586 ac_status=$? 13587 grep -v '^ *+' conftest.er1 >conftest.err 13588 rm -f conftest.er1 13589 cat conftest.err >&5 13590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13591 (exit $ac_status); } && { 13592 test -z "$ac_c_werror_flag" || 13593 test ! -s conftest.err 13594 } && test -s conftest.$ac_objext; then 13595 ac_header_compiler=yes 13596else 13597 $as_echo "$as_me: failed program was:" >&5 13598sed 's/^/| /' conftest.$ac_ext >&5 13599 13600 ac_header_compiler=no 13601fi 13602 13603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13604{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13605$as_echo "$ac_header_compiler" >&6; } 13606 13607# Is the header present? 13608{ $as_echo "$as_me:$LINENO: checking exa.h presence" >&5 13609$as_echo_n "checking exa.h presence... " >&6; } 13610cat >conftest.$ac_ext <<_ACEOF 13611/* confdefs.h. */ 13612_ACEOF 13613cat confdefs.h >>conftest.$ac_ext 13614cat >>conftest.$ac_ext <<_ACEOF 13615/* end confdefs.h. */ 13616#include <exa.h> 13617_ACEOF 13618if { (ac_try="$ac_cpp conftest.$ac_ext" 13619case "(($ac_try" in 13620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13621 *) ac_try_echo=$ac_try;; 13622esac 13623eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13624$as_echo "$ac_try_echo") >&5 13625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13626 ac_status=$? 13627 grep -v '^ *+' conftest.er1 >conftest.err 13628 rm -f conftest.er1 13629 cat conftest.err >&5 13630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13631 (exit $ac_status); } >/dev/null && { 13632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13633 test ! -s conftest.err 13634 }; then 13635 ac_header_preproc=yes 13636else 13637 $as_echo "$as_me: failed program was:" >&5 13638sed 's/^/| /' conftest.$ac_ext >&5 13639 13640 ac_header_preproc=no 13641fi 13642 13643rm -f conftest.err conftest.$ac_ext 13644{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13645$as_echo "$ac_header_preproc" >&6; } 13646 13647# So? What about this header? 13648case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13649 yes:no: ) 13650 { $as_echo "$as_me:$LINENO: WARNING: exa.h: accepted by the compiler, rejected by the preprocessor!" >&5 13651$as_echo "$as_me: WARNING: exa.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13652 { $as_echo "$as_me:$LINENO: WARNING: exa.h: proceeding with the compiler's result" >&5 13653$as_echo "$as_me: WARNING: exa.h: proceeding with the compiler's result" >&2;} 13654 ac_header_preproc=yes 13655 ;; 13656 no:yes:* ) 13657 { $as_echo "$as_me:$LINENO: WARNING: exa.h: present but cannot be compiled" >&5 13658$as_echo "$as_me: WARNING: exa.h: present but cannot be compiled" >&2;} 13659 { $as_echo "$as_me:$LINENO: WARNING: exa.h: check for missing prerequisite headers?" >&5 13660$as_echo "$as_me: WARNING: exa.h: check for missing prerequisite headers?" >&2;} 13661 { $as_echo "$as_me:$LINENO: WARNING: exa.h: see the Autoconf documentation" >&5 13662$as_echo "$as_me: WARNING: exa.h: see the Autoconf documentation" >&2;} 13663 { $as_echo "$as_me:$LINENO: WARNING: exa.h: section \"Present But Cannot Be Compiled\"" >&5 13664$as_echo "$as_me: WARNING: exa.h: section \"Present But Cannot Be Compiled\"" >&2;} 13665 { $as_echo "$as_me:$LINENO: WARNING: exa.h: proceeding with the preprocessor's result" >&5 13666$as_echo "$as_me: WARNING: exa.h: proceeding with the preprocessor's result" >&2;} 13667 { $as_echo "$as_me:$LINENO: WARNING: exa.h: in the future, the compiler will take precedence" >&5 13668$as_echo "$as_me: WARNING: exa.h: in the future, the compiler will take precedence" >&2;} 13669 ( cat <<\_ASBOX 13670## ---------------------------------------------------------------------- ## 13671## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 13672## ---------------------------------------------------------------------- ## 13673_ASBOX 13674 ) | sed "s/^/$as_me: WARNING: /" >&2 13675 ;; 13676esac 13677{ $as_echo "$as_me:$LINENO: checking for exa.h" >&5 13678$as_echo_n "checking for exa.h... " >&6; } 13679if test "${ac_cv_header_exa_h+set}" = set; then 13680 $as_echo_n "(cached) " >&6 13681else 13682 ac_cv_header_exa_h=$ac_header_preproc 13683fi 13684{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_exa_h" >&5 13685$as_echo "$ac_cv_header_exa_h" >&6; } 13686 13687fi 13688if test "x$ac_cv_header_exa_h" = x""yes; then 13689 have_exa_h="yes" 13690else 13691 have_exa_h="no" 13692fi 13693 13694 13695 CPPFLAGS="$SAVE_CPPFLAGS" 13696else 13697 { $as_echo "$as_me:$LINENO: result: no" >&5 13698$as_echo "no" >&6; } 13699fi 13700 13701SAVE_CPPFLAGS="$CPPFLAGS" 13702CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 13703if test "x$have_exa_h" = xyes; then 13704 { $as_echo "$as_me:$LINENO: checking whether EXA version is at least 2.0.0" >&5 13705$as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; } 13706 cat >conftest.$ac_ext <<_ACEOF 13707/* confdefs.h. */ 13708_ACEOF 13709cat confdefs.h >>conftest.$ac_ext 13710cat >>conftest.$ac_ext <<_ACEOF 13711/* end confdefs.h. */ 13712 13713#include "exa.h" 13714#if EXA_VERSION_MAJOR < 2 13715#error OLD EXA! 13716#endif 13717 13718int 13719main () 13720{ 13721 13722 ; 13723 return 0; 13724} 13725_ACEOF 13726if { (ac_try="$ac_cpp conftest.$ac_ext" 13727case "(($ac_try" in 13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13729 *) ac_try_echo=$ac_try;; 13730esac 13731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13732$as_echo "$ac_try_echo") >&5 13733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13734 ac_status=$? 13735 grep -v '^ *+' conftest.er1 >conftest.err 13736 rm -f conftest.er1 13737 cat conftest.err >&5 13738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13739 (exit $ac_status); } >/dev/null && { 13740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13741 test ! -s conftest.err 13742 }; then 13743 USE_EXA=yes 13744else 13745 $as_echo "$as_me: failed program was:" >&5 13746sed 's/^/| /' conftest.$ac_ext >&5 13747 13748 USE_EXA=no 13749fi 13750 13751rm -f conftest.err conftest.$ac_ext 13752 { $as_echo "$as_me:$LINENO: result: $USE_EXA" >&5 13753$as_echo "$USE_EXA" >&6; } 13754 13755 if test "x$USE_EXA" = xyes; then 13756 13757cat >>confdefs.h <<\_ACEOF 13758#define USE_EXA 1 13759_ACEOF 13760 13761 fi 13762fi 13763 13764{ $as_echo "$as_me:$LINENO: checking whether xf86XVFillKeyHelperDrawable is declared" >&5 13765$as_echo_n "checking whether xf86XVFillKeyHelperDrawable is declared... " >&6; } 13766if test "${ac_cv_have_decl_xf86XVFillKeyHelperDrawable+set}" = set; then 13767 $as_echo_n "(cached) " >&6 13768else 13769 cat >conftest.$ac_ext <<_ACEOF 13770/* confdefs.h. */ 13771_ACEOF 13772cat confdefs.h >>conftest.$ac_ext 13773cat >>conftest.$ac_ext <<_ACEOF 13774/* end confdefs.h. */ 13775#include <xf86xv.h> 13776 13777int 13778main () 13779{ 13780#ifndef xf86XVFillKeyHelperDrawable 13781 (void) xf86XVFillKeyHelperDrawable; 13782#endif 13783 13784 ; 13785 return 0; 13786} 13787_ACEOF 13788rm -f conftest.$ac_objext 13789if { (ac_try="$ac_compile" 13790case "(($ac_try" in 13791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13792 *) ac_try_echo=$ac_try;; 13793esac 13794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13795$as_echo "$ac_try_echo") >&5 13796 (eval "$ac_compile") 2>conftest.er1 13797 ac_status=$? 13798 grep -v '^ *+' conftest.er1 >conftest.err 13799 rm -f conftest.er1 13800 cat conftest.err >&5 13801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13802 (exit $ac_status); } && { 13803 test -z "$ac_c_werror_flag" || 13804 test ! -s conftest.err 13805 } && test -s conftest.$ac_objext; then 13806 ac_cv_have_decl_xf86XVFillKeyHelperDrawable=yes 13807else 13808 $as_echo "$as_me: failed program was:" >&5 13809sed 's/^/| /' conftest.$ac_ext >&5 13810 13811 ac_cv_have_decl_xf86XVFillKeyHelperDrawable=no 13812fi 13813 13814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13815fi 13816{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86XVFillKeyHelperDrawable" >&5 13817$as_echo "$ac_cv_have_decl_xf86XVFillKeyHelperDrawable" >&6; } 13818if test "x$ac_cv_have_decl_xf86XVFillKeyHelperDrawable" = x""yes; then 13819 13820cat >>confdefs.h <<\_ACEOF 13821#define HAVE_XV_DRAWABLE_HELPER 1 13822_ACEOF 13823 13824fi 13825 13826 13827{ $as_echo "$as_me:$LINENO: checking whether xf86ModeBandwidth is declared" >&5 13828$as_echo_n "checking whether xf86ModeBandwidth is declared... " >&6; } 13829if test "${ac_cv_have_decl_xf86ModeBandwidth+set}" = set; then 13830 $as_echo_n "(cached) " >&6 13831else 13832 cat >conftest.$ac_ext <<_ACEOF 13833/* confdefs.h. */ 13834_ACEOF 13835cat confdefs.h >>conftest.$ac_ext 13836cat >>conftest.$ac_ext <<_ACEOF 13837/* end confdefs.h. */ 13838#include "xorg-server.h" 13839 #include "xf86Modes.h" 13840 13841int 13842main () 13843{ 13844#ifndef xf86ModeBandwidth 13845 (void) xf86ModeBandwidth; 13846#endif 13847 13848 ; 13849 return 0; 13850} 13851_ACEOF 13852rm -f conftest.$ac_objext 13853if { (ac_try="$ac_compile" 13854case "(($ac_try" in 13855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13856 *) ac_try_echo=$ac_try;; 13857esac 13858eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13859$as_echo "$ac_try_echo") >&5 13860 (eval "$ac_compile") 2>conftest.er1 13861 ac_status=$? 13862 grep -v '^ *+' conftest.er1 >conftest.err 13863 rm -f conftest.er1 13864 cat conftest.err >&5 13865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13866 (exit $ac_status); } && { 13867 test -z "$ac_c_werror_flag" || 13868 test ! -s conftest.err 13869 } && test -s conftest.$ac_objext; then 13870 ac_cv_have_decl_xf86ModeBandwidth=yes 13871else 13872 $as_echo "$as_me: failed program was:" >&5 13873sed 's/^/| /' conftest.$ac_ext >&5 13874 13875 ac_cv_have_decl_xf86ModeBandwidth=no 13876fi 13877 13878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13879fi 13880{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86ModeBandwidth" >&5 13881$as_echo "$ac_cv_have_decl_xf86ModeBandwidth" >&6; } 13882if test "x$ac_cv_have_decl_xf86ModeBandwidth" = x""yes; then 13883 13884cat >>confdefs.h <<\_ACEOF 13885#define HAVE_XF86MODEBANDWIDTH 1 13886_ACEOF 13887 13888fi 13889 13890 13891{ $as_echo "$as_me:$LINENO: checking whether xf86_crtc_clip_video_helper is declared" >&5 13892$as_echo_n "checking whether xf86_crtc_clip_video_helper is declared... " >&6; } 13893if test "${ac_cv_have_decl_xf86_crtc_clip_video_helper+set}" = set; then 13894 $as_echo_n "(cached) " >&6 13895else 13896 cat >conftest.$ac_ext <<_ACEOF 13897/* confdefs.h. */ 13898_ACEOF 13899cat confdefs.h >>conftest.$ac_ext 13900cat >>conftest.$ac_ext <<_ACEOF 13901/* end confdefs.h. */ 13902#include <X11/Xmd.h> 13903 #include "xorg-server.h" 13904 #include "xf86i2c.h" 13905 #include "xf86Crtc.h" 13906 13907int 13908main () 13909{ 13910#ifndef xf86_crtc_clip_video_helper 13911 (void) xf86_crtc_clip_video_helper; 13912#endif 13913 13914 ; 13915 return 0; 13916} 13917_ACEOF 13918rm -f conftest.$ac_objext 13919if { (ac_try="$ac_compile" 13920case "(($ac_try" in 13921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13922 *) ac_try_echo=$ac_try;; 13923esac 13924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13925$as_echo "$ac_try_echo") >&5 13926 (eval "$ac_compile") 2>conftest.er1 13927 ac_status=$? 13928 grep -v '^ *+' conftest.er1 >conftest.err 13929 rm -f conftest.er1 13930 cat conftest.err >&5 13931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13932 (exit $ac_status); } && { 13933 test -z "$ac_c_werror_flag" || 13934 test ! -s conftest.err 13935 } && test -s conftest.$ac_objext; then 13936 ac_cv_have_decl_xf86_crtc_clip_video_helper=yes 13937else 13938 $as_echo "$as_me: failed program was:" >&5 13939sed 's/^/| /' conftest.$ac_ext >&5 13940 13941 ac_cv_have_decl_xf86_crtc_clip_video_helper=no 13942fi 13943 13944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13945fi 13946{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86_crtc_clip_video_helper" >&5 13947$as_echo "$ac_cv_have_decl_xf86_crtc_clip_video_helper" >&6; } 13948if test "x$ac_cv_have_decl_xf86_crtc_clip_video_helper" = x""yes; then 13949 13950cat >>confdefs.h <<\_ACEOF 13951#define HAVE_XF86CRTCCLIPVIDEOHELPER 1 13952_ACEOF 13953 13954fi 13955 13956 13957{ $as_echo "$as_me:$LINENO: checking whether xf86RotateFreeShadow is declared" >&5 13958$as_echo_n "checking whether xf86RotateFreeShadow is declared... " >&6; } 13959if test "${ac_cv_have_decl_xf86RotateFreeShadow+set}" = set; then 13960 $as_echo_n "(cached) " >&6 13961else 13962 cat >conftest.$ac_ext <<_ACEOF 13963/* confdefs.h. */ 13964_ACEOF 13965cat confdefs.h >>conftest.$ac_ext 13966cat >>conftest.$ac_ext <<_ACEOF 13967/* end confdefs.h. */ 13968#include <xorg-server.h> 13969 #include <windowstr.h> 13970 #include <xf86Crtc.h> 13971 13972int 13973main () 13974{ 13975#ifndef xf86RotateFreeShadow 13976 (void) xf86RotateFreeShadow; 13977#endif 13978 13979 ; 13980 return 0; 13981} 13982_ACEOF 13983rm -f conftest.$ac_objext 13984if { (ac_try="$ac_compile" 13985case "(($ac_try" in 13986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13987 *) ac_try_echo=$ac_try;; 13988esac 13989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13990$as_echo "$ac_try_echo") >&5 13991 (eval "$ac_compile") 2>conftest.er1 13992 ac_status=$? 13993 grep -v '^ *+' conftest.er1 >conftest.err 13994 rm -f conftest.er1 13995 cat conftest.err >&5 13996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13997 (exit $ac_status); } && { 13998 test -z "$ac_c_werror_flag" || 13999 test ! -s conftest.err 14000 } && test -s conftest.$ac_objext; then 14001 ac_cv_have_decl_xf86RotateFreeShadow=yes 14002else 14003 $as_echo "$as_me: failed program was:" >&5 14004sed 's/^/| /' conftest.$ac_ext >&5 14005 14006 ac_cv_have_decl_xf86RotateFreeShadow=no 14007fi 14008 14009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14010fi 14011{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86RotateFreeShadow" >&5 14012$as_echo "$ac_cv_have_decl_xf86RotateFreeShadow" >&6; } 14013if test "x$ac_cv_have_decl_xf86RotateFreeShadow" = x""yes; then 14014 14015cat >>confdefs.h <<\_ACEOF 14016#define HAVE_FREE_SHADOW 1 14017_ACEOF 14018 14019fi 14020 14021 14022{ $as_echo "$as_me:$LINENO: checking whether pci_device_enable is declared" >&5 14023$as_echo_n "checking whether pci_device_enable is declared... " >&6; } 14024if test "${ac_cv_have_decl_pci_device_enable+set}" = set; then 14025 $as_echo_n "(cached) " >&6 14026else 14027 cat >conftest.$ac_ext <<_ACEOF 14028/* confdefs.h. */ 14029_ACEOF 14030cat confdefs.h >>conftest.$ac_ext 14031cat >>conftest.$ac_ext <<_ACEOF 14032/* end confdefs.h. */ 14033#include <pciaccess.h> 14034 14035int 14036main () 14037{ 14038#ifndef pci_device_enable 14039 (void) pci_device_enable; 14040#endif 14041 14042 ; 14043 return 0; 14044} 14045_ACEOF 14046rm -f conftest.$ac_objext 14047if { (ac_try="$ac_compile" 14048case "(($ac_try" in 14049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14050 *) ac_try_echo=$ac_try;; 14051esac 14052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14053$as_echo "$ac_try_echo") >&5 14054 (eval "$ac_compile") 2>conftest.er1 14055 ac_status=$? 14056 grep -v '^ *+' conftest.er1 >conftest.err 14057 rm -f conftest.er1 14058 cat conftest.err >&5 14059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14060 (exit $ac_status); } && { 14061 test -z "$ac_c_werror_flag" || 14062 test ! -s conftest.err 14063 } && test -s conftest.$ac_objext; then 14064 ac_cv_have_decl_pci_device_enable=yes 14065else 14066 $as_echo "$as_me: failed program was:" >&5 14067sed 's/^/| /' conftest.$ac_ext >&5 14068 14069 ac_cv_have_decl_pci_device_enable=no 14070fi 14071 14072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14073fi 14074{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_pci_device_enable" >&5 14075$as_echo "$ac_cv_have_decl_pci_device_enable" >&6; } 14076if test "x$ac_cv_have_decl_pci_device_enable" = x""yes; then 14077 14078cat >>confdefs.h <<\_ACEOF 14079#define HAVE_PCI_DEVICE_ENABLE 1 14080_ACEOF 14081 14082fi 14083 14084 14085{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5 14086$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; } 14087if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then 14088 $as_echo_n "(cached) " >&6 14089else 14090 cat >conftest.$ac_ext <<_ACEOF 14091/* confdefs.h. */ 14092_ACEOF 14093cat confdefs.h >>conftest.$ac_ext 14094cat >>conftest.$ac_ext <<_ACEOF 14095/* end confdefs.h. */ 14096#include "xorg-server.h" 14097 14098int 14099main () 14100{ 14101#ifndef XSERVER_LIBPCIACCESS 14102 (void) XSERVER_LIBPCIACCESS; 14103#endif 14104 14105 ; 14106 return 0; 14107} 14108_ACEOF 14109rm -f conftest.$ac_objext 14110if { (ac_try="$ac_compile" 14111case "(($ac_try" in 14112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14113 *) ac_try_echo=$ac_try;; 14114esac 14115eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14116$as_echo "$ac_try_echo") >&5 14117 (eval "$ac_compile") 2>conftest.er1 14118 ac_status=$? 14119 grep -v '^ *+' conftest.er1 >conftest.err 14120 rm -f conftest.er1 14121 cat conftest.err >&5 14122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14123 (exit $ac_status); } && { 14124 test -z "$ac_c_werror_flag" || 14125 test ! -s conftest.err 14126 } && test -s conftest.$ac_objext; then 14127 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes 14128else 14129 $as_echo "$as_me: failed program was:" >&5 14130sed 's/^/| /' conftest.$ac_ext >&5 14131 14132 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no 14133fi 14134 14135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14136fi 14137{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5 14138$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; } 14139if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then 14140 XSERVER_LIBPCIACCESS=yes 14141else 14142 XSERVER_LIBPCIACCESS=no 14143fi 14144 14145 14146 14147for ac_header in list.h 14148do 14149as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14150{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 14151$as_echo_n "checking for $ac_header... " >&6; } 14152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14153 $as_echo_n "(cached) " >&6 14154else 14155 cat >conftest.$ac_ext <<_ACEOF 14156/* confdefs.h. */ 14157_ACEOF 14158cat confdefs.h >>conftest.$ac_ext 14159cat >>conftest.$ac_ext <<_ACEOF 14160/* end confdefs.h. */ 14161#include <X11/Xdefs.h> 14162 #include "xorg-server.h" 14163 14164#include <$ac_header> 14165_ACEOF 14166rm -f conftest.$ac_objext 14167if { (ac_try="$ac_compile" 14168case "(($ac_try" in 14169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14170 *) ac_try_echo=$ac_try;; 14171esac 14172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14173$as_echo "$ac_try_echo") >&5 14174 (eval "$ac_compile") 2>conftest.er1 14175 ac_status=$? 14176 grep -v '^ *+' conftest.er1 >conftest.err 14177 rm -f conftest.er1 14178 cat conftest.err >&5 14179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14180 (exit $ac_status); } && { 14181 test -z "$ac_c_werror_flag" || 14182 test ! -s conftest.err 14183 } && test -s conftest.$ac_objext; then 14184 eval "$as_ac_Header=yes" 14185else 14186 $as_echo "$as_me: failed program was:" >&5 14187sed 's/^/| /' conftest.$ac_ext >&5 14188 14189 eval "$as_ac_Header=no" 14190fi 14191 14192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14193fi 14194ac_res=`eval 'as_val=${'$as_ac_Header'} 14195 $as_echo "$as_val"'` 14196 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14197$as_echo "$ac_res" >&6; } 14198as_val=`eval 'as_val=${'$as_ac_Header'} 14199 $as_echo "$as_val"'` 14200 if test "x$as_val" = x""yes; then 14201 cat >>confdefs.h <<_ACEOF 14202#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14203_ACEOF 14204 14205fi 14206 14207done 14208 14209 14210CPPFLAGS="$SAVE_CPPFLAGS" 14211 14212 if test "x$USE_EXA" = xyes; then 14213 USE_EXA_TRUE= 14214 USE_EXA_FALSE='#' 14215else 14216 USE_EXA_TRUE='#' 14217 USE_EXA_FALSE= 14218fi 14219 14220 14221 if test "x$LIBDRM_RADEON" = xyes; then 14222 XF86DRM_MODE_TRUE= 14223 XF86DRM_MODE_FALSE='#' 14224else 14225 XF86DRM_MODE_TRUE='#' 14226 XF86DRM_MODE_FALSE= 14227fi 14228 14229 14230if test "x$XSERVER_LIBPCIACCESS" = xyes; then 14231 14232pkg_failed=no 14233{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5 14234$as_echo_n "checking for PCIACCESS... " >&6; } 14235 14236if test -n "$PCIACCESS_CFLAGS"; then 14237 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 14238 elif test -n "$PKG_CONFIG"; then 14239 if test -n "$PKG_CONFIG" && \ 14240 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 14241 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 14242 ac_status=$? 14243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14244 (exit $ac_status); }; then 14245 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 14246else 14247 pkg_failed=yes 14248fi 14249 else 14250 pkg_failed=untried 14251fi 14252if test -n "$PCIACCESS_LIBS"; then 14253 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 14254 elif test -n "$PKG_CONFIG"; then 14255 if test -n "$PKG_CONFIG" && \ 14256 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 14257 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 14258 ac_status=$? 14259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14260 (exit $ac_status); }; then 14261 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 14262else 14263 pkg_failed=yes 14264fi 14265 else 14266 pkg_failed=untried 14267fi 14268 14269 14270 14271if test $pkg_failed = yes; then 14272 14273if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14274 _pkg_short_errors_supported=yes 14275else 14276 _pkg_short_errors_supported=no 14277fi 14278 if test $_pkg_short_errors_supported = yes; then 14279 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1` 14280 else 14281 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1` 14282 fi 14283 # Put the nasty error message in config.log where it belongs 14284 echo "$PCIACCESS_PKG_ERRORS" >&5 14285 14286 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met: 14287 14288$PCIACCESS_PKG_ERRORS 14289 14290Consider adjusting the PKG_CONFIG_PATH environment variable if you 14291installed software in a non-standard prefix. 14292 14293Alternatively, you may set the environment variables PCIACCESS_CFLAGS 14294and PCIACCESS_LIBS to avoid the need to call pkg-config. 14295See the pkg-config man page for more details. 14296" >&5 14297$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met: 14298 14299$PCIACCESS_PKG_ERRORS 14300 14301Consider adjusting the PKG_CONFIG_PATH environment variable if you 14302installed software in a non-standard prefix. 14303 14304Alternatively, you may set the environment variables PCIACCESS_CFLAGS 14305and PCIACCESS_LIBS to avoid the need to call pkg-config. 14306See the pkg-config man page for more details. 14307" >&2;} 14308 { (exit 1); exit 1; }; } 14309elif test $pkg_failed = untried; then 14310 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 14311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14312{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 14313is in your PATH or set the PKG_CONFIG environment variable to the full 14314path to pkg-config. 14315 14316Alternatively, you may set the environment variables PCIACCESS_CFLAGS 14317and PCIACCESS_LIBS to avoid the need to call pkg-config. 14318See the pkg-config man page for more details. 14319 14320To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14321See \`config.log' for more details." >&5 14322$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 14323is in your PATH or set the PKG_CONFIG environment variable to the full 14324path to pkg-config. 14325 14326Alternatively, you may set the environment variables PCIACCESS_CFLAGS 14327and PCIACCESS_LIBS to avoid the need to call pkg-config. 14328See the pkg-config man page for more details. 14329 14330To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14331See \`config.log' for more details." >&2;} 14332 { (exit 1); exit 1; }; }; } 14333else 14334 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 14335 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 14336 { $as_echo "$as_me:$LINENO: result: yes" >&5 14337$as_echo "yes" >&6; } 14338 : 14339fi 14340 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 14341fi 14342 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 14343 XSERVER_LIBPCIACCESS_TRUE= 14344 XSERVER_LIBPCIACCESS_FALSE='#' 14345else 14346 XSERVER_LIBPCIACCESS_TRUE='#' 14347 XSERVER_LIBPCIACCESS_FALSE= 14348fi 14349 14350 14351# Checks for headers/macros for byte swapping 14352# Known variants: 14353# <byteswap.h> bswap_16, bswap_32, bswap_64 (glibc) 14354# <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD) 14355# <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's) 14356# and a fallback to local macros if none of the above are found 14357 14358# if <byteswap.h> is found, assume it's the correct version 14359 14360for ac_header in byteswap.h 14361do 14362as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14363if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14364 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 14365$as_echo_n "checking for $ac_header... " >&6; } 14366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14367 $as_echo_n "(cached) " >&6 14368fi 14369ac_res=`eval 'as_val=${'$as_ac_Header'} 14370 $as_echo "$as_val"'` 14371 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14372$as_echo "$ac_res" >&6; } 14373else 14374 # Is the header compilable? 14375{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 14376$as_echo_n "checking $ac_header usability... " >&6; } 14377cat >conftest.$ac_ext <<_ACEOF 14378/* confdefs.h. */ 14379_ACEOF 14380cat confdefs.h >>conftest.$ac_ext 14381cat >>conftest.$ac_ext <<_ACEOF 14382/* end confdefs.h. */ 14383$ac_includes_default 14384#include <$ac_header> 14385_ACEOF 14386rm -f conftest.$ac_objext 14387if { (ac_try="$ac_compile" 14388case "(($ac_try" in 14389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14390 *) ac_try_echo=$ac_try;; 14391esac 14392eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14393$as_echo "$ac_try_echo") >&5 14394 (eval "$ac_compile") 2>conftest.er1 14395 ac_status=$? 14396 grep -v '^ *+' conftest.er1 >conftest.err 14397 rm -f conftest.er1 14398 cat conftest.err >&5 14399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14400 (exit $ac_status); } && { 14401 test -z "$ac_c_werror_flag" || 14402 test ! -s conftest.err 14403 } && test -s conftest.$ac_objext; then 14404 ac_header_compiler=yes 14405else 14406 $as_echo "$as_me: failed program was:" >&5 14407sed 's/^/| /' conftest.$ac_ext >&5 14408 14409 ac_header_compiler=no 14410fi 14411 14412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14413{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14414$as_echo "$ac_header_compiler" >&6; } 14415 14416# Is the header present? 14417{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 14418$as_echo_n "checking $ac_header presence... " >&6; } 14419cat >conftest.$ac_ext <<_ACEOF 14420/* confdefs.h. */ 14421_ACEOF 14422cat confdefs.h >>conftest.$ac_ext 14423cat >>conftest.$ac_ext <<_ACEOF 14424/* end confdefs.h. */ 14425#include <$ac_header> 14426_ACEOF 14427if { (ac_try="$ac_cpp conftest.$ac_ext" 14428case "(($ac_try" in 14429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14430 *) ac_try_echo=$ac_try;; 14431esac 14432eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14433$as_echo "$ac_try_echo") >&5 14434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14435 ac_status=$? 14436 grep -v '^ *+' conftest.er1 >conftest.err 14437 rm -f conftest.er1 14438 cat conftest.err >&5 14439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14440 (exit $ac_status); } >/dev/null && { 14441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 14442 test ! -s conftest.err 14443 }; then 14444 ac_header_preproc=yes 14445else 14446 $as_echo "$as_me: failed program was:" >&5 14447sed 's/^/| /' conftest.$ac_ext >&5 14448 14449 ac_header_preproc=no 14450fi 14451 14452rm -f conftest.err conftest.$ac_ext 14453{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14454$as_echo "$ac_header_preproc" >&6; } 14455 14456# So? What about this header? 14457case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14458 yes:no: ) 14459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14460$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14462$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14463 ac_header_preproc=yes 14464 ;; 14465 no:yes:* ) 14466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14467$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14469$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14471$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14473$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14475$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14477$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14478 ( cat <<\_ASBOX 14479## ---------------------------------------------------------------------- ## 14480## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 14481## ---------------------------------------------------------------------- ## 14482_ASBOX 14483 ) | sed "s/^/$as_me: WARNING: /" >&2 14484 ;; 14485esac 14486{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 14487$as_echo_n "checking for $ac_header... " >&6; } 14488if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14489 $as_echo_n "(cached) " >&6 14490else 14491 eval "$as_ac_Header=\$ac_header_preproc" 14492fi 14493ac_res=`eval 'as_val=${'$as_ac_Header'} 14494 $as_echo "$as_val"'` 14495 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14496$as_echo "$ac_res" >&6; } 14497 14498fi 14499as_val=`eval 'as_val=${'$as_ac_Header'} 14500 $as_echo "$as_val"'` 14501 if test "x$as_val" = x""yes; then 14502 cat >>confdefs.h <<_ACEOF 14503#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14504_ACEOF 14505 14506fi 14507 14508done 14509 14510 14511# if <sys/endian.h> is found, have to check which version 14512if test "${ac_cv_header_sys_endian_h+set}" = set; then 14513 { $as_echo "$as_me:$LINENO: checking for sys/endian.h" >&5 14514$as_echo_n "checking for sys/endian.h... " >&6; } 14515if test "${ac_cv_header_sys_endian_h+set}" = set; then 14516 $as_echo_n "(cached) " >&6 14517fi 14518{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_endian_h" >&5 14519$as_echo "$ac_cv_header_sys_endian_h" >&6; } 14520else 14521 # Is the header compilable? 14522{ $as_echo "$as_me:$LINENO: checking sys/endian.h usability" >&5 14523$as_echo_n "checking sys/endian.h usability... " >&6; } 14524cat >conftest.$ac_ext <<_ACEOF 14525/* confdefs.h. */ 14526_ACEOF 14527cat confdefs.h >>conftest.$ac_ext 14528cat >>conftest.$ac_ext <<_ACEOF 14529/* end confdefs.h. */ 14530$ac_includes_default 14531#include <sys/endian.h> 14532_ACEOF 14533rm -f conftest.$ac_objext 14534if { (ac_try="$ac_compile" 14535case "(($ac_try" in 14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14537 *) ac_try_echo=$ac_try;; 14538esac 14539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14540$as_echo "$ac_try_echo") >&5 14541 (eval "$ac_compile") 2>conftest.er1 14542 ac_status=$? 14543 grep -v '^ *+' conftest.er1 >conftest.err 14544 rm -f conftest.er1 14545 cat conftest.err >&5 14546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14547 (exit $ac_status); } && { 14548 test -z "$ac_c_werror_flag" || 14549 test ! -s conftest.err 14550 } && test -s conftest.$ac_objext; then 14551 ac_header_compiler=yes 14552else 14553 $as_echo "$as_me: failed program was:" >&5 14554sed 's/^/| /' conftest.$ac_ext >&5 14555 14556 ac_header_compiler=no 14557fi 14558 14559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14560{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14561$as_echo "$ac_header_compiler" >&6; } 14562 14563# Is the header present? 14564{ $as_echo "$as_me:$LINENO: checking sys/endian.h presence" >&5 14565$as_echo_n "checking sys/endian.h presence... " >&6; } 14566cat >conftest.$ac_ext <<_ACEOF 14567/* confdefs.h. */ 14568_ACEOF 14569cat confdefs.h >>conftest.$ac_ext 14570cat >>conftest.$ac_ext <<_ACEOF 14571/* end confdefs.h. */ 14572#include <sys/endian.h> 14573_ACEOF 14574if { (ac_try="$ac_cpp conftest.$ac_ext" 14575case "(($ac_try" in 14576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14577 *) ac_try_echo=$ac_try;; 14578esac 14579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14580$as_echo "$ac_try_echo") >&5 14581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14582 ac_status=$? 14583 grep -v '^ *+' conftest.er1 >conftest.err 14584 rm -f conftest.er1 14585 cat conftest.err >&5 14586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14587 (exit $ac_status); } >/dev/null && { 14588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 14589 test ! -s conftest.err 14590 }; then 14591 ac_header_preproc=yes 14592else 14593 $as_echo "$as_me: failed program was:" >&5 14594sed 's/^/| /' conftest.$ac_ext >&5 14595 14596 ac_header_preproc=no 14597fi 14598 14599rm -f conftest.err conftest.$ac_ext 14600{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14601$as_echo "$ac_header_preproc" >&6; } 14602 14603# So? What about this header? 14604case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14605 yes:no: ) 14606 { $as_echo "$as_me:$LINENO: WARNING: sys/endian.h: accepted by the compiler, rejected by the preprocessor!" >&5 14607$as_echo "$as_me: WARNING: sys/endian.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 14608 { $as_echo "$as_me:$LINENO: WARNING: sys/endian.h: proceeding with the compiler's result" >&5 14609$as_echo "$as_me: WARNING: sys/endian.h: proceeding with the compiler's result" >&2;} 14610 ac_header_preproc=yes 14611 ;; 14612 no:yes:* ) 14613 { $as_echo "$as_me:$LINENO: WARNING: sys/endian.h: present but cannot be compiled" >&5 14614$as_echo "$as_me: WARNING: sys/endian.h: present but cannot be compiled" >&2;} 14615 { $as_echo "$as_me:$LINENO: WARNING: sys/endian.h: check for missing prerequisite headers?" >&5 14616$as_echo "$as_me: WARNING: sys/endian.h: check for missing prerequisite headers?" >&2;} 14617 { $as_echo "$as_me:$LINENO: WARNING: sys/endian.h: see the Autoconf documentation" >&5 14618$as_echo "$as_me: WARNING: sys/endian.h: see the Autoconf documentation" >&2;} 14619 { $as_echo "$as_me:$LINENO: WARNING: sys/endian.h: section \"Present But Cannot Be Compiled\"" >&5 14620$as_echo "$as_me: WARNING: sys/endian.h: section \"Present But Cannot Be Compiled\"" >&2;} 14621 { $as_echo "$as_me:$LINENO: WARNING: sys/endian.h: proceeding with the preprocessor's result" >&5 14622$as_echo "$as_me: WARNING: sys/endian.h: proceeding with the preprocessor's result" >&2;} 14623 { $as_echo "$as_me:$LINENO: WARNING: sys/endian.h: in the future, the compiler will take precedence" >&5 14624$as_echo "$as_me: WARNING: sys/endian.h: in the future, the compiler will take precedence" >&2;} 14625 ( cat <<\_ASBOX 14626## ---------------------------------------------------------------------- ## 14627## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 14628## ---------------------------------------------------------------------- ## 14629_ASBOX 14630 ) | sed "s/^/$as_me: WARNING: /" >&2 14631 ;; 14632esac 14633{ $as_echo "$as_me:$LINENO: checking for sys/endian.h" >&5 14634$as_echo_n "checking for sys/endian.h... " >&6; } 14635if test "${ac_cv_header_sys_endian_h+set}" = set; then 14636 $as_echo_n "(cached) " >&6 14637else 14638 ac_cv_header_sys_endian_h=$ac_header_preproc 14639fi 14640{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_endian_h" >&5 14641$as_echo "$ac_cv_header_sys_endian_h" >&6; } 14642 14643fi 14644if test "x$ac_cv_header_sys_endian_h" = x""yes; then 14645 HAVE_SYS_ENDIAN_H="yes" 14646else 14647 HAVE_SYS_ENDIAN_H="no" 14648fi 14649 14650 14651 14652if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then 14653 { $as_echo "$as_me:$LINENO: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5 14654$as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; } 14655 cat >conftest.$ac_ext <<_ACEOF 14656/* confdefs.h. */ 14657_ACEOF 14658cat confdefs.h >>conftest.$ac_ext 14659cat >>conftest.$ac_ext <<_ACEOF 14660/* end confdefs.h. */ 14661 14662#include <sys/types.h> 14663#include <sys/endian.h> 14664 14665int 14666main () 14667{ 14668 14669int a = 1, b; 14670b = __swap16(a); 14671 14672 ; 14673 return 0; 14674} 14675 14676_ACEOF 14677rm -f conftest.$ac_objext conftest$ac_exeext 14678if { (ac_try="$ac_link" 14679case "(($ac_try" in 14680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14681 *) ac_try_echo=$ac_try;; 14682esac 14683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14684$as_echo "$ac_try_echo") >&5 14685 (eval "$ac_link") 2>conftest.er1 14686 ac_status=$? 14687 grep -v '^ *+' conftest.er1 >conftest.err 14688 rm -f conftest.er1 14689 cat conftest.err >&5 14690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14691 (exit $ac_status); } && { 14692 test -z "$ac_c_werror_flag" || 14693 test ! -s conftest.err 14694 } && test -s conftest$ac_exeext && { 14695 test "$cross_compiling" = yes || 14696 $as_test_x conftest$ac_exeext 14697 }; then 14698 SYS_ENDIAN__SWAP='yes' 14699else 14700 $as_echo "$as_me: failed program was:" >&5 14701sed 's/^/| /' conftest.$ac_ext >&5 14702 14703 SYS_ENDIAN__SWAP='no' 14704fi 14705 14706rm -rf conftest.dSYM 14707rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14708 conftest$ac_exeext conftest.$ac_ext 14709 { $as_echo "$as_me:$LINENO: result: $SYS_ENDIAN__SWAP" >&5 14710$as_echo "$SYS_ENDIAN__SWAP" >&6; } 14711 14712 { $as_echo "$as_me:$LINENO: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5 14713$as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; } 14714 cat >conftest.$ac_ext <<_ACEOF 14715/* confdefs.h. */ 14716_ACEOF 14717cat confdefs.h >>conftest.$ac_ext 14718cat >>conftest.$ac_ext <<_ACEOF 14719/* end confdefs.h. */ 14720 14721#include <sys/types.h> 14722#include <sys/endian.h> 14723 14724int 14725main () 14726{ 14727 14728int a = 1, b; 14729b = bswap16(a); 14730 14731 ; 14732 return 0; 14733} 14734 14735_ACEOF 14736rm -f conftest.$ac_objext conftest$ac_exeext 14737if { (ac_try="$ac_link" 14738case "(($ac_try" in 14739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14740 *) ac_try_echo=$ac_try;; 14741esac 14742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14743$as_echo "$ac_try_echo") >&5 14744 (eval "$ac_link") 2>conftest.er1 14745 ac_status=$? 14746 grep -v '^ *+' conftest.er1 >conftest.err 14747 rm -f conftest.er1 14748 cat conftest.err >&5 14749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14750 (exit $ac_status); } && { 14751 test -z "$ac_c_werror_flag" || 14752 test ! -s conftest.err 14753 } && test -s conftest$ac_exeext && { 14754 test "$cross_compiling" = yes || 14755 $as_test_x conftest$ac_exeext 14756 }; then 14757 SYS_ENDIAN_BSWAP='yes' 14758else 14759 $as_echo "$as_me: failed program was:" >&5 14760sed 's/^/| /' conftest.$ac_ext >&5 14761 14762 SYS_ENDIAN_BSWAP='no' 14763fi 14764 14765rm -rf conftest.dSYM 14766rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14767 conftest$ac_exeext conftest.$ac_ext 14768 { $as_echo "$as_me:$LINENO: result: $SYS_ENDIAN_BSWAP" >&5 14769$as_echo "$SYS_ENDIAN_BSWAP" >&6; } 14770 14771 if test "$SYS_ENDIAN_BSWAP" = "yes" ; then 14772 USE_SYS_ENDIAN_H=yes 14773 BSWAP=bswap 14774 else 14775 if test "$SYS_ENDIAN__SWAP" = "yes" ; then 14776 USE_SYS_ENDIAN_H=yes 14777 BSWAP=__swap 14778 else 14779 USE_SYS_ENDIAN_H=no 14780 fi 14781 fi 14782 14783 if test "$USE_SYS_ENDIAN_H" = "yes" ; then 14784 14785cat >>confdefs.h <<\_ACEOF 14786#define USE_SYS_ENDIAN_H 1 14787_ACEOF 14788 14789 14790cat >>confdefs.h <<_ACEOF 14791#define bswap_16 ${BSWAP}16 14792_ACEOF 14793 14794 14795cat >>confdefs.h <<_ACEOF 14796#define bswap_32 ${BSWAP}32 14797_ACEOF 14798 14799 14800cat >>confdefs.h <<_ACEOF 14801#define bswap_64 ${BSWAP}64 14802_ACEOF 14803 14804 fi 14805fi 14806 14807case $host_os in 14808 *linux*) 14809 14810cat >>confdefs.h <<\_ACEOF 14811#define FGL_LINUX 1 14812_ACEOF 14813 ;; 14814esac 14815 14816 14817 14818DRIVER_NAME=ati 14819 14820 14821{ $as_echo "$as_me:$LINENO: The atimisc sub-driver has been split out to xf86-video-mach64: 14822 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64 14823Please install that driver as well for mach64-based cards. 14824" >&5 14825$as_echo "$as_me: The atimisc sub-driver has been split out to xf86-video-mach64: 14826 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64 14827Please install that driver as well for mach64-based cards. 14828" >&6;} 14829 14830{ $as_echo "$as_me:$LINENO: The r128 sub-driver has been split out to xf86-video-r128: 14831 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128 14832Please install that driver as well for rage128-based cards. 14833" >&5 14834$as_echo "$as_me: The r128 sub-driver has been split out to xf86-video-r128: 14835 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128 14836Please install that driver as well for rage128-based cards. 14837" >&6;} 14838 14839ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 14840 14841cat >confcache <<\_ACEOF 14842# This file is a shell script that caches the results of configure 14843# tests run on this system so they can be shared between configure 14844# scripts and configure runs, see configure's option --config-cache. 14845# It is not useful on other systems. If it contains results you don't 14846# want to keep, you may remove or edit it. 14847# 14848# config.status only pays attention to the cache file if you give it 14849# the --recheck option to rerun configure. 14850# 14851# `ac_cv_env_foo' variables (set or unset) will be overridden when 14852# loading this file, other *unset* `ac_cv_foo' will be assigned the 14853# following values. 14854 14855_ACEOF 14856 14857# The following way of writing the cache mishandles newlines in values, 14858# but we know of no workaround that is simple, portable, and efficient. 14859# So, we kill variables containing newlines. 14860# Ultrix sh set writes to stderr and can't be redirected directly, 14861# and sets the high bit in the cache file unless we assign to the vars. 14862( 14863 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14864 eval ac_val=\$$ac_var 14865 case $ac_val in #( 14866 *${as_nl}*) 14867 case $ac_var in #( 14868 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 14869$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14870 esac 14871 case $ac_var in #( 14872 _ | IFS | as_nl) ;; #( 14873 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14874 *) $as_unset $ac_var ;; 14875 esac ;; 14876 esac 14877 done 14878 14879 (set) 2>&1 | 14880 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14881 *${as_nl}ac_space=\ *) 14882 # `set' does not quote correctly, so add quotes (double-quote 14883 # substitution turns \\\\ into \\, and sed turns \\ into \). 14884 sed -n \ 14885 "s/'/'\\\\''/g; 14886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14887 ;; #( 14888 *) 14889 # `set' quotes correctly as required by POSIX, so do not add quotes. 14890 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14891 ;; 14892 esac | 14893 sort 14894) | 14895 sed ' 14896 /^ac_cv_env_/b end 14897 t clear 14898 :clear 14899 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14900 t end 14901 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14902 :end' >>confcache 14903if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14904 if test -w "$cache_file"; then 14905 test "x$cache_file" != "x/dev/null" && 14906 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 14907$as_echo "$as_me: updating cache $cache_file" >&6;} 14908 cat confcache >$cache_file 14909 else 14910 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 14911$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14912 fi 14913fi 14914rm -f confcache 14915 14916test "x$prefix" = xNONE && prefix=$ac_default_prefix 14917# Let make expand exec_prefix. 14918test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14919 14920DEFS=-DHAVE_CONFIG_H 14921 14922ac_libobjs= 14923ac_ltlibobjs= 14924for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14925 # 1. Remove the extension, and $U if already installed. 14926 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14927 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14928 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14929 # will be set to the directory where LIBOBJS objects are built. 14930 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14931 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 14932done 14933LIBOBJS=$ac_libobjs 14934 14935LTLIBOBJS=$ac_ltlibobjs 14936 14937 14938if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14939 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 14940Usually this means the macro was only invoked conditionally." >&5 14941$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 14942Usually this means the macro was only invoked conditionally." >&2;} 14943 { (exit 1); exit 1; }; } 14944fi 14945if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14946 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 14947Usually this means the macro was only invoked conditionally." >&5 14948$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 14949Usually this means the macro was only invoked conditionally." >&2;} 14950 { (exit 1); exit 1; }; } 14951fi 14952 if test -n "$EXEEXT"; then 14953 am__EXEEXT_TRUE= 14954 am__EXEEXT_FALSE='#' 14955else 14956 am__EXEEXT_TRUE='#' 14957 am__EXEEXT_FALSE= 14958fi 14959 14960if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 14961 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 14962Usually this means the macro was only invoked conditionally." >&5 14963$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 14964Usually this means the macro was only invoked conditionally." >&2;} 14965 { (exit 1); exit 1; }; } 14966fi 14967if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 14968 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_XEXTPROTO_71\" was never defined. 14969Usually this means the macro was only invoked conditionally." >&5 14970$as_echo "$as_me: error: conditional \"HAVE_XEXTPROTO_71\" was never defined. 14971Usually this means the macro was only invoked conditionally." >&2;} 14972 { (exit 1); exit 1; }; } 14973fi 14974if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 14975 { { $as_echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined. 14976Usually this means the macro was only invoked conditionally." >&5 14977$as_echo "$as_me: error: conditional \"DRI\" was never defined. 14978Usually this means the macro was only invoked conditionally." >&2;} 14979 { (exit 1); exit 1; }; } 14980fi 14981if test -z "${DRM_MODE_TRUE}" && test -z "${DRM_MODE_FALSE}"; then 14982 { { $as_echo "$as_me:$LINENO: error: conditional \"DRM_MODE\" was never defined. 14983Usually this means the macro was only invoked conditionally." >&5 14984$as_echo "$as_me: error: conditional \"DRM_MODE\" was never defined. 14985Usually this means the macro was only invoked conditionally." >&2;} 14986 { (exit 1); exit 1; }; } 14987fi 14988if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then 14989 { { $as_echo "$as_me:$LINENO: error: conditional \"LIBUDEV\" was never defined. 14990Usually this means the macro was only invoked conditionally." >&5 14991$as_echo "$as_me: error: conditional \"LIBUDEV\" was never defined. 14992Usually this means the macro was only invoked conditionally." >&2;} 14993 { (exit 1); exit 1; }; } 14994fi 14995if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then 14996 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_EXA\" was never defined. 14997Usually this means the macro was only invoked conditionally." >&5 14998$as_echo "$as_me: error: conditional \"USE_EXA\" was never defined. 14999Usually this means the macro was only invoked conditionally." >&2;} 15000 { (exit 1); exit 1; }; } 15001fi 15002if test -z "${XF86DRM_MODE_TRUE}" && test -z "${XF86DRM_MODE_FALSE}"; then 15003 { { $as_echo "$as_me:$LINENO: error: conditional \"XF86DRM_MODE\" was never defined. 15004Usually this means the macro was only invoked conditionally." >&5 15005$as_echo "$as_me: error: conditional \"XF86DRM_MODE\" was never defined. 15006Usually this means the macro was only invoked conditionally." >&2;} 15007 { (exit 1); exit 1; }; } 15008fi 15009if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 15010 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 15011Usually this means the macro was only invoked conditionally." >&5 15012$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 15013Usually this means the macro was only invoked conditionally." >&2;} 15014 { (exit 1); exit 1; }; } 15015fi 15016 15017: ${CONFIG_STATUS=./config.status} 15018ac_write_fail=0 15019ac_clean_files_save=$ac_clean_files 15020ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15021{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 15022$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15023cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15024#! $SHELL 15025# Generated by $as_me. 15026# Run this file to recreate the current configuration. 15027# Compiler output produced by configure, useful for debugging 15028# configure, is in config.log if it exists. 15029 15030debug=false 15031ac_cs_recheck=false 15032ac_cs_silent=false 15033SHELL=\${CONFIG_SHELL-$SHELL} 15034_ACEOF 15035 15036cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15037## --------------------- ## 15038## M4sh Initialization. ## 15039## --------------------- ## 15040 15041# Be more Bourne compatible 15042DUALCASE=1; export DUALCASE # for MKS sh 15043if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15044 emulate sh 15045 NULLCMD=: 15046 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15047 # is contrary to our usage. Disable this feature. 15048 alias -g '${1+"$@"}'='"$@"' 15049 setopt NO_GLOB_SUBST 15050else 15051 case `(set -o) 2>/dev/null` in 15052 *posix*) set -o posix ;; 15053esac 15054 15055fi 15056 15057 15058 15059 15060# PATH needs CR 15061# Avoid depending upon Character Ranges. 15062as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15063as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15064as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15065as_cr_digits='0123456789' 15066as_cr_alnum=$as_cr_Letters$as_cr_digits 15067 15068as_nl=' 15069' 15070export as_nl 15071# Printing a long string crashes Solaris 7 /usr/bin/printf. 15072as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15073as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15074as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15075if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15076 as_echo='printf %s\n' 15077 as_echo_n='printf %s' 15078else 15079 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15080 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15081 as_echo_n='/usr/ucb/echo -n' 15082 else 15083 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15084 as_echo_n_body='eval 15085 arg=$1; 15086 case $arg in 15087 *"$as_nl"*) 15088 expr "X$arg" : "X\\(.*\\)$as_nl"; 15089 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15090 esac; 15091 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15092 ' 15093 export as_echo_n_body 15094 as_echo_n='sh -c $as_echo_n_body as_echo' 15095 fi 15096 export as_echo_body 15097 as_echo='sh -c $as_echo_body as_echo' 15098fi 15099 15100# The user is always right. 15101if test "${PATH_SEPARATOR+set}" != set; then 15102 PATH_SEPARATOR=: 15103 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15104 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15105 PATH_SEPARATOR=';' 15106 } 15107fi 15108 15109# Support unset when possible. 15110if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 15111 as_unset=unset 15112else 15113 as_unset=false 15114fi 15115 15116 15117# IFS 15118# We need space, tab and new line, in precisely that order. Quoting is 15119# there to prevent editors from complaining about space-tab. 15120# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15121# splitting by setting IFS to empty value.) 15122IFS=" "" $as_nl" 15123 15124# Find who we are. Look in the path if we contain no directory separator. 15125case $0 in 15126 *[\\/]* ) as_myself=$0 ;; 15127 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15128for as_dir in $PATH 15129do 15130 IFS=$as_save_IFS 15131 test -z "$as_dir" && as_dir=. 15132 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15133done 15134IFS=$as_save_IFS 15135 15136 ;; 15137esac 15138# We did not find ourselves, most probably we were run as `sh COMMAND' 15139# in which case we are not to be found in the path. 15140if test "x$as_myself" = x; then 15141 as_myself=$0 15142fi 15143if test ! -f "$as_myself"; then 15144 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15145 { (exit 1); exit 1; } 15146fi 15147 15148# Work around bugs in pre-3.0 UWIN ksh. 15149for as_var in ENV MAIL MAILPATH 15150do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 15151done 15152PS1='$ ' 15153PS2='> ' 15154PS4='+ ' 15155 15156# NLS nuisances. 15157LC_ALL=C 15158export LC_ALL 15159LANGUAGE=C 15160export LANGUAGE 15161 15162# Required to use basename. 15163if expr a : '\(a\)' >/dev/null 2>&1 && 15164 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15165 as_expr=expr 15166else 15167 as_expr=false 15168fi 15169 15170if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15171 as_basename=basename 15172else 15173 as_basename=false 15174fi 15175 15176 15177# Name of the executable. 15178as_me=`$as_basename -- "$0" || 15179$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15180 X"$0" : 'X\(//\)$' \| \ 15181 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15182$as_echo X/"$0" | 15183 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15184 s//\1/ 15185 q 15186 } 15187 /^X\/\(\/\/\)$/{ 15188 s//\1/ 15189 q 15190 } 15191 /^X\/\(\/\).*/{ 15192 s//\1/ 15193 q 15194 } 15195 s/.*/./; q'` 15196 15197# CDPATH. 15198$as_unset CDPATH 15199 15200 15201 15202 as_lineno_1=$LINENO 15203 as_lineno_2=$LINENO 15204 test "x$as_lineno_1" != "x$as_lineno_2" && 15205 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 15206 15207 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 15208 # uniformly replaced by the line number. The first 'sed' inserts a 15209 # line-number line after each line using $LINENO; the second 'sed' 15210 # does the real work. The second script uses 'N' to pair each 15211 # line-number line with the line containing $LINENO, and appends 15212 # trailing '-' during substitution so that $LINENO is not a special 15213 # case at line end. 15214 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 15215 # scripts with optimization help from Paolo Bonzini. Blame Lee 15216 # E. McMahon (1931-1989) for sed's syntax. :-) 15217 sed -n ' 15218 p 15219 /[$]LINENO/= 15220 ' <$as_myself | 15221 sed ' 15222 s/[$]LINENO.*/&-/ 15223 t lineno 15224 b 15225 :lineno 15226 N 15227 :loop 15228 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 15229 t loop 15230 s/-\n.*// 15231 ' >$as_me.lineno && 15232 chmod +x "$as_me.lineno" || 15233 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 15234 { (exit 1); exit 1; }; } 15235 15236 # Don't try to exec as it changes $[0], causing all sort of problems 15237 # (the dirname of $[0] is not the place where we might find the 15238 # original and so on. Autoconf is especially sensitive to this). 15239 . "./$as_me.lineno" 15240 # Exit status is that of the last command. 15241 exit 15242} 15243 15244 15245if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15246 as_dirname=dirname 15247else 15248 as_dirname=false 15249fi 15250 15251ECHO_C= ECHO_N= ECHO_T= 15252case `echo -n x` in 15253-n*) 15254 case `echo 'x\c'` in 15255 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15256 *) ECHO_C='\c';; 15257 esac;; 15258*) 15259 ECHO_N='-n';; 15260esac 15261if expr a : '\(a\)' >/dev/null 2>&1 && 15262 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15263 as_expr=expr 15264else 15265 as_expr=false 15266fi 15267 15268rm -f conf$$ conf$$.exe conf$$.file 15269if test -d conf$$.dir; then 15270 rm -f conf$$.dir/conf$$.file 15271else 15272 rm -f conf$$.dir 15273 mkdir conf$$.dir 2>/dev/null 15274fi 15275if (echo >conf$$.file) 2>/dev/null; then 15276 if ln -s conf$$.file conf$$ 2>/dev/null; then 15277 as_ln_s='ln -s' 15278 # ... but there are two gotchas: 15279 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15280 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15281 # In both cases, we have to default to `cp -p'. 15282 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15283 as_ln_s='cp -p' 15284 elif ln conf$$.file conf$$ 2>/dev/null; then 15285 as_ln_s=ln 15286 else 15287 as_ln_s='cp -p' 15288 fi 15289else 15290 as_ln_s='cp -p' 15291fi 15292rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15293rmdir conf$$.dir 2>/dev/null 15294 15295if mkdir -p . 2>/dev/null; then 15296 as_mkdir_p=: 15297else 15298 test -d ./-p && rmdir ./-p 15299 as_mkdir_p=false 15300fi 15301 15302if test -x / >/dev/null 2>&1; then 15303 as_test_x='test -x' 15304else 15305 if ls -dL / >/dev/null 2>&1; then 15306 as_ls_L_option=L 15307 else 15308 as_ls_L_option= 15309 fi 15310 as_test_x=' 15311 eval sh -c '\'' 15312 if test -d "$1"; then 15313 test -d "$1/."; 15314 else 15315 case $1 in 15316 -*)set "./$1";; 15317 esac; 15318 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 15319 ???[sx]*):;;*)false;;esac;fi 15320 '\'' sh 15321 ' 15322fi 15323as_executable_p=$as_test_x 15324 15325# Sed expression to map a string onto a valid CPP name. 15326as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15327 15328# Sed expression to map a string onto a valid variable name. 15329as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15330 15331 15332exec 6>&1 15333 15334# Save the log message, to keep $[0] and so on meaningful, and to 15335# report actual input values of CONFIG_FILES etc. instead of their 15336# values after options handling. 15337ac_log=" 15338This file was extended by xf86-video-ati $as_me 6.14.2, which was 15339generated by GNU Autoconf 2.63. Invocation command line was 15340 15341 CONFIG_FILES = $CONFIG_FILES 15342 CONFIG_HEADERS = $CONFIG_HEADERS 15343 CONFIG_LINKS = $CONFIG_LINKS 15344 CONFIG_COMMANDS = $CONFIG_COMMANDS 15345 $ $0 $@ 15346 15347on `(hostname || uname -n) 2>/dev/null | sed 1q` 15348" 15349 15350_ACEOF 15351 15352case $ac_config_files in *" 15353"*) set x $ac_config_files; shift; ac_config_files=$*;; 15354esac 15355 15356case $ac_config_headers in *" 15357"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15358esac 15359 15360 15361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15362# Files that config.status was made for. 15363config_files="$ac_config_files" 15364config_headers="$ac_config_headers" 15365config_commands="$ac_config_commands" 15366 15367_ACEOF 15368 15369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15370ac_cs_usage="\ 15371\`$as_me' instantiates files from templates according to the 15372current configuration. 15373 15374Usage: $0 [OPTION]... [FILE]... 15375 15376 -h, --help print this help, then exit 15377 -V, --version print version number and configuration settings, then exit 15378 -q, --quiet, --silent 15379 do not print progress messages 15380 -d, --debug don't remove temporary files 15381 --recheck update $as_me by reconfiguring in the same conditions 15382 --file=FILE[:TEMPLATE] 15383 instantiate the configuration file FILE 15384 --header=FILE[:TEMPLATE] 15385 instantiate the configuration header FILE 15386 15387Configuration files: 15388$config_files 15389 15390Configuration headers: 15391$config_headers 15392 15393Configuration commands: 15394$config_commands 15395 15396Report bugs to <bug-autoconf@gnu.org>." 15397 15398_ACEOF 15399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15400ac_cs_version="\\ 15401xf86-video-ati config.status 6.14.2 15402configured by $0, generated by GNU Autoconf 2.63, 15403 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 15404 15405Copyright (C) 2008 Free Software Foundation, Inc. 15406This config.status script is free software; the Free Software Foundation 15407gives unlimited permission to copy, distribute and modify it." 15408 15409ac_pwd='$ac_pwd' 15410srcdir='$srcdir' 15411INSTALL='$INSTALL' 15412MKDIR_P='$MKDIR_P' 15413AWK='$AWK' 15414test -n "\$AWK" || AWK=awk 15415_ACEOF 15416 15417cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15418# The default lists apply if the user does not specify any file. 15419ac_need_defaults=: 15420while test $# != 0 15421do 15422 case $1 in 15423 --*=*) 15424 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15425 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15426 ac_shift=: 15427 ;; 15428 *) 15429 ac_option=$1 15430 ac_optarg=$2 15431 ac_shift=shift 15432 ;; 15433 esac 15434 15435 case $ac_option in 15436 # Handling of the options. 15437 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15438 ac_cs_recheck=: ;; 15439 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15440 $as_echo "$ac_cs_version"; exit ;; 15441 --debug | --debu | --deb | --de | --d | -d ) 15442 debug=: ;; 15443 --file | --fil | --fi | --f ) 15444 $ac_shift 15445 case $ac_optarg in 15446 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15447 esac 15448 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 15449 ac_need_defaults=false;; 15450 --header | --heade | --head | --hea ) 15451 $ac_shift 15452 case $ac_optarg in 15453 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15454 esac 15455 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 15456 ac_need_defaults=false;; 15457 --he | --h) 15458 # Conflict between --help and --header 15459 { $as_echo "$as_me: error: ambiguous option: $1 15460Try \`$0 --help' for more information." >&2 15461 { (exit 1); exit 1; }; };; 15462 --help | --hel | -h ) 15463 $as_echo "$ac_cs_usage"; exit ;; 15464 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15465 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15466 ac_cs_silent=: ;; 15467 15468 # This is an error. 15469 -*) { $as_echo "$as_me: error: unrecognized option: $1 15470Try \`$0 --help' for more information." >&2 15471 { (exit 1); exit 1; }; } ;; 15472 15473 *) ac_config_targets="$ac_config_targets $1" 15474 ac_need_defaults=false ;; 15475 15476 esac 15477 shift 15478done 15479 15480ac_configure_extra_args= 15481 15482if $ac_cs_silent; then 15483 exec 6>/dev/null 15484 ac_configure_extra_args="$ac_configure_extra_args --silent" 15485fi 15486 15487_ACEOF 15488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15489if \$ac_cs_recheck; then 15490 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15491 shift 15492 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15493 CONFIG_SHELL='$SHELL' 15494 export CONFIG_SHELL 15495 exec "\$@" 15496fi 15497 15498_ACEOF 15499cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15500exec 5>>config.log 15501{ 15502 echo 15503 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15504## Running $as_me. ## 15505_ASBOX 15506 $as_echo "$ac_log" 15507} >&5 15508 15509_ACEOF 15510cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15511# 15512# INIT-COMMANDS 15513# 15514AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15515 15516 15517# The HP-UX ksh and POSIX shell print the target directory to stdout 15518# if CDPATH is set. 15519(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15520 15521sed_quote_subst='$sed_quote_subst' 15522double_quote_subst='$double_quote_subst' 15523delay_variable_subst='$delay_variable_subst' 15524enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 15525macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 15526macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 15527enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 15528pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 15529enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 15530host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 15531host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 15532host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 15533build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 15534build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 15535build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 15536SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 15537Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 15538GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 15539EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 15540FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 15541LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 15542NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 15543LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 15544max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 15545ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 15546exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 15547lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 15548lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 15549lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 15550reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 15551reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15552OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 15553deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 15554file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 15555AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 15556AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 15557STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 15558RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 15559old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15560old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15561old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15562CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 15563CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 15564compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 15565GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 15566lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 15567lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 15568lt_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"`' 15569lt_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"`' 15570objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 15571SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 15572ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 15573MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 15574lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 15575lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 15576lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 15577lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 15578lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 15579need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 15580DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 15581NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 15582LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 15583OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 15584OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 15585libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 15586shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15587extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15588archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 15589enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 15590export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 15591whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 15592compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 15593old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15594old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15595archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15596archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15597module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15598module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15599with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 15600allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 15601no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 15602hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 15603hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 15604hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 15605hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 15606hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 15607hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 15608hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 15609hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 15610inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 15611link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 15612fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 15613always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 15614export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15615exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 15616include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 15617prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15618file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 15619variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 15620need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 15621need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 15622version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 15623runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 15624shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 15625shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 15626libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 15627library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 15628soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 15629postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15630postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15631finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15632finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 15633hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 15634sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 15635sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 15636hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 15637enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 15638enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 15639enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 15640old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 15641striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 15642 15643LTCC='$LTCC' 15644LTCFLAGS='$LTCFLAGS' 15645compiler='$compiler_DEFAULT' 15646 15647# Quote evaled strings. 15648for var in SED \ 15649GREP \ 15650EGREP \ 15651FGREP \ 15652LD \ 15653NM \ 15654LN_S \ 15655lt_SP2NL \ 15656lt_NL2SP \ 15657reload_flag \ 15658OBJDUMP \ 15659deplibs_check_method \ 15660file_magic_cmd \ 15661AR \ 15662AR_FLAGS \ 15663STRIP \ 15664RANLIB \ 15665CC \ 15666CFLAGS \ 15667compiler \ 15668lt_cv_sys_global_symbol_pipe \ 15669lt_cv_sys_global_symbol_to_cdecl \ 15670lt_cv_sys_global_symbol_to_c_name_address \ 15671lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15672SHELL \ 15673ECHO \ 15674lt_prog_compiler_no_builtin_flag \ 15675lt_prog_compiler_wl \ 15676lt_prog_compiler_pic \ 15677lt_prog_compiler_static \ 15678lt_cv_prog_compiler_c_o \ 15679need_locks \ 15680DSYMUTIL \ 15681NMEDIT \ 15682LIPO \ 15683OTOOL \ 15684OTOOL64 \ 15685shrext_cmds \ 15686export_dynamic_flag_spec \ 15687whole_archive_flag_spec \ 15688compiler_needs_object \ 15689with_gnu_ld \ 15690allow_undefined_flag \ 15691no_undefined_flag \ 15692hardcode_libdir_flag_spec \ 15693hardcode_libdir_flag_spec_ld \ 15694hardcode_libdir_separator \ 15695fix_srcfile_path \ 15696exclude_expsyms \ 15697include_expsyms \ 15698file_list_spec \ 15699variables_saved_for_relink \ 15700libname_spec \ 15701library_names_spec \ 15702soname_spec \ 15703finish_eval \ 15704old_striplib \ 15705striplib; do 15706 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 15707 *[\\\\\\\`\\"\\\$]*) 15708 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15709 ;; 15710 *) 15711 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15712 ;; 15713 esac 15714done 15715 15716# Double-quote double-evaled strings. 15717for var in reload_cmds \ 15718old_postinstall_cmds \ 15719old_postuninstall_cmds \ 15720old_archive_cmds \ 15721extract_expsyms_cmds \ 15722old_archive_from_new_cmds \ 15723old_archive_from_expsyms_cmds \ 15724archive_cmds \ 15725archive_expsym_cmds \ 15726module_cmds \ 15727module_expsym_cmds \ 15728export_symbols_cmds \ 15729prelink_cmds \ 15730postinstall_cmds \ 15731postuninstall_cmds \ 15732finish_cmds \ 15733sys_lib_search_path_spec \ 15734sys_lib_dlsearch_path_spec; do 15735 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 15736 *[\\\\\\\`\\"\\\$]*) 15737 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 15738 ;; 15739 *) 15740 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15741 ;; 15742 esac 15743done 15744 15745# Fix-up fallback echo if it was mangled by the above quoting rules. 15746case \$lt_ECHO in 15747*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 15748 ;; 15749esac 15750 15751ac_aux_dir='$ac_aux_dir' 15752xsi_shell='$xsi_shell' 15753lt_shell_append='$lt_shell_append' 15754 15755# See if we are running on zsh, and set the options which allow our 15756# commands through without removal of \ escapes INIT. 15757if test -n "\${ZSH_VERSION+set}" ; then 15758 setopt NO_GLOB_SUBST 15759fi 15760 15761 15762 PACKAGE='$PACKAGE' 15763 VERSION='$VERSION' 15764 TIMESTAMP='$TIMESTAMP' 15765 RM='$RM' 15766 ofile='$ofile' 15767 15768 15769 15770 15771_ACEOF 15772 15773cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15774 15775# Handling of arguments. 15776for ac_config_target in $ac_config_targets 15777do 15778 case $ac_config_target in 15779 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 15780 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15781 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15782 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15783 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 15784 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 15785 15786 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 15787$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 15788 { (exit 1); exit 1; }; };; 15789 esac 15790done 15791 15792 15793# If the user did not use the arguments to specify the items to instantiate, 15794# then the envvar interface is used. Set only those that are not. 15795# We use the long form for the default assignment because of an extremely 15796# bizarre bug on SunOS 4.1.3. 15797if $ac_need_defaults; then 15798 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15799 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15800 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15801fi 15802 15803# Have a temporary directory for convenience. Make it in the build tree 15804# simply because there is no reason against having it here, and in addition, 15805# creating and moving files from /tmp can sometimes cause problems. 15806# Hook for its removal unless debugging. 15807# Note that there is a small window in which the directory will not be cleaned: 15808# after its creation but before its name has been assigned to `$tmp'. 15809$debug || 15810{ 15811 tmp= 15812 trap 'exit_status=$? 15813 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 15814' 0 15815 trap '{ (exit 1); exit 1; }' 1 2 13 15 15816} 15817# Create a (secure) tmp directory for tmp files. 15818 15819{ 15820 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15821 test -n "$tmp" && test -d "$tmp" 15822} || 15823{ 15824 tmp=./conf$$-$RANDOM 15825 (umask 077 && mkdir "$tmp") 15826} || 15827{ 15828 $as_echo "$as_me: cannot create a temporary directory in ." >&2 15829 { (exit 1); exit 1; } 15830} 15831 15832# Set up the scripts for CONFIG_FILES section. 15833# No need to generate them if there are no CONFIG_FILES. 15834# This happens for instance with `./config.status config.h'. 15835if test -n "$CONFIG_FILES"; then 15836 15837 15838ac_cr=' 15839' 15840ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15841if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15842 ac_cs_awk_cr='\\r' 15843else 15844 ac_cs_awk_cr=$ac_cr 15845fi 15846 15847echo 'BEGIN {' >"$tmp/subs1.awk" && 15848_ACEOF 15849 15850 15851{ 15852 echo "cat >conf$$subs.awk <<_ACEOF" && 15853 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15854 echo "_ACEOF" 15855} >conf$$subs.sh || 15856 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 15857$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 15858 { (exit 1); exit 1; }; } 15859ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 15860ac_delim='%!_!# ' 15861for ac_last_try in false false false false false :; do 15862 . ./conf$$subs.sh || 15863 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 15864$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 15865 { (exit 1); exit 1; }; } 15866 15867 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15868 if test $ac_delim_n = $ac_delim_num; then 15869 break 15870 elif $ac_last_try; then 15871 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 15872$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 15873 { (exit 1); exit 1; }; } 15874 else 15875 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15876 fi 15877done 15878rm -f conf$$subs.sh 15879 15880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15881cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 15882_ACEOF 15883sed -n ' 15884h 15885s/^/S["/; s/!.*/"]=/ 15886p 15887g 15888s/^[^!]*!// 15889:repl 15890t repl 15891s/'"$ac_delim"'$// 15892t delim 15893:nl 15894h 15895s/\(.\{148\}\).*/\1/ 15896t more1 15897s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15898p 15899n 15900b repl 15901:more1 15902s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15903p 15904g 15905s/.\{148\}// 15906t nl 15907:delim 15908h 15909s/\(.\{148\}\).*/\1/ 15910t more2 15911s/["\\]/\\&/g; s/^/"/; s/$/"/ 15912p 15913b 15914:more2 15915s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15916p 15917g 15918s/.\{148\}// 15919t delim 15920' <conf$$subs.awk | sed ' 15921/^[^""]/{ 15922 N 15923 s/\n// 15924} 15925' >>$CONFIG_STATUS || ac_write_fail=1 15926rm -f conf$$subs.awk 15927cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15928_ACAWK 15929cat >>"\$tmp/subs1.awk" <<_ACAWK && 15930 for (key in S) S_is_set[key] = 1 15931 FS = "" 15932 15933} 15934{ 15935 line = $ 0 15936 nfields = split(line, field, "@") 15937 substed = 0 15938 len = length(field[1]) 15939 for (i = 2; i < nfields; i++) { 15940 key = field[i] 15941 keylen = length(key) 15942 if (S_is_set[key]) { 15943 value = S[key] 15944 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15945 len += length(value) + length(field[++i]) 15946 substed = 1 15947 } else 15948 len += 1 + keylen 15949 } 15950 15951 print line 15952} 15953 15954_ACAWK 15955_ACEOF 15956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15957if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15958 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15959else 15960 cat 15961fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 15962 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 15963$as_echo "$as_me: error: could not setup config files machinery" >&2;} 15964 { (exit 1); exit 1; }; } 15965_ACEOF 15966 15967# VPATH may cause trouble with some makes, so we remove $(srcdir), 15968# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 15969# trailing colons and then remove the whole line if VPATH becomes empty 15970# (actually we leave an empty line to preserve line numbers). 15971if test "x$srcdir" = x.; then 15972 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 15973s/:*\$(srcdir):*/:/ 15974s/:*\${srcdir}:*/:/ 15975s/:*@srcdir@:*/:/ 15976s/^\([^=]*=[ ]*\):*/\1/ 15977s/:*$// 15978s/^[^=]*=[ ]*$// 15979}' 15980fi 15981 15982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15983fi # test -n "$CONFIG_FILES" 15984 15985# Set up the scripts for CONFIG_HEADERS section. 15986# No need to generate them if there are no CONFIG_HEADERS. 15987# This happens for instance with `./config.status Makefile'. 15988if test -n "$CONFIG_HEADERS"; then 15989cat >"$tmp/defines.awk" <<\_ACAWK || 15990BEGIN { 15991_ACEOF 15992 15993# Transform confdefs.h into an awk script `defines.awk', embedded as 15994# here-document in config.status, that substitutes the proper values into 15995# config.h.in to produce config.h. 15996 15997# Create a delimiter string that does not exist in confdefs.h, to ease 15998# handling of long lines. 15999ac_delim='%!_!# ' 16000for ac_last_try in false false :; do 16001 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 16002 if test -z "$ac_t"; then 16003 break 16004 elif $ac_last_try; then 16005 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 16006$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 16007 { (exit 1); exit 1; }; } 16008 else 16009 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16010 fi 16011done 16012 16013# For the awk script, D is an array of macro values keyed by name, 16014# likewise P contains macro parameters if any. Preserve backslash 16015# newline sequences. 16016 16017ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16018sed -n ' 16019s/.\{148\}/&'"$ac_delim"'/g 16020t rset 16021:rset 16022s/^[ ]*#[ ]*define[ ][ ]*/ / 16023t def 16024d 16025:def 16026s/\\$// 16027t bsnl 16028s/["\\]/\\&/g 16029s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16030D["\1"]=" \3"/p 16031s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16032d 16033:bsnl 16034s/["\\]/\\&/g 16035s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16036D["\1"]=" \3\\\\\\n"\\/p 16037t cont 16038s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16039t cont 16040d 16041:cont 16042n 16043s/.\{148\}/&'"$ac_delim"'/g 16044t clear 16045:clear 16046s/\\$// 16047t bsnlc 16048s/["\\]/\\&/g; s/^/"/; s/$/"/p 16049d 16050:bsnlc 16051s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16052b cont 16053' <confdefs.h | sed ' 16054s/'"$ac_delim"'/"\\\ 16055"/g' >>$CONFIG_STATUS || ac_write_fail=1 16056 16057cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16058 for (key in D) D_is_set[key] = 1 16059 FS = "" 16060} 16061/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16062 line = \$ 0 16063 split(line, arg, " ") 16064 if (arg[1] == "#") { 16065 defundef = arg[2] 16066 mac1 = arg[3] 16067 } else { 16068 defundef = substr(arg[1], 2) 16069 mac1 = arg[2] 16070 } 16071 split(mac1, mac2, "(") #) 16072 macro = mac2[1] 16073 prefix = substr(line, 1, index(line, defundef) - 1) 16074 if (D_is_set[macro]) { 16075 # Preserve the white space surrounding the "#". 16076 print prefix "define", macro P[macro] D[macro] 16077 next 16078 } else { 16079 # Replace #undef with comments. This is necessary, for example, 16080 # in the case of _POSIX_SOURCE, which is predefined and required 16081 # on some systems where configure will not decide to define it. 16082 if (defundef == "undef") { 16083 print "/*", prefix defundef, macro, "*/" 16084 next 16085 } 16086 } 16087} 16088{ print } 16089_ACAWK 16090_ACEOF 16091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16092 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 16093$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 16094 { (exit 1); exit 1; }; } 16095fi # test -n "$CONFIG_HEADERS" 16096 16097 16098eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16099shift 16100for ac_tag 16101do 16102 case $ac_tag in 16103 :[FHLC]) ac_mode=$ac_tag; continue;; 16104 esac 16105 case $ac_mode$ac_tag in 16106 :[FHL]*:*);; 16107 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 16108$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 16109 { (exit 1); exit 1; }; };; 16110 :[FH]-) ac_tag=-:-;; 16111 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16112 esac 16113 ac_save_IFS=$IFS 16114 IFS=: 16115 set x $ac_tag 16116 IFS=$ac_save_IFS 16117 shift 16118 ac_file=$1 16119 shift 16120 16121 case $ac_mode in 16122 :L) ac_source=$1;; 16123 :[FH]) 16124 ac_file_inputs= 16125 for ac_f 16126 do 16127 case $ac_f in 16128 -) ac_f="$tmp/stdin";; 16129 *) # Look for the file first in the build tree, then in the source tree 16130 # (if the path is not absolute). The absolute path cannot be DOS-style, 16131 # because $ac_f cannot contain `:'. 16132 test -f "$ac_f" || 16133 case $ac_f in 16134 [\\/$]*) false;; 16135 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16136 esac || 16137 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 16138$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 16139 { (exit 1); exit 1; }; };; 16140 esac 16141 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16142 ac_file_inputs="$ac_file_inputs '$ac_f'" 16143 done 16144 16145 # Let's still pretend it is `configure' which instantiates (i.e., don't 16146 # use $as_me), people would be surprised to read: 16147 # /* config.h. Generated by config.status. */ 16148 configure_input='Generated from '` 16149 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16150 `' by configure.' 16151 if test x"$ac_file" != x-; then 16152 configure_input="$ac_file. $configure_input" 16153 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 16154$as_echo "$as_me: creating $ac_file" >&6;} 16155 fi 16156 # Neutralize special characters interpreted by sed in replacement strings. 16157 case $configure_input in #( 16158 *\&* | *\|* | *\\* ) 16159 ac_sed_conf_input=`$as_echo "$configure_input" | 16160 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16161 *) ac_sed_conf_input=$configure_input;; 16162 esac 16163 16164 case $ac_tag in 16165 *:-:* | *:-) cat >"$tmp/stdin" \ 16166 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 16167$as_echo "$as_me: error: could not create $ac_file" >&2;} 16168 { (exit 1); exit 1; }; } ;; 16169 esac 16170 ;; 16171 esac 16172 16173 ac_dir=`$as_dirname -- "$ac_file" || 16174$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16175 X"$ac_file" : 'X\(//\)[^/]' \| \ 16176 X"$ac_file" : 'X\(//\)$' \| \ 16177 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16178$as_echo X"$ac_file" | 16179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16180 s//\1/ 16181 q 16182 } 16183 /^X\(\/\/\)[^/].*/{ 16184 s//\1/ 16185 q 16186 } 16187 /^X\(\/\/\)$/{ 16188 s//\1/ 16189 q 16190 } 16191 /^X\(\/\).*/{ 16192 s//\1/ 16193 q 16194 } 16195 s/.*/./; q'` 16196 { as_dir="$ac_dir" 16197 case $as_dir in #( 16198 -*) as_dir=./$as_dir;; 16199 esac 16200 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 16201 as_dirs= 16202 while :; do 16203 case $as_dir in #( 16204 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16205 *) as_qdir=$as_dir;; 16206 esac 16207 as_dirs="'$as_qdir' $as_dirs" 16208 as_dir=`$as_dirname -- "$as_dir" || 16209$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16210 X"$as_dir" : 'X\(//\)[^/]' \| \ 16211 X"$as_dir" : 'X\(//\)$' \| \ 16212 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16213$as_echo X"$as_dir" | 16214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16215 s//\1/ 16216 q 16217 } 16218 /^X\(\/\/\)[^/].*/{ 16219 s//\1/ 16220 q 16221 } 16222 /^X\(\/\/\)$/{ 16223 s//\1/ 16224 q 16225 } 16226 /^X\(\/\).*/{ 16227 s//\1/ 16228 q 16229 } 16230 s/.*/./; q'` 16231 test -d "$as_dir" && break 16232 done 16233 test -z "$as_dirs" || eval "mkdir $as_dirs" 16234 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 16235$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 16236 { (exit 1); exit 1; }; }; } 16237 ac_builddir=. 16238 16239case "$ac_dir" in 16240.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16241*) 16242 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16243 # A ".." for each directory in $ac_dir_suffix. 16244 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16245 case $ac_top_builddir_sub in 16246 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16247 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16248 esac ;; 16249esac 16250ac_abs_top_builddir=$ac_pwd 16251ac_abs_builddir=$ac_pwd$ac_dir_suffix 16252# for backward compatibility: 16253ac_top_builddir=$ac_top_build_prefix 16254 16255case $srcdir in 16256 .) # We are building in place. 16257 ac_srcdir=. 16258 ac_top_srcdir=$ac_top_builddir_sub 16259 ac_abs_top_srcdir=$ac_pwd ;; 16260 [\\/]* | ?:[\\/]* ) # Absolute name. 16261 ac_srcdir=$srcdir$ac_dir_suffix; 16262 ac_top_srcdir=$srcdir 16263 ac_abs_top_srcdir=$srcdir ;; 16264 *) # Relative name. 16265 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16266 ac_top_srcdir=$ac_top_build_prefix$srcdir 16267 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16268esac 16269ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16270 16271 16272 case $ac_mode in 16273 :F) 16274 # 16275 # CONFIG_FILE 16276 # 16277 16278 case $INSTALL in 16279 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16280 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16281 esac 16282 ac_MKDIR_P=$MKDIR_P 16283 case $MKDIR_P in 16284 [\\/$]* | ?:[\\/]* ) ;; 16285 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16286 esac 16287_ACEOF 16288 16289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16290# If the template does not know about datarootdir, expand it. 16291# FIXME: This hack should be removed a few years after 2.60. 16292ac_datarootdir_hack=; ac_datarootdir_seen= 16293 16294ac_sed_dataroot=' 16295/datarootdir/ { 16296 p 16297 q 16298} 16299/@datadir@/p 16300/@docdir@/p 16301/@infodir@/p 16302/@localedir@/p 16303/@mandir@/p 16304' 16305case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16306*datarootdir*) ac_datarootdir_seen=yes;; 16307*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16308 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16309$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16310_ACEOF 16311cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16312 ac_datarootdir_hack=' 16313 s&@datadir@&$datadir&g 16314 s&@docdir@&$docdir&g 16315 s&@infodir@&$infodir&g 16316 s&@localedir@&$localedir&g 16317 s&@mandir@&$mandir&g 16318 s&\\\${datarootdir}&$datarootdir&g' ;; 16319esac 16320_ACEOF 16321 16322# Neutralize VPATH when `$srcdir' = `.'. 16323# Shell code in configure.ac might set extrasub. 16324# FIXME: do we really want to maintain this feature? 16325cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16326ac_sed_extra="$ac_vpsub 16327$extrasub 16328_ACEOF 16329cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16330:t 16331/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16332s|@configure_input@|$ac_sed_conf_input|;t t 16333s&@top_builddir@&$ac_top_builddir_sub&;t t 16334s&@top_build_prefix@&$ac_top_build_prefix&;t t 16335s&@srcdir@&$ac_srcdir&;t t 16336s&@abs_srcdir@&$ac_abs_srcdir&;t t 16337s&@top_srcdir@&$ac_top_srcdir&;t t 16338s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16339s&@builddir@&$ac_builddir&;t t 16340s&@abs_builddir@&$ac_abs_builddir&;t t 16341s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16342s&@INSTALL@&$ac_INSTALL&;t t 16343s&@MKDIR_P@&$ac_MKDIR_P&;t t 16344$ac_datarootdir_hack 16345" 16346eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 16347 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 16348$as_echo "$as_me: error: could not create $ac_file" >&2;} 16349 { (exit 1); exit 1; }; } 16350 16351test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16352 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 16353 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 16354 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16355which seems to be undefined. Please make sure it is defined." >&5 16356$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16357which seems to be undefined. Please make sure it is defined." >&2;} 16358 16359 rm -f "$tmp/stdin" 16360 case $ac_file in 16361 -) cat "$tmp/out" && rm -f "$tmp/out";; 16362 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 16363 esac \ 16364 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 16365$as_echo "$as_me: error: could not create $ac_file" >&2;} 16366 { (exit 1); exit 1; }; } 16367 ;; 16368 :H) 16369 # 16370 # CONFIG_HEADER 16371 # 16372 if test x"$ac_file" != x-; then 16373 { 16374 $as_echo "/* $configure_input */" \ 16375 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 16376 } >"$tmp/config.h" \ 16377 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 16378$as_echo "$as_me: error: could not create $ac_file" >&2;} 16379 { (exit 1); exit 1; }; } 16380 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 16381 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 16382$as_echo "$as_me: $ac_file is unchanged" >&6;} 16383 else 16384 rm -f "$ac_file" 16385 mv "$tmp/config.h" "$ac_file" \ 16386 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 16387$as_echo "$as_me: error: could not create $ac_file" >&2;} 16388 { (exit 1); exit 1; }; } 16389 fi 16390 else 16391 $as_echo "/* $configure_input */" \ 16392 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 16393 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 16394$as_echo "$as_me: error: could not create -" >&2;} 16395 { (exit 1); exit 1; }; } 16396 fi 16397# Compute "$ac_file"'s index in $config_headers. 16398_am_arg="$ac_file" 16399_am_stamp_count=1 16400for _am_header in $config_headers :; do 16401 case $_am_header in 16402 $_am_arg | $_am_arg:* ) 16403 break ;; 16404 * ) 16405 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16406 esac 16407done 16408echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16409$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16410 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16411 X"$_am_arg" : 'X\(//\)$' \| \ 16412 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16413$as_echo X"$_am_arg" | 16414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16415 s//\1/ 16416 q 16417 } 16418 /^X\(\/\/\)[^/].*/{ 16419 s//\1/ 16420 q 16421 } 16422 /^X\(\/\/\)$/{ 16423 s//\1/ 16424 q 16425 } 16426 /^X\(\/\).*/{ 16427 s//\1/ 16428 q 16429 } 16430 s/.*/./; q'`/stamp-h$_am_stamp_count 16431 ;; 16432 16433 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 16434$as_echo "$as_me: executing $ac_file commands" >&6;} 16435 ;; 16436 esac 16437 16438 16439 case $ac_file$ac_mode in 16440 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16441 # Autoconf 2.62 quotes --file arguments for eval, but not when files 16442 # are listed without --file. Let's play safe and only enable the eval 16443 # if we detect the quoting. 16444 case $CONFIG_FILES in 16445 *\'*) eval set x "$CONFIG_FILES" ;; 16446 *) set x $CONFIG_FILES ;; 16447 esac 16448 shift 16449 for mf 16450 do 16451 # Strip MF so we end up with the name of the file. 16452 mf=`echo "$mf" | sed -e 's/:.*$//'` 16453 # Check whether this is an Automake generated Makefile or not. 16454 # We used to match only the files named `Makefile.in', but 16455 # some people rename them; so instead we look at the file content. 16456 # Grep'ing the first line is not enough: some people post-process 16457 # each Makefile.in and add a new line on top of each file to say so. 16458 # Grep'ing the whole file is not good either: AIX grep has a line 16459 # limit of 2048, but all sed's we know have understand at least 4000. 16460 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16461 dirpart=`$as_dirname -- "$mf" || 16462$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16463 X"$mf" : 'X\(//\)[^/]' \| \ 16464 X"$mf" : 'X\(//\)$' \| \ 16465 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16466$as_echo X"$mf" | 16467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16468 s//\1/ 16469 q 16470 } 16471 /^X\(\/\/\)[^/].*/{ 16472 s//\1/ 16473 q 16474 } 16475 /^X\(\/\/\)$/{ 16476 s//\1/ 16477 q 16478 } 16479 /^X\(\/\).*/{ 16480 s//\1/ 16481 q 16482 } 16483 s/.*/./; q'` 16484 else 16485 continue 16486 fi 16487 # Extract the definition of DEPDIR, am__include, and am__quote 16488 # from the Makefile without running `make'. 16489 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16490 test -z "$DEPDIR" && continue 16491 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16492 test -z "am__include" && continue 16493 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16494 # When using ansi2knr, U may be empty or an underscore; expand it 16495 U=`sed -n 's/^U = //p' < "$mf"` 16496 # Find all dependency output files, they are included files with 16497 # $(DEPDIR) in their names. We invoke sed twice because it is the 16498 # simplest approach to changing $(DEPDIR) to its actual value in the 16499 # expansion. 16500 for file in `sed -n " 16501 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16502 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 16503 # Make sure the directory exists. 16504 test -f "$dirpart/$file" && continue 16505 fdir=`$as_dirname -- "$file" || 16506$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16507 X"$file" : 'X\(//\)[^/]' \| \ 16508 X"$file" : 'X\(//\)$' \| \ 16509 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16510$as_echo X"$file" | 16511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16512 s//\1/ 16513 q 16514 } 16515 /^X\(\/\/\)[^/].*/{ 16516 s//\1/ 16517 q 16518 } 16519 /^X\(\/\/\)$/{ 16520 s//\1/ 16521 q 16522 } 16523 /^X\(\/\).*/{ 16524 s//\1/ 16525 q 16526 } 16527 s/.*/./; q'` 16528 { as_dir=$dirpart/$fdir 16529 case $as_dir in #( 16530 -*) as_dir=./$as_dir;; 16531 esac 16532 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 16533 as_dirs= 16534 while :; do 16535 case $as_dir in #( 16536 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16537 *) as_qdir=$as_dir;; 16538 esac 16539 as_dirs="'$as_qdir' $as_dirs" 16540 as_dir=`$as_dirname -- "$as_dir" || 16541$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16542 X"$as_dir" : 'X\(//\)[^/]' \| \ 16543 X"$as_dir" : 'X\(//\)$' \| \ 16544 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16545$as_echo X"$as_dir" | 16546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16547 s//\1/ 16548 q 16549 } 16550 /^X\(\/\/\)[^/].*/{ 16551 s//\1/ 16552 q 16553 } 16554 /^X\(\/\/\)$/{ 16555 s//\1/ 16556 q 16557 } 16558 /^X\(\/\).*/{ 16559 s//\1/ 16560 q 16561 } 16562 s/.*/./; q'` 16563 test -d "$as_dir" && break 16564 done 16565 test -z "$as_dirs" || eval "mkdir $as_dirs" 16566 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 16567$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 16568 { (exit 1); exit 1; }; }; } 16569 # echo "creating $dirpart/$file" 16570 echo '# dummy' > "$dirpart/$file" 16571 done 16572 done 16573} 16574 ;; 16575 "libtool":C) 16576 16577 # See if we are running on zsh, and set the options which allow our 16578 # commands through without removal of \ escapes. 16579 if test -n "${ZSH_VERSION+set}" ; then 16580 setopt NO_GLOB_SUBST 16581 fi 16582 16583 cfgfile="${ofile}T" 16584 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16585 $RM "$cfgfile" 16586 16587 cat <<_LT_EOF >> "$cfgfile" 16588#! $SHELL 16589 16590# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16591# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16592# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16593# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16594# 16595# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16596# 2006, 2007, 2008 Free Software Foundation, Inc. 16597# Written by Gordon Matzigkeit, 1996 16598# 16599# This file is part of GNU Libtool. 16600# 16601# GNU Libtool is free software; you can redistribute it and/or 16602# modify it under the terms of the GNU General Public License as 16603# published by the Free Software Foundation; either version 2 of 16604# the License, or (at your option) any later version. 16605# 16606# As a special exception to the GNU General Public License, 16607# if you distribute this file as part of a program or library that 16608# is built using GNU Libtool, you may include this file under the 16609# same distribution terms that you use for the rest of that program. 16610# 16611# GNU Libtool is distributed in the hope that it will be useful, 16612# but WITHOUT ANY WARRANTY; without even the implied warranty of 16613# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16614# GNU General Public License for more details. 16615# 16616# You should have received a copy of the GNU General Public License 16617# along with GNU Libtool; see the file COPYING. If not, a copy 16618# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 16619# obtained by writing to the Free Software Foundation, Inc., 16620# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16621 16622 16623# The names of the tagged configurations supported by this script. 16624available_tags="" 16625 16626# ### BEGIN LIBTOOL CONFIG 16627 16628# Whether or not to build static libraries. 16629build_old_libs=$enable_static 16630 16631# Which release of libtool.m4 was used? 16632macro_version=$macro_version 16633macro_revision=$macro_revision 16634 16635# Whether or not to build shared libraries. 16636build_libtool_libs=$enable_shared 16637 16638# What type of objects to build. 16639pic_mode=$pic_mode 16640 16641# Whether or not to optimize for fast installation. 16642fast_install=$enable_fast_install 16643 16644# The host system. 16645host_alias=$host_alias 16646host=$host 16647host_os=$host_os 16648 16649# The build system. 16650build_alias=$build_alias 16651build=$build 16652build_os=$build_os 16653 16654# A sed program that does not truncate output. 16655SED=$lt_SED 16656 16657# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16658Xsed="\$SED -e 1s/^X//" 16659 16660# A grep program that handles long lines. 16661GREP=$lt_GREP 16662 16663# An ERE matcher. 16664EGREP=$lt_EGREP 16665 16666# A literal string matcher. 16667FGREP=$lt_FGREP 16668 16669# A BSD- or MS-compatible name lister. 16670NM=$lt_NM 16671 16672# Whether we need soft or hard links. 16673LN_S=$lt_LN_S 16674 16675# What is the maximum length of a command? 16676max_cmd_len=$max_cmd_len 16677 16678# Object file suffix (normally "o"). 16679objext=$ac_objext 16680 16681# Executable file suffix (normally ""). 16682exeext=$exeext 16683 16684# whether the shell understands "unset". 16685lt_unset=$lt_unset 16686 16687# turn spaces into newlines. 16688SP2NL=$lt_lt_SP2NL 16689 16690# turn newlines into spaces. 16691NL2SP=$lt_lt_NL2SP 16692 16693# How to create reloadable object files. 16694reload_flag=$lt_reload_flag 16695reload_cmds=$lt_reload_cmds 16696 16697# An object symbol dumper. 16698OBJDUMP=$lt_OBJDUMP 16699 16700# Method to check whether dependent libraries are shared objects. 16701deplibs_check_method=$lt_deplibs_check_method 16702 16703# Command to use when deplibs_check_method == "file_magic". 16704file_magic_cmd=$lt_file_magic_cmd 16705 16706# The archiver. 16707AR=$lt_AR 16708AR_FLAGS=$lt_AR_FLAGS 16709 16710# A symbol stripping program. 16711STRIP=$lt_STRIP 16712 16713# Commands used to install an old-style archive. 16714RANLIB=$lt_RANLIB 16715old_postinstall_cmds=$lt_old_postinstall_cmds 16716old_postuninstall_cmds=$lt_old_postuninstall_cmds 16717 16718# A C compiler. 16719LTCC=$lt_CC 16720 16721# LTCC compiler flags. 16722LTCFLAGS=$lt_CFLAGS 16723 16724# Take the output of nm and produce a listing of raw symbols and C names. 16725global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16726 16727# Transform the output of nm in a proper C declaration. 16728global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16729 16730# Transform the output of nm in a C name address pair. 16731global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16732 16733# Transform the output of nm in a C name address pair when lib prefix is needed. 16734global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16735 16736# The name of the directory that contains temporary libtool files. 16737objdir=$objdir 16738 16739# Shell to use when invoking shell scripts. 16740SHELL=$lt_SHELL 16741 16742# An echo program that does not interpret backslashes. 16743ECHO=$lt_ECHO 16744 16745# Used to examine libraries when file_magic_cmd begins with "file". 16746MAGIC_CMD=$MAGIC_CMD 16747 16748# Must we lock files when doing compilation? 16749need_locks=$lt_need_locks 16750 16751# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16752DSYMUTIL=$lt_DSYMUTIL 16753 16754# Tool to change global to local symbols on Mac OS X. 16755NMEDIT=$lt_NMEDIT 16756 16757# Tool to manipulate fat objects and archives on Mac OS X. 16758LIPO=$lt_LIPO 16759 16760# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16761OTOOL=$lt_OTOOL 16762 16763# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16764OTOOL64=$lt_OTOOL64 16765 16766# Old archive suffix (normally "a"). 16767libext=$libext 16768 16769# Shared library suffix (normally ".so"). 16770shrext_cmds=$lt_shrext_cmds 16771 16772# The commands to extract the exported symbol list from a shared archive. 16773extract_expsyms_cmds=$lt_extract_expsyms_cmds 16774 16775# Variables whose values should be saved in libtool wrapper scripts and 16776# restored at link time. 16777variables_saved_for_relink=$lt_variables_saved_for_relink 16778 16779# Do we need the "lib" prefix for modules? 16780need_lib_prefix=$need_lib_prefix 16781 16782# Do we need a version for libraries? 16783need_version=$need_version 16784 16785# Library versioning type. 16786version_type=$version_type 16787 16788# Shared library runtime path variable. 16789runpath_var=$runpath_var 16790 16791# Shared library path variable. 16792shlibpath_var=$shlibpath_var 16793 16794# Is shlibpath searched before the hard-coded library search path? 16795shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16796 16797# Format of library name prefix. 16798libname_spec=$lt_libname_spec 16799 16800# List of archive names. First name is the real one, the rest are links. 16801# The last name is the one that the linker finds with -lNAME 16802library_names_spec=$lt_library_names_spec 16803 16804# The coded name of the library, if different from the real name. 16805soname_spec=$lt_soname_spec 16806 16807# Command to use after installation of a shared archive. 16808postinstall_cmds=$lt_postinstall_cmds 16809 16810# Command to use after uninstallation of a shared archive. 16811postuninstall_cmds=$lt_postuninstall_cmds 16812 16813# Commands used to finish a libtool library installation in a directory. 16814finish_cmds=$lt_finish_cmds 16815 16816# As "finish_cmds", except a single script fragment to be evaled but 16817# not shown. 16818finish_eval=$lt_finish_eval 16819 16820# Whether we should hardcode library paths into libraries. 16821hardcode_into_libs=$hardcode_into_libs 16822 16823# Compile-time system search path for libraries. 16824sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16825 16826# Run-time system search path for libraries. 16827sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16828 16829# Whether dlopen is supported. 16830dlopen_support=$enable_dlopen 16831 16832# Whether dlopen of programs is supported. 16833dlopen_self=$enable_dlopen_self 16834 16835# Whether dlopen of statically linked programs is supported. 16836dlopen_self_static=$enable_dlopen_self_static 16837 16838# Commands to strip libraries. 16839old_striplib=$lt_old_striplib 16840striplib=$lt_striplib 16841 16842 16843# The linker used to build libraries. 16844LD=$lt_LD 16845 16846# Commands used to build an old-style archive. 16847old_archive_cmds=$lt_old_archive_cmds 16848 16849# A language specific compiler. 16850CC=$lt_compiler 16851 16852# Is the compiler the GNU compiler? 16853with_gcc=$GCC 16854 16855# Compiler flag to turn off builtin functions. 16856no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16857 16858# How to pass a linker flag through the compiler. 16859wl=$lt_lt_prog_compiler_wl 16860 16861# Additional compiler flags for building library objects. 16862pic_flag=$lt_lt_prog_compiler_pic 16863 16864# Compiler flag to prevent dynamic linking. 16865link_static_flag=$lt_lt_prog_compiler_static 16866 16867# Does compiler simultaneously support -c and -o options? 16868compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16869 16870# Whether or not to add -lc for building shared libraries. 16871build_libtool_need_lc=$archive_cmds_need_lc 16872 16873# Whether or not to disallow shared libs when runtime libs are static. 16874allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16875 16876# Compiler flag to allow reflexive dlopens. 16877export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16878 16879# Compiler flag to generate shared objects directly from archives. 16880whole_archive_flag_spec=$lt_whole_archive_flag_spec 16881 16882# Whether the compiler copes with passing no objects directly. 16883compiler_needs_object=$lt_compiler_needs_object 16884 16885# Create an old-style archive from a shared archive. 16886old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16887 16888# Create a temporary old-style archive to link instead of a shared archive. 16889old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16890 16891# Commands used to build a shared archive. 16892archive_cmds=$lt_archive_cmds 16893archive_expsym_cmds=$lt_archive_expsym_cmds 16894 16895# Commands used to build a loadable module if different from building 16896# a shared archive. 16897module_cmds=$lt_module_cmds 16898module_expsym_cmds=$lt_module_expsym_cmds 16899 16900# Whether we are building with GNU ld or not. 16901with_gnu_ld=$lt_with_gnu_ld 16902 16903# Flag that allows shared libraries with undefined symbols to be built. 16904allow_undefined_flag=$lt_allow_undefined_flag 16905 16906# Flag that enforces no undefined symbols. 16907no_undefined_flag=$lt_no_undefined_flag 16908 16909# Flag to hardcode \$libdir into a binary during linking. 16910# This must work even if \$libdir does not exist 16911hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16912 16913# If ld is used when linking, flag to hardcode \$libdir into a binary 16914# during linking. This must work even if \$libdir does not exist. 16915hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 16916 16917# Whether we need a single "-rpath" flag with a separated argument. 16918hardcode_libdir_separator=$lt_hardcode_libdir_separator 16919 16920# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16921# DIR into the resulting binary. 16922hardcode_direct=$hardcode_direct 16923 16924# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16925# DIR into the resulting binary and the resulting library dependency is 16926# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16927# library is relocated. 16928hardcode_direct_absolute=$hardcode_direct_absolute 16929 16930# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16931# into the resulting binary. 16932hardcode_minus_L=$hardcode_minus_L 16933 16934# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16935# into the resulting binary. 16936hardcode_shlibpath_var=$hardcode_shlibpath_var 16937 16938# Set to "yes" if building a shared library automatically hardcodes DIR 16939# into the library and all subsequent libraries and executables linked 16940# against it. 16941hardcode_automatic=$hardcode_automatic 16942 16943# Set to yes if linker adds runtime paths of dependent libraries 16944# to runtime path list. 16945inherit_rpath=$inherit_rpath 16946 16947# Whether libtool must link a program against all its dependency libraries. 16948link_all_deplibs=$link_all_deplibs 16949 16950# Fix the shell variable \$srcfile for the compiler. 16951fix_srcfile_path=$lt_fix_srcfile_path 16952 16953# Set to "yes" if exported symbols are required. 16954always_export_symbols=$always_export_symbols 16955 16956# The commands to list exported symbols. 16957export_symbols_cmds=$lt_export_symbols_cmds 16958 16959# Symbols that should not be listed in the preloaded symbols. 16960exclude_expsyms=$lt_exclude_expsyms 16961 16962# Symbols that must always be exported. 16963include_expsyms=$lt_include_expsyms 16964 16965# Commands necessary for linking programs (against libraries) with templates. 16966prelink_cmds=$lt_prelink_cmds 16967 16968# Specify filename containing input files. 16969file_list_spec=$lt_file_list_spec 16970 16971# How to hardcode a shared library path into an executable. 16972hardcode_action=$hardcode_action 16973 16974# ### END LIBTOOL CONFIG 16975 16976_LT_EOF 16977 16978 case $host_os in 16979 aix3*) 16980 cat <<\_LT_EOF >> "$cfgfile" 16981# AIX sometimes has problems with the GCC collect2 program. For some 16982# reason, if we set the COLLECT_NAMES environment variable, the problems 16983# vanish in a puff of smoke. 16984if test "X${COLLECT_NAMES+set}" != Xset; then 16985 COLLECT_NAMES= 16986 export COLLECT_NAMES 16987fi 16988_LT_EOF 16989 ;; 16990 esac 16991 16992 16993ltmain="$ac_aux_dir/ltmain.sh" 16994 16995 16996 # We use sed instead of cat because bash on DJGPP gets confused if 16997 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16998 # text mode, it properly converts lines to CR/LF. This bash problem 16999 # is reportedly fixed, but why not run on old versions too? 17000 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 17001 || (rm -f "$cfgfile"; exit 1) 17002 17003 case $xsi_shell in 17004 yes) 17005 cat << \_LT_EOF >> "$cfgfile" 17006 17007# func_dirname file append nondir_replacement 17008# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17009# otherwise set result to NONDIR_REPLACEMENT. 17010func_dirname () 17011{ 17012 case ${1} in 17013 */*) func_dirname_result="${1%/*}${2}" ;; 17014 * ) func_dirname_result="${3}" ;; 17015 esac 17016} 17017 17018# func_basename file 17019func_basename () 17020{ 17021 func_basename_result="${1##*/}" 17022} 17023 17024# func_dirname_and_basename file append nondir_replacement 17025# perform func_basename and func_dirname in a single function 17026# call: 17027# dirname: Compute the dirname of FILE. If nonempty, 17028# add APPEND to the result, otherwise set result 17029# to NONDIR_REPLACEMENT. 17030# value returned in "$func_dirname_result" 17031# basename: Compute filename of FILE. 17032# value retuned in "$func_basename_result" 17033# Implementation must be kept synchronized with func_dirname 17034# and func_basename. For efficiency, we do not delegate to 17035# those functions but instead duplicate the functionality here. 17036func_dirname_and_basename () 17037{ 17038 case ${1} in 17039 */*) func_dirname_result="${1%/*}${2}" ;; 17040 * ) func_dirname_result="${3}" ;; 17041 esac 17042 func_basename_result="${1##*/}" 17043} 17044 17045# func_stripname prefix suffix name 17046# strip PREFIX and SUFFIX off of NAME. 17047# PREFIX and SUFFIX must not contain globbing or regex special 17048# characters, hashes, percent signs, but SUFFIX may contain a leading 17049# dot (in which case that matches only a dot). 17050func_stripname () 17051{ 17052 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 17053 # positional parameters, so assign one to ordinary parameter first. 17054 func_stripname_result=${3} 17055 func_stripname_result=${func_stripname_result#"${1}"} 17056 func_stripname_result=${func_stripname_result%"${2}"} 17057} 17058 17059# func_opt_split 17060func_opt_split () 17061{ 17062 func_opt_split_opt=${1%%=*} 17063 func_opt_split_arg=${1#*=} 17064} 17065 17066# func_lo2o object 17067func_lo2o () 17068{ 17069 case ${1} in 17070 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 17071 *) func_lo2o_result=${1} ;; 17072 esac 17073} 17074 17075# func_xform libobj-or-source 17076func_xform () 17077{ 17078 func_xform_result=${1%.*}.lo 17079} 17080 17081# func_arith arithmetic-term... 17082func_arith () 17083{ 17084 func_arith_result=$(( $* )) 17085} 17086 17087# func_len string 17088# STRING may not start with a hyphen. 17089func_len () 17090{ 17091 func_len_result=${#1} 17092} 17093 17094_LT_EOF 17095 ;; 17096 *) # Bourne compatible functions. 17097 cat << \_LT_EOF >> "$cfgfile" 17098 17099# func_dirname file append nondir_replacement 17100# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17101# otherwise set result to NONDIR_REPLACEMENT. 17102func_dirname () 17103{ 17104 # Extract subdirectory from the argument. 17105 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 17106 if test "X$func_dirname_result" = "X${1}"; then 17107 func_dirname_result="${3}" 17108 else 17109 func_dirname_result="$func_dirname_result${2}" 17110 fi 17111} 17112 17113# func_basename file 17114func_basename () 17115{ 17116 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 17117} 17118 17119 17120# func_stripname prefix suffix name 17121# strip PREFIX and SUFFIX off of NAME. 17122# PREFIX and SUFFIX must not contain globbing or regex special 17123# characters, hashes, percent signs, but SUFFIX may contain a leading 17124# dot (in which case that matches only a dot). 17125# func_strip_suffix prefix name 17126func_stripname () 17127{ 17128 case ${2} in 17129 .*) func_stripname_result=`$ECHO "X${3}" \ 17130 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 17131 *) func_stripname_result=`$ECHO "X${3}" \ 17132 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 17133 esac 17134} 17135 17136# sed scripts: 17137my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 17138my_sed_long_arg='1s/^-[^=]*=//' 17139 17140# func_opt_split 17141func_opt_split () 17142{ 17143 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 17144 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 17145} 17146 17147# func_lo2o object 17148func_lo2o () 17149{ 17150 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 17151} 17152 17153# func_xform libobj-or-source 17154func_xform () 17155{ 17156 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 17157} 17158 17159# func_arith arithmetic-term... 17160func_arith () 17161{ 17162 func_arith_result=`expr "$@"` 17163} 17164 17165# func_len string 17166# STRING may not start with a hyphen. 17167func_len () 17168{ 17169 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 17170} 17171 17172_LT_EOF 17173esac 17174 17175case $lt_shell_append in 17176 yes) 17177 cat << \_LT_EOF >> "$cfgfile" 17178 17179# func_append var value 17180# Append VALUE to the end of shell variable VAR. 17181func_append () 17182{ 17183 eval "$1+=\$2" 17184} 17185_LT_EOF 17186 ;; 17187 *) 17188 cat << \_LT_EOF >> "$cfgfile" 17189 17190# func_append var value 17191# Append VALUE to the end of shell variable VAR. 17192func_append () 17193{ 17194 eval "$1=\$$1\$2" 17195} 17196 17197_LT_EOF 17198 ;; 17199 esac 17200 17201 17202 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 17203 || (rm -f "$cfgfile"; exit 1) 17204 17205 mv -f "$cfgfile" "$ofile" || 17206 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17207 chmod +x "$ofile" 17208 17209 ;; 17210 17211 esac 17212done # for ac_tag 17213 17214 17215{ (exit 0); exit 0; } 17216_ACEOF 17217chmod +x $CONFIG_STATUS 17218ac_clean_files=$ac_clean_files_save 17219 17220test $ac_write_fail = 0 || 17221 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 17222$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 17223 { (exit 1); exit 1; }; } 17224 17225 17226# configure is writing to config.log, and then calls config.status. 17227# config.status does its own redirection, appending to config.log. 17228# Unfortunately, on DOS this fails, as config.log is still kept open 17229# by configure, so config.status won't be able to write to it; its 17230# output is simply discarded. So we exec the FD to /dev/null, 17231# effectively closing config.log, so it can be properly (re)opened and 17232# appended to by config.status. When coming back to configure, we 17233# need to make the FD available again. 17234if test "$no_create" != yes; then 17235 ac_cs_success=: 17236 ac_config_status_args= 17237 test "$silent" = yes && 17238 ac_config_status_args="$ac_config_status_args --quiet" 17239 exec 5>/dev/null 17240 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17241 exec 5>>config.log 17242 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17243 # would make configure fail if this is the last instruction. 17244 $ac_cs_success || { (exit 1); exit 1; } 17245fi 17246if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17247 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17248$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17249fi 17250 17251 17252echo "" 17253echo " prefix: $prefix" 17254echo " exec_prefix: $exec_prefix" 17255echo " libdir: $libdir" 17256echo " includedir: $includedir" 17257 17258 17259echo "" 17260echo " Kernel modesetting: $DRM_MODE" 17261 17262echo "" 17263echo " CFLAGS: $CFLAGS" 17264echo " CXXFLAGS: $CXXFLAGS" 17265echo " Macros: $DEFINES" 17266 17267echo "" 17268echo " Run '${MAKE-make}' to build xf86-video-ati" 17269echo "" 17270