configure revision ad43ddac
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for xf86-video-ati 6.13.0. 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 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 # Zsh 3.x and 4.x performs 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 42# The user is always right. 43if test "${PATH_SEPARATOR+set}" != set; then 44 echo "#! /bin/sh" >conf$$.sh 45 echo "exit 0" >>conf$$.sh 46 chmod +x conf$$.sh 47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 48 PATH_SEPARATOR=';' 49 else 50 PATH_SEPARATOR=: 51 fi 52 rm -f conf$$.sh 53fi 54 55# Support unset when possible. 56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 57 as_unset=unset 58else 59 as_unset=false 60fi 61 62 63# IFS 64# We need space, tab and new line, in precisely that order. Quoting is 65# there to prevent editors from complaining about space-tab. 66# (If _AS_PATH_WALK were called with IFS unset, it would disable word 67# splitting by setting IFS to empty value.) 68as_nl=' 69' 70IFS=" "" $as_nl" 71 72# Find who we are. Look in the path if we contain no directory separator. 73case $0 in 74 *[\\/]* ) as_myself=$0 ;; 75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 76for as_dir in $PATH 77do 78 IFS=$as_save_IFS 79 test -z "$as_dir" && as_dir=. 80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 81done 82IFS=$as_save_IFS 83 84 ;; 85esac 86# We did not find ourselves, most probably we were run as `sh COMMAND' 87# in which case we are not to be found in the path. 88if test "x$as_myself" = x; then 89 as_myself=$0 90fi 91if test ! -f "$as_myself"; then 92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 93 { (exit 1); exit 1; } 94fi 95 96# Work around bugs in pre-3.0 UWIN ksh. 97for as_var in ENV MAIL MAILPATH 98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 99done 100PS1='$ ' 101PS2='> ' 102PS4='+ ' 103 104# NLS nuisances. 105for as_var in \ 106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 108 LC_TELEPHONE LC_TIME 109do 110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 111 eval $as_var=C; export $as_var 112 else 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 114 fi 115done 116 117# Required to use basename. 118if expr a : '\(a\)' >/dev/null 2>&1 && 119 test "X`expr 00001 : '.*\(...\)'`" = X001; then 120 as_expr=expr 121else 122 as_expr=false 123fi 124 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 126 as_basename=basename 127else 128 as_basename=false 129fi 130 131 132# Name of the executable. 133as_me=`$as_basename -- "$0" || 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 135 X"$0" : 'X\(//\)$' \| \ 136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 137echo X/"$0" | 138 sed '/^.*\/\([^/][^/]*\)\/*$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\/\)$/{ 143 s//\1/ 144 q 145 } 146 /^X\/\(\/\).*/{ 147 s//\1/ 148 q 149 } 150 s/.*/./; q'` 151 152# CDPATH. 153$as_unset CDPATH 154 155 156if test "x$CONFIG_SHELL" = x; then 157 if (eval ":") 2>/dev/null; then 158 as_have_required=yes 159else 160 as_have_required=no 161fi 162 163 if test $as_have_required = yes && (eval ": 164(as_func_return () { 165 (exit \$1) 166} 167as_func_success () { 168 as_func_return 0 169} 170as_func_failure () { 171 as_func_return 1 172} 173as_func_ret_success () { 174 return 0 175} 176as_func_ret_failure () { 177 return 1 178} 179 180exitcode=0 181if as_func_success; then 182 : 183else 184 exitcode=1 185 echo as_func_success failed. 186fi 187 188if as_func_failure; then 189 exitcode=1 190 echo as_func_failure succeeded. 191fi 192 193if as_func_ret_success; then 194 : 195else 196 exitcode=1 197 echo as_func_ret_success failed. 198fi 199 200if as_func_ret_failure; then 201 exitcode=1 202 echo as_func_ret_failure succeeded. 203fi 204 205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 206 : 207else 208 exitcode=1 209 echo positional parameters were not saved. 210fi 211 212test \$exitcode = 0) || { (exit 1); exit 1; } 213 214( 215 as_lineno_1=\$LINENO 216 as_lineno_2=\$LINENO 217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 219") 2> /dev/null; then 220 : 221else 222 as_candidate_shells= 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 225do 226 IFS=$as_save_IFS 227 test -z "$as_dir" && as_dir=. 228 case $as_dir in 229 /*) 230 for as_base in sh bash ksh sh5; do 231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 232 done;; 233 esac 234done 235IFS=$as_save_IFS 236 237 238 for as_shell in $as_candidate_shells $SHELL; do 239 # Try only shells that exist, to save several forks. 240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 241 { ("$as_shell") 2> /dev/null <<\_ASEOF 242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 243 emulate sh 244 NULLCMD=: 245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 246 # is contrary to our usage. Disable this feature. 247 alias -g '${1+"$@"}'='"$@"' 248 setopt NO_GLOB_SUBST 249else 250 case `(set -o) 2>/dev/null` in 251 *posix*) set -o posix ;; 252esac 253 254fi 255 256 257: 258_ASEOF 259}; then 260 CONFIG_SHELL=$as_shell 261 as_have_required=yes 262 if { "$as_shell" 2> /dev/null <<\_ASEOF 263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 264 emulate sh 265 NULLCMD=: 266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 267 # is contrary to our usage. Disable this feature. 268 alias -g '${1+"$@"}'='"$@"' 269 setopt NO_GLOB_SUBST 270else 271 case `(set -o) 2>/dev/null` in 272 *posix*) set -o posix ;; 273esac 274 275fi 276 277 278: 279(as_func_return () { 280 (exit $1) 281} 282as_func_success () { 283 as_func_return 0 284} 285as_func_failure () { 286 as_func_return 1 287} 288as_func_ret_success () { 289 return 0 290} 291as_func_ret_failure () { 292 return 1 293} 294 295exitcode=0 296if as_func_success; then 297 : 298else 299 exitcode=1 300 echo as_func_success failed. 301fi 302 303if as_func_failure; then 304 exitcode=1 305 echo as_func_failure succeeded. 306fi 307 308if as_func_ret_success; then 309 : 310else 311 exitcode=1 312 echo as_func_ret_success failed. 313fi 314 315if as_func_ret_failure; then 316 exitcode=1 317 echo as_func_ret_failure succeeded. 318fi 319 320if ( set x; as_func_ret_success y && test x = "$1" ); then 321 : 322else 323 exitcode=1 324 echo positional parameters were not saved. 325fi 326 327test $exitcode = 0) || { (exit 1); exit 1; } 328 329( 330 as_lineno_1=$LINENO 331 as_lineno_2=$LINENO 332 test "x$as_lineno_1" != "x$as_lineno_2" && 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 334 335_ASEOF 336}; then 337 break 338fi 339 340fi 341 342 done 343 344 if test "x$CONFIG_SHELL" != x; then 345 for as_var in BASH_ENV ENV 346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 347 done 348 export CONFIG_SHELL 349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 350fi 351 352 353 if test $as_have_required = no; then 354 echo This script requires a shell more modern than all the 355 echo shells that I found on your system. Please install a 356 echo modern shell, or manually run the script under such a 357 echo shell if you do have one. 358 { (exit 1); exit 1; } 359fi 360 361 362fi 363 364fi 365 366 367 368(eval "as_func_return () { 369 (exit \$1) 370} 371as_func_success () { 372 as_func_return 0 373} 374as_func_failure () { 375 as_func_return 1 376} 377as_func_ret_success () { 378 return 0 379} 380as_func_ret_failure () { 381 return 1 382} 383 384exitcode=0 385if as_func_success; then 386 : 387else 388 exitcode=1 389 echo as_func_success failed. 390fi 391 392if as_func_failure; then 393 exitcode=1 394 echo as_func_failure succeeded. 395fi 396 397if as_func_ret_success; then 398 : 399else 400 exitcode=1 401 echo as_func_ret_success failed. 402fi 403 404if as_func_ret_failure; then 405 exitcode=1 406 echo as_func_ret_failure succeeded. 407fi 408 409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 410 : 411else 412 exitcode=1 413 echo positional parameters were not saved. 414fi 415 416test \$exitcode = 0") || { 417 echo No shell found that supports shell functions. 418 echo Please tell autoconf@gnu.org about your system, 419 echo including any error possibly output before this 420 echo message 421} 422 423 424 425 as_lineno_1=$LINENO 426 as_lineno_2=$LINENO 427 test "x$as_lineno_1" != "x$as_lineno_2" && 428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 429 430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 431 # uniformly replaced by the line number. The first 'sed' inserts a 432 # line-number line after each line using $LINENO; the second 'sed' 433 # does the real work. The second script uses 'N' to pair each 434 # line-number line with the line containing $LINENO, and appends 435 # trailing '-' during substitution so that $LINENO is not a special 436 # case at line end. 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 438 # scripts with optimization help from Paolo Bonzini. Blame Lee 439 # E. McMahon (1931-1989) for sed's syntax. :-) 440 sed -n ' 441 p 442 /[$]LINENO/= 443 ' <$as_myself | 444 sed ' 445 s/[$]LINENO.*/&-/ 446 t lineno 447 b 448 :lineno 449 N 450 :loop 451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 452 t loop 453 s/-\n.*// 454 ' >$as_me.lineno && 455 chmod +x "$as_me.lineno" || 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 457 { (exit 1); exit 1; }; } 458 459 # Don't try to exec as it changes $[0], causing all sort of problems 460 # (the dirname of $[0] is not the place where we might find the 461 # original and so on. Autoconf is especially sensitive to this). 462 . "./$as_me.lineno" 463 # Exit status is that of the last command. 464 exit 465} 466 467 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 469 as_dirname=dirname 470else 471 as_dirname=false 472fi 473 474ECHO_C= ECHO_N= ECHO_T= 475case `echo -n x` in 476-n*) 477 case `echo 'x\c'` in 478 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 479 *) ECHO_C='\c';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485if expr a : '\(a\)' >/dev/null 2>&1 && 486 test "X`expr 00001 : '.*\(...\)'`" = X001; then 487 as_expr=expr 488else 489 as_expr=false 490fi 491 492rm -f conf$$ conf$$.exe conf$$.file 493if test -d conf$$.dir; then 494 rm -f conf$$.dir/conf$$.file 495else 496 rm -f conf$$.dir 497 mkdir conf$$.dir 498fi 499echo >conf$$.file 500if ln -s conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s='ln -s' 502 # ... but there are two gotchas: 503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 505 # In both cases, we have to default to `cp -p'. 506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 507 as_ln_s='cp -p' 508elif ln conf$$.file conf$$ 2>/dev/null; then 509 as_ln_s=ln 510else 511 as_ln_s='cp -p' 512fi 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 514rmdir conf$$.dir 2>/dev/null 515 516if mkdir -p . 2>/dev/null; then 517 as_mkdir_p=: 518else 519 test -d ./-p && rmdir ./-p 520 as_mkdir_p=false 521fi 522 523if test -x / >/dev/null 2>&1; then 524 as_test_x='test -x' 525else 526 if ls -dL / >/dev/null 2>&1; then 527 as_ls_L_option=L 528 else 529 as_ls_L_option= 530 fi 531 as_test_x=' 532 eval sh -c '\'' 533 if test -d "$1"; then 534 test -d "$1/."; 535 else 536 case $1 in 537 -*)set "./$1";; 538 esac; 539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 540 ???[sx]*):;;*)false;;esac;fi 541 '\'' sh 542 ' 543fi 544as_executable_p=$as_test_x 545 546# Sed expression to map a string onto a valid CPP name. 547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 548 549# Sed expression to map a string onto a valid variable name. 550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 551 552 553 554 555# Check that we are running under the correct shell. 556SHELL=${CONFIG_SHELL-/bin/sh} 557 558case X$lt_ECHO in 559X*--fallback-echo) 560 # Remove one level of quotation (which was required for Make). 561 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 562 ;; 563esac 564 565ECHO=${lt_ECHO-echo} 566if test "X$1" = X--no-reexec; then 567 # Discard the --no-reexec flag, and continue. 568 shift 569elif test "X$1" = X--fallback-echo; then 570 # Avoid inline document here, it may be left over 571 : 572elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 573 # Yippee, $ECHO works! 574 : 575else 576 # Restart under the correct shell. 577 exec $SHELL "$0" --no-reexec ${1+"$@"} 578fi 579 580if test "X$1" = X--fallback-echo; then 581 # used as fallback echo 582 shift 583 cat <<_LT_EOF 584$* 585_LT_EOF 586 exit 0 587fi 588 589# The HP-UX ksh and POSIX shell print the target directory to stdout 590# if CDPATH is set. 591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 592 593if test -z "$lt_ECHO"; then 594 if test "X${echo_test_string+set}" != Xset; then 595 # find a string as large as possible, as long as the shell can cope with it 596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 598 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 599 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 600 then 601 break 602 fi 603 done 604 fi 605 606 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 607 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 608 test "X$echo_testing_string" = "X$echo_test_string"; then 609 : 610 else 611 # The Solaris, AIX, and Digital Unix default echo programs unquote 612 # backslashes. This makes it impossible to quote backslashes using 613 # echo "$something" | sed 's/\\/\\\\/g' 614 # 615 # So, first we look for a working echo in the user's PATH. 616 617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 618 for dir in $PATH /usr/ucb; do 619 IFS="$lt_save_ifs" 620 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 622 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 623 test "X$echo_testing_string" = "X$echo_test_string"; then 624 ECHO="$dir/echo" 625 break 626 fi 627 done 628 IFS="$lt_save_ifs" 629 630 if test "X$ECHO" = Xecho; then 631 # We didn't find a better echo, so look for alternatives. 632 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 633 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 634 test "X$echo_testing_string" = "X$echo_test_string"; then 635 # This shell has a builtin print -r that does the trick. 636 ECHO='print -r' 637 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 638 test "X$CONFIG_SHELL" != X/bin/ksh; then 639 # If we have ksh, try running configure again with it. 640 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 641 export ORIGINAL_CONFIG_SHELL 642 CONFIG_SHELL=/bin/ksh 643 export CONFIG_SHELL 644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 645 else 646 # Try using printf. 647 ECHO='printf %s\n' 648 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 649 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 650 test "X$echo_testing_string" = "X$echo_test_string"; then 651 # Cool, printf works 652 : 653 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 654 test "X$echo_testing_string" = 'X\t' && 655 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 656 test "X$echo_testing_string" = "X$echo_test_string"; then 657 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 658 export CONFIG_SHELL 659 SHELL="$CONFIG_SHELL" 660 export SHELL 661 ECHO="$CONFIG_SHELL $0 --fallback-echo" 662 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 663 test "X$echo_testing_string" = 'X\t' && 664 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 665 test "X$echo_testing_string" = "X$echo_test_string"; then 666 ECHO="$CONFIG_SHELL $0 --fallback-echo" 667 else 668 # maybe with a smaller string... 669 prev=: 670 671 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 672 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 673 then 674 break 675 fi 676 prev="$cmd" 677 done 678 679 if test "$prev" != 'sed 50q "$0"'; then 680 echo_test_string=`eval $prev` 681 export echo_test_string 682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 683 else 684 # Oops. We lost completely, so just stick with echo. 685 ECHO=echo 686 fi 687 fi 688 fi 689 fi 690 fi 691fi 692 693# Copy echo and quote the copy suitably for passing to libtool from 694# the Makefile, instead of quoting the original, which is used later. 695lt_ECHO=$ECHO 696if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 697 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 698fi 699 700 701 702 703exec 7<&0 </dev/null 6>&1 704 705# Name of the host. 706# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 707# so uname gets run too. 708ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 709 710# 711# Initializations. 712# 713ac_default_prefix=/usr/local 714ac_clean_files= 715ac_config_libobj_dir=. 716LIBOBJS= 717cross_compiling=no 718subdirs= 719MFLAGS= 720MAKEFLAGS= 721SHELL=${CONFIG_SHELL-/bin/sh} 722 723# Identity of this package. 724PACKAGE_NAME='xf86-video-ati' 725PACKAGE_TARNAME='xf86-video-ati' 726PACKAGE_VERSION='6.13.0' 727PACKAGE_STRING='xf86-video-ati 6.13.0' 728PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 729 730ac_unique_file="Makefile.am" 731# Factoring default headers for most tests. 732ac_includes_default="\ 733#include <stdio.h> 734#ifdef HAVE_SYS_TYPES_H 735# include <sys/types.h> 736#endif 737#ifdef HAVE_SYS_STAT_H 738# include <sys/stat.h> 739#endif 740#ifdef STDC_HEADERS 741# include <stdlib.h> 742# include <stddef.h> 743#else 744# ifdef HAVE_STDLIB_H 745# include <stdlib.h> 746# endif 747#endif 748#ifdef HAVE_STRING_H 749# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 750# include <memory.h> 751# endif 752# include <string.h> 753#endif 754#ifdef HAVE_STRINGS_H 755# include <strings.h> 756#endif 757#ifdef HAVE_INTTYPES_H 758# include <inttypes.h> 759#endif 760#ifdef HAVE_STDINT_H 761# include <stdint.h> 762#endif 763#ifdef HAVE_UNISTD_H 764# include <unistd.h> 765#endif" 766 767ac_subst_vars='SHELL 768PATH_SEPARATOR 769PACKAGE_NAME 770PACKAGE_TARNAME 771PACKAGE_VERSION 772PACKAGE_STRING 773PACKAGE_BUGREPORT 774exec_prefix 775prefix 776program_transform_name 777bindir 778sbindir 779libexecdir 780datarootdir 781datadir 782sysconfdir 783sharedstatedir 784localstatedir 785includedir 786oldincludedir 787docdir 788infodir 789htmldir 790dvidir 791pdfdir 792psdir 793libdir 794localedir 795mandir 796DEFS 797ECHO_C 798ECHO_N 799ECHO_T 800LIBS 801build_alias 802host_alias 803target_alias 804CC 805CFLAGS 806LDFLAGS 807CPPFLAGS 808ac_ct_CC 809EXEEXT 810OBJEXT 811CPP 812GREP 813EGREP 814CWARNFLAGS 815CHANGELOG_CMD 816INSTALL_CMD 817build 818build_cpu 819build_vendor 820build_os 821host 822host_cpu 823host_vendor 824host_os 825APP_MAN_SUFFIX 826LIB_MAN_SUFFIX 827FILE_MAN_SUFFIX 828MISC_MAN_SUFFIX 829DRIVER_MAN_SUFFIX 830ADMIN_MAN_SUFFIX 831APP_MAN_DIR 832LIB_MAN_DIR 833FILE_MAN_DIR 834MISC_MAN_DIR 835DRIVER_MAN_DIR 836ADMIN_MAN_DIR 837INSTALL_PROGRAM 838INSTALL_SCRIPT 839INSTALL_DATA 840am__isrc 841CYGPATH_W 842PACKAGE 843VERSION 844ACLOCAL 845AUTOCONF 846AUTOMAKE 847AUTOHEADER 848MAKEINFO 849install_sh 850STRIP 851INSTALL_STRIP_PROGRAM 852mkdir_p 853AWK 854SET_MAKE 855am__leading_dot 856AMTAR 857am__tar 858am__untar 859DEPDIR 860am__include 861am__quote 862AMDEP_TRUE 863AMDEP_FALSE 864AMDEPBACKSLASH 865CCDEPMODE 866am__fastdepCC_TRUE 867am__fastdepCC_FALSE 868MAINTAINER_MODE_TRUE 869MAINTAINER_MODE_FALSE 870MAINT 871LIBTOOL 872SED 873FGREP 874LD 875DUMPBIN 876ac_ct_DUMPBIN 877NM 878LN_S 879AR 880RANLIB 881lt_ECHO 882DSYMUTIL 883NMEDIT 884LIPO 885OTOOL 886OTOOL64 887PKG_CONFIG 888XORG_CFLAGS 889XORG_LIBS 890XEXT_CFLAGS 891XEXT_LIBS 892HAVE_XEXTPROTO_71_TRUE 893HAVE_XEXTPROTO_71_FALSE 894DRI_CFLAGS 895DRI_LIBS 896DRI_TRUE 897DRI_FALSE 898LIBDRM_RADEON_CFLAGS 899LIBDRM_RADEON_LIBS 900DRM_MODE_TRUE 901DRM_MODE_FALSE 902XMODES_TRUE 903XMODES_FALSE 904XMODES_CFLAGS 905USE_EXA_TRUE 906USE_EXA_FALSE 907XF86DRM_MODE_TRUE 908XF86DRM_MODE_FALSE 909PCIACCESS_CFLAGS 910PCIACCESS_LIBS 911XSERVER_LIBPCIACCESS_TRUE 912XSERVER_LIBPCIACCESS_FALSE 913moduledir 914DRIVER_NAME 915LIBOBJS 916LTLIBOBJS' 917ac_subst_files='' 918 ac_precious_vars='build_alias 919host_alias 920target_alias 921CC 922CFLAGS 923LDFLAGS 924LIBS 925CPPFLAGS 926CPP 927PKG_CONFIG 928XORG_CFLAGS 929XORG_LIBS 930XEXT_CFLAGS 931XEXT_LIBS 932DRI_CFLAGS 933DRI_LIBS 934LIBDRM_RADEON_CFLAGS 935LIBDRM_RADEON_LIBS 936PCIACCESS_CFLAGS 937PCIACCESS_LIBS' 938 939 940# Initialize some variables set by options. 941ac_init_help= 942ac_init_version=false 943# The variables have the same names as the options, with 944# dashes changed to underlines. 945cache_file=/dev/null 946exec_prefix=NONE 947no_create= 948no_recursion= 949prefix=NONE 950program_prefix=NONE 951program_suffix=NONE 952program_transform_name=s,x,x, 953silent= 954site= 955srcdir= 956verbose= 957x_includes=NONE 958x_libraries=NONE 959 960# Installation directory options. 961# These are left unexpanded so users can "make install exec_prefix=/foo" 962# and all the variables that are supposed to be based on exec_prefix 963# by default will actually change. 964# Use braces instead of parens because sh, perl, etc. also accept them. 965# (The list follows the same order as the GNU Coding Standards.) 966bindir='${exec_prefix}/bin' 967sbindir='${exec_prefix}/sbin' 968libexecdir='${exec_prefix}/libexec' 969datarootdir='${prefix}/share' 970datadir='${datarootdir}' 971sysconfdir='${prefix}/etc' 972sharedstatedir='${prefix}/com' 973localstatedir='${prefix}/var' 974includedir='${prefix}/include' 975oldincludedir='/usr/include' 976docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 977infodir='${datarootdir}/info' 978htmldir='${docdir}' 979dvidir='${docdir}' 980pdfdir='${docdir}' 981psdir='${docdir}' 982libdir='${exec_prefix}/lib' 983localedir='${datarootdir}/locale' 984mandir='${datarootdir}/man' 985 986ac_prev= 987ac_dashdash= 988for ac_option 989do 990 # If the previous option needs an argument, assign it. 991 if test -n "$ac_prev"; then 992 eval $ac_prev=\$ac_option 993 ac_prev= 994 continue 995 fi 996 997 case $ac_option in 998 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 999 *) ac_optarg=yes ;; 1000 esac 1001 1002 # Accept the important Cygnus configure options, so we can diagnose typos. 1003 1004 case $ac_dashdash$ac_option in 1005 --) 1006 ac_dashdash=yes ;; 1007 1008 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1009 ac_prev=bindir ;; 1010 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1011 bindir=$ac_optarg ;; 1012 1013 -build | --build | --buil | --bui | --bu) 1014 ac_prev=build_alias ;; 1015 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1016 build_alias=$ac_optarg ;; 1017 1018 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1019 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1020 ac_prev=cache_file ;; 1021 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1022 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1023 cache_file=$ac_optarg ;; 1024 1025 --config-cache | -C) 1026 cache_file=config.cache ;; 1027 1028 -datadir | --datadir | --datadi | --datad) 1029 ac_prev=datadir ;; 1030 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1031 datadir=$ac_optarg ;; 1032 1033 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1034 | --dataroo | --dataro | --datar) 1035 ac_prev=datarootdir ;; 1036 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1037 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1038 datarootdir=$ac_optarg ;; 1039 1040 -disable-* | --disable-*) 1041 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1042 # Reject names that are not valid shell variable names. 1043 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1044 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1045 { (exit 1); exit 1; }; } 1046 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1047 eval enable_$ac_feature=no ;; 1048 1049 -docdir | --docdir | --docdi | --doc | --do) 1050 ac_prev=docdir ;; 1051 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1052 docdir=$ac_optarg ;; 1053 1054 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1055 ac_prev=dvidir ;; 1056 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1057 dvidir=$ac_optarg ;; 1058 1059 -enable-* | --enable-*) 1060 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1061 # Reject names that are not valid shell variable names. 1062 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1063 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1064 { (exit 1); exit 1; }; } 1065 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1066 eval enable_$ac_feature=\$ac_optarg ;; 1067 1068 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1069 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1070 | --exec | --exe | --ex) 1071 ac_prev=exec_prefix ;; 1072 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1073 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1074 | --exec=* | --exe=* | --ex=*) 1075 exec_prefix=$ac_optarg ;; 1076 1077 -gas | --gas | --ga | --g) 1078 # Obsolete; use --with-gas. 1079 with_gas=yes ;; 1080 1081 -help | --help | --hel | --he | -h) 1082 ac_init_help=long ;; 1083 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1084 ac_init_help=recursive ;; 1085 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1086 ac_init_help=short ;; 1087 1088 -host | --host | --hos | --ho) 1089 ac_prev=host_alias ;; 1090 -host=* | --host=* | --hos=* | --ho=*) 1091 host_alias=$ac_optarg ;; 1092 1093 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1094 ac_prev=htmldir ;; 1095 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1096 | --ht=*) 1097 htmldir=$ac_optarg ;; 1098 1099 -includedir | --includedir | --includedi | --included | --include \ 1100 | --includ | --inclu | --incl | --inc) 1101 ac_prev=includedir ;; 1102 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1103 | --includ=* | --inclu=* | --incl=* | --inc=*) 1104 includedir=$ac_optarg ;; 1105 1106 -infodir | --infodir | --infodi | --infod | --info | --inf) 1107 ac_prev=infodir ;; 1108 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1109 infodir=$ac_optarg ;; 1110 1111 -libdir | --libdir | --libdi | --libd) 1112 ac_prev=libdir ;; 1113 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1114 libdir=$ac_optarg ;; 1115 1116 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1117 | --libexe | --libex | --libe) 1118 ac_prev=libexecdir ;; 1119 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1120 | --libexe=* | --libex=* | --libe=*) 1121 libexecdir=$ac_optarg ;; 1122 1123 -localedir | --localedir | --localedi | --localed | --locale) 1124 ac_prev=localedir ;; 1125 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1126 localedir=$ac_optarg ;; 1127 1128 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1129 | --localstate | --localstat | --localsta | --localst | --locals) 1130 ac_prev=localstatedir ;; 1131 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1132 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1133 localstatedir=$ac_optarg ;; 1134 1135 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1136 ac_prev=mandir ;; 1137 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1138 mandir=$ac_optarg ;; 1139 1140 -nfp | --nfp | --nf) 1141 # Obsolete; use --without-fp. 1142 with_fp=no ;; 1143 1144 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1145 | --no-cr | --no-c | -n) 1146 no_create=yes ;; 1147 1148 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1149 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1150 no_recursion=yes ;; 1151 1152 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1153 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1154 | --oldin | --oldi | --old | --ol | --o) 1155 ac_prev=oldincludedir ;; 1156 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1157 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1158 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1159 oldincludedir=$ac_optarg ;; 1160 1161 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1162 ac_prev=prefix ;; 1163 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1164 prefix=$ac_optarg ;; 1165 1166 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1167 | --program-pre | --program-pr | --program-p) 1168 ac_prev=program_prefix ;; 1169 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1170 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1171 program_prefix=$ac_optarg ;; 1172 1173 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1174 | --program-suf | --program-su | --program-s) 1175 ac_prev=program_suffix ;; 1176 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1177 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1178 program_suffix=$ac_optarg ;; 1179 1180 -program-transform-name | --program-transform-name \ 1181 | --program-transform-nam | --program-transform-na \ 1182 | --program-transform-n | --program-transform- \ 1183 | --program-transform | --program-transfor \ 1184 | --program-transfo | --program-transf \ 1185 | --program-trans | --program-tran \ 1186 | --progr-tra | --program-tr | --program-t) 1187 ac_prev=program_transform_name ;; 1188 -program-transform-name=* | --program-transform-name=* \ 1189 | --program-transform-nam=* | --program-transform-na=* \ 1190 | --program-transform-n=* | --program-transform-=* \ 1191 | --program-transform=* | --program-transfor=* \ 1192 | --program-transfo=* | --program-transf=* \ 1193 | --program-trans=* | --program-tran=* \ 1194 | --progr-tra=* | --program-tr=* | --program-t=*) 1195 program_transform_name=$ac_optarg ;; 1196 1197 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1198 ac_prev=pdfdir ;; 1199 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1200 pdfdir=$ac_optarg ;; 1201 1202 -psdir | --psdir | --psdi | --psd | --ps) 1203 ac_prev=psdir ;; 1204 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1205 psdir=$ac_optarg ;; 1206 1207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1208 | -silent | --silent | --silen | --sile | --sil) 1209 silent=yes ;; 1210 1211 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1212 ac_prev=sbindir ;; 1213 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1214 | --sbi=* | --sb=*) 1215 sbindir=$ac_optarg ;; 1216 1217 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1218 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1219 | --sharedst | --shareds | --shared | --share | --shar \ 1220 | --sha | --sh) 1221 ac_prev=sharedstatedir ;; 1222 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1223 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1224 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1225 | --sha=* | --sh=*) 1226 sharedstatedir=$ac_optarg ;; 1227 1228 -site | --site | --sit) 1229 ac_prev=site ;; 1230 -site=* | --site=* | --sit=*) 1231 site=$ac_optarg ;; 1232 1233 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1234 ac_prev=srcdir ;; 1235 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1236 srcdir=$ac_optarg ;; 1237 1238 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1239 | --syscon | --sysco | --sysc | --sys | --sy) 1240 ac_prev=sysconfdir ;; 1241 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1242 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1243 sysconfdir=$ac_optarg ;; 1244 1245 -target | --target | --targe | --targ | --tar | --ta | --t) 1246 ac_prev=target_alias ;; 1247 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1248 target_alias=$ac_optarg ;; 1249 1250 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1251 verbose=yes ;; 1252 1253 -version | --version | --versio | --versi | --vers | -V) 1254 ac_init_version=: ;; 1255 1256 -with-* | --with-*) 1257 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1258 # Reject names that are not valid shell variable names. 1259 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1260 { echo "$as_me: error: invalid package name: $ac_package" >&2 1261 { (exit 1); exit 1; }; } 1262 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1263 eval with_$ac_package=\$ac_optarg ;; 1264 1265 -without-* | --without-*) 1266 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1267 # Reject names that are not valid shell variable names. 1268 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1269 { echo "$as_me: error: invalid package name: $ac_package" >&2 1270 { (exit 1); exit 1; }; } 1271 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1272 eval with_$ac_package=no ;; 1273 1274 --x) 1275 # Obsolete; use --with-x. 1276 with_x=yes ;; 1277 1278 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1279 | --x-incl | --x-inc | --x-in | --x-i) 1280 ac_prev=x_includes ;; 1281 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1282 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1283 x_includes=$ac_optarg ;; 1284 1285 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1286 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1287 ac_prev=x_libraries ;; 1288 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1289 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1290 x_libraries=$ac_optarg ;; 1291 1292 -*) { echo "$as_me: error: unrecognized option: $ac_option 1293Try \`$0 --help' for more information." >&2 1294 { (exit 1); exit 1; }; } 1295 ;; 1296 1297 *=*) 1298 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1299 # Reject names that are not valid shell variable names. 1300 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1301 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1302 { (exit 1); exit 1; }; } 1303 eval $ac_envvar=\$ac_optarg 1304 export $ac_envvar ;; 1305 1306 *) 1307 # FIXME: should be removed in autoconf 3.0. 1308 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1309 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1310 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1311 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1312 ;; 1313 1314 esac 1315done 1316 1317if test -n "$ac_prev"; then 1318 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1319 { echo "$as_me: error: missing argument to $ac_option" >&2 1320 { (exit 1); exit 1; }; } 1321fi 1322 1323# Be sure to have absolute directory names. 1324for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1325 datadir sysconfdir sharedstatedir localstatedir includedir \ 1326 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1327 libdir localedir mandir 1328do 1329 eval ac_val=\$$ac_var 1330 case $ac_val in 1331 [\\/$]* | ?:[\\/]* ) continue;; 1332 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1333 esac 1334 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1335 { (exit 1); exit 1; }; } 1336done 1337 1338# There might be people who depend on the old broken behavior: `$host' 1339# used to hold the argument of --host etc. 1340# FIXME: To remove some day. 1341build=$build_alias 1342host=$host_alias 1343target=$target_alias 1344 1345# FIXME: To remove some day. 1346if test "x$host_alias" != x; then 1347 if test "x$build_alias" = x; then 1348 cross_compiling=maybe 1349 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1350 If a cross compiler is detected then cross compile mode will be used." >&2 1351 elif test "x$build_alias" != "x$host_alias"; then 1352 cross_compiling=yes 1353 fi 1354fi 1355 1356ac_tool_prefix= 1357test -n "$host_alias" && ac_tool_prefix=$host_alias- 1358 1359test "$silent" = yes && exec 6>/dev/null 1360 1361 1362ac_pwd=`pwd` && test -n "$ac_pwd" && 1363ac_ls_di=`ls -di .` && 1364ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1365 { echo "$as_me: error: Working directory cannot be determined" >&2 1366 { (exit 1); exit 1; }; } 1367test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1368 { echo "$as_me: error: pwd does not report name of working directory" >&2 1369 { (exit 1); exit 1; }; } 1370 1371 1372# Find the source files, if location was not specified. 1373if test -z "$srcdir"; then 1374 ac_srcdir_defaulted=yes 1375 # Try the directory containing this script, then the parent directory. 1376 ac_confdir=`$as_dirname -- "$0" || 1377$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1378 X"$0" : 'X\(//\)[^/]' \| \ 1379 X"$0" : 'X\(//\)$' \| \ 1380 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1381echo X"$0" | 1382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1383 s//\1/ 1384 q 1385 } 1386 /^X\(\/\/\)[^/].*/{ 1387 s//\1/ 1388 q 1389 } 1390 /^X\(\/\/\)$/{ 1391 s//\1/ 1392 q 1393 } 1394 /^X\(\/\).*/{ 1395 s//\1/ 1396 q 1397 } 1398 s/.*/./; q'` 1399 srcdir=$ac_confdir 1400 if test ! -r "$srcdir/$ac_unique_file"; then 1401 srcdir=.. 1402 fi 1403else 1404 ac_srcdir_defaulted=no 1405fi 1406if test ! -r "$srcdir/$ac_unique_file"; then 1407 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1408 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1409 { (exit 1); exit 1; }; } 1410fi 1411ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1412ac_abs_confdir=`( 1413 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1414 { (exit 1); exit 1; }; } 1415 pwd)` 1416# When building in place, set srcdir=. 1417if test "$ac_abs_confdir" = "$ac_pwd"; then 1418 srcdir=. 1419fi 1420# Remove unnecessary trailing slashes from srcdir. 1421# Double slashes in file names in object file debugging info 1422# mess up M-x gdb in Emacs. 1423case $srcdir in 1424*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1425esac 1426for ac_var in $ac_precious_vars; do 1427 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1428 eval ac_env_${ac_var}_value=\$${ac_var} 1429 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1430 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1431done 1432 1433# 1434# Report the --help message. 1435# 1436if test "$ac_init_help" = "long"; then 1437 # Omit some internal or obsolete options to make the list less imposing. 1438 # This message is too long to be a string in the A/UX 3.1 sh. 1439 cat <<_ACEOF 1440\`configure' configures xf86-video-ati 6.13.0 to adapt to many kinds of systems. 1441 1442Usage: $0 [OPTION]... [VAR=VALUE]... 1443 1444To assign environment variables (e.g., CC, CFLAGS...), specify them as 1445VAR=VALUE. See below for descriptions of some of the useful variables. 1446 1447Defaults for the options are specified in brackets. 1448 1449Configuration: 1450 -h, --help display this help and exit 1451 --help=short display options specific to this package 1452 --help=recursive display the short help of all the included packages 1453 -V, --version display version information and exit 1454 -q, --quiet, --silent do not print \`checking...' messages 1455 --cache-file=FILE cache test results in FILE [disabled] 1456 -C, --config-cache alias for \`--cache-file=config.cache' 1457 -n, --no-create do not create output files 1458 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1459 1460Installation directories: 1461 --prefix=PREFIX install architecture-independent files in PREFIX 1462 [$ac_default_prefix] 1463 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1464 [PREFIX] 1465 1466By default, \`make install' will install all the files in 1467\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1468an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1469for instance \`--prefix=\$HOME'. 1470 1471For better control, use the options below. 1472 1473Fine tuning of the installation directories: 1474 --bindir=DIR user executables [EPREFIX/bin] 1475 --sbindir=DIR system admin executables [EPREFIX/sbin] 1476 --libexecdir=DIR program executables [EPREFIX/libexec] 1477 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1478 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1479 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1480 --libdir=DIR object code libraries [EPREFIX/lib] 1481 --includedir=DIR C header files [PREFIX/include] 1482 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1483 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1484 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1485 --infodir=DIR info documentation [DATAROOTDIR/info] 1486 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1487 --mandir=DIR man documentation [DATAROOTDIR/man] 1488 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-ati] 1489 --htmldir=DIR html documentation [DOCDIR] 1490 --dvidir=DIR dvi documentation [DOCDIR] 1491 --pdfdir=DIR pdf documentation [DOCDIR] 1492 --psdir=DIR ps documentation [DOCDIR] 1493_ACEOF 1494 1495 cat <<\_ACEOF 1496 1497Program names: 1498 --program-prefix=PREFIX prepend PREFIX to installed program names 1499 --program-suffix=SUFFIX append SUFFIX to installed program names 1500 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1501 1502System types: 1503 --build=BUILD configure for building on BUILD [guessed] 1504 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1505_ACEOF 1506fi 1507 1508if test -n "$ac_init_help"; then 1509 case $ac_init_help in 1510 short | recursive ) echo "Configuration of xf86-video-ati 6.13.0:";; 1511 esac 1512 cat <<\_ACEOF 1513 1514Optional Features: 1515 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1516 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1517 --enable-strict-compilation 1518 Enable all warnings from compiler and make them 1519 errors (default: disabled) 1520 --disable-dependency-tracking speeds up one-time build 1521 --enable-dependency-tracking do not reject slow dependency extractors 1522 --disable-largefile omit support for large files 1523 --enable-maintainer-mode enable make rules and dependencies not useful 1524 (and sometimes confusing) to the casual installer 1525 --enable-static[=PKGS] build static libraries [default=no] 1526 --enable-shared[=PKGS] build shared libraries [default=yes] 1527 --enable-fast-install[=PKGS] 1528 optimize for fast installation [default=yes] 1529 --disable-libtool-lock avoid locking (might break parallel builds) 1530 --disable-dri Disable DRI support [default=auto] 1531 --disable-exa Disable EXA support [default=enabled] 1532 --disable-kms Disable KMS support [default=enabled] 1533 1534Optional Packages: 1535 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1536 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1537 --with-release-version=STRING 1538 Use release version string in package name 1539 --with-pic try to use only PIC/non-PIC objects [default=use 1540 both] 1541 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1542 --with-xorg-module-dir=DIR 1543 Default xorg module directory 1544 [default=$libdir/xorg/modules] 1545 --with-xserver-source=XSERVER_SOURCE 1546 Path to X server source tree 1547 1548Some influential environment variables: 1549 CC C compiler command 1550 CFLAGS C compiler flags 1551 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1552 nonstandard directory <lib dir> 1553 LIBS libraries to pass to the linker, e.g. -l<library> 1554 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1555 you have headers in a nonstandard directory <include dir> 1556 CPP C preprocessor 1557 PKG_CONFIG path to pkg-config utility 1558 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1559 XORG_LIBS linker flags for XORG, overriding pkg-config 1560 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1561 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1562 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config 1563 DRI_LIBS linker flags for DRI, overriding pkg-config 1564 LIBDRM_RADEON_CFLAGS 1565 C compiler flags for LIBDRM_RADEON, overriding pkg-config 1566 LIBDRM_RADEON_LIBS 1567 linker flags for LIBDRM_RADEON, overriding pkg-config 1568 PCIACCESS_CFLAGS 1569 C compiler flags for PCIACCESS, overriding pkg-config 1570 PCIACCESS_LIBS 1571 linker flags for PCIACCESS, overriding pkg-config 1572 1573Use these variables to override the choices made by `configure' or to help 1574it to find libraries and programs with nonstandard names/locations. 1575 1576Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1577_ACEOF 1578ac_status=$? 1579fi 1580 1581if test "$ac_init_help" = "recursive"; then 1582 # If there are subdirs, report their specific --help. 1583 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1584 test -d "$ac_dir" || continue 1585 ac_builddir=. 1586 1587case "$ac_dir" in 1588.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1589*) 1590 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1591 # A ".." for each directory in $ac_dir_suffix. 1592 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1593 case $ac_top_builddir_sub in 1594 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1595 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1596 esac ;; 1597esac 1598ac_abs_top_builddir=$ac_pwd 1599ac_abs_builddir=$ac_pwd$ac_dir_suffix 1600# for backward compatibility: 1601ac_top_builddir=$ac_top_build_prefix 1602 1603case $srcdir in 1604 .) # We are building in place. 1605 ac_srcdir=. 1606 ac_top_srcdir=$ac_top_builddir_sub 1607 ac_abs_top_srcdir=$ac_pwd ;; 1608 [\\/]* | ?:[\\/]* ) # Absolute name. 1609 ac_srcdir=$srcdir$ac_dir_suffix; 1610 ac_top_srcdir=$srcdir 1611 ac_abs_top_srcdir=$srcdir ;; 1612 *) # Relative name. 1613 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1614 ac_top_srcdir=$ac_top_build_prefix$srcdir 1615 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1616esac 1617ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1618 1619 cd "$ac_dir" || { ac_status=$?; continue; } 1620 # Check for guested configure. 1621 if test -f "$ac_srcdir/configure.gnu"; then 1622 echo && 1623 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1624 elif test -f "$ac_srcdir/configure"; then 1625 echo && 1626 $SHELL "$ac_srcdir/configure" --help=recursive 1627 else 1628 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1629 fi || ac_status=$? 1630 cd "$ac_pwd" || { ac_status=$?; break; } 1631 done 1632fi 1633 1634test -n "$ac_init_help" && exit $ac_status 1635if $ac_init_version; then 1636 cat <<\_ACEOF 1637xf86-video-ati configure 6.13.0 1638generated by GNU Autoconf 2.61 1639 1640Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16412002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1642This configure script is free software; the Free Software Foundation 1643gives unlimited permission to copy, distribute and modify it. 1644_ACEOF 1645 exit 1646fi 1647cat >config.log <<_ACEOF 1648This file contains any messages produced by compilers while 1649running configure, to aid debugging if configure makes a mistake. 1650 1651It was created by xf86-video-ati $as_me 6.13.0, which was 1652generated by GNU Autoconf 2.61. Invocation command line was 1653 1654 $ $0 $@ 1655 1656_ACEOF 1657exec 5>>config.log 1658{ 1659cat <<_ASUNAME 1660## --------- ## 1661## Platform. ## 1662## --------- ## 1663 1664hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1665uname -m = `(uname -m) 2>/dev/null || echo unknown` 1666uname -r = `(uname -r) 2>/dev/null || echo unknown` 1667uname -s = `(uname -s) 2>/dev/null || echo unknown` 1668uname -v = `(uname -v) 2>/dev/null || echo unknown` 1669 1670/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1671/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1672 1673/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1674/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1675/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1676/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1677/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1678/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1679/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1680 1681_ASUNAME 1682 1683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1684for as_dir in $PATH 1685do 1686 IFS=$as_save_IFS 1687 test -z "$as_dir" && as_dir=. 1688 echo "PATH: $as_dir" 1689done 1690IFS=$as_save_IFS 1691 1692} >&5 1693 1694cat >&5 <<_ACEOF 1695 1696 1697## ----------- ## 1698## Core tests. ## 1699## ----------- ## 1700 1701_ACEOF 1702 1703 1704# Keep a trace of the command line. 1705# Strip out --no-create and --no-recursion so they do not pile up. 1706# Strip out --silent because we don't want to record it for future runs. 1707# Also quote any args containing shell meta-characters. 1708# Make two passes to allow for proper duplicate-argument suppression. 1709ac_configure_args= 1710ac_configure_args0= 1711ac_configure_args1= 1712ac_must_keep_next=false 1713for ac_pass in 1 2 1714do 1715 for ac_arg 1716 do 1717 case $ac_arg in 1718 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1719 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1720 | -silent | --silent | --silen | --sile | --sil) 1721 continue ;; 1722 *\'*) 1723 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1724 esac 1725 case $ac_pass in 1726 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1727 2) 1728 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1729 if test $ac_must_keep_next = true; then 1730 ac_must_keep_next=false # Got value, back to normal. 1731 else 1732 case $ac_arg in 1733 *=* | --config-cache | -C | -disable-* | --disable-* \ 1734 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1735 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1736 | -with-* | --with-* | -without-* | --without-* | --x) 1737 case "$ac_configure_args0 " in 1738 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1739 esac 1740 ;; 1741 -* ) ac_must_keep_next=true ;; 1742 esac 1743 fi 1744 ac_configure_args="$ac_configure_args '$ac_arg'" 1745 ;; 1746 esac 1747 done 1748done 1749$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1750$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1751 1752# When interrupted or exit'd, cleanup temporary files, and complete 1753# config.log. We remove comments because anyway the quotes in there 1754# would cause problems or look ugly. 1755# WARNING: Use '\'' to represent an apostrophe within the trap. 1756# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1757trap 'exit_status=$? 1758 # Save into config.log some information that might help in debugging. 1759 { 1760 echo 1761 1762 cat <<\_ASBOX 1763## ---------------- ## 1764## Cache variables. ## 1765## ---------------- ## 1766_ASBOX 1767 echo 1768 # The following way of writing the cache mishandles newlines in values, 1769( 1770 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1771 eval ac_val=\$$ac_var 1772 case $ac_val in #( 1773 *${as_nl}*) 1774 case $ac_var in #( 1775 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1776echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1777 esac 1778 case $ac_var in #( 1779 _ | IFS | as_nl) ;; #( 1780 *) $as_unset $ac_var ;; 1781 esac ;; 1782 esac 1783 done 1784 (set) 2>&1 | 1785 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1786 *${as_nl}ac_space=\ *) 1787 sed -n \ 1788 "s/'\''/'\''\\\\'\'''\''/g; 1789 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1790 ;; #( 1791 *) 1792 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1793 ;; 1794 esac | 1795 sort 1796) 1797 echo 1798 1799 cat <<\_ASBOX 1800## ----------------- ## 1801## Output variables. ## 1802## ----------------- ## 1803_ASBOX 1804 echo 1805 for ac_var in $ac_subst_vars 1806 do 1807 eval ac_val=\$$ac_var 1808 case $ac_val in 1809 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1810 esac 1811 echo "$ac_var='\''$ac_val'\''" 1812 done | sort 1813 echo 1814 1815 if test -n "$ac_subst_files"; then 1816 cat <<\_ASBOX 1817## ------------------- ## 1818## File substitutions. ## 1819## ------------------- ## 1820_ASBOX 1821 echo 1822 for ac_var in $ac_subst_files 1823 do 1824 eval ac_val=\$$ac_var 1825 case $ac_val in 1826 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1827 esac 1828 echo "$ac_var='\''$ac_val'\''" 1829 done | sort 1830 echo 1831 fi 1832 1833 if test -s confdefs.h; then 1834 cat <<\_ASBOX 1835## ----------- ## 1836## confdefs.h. ## 1837## ----------- ## 1838_ASBOX 1839 echo 1840 cat confdefs.h 1841 echo 1842 fi 1843 test "$ac_signal" != 0 && 1844 echo "$as_me: caught signal $ac_signal" 1845 echo "$as_me: exit $exit_status" 1846 } >&5 1847 rm -f core *.core core.conftest.* && 1848 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1849 exit $exit_status 1850' 0 1851for ac_signal in 1 2 13 15; do 1852 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1853done 1854ac_signal=0 1855 1856# confdefs.h avoids OS command line length limits that DEFS can exceed. 1857rm -f -r conftest* confdefs.h 1858 1859# Predefined preprocessor variables. 1860 1861cat >>confdefs.h <<_ACEOF 1862#define PACKAGE_NAME "$PACKAGE_NAME" 1863_ACEOF 1864 1865 1866cat >>confdefs.h <<_ACEOF 1867#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1868_ACEOF 1869 1870 1871cat >>confdefs.h <<_ACEOF 1872#define PACKAGE_VERSION "$PACKAGE_VERSION" 1873_ACEOF 1874 1875 1876cat >>confdefs.h <<_ACEOF 1877#define PACKAGE_STRING "$PACKAGE_STRING" 1878_ACEOF 1879 1880 1881cat >>confdefs.h <<_ACEOF 1882#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1883_ACEOF 1884 1885 1886# Let the site file select an alternate cache file if it wants to. 1887# Prefer explicitly selected file to automatically selected ones. 1888if test -n "$CONFIG_SITE"; then 1889 set x "$CONFIG_SITE" 1890elif test "x$prefix" != xNONE; then 1891 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1892else 1893 set x "$ac_default_prefix/share/config.site" \ 1894 "$ac_default_prefix/etc/config.site" 1895fi 1896shift 1897for ac_site_file 1898do 1899 if test -r "$ac_site_file"; then 1900 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1901echo "$as_me: loading site script $ac_site_file" >&6;} 1902 sed 's/^/| /' "$ac_site_file" >&5 1903 . "$ac_site_file" 1904 fi 1905done 1906 1907if test -r "$cache_file"; then 1908 # Some versions of bash will fail to source /dev/null (special 1909 # files actually), so we avoid doing that. 1910 if test -f "$cache_file"; then 1911 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1912echo "$as_me: loading cache $cache_file" >&6;} 1913 case $cache_file in 1914 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1915 *) . "./$cache_file";; 1916 esac 1917 fi 1918else 1919 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1920echo "$as_me: creating cache $cache_file" >&6;} 1921 >$cache_file 1922fi 1923 1924# Check that the precious variables saved in the cache have kept the same 1925# value. 1926ac_cache_corrupted=false 1927for ac_var in $ac_precious_vars; do 1928 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1929 eval ac_new_set=\$ac_env_${ac_var}_set 1930 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1931 eval ac_new_val=\$ac_env_${ac_var}_value 1932 case $ac_old_set,$ac_new_set in 1933 set,) 1934 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1935echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1936 ac_cache_corrupted=: ;; 1937 ,set) 1938 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1939echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1940 ac_cache_corrupted=: ;; 1941 ,);; 1942 *) 1943 if test "x$ac_old_val" != "x$ac_new_val"; then 1944 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1945echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1946 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1947echo "$as_me: former value: $ac_old_val" >&2;} 1948 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1949echo "$as_me: current value: $ac_new_val" >&2;} 1950 ac_cache_corrupted=: 1951 fi;; 1952 esac 1953 # Pass precious variables to config.status. 1954 if test "$ac_new_set" = set; then 1955 case $ac_new_val in 1956 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1957 *) ac_arg=$ac_var=$ac_new_val ;; 1958 esac 1959 case " $ac_configure_args " in 1960 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1961 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1962 esac 1963 fi 1964done 1965if $ac_cache_corrupted; then 1966 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1967echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1968 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1969echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1970 { (exit 1); exit 1; }; } 1971fi 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997ac_ext=c 1998ac_cpp='$CPP $CPPFLAGS' 1999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2001ac_compiler_gnu=$ac_cv_c_compiler_gnu 2002 2003 2004 2005 2006ac_config_headers="$ac_config_headers config.h" 2007 2008 2009# Require xorg-macros: XORG_DEFAULT_OPTIONS 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021ac_ext=c 2022ac_cpp='$CPP $CPPFLAGS' 2023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2025ac_compiler_gnu=$ac_cv_c_compiler_gnu 2026if test -n "$ac_tool_prefix"; then 2027 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2028set dummy ${ac_tool_prefix}gcc; ac_word=$2 2029{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2031if test "${ac_cv_prog_CC+set}" = set; then 2032 echo $ECHO_N "(cached) $ECHO_C" >&6 2033else 2034 if test -n "$CC"; then 2035 ac_cv_prog_CC="$CC" # Let the user override the test. 2036else 2037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2038for as_dir in $PATH 2039do 2040 IFS=$as_save_IFS 2041 test -z "$as_dir" && as_dir=. 2042 for ac_exec_ext in '' $ac_executable_extensions; do 2043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2044 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2046 break 2 2047 fi 2048done 2049done 2050IFS=$as_save_IFS 2051 2052fi 2053fi 2054CC=$ac_cv_prog_CC 2055if test -n "$CC"; then 2056 { echo "$as_me:$LINENO: result: $CC" >&5 2057echo "${ECHO_T}$CC" >&6; } 2058else 2059 { echo "$as_me:$LINENO: result: no" >&5 2060echo "${ECHO_T}no" >&6; } 2061fi 2062 2063 2064fi 2065if test -z "$ac_cv_prog_CC"; then 2066 ac_ct_CC=$CC 2067 # Extract the first word of "gcc", so it can be a program name with args. 2068set dummy gcc; ac_word=$2 2069{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2071if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2072 echo $ECHO_N "(cached) $ECHO_C" >&6 2073else 2074 if test -n "$ac_ct_CC"; then 2075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2076else 2077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2078for as_dir in $PATH 2079do 2080 IFS=$as_save_IFS 2081 test -z "$as_dir" && as_dir=. 2082 for ac_exec_ext in '' $ac_executable_extensions; do 2083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2084 ac_cv_prog_ac_ct_CC="gcc" 2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2086 break 2 2087 fi 2088done 2089done 2090IFS=$as_save_IFS 2091 2092fi 2093fi 2094ac_ct_CC=$ac_cv_prog_ac_ct_CC 2095if test -n "$ac_ct_CC"; then 2096 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2097echo "${ECHO_T}$ac_ct_CC" >&6; } 2098else 2099 { echo "$as_me:$LINENO: result: no" >&5 2100echo "${ECHO_T}no" >&6; } 2101fi 2102 2103 if test "x$ac_ct_CC" = x; then 2104 CC="" 2105 else 2106 case $cross_compiling:$ac_tool_warned in 2107yes:) 2108{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2109whose name does not start with the host triplet. If you think this 2110configuration is useful to you, please write to autoconf@gnu.org." >&5 2111echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2112whose name does not start with the host triplet. If you think this 2113configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2114ac_tool_warned=yes ;; 2115esac 2116 CC=$ac_ct_CC 2117 fi 2118else 2119 CC="$ac_cv_prog_CC" 2120fi 2121 2122if test -z "$CC"; then 2123 if test -n "$ac_tool_prefix"; then 2124 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2125set dummy ${ac_tool_prefix}cc; ac_word=$2 2126{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2128if test "${ac_cv_prog_CC+set}" = set; then 2129 echo $ECHO_N "(cached) $ECHO_C" >&6 2130else 2131 if test -n "$CC"; then 2132 ac_cv_prog_CC="$CC" # Let the user override the test. 2133else 2134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2135for as_dir in $PATH 2136do 2137 IFS=$as_save_IFS 2138 test -z "$as_dir" && as_dir=. 2139 for ac_exec_ext in '' $ac_executable_extensions; do 2140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2141 ac_cv_prog_CC="${ac_tool_prefix}cc" 2142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2143 break 2 2144 fi 2145done 2146done 2147IFS=$as_save_IFS 2148 2149fi 2150fi 2151CC=$ac_cv_prog_CC 2152if test -n "$CC"; then 2153 { echo "$as_me:$LINENO: result: $CC" >&5 2154echo "${ECHO_T}$CC" >&6; } 2155else 2156 { echo "$as_me:$LINENO: result: no" >&5 2157echo "${ECHO_T}no" >&6; } 2158fi 2159 2160 2161 fi 2162fi 2163if test -z "$CC"; then 2164 # Extract the first word of "cc", so it can be a program name with args. 2165set dummy cc; ac_word=$2 2166{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2168if test "${ac_cv_prog_CC+set}" = set; then 2169 echo $ECHO_N "(cached) $ECHO_C" >&6 2170else 2171 if test -n "$CC"; then 2172 ac_cv_prog_CC="$CC" # Let the user override the test. 2173else 2174 ac_prog_rejected=no 2175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2176for as_dir in $PATH 2177do 2178 IFS=$as_save_IFS 2179 test -z "$as_dir" && as_dir=. 2180 for ac_exec_ext in '' $ac_executable_extensions; do 2181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2182 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2183 ac_prog_rejected=yes 2184 continue 2185 fi 2186 ac_cv_prog_CC="cc" 2187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2188 break 2 2189 fi 2190done 2191done 2192IFS=$as_save_IFS 2193 2194if test $ac_prog_rejected = yes; then 2195 # We found a bogon in the path, so make sure we never use it. 2196 set dummy $ac_cv_prog_CC 2197 shift 2198 if test $# != 0; then 2199 # We chose a different compiler from the bogus one. 2200 # However, it has the same basename, so the bogon will be chosen 2201 # first if we set CC to just the basename; use the full file name. 2202 shift 2203 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2204 fi 2205fi 2206fi 2207fi 2208CC=$ac_cv_prog_CC 2209if test -n "$CC"; then 2210 { echo "$as_me:$LINENO: result: $CC" >&5 2211echo "${ECHO_T}$CC" >&6; } 2212else 2213 { echo "$as_me:$LINENO: result: no" >&5 2214echo "${ECHO_T}no" >&6; } 2215fi 2216 2217 2218fi 2219if test -z "$CC"; then 2220 if test -n "$ac_tool_prefix"; then 2221 for ac_prog in cl.exe 2222 do 2223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2224set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2225{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2227if test "${ac_cv_prog_CC+set}" = set; then 2228 echo $ECHO_N "(cached) $ECHO_C" >&6 2229else 2230 if test -n "$CC"; then 2231 ac_cv_prog_CC="$CC" # Let the user override the test. 2232else 2233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2234for as_dir in $PATH 2235do 2236 IFS=$as_save_IFS 2237 test -z "$as_dir" && as_dir=. 2238 for ac_exec_ext in '' $ac_executable_extensions; do 2239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2240 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2242 break 2 2243 fi 2244done 2245done 2246IFS=$as_save_IFS 2247 2248fi 2249fi 2250CC=$ac_cv_prog_CC 2251if test -n "$CC"; then 2252 { echo "$as_me:$LINENO: result: $CC" >&5 2253echo "${ECHO_T}$CC" >&6; } 2254else 2255 { echo "$as_me:$LINENO: result: no" >&5 2256echo "${ECHO_T}no" >&6; } 2257fi 2258 2259 2260 test -n "$CC" && break 2261 done 2262fi 2263if test -z "$CC"; then 2264 ac_ct_CC=$CC 2265 for ac_prog in cl.exe 2266do 2267 # Extract the first word of "$ac_prog", so it can be a program name with args. 2268set dummy $ac_prog; ac_word=$2 2269{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2271if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2272 echo $ECHO_N "(cached) $ECHO_C" >&6 2273else 2274 if test -n "$ac_ct_CC"; then 2275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2276else 2277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2278for as_dir in $PATH 2279do 2280 IFS=$as_save_IFS 2281 test -z "$as_dir" && as_dir=. 2282 for ac_exec_ext in '' $ac_executable_extensions; do 2283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2284 ac_cv_prog_ac_ct_CC="$ac_prog" 2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2286 break 2 2287 fi 2288done 2289done 2290IFS=$as_save_IFS 2291 2292fi 2293fi 2294ac_ct_CC=$ac_cv_prog_ac_ct_CC 2295if test -n "$ac_ct_CC"; then 2296 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2297echo "${ECHO_T}$ac_ct_CC" >&6; } 2298else 2299 { echo "$as_me:$LINENO: result: no" >&5 2300echo "${ECHO_T}no" >&6; } 2301fi 2302 2303 2304 test -n "$ac_ct_CC" && break 2305done 2306 2307 if test "x$ac_ct_CC" = x; then 2308 CC="" 2309 else 2310 case $cross_compiling:$ac_tool_warned in 2311yes:) 2312{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2313whose name does not start with the host triplet. If you think this 2314configuration is useful to you, please write to autoconf@gnu.org." >&5 2315echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2316whose name does not start with the host triplet. If you think this 2317configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2318ac_tool_warned=yes ;; 2319esac 2320 CC=$ac_ct_CC 2321 fi 2322fi 2323 2324fi 2325 2326 2327test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2328See \`config.log' for more details." >&5 2329echo "$as_me: error: no acceptable C compiler found in \$PATH 2330See \`config.log' for more details." >&2;} 2331 { (exit 1); exit 1; }; } 2332 2333# Provide some information about the compiler. 2334echo "$as_me:$LINENO: checking for C compiler version" >&5 2335ac_compiler=`set X $ac_compile; echo $2` 2336{ (ac_try="$ac_compiler --version >&5" 2337case "(($ac_try" in 2338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2339 *) ac_try_echo=$ac_try;; 2340esac 2341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2342 (eval "$ac_compiler --version >&5") 2>&5 2343 ac_status=$? 2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2345 (exit $ac_status); } 2346{ (ac_try="$ac_compiler -v >&5" 2347case "(($ac_try" in 2348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2349 *) ac_try_echo=$ac_try;; 2350esac 2351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2352 (eval "$ac_compiler -v >&5") 2>&5 2353 ac_status=$? 2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2355 (exit $ac_status); } 2356{ (ac_try="$ac_compiler -V >&5" 2357case "(($ac_try" in 2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2359 *) ac_try_echo=$ac_try;; 2360esac 2361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2362 (eval "$ac_compiler -V >&5") 2>&5 2363 ac_status=$? 2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2365 (exit $ac_status); } 2366 2367cat >conftest.$ac_ext <<_ACEOF 2368/* confdefs.h. */ 2369_ACEOF 2370cat confdefs.h >>conftest.$ac_ext 2371cat >>conftest.$ac_ext <<_ACEOF 2372/* end confdefs.h. */ 2373 2374int 2375main () 2376{ 2377 2378 ; 2379 return 0; 2380} 2381_ACEOF 2382ac_clean_files_save=$ac_clean_files 2383ac_clean_files="$ac_clean_files a.out a.exe b.out" 2384# Try to create an executable without -o first, disregard a.out. 2385# It will help us diagnose broken compilers, and finding out an intuition 2386# of exeext. 2387{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2388echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2389ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2390# 2391# List of possible output files, starting from the most likely. 2392# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2393# only as a last resort. b.out is created by i960 compilers. 2394ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2395# 2396# The IRIX 6 linker writes into existing files which may not be 2397# executable, retaining their permissions. Remove them first so a 2398# subsequent execution test works. 2399ac_rmfiles= 2400for ac_file in $ac_files 2401do 2402 case $ac_file in 2403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2404 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2405 esac 2406done 2407rm -f $ac_rmfiles 2408 2409if { (ac_try="$ac_link_default" 2410case "(($ac_try" in 2411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2412 *) ac_try_echo=$ac_try;; 2413esac 2414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2415 (eval "$ac_link_default") 2>&5 2416 ac_status=$? 2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2418 (exit $ac_status); }; then 2419 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2420# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2421# in a Makefile. We should not override ac_cv_exeext if it was cached, 2422# so that the user can short-circuit this test for compilers unknown to 2423# Autoconf. 2424for ac_file in $ac_files '' 2425do 2426 test -f "$ac_file" || continue 2427 case $ac_file in 2428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2429 ;; 2430 [ab].out ) 2431 # We found the default executable, but exeext='' is most 2432 # certainly right. 2433 break;; 2434 *.* ) 2435 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2436 then :; else 2437 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2438 fi 2439 # We set ac_cv_exeext here because the later test for it is not 2440 # safe: cross compilers may not add the suffix if given an `-o' 2441 # argument, so we may need to know it at that point already. 2442 # Even if this section looks crufty: it has the advantage of 2443 # actually working. 2444 break;; 2445 * ) 2446 break;; 2447 esac 2448done 2449test "$ac_cv_exeext" = no && ac_cv_exeext= 2450 2451else 2452 ac_file='' 2453fi 2454 2455{ echo "$as_me:$LINENO: result: $ac_file" >&5 2456echo "${ECHO_T}$ac_file" >&6; } 2457if test -z "$ac_file"; then 2458 echo "$as_me: failed program was:" >&5 2459sed 's/^/| /' conftest.$ac_ext >&5 2460 2461{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2462See \`config.log' for more details." >&5 2463echo "$as_me: error: C compiler cannot create executables 2464See \`config.log' for more details." >&2;} 2465 { (exit 77); exit 77; }; } 2466fi 2467 2468ac_exeext=$ac_cv_exeext 2469 2470# Check that the compiler produces executables we can run. If not, either 2471# the compiler is broken, or we cross compile. 2472{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2473echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2474# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2475# If not cross compiling, check that we can run a simple program. 2476if test "$cross_compiling" != yes; then 2477 if { ac_try='./$ac_file' 2478 { (case "(($ac_try" in 2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2480 *) ac_try_echo=$ac_try;; 2481esac 2482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2483 (eval "$ac_try") 2>&5 2484 ac_status=$? 2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2486 (exit $ac_status); }; }; then 2487 cross_compiling=no 2488 else 2489 if test "$cross_compiling" = maybe; then 2490 cross_compiling=yes 2491 else 2492 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2493If you meant to cross compile, use \`--host'. 2494See \`config.log' for more details." >&5 2495echo "$as_me: error: cannot run C compiled programs. 2496If you meant to cross compile, use \`--host'. 2497See \`config.log' for more details." >&2;} 2498 { (exit 1); exit 1; }; } 2499 fi 2500 fi 2501fi 2502{ echo "$as_me:$LINENO: result: yes" >&5 2503echo "${ECHO_T}yes" >&6; } 2504 2505rm -f a.out a.exe conftest$ac_cv_exeext b.out 2506ac_clean_files=$ac_clean_files_save 2507# Check that the compiler produces executables we can run. If not, either 2508# the compiler is broken, or we cross compile. 2509{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2510echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2511{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2512echo "${ECHO_T}$cross_compiling" >&6; } 2513 2514{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2515echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2516if { (ac_try="$ac_link" 2517case "(($ac_try" in 2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2519 *) ac_try_echo=$ac_try;; 2520esac 2521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2522 (eval "$ac_link") 2>&5 2523 ac_status=$? 2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2525 (exit $ac_status); }; then 2526 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2527# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2528# work properly (i.e., refer to `conftest.exe'), while it won't with 2529# `rm'. 2530for ac_file in conftest.exe conftest conftest.*; do 2531 test -f "$ac_file" || continue 2532 case $ac_file in 2533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2534 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2535 break;; 2536 * ) break;; 2537 esac 2538done 2539else 2540 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2541See \`config.log' for more details." >&5 2542echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2543See \`config.log' for more details." >&2;} 2544 { (exit 1); exit 1; }; } 2545fi 2546 2547rm -f conftest$ac_cv_exeext 2548{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2549echo "${ECHO_T}$ac_cv_exeext" >&6; } 2550 2551rm -f conftest.$ac_ext 2552EXEEXT=$ac_cv_exeext 2553ac_exeext=$EXEEXT 2554{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2555echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2556if test "${ac_cv_objext+set}" = set; then 2557 echo $ECHO_N "(cached) $ECHO_C" >&6 2558else 2559 cat >conftest.$ac_ext <<_ACEOF 2560/* confdefs.h. */ 2561_ACEOF 2562cat confdefs.h >>conftest.$ac_ext 2563cat >>conftest.$ac_ext <<_ACEOF 2564/* end confdefs.h. */ 2565 2566int 2567main () 2568{ 2569 2570 ; 2571 return 0; 2572} 2573_ACEOF 2574rm -f conftest.o conftest.obj 2575if { (ac_try="$ac_compile" 2576case "(($ac_try" in 2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2578 *) ac_try_echo=$ac_try;; 2579esac 2580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2581 (eval "$ac_compile") 2>&5 2582 ac_status=$? 2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2584 (exit $ac_status); }; then 2585 for ac_file in conftest.o conftest.obj conftest.*; do 2586 test -f "$ac_file" || continue; 2587 case $ac_file in 2588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2589 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2590 break;; 2591 esac 2592done 2593else 2594 echo "$as_me: failed program was:" >&5 2595sed 's/^/| /' conftest.$ac_ext >&5 2596 2597{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2598See \`config.log' for more details." >&5 2599echo "$as_me: error: cannot compute suffix of object files: cannot compile 2600See \`config.log' for more details." >&2;} 2601 { (exit 1); exit 1; }; } 2602fi 2603 2604rm -f conftest.$ac_cv_objext conftest.$ac_ext 2605fi 2606{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2607echo "${ECHO_T}$ac_cv_objext" >&6; } 2608OBJEXT=$ac_cv_objext 2609ac_objext=$OBJEXT 2610{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2611echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2612if test "${ac_cv_c_compiler_gnu+set}" = set; then 2613 echo $ECHO_N "(cached) $ECHO_C" >&6 2614else 2615 cat >conftest.$ac_ext <<_ACEOF 2616/* confdefs.h. */ 2617_ACEOF 2618cat confdefs.h >>conftest.$ac_ext 2619cat >>conftest.$ac_ext <<_ACEOF 2620/* end confdefs.h. */ 2621 2622int 2623main () 2624{ 2625#ifndef __GNUC__ 2626 choke me 2627#endif 2628 2629 ; 2630 return 0; 2631} 2632_ACEOF 2633rm -f conftest.$ac_objext 2634if { (ac_try="$ac_compile" 2635case "(($ac_try" in 2636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2637 *) ac_try_echo=$ac_try;; 2638esac 2639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2640 (eval "$ac_compile") 2>conftest.er1 2641 ac_status=$? 2642 grep -v '^ *+' conftest.er1 >conftest.err 2643 rm -f conftest.er1 2644 cat conftest.err >&5 2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2646 (exit $ac_status); } && { 2647 test -z "$ac_c_werror_flag" || 2648 test ! -s conftest.err 2649 } && test -s conftest.$ac_objext; then 2650 ac_compiler_gnu=yes 2651else 2652 echo "$as_me: failed program was:" >&5 2653sed 's/^/| /' conftest.$ac_ext >&5 2654 2655 ac_compiler_gnu=no 2656fi 2657 2658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2659ac_cv_c_compiler_gnu=$ac_compiler_gnu 2660 2661fi 2662{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2663echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2664GCC=`test $ac_compiler_gnu = yes && echo yes` 2665ac_test_CFLAGS=${CFLAGS+set} 2666ac_save_CFLAGS=$CFLAGS 2667{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2668echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2669if test "${ac_cv_prog_cc_g+set}" = set; then 2670 echo $ECHO_N "(cached) $ECHO_C" >&6 2671else 2672 ac_save_c_werror_flag=$ac_c_werror_flag 2673 ac_c_werror_flag=yes 2674 ac_cv_prog_cc_g=no 2675 CFLAGS="-g" 2676 cat >conftest.$ac_ext <<_ACEOF 2677/* confdefs.h. */ 2678_ACEOF 2679cat confdefs.h >>conftest.$ac_ext 2680cat >>conftest.$ac_ext <<_ACEOF 2681/* end confdefs.h. */ 2682 2683int 2684main () 2685{ 2686 2687 ; 2688 return 0; 2689} 2690_ACEOF 2691rm -f conftest.$ac_objext 2692if { (ac_try="$ac_compile" 2693case "(($ac_try" in 2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2695 *) ac_try_echo=$ac_try;; 2696esac 2697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2698 (eval "$ac_compile") 2>conftest.er1 2699 ac_status=$? 2700 grep -v '^ *+' conftest.er1 >conftest.err 2701 rm -f conftest.er1 2702 cat conftest.err >&5 2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2704 (exit $ac_status); } && { 2705 test -z "$ac_c_werror_flag" || 2706 test ! -s conftest.err 2707 } && test -s conftest.$ac_objext; then 2708 ac_cv_prog_cc_g=yes 2709else 2710 echo "$as_me: failed program was:" >&5 2711sed 's/^/| /' conftest.$ac_ext >&5 2712 2713 CFLAGS="" 2714 cat >conftest.$ac_ext <<_ACEOF 2715/* confdefs.h. */ 2716_ACEOF 2717cat confdefs.h >>conftest.$ac_ext 2718cat >>conftest.$ac_ext <<_ACEOF 2719/* end confdefs.h. */ 2720 2721int 2722main () 2723{ 2724 2725 ; 2726 return 0; 2727} 2728_ACEOF 2729rm -f conftest.$ac_objext 2730if { (ac_try="$ac_compile" 2731case "(($ac_try" in 2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2733 *) ac_try_echo=$ac_try;; 2734esac 2735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2736 (eval "$ac_compile") 2>conftest.er1 2737 ac_status=$? 2738 grep -v '^ *+' conftest.er1 >conftest.err 2739 rm -f conftest.er1 2740 cat conftest.err >&5 2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2742 (exit $ac_status); } && { 2743 test -z "$ac_c_werror_flag" || 2744 test ! -s conftest.err 2745 } && test -s conftest.$ac_objext; then 2746 : 2747else 2748 echo "$as_me: failed program was:" >&5 2749sed 's/^/| /' conftest.$ac_ext >&5 2750 2751 ac_c_werror_flag=$ac_save_c_werror_flag 2752 CFLAGS="-g" 2753 cat >conftest.$ac_ext <<_ACEOF 2754/* confdefs.h. */ 2755_ACEOF 2756cat confdefs.h >>conftest.$ac_ext 2757cat >>conftest.$ac_ext <<_ACEOF 2758/* end confdefs.h. */ 2759 2760int 2761main () 2762{ 2763 2764 ; 2765 return 0; 2766} 2767_ACEOF 2768rm -f conftest.$ac_objext 2769if { (ac_try="$ac_compile" 2770case "(($ac_try" in 2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2772 *) ac_try_echo=$ac_try;; 2773esac 2774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2775 (eval "$ac_compile") 2>conftest.er1 2776 ac_status=$? 2777 grep -v '^ *+' conftest.er1 >conftest.err 2778 rm -f conftest.er1 2779 cat conftest.err >&5 2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2781 (exit $ac_status); } && { 2782 test -z "$ac_c_werror_flag" || 2783 test ! -s conftest.err 2784 } && test -s conftest.$ac_objext; then 2785 ac_cv_prog_cc_g=yes 2786else 2787 echo "$as_me: failed program was:" >&5 2788sed 's/^/| /' conftest.$ac_ext >&5 2789 2790 2791fi 2792 2793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2794fi 2795 2796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2797fi 2798 2799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2800 ac_c_werror_flag=$ac_save_c_werror_flag 2801fi 2802{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2803echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2804if test "$ac_test_CFLAGS" = set; then 2805 CFLAGS=$ac_save_CFLAGS 2806elif test $ac_cv_prog_cc_g = yes; then 2807 if test "$GCC" = yes; then 2808 CFLAGS="-g -O2" 2809 else 2810 CFLAGS="-g" 2811 fi 2812else 2813 if test "$GCC" = yes; then 2814 CFLAGS="-O2" 2815 else 2816 CFLAGS= 2817 fi 2818fi 2819{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2820echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2821if test "${ac_cv_prog_cc_c89+set}" = set; then 2822 echo $ECHO_N "(cached) $ECHO_C" >&6 2823else 2824 ac_cv_prog_cc_c89=no 2825ac_save_CC=$CC 2826cat >conftest.$ac_ext <<_ACEOF 2827/* confdefs.h. */ 2828_ACEOF 2829cat confdefs.h >>conftest.$ac_ext 2830cat >>conftest.$ac_ext <<_ACEOF 2831/* end confdefs.h. */ 2832#include <stdarg.h> 2833#include <stdio.h> 2834#include <sys/types.h> 2835#include <sys/stat.h> 2836/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2837struct buf { int x; }; 2838FILE * (*rcsopen) (struct buf *, struct stat *, int); 2839static char *e (p, i) 2840 char **p; 2841 int i; 2842{ 2843 return p[i]; 2844} 2845static char *f (char * (*g) (char **, int), char **p, ...) 2846{ 2847 char *s; 2848 va_list v; 2849 va_start (v,p); 2850 s = g (p, va_arg (v,int)); 2851 va_end (v); 2852 return s; 2853} 2854 2855/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2856 function prototypes and stuff, but not '\xHH' hex character constants. 2857 These don't provoke an error unfortunately, instead are silently treated 2858 as 'x'. The following induces an error, until -std is added to get 2859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2860 array size at least. It's necessary to write '\x00'==0 to get something 2861 that's true only with -std. */ 2862int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2863 2864/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2865 inside strings and character constants. */ 2866#define FOO(x) 'x' 2867int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2868 2869int test (int i, double x); 2870struct s1 {int (*f) (int a);}; 2871struct s2 {int (*f) (double a);}; 2872int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2873int argc; 2874char **argv; 2875int 2876main () 2877{ 2878return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2879 ; 2880 return 0; 2881} 2882_ACEOF 2883for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2884 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2885do 2886 CC="$ac_save_CC $ac_arg" 2887 rm -f conftest.$ac_objext 2888if { (ac_try="$ac_compile" 2889case "(($ac_try" in 2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2891 *) ac_try_echo=$ac_try;; 2892esac 2893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2894 (eval "$ac_compile") 2>conftest.er1 2895 ac_status=$? 2896 grep -v '^ *+' conftest.er1 >conftest.err 2897 rm -f conftest.er1 2898 cat conftest.err >&5 2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2900 (exit $ac_status); } && { 2901 test -z "$ac_c_werror_flag" || 2902 test ! -s conftest.err 2903 } && test -s conftest.$ac_objext; then 2904 ac_cv_prog_cc_c89=$ac_arg 2905else 2906 echo "$as_me: failed program was:" >&5 2907sed 's/^/| /' conftest.$ac_ext >&5 2908 2909 2910fi 2911 2912rm -f core conftest.err conftest.$ac_objext 2913 test "x$ac_cv_prog_cc_c89" != "xno" && break 2914done 2915rm -f conftest.$ac_ext 2916CC=$ac_save_CC 2917 2918fi 2919# AC_CACHE_VAL 2920case "x$ac_cv_prog_cc_c89" in 2921 x) 2922 { echo "$as_me:$LINENO: result: none needed" >&5 2923echo "${ECHO_T}none needed" >&6; } ;; 2924 xno) 2925 { echo "$as_me:$LINENO: result: unsupported" >&5 2926echo "${ECHO_T}unsupported" >&6; } ;; 2927 *) 2928 CC="$CC $ac_cv_prog_cc_c89" 2929 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2930echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2931esac 2932 2933 2934ac_ext=c 2935ac_cpp='$CPP $CPPFLAGS' 2936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2938ac_compiler_gnu=$ac_cv_c_compiler_gnu 2939 2940 2941ac_ext=c 2942ac_cpp='$CPP $CPPFLAGS' 2943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2945ac_compiler_gnu=$ac_cv_c_compiler_gnu 2946{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2947echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 2948# On Suns, sometimes $CPP names a directory. 2949if test -n "$CPP" && test -d "$CPP"; then 2950 CPP= 2951fi 2952if test -z "$CPP"; then 2953 if test "${ac_cv_prog_CPP+set}" = set; then 2954 echo $ECHO_N "(cached) $ECHO_C" >&6 2955else 2956 # Double quotes because CPP needs to be expanded 2957 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2958 do 2959 ac_preproc_ok=false 2960for ac_c_preproc_warn_flag in '' yes 2961do 2962 # Use a header file that comes with gcc, so configuring glibc 2963 # with a fresh cross-compiler works. 2964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2965 # <limits.h> exists even on freestanding compilers. 2966 # On the NeXT, cc -E runs the code through the compiler's parser, 2967 # not just through cpp. "Syntax error" is here to catch this case. 2968 cat >conftest.$ac_ext <<_ACEOF 2969/* confdefs.h. */ 2970_ACEOF 2971cat confdefs.h >>conftest.$ac_ext 2972cat >>conftest.$ac_ext <<_ACEOF 2973/* end confdefs.h. */ 2974#ifdef __STDC__ 2975# include <limits.h> 2976#else 2977# include <assert.h> 2978#endif 2979 Syntax error 2980_ACEOF 2981if { (ac_try="$ac_cpp conftest.$ac_ext" 2982case "(($ac_try" in 2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2984 *) ac_try_echo=$ac_try;; 2985esac 2986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2988 ac_status=$? 2989 grep -v '^ *+' conftest.er1 >conftest.err 2990 rm -f conftest.er1 2991 cat conftest.err >&5 2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2993 (exit $ac_status); } >/dev/null && { 2994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2995 test ! -s conftest.err 2996 }; then 2997 : 2998else 2999 echo "$as_me: failed program was:" >&5 3000sed 's/^/| /' conftest.$ac_ext >&5 3001 3002 # Broken: fails on valid input. 3003continue 3004fi 3005 3006rm -f conftest.err conftest.$ac_ext 3007 3008 # OK, works on sane cases. Now check whether nonexistent headers 3009 # can be detected and how. 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#include <ac_nonexistent.h> 3017_ACEOF 3018if { (ac_try="$ac_cpp conftest.$ac_ext" 3019case "(($ac_try" in 3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3021 *) ac_try_echo=$ac_try;; 3022esac 3023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3025 ac_status=$? 3026 grep -v '^ *+' conftest.er1 >conftest.err 3027 rm -f conftest.er1 3028 cat conftest.err >&5 3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3030 (exit $ac_status); } >/dev/null && { 3031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3032 test ! -s conftest.err 3033 }; then 3034 # Broken: success on invalid input. 3035continue 3036else 3037 echo "$as_me: failed program was:" >&5 3038sed 's/^/| /' conftest.$ac_ext >&5 3039 3040 # Passes both tests. 3041ac_preproc_ok=: 3042break 3043fi 3044 3045rm -f conftest.err conftest.$ac_ext 3046 3047done 3048# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3049rm -f conftest.err conftest.$ac_ext 3050if $ac_preproc_ok; then 3051 break 3052fi 3053 3054 done 3055 ac_cv_prog_CPP=$CPP 3056 3057fi 3058 CPP=$ac_cv_prog_CPP 3059else 3060 ac_cv_prog_CPP=$CPP 3061fi 3062{ echo "$as_me:$LINENO: result: $CPP" >&5 3063echo "${ECHO_T}$CPP" >&6; } 3064ac_preproc_ok=false 3065for ac_c_preproc_warn_flag in '' yes 3066do 3067 # Use a header file that comes with gcc, so configuring glibc 3068 # with a fresh cross-compiler works. 3069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3070 # <limits.h> exists even on freestanding compilers. 3071 # On the NeXT, cc -E runs the code through the compiler's parser, 3072 # not just through cpp. "Syntax error" is here to catch this case. 3073 cat >conftest.$ac_ext <<_ACEOF 3074/* confdefs.h. */ 3075_ACEOF 3076cat confdefs.h >>conftest.$ac_ext 3077cat >>conftest.$ac_ext <<_ACEOF 3078/* end confdefs.h. */ 3079#ifdef __STDC__ 3080# include <limits.h> 3081#else 3082# include <assert.h> 3083#endif 3084 Syntax error 3085_ACEOF 3086if { (ac_try="$ac_cpp conftest.$ac_ext" 3087case "(($ac_try" in 3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3089 *) ac_try_echo=$ac_try;; 3090esac 3091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3093 ac_status=$? 3094 grep -v '^ *+' conftest.er1 >conftest.err 3095 rm -f conftest.er1 3096 cat conftest.err >&5 3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3098 (exit $ac_status); } >/dev/null && { 3099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3100 test ! -s conftest.err 3101 }; then 3102 : 3103else 3104 echo "$as_me: failed program was:" >&5 3105sed 's/^/| /' conftest.$ac_ext >&5 3106 3107 # Broken: fails on valid input. 3108continue 3109fi 3110 3111rm -f conftest.err conftest.$ac_ext 3112 3113 # OK, works on sane cases. Now check whether nonexistent headers 3114 # can be detected and how. 3115 cat >conftest.$ac_ext <<_ACEOF 3116/* confdefs.h. */ 3117_ACEOF 3118cat confdefs.h >>conftest.$ac_ext 3119cat >>conftest.$ac_ext <<_ACEOF 3120/* end confdefs.h. */ 3121#include <ac_nonexistent.h> 3122_ACEOF 3123if { (ac_try="$ac_cpp conftest.$ac_ext" 3124case "(($ac_try" in 3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3126 *) ac_try_echo=$ac_try;; 3127esac 3128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3130 ac_status=$? 3131 grep -v '^ *+' conftest.er1 >conftest.err 3132 rm -f conftest.er1 3133 cat conftest.err >&5 3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3135 (exit $ac_status); } >/dev/null && { 3136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3137 test ! -s conftest.err 3138 }; then 3139 # Broken: success on invalid input. 3140continue 3141else 3142 echo "$as_me: failed program was:" >&5 3143sed 's/^/| /' conftest.$ac_ext >&5 3144 3145 # Passes both tests. 3146ac_preproc_ok=: 3147break 3148fi 3149 3150rm -f conftest.err conftest.$ac_ext 3151 3152done 3153# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3154rm -f conftest.err conftest.$ac_ext 3155if $ac_preproc_ok; then 3156 : 3157else 3158 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3159See \`config.log' for more details." >&5 3160echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3161See \`config.log' for more details." >&2;} 3162 { (exit 1); exit 1; }; } 3163fi 3164 3165ac_ext=c 3166ac_cpp='$CPP $CPPFLAGS' 3167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3169ac_compiler_gnu=$ac_cv_c_compiler_gnu 3170 3171 3172{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3173echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3174if test "${ac_cv_path_GREP+set}" = set; then 3175 echo $ECHO_N "(cached) $ECHO_C" >&6 3176else 3177 # Extract the first word of "grep ggrep" to use in msg output 3178if test -z "$GREP"; then 3179set dummy grep ggrep; ac_prog_name=$2 3180if test "${ac_cv_path_GREP+set}" = set; then 3181 echo $ECHO_N "(cached) $ECHO_C" >&6 3182else 3183 ac_path_GREP_found=false 3184# Loop through the user's path and test for each of PROGNAME-LIST 3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3186for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3187do 3188 IFS=$as_save_IFS 3189 test -z "$as_dir" && as_dir=. 3190 for ac_prog in grep ggrep; do 3191 for ac_exec_ext in '' $ac_executable_extensions; do 3192 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3193 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3194 # Check for GNU ac_path_GREP and select it if it is found. 3195 # Check for GNU $ac_path_GREP 3196case `"$ac_path_GREP" --version 2>&1` in 3197*GNU*) 3198 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3199*) 3200 ac_count=0 3201 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3202 while : 3203 do 3204 cat "conftest.in" "conftest.in" >"conftest.tmp" 3205 mv "conftest.tmp" "conftest.in" 3206 cp "conftest.in" "conftest.nl" 3207 echo 'GREP' >> "conftest.nl" 3208 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3210 ac_count=`expr $ac_count + 1` 3211 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3212 # Best one so far, save it but keep looking for a better one 3213 ac_cv_path_GREP="$ac_path_GREP" 3214 ac_path_GREP_max=$ac_count 3215 fi 3216 # 10*(2^10) chars as input seems more than enough 3217 test $ac_count -gt 10 && break 3218 done 3219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3220esac 3221 3222 3223 $ac_path_GREP_found && break 3 3224 done 3225done 3226 3227done 3228IFS=$as_save_IFS 3229 3230 3231fi 3232 3233GREP="$ac_cv_path_GREP" 3234if test -z "$GREP"; then 3235 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3236echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3237 { (exit 1); exit 1; }; } 3238fi 3239 3240else 3241 ac_cv_path_GREP=$GREP 3242fi 3243 3244 3245fi 3246{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3247echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3248 GREP="$ac_cv_path_GREP" 3249 3250 3251{ echo "$as_me:$LINENO: checking for egrep" >&5 3252echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3253if test "${ac_cv_path_EGREP+set}" = set; then 3254 echo $ECHO_N "(cached) $ECHO_C" >&6 3255else 3256 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3257 then ac_cv_path_EGREP="$GREP -E" 3258 else 3259 # Extract the first word of "egrep" to use in msg output 3260if test -z "$EGREP"; then 3261set dummy egrep; ac_prog_name=$2 3262if test "${ac_cv_path_EGREP+set}" = set; then 3263 echo $ECHO_N "(cached) $ECHO_C" >&6 3264else 3265 ac_path_EGREP_found=false 3266# Loop through the user's path and test for each of PROGNAME-LIST 3267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3268for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3269do 3270 IFS=$as_save_IFS 3271 test -z "$as_dir" && as_dir=. 3272 for ac_prog in egrep; do 3273 for ac_exec_ext in '' $ac_executable_extensions; do 3274 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3275 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3276 # Check for GNU ac_path_EGREP and select it if it is found. 3277 # Check for GNU $ac_path_EGREP 3278case `"$ac_path_EGREP" --version 2>&1` in 3279*GNU*) 3280 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3281*) 3282 ac_count=0 3283 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3284 while : 3285 do 3286 cat "conftest.in" "conftest.in" >"conftest.tmp" 3287 mv "conftest.tmp" "conftest.in" 3288 cp "conftest.in" "conftest.nl" 3289 echo 'EGREP' >> "conftest.nl" 3290 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3291 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3292 ac_count=`expr $ac_count + 1` 3293 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3294 # Best one so far, save it but keep looking for a better one 3295 ac_cv_path_EGREP="$ac_path_EGREP" 3296 ac_path_EGREP_max=$ac_count 3297 fi 3298 # 10*(2^10) chars as input seems more than enough 3299 test $ac_count -gt 10 && break 3300 done 3301 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3302esac 3303 3304 3305 $ac_path_EGREP_found && break 3 3306 done 3307done 3308 3309done 3310IFS=$as_save_IFS 3311 3312 3313fi 3314 3315EGREP="$ac_cv_path_EGREP" 3316if test -z "$EGREP"; then 3317 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3318echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3319 { (exit 1); exit 1; }; } 3320fi 3321 3322else 3323 ac_cv_path_EGREP=$EGREP 3324fi 3325 3326 3327 fi 3328fi 3329{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3330echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3331 EGREP="$ac_cv_path_EGREP" 3332 3333 3334{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3335echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3336if test "${ac_cv_header_stdc+set}" = set; then 3337 echo $ECHO_N "(cached) $ECHO_C" >&6 3338else 3339 cat >conftest.$ac_ext <<_ACEOF 3340/* confdefs.h. */ 3341_ACEOF 3342cat confdefs.h >>conftest.$ac_ext 3343cat >>conftest.$ac_ext <<_ACEOF 3344/* end confdefs.h. */ 3345#include <stdlib.h> 3346#include <stdarg.h> 3347#include <string.h> 3348#include <float.h> 3349 3350int 3351main () 3352{ 3353 3354 ; 3355 return 0; 3356} 3357_ACEOF 3358rm -f conftest.$ac_objext 3359if { (ac_try="$ac_compile" 3360case "(($ac_try" in 3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3362 *) ac_try_echo=$ac_try;; 3363esac 3364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3365 (eval "$ac_compile") 2>conftest.er1 3366 ac_status=$? 3367 grep -v '^ *+' conftest.er1 >conftest.err 3368 rm -f conftest.er1 3369 cat conftest.err >&5 3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3371 (exit $ac_status); } && { 3372 test -z "$ac_c_werror_flag" || 3373 test ! -s conftest.err 3374 } && test -s conftest.$ac_objext; then 3375 ac_cv_header_stdc=yes 3376else 3377 echo "$as_me: failed program was:" >&5 3378sed 's/^/| /' conftest.$ac_ext >&5 3379 3380 ac_cv_header_stdc=no 3381fi 3382 3383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3384 3385if test $ac_cv_header_stdc = yes; then 3386 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3387 cat >conftest.$ac_ext <<_ACEOF 3388/* confdefs.h. */ 3389_ACEOF 3390cat confdefs.h >>conftest.$ac_ext 3391cat >>conftest.$ac_ext <<_ACEOF 3392/* end confdefs.h. */ 3393#include <string.h> 3394 3395_ACEOF 3396if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3397 $EGREP "memchr" >/dev/null 2>&1; then 3398 : 3399else 3400 ac_cv_header_stdc=no 3401fi 3402rm -f conftest* 3403 3404fi 3405 3406if test $ac_cv_header_stdc = yes; then 3407 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3408 cat >conftest.$ac_ext <<_ACEOF 3409/* confdefs.h. */ 3410_ACEOF 3411cat confdefs.h >>conftest.$ac_ext 3412cat >>conftest.$ac_ext <<_ACEOF 3413/* end confdefs.h. */ 3414#include <stdlib.h> 3415 3416_ACEOF 3417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3418 $EGREP "free" >/dev/null 2>&1; then 3419 : 3420else 3421 ac_cv_header_stdc=no 3422fi 3423rm -f conftest* 3424 3425fi 3426 3427if test $ac_cv_header_stdc = yes; then 3428 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3429 if test "$cross_compiling" = yes; then 3430 : 3431else 3432 cat >conftest.$ac_ext <<_ACEOF 3433/* confdefs.h. */ 3434_ACEOF 3435cat confdefs.h >>conftest.$ac_ext 3436cat >>conftest.$ac_ext <<_ACEOF 3437/* end confdefs.h. */ 3438#include <ctype.h> 3439#include <stdlib.h> 3440#if ((' ' & 0x0FF) == 0x020) 3441# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3442# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3443#else 3444# define ISLOWER(c) \ 3445 (('a' <= (c) && (c) <= 'i') \ 3446 || ('j' <= (c) && (c) <= 'r') \ 3447 || ('s' <= (c) && (c) <= 'z')) 3448# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3449#endif 3450 3451#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3452int 3453main () 3454{ 3455 int i; 3456 for (i = 0; i < 256; i++) 3457 if (XOR (islower (i), ISLOWER (i)) 3458 || toupper (i) != TOUPPER (i)) 3459 return 2; 3460 return 0; 3461} 3462_ACEOF 3463rm -f conftest$ac_exeext 3464if { (ac_try="$ac_link" 3465case "(($ac_try" in 3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3467 *) ac_try_echo=$ac_try;; 3468esac 3469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3470 (eval "$ac_link") 2>&5 3471 ac_status=$? 3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3474 { (case "(($ac_try" in 3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3476 *) ac_try_echo=$ac_try;; 3477esac 3478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3479 (eval "$ac_try") 2>&5 3480 ac_status=$? 3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3482 (exit $ac_status); }; }; then 3483 : 3484else 3485 echo "$as_me: program exited with status $ac_status" >&5 3486echo "$as_me: failed program was:" >&5 3487sed 's/^/| /' conftest.$ac_ext >&5 3488 3489( exit $ac_status ) 3490ac_cv_header_stdc=no 3491fi 3492rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3493fi 3494 3495 3496fi 3497fi 3498{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3499echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3500if test $ac_cv_header_stdc = yes; then 3501 3502cat >>confdefs.h <<\_ACEOF 3503#define STDC_HEADERS 1 3504_ACEOF 3505 3506fi 3507 3508# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3519 inttypes.h stdint.h unistd.h 3520do 3521as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3522{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3524if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3525 echo $ECHO_N "(cached) $ECHO_C" >&6 3526else 3527 cat >conftest.$ac_ext <<_ACEOF 3528/* confdefs.h. */ 3529_ACEOF 3530cat confdefs.h >>conftest.$ac_ext 3531cat >>conftest.$ac_ext <<_ACEOF 3532/* end confdefs.h. */ 3533$ac_includes_default 3534 3535#include <$ac_header> 3536_ACEOF 3537rm -f conftest.$ac_objext 3538if { (ac_try="$ac_compile" 3539case "(($ac_try" in 3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3541 *) ac_try_echo=$ac_try;; 3542esac 3543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3544 (eval "$ac_compile") 2>conftest.er1 3545 ac_status=$? 3546 grep -v '^ *+' conftest.er1 >conftest.err 3547 rm -f conftest.er1 3548 cat conftest.err >&5 3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3550 (exit $ac_status); } && { 3551 test -z "$ac_c_werror_flag" || 3552 test ! -s conftest.err 3553 } && test -s conftest.$ac_objext; then 3554 eval "$as_ac_Header=yes" 3555else 3556 echo "$as_me: failed program was:" >&5 3557sed 's/^/| /' conftest.$ac_ext >&5 3558 3559 eval "$as_ac_Header=no" 3560fi 3561 3562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3563fi 3564ac_res=`eval echo '${'$as_ac_Header'}'` 3565 { echo "$as_me:$LINENO: result: $ac_res" >&5 3566echo "${ECHO_T}$ac_res" >&6; } 3567if test `eval echo '${'$as_ac_Header'}'` = yes; then 3568 cat >>confdefs.h <<_ACEOF 3569#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3570_ACEOF 3571 3572fi 3573 3574done 3575 3576 3577 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 3578echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; } 3579if test "${ac_cv_prog_cc_c99+set}" = set; then 3580 echo $ECHO_N "(cached) $ECHO_C" >&6 3581else 3582 ac_cv_prog_cc_c99=no 3583ac_save_CC=$CC 3584cat >conftest.$ac_ext <<_ACEOF 3585/* confdefs.h. */ 3586_ACEOF 3587cat confdefs.h >>conftest.$ac_ext 3588cat >>conftest.$ac_ext <<_ACEOF 3589/* end confdefs.h. */ 3590#include <stdarg.h> 3591#include <stdbool.h> 3592#include <stdlib.h> 3593#include <wchar.h> 3594#include <stdio.h> 3595 3596// Check varargs macros. These examples are taken from C99 6.10.3.5. 3597#define debug(...) fprintf (stderr, __VA_ARGS__) 3598#define showlist(...) puts (#__VA_ARGS__) 3599#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3600static void 3601test_varargs_macros (void) 3602{ 3603 int x = 1234; 3604 int y = 5678; 3605 debug ("Flag"); 3606 debug ("X = %d\n", x); 3607 showlist (The first, second, and third items.); 3608 report (x>y, "x is %d but y is %d", x, y); 3609} 3610 3611// Check long long types. 3612#define BIG64 18446744073709551615ull 3613#define BIG32 4294967295ul 3614#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3615#if !BIG_OK 3616 your preprocessor is broken; 3617#endif 3618#if BIG_OK 3619#else 3620 your preprocessor is broken; 3621#endif 3622static long long int bignum = -9223372036854775807LL; 3623static unsigned long long int ubignum = BIG64; 3624 3625struct incomplete_array 3626{ 3627 int datasize; 3628 double data[]; 3629}; 3630 3631struct named_init { 3632 int number; 3633 const wchar_t *name; 3634 double average; 3635}; 3636 3637typedef const char *ccp; 3638 3639static inline int 3640test_restrict (ccp restrict text) 3641{ 3642 // See if C++-style comments work. 3643 // Iterate through items via the restricted pointer. 3644 // Also check for declarations in for loops. 3645 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3646 continue; 3647 return 0; 3648} 3649 3650// Check varargs and va_copy. 3651static void 3652test_varargs (const char *format, ...) 3653{ 3654 va_list args; 3655 va_start (args, format); 3656 va_list args_copy; 3657 va_copy (args_copy, args); 3658 3659 const char *str; 3660 int number; 3661 float fnumber; 3662 3663 while (*format) 3664 { 3665 switch (*format++) 3666 { 3667 case 's': // string 3668 str = va_arg (args_copy, const char *); 3669 break; 3670 case 'd': // int 3671 number = va_arg (args_copy, int); 3672 break; 3673 case 'f': // float 3674 fnumber = va_arg (args_copy, double); 3675 break; 3676 default: 3677 break; 3678 } 3679 } 3680 va_end (args_copy); 3681 va_end (args); 3682} 3683 3684int 3685main () 3686{ 3687 3688 // Check bool. 3689 _Bool success = false; 3690 3691 // Check restrict. 3692 if (test_restrict ("String literal") == 0) 3693 success = true; 3694 char *restrict newvar = "Another string"; 3695 3696 // Check varargs. 3697 test_varargs ("s, d' f .", "string", 65, 34.234); 3698 test_varargs_macros (); 3699 3700 // Check flexible array members. 3701 struct incomplete_array *ia = 3702 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3703 ia->datasize = 10; 3704 for (int i = 0; i < ia->datasize; ++i) 3705 ia->data[i] = i * 1.234; 3706 3707 // Check named initializers. 3708 struct named_init ni = { 3709 .number = 34, 3710 .name = L"Test wide string", 3711 .average = 543.34343, 3712 }; 3713 3714 ni.number = 58; 3715 3716 int dynamic_array[ni.number]; 3717 dynamic_array[ni.number - 1] = 543; 3718 3719 // work around unused variable warnings 3720 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3721 || dynamic_array[ni.number - 1] != 543); 3722 3723 ; 3724 return 0; 3725} 3726_ACEOF 3727for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99 3728do 3729 CC="$ac_save_CC $ac_arg" 3730 rm -f conftest.$ac_objext 3731if { (ac_try="$ac_compile" 3732case "(($ac_try" in 3733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3734 *) ac_try_echo=$ac_try;; 3735esac 3736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3737 (eval "$ac_compile") 2>conftest.er1 3738 ac_status=$? 3739 grep -v '^ *+' conftest.er1 >conftest.err 3740 rm -f conftest.er1 3741 cat conftest.err >&5 3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3743 (exit $ac_status); } && { 3744 test -z "$ac_c_werror_flag" || 3745 test ! -s conftest.err 3746 } && test -s conftest.$ac_objext; then 3747 ac_cv_prog_cc_c99=$ac_arg 3748else 3749 echo "$as_me: failed program was:" >&5 3750sed 's/^/| /' conftest.$ac_ext >&5 3751 3752 3753fi 3754 3755rm -f core conftest.err conftest.$ac_objext 3756 test "x$ac_cv_prog_cc_c99" != "xno" && break 3757done 3758rm -f conftest.$ac_ext 3759CC=$ac_save_CC 3760 3761fi 3762# AC_CACHE_VAL 3763case "x$ac_cv_prog_cc_c99" in 3764 x) 3765 { echo "$as_me:$LINENO: result: none needed" >&5 3766echo "${ECHO_T}none needed" >&6; } ;; 3767 xno) 3768 { echo "$as_me:$LINENO: result: unsupported" >&5 3769echo "${ECHO_T}unsupported" >&6; } ;; 3770 *) 3771 CC="$CC $ac_cv_prog_cc_c99" 3772 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 3773echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;; 3774esac 3775 3776 3777 3778ac_aux_dir= 3779for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3780 if test -f "$ac_dir/install-sh"; then 3781 ac_aux_dir=$ac_dir 3782 ac_install_sh="$ac_aux_dir/install-sh -c" 3783 break 3784 elif test -f "$ac_dir/install.sh"; then 3785 ac_aux_dir=$ac_dir 3786 ac_install_sh="$ac_aux_dir/install.sh -c" 3787 break 3788 elif test -f "$ac_dir/shtool"; then 3789 ac_aux_dir=$ac_dir 3790 ac_install_sh="$ac_aux_dir/shtool install -c" 3791 break 3792 fi 3793done 3794if test -z "$ac_aux_dir"; then 3795 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 3796echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 3797 { (exit 1); exit 1; }; } 3798fi 3799 3800# These three variables are undocumented and unsupported, 3801# and are intended to be withdrawn in a future Autoconf release. 3802# They can cause serious problems if a builder's source tree is in a directory 3803# whose full name contains unusual characters. 3804ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3805ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3806ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3807 3808 3809# Make sure we can run config.sub. 3810$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3811 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3812echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3813 { (exit 1); exit 1; }; } 3814 3815{ echo "$as_me:$LINENO: checking build system type" >&5 3816echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3817if test "${ac_cv_build+set}" = set; then 3818 echo $ECHO_N "(cached) $ECHO_C" >&6 3819else 3820 ac_build_alias=$build_alias 3821test "x$ac_build_alias" = x && 3822 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3823test "x$ac_build_alias" = x && 3824 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3825echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3826 { (exit 1); exit 1; }; } 3827ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3828 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3829echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3830 { (exit 1); exit 1; }; } 3831 3832fi 3833{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3834echo "${ECHO_T}$ac_cv_build" >&6; } 3835case $ac_cv_build in 3836*-*-*) ;; 3837*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3838echo "$as_me: error: invalid value of canonical build" >&2;} 3839 { (exit 1); exit 1; }; };; 3840esac 3841build=$ac_cv_build 3842ac_save_IFS=$IFS; IFS='-' 3843set x $ac_cv_build 3844shift 3845build_cpu=$1 3846build_vendor=$2 3847shift; shift 3848# Remember, the first character of IFS is used to create $*, 3849# except with old shells: 3850build_os=$* 3851IFS=$ac_save_IFS 3852case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3853 3854 3855{ echo "$as_me:$LINENO: checking host system type" >&5 3856echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3857if test "${ac_cv_host+set}" = set; then 3858 echo $ECHO_N "(cached) $ECHO_C" >&6 3859else 3860 if test "x$host_alias" = x; then 3861 ac_cv_host=$ac_cv_build 3862else 3863 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3864 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3865echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3866 { (exit 1); exit 1; }; } 3867fi 3868 3869fi 3870{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3871echo "${ECHO_T}$ac_cv_host" >&6; } 3872case $ac_cv_host in 3873*-*-*) ;; 3874*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3875echo "$as_me: error: invalid value of canonical host" >&2;} 3876 { (exit 1); exit 1; }; };; 3877esac 3878host=$ac_cv_host 3879ac_save_IFS=$IFS; IFS='-' 3880set x $ac_cv_host 3881shift 3882host_cpu=$1 3883host_vendor=$2 3884shift; shift 3885# Remember, the first character of IFS is used to create $*, 3886# except with old shells: 3887host_os=$* 3888IFS=$ac_save_IFS 3889case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3890 3891 3892 3893 3894 3895if test "x$GCC" = xyes ; then 3896 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 3897-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 3898-Wbad-function-cast" 3899 case `$CC -dumpversion` in 3900 3.4.* | 4.*) 3901 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 3902 ;; 3903 esac 3904else 3905 { echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 3906echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6; } 3907if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 3908 echo $ECHO_N "(cached) $ECHO_C" >&6 3909else 3910 cat >conftest.$ac_ext <<_ACEOF 3911/* confdefs.h. */ 3912_ACEOF 3913cat confdefs.h >>conftest.$ac_ext 3914cat >>conftest.$ac_ext <<_ACEOF 3915/* end confdefs.h. */ 3916$ac_includes_default 3917int 3918main () 3919{ 3920#ifndef __SUNPRO_C 3921 (void) __SUNPRO_C; 3922#endif 3923 3924 ; 3925 return 0; 3926} 3927_ACEOF 3928rm -f conftest.$ac_objext 3929if { (ac_try="$ac_compile" 3930case "(($ac_try" in 3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3932 *) ac_try_echo=$ac_try;; 3933esac 3934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3935 (eval "$ac_compile") 2>conftest.er1 3936 ac_status=$? 3937 grep -v '^ *+' conftest.er1 >conftest.err 3938 rm -f conftest.er1 3939 cat conftest.err >&5 3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3941 (exit $ac_status); } && { 3942 test -z "$ac_c_werror_flag" || 3943 test ! -s conftest.err 3944 } && test -s conftest.$ac_objext; then 3945 ac_cv_have_decl___SUNPRO_C=yes 3946else 3947 echo "$as_me: failed program was:" >&5 3948sed 's/^/| /' conftest.$ac_ext >&5 3949 3950 ac_cv_have_decl___SUNPRO_C=no 3951fi 3952 3953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3954fi 3955{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 3956echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_C" >&6; } 3957if test $ac_cv_have_decl___SUNPRO_C = yes; then 3958 SUNCC="yes" 3959else 3960 SUNCC="no" 3961fi 3962 3963 if test "x$SUNCC" = "xyes"; then 3964 CWARNFLAGS="-v" 3965 fi 3966fi 3967 3968 3969 3970 3971 3972 3973 3974 3975# Check whether --enable-strict-compilation was given. 3976if test "${enable_strict_compilation+set}" = set; then 3977 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 3978else 3979 STRICT_COMPILE=no 3980fi 3981 3982if test "x$STRICT_COMPILE" = "xyes"; then 3983 { echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 3984echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6; } 3985if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 3986 echo $ECHO_N "(cached) $ECHO_C" >&6 3987else 3988 cat >conftest.$ac_ext <<_ACEOF 3989/* confdefs.h. */ 3990_ACEOF 3991cat confdefs.h >>conftest.$ac_ext 3992cat >>conftest.$ac_ext <<_ACEOF 3993/* end confdefs.h. */ 3994$ac_includes_default 3995int 3996main () 3997{ 3998#ifndef __SUNPRO_C 3999 (void) __SUNPRO_C; 4000#endif 4001 4002 ; 4003 return 0; 4004} 4005_ACEOF 4006rm -f conftest.$ac_objext 4007if { (ac_try="$ac_compile" 4008case "(($ac_try" in 4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4010 *) ac_try_echo=$ac_try;; 4011esac 4012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4013 (eval "$ac_compile") 2>conftest.er1 4014 ac_status=$? 4015 grep -v '^ *+' conftest.er1 >conftest.err 4016 rm -f conftest.er1 4017 cat conftest.err >&5 4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4019 (exit $ac_status); } && { 4020 test -z "$ac_c_werror_flag" || 4021 test ! -s conftest.err 4022 } && test -s conftest.$ac_objext; then 4023 ac_cv_have_decl___SUNPRO_C=yes 4024else 4025 echo "$as_me: failed program was:" >&5 4026sed 's/^/| /' conftest.$ac_ext >&5 4027 4028 ac_cv_have_decl___SUNPRO_C=no 4029fi 4030 4031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4032fi 4033{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 4034echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_C" >&6; } 4035if test $ac_cv_have_decl___SUNPRO_C = yes; then 4036 SUNCC="yes" 4037else 4038 SUNCC="no" 4039fi 4040 4041 { echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5 4042echo $ECHO_N "checking whether __INTEL_COMPILER is declared... $ECHO_C" >&6; } 4043if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then 4044 echo $ECHO_N "(cached) $ECHO_C" >&6 4045else 4046 cat >conftest.$ac_ext <<_ACEOF 4047/* confdefs.h. */ 4048_ACEOF 4049cat confdefs.h >>conftest.$ac_ext 4050cat >>conftest.$ac_ext <<_ACEOF 4051/* end confdefs.h. */ 4052$ac_includes_default 4053int 4054main () 4055{ 4056#ifndef __INTEL_COMPILER 4057 (void) __INTEL_COMPILER; 4058#endif 4059 4060 ; 4061 return 0; 4062} 4063_ACEOF 4064rm -f conftest.$ac_objext 4065if { (ac_try="$ac_compile" 4066case "(($ac_try" in 4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4068 *) ac_try_echo=$ac_try;; 4069esac 4070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4071 (eval "$ac_compile") 2>conftest.er1 4072 ac_status=$? 4073 grep -v '^ *+' conftest.er1 >conftest.err 4074 rm -f conftest.er1 4075 cat conftest.err >&5 4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4077 (exit $ac_status); } && { 4078 test -z "$ac_c_werror_flag" || 4079 test ! -s conftest.err 4080 } && test -s conftest.$ac_objext; then 4081 ac_cv_have_decl___INTEL_COMPILER=yes 4082else 4083 echo "$as_me: failed program was:" >&5 4084sed 's/^/| /' conftest.$ac_ext >&5 4085 4086 ac_cv_have_decl___INTEL_COMPILER=no 4087fi 4088 4089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4090fi 4091{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5 4092echo "${ECHO_T}$ac_cv_have_decl___INTEL_COMPILER" >&6; } 4093if test $ac_cv_have_decl___INTEL_COMPILER = yes; then 4094 INTELCC="yes" 4095else 4096 INTELCC="no" 4097fi 4098 4099 if test "x$GCC" = xyes ; then 4100 STRICT_CFLAGS="-pedantic -Werror" 4101 elif test "x$SUNCC" = "xyes"; then 4102 STRICT_CFLAGS="-errwarn" 4103 elif test "x$INTELCC" = "xyes"; then 4104 STRICT_CFLAGS="-Werror" 4105 fi 4106fi 4107CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4108 4109 4110 4111 4112# Check whether --with-release-version was given. 4113if test "${with_release_version+set}" = set; then 4114 withval=$with_release_version; RELEASE_VERSION="$withval" 4115else 4116 RELEASE_VERSION="" 4117fi 4118 4119 if test "x$RELEASE_VERSION" != "x"; then 4120 PACKAGE="$PACKAGE-$RELEASE_VERSION" 4121 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 4122 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 4123echo "$as_me: Building with package name set to $PACKAGE" >&6;} 4124 fi 4125 4126cat >>confdefs.h <<_ACEOF 4127#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4128_ACEOF 4129 4130 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4131 if test "x$PVM" = "x"; then 4132 PVM="0" 4133 fi 4134 4135cat >>confdefs.h <<_ACEOF 4136#define PACKAGE_VERSION_MINOR $PVM 4137_ACEOF 4138 4139 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4140 if test "x$PVP" = "x"; then 4141 PVP="0" 4142 fi 4143 4144cat >>confdefs.h <<_ACEOF 4145#define PACKAGE_VERSION_PATCHLEVEL $PVP 4146_ACEOF 4147 4148 4149 4150CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 4151mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 4152|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 4153echo 'git directory not found: installing possibly empty changelog.' >&2)" 4154 4155 4156 4157INSTALL_CMD="if test -f "$prefix/share/doc/util-macros/INSTALL"; then \ 4158cp -f "$prefix/share/doc/util-macros/INSTALL" \$(top_srcdir); \ 4159else echo '$prefix/share/doc/util-macros/INSTALL cannot be found.' >&2; fi " 4160 4161 4162 4163 4164 4165if test x$APP_MAN_SUFFIX = x ; then 4166 APP_MAN_SUFFIX=1 4167fi 4168if test x$APP_MAN_DIR = x ; then 4169 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4170fi 4171 4172if test x$LIB_MAN_SUFFIX = x ; then 4173 LIB_MAN_SUFFIX=3 4174fi 4175if test x$LIB_MAN_DIR = x ; then 4176 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4177fi 4178 4179if test x$FILE_MAN_SUFFIX = x ; then 4180 case $host_os in 4181 solaris*) FILE_MAN_SUFFIX=4 ;; 4182 *) FILE_MAN_SUFFIX=5 ;; 4183 esac 4184fi 4185if test x$FILE_MAN_DIR = x ; then 4186 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4187fi 4188 4189if test x$MISC_MAN_SUFFIX = x ; then 4190 case $host_os in 4191 solaris*) MISC_MAN_SUFFIX=5 ;; 4192 *) MISC_MAN_SUFFIX=7 ;; 4193 esac 4194fi 4195if test x$MISC_MAN_DIR = x ; then 4196 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4197fi 4198 4199if test x$DRIVER_MAN_SUFFIX = x ; then 4200 case $host_os in 4201 solaris*) DRIVER_MAN_SUFFIX=7 ;; 4202 *) DRIVER_MAN_SUFFIX=4 ;; 4203 esac 4204fi 4205if test x$DRIVER_MAN_DIR = x ; then 4206 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4207fi 4208 4209if test x$ADMIN_MAN_SUFFIX = x ; then 4210 case $host_os in 4211 solaris*) ADMIN_MAN_SUFFIX=1m ;; 4212 *) ADMIN_MAN_SUFFIX=8 ;; 4213 esac 4214fi 4215if test x$ADMIN_MAN_DIR = x ; then 4216 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4217fi 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235ac_aux_dir= 4236for ac_dir in . "$srcdir"/.; do 4237 if test -f "$ac_dir/install-sh"; then 4238 ac_aux_dir=$ac_dir 4239 ac_install_sh="$ac_aux_dir/install-sh -c" 4240 break 4241 elif test -f "$ac_dir/install.sh"; then 4242 ac_aux_dir=$ac_dir 4243 ac_install_sh="$ac_aux_dir/install.sh -c" 4244 break 4245 elif test -f "$ac_dir/shtool"; then 4246 ac_aux_dir=$ac_dir 4247 ac_install_sh="$ac_aux_dir/shtool install -c" 4248 break 4249 fi 4250done 4251if test -z "$ac_aux_dir"; then 4252 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 4253echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 4254 { (exit 1); exit 1; }; } 4255fi 4256 4257# These three variables are undocumented and unsupported, 4258# and are intended to be withdrawn in a future Autoconf release. 4259# They can cause serious problems if a builder's source tree is in a directory 4260# whose full name contains unusual characters. 4261ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 4262ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 4263ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 4264 4265 4266 4267am__api_version='1.10' 4268 4269# Find a good install program. We prefer a C program (faster), 4270# so one script is as good as another. But avoid the broken or 4271# incompatible versions: 4272# SysV /etc/install, /usr/sbin/install 4273# SunOS /usr/etc/install 4274# IRIX /sbin/install 4275# AIX /bin/install 4276# AmigaOS /C/install, which installs bootblocks on floppy discs 4277# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4278# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4279# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4280# OS/2's system install, which has a completely different semantic 4281# ./install, which can be erroneously created by make from ./install.sh. 4282{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4283echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 4284if test -z "$INSTALL"; then 4285if test "${ac_cv_path_install+set}" = set; then 4286 echo $ECHO_N "(cached) $ECHO_C" >&6 4287else 4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4289for as_dir in $PATH 4290do 4291 IFS=$as_save_IFS 4292 test -z "$as_dir" && as_dir=. 4293 # Account for people who put trailing slashes in PATH elements. 4294case $as_dir/ in 4295 ./ | .// | /cC/* | \ 4296 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4297 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4298 /usr/ucb/* ) ;; 4299 *) 4300 # OSF1 and SCO ODT 3.0 have their own names for install. 4301 # Don't use installbsd from OSF since it installs stuff as root 4302 # by default. 4303 for ac_prog in ginstall scoinst install; do 4304 for ac_exec_ext in '' $ac_executable_extensions; do 4305 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4306 if test $ac_prog = install && 4307 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4308 # AIX install. It has an incompatible calling convention. 4309 : 4310 elif test $ac_prog = install && 4311 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4312 # program-specific install script used by HP pwplus--don't use. 4313 : 4314 else 4315 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4316 break 3 4317 fi 4318 fi 4319 done 4320 done 4321 ;; 4322esac 4323done 4324IFS=$as_save_IFS 4325 4326 4327fi 4328 if test "${ac_cv_path_install+set}" = set; then 4329 INSTALL=$ac_cv_path_install 4330 else 4331 # As a last resort, use the slow shell script. Don't cache a 4332 # value for INSTALL within a source directory, because that will 4333 # break other packages using the cache if that directory is 4334 # removed, or if the value is a relative name. 4335 INSTALL=$ac_install_sh 4336 fi 4337fi 4338{ echo "$as_me:$LINENO: result: $INSTALL" >&5 4339echo "${ECHO_T}$INSTALL" >&6; } 4340 4341# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4342# It thinks the first close brace ends the variable substitution. 4343test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4344 4345test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4346 4347test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4348 4349{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 4350echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 4351# Just in case 4352sleep 1 4353echo timestamp > conftest.file 4354# Do `set' in a subshell so we don't clobber the current shell's 4355# arguments. Must try -L first in case configure is actually a 4356# symlink; some systems play weird games with the mod time of symlinks 4357# (eg FreeBSD returns the mod time of the symlink's containing 4358# directory). 4359if ( 4360 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 4361 if test "$*" = "X"; then 4362 # -L didn't work. 4363 set X `ls -t $srcdir/configure conftest.file` 4364 fi 4365 rm -f conftest.file 4366 if test "$*" != "X $srcdir/configure conftest.file" \ 4367 && test "$*" != "X conftest.file $srcdir/configure"; then 4368 4369 # If neither matched, then we have a broken ls. This can happen 4370 # if, for instance, CONFIG_SHELL is bash and it inherits a 4371 # broken ls alias from the environment. This has actually 4372 # happened. Such a system could not be considered "sane". 4373 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 4374alias in your environment" >&5 4375echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 4376alias in your environment" >&2;} 4377 { (exit 1); exit 1; }; } 4378 fi 4379 4380 test "$2" = conftest.file 4381 ) 4382then 4383 # Ok. 4384 : 4385else 4386 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 4387Check your system clock" >&5 4388echo "$as_me: error: newly created file is older than distributed files! 4389Check your system clock" >&2;} 4390 { (exit 1); exit 1; }; } 4391fi 4392{ echo "$as_me:$LINENO: result: yes" >&5 4393echo "${ECHO_T}yes" >&6; } 4394test "$program_prefix" != NONE && 4395 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4396# Use a double $ so make ignores it. 4397test "$program_suffix" != NONE && 4398 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4399# Double any \ or $. echo might interpret backslashes. 4400# By default was `s,x,x', remove it if useless. 4401cat <<\_ACEOF >conftest.sed 4402s/[\\$]/&&/g;s/;s,x,x,$// 4403_ACEOF 4404program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 4405rm -f conftest.sed 4406 4407# expand $ac_aux_dir to an absolute path 4408am_aux_dir=`cd $ac_aux_dir && pwd` 4409 4410test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 4411# Use eval to expand $SHELL 4412if eval "$MISSING --run true"; then 4413 am_missing_run="$MISSING --run " 4414else 4415 am_missing_run= 4416 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 4417echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 4418fi 4419 4420{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 4421echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 4422if test -z "$MKDIR_P"; then 4423 if test "${ac_cv_path_mkdir+set}" = set; then 4424 echo $ECHO_N "(cached) $ECHO_C" >&6 4425else 4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4427for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4428do 4429 IFS=$as_save_IFS 4430 test -z "$as_dir" && as_dir=. 4431 for ac_prog in mkdir gmkdir; do 4432 for ac_exec_ext in '' $ac_executable_extensions; do 4433 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 4434 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4435 'mkdir (GNU coreutils) '* | \ 4436 'mkdir (coreutils) '* | \ 4437 'mkdir (fileutils) '4.1*) 4438 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4439 break 3;; 4440 esac 4441 done 4442 done 4443done 4444IFS=$as_save_IFS 4445 4446fi 4447 4448 if test "${ac_cv_path_mkdir+set}" = set; then 4449 MKDIR_P="$ac_cv_path_mkdir -p" 4450 else 4451 # As a last resort, use the slow shell script. Don't cache a 4452 # value for MKDIR_P within a source directory, because that will 4453 # break other packages using the cache if that directory is 4454 # removed, or if the value is a relative name. 4455 test -d ./--version && rmdir ./--version 4456 MKDIR_P="$ac_install_sh -d" 4457 fi 4458fi 4459{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 4460echo "${ECHO_T}$MKDIR_P" >&6; } 4461 4462mkdir_p="$MKDIR_P" 4463case $mkdir_p in 4464 [\\/$]* | ?:[\\/]*) ;; 4465 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 4466esac 4467 4468for ac_prog in gawk mawk nawk awk 4469do 4470 # Extract the first word of "$ac_prog", so it can be a program name with args. 4471set dummy $ac_prog; ac_word=$2 4472{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4474if test "${ac_cv_prog_AWK+set}" = set; then 4475 echo $ECHO_N "(cached) $ECHO_C" >&6 4476else 4477 if test -n "$AWK"; then 4478 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4479else 4480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4481for as_dir in $PATH 4482do 4483 IFS=$as_save_IFS 4484 test -z "$as_dir" && as_dir=. 4485 for ac_exec_ext in '' $ac_executable_extensions; do 4486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4487 ac_cv_prog_AWK="$ac_prog" 4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4489 break 2 4490 fi 4491done 4492done 4493IFS=$as_save_IFS 4494 4495fi 4496fi 4497AWK=$ac_cv_prog_AWK 4498if test -n "$AWK"; then 4499 { echo "$as_me:$LINENO: result: $AWK" >&5 4500echo "${ECHO_T}$AWK" >&6; } 4501else 4502 { echo "$as_me:$LINENO: result: no" >&5 4503echo "${ECHO_T}no" >&6; } 4504fi 4505 4506 4507 test -n "$AWK" && break 4508done 4509 4510{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4511echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 4512set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4513if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 4514 echo $ECHO_N "(cached) $ECHO_C" >&6 4515else 4516 cat >conftest.make <<\_ACEOF 4517SHELL = /bin/sh 4518all: 4519 @echo '@@@%%%=$(MAKE)=@@@%%%' 4520_ACEOF 4521# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4522case `${MAKE-make} -f conftest.make 2>/dev/null` in 4523 *@@@%%%=?*=@@@%%%*) 4524 eval ac_cv_prog_make_${ac_make}_set=yes;; 4525 *) 4526 eval ac_cv_prog_make_${ac_make}_set=no;; 4527esac 4528rm -f conftest.make 4529fi 4530if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4531 { echo "$as_me:$LINENO: result: yes" >&5 4532echo "${ECHO_T}yes" >&6; } 4533 SET_MAKE= 4534else 4535 { echo "$as_me:$LINENO: result: no" >&5 4536echo "${ECHO_T}no" >&6; } 4537 SET_MAKE="MAKE=${MAKE-make}" 4538fi 4539 4540rm -rf .tst 2>/dev/null 4541mkdir .tst 2>/dev/null 4542if test -d .tst; then 4543 am__leading_dot=. 4544else 4545 am__leading_dot=_ 4546fi 4547rmdir .tst 2>/dev/null 4548 4549DEPDIR="${am__leading_dot}deps" 4550 4551ac_config_commands="$ac_config_commands depfiles" 4552 4553 4554am_make=${MAKE-make} 4555cat > confinc << 'END' 4556am__doit: 4557 @echo done 4558.PHONY: am__doit 4559END 4560# If we don't find an include directive, just comment out the code. 4561{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 4562echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 4563am__include="#" 4564am__quote= 4565_am_result=none 4566# First try GNU make style include. 4567echo "include confinc" > confmf 4568# We grep out `Entering directory' and `Leaving directory' 4569# messages which can occur if `w' ends up in MAKEFLAGS. 4570# In particular we don't look at `^make:' because GNU make might 4571# be invoked under some other name (usually "gmake"), in which 4572# case it prints its new name instead of `make'. 4573if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 4574 am__include=include 4575 am__quote= 4576 _am_result=GNU 4577fi 4578# Now try BSD make style include. 4579if test "$am__include" = "#"; then 4580 echo '.include "confinc"' > confmf 4581 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 4582 am__include=.include 4583 am__quote="\"" 4584 _am_result=BSD 4585 fi 4586fi 4587 4588 4589{ echo "$as_me:$LINENO: result: $_am_result" >&5 4590echo "${ECHO_T}$_am_result" >&6; } 4591rm -f confinc confmf 4592 4593# Check whether --enable-dependency-tracking was given. 4594if test "${enable_dependency_tracking+set}" = set; then 4595 enableval=$enable_dependency_tracking; 4596fi 4597 4598if test "x$enable_dependency_tracking" != xno; then 4599 am_depcomp="$ac_aux_dir/depcomp" 4600 AMDEPBACKSLASH='\' 4601fi 4602 if test "x$enable_dependency_tracking" != xno; then 4603 AMDEP_TRUE= 4604 AMDEP_FALSE='#' 4605else 4606 AMDEP_TRUE='#' 4607 AMDEP_FALSE= 4608fi 4609 4610 4611if test "`cd $srcdir && pwd`" != "`pwd`"; then 4612 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4613 # is not polluted with repeated "-I." 4614 am__isrc=' -I$(srcdir)' 4615 # test to see if srcdir already configured 4616 if test -f $srcdir/config.status; then 4617 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 4618echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 4619 { (exit 1); exit 1; }; } 4620 fi 4621fi 4622 4623# test whether we have cygpath 4624if test -z "$CYGPATH_W"; then 4625 if (cygpath --version) >/dev/null 2>/dev/null; then 4626 CYGPATH_W='cygpath -w' 4627 else 4628 CYGPATH_W=echo 4629 fi 4630fi 4631 4632 4633# Define the identity of the package. 4634 PACKAGE='xf86-video-ati' 4635 VERSION='6.13.0' 4636 4637 4638cat >>confdefs.h <<_ACEOF 4639#define PACKAGE "$PACKAGE" 4640_ACEOF 4641 4642 4643cat >>confdefs.h <<_ACEOF 4644#define VERSION "$VERSION" 4645_ACEOF 4646 4647# Some tools Automake needs. 4648 4649ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4650 4651 4652AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4653 4654 4655AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4656 4657 4658AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4659 4660 4661MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4662 4663install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 4664 4665# Installed binaries are usually stripped using `strip' when the user 4666# run `make install-strip'. However `strip' might not be the right 4667# tool to use in cross-compilation environments, therefore Automake 4668# will honor the `STRIP' environment variable to overrule this program. 4669if test "$cross_compiling" != no; then 4670 if test -n "$ac_tool_prefix"; then 4671 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4672set dummy ${ac_tool_prefix}strip; ac_word=$2 4673{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4675if test "${ac_cv_prog_STRIP+set}" = set; then 4676 echo $ECHO_N "(cached) $ECHO_C" >&6 4677else 4678 if test -n "$STRIP"; then 4679 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4680else 4681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4682for as_dir in $PATH 4683do 4684 IFS=$as_save_IFS 4685 test -z "$as_dir" && as_dir=. 4686 for ac_exec_ext in '' $ac_executable_extensions; do 4687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4688 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4690 break 2 4691 fi 4692done 4693done 4694IFS=$as_save_IFS 4695 4696fi 4697fi 4698STRIP=$ac_cv_prog_STRIP 4699if test -n "$STRIP"; then 4700 { echo "$as_me:$LINENO: result: $STRIP" >&5 4701echo "${ECHO_T}$STRIP" >&6; } 4702else 4703 { echo "$as_me:$LINENO: result: no" >&5 4704echo "${ECHO_T}no" >&6; } 4705fi 4706 4707 4708fi 4709if test -z "$ac_cv_prog_STRIP"; then 4710 ac_ct_STRIP=$STRIP 4711 # Extract the first word of "strip", so it can be a program name with args. 4712set dummy strip; ac_word=$2 4713{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4715if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 4716 echo $ECHO_N "(cached) $ECHO_C" >&6 4717else 4718 if test -n "$ac_ct_STRIP"; then 4719 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4720else 4721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4722for as_dir in $PATH 4723do 4724 IFS=$as_save_IFS 4725 test -z "$as_dir" && as_dir=. 4726 for ac_exec_ext in '' $ac_executable_extensions; do 4727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4728 ac_cv_prog_ac_ct_STRIP="strip" 4729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4730 break 2 4731 fi 4732done 4733done 4734IFS=$as_save_IFS 4735 4736fi 4737fi 4738ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4739if test -n "$ac_ct_STRIP"; then 4740 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 4741echo "${ECHO_T}$ac_ct_STRIP" >&6; } 4742else 4743 { echo "$as_me:$LINENO: result: no" >&5 4744echo "${ECHO_T}no" >&6; } 4745fi 4746 4747 if test "x$ac_ct_STRIP" = x; then 4748 STRIP=":" 4749 else 4750 case $cross_compiling:$ac_tool_warned in 4751yes:) 4752{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4753whose name does not start with the host triplet. If you think this 4754configuration is useful to you, please write to autoconf@gnu.org." >&5 4755echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4756whose name does not start with the host triplet. If you think this 4757configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4758ac_tool_warned=yes ;; 4759esac 4760 STRIP=$ac_ct_STRIP 4761 fi 4762else 4763 STRIP="$ac_cv_prog_STRIP" 4764fi 4765 4766fi 4767INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4768 4769# We need awk for the "check" target. The system "awk" is bad on 4770# some platforms. 4771# Always define AMTAR for backward compatibility. 4772 4773AMTAR=${AMTAR-"${am_missing_run}tar"} 4774 4775am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 4776 4777 4778 4779 4780depcc="$CC" am_compiler_list= 4781 4782{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4783echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 4784if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 4785 echo $ECHO_N "(cached) $ECHO_C" >&6 4786else 4787 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4788 # We make a subdir and do the tests there. Otherwise we can end up 4789 # making bogus files that we don't know about and never remove. For 4790 # instance it was reported that on HP-UX the gcc test will end up 4791 # making a dummy file named `D' -- because `-MD' means `put the output 4792 # in D'. 4793 mkdir conftest.dir 4794 # Copy depcomp to subdir because otherwise we won't find it if we're 4795 # using a relative directory. 4796 cp "$am_depcomp" conftest.dir 4797 cd conftest.dir 4798 # We will build objects and dependencies in a subdirectory because 4799 # it helps to detect inapplicable dependency modes. For instance 4800 # both Tru64's cc and ICC support -MD to output dependencies as a 4801 # side effect of compilation, but ICC will put the dependencies in 4802 # the current directory while Tru64 will put them in the object 4803 # directory. 4804 mkdir sub 4805 4806 am_cv_CC_dependencies_compiler_type=none 4807 if test "$am_compiler_list" = ""; then 4808 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4809 fi 4810 for depmode in $am_compiler_list; do 4811 # Setup a source with many dependencies, because some compilers 4812 # like to wrap large dependency lists on column 80 (with \), and 4813 # we should not choose a depcomp mode which is confused by this. 4814 # 4815 # We need to recreate these files for each test, as the compiler may 4816 # overwrite some of them when testing with obscure command lines. 4817 # This happens at least with the AIX C compiler. 4818 : > sub/conftest.c 4819 for i in 1 2 3 4 5 6; do 4820 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4821 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4822 # Solaris 8's {/usr,}/bin/sh. 4823 touch sub/conftst$i.h 4824 done 4825 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4826 4827 case $depmode in 4828 nosideeffect) 4829 # after this tag, mechanisms are not by side-effect, so they'll 4830 # only be used when explicitly requested 4831 if test "x$enable_dependency_tracking" = xyes; then 4832 continue 4833 else 4834 break 4835 fi 4836 ;; 4837 none) break ;; 4838 esac 4839 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4840 # mode. It turns out that the SunPro C++ compiler does not properly 4841 # handle `-M -o', and we need to detect this. 4842 if depmode=$depmode \ 4843 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4844 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4845 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4846 >/dev/null 2>conftest.err && 4847 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4848 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4849 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4850 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4851 # icc doesn't choke on unknown options, it will just issue warnings 4852 # or remarks (even with -Werror). So we grep stderr for any message 4853 # that says an option was ignored or not supported. 4854 # When given -MP, icc 7.0 and 7.1 complain thusly: 4855 # icc: Command line warning: ignoring option '-M'; no argument required 4856 # The diagnosis changed in icc 8.0: 4857 # icc: Command line remark: option '-MP' not supported 4858 if (grep 'ignoring option' conftest.err || 4859 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4860 am_cv_CC_dependencies_compiler_type=$depmode 4861 break 4862 fi 4863 fi 4864 done 4865 4866 cd .. 4867 rm -rf conftest.dir 4868else 4869 am_cv_CC_dependencies_compiler_type=none 4870fi 4871 4872fi 4873{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 4874echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 4875CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4876 4877 if 4878 test "x$enable_dependency_tracking" != xno \ 4879 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4880 am__fastdepCC_TRUE= 4881 am__fastdepCC_FALSE='#' 4882else 4883 am__fastdepCC_TRUE='#' 4884 am__fastdepCC_FALSE= 4885fi 4886 4887 4888 4889# Check whether --enable-largefile was given. 4890if test "${enable_largefile+set}" = set; then 4891 enableval=$enable_largefile; 4892fi 4893 4894if test "$enable_largefile" != no; then 4895 4896 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 4897echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } 4898if test "${ac_cv_sys_largefile_CC+set}" = set; then 4899 echo $ECHO_N "(cached) $ECHO_C" >&6 4900else 4901 ac_cv_sys_largefile_CC=no 4902 if test "$GCC" != yes; then 4903 ac_save_CC=$CC 4904 while :; do 4905 # IRIX 6.2 and later do not support large files by default, 4906 # so use the C compiler's -n32 option if that helps. 4907 cat >conftest.$ac_ext <<_ACEOF 4908/* confdefs.h. */ 4909_ACEOF 4910cat confdefs.h >>conftest.$ac_ext 4911cat >>conftest.$ac_ext <<_ACEOF 4912/* end confdefs.h. */ 4913#include <sys/types.h> 4914 /* Check that off_t can represent 2**63 - 1 correctly. 4915 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4916 since some C++ compilers masquerading as C compilers 4917 incorrectly reject 9223372036854775807. */ 4918#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4919 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4920 && LARGE_OFF_T % 2147483647 == 1) 4921 ? 1 : -1]; 4922int 4923main () 4924{ 4925 4926 ; 4927 return 0; 4928} 4929_ACEOF 4930 rm -f conftest.$ac_objext 4931if { (ac_try="$ac_compile" 4932case "(($ac_try" in 4933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4934 *) ac_try_echo=$ac_try;; 4935esac 4936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4937 (eval "$ac_compile") 2>conftest.er1 4938 ac_status=$? 4939 grep -v '^ *+' conftest.er1 >conftest.err 4940 rm -f conftest.er1 4941 cat conftest.err >&5 4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4943 (exit $ac_status); } && { 4944 test -z "$ac_c_werror_flag" || 4945 test ! -s conftest.err 4946 } && test -s conftest.$ac_objext; then 4947 break 4948else 4949 echo "$as_me: failed program was:" >&5 4950sed 's/^/| /' conftest.$ac_ext >&5 4951 4952 4953fi 4954 4955rm -f core conftest.err conftest.$ac_objext 4956 CC="$CC -n32" 4957 rm -f conftest.$ac_objext 4958if { (ac_try="$ac_compile" 4959case "(($ac_try" in 4960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4961 *) ac_try_echo=$ac_try;; 4962esac 4963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4964 (eval "$ac_compile") 2>conftest.er1 4965 ac_status=$? 4966 grep -v '^ *+' conftest.er1 >conftest.err 4967 rm -f conftest.er1 4968 cat conftest.err >&5 4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4970 (exit $ac_status); } && { 4971 test -z "$ac_c_werror_flag" || 4972 test ! -s conftest.err 4973 } && test -s conftest.$ac_objext; then 4974 ac_cv_sys_largefile_CC=' -n32'; break 4975else 4976 echo "$as_me: failed program was:" >&5 4977sed 's/^/| /' conftest.$ac_ext >&5 4978 4979 4980fi 4981 4982rm -f core conftest.err conftest.$ac_objext 4983 break 4984 done 4985 CC=$ac_save_CC 4986 rm -f conftest.$ac_ext 4987 fi 4988fi 4989{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 4990echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } 4991 if test "$ac_cv_sys_largefile_CC" != no; then 4992 CC=$CC$ac_cv_sys_largefile_CC 4993 fi 4994 4995 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4996echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } 4997if test "${ac_cv_sys_file_offset_bits+set}" = set; then 4998 echo $ECHO_N "(cached) $ECHO_C" >&6 4999else 5000 while :; do 5001 cat >conftest.$ac_ext <<_ACEOF 5002/* confdefs.h. */ 5003_ACEOF 5004cat confdefs.h >>conftest.$ac_ext 5005cat >>conftest.$ac_ext <<_ACEOF 5006/* end confdefs.h. */ 5007#include <sys/types.h> 5008 /* Check that off_t can represent 2**63 - 1 correctly. 5009 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5010 since some C++ compilers masquerading as C compilers 5011 incorrectly reject 9223372036854775807. */ 5012#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5013 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5014 && LARGE_OFF_T % 2147483647 == 1) 5015 ? 1 : -1]; 5016int 5017main () 5018{ 5019 5020 ; 5021 return 0; 5022} 5023_ACEOF 5024rm -f conftest.$ac_objext 5025if { (ac_try="$ac_compile" 5026case "(($ac_try" in 5027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5028 *) ac_try_echo=$ac_try;; 5029esac 5030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5031 (eval "$ac_compile") 2>conftest.er1 5032 ac_status=$? 5033 grep -v '^ *+' conftest.er1 >conftest.err 5034 rm -f conftest.er1 5035 cat conftest.err >&5 5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5037 (exit $ac_status); } && { 5038 test -z "$ac_c_werror_flag" || 5039 test ! -s conftest.err 5040 } && test -s conftest.$ac_objext; then 5041 ac_cv_sys_file_offset_bits=no; break 5042else 5043 echo "$as_me: failed program was:" >&5 5044sed 's/^/| /' conftest.$ac_ext >&5 5045 5046 5047fi 5048 5049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5050 cat >conftest.$ac_ext <<_ACEOF 5051/* confdefs.h. */ 5052_ACEOF 5053cat confdefs.h >>conftest.$ac_ext 5054cat >>conftest.$ac_ext <<_ACEOF 5055/* end confdefs.h. */ 5056#define _FILE_OFFSET_BITS 64 5057#include <sys/types.h> 5058 /* Check that off_t can represent 2**63 - 1 correctly. 5059 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5060 since some C++ compilers masquerading as C compilers 5061 incorrectly reject 9223372036854775807. */ 5062#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5063 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5064 && LARGE_OFF_T % 2147483647 == 1) 5065 ? 1 : -1]; 5066int 5067main () 5068{ 5069 5070 ; 5071 return 0; 5072} 5073_ACEOF 5074rm -f conftest.$ac_objext 5075if { (ac_try="$ac_compile" 5076case "(($ac_try" in 5077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5078 *) ac_try_echo=$ac_try;; 5079esac 5080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5081 (eval "$ac_compile") 2>conftest.er1 5082 ac_status=$? 5083 grep -v '^ *+' conftest.er1 >conftest.err 5084 rm -f conftest.er1 5085 cat conftest.err >&5 5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5087 (exit $ac_status); } && { 5088 test -z "$ac_c_werror_flag" || 5089 test ! -s conftest.err 5090 } && test -s conftest.$ac_objext; then 5091 ac_cv_sys_file_offset_bits=64; break 5092else 5093 echo "$as_me: failed program was:" >&5 5094sed 's/^/| /' conftest.$ac_ext >&5 5095 5096 5097fi 5098 5099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5100 ac_cv_sys_file_offset_bits=unknown 5101 break 5102done 5103fi 5104{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 5105echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } 5106case $ac_cv_sys_file_offset_bits in #( 5107 no | unknown) ;; 5108 *) 5109cat >>confdefs.h <<_ACEOF 5110#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 5111_ACEOF 5112;; 5113esac 5114rm -f conftest* 5115 if test $ac_cv_sys_file_offset_bits = unknown; then 5116 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 5117echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } 5118if test "${ac_cv_sys_large_files+set}" = set; then 5119 echo $ECHO_N "(cached) $ECHO_C" >&6 5120else 5121 while :; do 5122 cat >conftest.$ac_ext <<_ACEOF 5123/* confdefs.h. */ 5124_ACEOF 5125cat confdefs.h >>conftest.$ac_ext 5126cat >>conftest.$ac_ext <<_ACEOF 5127/* end confdefs.h. */ 5128#include <sys/types.h> 5129 /* Check that off_t can represent 2**63 - 1 correctly. 5130 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5131 since some C++ compilers masquerading as C compilers 5132 incorrectly reject 9223372036854775807. */ 5133#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5134 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5135 && LARGE_OFF_T % 2147483647 == 1) 5136 ? 1 : -1]; 5137int 5138main () 5139{ 5140 5141 ; 5142 return 0; 5143} 5144_ACEOF 5145rm -f conftest.$ac_objext 5146if { (ac_try="$ac_compile" 5147case "(($ac_try" in 5148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5149 *) ac_try_echo=$ac_try;; 5150esac 5151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5152 (eval "$ac_compile") 2>conftest.er1 5153 ac_status=$? 5154 grep -v '^ *+' conftest.er1 >conftest.err 5155 rm -f conftest.er1 5156 cat conftest.err >&5 5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5158 (exit $ac_status); } && { 5159 test -z "$ac_c_werror_flag" || 5160 test ! -s conftest.err 5161 } && test -s conftest.$ac_objext; then 5162 ac_cv_sys_large_files=no; break 5163else 5164 echo "$as_me: failed program was:" >&5 5165sed 's/^/| /' conftest.$ac_ext >&5 5166 5167 5168fi 5169 5170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5171 cat >conftest.$ac_ext <<_ACEOF 5172/* confdefs.h. */ 5173_ACEOF 5174cat confdefs.h >>conftest.$ac_ext 5175cat >>conftest.$ac_ext <<_ACEOF 5176/* end confdefs.h. */ 5177#define _LARGE_FILES 1 5178#include <sys/types.h> 5179 /* Check that off_t can represent 2**63 - 1 correctly. 5180 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5181 since some C++ compilers masquerading as C compilers 5182 incorrectly reject 9223372036854775807. */ 5183#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5184 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5185 && LARGE_OFF_T % 2147483647 == 1) 5186 ? 1 : -1]; 5187int 5188main () 5189{ 5190 5191 ; 5192 return 0; 5193} 5194_ACEOF 5195rm -f conftest.$ac_objext 5196if { (ac_try="$ac_compile" 5197case "(($ac_try" in 5198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5199 *) ac_try_echo=$ac_try;; 5200esac 5201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5202 (eval "$ac_compile") 2>conftest.er1 5203 ac_status=$? 5204 grep -v '^ *+' conftest.er1 >conftest.err 5205 rm -f conftest.er1 5206 cat conftest.err >&5 5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5208 (exit $ac_status); } && { 5209 test -z "$ac_c_werror_flag" || 5210 test ! -s conftest.err 5211 } && test -s conftest.$ac_objext; then 5212 ac_cv_sys_large_files=1; break 5213else 5214 echo "$as_me: failed program was:" >&5 5215sed 's/^/| /' conftest.$ac_ext >&5 5216 5217 5218fi 5219 5220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5221 ac_cv_sys_large_files=unknown 5222 break 5223done 5224fi 5225{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 5226echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } 5227case $ac_cv_sys_large_files in #( 5228 no | unknown) ;; 5229 *) 5230cat >>confdefs.h <<_ACEOF 5231#define _LARGE_FILES $ac_cv_sys_large_files 5232_ACEOF 5233;; 5234esac 5235rm -f conftest* 5236 fi 5237fi 5238 5239 5240{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 5241echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 5242 # Check whether --enable-maintainer-mode was given. 5243if test "${enable_maintainer_mode+set}" = set; then 5244 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 5245else 5246 USE_MAINTAINER_MODE=no 5247fi 5248 5249 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 5250echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 5251 if test $USE_MAINTAINER_MODE = yes; then 5252 MAINTAINER_MODE_TRUE= 5253 MAINTAINER_MODE_FALSE='#' 5254else 5255 MAINTAINER_MODE_TRUE='#' 5256 MAINTAINER_MODE_FALSE= 5257fi 5258 5259 MAINT=$MAINTAINER_MODE_TRUE 5260 5261 5262 5263# Checks for programs. 5264# Check whether --enable-static was given. 5265if test "${enable_static+set}" = set; then 5266 enableval=$enable_static; p=${PACKAGE-default} 5267 case $enableval in 5268 yes) enable_static=yes ;; 5269 no) enable_static=no ;; 5270 *) 5271 enable_static=no 5272 # Look at the argument we got. We use all the common list separators. 5273 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5274 for pkg in $enableval; do 5275 IFS="$lt_save_ifs" 5276 if test "X$pkg" = "X$p"; then 5277 enable_static=yes 5278 fi 5279 done 5280 IFS="$lt_save_ifs" 5281 ;; 5282 esac 5283else 5284 enable_static=no 5285fi 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295case `pwd` in 5296 *\ * | *\ *) 5297 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5298echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5299esac 5300 5301 5302 5303macro_version='2.2.4' 5304macro_revision='1.2976' 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318ltmain="$ac_aux_dir/ltmain.sh" 5319 5320{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 5321echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 5322if test "${ac_cv_path_SED+set}" = set; then 5323 echo $ECHO_N "(cached) $ECHO_C" >&6 5324else 5325 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5326 for ac_i in 1 2 3 4 5 6 7; do 5327 ac_script="$ac_script$as_nl$ac_script" 5328 done 5329 echo "$ac_script" | sed 99q >conftest.sed 5330 $as_unset ac_script || ac_script= 5331 # Extract the first word of "sed gsed" to use in msg output 5332if test -z "$SED"; then 5333set dummy sed gsed; ac_prog_name=$2 5334if test "${ac_cv_path_SED+set}" = set; then 5335 echo $ECHO_N "(cached) $ECHO_C" >&6 5336else 5337 ac_path_SED_found=false 5338# Loop through the user's path and test for each of PROGNAME-LIST 5339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5340for as_dir in $PATH 5341do 5342 IFS=$as_save_IFS 5343 test -z "$as_dir" && as_dir=. 5344 for ac_prog in sed gsed; do 5345 for ac_exec_ext in '' $ac_executable_extensions; do 5346 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5347 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5348 # Check for GNU ac_path_SED and select it if it is found. 5349 # Check for GNU $ac_path_SED 5350case `"$ac_path_SED" --version 2>&1` in 5351*GNU*) 5352 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5353*) 5354 ac_count=0 5355 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 5356 while : 5357 do 5358 cat "conftest.in" "conftest.in" >"conftest.tmp" 5359 mv "conftest.tmp" "conftest.in" 5360 cp "conftest.in" "conftest.nl" 5361 echo '' >> "conftest.nl" 5362 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5364 ac_count=`expr $ac_count + 1` 5365 if test $ac_count -gt ${ac_path_SED_max-0}; then 5366 # Best one so far, save it but keep looking for a better one 5367 ac_cv_path_SED="$ac_path_SED" 5368 ac_path_SED_max=$ac_count 5369 fi 5370 # 10*(2^10) chars as input seems more than enough 5371 test $ac_count -gt 10 && break 5372 done 5373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5374esac 5375 5376 5377 $ac_path_SED_found && break 3 5378 done 5379done 5380 5381done 5382IFS=$as_save_IFS 5383 5384 5385fi 5386 5387SED="$ac_cv_path_SED" 5388if test -z "$SED"; then 5389 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 5390echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} 5391 { (exit 1); exit 1; }; } 5392fi 5393 5394else 5395 ac_cv_path_SED=$SED 5396fi 5397 5398fi 5399{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 5400echo "${ECHO_T}$ac_cv_path_SED" >&6; } 5401 SED="$ac_cv_path_SED" 5402 rm -f conftest.sed 5403 5404test -z "$SED" && SED=sed 5405Xsed="$SED -e 1s/^X//" 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417{ echo "$as_me:$LINENO: checking for fgrep" >&5 5418echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; } 5419if test "${ac_cv_path_FGREP+set}" = set; then 5420 echo $ECHO_N "(cached) $ECHO_C" >&6 5421else 5422 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5423 then ac_cv_path_FGREP="$GREP -F" 5424 else 5425 # Extract the first word of "fgrep" to use in msg output 5426if test -z "$FGREP"; then 5427set dummy fgrep; ac_prog_name=$2 5428if test "${ac_cv_path_FGREP+set}" = set; then 5429 echo $ECHO_N "(cached) $ECHO_C" >&6 5430else 5431 ac_path_FGREP_found=false 5432# Loop through the user's path and test for each of PROGNAME-LIST 5433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5434for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5435do 5436 IFS=$as_save_IFS 5437 test -z "$as_dir" && as_dir=. 5438 for ac_prog in fgrep; do 5439 for ac_exec_ext in '' $ac_executable_extensions; do 5440 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5441 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5442 # Check for GNU ac_path_FGREP and select it if it is found. 5443 # Check for GNU $ac_path_FGREP 5444case `"$ac_path_FGREP" --version 2>&1` in 5445*GNU*) 5446 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5447*) 5448 ac_count=0 5449 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 5450 while : 5451 do 5452 cat "conftest.in" "conftest.in" >"conftest.tmp" 5453 mv "conftest.tmp" "conftest.in" 5454 cp "conftest.in" "conftest.nl" 5455 echo 'FGREP' >> "conftest.nl" 5456 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5457 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5458 ac_count=`expr $ac_count + 1` 5459 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5460 # Best one so far, save it but keep looking for a better one 5461 ac_cv_path_FGREP="$ac_path_FGREP" 5462 ac_path_FGREP_max=$ac_count 5463 fi 5464 # 10*(2^10) chars as input seems more than enough 5465 test $ac_count -gt 10 && break 5466 done 5467 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5468esac 5469 5470 5471 $ac_path_FGREP_found && break 3 5472 done 5473done 5474 5475done 5476IFS=$as_save_IFS 5477 5478 5479fi 5480 5481FGREP="$ac_cv_path_FGREP" 5482if test -z "$FGREP"; then 5483 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5484echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5485 { (exit 1); exit 1; }; } 5486fi 5487 5488else 5489 ac_cv_path_FGREP=$FGREP 5490fi 5491 5492 5493 fi 5494fi 5495{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 5496echo "${ECHO_T}$ac_cv_path_FGREP" >&6; } 5497 FGREP="$ac_cv_path_FGREP" 5498 5499 5500test -z "$GREP" && GREP=grep 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520# Check whether --with-gnu-ld was given. 5521if test "${with_gnu_ld+set}" = set; then 5522 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5523else 5524 with_gnu_ld=no 5525fi 5526 5527ac_prog=ld 5528if test "$GCC" = yes; then 5529 # Check if gcc -print-prog-name=ld gives a path. 5530 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 5531echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 5532 case $host in 5533 *-*-mingw*) 5534 # gcc leaves a trailing carriage return which upsets mingw 5535 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5536 *) 5537 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5538 esac 5539 case $ac_prog in 5540 # Accept absolute paths. 5541 [\\/]* | ?:[\\/]*) 5542 re_direlt='/[^/][^/]*/\.\./' 5543 # Canonicalize the pathname of ld 5544 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5545 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5546 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5547 done 5548 test -z "$LD" && LD="$ac_prog" 5549 ;; 5550 "") 5551 # If it fails, then pretend we aren't using GCC. 5552 ac_prog=ld 5553 ;; 5554 *) 5555 # If it is relative, then search for the first ld in PATH. 5556 with_gnu_ld=unknown 5557 ;; 5558 esac 5559elif test "$with_gnu_ld" = yes; then 5560 { echo "$as_me:$LINENO: checking for GNU ld" >&5 5561echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 5562else 5563 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 5564echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 5565fi 5566if test "${lt_cv_path_LD+set}" = set; then 5567 echo $ECHO_N "(cached) $ECHO_C" >&6 5568else 5569 if test -z "$LD"; then 5570 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5571 for ac_dir in $PATH; do 5572 IFS="$lt_save_ifs" 5573 test -z "$ac_dir" && ac_dir=. 5574 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5575 lt_cv_path_LD="$ac_dir/$ac_prog" 5576 # Check to see if the program is GNU ld. I'd rather use --version, 5577 # but apparently some variants of GNU ld only accept -v. 5578 # Break only if it was the GNU/non-GNU ld that we prefer. 5579 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5580 *GNU* | *'with BFD'*) 5581 test "$with_gnu_ld" != no && break 5582 ;; 5583 *) 5584 test "$with_gnu_ld" != yes && break 5585 ;; 5586 esac 5587 fi 5588 done 5589 IFS="$lt_save_ifs" 5590else 5591 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5592fi 5593fi 5594 5595LD="$lt_cv_path_LD" 5596if test -n "$LD"; then 5597 { echo "$as_me:$LINENO: result: $LD" >&5 5598echo "${ECHO_T}$LD" >&6; } 5599else 5600 { echo "$as_me:$LINENO: result: no" >&5 5601echo "${ECHO_T}no" >&6; } 5602fi 5603test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 5604echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 5605 { (exit 1); exit 1; }; } 5606{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 5607echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 5608if test "${lt_cv_prog_gnu_ld+set}" = set; then 5609 echo $ECHO_N "(cached) $ECHO_C" >&6 5610else 5611 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5612case `$LD -v 2>&1 </dev/null` in 5613*GNU* | *'with BFD'*) 5614 lt_cv_prog_gnu_ld=yes 5615 ;; 5616*) 5617 lt_cv_prog_gnu_ld=no 5618 ;; 5619esac 5620fi 5621{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 5622echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 5623with_gnu_ld=$lt_cv_prog_gnu_ld 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 5634echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; } 5635if test "${lt_cv_path_NM+set}" = set; then 5636 echo $ECHO_N "(cached) $ECHO_C" >&6 5637else 5638 if test -n "$NM"; then 5639 # Let the user override the test. 5640 lt_cv_path_NM="$NM" 5641else 5642 lt_nm_to_check="${ac_tool_prefix}nm" 5643 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5644 lt_nm_to_check="$lt_nm_to_check nm" 5645 fi 5646 for lt_tmp_nm in $lt_nm_to_check; do 5647 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5648 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5649 IFS="$lt_save_ifs" 5650 test -z "$ac_dir" && ac_dir=. 5651 tmp_nm="$ac_dir/$lt_tmp_nm" 5652 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5653 # Check to see if the nm accepts a BSD-compat flag. 5654 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5655 # nm: unknown option "B" ignored 5656 # Tru64's nm complains that /dev/null is an invalid object file 5657 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5658 */dev/null* | *'Invalid file or object type'*) 5659 lt_cv_path_NM="$tmp_nm -B" 5660 break 5661 ;; 5662 *) 5663 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5664 */dev/null*) 5665 lt_cv_path_NM="$tmp_nm -p" 5666 break 5667 ;; 5668 *) 5669 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5670 continue # so that we can try to find one that supports BSD flags 5671 ;; 5672 esac 5673 ;; 5674 esac 5675 fi 5676 done 5677 IFS="$lt_save_ifs" 5678 done 5679 : ${lt_cv_path_NM=no} 5680fi 5681fi 5682{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5683echo "${ECHO_T}$lt_cv_path_NM" >&6; } 5684if test "$lt_cv_path_NM" != "no"; then 5685 NM="$lt_cv_path_NM" 5686else 5687 # Didn't find any BSD compatible name lister, look for dumpbin. 5688 if test -n "$ac_tool_prefix"; then 5689 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5690 do 5691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5692set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5693{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5695if test "${ac_cv_prog_DUMPBIN+set}" = set; then 5696 echo $ECHO_N "(cached) $ECHO_C" >&6 5697else 5698 if test -n "$DUMPBIN"; then 5699 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5700else 5701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5702for as_dir in $PATH 5703do 5704 IFS=$as_save_IFS 5705 test -z "$as_dir" && as_dir=. 5706 for ac_exec_ext in '' $ac_executable_extensions; do 5707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5708 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5710 break 2 5711 fi 5712done 5713done 5714IFS=$as_save_IFS 5715 5716fi 5717fi 5718DUMPBIN=$ac_cv_prog_DUMPBIN 5719if test -n "$DUMPBIN"; then 5720 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5 5721echo "${ECHO_T}$DUMPBIN" >&6; } 5722else 5723 { echo "$as_me:$LINENO: result: no" >&5 5724echo "${ECHO_T}no" >&6; } 5725fi 5726 5727 5728 test -n "$DUMPBIN" && break 5729 done 5730fi 5731if test -z "$DUMPBIN"; then 5732 ac_ct_DUMPBIN=$DUMPBIN 5733 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5734do 5735 # Extract the first word of "$ac_prog", so it can be a program name with args. 5736set dummy $ac_prog; ac_word=$2 5737{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5739if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 5740 echo $ECHO_N "(cached) $ECHO_C" >&6 5741else 5742 if test -n "$ac_ct_DUMPBIN"; then 5743 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5744else 5745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5746for as_dir in $PATH 5747do 5748 IFS=$as_save_IFS 5749 test -z "$as_dir" && as_dir=. 5750 for ac_exec_ext in '' $ac_executable_extensions; do 5751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5752 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5754 break 2 5755 fi 5756done 5757done 5758IFS=$as_save_IFS 5759 5760fi 5761fi 5762ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5763if test -n "$ac_ct_DUMPBIN"; then 5764 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 5765echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; } 5766else 5767 { echo "$as_me:$LINENO: result: no" >&5 5768echo "${ECHO_T}no" >&6; } 5769fi 5770 5771 5772 test -n "$ac_ct_DUMPBIN" && break 5773done 5774 5775 if test "x$ac_ct_DUMPBIN" = x; then 5776 DUMPBIN=":" 5777 else 5778 case $cross_compiling:$ac_tool_warned in 5779yes:) 5780{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5781whose name does not start with the host triplet. If you think this 5782configuration is useful to you, please write to autoconf@gnu.org." >&5 5783echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5784whose name does not start with the host triplet. If you think this 5785configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5786ac_tool_warned=yes ;; 5787esac 5788 DUMPBIN=$ac_ct_DUMPBIN 5789 fi 5790fi 5791 5792 5793 if test "$DUMPBIN" != ":"; then 5794 NM="$DUMPBIN" 5795 fi 5796fi 5797test -z "$NM" && NM=nm 5798 5799 5800 5801 5802 5803 5804{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 5805echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; } 5806if test "${lt_cv_nm_interface+set}" = set; then 5807 echo $ECHO_N "(cached) $ECHO_C" >&6 5808else 5809 lt_cv_nm_interface="BSD nm" 5810 echo "int some_variable = 0;" > conftest.$ac_ext 5811 (eval echo "\"\$as_me:5811: $ac_compile\"" >&5) 5812 (eval "$ac_compile" 2>conftest.err) 5813 cat conftest.err >&5 5814 (eval echo "\"\$as_me:5814: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5815 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5816 cat conftest.err >&5 5817 (eval echo "\"\$as_me:5817: output\"" >&5) 5818 cat conftest.out >&5 5819 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5820 lt_cv_nm_interface="MS dumpbin" 5821 fi 5822 rm -f conftest* 5823fi 5824{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 5825echo "${ECHO_T}$lt_cv_nm_interface" >&6; } 5826 5827{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 5828echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 5829LN_S=$as_ln_s 5830if test "$LN_S" = "ln -s"; then 5831 { echo "$as_me:$LINENO: result: yes" >&5 5832echo "${ECHO_T}yes" >&6; } 5833else 5834 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5835echo "${ECHO_T}no, using $LN_S" >&6; } 5836fi 5837 5838# find the maximum length of command line arguments 5839{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5840echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 5841if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5842 echo $ECHO_N "(cached) $ECHO_C" >&6 5843else 5844 i=0 5845 teststring="ABCD" 5846 5847 case $build_os in 5848 msdosdjgpp*) 5849 # On DJGPP, this test can blow up pretty badly due to problems in libc 5850 # (any single argument exceeding 2000 bytes causes a buffer overrun 5851 # during glob expansion). Even if it were fixed, the result of this 5852 # check would be larger than it should be. 5853 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5854 ;; 5855 5856 gnu*) 5857 # Under GNU Hurd, this test is not required because there is 5858 # no limit to the length of command line arguments. 5859 # Libtool will interpret -1 as no limit whatsoever 5860 lt_cv_sys_max_cmd_len=-1; 5861 ;; 5862 5863 cygwin* | mingw*) 5864 # On Win9x/ME, this test blows up -- it succeeds, but takes 5865 # about 5 minutes as the teststring grows exponentially. 5866 # Worse, since 9x/ME are not pre-emptively multitasking, 5867 # you end up with a "frozen" computer, even though with patience 5868 # the test eventually succeeds (with a max line length of 256k). 5869 # Instead, let's just punt: use the minimum linelength reported by 5870 # all of the supported platforms: 8192 (on NT/2K/XP). 5871 lt_cv_sys_max_cmd_len=8192; 5872 ;; 5873 5874 amigaos*) 5875 # On AmigaOS with pdksh, this test takes hours, literally. 5876 # So we just punt and use a minimum line length of 8192. 5877 lt_cv_sys_max_cmd_len=8192; 5878 ;; 5879 5880 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5881 # This has been around since 386BSD, at least. Likely further. 5882 if test -x /sbin/sysctl; then 5883 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5884 elif test -x /usr/sbin/sysctl; then 5885 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5886 else 5887 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5888 fi 5889 # And add a safety zone 5890 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5891 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5892 ;; 5893 5894 interix*) 5895 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5896 lt_cv_sys_max_cmd_len=196608 5897 ;; 5898 5899 osf*) 5900 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5901 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5902 # nice to cause kernel panics so lets avoid the loop below. 5903 # First set a reasonable default. 5904 lt_cv_sys_max_cmd_len=16384 5905 # 5906 if test -x /sbin/sysconfig; then 5907 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5908 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5909 esac 5910 fi 5911 ;; 5912 sco3.2v5*) 5913 lt_cv_sys_max_cmd_len=102400 5914 ;; 5915 sysv5* | sco5v6* | sysv4.2uw2*) 5916 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5917 if test -n "$kargmax"; then 5918 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5919 else 5920 lt_cv_sys_max_cmd_len=32768 5921 fi 5922 ;; 5923 *) 5924 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5925 if test -n "$lt_cv_sys_max_cmd_len"; then 5926 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5927 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5928 else 5929 # Make teststring a little bigger before we do anything with it. 5930 # a 1K string should be a reasonable start. 5931 for i in 1 2 3 4 5 6 7 8 ; do 5932 teststring=$teststring$teststring 5933 done 5934 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5935 # If test is not a shell built-in, we'll probably end up computing a 5936 # maximum length that is only half of the actual maximum length, but 5937 # we can't tell. 5938 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5939 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5940 test $i != 17 # 1/2 MB should be enough 5941 do 5942 i=`expr $i + 1` 5943 teststring=$teststring$teststring 5944 done 5945 # Only check the string length outside the loop. 5946 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5947 teststring= 5948 # Add a significant safety factor because C++ compilers can tack on 5949 # massive amounts of additional arguments before passing them to the 5950 # linker. It appears as though 1/2 is a usable value. 5951 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5952 fi 5953 ;; 5954 esac 5955 5956fi 5957 5958if test -n $lt_cv_sys_max_cmd_len ; then 5959 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5960echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 5961else 5962 { echo "$as_me:$LINENO: result: none" >&5 5963echo "${ECHO_T}none" >&6; } 5964fi 5965max_cmd_len=$lt_cv_sys_max_cmd_len 5966 5967 5968 5969 5970 5971 5972: ${CP="cp -f"} 5973: ${MV="mv -f"} 5974: ${RM="rm -f"} 5975 5976{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 5977echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; } 5978# Try some XSI features 5979xsi_shell=no 5980( _lt_dummy="a/b/c" 5981 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5982 = c,a/b,, \ 5983 && eval 'test $(( 1 + 1 )) -eq 2 \ 5984 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5985 && xsi_shell=yes 5986{ echo "$as_me:$LINENO: result: $xsi_shell" >&5 5987echo "${ECHO_T}$xsi_shell" >&6; } 5988 5989 5990{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 5991echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; } 5992lt_shell_append=no 5993( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5994 >/dev/null 2>&1 \ 5995 && lt_shell_append=yes 5996{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5 5997echo "${ECHO_T}$lt_shell_append" >&6; } 5998 5999 6000if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6001 lt_unset=unset 6002else 6003 lt_unset=false 6004fi 6005 6006 6007 6008 6009 6010# test EBCDIC or ASCII 6011case `echo X|tr X '\101'` in 6012 A) # ASCII based system 6013 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6014 lt_SP2NL='tr \040 \012' 6015 lt_NL2SP='tr \015\012 \040\040' 6016 ;; 6017 *) # EBCDIC based system 6018 lt_SP2NL='tr \100 \n' 6019 lt_NL2SP='tr \r\n \100\100' 6020 ;; 6021esac 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 6032echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 6033if test "${lt_cv_ld_reload_flag+set}" = set; then 6034 echo $ECHO_N "(cached) $ECHO_C" >&6 6035else 6036 lt_cv_ld_reload_flag='-r' 6037fi 6038{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 6039echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 6040reload_flag=$lt_cv_ld_reload_flag 6041case $reload_flag in 6042"" | " "*) ;; 6043*) reload_flag=" $reload_flag" ;; 6044esac 6045reload_cmds='$LD$reload_flag -o $output$reload_objs' 6046case $host_os in 6047 darwin*) 6048 if test "$GCC" = yes; then 6049 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6050 else 6051 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6052 fi 6053 ;; 6054esac 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 6066echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 6067if test "${lt_cv_deplibs_check_method+set}" = set; then 6068 echo $ECHO_N "(cached) $ECHO_C" >&6 6069else 6070 lt_cv_file_magic_cmd='$MAGIC_CMD' 6071lt_cv_file_magic_test_file= 6072lt_cv_deplibs_check_method='unknown' 6073# Need to set the preceding variable on all platforms that support 6074# interlibrary dependencies. 6075# 'none' -- dependencies not supported. 6076# `unknown' -- same as none, but documents that we really don't know. 6077# 'pass_all' -- all dependencies passed with no checks. 6078# 'test_compile' -- check by making test program. 6079# 'file_magic [[regex]]' -- check by looking for files in library path 6080# which responds to the $file_magic_cmd with a given extended regex. 6081# If you have `file' or equivalent on your system and you're not sure 6082# whether `pass_all' will *always* work, you probably want this one. 6083 6084case $host_os in 6085aix[4-9]*) 6086 lt_cv_deplibs_check_method=pass_all 6087 ;; 6088 6089beos*) 6090 lt_cv_deplibs_check_method=pass_all 6091 ;; 6092 6093bsdi[45]*) 6094 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6095 lt_cv_file_magic_cmd='/usr/bin/file -L' 6096 lt_cv_file_magic_test_file=/shlib/libc.so 6097 ;; 6098 6099cygwin*) 6100 # func_win32_libid is a shell function defined in ltmain.sh 6101 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6102 lt_cv_file_magic_cmd='func_win32_libid' 6103 ;; 6104 6105mingw* | pw32*) 6106 # Base MSYS/MinGW do not provide the 'file' command needed by 6107 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6108 # unless we find 'file', for example because we are cross-compiling. 6109 if ( file / ) >/dev/null 2>&1; then 6110 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6111 lt_cv_file_magic_cmd='func_win32_libid' 6112 else 6113 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6114 lt_cv_file_magic_cmd='$OBJDUMP -f' 6115 fi 6116 ;; 6117 6118darwin* | rhapsody*) 6119 lt_cv_deplibs_check_method=pass_all 6120 ;; 6121 6122freebsd* | dragonfly*) 6123 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6124 case $host_cpu in 6125 i*86 ) 6126 # Not sure whether the presence of OpenBSD here was a mistake. 6127 # Let's accept both of them until this is cleared up. 6128 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6129 lt_cv_file_magic_cmd=/usr/bin/file 6130 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6131 ;; 6132 esac 6133 else 6134 lt_cv_deplibs_check_method=pass_all 6135 fi 6136 ;; 6137 6138gnu*) 6139 lt_cv_deplibs_check_method=pass_all 6140 ;; 6141 6142hpux10.20* | hpux11*) 6143 lt_cv_file_magic_cmd=/usr/bin/file 6144 case $host_cpu in 6145 ia64*) 6146 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6147 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6148 ;; 6149 hppa*64*) 6150 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]' 6151 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6152 ;; 6153 *) 6154 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6155 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6156 ;; 6157 esac 6158 ;; 6159 6160interix[3-9]*) 6161 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6162 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6163 ;; 6164 6165irix5* | irix6* | nonstopux*) 6166 case $LD in 6167 *-32|*"-32 ") libmagic=32-bit;; 6168 *-n32|*"-n32 ") libmagic=N32;; 6169 *-64|*"-64 ") libmagic=64-bit;; 6170 *) libmagic=never-match;; 6171 esac 6172 lt_cv_deplibs_check_method=pass_all 6173 ;; 6174 6175# This must be Linux ELF. 6176linux* | k*bsd*-gnu) 6177 lt_cv_deplibs_check_method=pass_all 6178 ;; 6179 6180netbsd* | netbsdelf*-gnu) 6181 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6182 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6183 else 6184 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6185 fi 6186 ;; 6187 6188newos6*) 6189 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6190 lt_cv_file_magic_cmd=/usr/bin/file 6191 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6192 ;; 6193 6194*nto* | *qnx*) 6195 lt_cv_deplibs_check_method=pass_all 6196 ;; 6197 6198openbsd*) 6199 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6200 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6201 else 6202 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6203 fi 6204 ;; 6205 6206osf3* | osf4* | osf5*) 6207 lt_cv_deplibs_check_method=pass_all 6208 ;; 6209 6210rdos*) 6211 lt_cv_deplibs_check_method=pass_all 6212 ;; 6213 6214solaris*) 6215 lt_cv_deplibs_check_method=pass_all 6216 ;; 6217 6218sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6219 lt_cv_deplibs_check_method=pass_all 6220 ;; 6221 6222sysv4 | sysv4.3*) 6223 case $host_vendor in 6224 motorola) 6225 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]' 6226 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6227 ;; 6228 ncr) 6229 lt_cv_deplibs_check_method=pass_all 6230 ;; 6231 sequent) 6232 lt_cv_file_magic_cmd='/bin/file' 6233 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6234 ;; 6235 sni) 6236 lt_cv_file_magic_cmd='/bin/file' 6237 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6238 lt_cv_file_magic_test_file=/lib/libc.so 6239 ;; 6240 siemens) 6241 lt_cv_deplibs_check_method=pass_all 6242 ;; 6243 pc) 6244 lt_cv_deplibs_check_method=pass_all 6245 ;; 6246 esac 6247 ;; 6248 6249tpf*) 6250 lt_cv_deplibs_check_method=pass_all 6251 ;; 6252esac 6253 6254fi 6255{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 6256echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 6257file_magic_cmd=$lt_cv_file_magic_cmd 6258deplibs_check_method=$lt_cv_deplibs_check_method 6259test -z "$deplibs_check_method" && deplibs_check_method=unknown 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272if test -n "$ac_tool_prefix"; then 6273 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6274set dummy ${ac_tool_prefix}ar; ac_word=$2 6275{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6277if test "${ac_cv_prog_AR+set}" = set; then 6278 echo $ECHO_N "(cached) $ECHO_C" >&6 6279else 6280 if test -n "$AR"; then 6281 ac_cv_prog_AR="$AR" # Let the user override the test. 6282else 6283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6284for as_dir in $PATH 6285do 6286 IFS=$as_save_IFS 6287 test -z "$as_dir" && as_dir=. 6288 for ac_exec_ext in '' $ac_executable_extensions; do 6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6290 ac_cv_prog_AR="${ac_tool_prefix}ar" 6291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6292 break 2 6293 fi 6294done 6295done 6296IFS=$as_save_IFS 6297 6298fi 6299fi 6300AR=$ac_cv_prog_AR 6301if test -n "$AR"; then 6302 { echo "$as_me:$LINENO: result: $AR" >&5 6303echo "${ECHO_T}$AR" >&6; } 6304else 6305 { echo "$as_me:$LINENO: result: no" >&5 6306echo "${ECHO_T}no" >&6; } 6307fi 6308 6309 6310fi 6311if test -z "$ac_cv_prog_AR"; then 6312 ac_ct_AR=$AR 6313 # Extract the first word of "ar", so it can be a program name with args. 6314set dummy ar; ac_word=$2 6315{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6317if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6318 echo $ECHO_N "(cached) $ECHO_C" >&6 6319else 6320 if test -n "$ac_ct_AR"; then 6321 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6322else 6323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6324for as_dir in $PATH 6325do 6326 IFS=$as_save_IFS 6327 test -z "$as_dir" && as_dir=. 6328 for ac_exec_ext in '' $ac_executable_extensions; do 6329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6330 ac_cv_prog_ac_ct_AR="ar" 6331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6332 break 2 6333 fi 6334done 6335done 6336IFS=$as_save_IFS 6337 6338fi 6339fi 6340ac_ct_AR=$ac_cv_prog_ac_ct_AR 6341if test -n "$ac_ct_AR"; then 6342 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6343echo "${ECHO_T}$ac_ct_AR" >&6; } 6344else 6345 { echo "$as_me:$LINENO: result: no" >&5 6346echo "${ECHO_T}no" >&6; } 6347fi 6348 6349 if test "x$ac_ct_AR" = x; then 6350 AR="false" 6351 else 6352 case $cross_compiling:$ac_tool_warned in 6353yes:) 6354{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6355whose name does not start with the host triplet. If you think this 6356configuration is useful to you, please write to autoconf@gnu.org." >&5 6357echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6358whose name does not start with the host triplet. If you think this 6359configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6360ac_tool_warned=yes ;; 6361esac 6362 AR=$ac_ct_AR 6363 fi 6364else 6365 AR="$ac_cv_prog_AR" 6366fi 6367 6368test -z "$AR" && AR=ar 6369test -z "$AR_FLAGS" && AR_FLAGS=cru 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381if test -n "$ac_tool_prefix"; then 6382 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6383set dummy ${ac_tool_prefix}strip; ac_word=$2 6384{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6386if test "${ac_cv_prog_STRIP+set}" = set; then 6387 echo $ECHO_N "(cached) $ECHO_C" >&6 6388else 6389 if test -n "$STRIP"; then 6390 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6391else 6392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6393for as_dir in $PATH 6394do 6395 IFS=$as_save_IFS 6396 test -z "$as_dir" && as_dir=. 6397 for ac_exec_ext in '' $ac_executable_extensions; do 6398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6399 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6401 break 2 6402 fi 6403done 6404done 6405IFS=$as_save_IFS 6406 6407fi 6408fi 6409STRIP=$ac_cv_prog_STRIP 6410if test -n "$STRIP"; then 6411 { echo "$as_me:$LINENO: result: $STRIP" >&5 6412echo "${ECHO_T}$STRIP" >&6; } 6413else 6414 { echo "$as_me:$LINENO: result: no" >&5 6415echo "${ECHO_T}no" >&6; } 6416fi 6417 6418 6419fi 6420if test -z "$ac_cv_prog_STRIP"; then 6421 ac_ct_STRIP=$STRIP 6422 # Extract the first word of "strip", so it can be a program name with args. 6423set dummy strip; ac_word=$2 6424{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6426if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6427 echo $ECHO_N "(cached) $ECHO_C" >&6 6428else 6429 if test -n "$ac_ct_STRIP"; then 6430 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6431else 6432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6433for as_dir in $PATH 6434do 6435 IFS=$as_save_IFS 6436 test -z "$as_dir" && as_dir=. 6437 for ac_exec_ext in '' $ac_executable_extensions; do 6438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6439 ac_cv_prog_ac_ct_STRIP="strip" 6440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6441 break 2 6442 fi 6443done 6444done 6445IFS=$as_save_IFS 6446 6447fi 6448fi 6449ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6450if test -n "$ac_ct_STRIP"; then 6451 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6452echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6453else 6454 { echo "$as_me:$LINENO: result: no" >&5 6455echo "${ECHO_T}no" >&6; } 6456fi 6457 6458 if test "x$ac_ct_STRIP" = x; then 6459 STRIP=":" 6460 else 6461 case $cross_compiling:$ac_tool_warned in 6462yes:) 6463{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6464whose name does not start with the host triplet. If you think this 6465configuration is useful to you, please write to autoconf@gnu.org." >&5 6466echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6467whose name does not start with the host triplet. If you think this 6468configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6469ac_tool_warned=yes ;; 6470esac 6471 STRIP=$ac_ct_STRIP 6472 fi 6473else 6474 STRIP="$ac_cv_prog_STRIP" 6475fi 6476 6477test -z "$STRIP" && STRIP=: 6478 6479 6480 6481 6482 6483 6484if test -n "$ac_tool_prefix"; then 6485 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6486set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6487{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6489if test "${ac_cv_prog_RANLIB+set}" = set; then 6490 echo $ECHO_N "(cached) $ECHO_C" >&6 6491else 6492 if test -n "$RANLIB"; then 6493 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6494else 6495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6496for as_dir in $PATH 6497do 6498 IFS=$as_save_IFS 6499 test -z "$as_dir" && as_dir=. 6500 for ac_exec_ext in '' $ac_executable_extensions; do 6501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6502 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6504 break 2 6505 fi 6506done 6507done 6508IFS=$as_save_IFS 6509 6510fi 6511fi 6512RANLIB=$ac_cv_prog_RANLIB 6513if test -n "$RANLIB"; then 6514 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6515echo "${ECHO_T}$RANLIB" >&6; } 6516else 6517 { echo "$as_me:$LINENO: result: no" >&5 6518echo "${ECHO_T}no" >&6; } 6519fi 6520 6521 6522fi 6523if test -z "$ac_cv_prog_RANLIB"; then 6524 ac_ct_RANLIB=$RANLIB 6525 # Extract the first word of "ranlib", so it can be a program name with args. 6526set dummy ranlib; ac_word=$2 6527{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6529if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6530 echo $ECHO_N "(cached) $ECHO_C" >&6 6531else 6532 if test -n "$ac_ct_RANLIB"; then 6533 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6534else 6535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6536for as_dir in $PATH 6537do 6538 IFS=$as_save_IFS 6539 test -z "$as_dir" && as_dir=. 6540 for ac_exec_ext in '' $ac_executable_extensions; do 6541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6542 ac_cv_prog_ac_ct_RANLIB="ranlib" 6543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6544 break 2 6545 fi 6546done 6547done 6548IFS=$as_save_IFS 6549 6550fi 6551fi 6552ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6553if test -n "$ac_ct_RANLIB"; then 6554 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6555echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6556else 6557 { echo "$as_me:$LINENO: result: no" >&5 6558echo "${ECHO_T}no" >&6; } 6559fi 6560 6561 if test "x$ac_ct_RANLIB" = x; then 6562 RANLIB=":" 6563 else 6564 case $cross_compiling:$ac_tool_warned in 6565yes:) 6566{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6567whose name does not start with the host triplet. If you think this 6568configuration is useful to you, please write to autoconf@gnu.org." >&5 6569echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6570whose name does not start with the host triplet. If you think this 6571configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6572ac_tool_warned=yes ;; 6573esac 6574 RANLIB=$ac_ct_RANLIB 6575 fi 6576else 6577 RANLIB="$ac_cv_prog_RANLIB" 6578fi 6579 6580test -z "$RANLIB" && RANLIB=: 6581 6582 6583 6584 6585 6586 6587# Determine commands to create old-style static archives. 6588old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6589old_postinstall_cmds='chmod 644 $oldlib' 6590old_postuninstall_cmds= 6591 6592if test -n "$RANLIB"; then 6593 case $host_os in 6594 openbsd*) 6595 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6596 ;; 6597 *) 6598 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6599 ;; 6600 esac 6601 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6602fi 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637# If no C compiler was specified, use CC. 6638LTCC=${LTCC-"$CC"} 6639 6640# If no C compiler flags were specified, use CFLAGS. 6641LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6642 6643# Allow CC to be a program name with arguments. 6644compiler=$CC 6645 6646 6647# Check for command to grab the raw symbol name followed by C symbol from nm. 6648{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6649echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6650if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6651 echo $ECHO_N "(cached) $ECHO_C" >&6 6652else 6653 6654# These are sane defaults that work on at least a few old systems. 6655# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6656 6657# Character class describing NM global symbol codes. 6658symcode='[BCDEGRST]' 6659 6660# Regexp to match symbols that can be accessed directly from C. 6661sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6662 6663# Define system-specific variables. 6664case $host_os in 6665aix*) 6666 symcode='[BCDT]' 6667 ;; 6668cygwin* | mingw* | pw32*) 6669 symcode='[ABCDGISTW]' 6670 ;; 6671hpux*) 6672 if test "$host_cpu" = ia64; then 6673 symcode='[ABCDEGRST]' 6674 fi 6675 ;; 6676irix* | nonstopux*) 6677 symcode='[BCDEGRST]' 6678 ;; 6679osf*) 6680 symcode='[BCDEGQRST]' 6681 ;; 6682solaris*) 6683 symcode='[BDRT]' 6684 ;; 6685sco3.2v5*) 6686 symcode='[DT]' 6687 ;; 6688sysv4.2uw2*) 6689 symcode='[DT]' 6690 ;; 6691sysv5* | sco5v6* | unixware* | OpenUNIX*) 6692 symcode='[ABDT]' 6693 ;; 6694sysv4) 6695 symcode='[DFNSTU]' 6696 ;; 6697esac 6698 6699# If we're using GNU nm, then use its standard symbol codes. 6700case `$NM -V 2>&1` in 6701*GNU* | *'with BFD'*) 6702 symcode='[ABCDGIRSTW]' ;; 6703esac 6704 6705# Transform an extracted symbol line into a proper C declaration. 6706# Some systems (esp. on ia64) link data and code symbols differently, 6707# so use this general approach. 6708lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6709 6710# Transform an extracted symbol line into symbol name and symbol address 6711lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6712lt_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'" 6713 6714# Handle CRLF in mingw tool chain 6715opt_cr= 6716case $build_os in 6717mingw*) 6718 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6719 ;; 6720esac 6721 6722# Try without a prefix underscore, then with it. 6723for ac_symprfx in "" "_"; do 6724 6725 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6726 symxfrm="\\1 $ac_symprfx\\2 \\2" 6727 6728 # Write the raw and C identifiers. 6729 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6730 # Fake it for dumpbin and say T for any non-static function 6731 # and D for any global variable. 6732 # Also find C++ and __fastcall symbols from MSVC++, 6733 # which start with @ or ?. 6734 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6735" {last_section=section; section=\$ 3};"\ 6736" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6737" \$ 0!~/External *\|/{next};"\ 6738" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6739" {if(hide[section]) next};"\ 6740" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6741" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6742" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6743" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6744" ' prfx=^$ac_symprfx" 6745 else 6746 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6747 fi 6748 6749 # Check to see that the pipe works correctly. 6750 pipe_works=no 6751 6752 rm -f conftest* 6753 cat > conftest.$ac_ext <<_LT_EOF 6754#ifdef __cplusplus 6755extern "C" { 6756#endif 6757char nm_test_var; 6758void nm_test_func(void); 6759void nm_test_func(void){} 6760#ifdef __cplusplus 6761} 6762#endif 6763int main(){nm_test_var='a';nm_test_func();return(0);} 6764_LT_EOF 6765 6766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6767 (eval $ac_compile) 2>&5 6768 ac_status=$? 6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6770 (exit $ac_status); }; then 6771 # Now try to grab the symbols. 6772 nlist=conftest.nm 6773 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6774 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6775 ac_status=$? 6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6777 (exit $ac_status); } && test -s "$nlist"; then 6778 # Try sorting and uniquifying the output. 6779 if sort "$nlist" | uniq > "$nlist"T; then 6780 mv -f "$nlist"T "$nlist" 6781 else 6782 rm -f "$nlist"T 6783 fi 6784 6785 # Make sure that we snagged all the symbols we need. 6786 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6787 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6788 cat <<_LT_EOF > conftest.$ac_ext 6789#ifdef __cplusplus 6790extern "C" { 6791#endif 6792 6793_LT_EOF 6794 # Now generate the symbol file. 6795 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6796 6797 cat <<_LT_EOF >> conftest.$ac_ext 6798 6799/* The mapping between symbol names and symbols. */ 6800const struct { 6801 const char *name; 6802 void *address; 6803} 6804lt__PROGRAM__LTX_preloaded_symbols[] = 6805{ 6806 { "@PROGRAM@", (void *) 0 }, 6807_LT_EOF 6808 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6809 cat <<\_LT_EOF >> conftest.$ac_ext 6810 {0, (void *) 0} 6811}; 6812 6813/* This works around a problem in FreeBSD linker */ 6814#ifdef FREEBSD_WORKAROUND 6815static const void *lt_preloaded_setup() { 6816 return lt__PROGRAM__LTX_preloaded_symbols; 6817} 6818#endif 6819 6820#ifdef __cplusplus 6821} 6822#endif 6823_LT_EOF 6824 # Now try linking the two files. 6825 mv conftest.$ac_objext conftstm.$ac_objext 6826 lt_save_LIBS="$LIBS" 6827 lt_save_CFLAGS="$CFLAGS" 6828 LIBS="conftstm.$ac_objext" 6829 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6831 (eval $ac_link) 2>&5 6832 ac_status=$? 6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6834 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6835 pipe_works=yes 6836 fi 6837 LIBS="$lt_save_LIBS" 6838 CFLAGS="$lt_save_CFLAGS" 6839 else 6840 echo "cannot find nm_test_func in $nlist" >&5 6841 fi 6842 else 6843 echo "cannot find nm_test_var in $nlist" >&5 6844 fi 6845 else 6846 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6847 fi 6848 else 6849 echo "$progname: failed program was:" >&5 6850 cat conftest.$ac_ext >&5 6851 fi 6852 rm -rf conftest* conftst* 6853 6854 # Do not use the global_symbol_pipe unless it works. 6855 if test "$pipe_works" = yes; then 6856 break 6857 else 6858 lt_cv_sys_global_symbol_pipe= 6859 fi 6860done 6861 6862fi 6863 6864if test -z "$lt_cv_sys_global_symbol_pipe"; then 6865 lt_cv_sys_global_symbol_to_cdecl= 6866fi 6867if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6868 { echo "$as_me:$LINENO: result: failed" >&5 6869echo "${ECHO_T}failed" >&6; } 6870else 6871 { echo "$as_me:$LINENO: result: ok" >&5 6872echo "${ECHO_T}ok" >&6; } 6873fi 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896# Check whether --enable-libtool-lock was given. 6897if test "${enable_libtool_lock+set}" = set; then 6898 enableval=$enable_libtool_lock; 6899fi 6900 6901test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6902 6903# Some flags need to be propagated to the compiler or linker for good 6904# libtool support. 6905case $host in 6906ia64-*-hpux*) 6907 # Find out which ABI we are using. 6908 echo 'int i;' > conftest.$ac_ext 6909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6910 (eval $ac_compile) 2>&5 6911 ac_status=$? 6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6913 (exit $ac_status); }; then 6914 case `/usr/bin/file conftest.$ac_objext` in 6915 *ELF-32*) 6916 HPUX_IA64_MODE="32" 6917 ;; 6918 *ELF-64*) 6919 HPUX_IA64_MODE="64" 6920 ;; 6921 esac 6922 fi 6923 rm -rf conftest* 6924 ;; 6925*-*-irix6*) 6926 # Find out which ABI we are using. 6927 echo '#line 6927 "configure"' > conftest.$ac_ext 6928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6929 (eval $ac_compile) 2>&5 6930 ac_status=$? 6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6932 (exit $ac_status); }; then 6933 if test "$lt_cv_prog_gnu_ld" = yes; then 6934 case `/usr/bin/file conftest.$ac_objext` in 6935 *32-bit*) 6936 LD="${LD-ld} -melf32bsmip" 6937 ;; 6938 *N32*) 6939 LD="${LD-ld} -melf32bmipn32" 6940 ;; 6941 *64-bit*) 6942 LD="${LD-ld} -melf64bmip" 6943 ;; 6944 esac 6945 else 6946 case `/usr/bin/file conftest.$ac_objext` in 6947 *32-bit*) 6948 LD="${LD-ld} -32" 6949 ;; 6950 *N32*) 6951 LD="${LD-ld} -n32" 6952 ;; 6953 *64-bit*) 6954 LD="${LD-ld} -64" 6955 ;; 6956 esac 6957 fi 6958 fi 6959 rm -rf conftest* 6960 ;; 6961 6962x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6963s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6964 # Find out which ABI we are using. 6965 echo 'int i;' > conftest.$ac_ext 6966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6967 (eval $ac_compile) 2>&5 6968 ac_status=$? 6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6970 (exit $ac_status); }; then 6971 case `/usr/bin/file conftest.o` in 6972 *32-bit*) 6973 case $host in 6974 x86_64-*kfreebsd*-gnu) 6975 LD="${LD-ld} -m elf_i386_fbsd" 6976 ;; 6977 x86_64-*linux*) 6978 LD="${LD-ld} -m elf_i386" 6979 ;; 6980 ppc64-*linux*|powerpc64-*linux*) 6981 LD="${LD-ld} -m elf32ppclinux" 6982 ;; 6983 s390x-*linux*) 6984 LD="${LD-ld} -m elf_s390" 6985 ;; 6986 sparc64-*linux*) 6987 LD="${LD-ld} -m elf32_sparc" 6988 ;; 6989 esac 6990 ;; 6991 *64-bit*) 6992 case $host in 6993 x86_64-*kfreebsd*-gnu) 6994 LD="${LD-ld} -m elf_x86_64_fbsd" 6995 ;; 6996 x86_64-*linux*) 6997 LD="${LD-ld} -m elf_x86_64" 6998 ;; 6999 ppc*-*linux*|powerpc*-*linux*) 7000 LD="${LD-ld} -m elf64ppc" 7001 ;; 7002 s390*-*linux*|s390*-*tpf*) 7003 LD="${LD-ld} -m elf64_s390" 7004 ;; 7005 sparc*-*linux*) 7006 LD="${LD-ld} -m elf64_sparc" 7007 ;; 7008 esac 7009 ;; 7010 esac 7011 fi 7012 rm -rf conftest* 7013 ;; 7014 7015*-*-sco3.2v5*) 7016 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7017 SAVE_CFLAGS="$CFLAGS" 7018 CFLAGS="$CFLAGS -belf" 7019 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 7020echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 7021if test "${lt_cv_cc_needs_belf+set}" = set; then 7022 echo $ECHO_N "(cached) $ECHO_C" >&6 7023else 7024 ac_ext=c 7025ac_cpp='$CPP $CPPFLAGS' 7026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7028ac_compiler_gnu=$ac_cv_c_compiler_gnu 7029 7030 cat >conftest.$ac_ext <<_ACEOF 7031/* confdefs.h. */ 7032_ACEOF 7033cat confdefs.h >>conftest.$ac_ext 7034cat >>conftest.$ac_ext <<_ACEOF 7035/* end confdefs.h. */ 7036 7037int 7038main () 7039{ 7040 7041 ; 7042 return 0; 7043} 7044_ACEOF 7045rm -f conftest.$ac_objext conftest$ac_exeext 7046if { (ac_try="$ac_link" 7047case "(($ac_try" in 7048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7049 *) ac_try_echo=$ac_try;; 7050esac 7051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7052 (eval "$ac_link") 2>conftest.er1 7053 ac_status=$? 7054 grep -v '^ *+' conftest.er1 >conftest.err 7055 rm -f conftest.er1 7056 cat conftest.err >&5 7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7058 (exit $ac_status); } && { 7059 test -z "$ac_c_werror_flag" || 7060 test ! -s conftest.err 7061 } && test -s conftest$ac_exeext && 7062 $as_test_x conftest$ac_exeext; then 7063 lt_cv_cc_needs_belf=yes 7064else 7065 echo "$as_me: failed program was:" >&5 7066sed 's/^/| /' conftest.$ac_ext >&5 7067 7068 lt_cv_cc_needs_belf=no 7069fi 7070 7071rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7072 conftest$ac_exeext conftest.$ac_ext 7073 ac_ext=c 7074ac_cpp='$CPP $CPPFLAGS' 7075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7077ac_compiler_gnu=$ac_cv_c_compiler_gnu 7078 7079fi 7080{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 7081echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 7082 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7083 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7084 CFLAGS="$SAVE_CFLAGS" 7085 fi 7086 ;; 7087sparc*-*solaris*) 7088 # Find out which ABI we are using. 7089 echo 'int i;' > conftest.$ac_ext 7090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7091 (eval $ac_compile) 2>&5 7092 ac_status=$? 7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7094 (exit $ac_status); }; then 7095 case `/usr/bin/file conftest.o` in 7096 *64-bit*) 7097 case $lt_cv_prog_gnu_ld in 7098 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7099 *) 7100 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7101 LD="${LD-ld} -64" 7102 fi 7103 ;; 7104 esac 7105 ;; 7106 esac 7107 fi 7108 rm -rf conftest* 7109 ;; 7110esac 7111 7112need_locks="$enable_libtool_lock" 7113 7114 7115 case $host_os in 7116 rhapsody* | darwin*) 7117 if test -n "$ac_tool_prefix"; then 7118 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7119set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7120{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7122if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7123 echo $ECHO_N "(cached) $ECHO_C" >&6 7124else 7125 if test -n "$DSYMUTIL"; then 7126 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7127else 7128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7129for as_dir in $PATH 7130do 7131 IFS=$as_save_IFS 7132 test -z "$as_dir" && as_dir=. 7133 for ac_exec_ext in '' $ac_executable_extensions; do 7134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7135 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7137 break 2 7138 fi 7139done 7140done 7141IFS=$as_save_IFS 7142 7143fi 7144fi 7145DSYMUTIL=$ac_cv_prog_DSYMUTIL 7146if test -n "$DSYMUTIL"; then 7147 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7148echo "${ECHO_T}$DSYMUTIL" >&6; } 7149else 7150 { echo "$as_me:$LINENO: result: no" >&5 7151echo "${ECHO_T}no" >&6; } 7152fi 7153 7154 7155fi 7156if test -z "$ac_cv_prog_DSYMUTIL"; then 7157 ac_ct_DSYMUTIL=$DSYMUTIL 7158 # Extract the first word of "dsymutil", so it can be a program name with args. 7159set dummy dsymutil; ac_word=$2 7160{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7162if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7163 echo $ECHO_N "(cached) $ECHO_C" >&6 7164else 7165 if test -n "$ac_ct_DSYMUTIL"; then 7166 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7167else 7168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7169for as_dir in $PATH 7170do 7171 IFS=$as_save_IFS 7172 test -z "$as_dir" && as_dir=. 7173 for ac_exec_ext in '' $ac_executable_extensions; do 7174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7175 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7177 break 2 7178 fi 7179done 7180done 7181IFS=$as_save_IFS 7182 7183fi 7184fi 7185ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7186if test -n "$ac_ct_DSYMUTIL"; then 7187 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7188echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } 7189else 7190 { echo "$as_me:$LINENO: result: no" >&5 7191echo "${ECHO_T}no" >&6; } 7192fi 7193 7194 if test "x$ac_ct_DSYMUTIL" = x; then 7195 DSYMUTIL=":" 7196 else 7197 case $cross_compiling:$ac_tool_warned in 7198yes:) 7199{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7200whose name does not start with the host triplet. If you think this 7201configuration is useful to you, please write to autoconf@gnu.org." >&5 7202echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7203whose name does not start with the host triplet. If you think this 7204configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7205ac_tool_warned=yes ;; 7206esac 7207 DSYMUTIL=$ac_ct_DSYMUTIL 7208 fi 7209else 7210 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7211fi 7212 7213 if test -n "$ac_tool_prefix"; then 7214 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7215set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7216{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7218if test "${ac_cv_prog_NMEDIT+set}" = set; then 7219 echo $ECHO_N "(cached) $ECHO_C" >&6 7220else 7221 if test -n "$NMEDIT"; then 7222 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7223else 7224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7225for as_dir in $PATH 7226do 7227 IFS=$as_save_IFS 7228 test -z "$as_dir" && as_dir=. 7229 for ac_exec_ext in '' $ac_executable_extensions; do 7230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7231 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7233 break 2 7234 fi 7235done 7236done 7237IFS=$as_save_IFS 7238 7239fi 7240fi 7241NMEDIT=$ac_cv_prog_NMEDIT 7242if test -n "$NMEDIT"; then 7243 { echo "$as_me:$LINENO: result: $NMEDIT" >&5 7244echo "${ECHO_T}$NMEDIT" >&6; } 7245else 7246 { echo "$as_me:$LINENO: result: no" >&5 7247echo "${ECHO_T}no" >&6; } 7248fi 7249 7250 7251fi 7252if test -z "$ac_cv_prog_NMEDIT"; then 7253 ac_ct_NMEDIT=$NMEDIT 7254 # Extract the first word of "nmedit", so it can be a program name with args. 7255set dummy nmedit; ac_word=$2 7256{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7258if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7259 echo $ECHO_N "(cached) $ECHO_C" >&6 7260else 7261 if test -n "$ac_ct_NMEDIT"; then 7262 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7263else 7264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7265for as_dir in $PATH 7266do 7267 IFS=$as_save_IFS 7268 test -z "$as_dir" && as_dir=. 7269 for ac_exec_ext in '' $ac_executable_extensions; do 7270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7271 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7273 break 2 7274 fi 7275done 7276done 7277IFS=$as_save_IFS 7278 7279fi 7280fi 7281ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7282if test -n "$ac_ct_NMEDIT"; then 7283 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7284echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } 7285else 7286 { echo "$as_me:$LINENO: result: no" >&5 7287echo "${ECHO_T}no" >&6; } 7288fi 7289 7290 if test "x$ac_ct_NMEDIT" = x; then 7291 NMEDIT=":" 7292 else 7293 case $cross_compiling:$ac_tool_warned in 7294yes:) 7295{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7296whose name does not start with the host triplet. If you think this 7297configuration is useful to you, please write to autoconf@gnu.org." >&5 7298echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7299whose name does not start with the host triplet. If you think this 7300configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7301ac_tool_warned=yes ;; 7302esac 7303 NMEDIT=$ac_ct_NMEDIT 7304 fi 7305else 7306 NMEDIT="$ac_cv_prog_NMEDIT" 7307fi 7308 7309 if test -n "$ac_tool_prefix"; then 7310 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7311set dummy ${ac_tool_prefix}lipo; ac_word=$2 7312{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7314if test "${ac_cv_prog_LIPO+set}" = set; then 7315 echo $ECHO_N "(cached) $ECHO_C" >&6 7316else 7317 if test -n "$LIPO"; then 7318 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7319else 7320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7321for as_dir in $PATH 7322do 7323 IFS=$as_save_IFS 7324 test -z "$as_dir" && as_dir=. 7325 for ac_exec_ext in '' $ac_executable_extensions; do 7326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7327 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7329 break 2 7330 fi 7331done 7332done 7333IFS=$as_save_IFS 7334 7335fi 7336fi 7337LIPO=$ac_cv_prog_LIPO 7338if test -n "$LIPO"; then 7339 { echo "$as_me:$LINENO: result: $LIPO" >&5 7340echo "${ECHO_T}$LIPO" >&6; } 7341else 7342 { echo "$as_me:$LINENO: result: no" >&5 7343echo "${ECHO_T}no" >&6; } 7344fi 7345 7346 7347fi 7348if test -z "$ac_cv_prog_LIPO"; then 7349 ac_ct_LIPO=$LIPO 7350 # Extract the first word of "lipo", so it can be a program name with args. 7351set dummy lipo; ac_word=$2 7352{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7354if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 7355 echo $ECHO_N "(cached) $ECHO_C" >&6 7356else 7357 if test -n "$ac_ct_LIPO"; then 7358 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7359else 7360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7361for as_dir in $PATH 7362do 7363 IFS=$as_save_IFS 7364 test -z "$as_dir" && as_dir=. 7365 for ac_exec_ext in '' $ac_executable_extensions; do 7366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7367 ac_cv_prog_ac_ct_LIPO="lipo" 7368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7369 break 2 7370 fi 7371done 7372done 7373IFS=$as_save_IFS 7374 7375fi 7376fi 7377ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7378if test -n "$ac_ct_LIPO"; then 7379 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 7380echo "${ECHO_T}$ac_ct_LIPO" >&6; } 7381else 7382 { echo "$as_me:$LINENO: result: no" >&5 7383echo "${ECHO_T}no" >&6; } 7384fi 7385 7386 if test "x$ac_ct_LIPO" = x; then 7387 LIPO=":" 7388 else 7389 case $cross_compiling:$ac_tool_warned in 7390yes:) 7391{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7392whose name does not start with the host triplet. If you think this 7393configuration is useful to you, please write to autoconf@gnu.org." >&5 7394echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7395whose name does not start with the host triplet. If you think this 7396configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7397ac_tool_warned=yes ;; 7398esac 7399 LIPO=$ac_ct_LIPO 7400 fi 7401else 7402 LIPO="$ac_cv_prog_LIPO" 7403fi 7404 7405 if test -n "$ac_tool_prefix"; then 7406 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7407set dummy ${ac_tool_prefix}otool; ac_word=$2 7408{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7410if test "${ac_cv_prog_OTOOL+set}" = set; then 7411 echo $ECHO_N "(cached) $ECHO_C" >&6 7412else 7413 if test -n "$OTOOL"; then 7414 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7415else 7416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7417for as_dir in $PATH 7418do 7419 IFS=$as_save_IFS 7420 test -z "$as_dir" && as_dir=. 7421 for ac_exec_ext in '' $ac_executable_extensions; do 7422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7423 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7425 break 2 7426 fi 7427done 7428done 7429IFS=$as_save_IFS 7430 7431fi 7432fi 7433OTOOL=$ac_cv_prog_OTOOL 7434if test -n "$OTOOL"; then 7435 { echo "$as_me:$LINENO: result: $OTOOL" >&5 7436echo "${ECHO_T}$OTOOL" >&6; } 7437else 7438 { echo "$as_me:$LINENO: result: no" >&5 7439echo "${ECHO_T}no" >&6; } 7440fi 7441 7442 7443fi 7444if test -z "$ac_cv_prog_OTOOL"; then 7445 ac_ct_OTOOL=$OTOOL 7446 # Extract the first word of "otool", so it can be a program name with args. 7447set dummy otool; ac_word=$2 7448{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7450if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 7451 echo $ECHO_N "(cached) $ECHO_C" >&6 7452else 7453 if test -n "$ac_ct_OTOOL"; then 7454 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7455else 7456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7457for as_dir in $PATH 7458do 7459 IFS=$as_save_IFS 7460 test -z "$as_dir" && as_dir=. 7461 for ac_exec_ext in '' $ac_executable_extensions; do 7462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7463 ac_cv_prog_ac_ct_OTOOL="otool" 7464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7465 break 2 7466 fi 7467done 7468done 7469IFS=$as_save_IFS 7470 7471fi 7472fi 7473ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7474if test -n "$ac_ct_OTOOL"; then 7475 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 7476echo "${ECHO_T}$ac_ct_OTOOL" >&6; } 7477else 7478 { echo "$as_me:$LINENO: result: no" >&5 7479echo "${ECHO_T}no" >&6; } 7480fi 7481 7482 if test "x$ac_ct_OTOOL" = x; then 7483 OTOOL=":" 7484 else 7485 case $cross_compiling:$ac_tool_warned in 7486yes:) 7487{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7488whose name does not start with the host triplet. If you think this 7489configuration is useful to you, please write to autoconf@gnu.org." >&5 7490echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7491whose name does not start with the host triplet. If you think this 7492configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7493ac_tool_warned=yes ;; 7494esac 7495 OTOOL=$ac_ct_OTOOL 7496 fi 7497else 7498 OTOOL="$ac_cv_prog_OTOOL" 7499fi 7500 7501 if test -n "$ac_tool_prefix"; then 7502 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7503set dummy ${ac_tool_prefix}otool64; ac_word=$2 7504{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7506if test "${ac_cv_prog_OTOOL64+set}" = set; then 7507 echo $ECHO_N "(cached) $ECHO_C" >&6 7508else 7509 if test -n "$OTOOL64"; then 7510 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7511else 7512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7513for as_dir in $PATH 7514do 7515 IFS=$as_save_IFS 7516 test -z "$as_dir" && as_dir=. 7517 for ac_exec_ext in '' $ac_executable_extensions; do 7518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7519 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7521 break 2 7522 fi 7523done 7524done 7525IFS=$as_save_IFS 7526 7527fi 7528fi 7529OTOOL64=$ac_cv_prog_OTOOL64 7530if test -n "$OTOOL64"; then 7531 { echo "$as_me:$LINENO: result: $OTOOL64" >&5 7532echo "${ECHO_T}$OTOOL64" >&6; } 7533else 7534 { echo "$as_me:$LINENO: result: no" >&5 7535echo "${ECHO_T}no" >&6; } 7536fi 7537 7538 7539fi 7540if test -z "$ac_cv_prog_OTOOL64"; then 7541 ac_ct_OTOOL64=$OTOOL64 7542 # Extract the first word of "otool64", so it can be a program name with args. 7543set dummy otool64; ac_word=$2 7544{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7546if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 7547 echo $ECHO_N "(cached) $ECHO_C" >&6 7548else 7549 if test -n "$ac_ct_OTOOL64"; then 7550 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7551else 7552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7553for as_dir in $PATH 7554do 7555 IFS=$as_save_IFS 7556 test -z "$as_dir" && as_dir=. 7557 for ac_exec_ext in '' $ac_executable_extensions; do 7558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7559 ac_cv_prog_ac_ct_OTOOL64="otool64" 7560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7561 break 2 7562 fi 7563done 7564done 7565IFS=$as_save_IFS 7566 7567fi 7568fi 7569ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7570if test -n "$ac_ct_OTOOL64"; then 7571 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 7572echo "${ECHO_T}$ac_ct_OTOOL64" >&6; } 7573else 7574 { echo "$as_me:$LINENO: result: no" >&5 7575echo "${ECHO_T}no" >&6; } 7576fi 7577 7578 if test "x$ac_ct_OTOOL64" = x; then 7579 OTOOL64=":" 7580 else 7581 case $cross_compiling:$ac_tool_warned in 7582yes:) 7583{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7584whose name does not start with the host triplet. If you think this 7585configuration is useful to you, please write to autoconf@gnu.org." >&5 7586echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7587whose name does not start with the host triplet. If you think this 7588configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7589ac_tool_warned=yes ;; 7590esac 7591 OTOOL64=$ac_ct_OTOOL64 7592 fi 7593else 7594 OTOOL64="$ac_cv_prog_OTOOL64" 7595fi 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7624echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } 7625if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7626 echo $ECHO_N "(cached) $ECHO_C" >&6 7627else 7628 lt_cv_apple_cc_single_mod=no 7629 if test -z "${LT_MULTI_MODULE}"; then 7630 # By default we will add the -single_module flag. You can override 7631 # by either setting the environment variable LT_MULTI_MODULE 7632 # non-empty at configure time, or by adding -multi_module to the 7633 # link flags. 7634 rm -rf libconftest.dylib* 7635 echo "int foo(void){return 1;}" > conftest.c 7636 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7637-dynamiclib -Wl,-single_module conftest.c" >&5 7638 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7639 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7640 _lt_result=$? 7641 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7642 lt_cv_apple_cc_single_mod=yes 7643 else 7644 cat conftest.err >&5 7645 fi 7646 rm -rf libconftest.dylib* 7647 rm -f conftest.* 7648 fi 7649fi 7650{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7651echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } 7652 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7653echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } 7654if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7655 echo $ECHO_N "(cached) $ECHO_C" >&6 7656else 7657 lt_cv_ld_exported_symbols_list=no 7658 save_LDFLAGS=$LDFLAGS 7659 echo "_main" > conftest.sym 7660 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7661 cat >conftest.$ac_ext <<_ACEOF 7662/* confdefs.h. */ 7663_ACEOF 7664cat confdefs.h >>conftest.$ac_ext 7665cat >>conftest.$ac_ext <<_ACEOF 7666/* end confdefs.h. */ 7667 7668int 7669main () 7670{ 7671 7672 ; 7673 return 0; 7674} 7675_ACEOF 7676rm -f conftest.$ac_objext conftest$ac_exeext 7677if { (ac_try="$ac_link" 7678case "(($ac_try" in 7679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7680 *) ac_try_echo=$ac_try;; 7681esac 7682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7683 (eval "$ac_link") 2>conftest.er1 7684 ac_status=$? 7685 grep -v '^ *+' conftest.er1 >conftest.err 7686 rm -f conftest.er1 7687 cat conftest.err >&5 7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7689 (exit $ac_status); } && { 7690 test -z "$ac_c_werror_flag" || 7691 test ! -s conftest.err 7692 } && test -s conftest$ac_exeext && 7693 $as_test_x conftest$ac_exeext; then 7694 lt_cv_ld_exported_symbols_list=yes 7695else 7696 echo "$as_me: failed program was:" >&5 7697sed 's/^/| /' conftest.$ac_ext >&5 7698 7699 lt_cv_ld_exported_symbols_list=no 7700fi 7701 7702rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7703 conftest$ac_exeext conftest.$ac_ext 7704 LDFLAGS="$save_LDFLAGS" 7705 7706fi 7707{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7708echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } 7709 case $host_os in 7710 rhapsody* | darwin1.[012]) 7711 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7712 darwin1.*) 7713 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7714 darwin*) # darwin 5.x on 7715 # if running on 10.5 or later, the deployment target defaults 7716 # to the OS version, if on x86, and 10.4, the deployment 7717 # target defaults to 10.4. Don't you love it? 7718 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7719 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7720 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7721 10.[012]*) 7722 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7723 10.*) 7724 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7725 esac 7726 ;; 7727 esac 7728 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7729 _lt_dar_single_mod='$single_module' 7730 fi 7731 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7732 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7733 else 7734 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7735 fi 7736 if test "$DSYMUTIL" != ":"; then 7737 _lt_dsymutil='~$DSYMUTIL $lib || :' 7738 else 7739 _lt_dsymutil= 7740 fi 7741 ;; 7742 esac 7743 7744 7745for ac_header in dlfcn.h 7746do 7747as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7748{ echo "$as_me:$LINENO: checking for $ac_header" >&5 7749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7750if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7751 echo $ECHO_N "(cached) $ECHO_C" >&6 7752else 7753 cat >conftest.$ac_ext <<_ACEOF 7754/* confdefs.h. */ 7755_ACEOF 7756cat confdefs.h >>conftest.$ac_ext 7757cat >>conftest.$ac_ext <<_ACEOF 7758/* end confdefs.h. */ 7759$ac_includes_default 7760 7761#include <$ac_header> 7762_ACEOF 7763rm -f conftest.$ac_objext 7764if { (ac_try="$ac_compile" 7765case "(($ac_try" in 7766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7767 *) ac_try_echo=$ac_try;; 7768esac 7769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7770 (eval "$ac_compile") 2>conftest.er1 7771 ac_status=$? 7772 grep -v '^ *+' conftest.er1 >conftest.err 7773 rm -f conftest.er1 7774 cat conftest.err >&5 7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7776 (exit $ac_status); } && { 7777 test -z "$ac_c_werror_flag" || 7778 test ! -s conftest.err 7779 } && test -s conftest.$ac_objext; then 7780 eval "$as_ac_Header=yes" 7781else 7782 echo "$as_me: failed program was:" >&5 7783sed 's/^/| /' conftest.$ac_ext >&5 7784 7785 eval "$as_ac_Header=no" 7786fi 7787 7788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7789fi 7790ac_res=`eval echo '${'$as_ac_Header'}'` 7791 { echo "$as_me:$LINENO: result: $ac_res" >&5 7792echo "${ECHO_T}$ac_res" >&6; } 7793if test `eval echo '${'$as_ac_Header'}'` = yes; then 7794 cat >>confdefs.h <<_ACEOF 7795#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7796_ACEOF 7797 7798fi 7799 7800done 7801 7802 7803 7804# Set options 7805 7806 7807 7808 enable_dlopen=no 7809 7810 7811 enable_win32_dll=no 7812 7813 7814 # Check whether --enable-shared was given. 7815if test "${enable_shared+set}" = set; then 7816 enableval=$enable_shared; p=${PACKAGE-default} 7817 case $enableval in 7818 yes) enable_shared=yes ;; 7819 no) enable_shared=no ;; 7820 *) 7821 enable_shared=no 7822 # Look at the argument we got. We use all the common list separators. 7823 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7824 for pkg in $enableval; do 7825 IFS="$lt_save_ifs" 7826 if test "X$pkg" = "X$p"; then 7827 enable_shared=yes 7828 fi 7829 done 7830 IFS="$lt_save_ifs" 7831 ;; 7832 esac 7833else 7834 enable_shared=yes 7835fi 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847# Check whether --with-pic was given. 7848if test "${with_pic+set}" = set; then 7849 withval=$with_pic; pic_mode="$withval" 7850else 7851 pic_mode=default 7852fi 7853 7854 7855test -z "$pic_mode" && pic_mode=default 7856 7857 7858 7859 7860 7861 7862 7863 # Check whether --enable-fast-install was given. 7864if test "${enable_fast_install+set}" = set; then 7865 enableval=$enable_fast_install; p=${PACKAGE-default} 7866 case $enableval in 7867 yes) enable_fast_install=yes ;; 7868 no) enable_fast_install=no ;; 7869 *) 7870 enable_fast_install=no 7871 # Look at the argument we got. We use all the common list separators. 7872 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7873 for pkg in $enableval; do 7874 IFS="$lt_save_ifs" 7875 if test "X$pkg" = "X$p"; then 7876 enable_fast_install=yes 7877 fi 7878 done 7879 IFS="$lt_save_ifs" 7880 ;; 7881 esac 7882else 7883 enable_fast_install=yes 7884fi 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896# This can be used to rebuild libtool when needed 7897LIBTOOL_DEPS="$ltmain" 7898 7899# Always use our own libtool. 7900LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926test -z "$LN_S" && LN_S="ln -s" 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941if test -n "${ZSH_VERSION+set}" ; then 7942 setopt NO_GLOB_SUBST 7943fi 7944 7945{ echo "$as_me:$LINENO: checking for objdir" >&5 7946echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 7947if test "${lt_cv_objdir+set}" = set; then 7948 echo $ECHO_N "(cached) $ECHO_C" >&6 7949else 7950 rm -f .libs 2>/dev/null 7951mkdir .libs 2>/dev/null 7952if test -d .libs; then 7953 lt_cv_objdir=.libs 7954else 7955 # MS-DOS does not allow filenames that begin with a dot. 7956 lt_cv_objdir=_libs 7957fi 7958rmdir .libs 2>/dev/null 7959fi 7960{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7961echo "${ECHO_T}$lt_cv_objdir" >&6; } 7962objdir=$lt_cv_objdir 7963 7964 7965 7966 7967 7968cat >>confdefs.h <<_ACEOF 7969#define LT_OBJDIR "$lt_cv_objdir/" 7970_ACEOF 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988case $host_os in 7989aix3*) 7990 # AIX sometimes has problems with the GCC collect2 program. For some 7991 # reason, if we set the COLLECT_NAMES environment variable, the problems 7992 # vanish in a puff of smoke. 7993 if test "X${COLLECT_NAMES+set}" != Xset; then 7994 COLLECT_NAMES= 7995 export COLLECT_NAMES 7996 fi 7997 ;; 7998esac 7999 8000# Sed substitution that helps us do robust quoting. It backslashifies 8001# metacharacters that are still active within double-quoted strings. 8002sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8003 8004# Same as above, but do not quote variable references. 8005double_quote_subst='s/\(["`\\]\)/\\\1/g' 8006 8007# Sed substitution to delay expansion of an escaped shell variable in a 8008# double_quote_subst'ed string. 8009delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8010 8011# Sed substitution to delay expansion of an escaped single quote. 8012delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8013 8014# Sed substitution to avoid accidental globbing in evaled expressions 8015no_glob_subst='s/\*/\\\*/g' 8016 8017# Global variables: 8018ofile=libtool 8019can_build_shared=yes 8020 8021# All known linkers require a `.a' archive for static linking (except MSVC, 8022# which needs '.lib'). 8023libext=a 8024 8025with_gnu_ld="$lt_cv_prog_gnu_ld" 8026 8027old_CC="$CC" 8028old_CFLAGS="$CFLAGS" 8029 8030# Set sane defaults for various variables 8031test -z "$CC" && CC=cc 8032test -z "$LTCC" && LTCC=$CC 8033test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8034test -z "$LD" && LD=ld 8035test -z "$ac_objext" && ac_objext=o 8036 8037for cc_temp in $compiler""; do 8038 case $cc_temp in 8039 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8040 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8041 \-*) ;; 8042 *) break;; 8043 esac 8044done 8045cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8046 8047 8048# Only perform the check for file, if the check method requires it 8049test -z "$MAGIC_CMD" && MAGIC_CMD=file 8050case $deplibs_check_method in 8051file_magic*) 8052 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8053 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8054echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 8055if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8056 echo $ECHO_N "(cached) $ECHO_C" >&6 8057else 8058 case $MAGIC_CMD in 8059[\\/*] | ?:[\\/]*) 8060 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8061 ;; 8062*) 8063 lt_save_MAGIC_CMD="$MAGIC_CMD" 8064 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8065 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8066 for ac_dir in $ac_dummy; do 8067 IFS="$lt_save_ifs" 8068 test -z "$ac_dir" && ac_dir=. 8069 if test -f $ac_dir/${ac_tool_prefix}file; then 8070 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8071 if test -n "$file_magic_test_file"; then 8072 case $deplibs_check_method in 8073 "file_magic "*) 8074 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8075 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8076 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8077 $EGREP "$file_magic_regex" > /dev/null; then 8078 : 8079 else 8080 cat <<_LT_EOF 1>&2 8081 8082*** Warning: the command libtool uses to detect shared libraries, 8083*** $file_magic_cmd, produces output that libtool cannot recognize. 8084*** The result is that libtool may fail to recognize shared libraries 8085*** as such. This will affect the creation of libtool libraries that 8086*** depend on shared libraries, but programs linked with such libtool 8087*** libraries will work regardless of this problem. Nevertheless, you 8088*** may want to report the problem to your system manager and/or to 8089*** bug-libtool@gnu.org 8090 8091_LT_EOF 8092 fi ;; 8093 esac 8094 fi 8095 break 8096 fi 8097 done 8098 IFS="$lt_save_ifs" 8099 MAGIC_CMD="$lt_save_MAGIC_CMD" 8100 ;; 8101esac 8102fi 8103 8104MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8105if test -n "$MAGIC_CMD"; then 8106 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8107echo "${ECHO_T}$MAGIC_CMD" >&6; } 8108else 8109 { echo "$as_me:$LINENO: result: no" >&5 8110echo "${ECHO_T}no" >&6; } 8111fi 8112 8113 8114 8115 8116 8117if test -z "$lt_cv_path_MAGIC_CMD"; then 8118 if test -n "$ac_tool_prefix"; then 8119 { echo "$as_me:$LINENO: checking for file" >&5 8120echo $ECHO_N "checking for file... $ECHO_C" >&6; } 8121if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8122 echo $ECHO_N "(cached) $ECHO_C" >&6 8123else 8124 case $MAGIC_CMD in 8125[\\/*] | ?:[\\/]*) 8126 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8127 ;; 8128*) 8129 lt_save_MAGIC_CMD="$MAGIC_CMD" 8130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8131 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8132 for ac_dir in $ac_dummy; do 8133 IFS="$lt_save_ifs" 8134 test -z "$ac_dir" && ac_dir=. 8135 if test -f $ac_dir/file; then 8136 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8137 if test -n "$file_magic_test_file"; then 8138 case $deplibs_check_method in 8139 "file_magic "*) 8140 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8141 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8142 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8143 $EGREP "$file_magic_regex" > /dev/null; then 8144 : 8145 else 8146 cat <<_LT_EOF 1>&2 8147 8148*** Warning: the command libtool uses to detect shared libraries, 8149*** $file_magic_cmd, produces output that libtool cannot recognize. 8150*** The result is that libtool may fail to recognize shared libraries 8151*** as such. This will affect the creation of libtool libraries that 8152*** depend on shared libraries, but programs linked with such libtool 8153*** libraries will work regardless of this problem. Nevertheless, you 8154*** may want to report the problem to your system manager and/or to 8155*** bug-libtool@gnu.org 8156 8157_LT_EOF 8158 fi ;; 8159 esac 8160 fi 8161 break 8162 fi 8163 done 8164 IFS="$lt_save_ifs" 8165 MAGIC_CMD="$lt_save_MAGIC_CMD" 8166 ;; 8167esac 8168fi 8169 8170MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8171if test -n "$MAGIC_CMD"; then 8172 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8173echo "${ECHO_T}$MAGIC_CMD" >&6; } 8174else 8175 { echo "$as_me:$LINENO: result: no" >&5 8176echo "${ECHO_T}no" >&6; } 8177fi 8178 8179 8180 else 8181 MAGIC_CMD=: 8182 fi 8183fi 8184 8185 fi 8186 ;; 8187esac 8188 8189# Use C for the default configuration in the libtool script 8190 8191lt_save_CC="$CC" 8192ac_ext=c 8193ac_cpp='$CPP $CPPFLAGS' 8194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8196ac_compiler_gnu=$ac_cv_c_compiler_gnu 8197 8198 8199# Source file extension for C test sources. 8200ac_ext=c 8201 8202# Object file extension for compiled C test sources. 8203objext=o 8204objext=$objext 8205 8206# Code to be used in simple compile tests 8207lt_simple_compile_test_code="int some_variable = 0;" 8208 8209# Code to be used in simple link tests 8210lt_simple_link_test_code='int main(){return(0);}' 8211 8212 8213 8214 8215 8216 8217 8218# If no C compiler was specified, use CC. 8219LTCC=${LTCC-"$CC"} 8220 8221# If no C compiler flags were specified, use CFLAGS. 8222LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8223 8224# Allow CC to be a program name with arguments. 8225compiler=$CC 8226 8227# Save the default compiler, since it gets overwritten when the other 8228# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8229compiler_DEFAULT=$CC 8230 8231# save warnings/boilerplate of simple test code 8232ac_outfile=conftest.$ac_objext 8233echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8234eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8235_lt_compiler_boilerplate=`cat conftest.err` 8236$RM conftest* 8237 8238ac_outfile=conftest.$ac_objext 8239echo "$lt_simple_link_test_code" >conftest.$ac_ext 8240eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8241_lt_linker_boilerplate=`cat conftest.err` 8242$RM -r conftest* 8243 8244 8245if test -n "$compiler"; then 8246 8247lt_prog_compiler_no_builtin_flag= 8248 8249if test "$GCC" = yes; then 8250 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8251 8252 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8253echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 8254if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8255 echo $ECHO_N "(cached) $ECHO_C" >&6 8256else 8257 lt_cv_prog_compiler_rtti_exceptions=no 8258 ac_outfile=conftest.$ac_objext 8259 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8260 lt_compiler_flag="-fno-rtti -fno-exceptions" 8261 # Insert the option either (1) after the last *FLAGS variable, or 8262 # (2) before a word containing "conftest.", or (3) at the end. 8263 # Note that $ac_compile itself does not contain backslashes and begins 8264 # with a dollar sign (not a hyphen), so the echo should work correctly. 8265 # The option is referenced via a variable to avoid confusing sed. 8266 lt_compile=`echo "$ac_compile" | $SED \ 8267 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8269 -e 's:$: $lt_compiler_flag:'` 8270 (eval echo "\"\$as_me:8270: $lt_compile\"" >&5) 8271 (eval "$lt_compile" 2>conftest.err) 8272 ac_status=$? 8273 cat conftest.err >&5 8274 echo "$as_me:8274: \$? = $ac_status" >&5 8275 if (exit $ac_status) && test -s "$ac_outfile"; then 8276 # The compiler can only warn and ignore the option if not recognized 8277 # So say no if there are warnings other than the usual output. 8278 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8279 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8280 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8281 lt_cv_prog_compiler_rtti_exceptions=yes 8282 fi 8283 fi 8284 $RM conftest* 8285 8286fi 8287{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8288echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8289 8290if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8291 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8292else 8293 : 8294fi 8295 8296fi 8297 8298 8299 8300 8301 8302 8303 lt_prog_compiler_wl= 8304lt_prog_compiler_pic= 8305lt_prog_compiler_static= 8306 8307{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8308echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 8309 8310 if test "$GCC" = yes; then 8311 lt_prog_compiler_wl='-Wl,' 8312 lt_prog_compiler_static='-static' 8313 8314 case $host_os in 8315 aix*) 8316 # All AIX code is PIC. 8317 if test "$host_cpu" = ia64; then 8318 # AIX 5 now supports IA64 processor 8319 lt_prog_compiler_static='-Bstatic' 8320 fi 8321 ;; 8322 8323 amigaos*) 8324 case $host_cpu in 8325 powerpc) 8326 # see comment about AmigaOS4 .so support 8327 lt_prog_compiler_pic='-fPIC' 8328 ;; 8329 m68k) 8330 # FIXME: we need at least 68020 code to build shared libraries, but 8331 # adding the `-m68020' flag to GCC prevents building anything better, 8332 # like `-m68040'. 8333 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8334 ;; 8335 esac 8336 ;; 8337 8338 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8339 # PIC is the default for these OSes. 8340 ;; 8341 8342 mingw* | cygwin* | pw32* | os2*) 8343 # This hack is so that the source file can tell whether it is being 8344 # built for inclusion in a dll (and should export symbols for example). 8345 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8346 # (--disable-auto-import) libraries 8347 lt_prog_compiler_pic='-DDLL_EXPORT' 8348 ;; 8349 8350 darwin* | rhapsody*) 8351 # PIC is the default on this platform 8352 # Common symbols not allowed in MH_DYLIB files 8353 lt_prog_compiler_pic='-fno-common' 8354 ;; 8355 8356 hpux*) 8357 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8358 # not for PA HP-UX. 8359 case $host_cpu in 8360 hppa*64*|ia64*) 8361 # +Z the default 8362 ;; 8363 *) 8364 lt_prog_compiler_pic='-fPIC' 8365 ;; 8366 esac 8367 ;; 8368 8369 interix[3-9]*) 8370 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8371 # Instead, we relocate shared libraries at runtime. 8372 ;; 8373 8374 msdosdjgpp*) 8375 # Just because we use GCC doesn't mean we suddenly get shared libraries 8376 # on systems that don't support them. 8377 lt_prog_compiler_can_build_shared=no 8378 enable_shared=no 8379 ;; 8380 8381 *nto* | *qnx*) 8382 # QNX uses GNU C++, but need to define -shared option too, otherwise 8383 # it will coredump. 8384 lt_prog_compiler_pic='-fPIC -shared' 8385 ;; 8386 8387 sysv4*MP*) 8388 if test -d /usr/nec; then 8389 lt_prog_compiler_pic=-Kconform_pic 8390 fi 8391 ;; 8392 8393 *) 8394 lt_prog_compiler_pic='-fPIC' 8395 ;; 8396 esac 8397 else 8398 # PORTME Check for flag to pass linker flags through the system compiler. 8399 case $host_os in 8400 aix*) 8401 lt_prog_compiler_wl='-Wl,' 8402 if test "$host_cpu" = ia64; then 8403 # AIX 5 now supports IA64 processor 8404 lt_prog_compiler_static='-Bstatic' 8405 else 8406 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8407 fi 8408 ;; 8409 8410 mingw* | cygwin* | pw32* | os2*) 8411 # This hack is so that the source file can tell whether it is being 8412 # built for inclusion in a dll (and should export symbols for example). 8413 lt_prog_compiler_pic='-DDLL_EXPORT' 8414 ;; 8415 8416 hpux9* | hpux10* | hpux11*) 8417 lt_prog_compiler_wl='-Wl,' 8418 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8419 # not for PA HP-UX. 8420 case $host_cpu in 8421 hppa*64*|ia64*) 8422 # +Z the default 8423 ;; 8424 *) 8425 lt_prog_compiler_pic='+Z' 8426 ;; 8427 esac 8428 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8429 lt_prog_compiler_static='${wl}-a ${wl}archive' 8430 ;; 8431 8432 irix5* | irix6* | nonstopux*) 8433 lt_prog_compiler_wl='-Wl,' 8434 # PIC (with -KPIC) is the default. 8435 lt_prog_compiler_static='-non_shared' 8436 ;; 8437 8438 linux* | k*bsd*-gnu) 8439 case $cc_basename in 8440 icc* | ecc* | ifort*) 8441 lt_prog_compiler_wl='-Wl,' 8442 lt_prog_compiler_pic='-KPIC' 8443 lt_prog_compiler_static='-static' 8444 ;; 8445 pgcc* | pgf77* | pgf90* | pgf95*) 8446 # Portland Group compilers (*not* the Pentium gcc compiler, 8447 # which looks to be a dead project) 8448 lt_prog_compiler_wl='-Wl,' 8449 lt_prog_compiler_pic='-fpic' 8450 lt_prog_compiler_static='-Bstatic' 8451 ;; 8452 ccc*) 8453 lt_prog_compiler_wl='-Wl,' 8454 # All Alpha code is PIC. 8455 lt_prog_compiler_static='-non_shared' 8456 ;; 8457 xl*) 8458 # IBM XL C 8.0/Fortran 10.1 on PPC 8459 lt_prog_compiler_wl='-Wl,' 8460 lt_prog_compiler_pic='-qpic' 8461 lt_prog_compiler_static='-qstaticlink' 8462 ;; 8463 *) 8464 case `$CC -V 2>&1 | sed 5q` in 8465 *Sun\ C*) 8466 # Sun C 5.9 8467 lt_prog_compiler_pic='-KPIC' 8468 lt_prog_compiler_static='-Bstatic' 8469 lt_prog_compiler_wl='-Wl,' 8470 ;; 8471 *Sun\ F*) 8472 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8473 lt_prog_compiler_pic='-KPIC' 8474 lt_prog_compiler_static='-Bstatic' 8475 lt_prog_compiler_wl='' 8476 ;; 8477 esac 8478 ;; 8479 esac 8480 ;; 8481 8482 newsos6) 8483 lt_prog_compiler_pic='-KPIC' 8484 lt_prog_compiler_static='-Bstatic' 8485 ;; 8486 8487 *nto* | *qnx*) 8488 # QNX uses GNU C++, but need to define -shared option too, otherwise 8489 # it will coredump. 8490 lt_prog_compiler_pic='-fPIC -shared' 8491 ;; 8492 8493 osf3* | osf4* | osf5*) 8494 lt_prog_compiler_wl='-Wl,' 8495 # All OSF/1 code is PIC. 8496 lt_prog_compiler_static='-non_shared' 8497 ;; 8498 8499 rdos*) 8500 lt_prog_compiler_static='-non_shared' 8501 ;; 8502 8503 solaris*) 8504 lt_prog_compiler_pic='-KPIC' 8505 lt_prog_compiler_static='-Bstatic' 8506 case $cc_basename in 8507 f77* | f90* | f95*) 8508 lt_prog_compiler_wl='-Qoption ld ';; 8509 *) 8510 lt_prog_compiler_wl='-Wl,';; 8511 esac 8512 ;; 8513 8514 sunos4*) 8515 lt_prog_compiler_wl='-Qoption ld ' 8516 lt_prog_compiler_pic='-PIC' 8517 lt_prog_compiler_static='-Bstatic' 8518 ;; 8519 8520 sysv4 | sysv4.2uw2* | sysv4.3*) 8521 lt_prog_compiler_wl='-Wl,' 8522 lt_prog_compiler_pic='-KPIC' 8523 lt_prog_compiler_static='-Bstatic' 8524 ;; 8525 8526 sysv4*MP*) 8527 if test -d /usr/nec ;then 8528 lt_prog_compiler_pic='-Kconform_pic' 8529 lt_prog_compiler_static='-Bstatic' 8530 fi 8531 ;; 8532 8533 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8534 lt_prog_compiler_wl='-Wl,' 8535 lt_prog_compiler_pic='-KPIC' 8536 lt_prog_compiler_static='-Bstatic' 8537 ;; 8538 8539 unicos*) 8540 lt_prog_compiler_wl='-Wl,' 8541 lt_prog_compiler_can_build_shared=no 8542 ;; 8543 8544 uts4*) 8545 lt_prog_compiler_pic='-pic' 8546 lt_prog_compiler_static='-Bstatic' 8547 ;; 8548 8549 *) 8550 lt_prog_compiler_can_build_shared=no 8551 ;; 8552 esac 8553 fi 8554 8555case $host_os in 8556 # For platforms which do not support PIC, -DPIC is meaningless: 8557 *djgpp*) 8558 lt_prog_compiler_pic= 8559 ;; 8560 *) 8561 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8562 ;; 8563esac 8564{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8565echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 8566 8567 8568 8569 8570 8571 8572# 8573# Check to make sure the PIC flag actually works. 8574# 8575if test -n "$lt_prog_compiler_pic"; then 8576 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8577echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 8578if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 8579 echo $ECHO_N "(cached) $ECHO_C" >&6 8580else 8581 lt_cv_prog_compiler_pic_works=no 8582 ac_outfile=conftest.$ac_objext 8583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8584 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8585 # Insert the option either (1) after the last *FLAGS variable, or 8586 # (2) before a word containing "conftest.", or (3) at the end. 8587 # Note that $ac_compile itself does not contain backslashes and begins 8588 # with a dollar sign (not a hyphen), so the echo should work correctly. 8589 # The option is referenced via a variable to avoid confusing sed. 8590 lt_compile=`echo "$ac_compile" | $SED \ 8591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8593 -e 's:$: $lt_compiler_flag:'` 8594 (eval echo "\"\$as_me:8594: $lt_compile\"" >&5) 8595 (eval "$lt_compile" 2>conftest.err) 8596 ac_status=$? 8597 cat conftest.err >&5 8598 echo "$as_me:8598: \$? = $ac_status" >&5 8599 if (exit $ac_status) && test -s "$ac_outfile"; then 8600 # The compiler can only warn and ignore the option if not recognized 8601 # So say no if there are warnings other than the usual output. 8602 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8603 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8604 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8605 lt_cv_prog_compiler_pic_works=yes 8606 fi 8607 fi 8608 $RM conftest* 8609 8610fi 8611{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 8612echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } 8613 8614if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8615 case $lt_prog_compiler_pic in 8616 "" | " "*) ;; 8617 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8618 esac 8619else 8620 lt_prog_compiler_pic= 8621 lt_prog_compiler_can_build_shared=no 8622fi 8623 8624fi 8625 8626 8627 8628 8629 8630 8631# 8632# Check to make sure the static flag actually works. 8633# 8634wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8635{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8636echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 8637if test "${lt_cv_prog_compiler_static_works+set}" = set; then 8638 echo $ECHO_N "(cached) $ECHO_C" >&6 8639else 8640 lt_cv_prog_compiler_static_works=no 8641 save_LDFLAGS="$LDFLAGS" 8642 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8643 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8644 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8645 # The linker can only warn and ignore the option if not recognized 8646 # So say no if there are warnings 8647 if test -s conftest.err; then 8648 # Append any errors to the config.log. 8649 cat conftest.err 1>&5 8650 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8652 if diff conftest.exp conftest.er2 >/dev/null; then 8653 lt_cv_prog_compiler_static_works=yes 8654 fi 8655 else 8656 lt_cv_prog_compiler_static_works=yes 8657 fi 8658 fi 8659 $RM -r conftest* 8660 LDFLAGS="$save_LDFLAGS" 8661 8662fi 8663{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 8664echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } 8665 8666if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8667 : 8668else 8669 lt_prog_compiler_static= 8670fi 8671 8672 8673 8674 8675 8676 8677 8678 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8679echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 8680if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8681 echo $ECHO_N "(cached) $ECHO_C" >&6 8682else 8683 lt_cv_prog_compiler_c_o=no 8684 $RM -r conftest 2>/dev/null 8685 mkdir conftest 8686 cd conftest 8687 mkdir out 8688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8689 8690 lt_compiler_flag="-o out/conftest2.$ac_objext" 8691 # Insert the option either (1) after the last *FLAGS variable, or 8692 # (2) before a word containing "conftest.", or (3) at the end. 8693 # Note that $ac_compile itself does not contain backslashes and begins 8694 # with a dollar sign (not a hyphen), so the echo should work correctly. 8695 lt_compile=`echo "$ac_compile" | $SED \ 8696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8698 -e 's:$: $lt_compiler_flag:'` 8699 (eval echo "\"\$as_me:8699: $lt_compile\"" >&5) 8700 (eval "$lt_compile" 2>out/conftest.err) 8701 ac_status=$? 8702 cat out/conftest.err >&5 8703 echo "$as_me:8703: \$? = $ac_status" >&5 8704 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8705 then 8706 # The compiler can only warn and ignore the option if not recognized 8707 # So say no if there are warnings 8708 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8709 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8710 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8711 lt_cv_prog_compiler_c_o=yes 8712 fi 8713 fi 8714 chmod u+w . 2>&5 8715 $RM conftest* 8716 # SGI C++ compiler will create directory out/ii_files/ for 8717 # template instantiation 8718 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8719 $RM out/* && rmdir out 8720 cd .. 8721 $RM -r conftest 8722 $RM conftest* 8723 8724fi 8725{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8726echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 8727 8728 8729 8730 8731 8732 8733 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8734echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 8735if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8736 echo $ECHO_N "(cached) $ECHO_C" >&6 8737else 8738 lt_cv_prog_compiler_c_o=no 8739 $RM -r conftest 2>/dev/null 8740 mkdir conftest 8741 cd conftest 8742 mkdir out 8743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8744 8745 lt_compiler_flag="-o out/conftest2.$ac_objext" 8746 # Insert the option either (1) after the last *FLAGS variable, or 8747 # (2) before a word containing "conftest.", or (3) at the end. 8748 # Note that $ac_compile itself does not contain backslashes and begins 8749 # with a dollar sign (not a hyphen), so the echo should work correctly. 8750 lt_compile=`echo "$ac_compile" | $SED \ 8751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8753 -e 's:$: $lt_compiler_flag:'` 8754 (eval echo "\"\$as_me:8754: $lt_compile\"" >&5) 8755 (eval "$lt_compile" 2>out/conftest.err) 8756 ac_status=$? 8757 cat out/conftest.err >&5 8758 echo "$as_me:8758: \$? = $ac_status" >&5 8759 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8760 then 8761 # The compiler can only warn and ignore the option if not recognized 8762 # So say no if there are warnings 8763 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8764 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8765 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8766 lt_cv_prog_compiler_c_o=yes 8767 fi 8768 fi 8769 chmod u+w . 2>&5 8770 $RM conftest* 8771 # SGI C++ compiler will create directory out/ii_files/ for 8772 # template instantiation 8773 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8774 $RM out/* && rmdir out 8775 cd .. 8776 $RM -r conftest 8777 $RM conftest* 8778 8779fi 8780{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8781echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 8782 8783 8784 8785 8786hard_links="nottested" 8787if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8788 # do not overwrite the value of need_locks provided by the user 8789 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8790echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 8791 hard_links=yes 8792 $RM conftest* 8793 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8794 touch conftest.a 8795 ln conftest.a conftest.b 2>&5 || hard_links=no 8796 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8797 { echo "$as_me:$LINENO: result: $hard_links" >&5 8798echo "${ECHO_T}$hard_links" >&6; } 8799 if test "$hard_links" = no; then 8800 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8801echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8802 need_locks=warn 8803 fi 8804else 8805 need_locks=no 8806fi 8807 8808 8809 8810 8811 8812 8813 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8814echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 8815 8816 runpath_var= 8817 allow_undefined_flag= 8818 always_export_symbols=no 8819 archive_cmds= 8820 archive_expsym_cmds= 8821 compiler_needs_object=no 8822 enable_shared_with_static_runtimes=no 8823 export_dynamic_flag_spec= 8824 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8825 hardcode_automatic=no 8826 hardcode_direct=no 8827 hardcode_direct_absolute=no 8828 hardcode_libdir_flag_spec= 8829 hardcode_libdir_flag_spec_ld= 8830 hardcode_libdir_separator= 8831 hardcode_minus_L=no 8832 hardcode_shlibpath_var=unsupported 8833 inherit_rpath=no 8834 link_all_deplibs=unknown 8835 module_cmds= 8836 module_expsym_cmds= 8837 old_archive_from_new_cmds= 8838 old_archive_from_expsyms_cmds= 8839 thread_safe_flag_spec= 8840 whole_archive_flag_spec= 8841 # include_expsyms should be a list of space-separated symbols to be *always* 8842 # included in the symbol list 8843 include_expsyms= 8844 # exclude_expsyms can be an extended regexp of symbols to exclude 8845 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8846 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8847 # as well as any symbol that contains `d'. 8848 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8849 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8850 # platforms (ab)use it in PIC code, but their linkers get confused if 8851 # the symbol is explicitly referenced. Since portable code cannot 8852 # rely on this symbol name, it's probably fine to never include it in 8853 # preloaded symbol tables. 8854 # Exclude shared library initialization/finalization symbols. 8855 extract_expsyms_cmds= 8856 8857 case $host_os in 8858 cygwin* | mingw* | pw32*) 8859 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8860 # When not using gcc, we currently assume that we are using 8861 # Microsoft Visual C++. 8862 if test "$GCC" != yes; then 8863 with_gnu_ld=no 8864 fi 8865 ;; 8866 interix*) 8867 # we just hope/assume this is gcc and not c89 (= MSVC++) 8868 with_gnu_ld=yes 8869 ;; 8870 openbsd*) 8871 with_gnu_ld=no 8872 ;; 8873 esac 8874 8875 ld_shlibs=yes 8876 if test "$with_gnu_ld" = yes; then 8877 # If archive_cmds runs LD, not CC, wlarc should be empty 8878 wlarc='${wl}' 8879 8880 # Set some defaults for GNU ld with shared library support. These 8881 # are reset later if shared libraries are not supported. Putting them 8882 # here allows them to be overridden if necessary. 8883 runpath_var=LD_RUN_PATH 8884 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8885 export_dynamic_flag_spec='${wl}--export-dynamic' 8886 # ancient GNU ld didn't support --whole-archive et. al. 8887 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8888 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8889 else 8890 whole_archive_flag_spec= 8891 fi 8892 supports_anon_versioning=no 8893 case `$LD -v 2>&1` in 8894 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8895 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8896 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8897 *\ 2.11.*) ;; # other 2.11 versions 8898 *) supports_anon_versioning=yes ;; 8899 esac 8900 8901 # See if GNU ld supports shared libraries. 8902 case $host_os in 8903 aix[3-9]*) 8904 # On AIX/PPC, the GNU linker is very broken 8905 if test "$host_cpu" != ia64; then 8906 ld_shlibs=no 8907 cat <<_LT_EOF 1>&2 8908 8909*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8910*** to be unable to reliably create shared libraries on AIX. 8911*** Therefore, libtool is disabling shared libraries support. If you 8912*** really care for shared libraries, you may want to modify your PATH 8913*** so that a non-GNU linker is found, and then restart. 8914 8915_LT_EOF 8916 fi 8917 ;; 8918 8919 amigaos*) 8920 case $host_cpu in 8921 powerpc) 8922 # see comment about AmigaOS4 .so support 8923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8924 archive_expsym_cmds='' 8925 ;; 8926 m68k) 8927 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)' 8928 hardcode_libdir_flag_spec='-L$libdir' 8929 hardcode_minus_L=yes 8930 ;; 8931 esac 8932 ;; 8933 8934 beos*) 8935 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8936 allow_undefined_flag=unsupported 8937 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8938 # support --undefined. This deserves some investigation. FIXME 8939 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8940 else 8941 ld_shlibs=no 8942 fi 8943 ;; 8944 8945 cygwin* | mingw* | pw32*) 8946 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8947 # as there is no search path for DLLs. 8948 hardcode_libdir_flag_spec='-L$libdir' 8949 allow_undefined_flag=unsupported 8950 always_export_symbols=no 8951 enable_shared_with_static_runtimes=yes 8952 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8953 8954 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8955 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8956 # If the export-symbols file already is a .def file (1st line 8957 # is EXPORTS), use it as is; otherwise, prepend... 8958 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8959 cp $export_symbols $output_objdir/$soname.def; 8960 else 8961 echo EXPORTS > $output_objdir/$soname.def; 8962 cat $export_symbols >> $output_objdir/$soname.def; 8963 fi~ 8964 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8965 else 8966 ld_shlibs=no 8967 fi 8968 ;; 8969 8970 interix[3-9]*) 8971 hardcode_direct=no 8972 hardcode_shlibpath_var=no 8973 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8974 export_dynamic_flag_spec='${wl}-E' 8975 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8976 # Instead, shared libraries are loaded at an image base (0x10000000 by 8977 # default) and relocated if they conflict, which is a slow very memory 8978 # consuming and fragmenting process. To avoid this, we pick a random, 8979 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8980 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8981 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8982 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' 8983 ;; 8984 8985 gnu* | linux* | tpf* | k*bsd*-gnu) 8986 tmp_diet=no 8987 if test "$host_os" = linux-dietlibc; then 8988 case $cc_basename in 8989 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8990 esac 8991 fi 8992 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8993 && test "$tmp_diet" = no 8994 then 8995 tmp_addflag= 8996 tmp_sharedflag='-shared' 8997 case $cc_basename,$host_cpu in 8998 pgcc*) # Portland Group C compiler 8999 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' 9000 tmp_addflag=' $pic_flag' 9001 ;; 9002 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9003 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' 9004 tmp_addflag=' $pic_flag -Mnomain' ;; 9005 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9006 tmp_addflag=' -i_dynamic' ;; 9007 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9008 tmp_addflag=' -i_dynamic -nofor_main' ;; 9009 ifc* | ifort*) # Intel Fortran compiler 9010 tmp_addflag=' -nofor_main' ;; 9011 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9012 tmp_sharedflag='-qmkshrobj' 9013 tmp_addflag= ;; 9014 esac 9015 case `$CC -V 2>&1 | sed 5q` in 9016 *Sun\ C*) # Sun C 5.9 9017 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' 9018 compiler_needs_object=yes 9019 tmp_sharedflag='-G' ;; 9020 *Sun\ F*) # Sun Fortran 8.3 9021 tmp_sharedflag='-G' ;; 9022 esac 9023 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9024 9025 if test "x$supports_anon_versioning" = xyes; then 9026 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9027 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9028 echo "local: *; };" >> $output_objdir/$libname.ver~ 9029 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9030 fi 9031 9032 case $cc_basename in 9033 xlf*) 9034 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9035 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9036 hardcode_libdir_flag_spec= 9037 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9038 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9039 if test "x$supports_anon_versioning" = xyes; then 9040 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9041 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9042 echo "local: *; };" >> $output_objdir/$libname.ver~ 9043 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9044 fi 9045 ;; 9046 esac 9047 else 9048 ld_shlibs=no 9049 fi 9050 ;; 9051 9052 netbsd* | netbsdelf*-gnu) 9053 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9054 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9055 wlarc= 9056 else 9057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9058 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9059 fi 9060 ;; 9061 9062 solaris*) 9063 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9064 ld_shlibs=no 9065 cat <<_LT_EOF 1>&2 9066 9067*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9068*** create shared libraries on Solaris systems. Therefore, libtool 9069*** is disabling shared libraries support. We urge you to upgrade GNU 9070*** binutils to release 2.9.1 or newer. Another option is to modify 9071*** your PATH or compiler configuration so that the native linker is 9072*** used, and then restart. 9073 9074_LT_EOF 9075 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9077 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9078 else 9079 ld_shlibs=no 9080 fi 9081 ;; 9082 9083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9084 case `$LD -v 2>&1` in 9085 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9086 ld_shlibs=no 9087 cat <<_LT_EOF 1>&2 9088 9089*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9090*** reliably create shared libraries on SCO systems. Therefore, libtool 9091*** is disabling shared libraries support. We urge you to upgrade GNU 9092*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9093*** your PATH or compiler configuration so that the native linker is 9094*** used, and then restart. 9095 9096_LT_EOF 9097 ;; 9098 *) 9099 # For security reasons, it is highly recommended that you always 9100 # use absolute paths for naming shared libraries, and exclude the 9101 # DT_RUNPATH tag from executables and libraries. But doing so 9102 # requires that you compile everything twice, which is a pain. 9103 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9104 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9106 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9107 else 9108 ld_shlibs=no 9109 fi 9110 ;; 9111 esac 9112 ;; 9113 9114 sunos4*) 9115 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9116 wlarc= 9117 hardcode_direct=yes 9118 hardcode_shlibpath_var=no 9119 ;; 9120 9121 *) 9122 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9124 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9125 else 9126 ld_shlibs=no 9127 fi 9128 ;; 9129 esac 9130 9131 if test "$ld_shlibs" = no; then 9132 runpath_var= 9133 hardcode_libdir_flag_spec= 9134 export_dynamic_flag_spec= 9135 whole_archive_flag_spec= 9136 fi 9137 else 9138 # PORTME fill in a description of your system's linker (not GNU ld) 9139 case $host_os in 9140 aix3*) 9141 allow_undefined_flag=unsupported 9142 always_export_symbols=yes 9143 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' 9144 # Note: this linker hardcodes the directories in LIBPATH if there 9145 # are no directories specified by -L. 9146 hardcode_minus_L=yes 9147 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9148 # Neither direct hardcoding nor static linking is supported with a 9149 # broken collect2. 9150 hardcode_direct=unsupported 9151 fi 9152 ;; 9153 9154 aix[4-9]*) 9155 if test "$host_cpu" = ia64; then 9156 # On IA64, the linker does run time linking by default, so we don't 9157 # have to do anything special. 9158 aix_use_runtimelinking=no 9159 exp_sym_flag='-Bexport' 9160 no_entry_flag="" 9161 else 9162 # If we're using GNU nm, then we don't want the "-C" option. 9163 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9164 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9165 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' 9166 else 9167 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' 9168 fi 9169 aix_use_runtimelinking=no 9170 9171 # Test if we are trying to use run time linking or normal 9172 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9173 # need to do runtime linking. 9174 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9175 for ld_flag in $LDFLAGS; do 9176 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9177 aix_use_runtimelinking=yes 9178 break 9179 fi 9180 done 9181 ;; 9182 esac 9183 9184 exp_sym_flag='-bexport' 9185 no_entry_flag='-bnoentry' 9186 fi 9187 9188 # When large executables or shared objects are built, AIX ld can 9189 # have problems creating the table of contents. If linking a library 9190 # or program results in "error TOC overflow" add -mminimal-toc to 9191 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9192 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9193 9194 archive_cmds='' 9195 hardcode_direct=yes 9196 hardcode_direct_absolute=yes 9197 hardcode_libdir_separator=':' 9198 link_all_deplibs=yes 9199 file_list_spec='${wl}-f,' 9200 9201 if test "$GCC" = yes; then 9202 case $host_os in aix4.[012]|aix4.[012].*) 9203 # We only want to do this on AIX 4.2 and lower, the check 9204 # below for broken collect2 doesn't work under 4.3+ 9205 collect2name=`${CC} -print-prog-name=collect2` 9206 if test -f "$collect2name" && 9207 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9208 then 9209 # We have reworked collect2 9210 : 9211 else 9212 # We have old collect2 9213 hardcode_direct=unsupported 9214 # It fails to find uninstalled libraries when the uninstalled 9215 # path is not listed in the libpath. Setting hardcode_minus_L 9216 # to unsupported forces relinking 9217 hardcode_minus_L=yes 9218 hardcode_libdir_flag_spec='-L$libdir' 9219 hardcode_libdir_separator= 9220 fi 9221 ;; 9222 esac 9223 shared_flag='-shared' 9224 if test "$aix_use_runtimelinking" = yes; then 9225 shared_flag="$shared_flag "'${wl}-G' 9226 fi 9227 link_all_deplibs=no 9228 else 9229 # not using gcc 9230 if test "$host_cpu" = ia64; then 9231 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9232 # chokes on -Wl,-G. The following line is correct: 9233 shared_flag='-G' 9234 else 9235 if test "$aix_use_runtimelinking" = yes; then 9236 shared_flag='${wl}-G' 9237 else 9238 shared_flag='${wl}-bM:SRE' 9239 fi 9240 fi 9241 fi 9242 9243 # It seems that -bexpall does not export symbols beginning with 9244 # underscore (_), so it is better to generate a list of symbols to export. 9245 always_export_symbols=yes 9246 if test "$aix_use_runtimelinking" = yes; then 9247 # Warning - without using the other runtime loading flags (-brtl), 9248 # -berok will link without error, but may produce a broken library. 9249 allow_undefined_flag='-berok' 9250 # Determine the default libpath from the value encoded in an 9251 # empty executable. 9252 cat >conftest.$ac_ext <<_ACEOF 9253/* confdefs.h. */ 9254_ACEOF 9255cat confdefs.h >>conftest.$ac_ext 9256cat >>conftest.$ac_ext <<_ACEOF 9257/* end confdefs.h. */ 9258 9259int 9260main () 9261{ 9262 9263 ; 9264 return 0; 9265} 9266_ACEOF 9267rm -f conftest.$ac_objext conftest$ac_exeext 9268if { (ac_try="$ac_link" 9269case "(($ac_try" in 9270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9271 *) ac_try_echo=$ac_try;; 9272esac 9273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9274 (eval "$ac_link") 2>conftest.er1 9275 ac_status=$? 9276 grep -v '^ *+' conftest.er1 >conftest.err 9277 rm -f conftest.er1 9278 cat conftest.err >&5 9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9280 (exit $ac_status); } && { 9281 test -z "$ac_c_werror_flag" || 9282 test ! -s conftest.err 9283 } && test -s conftest$ac_exeext && 9284 $as_test_x conftest$ac_exeext; then 9285 9286lt_aix_libpath_sed=' 9287 /Import File Strings/,/^$/ { 9288 /^0/ { 9289 s/^0 *\(.*\)$/\1/ 9290 p 9291 } 9292 }' 9293aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9294# Check for a 64-bit object if we didn't find anything. 9295if test -z "$aix_libpath"; then 9296 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9297fi 9298else 9299 echo "$as_me: failed program was:" >&5 9300sed 's/^/| /' conftest.$ac_ext >&5 9301 9302 9303fi 9304 9305rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9306 conftest$ac_exeext conftest.$ac_ext 9307if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9308 9309 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9310 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" 9311 else 9312 if test "$host_cpu" = ia64; then 9313 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9314 allow_undefined_flag="-z nodefs" 9315 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" 9316 else 9317 # Determine the default libpath from the value encoded in an 9318 # empty executable. 9319 cat >conftest.$ac_ext <<_ACEOF 9320/* confdefs.h. */ 9321_ACEOF 9322cat confdefs.h >>conftest.$ac_ext 9323cat >>conftest.$ac_ext <<_ACEOF 9324/* end confdefs.h. */ 9325 9326int 9327main () 9328{ 9329 9330 ; 9331 return 0; 9332} 9333_ACEOF 9334rm -f conftest.$ac_objext conftest$ac_exeext 9335if { (ac_try="$ac_link" 9336case "(($ac_try" in 9337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9338 *) ac_try_echo=$ac_try;; 9339esac 9340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9341 (eval "$ac_link") 2>conftest.er1 9342 ac_status=$? 9343 grep -v '^ *+' conftest.er1 >conftest.err 9344 rm -f conftest.er1 9345 cat conftest.err >&5 9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9347 (exit $ac_status); } && { 9348 test -z "$ac_c_werror_flag" || 9349 test ! -s conftest.err 9350 } && test -s conftest$ac_exeext && 9351 $as_test_x conftest$ac_exeext; then 9352 9353lt_aix_libpath_sed=' 9354 /Import File Strings/,/^$/ { 9355 /^0/ { 9356 s/^0 *\(.*\)$/\1/ 9357 p 9358 } 9359 }' 9360aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9361# Check for a 64-bit object if we didn't find anything. 9362if test -z "$aix_libpath"; then 9363 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9364fi 9365else 9366 echo "$as_me: failed program was:" >&5 9367sed 's/^/| /' conftest.$ac_ext >&5 9368 9369 9370fi 9371 9372rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9373 conftest$ac_exeext conftest.$ac_ext 9374if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9375 9376 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9377 # Warning - without using the other run time loading flags, 9378 # -berok will link without error, but may produce a broken library. 9379 no_undefined_flag=' ${wl}-bernotok' 9380 allow_undefined_flag=' ${wl}-berok' 9381 # Exported symbols can be pulled into shared objects from archives 9382 whole_archive_flag_spec='$convenience' 9383 archive_cmds_need_lc=yes 9384 # This is similar to how AIX traditionally builds its shared libraries. 9385 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' 9386 fi 9387 fi 9388 ;; 9389 9390 amigaos*) 9391 case $host_cpu in 9392 powerpc) 9393 # see comment about AmigaOS4 .so support 9394 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9395 archive_expsym_cmds='' 9396 ;; 9397 m68k) 9398 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)' 9399 hardcode_libdir_flag_spec='-L$libdir' 9400 hardcode_minus_L=yes 9401 ;; 9402 esac 9403 ;; 9404 9405 bsdi[45]*) 9406 export_dynamic_flag_spec=-rdynamic 9407 ;; 9408 9409 cygwin* | mingw* | pw32*) 9410 # When not using gcc, we currently assume that we are using 9411 # Microsoft Visual C++. 9412 # hardcode_libdir_flag_spec is actually meaningless, as there is 9413 # no search path for DLLs. 9414 hardcode_libdir_flag_spec=' ' 9415 allow_undefined_flag=unsupported 9416 # Tell ltmain to make .lib files, not .a files. 9417 libext=lib 9418 # Tell ltmain to make .dll files, not .so files. 9419 shrext_cmds=".dll" 9420 # FIXME: Setting linknames here is a bad hack. 9421 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9422 # The linker will automatically build a .lib file if we build a DLL. 9423 old_archive_from_new_cmds='true' 9424 # FIXME: Should let the user specify the lib program. 9425 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9426 fix_srcfile_path='`cygpath -w "$srcfile"`' 9427 enable_shared_with_static_runtimes=yes 9428 ;; 9429 9430 darwin* | rhapsody*) 9431 9432 9433 archive_cmds_need_lc=no 9434 hardcode_direct=no 9435 hardcode_automatic=yes 9436 hardcode_shlibpath_var=unsupported 9437 whole_archive_flag_spec='' 9438 link_all_deplibs=yes 9439 allow_undefined_flag="$_lt_dar_allow_undefined" 9440 if test "$GCC" = "yes"; then 9441 output_verbose_link_cmd=echo 9442 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9443 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9444 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}" 9445 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}" 9446 9447 else 9448 ld_shlibs=no 9449 fi 9450 9451 ;; 9452 9453 dgux*) 9454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9455 hardcode_libdir_flag_spec='-L$libdir' 9456 hardcode_shlibpath_var=no 9457 ;; 9458 9459 freebsd1*) 9460 ld_shlibs=no 9461 ;; 9462 9463 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9464 # support. Future versions do this automatically, but an explicit c++rt0.o 9465 # does not break anything, and helps significantly (at the cost of a little 9466 # extra space). 9467 freebsd2.2*) 9468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9469 hardcode_libdir_flag_spec='-R$libdir' 9470 hardcode_direct=yes 9471 hardcode_shlibpath_var=no 9472 ;; 9473 9474 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9475 freebsd2*) 9476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9477 hardcode_direct=yes 9478 hardcode_minus_L=yes 9479 hardcode_shlibpath_var=no 9480 ;; 9481 9482 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9483 freebsd* | dragonfly*) 9484 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9485 hardcode_libdir_flag_spec='-R$libdir' 9486 hardcode_direct=yes 9487 hardcode_shlibpath_var=no 9488 ;; 9489 9490 hpux9*) 9491 if test "$GCC" = yes; then 9492 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' 9493 else 9494 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' 9495 fi 9496 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9497 hardcode_libdir_separator=: 9498 hardcode_direct=yes 9499 9500 # hardcode_minus_L: Not really in the search PATH, 9501 # but as the default location of the library. 9502 hardcode_minus_L=yes 9503 export_dynamic_flag_spec='${wl}-E' 9504 ;; 9505 9506 hpux10*) 9507 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9508 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9509 else 9510 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9511 fi 9512 if test "$with_gnu_ld" = no; then 9513 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9514 hardcode_libdir_flag_spec_ld='+b $libdir' 9515 hardcode_libdir_separator=: 9516 hardcode_direct=yes 9517 hardcode_direct_absolute=yes 9518 export_dynamic_flag_spec='${wl}-E' 9519 # hardcode_minus_L: Not really in the search PATH, 9520 # but as the default location of the library. 9521 hardcode_minus_L=yes 9522 fi 9523 ;; 9524 9525 hpux11*) 9526 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9527 case $host_cpu in 9528 hppa*64*) 9529 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9530 ;; 9531 ia64*) 9532 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9533 ;; 9534 *) 9535 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9536 ;; 9537 esac 9538 else 9539 case $host_cpu in 9540 hppa*64*) 9541 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9542 ;; 9543 ia64*) 9544 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9545 ;; 9546 *) 9547 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9548 ;; 9549 esac 9550 fi 9551 if test "$with_gnu_ld" = no; then 9552 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9553 hardcode_libdir_separator=: 9554 9555 case $host_cpu in 9556 hppa*64*|ia64*) 9557 hardcode_direct=no 9558 hardcode_shlibpath_var=no 9559 ;; 9560 *) 9561 hardcode_direct=yes 9562 hardcode_direct_absolute=yes 9563 export_dynamic_flag_spec='${wl}-E' 9564 9565 # hardcode_minus_L: Not really in the search PATH, 9566 # but as the default location of the library. 9567 hardcode_minus_L=yes 9568 ;; 9569 esac 9570 fi 9571 ;; 9572 9573 irix5* | irix6* | nonstopux*) 9574 if test "$GCC" = yes; then 9575 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' 9576 # Try to use the -exported_symbol ld option, if it does not 9577 # work, assume that -exports_file does not work either and 9578 # implicitly export all symbols. 9579 save_LDFLAGS="$LDFLAGS" 9580 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9581 cat >conftest.$ac_ext <<_ACEOF 9582int foo(void) {} 9583_ACEOF 9584rm -f conftest.$ac_objext conftest$ac_exeext 9585if { (ac_try="$ac_link" 9586case "(($ac_try" in 9587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9588 *) ac_try_echo=$ac_try;; 9589esac 9590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9591 (eval "$ac_link") 2>conftest.er1 9592 ac_status=$? 9593 grep -v '^ *+' conftest.er1 >conftest.err 9594 rm -f conftest.er1 9595 cat conftest.err >&5 9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9597 (exit $ac_status); } && { 9598 test -z "$ac_c_werror_flag" || 9599 test ! -s conftest.err 9600 } && test -s conftest$ac_exeext && 9601 $as_test_x conftest$ac_exeext; then 9602 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' 9603 9604else 9605 echo "$as_me: failed program was:" >&5 9606sed 's/^/| /' conftest.$ac_ext >&5 9607 9608 9609fi 9610 9611rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9612 conftest$ac_exeext conftest.$ac_ext 9613 LDFLAGS="$save_LDFLAGS" 9614 else 9615 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' 9616 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' 9617 fi 9618 archive_cmds_need_lc='no' 9619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9620 hardcode_libdir_separator=: 9621 inherit_rpath=yes 9622 link_all_deplibs=yes 9623 ;; 9624 9625 netbsd* | netbsdelf*-gnu) 9626 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9627 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9628 else 9629 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9630 fi 9631 hardcode_libdir_flag_spec='-R$libdir' 9632 hardcode_direct=yes 9633 hardcode_shlibpath_var=no 9634 ;; 9635 9636 newsos6) 9637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9638 hardcode_direct=yes 9639 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9640 hardcode_libdir_separator=: 9641 hardcode_shlibpath_var=no 9642 ;; 9643 9644 *nto* | *qnx*) 9645 ;; 9646 9647 openbsd*) 9648 if test -f /usr/libexec/ld.so; then 9649 hardcode_direct=yes 9650 hardcode_shlibpath_var=no 9651 hardcode_direct_absolute=yes 9652 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9653 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9654 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9655 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9656 export_dynamic_flag_spec='${wl}-E' 9657 else 9658 case $host_os in 9659 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9660 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9661 hardcode_libdir_flag_spec='-R$libdir' 9662 ;; 9663 *) 9664 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9665 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9666 ;; 9667 esac 9668 fi 9669 else 9670 ld_shlibs=no 9671 fi 9672 ;; 9673 9674 os2*) 9675 hardcode_libdir_flag_spec='-L$libdir' 9676 hardcode_minus_L=yes 9677 allow_undefined_flag=unsupported 9678 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' 9679 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9680 ;; 9681 9682 osf3*) 9683 if test "$GCC" = yes; then 9684 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9685 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' 9686 else 9687 allow_undefined_flag=' -expect_unresolved \*' 9688 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' 9689 fi 9690 archive_cmds_need_lc='no' 9691 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9692 hardcode_libdir_separator=: 9693 ;; 9694 9695 osf4* | osf5*) # as osf3* with the addition of -msym flag 9696 if test "$GCC" = yes; then 9697 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9698 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' 9699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9700 else 9701 allow_undefined_flag=' -expect_unresolved \*' 9702 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' 9703 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~ 9704 $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' 9705 9706 # Both c and cxx compiler support -rpath directly 9707 hardcode_libdir_flag_spec='-rpath $libdir' 9708 fi 9709 archive_cmds_need_lc='no' 9710 hardcode_libdir_separator=: 9711 ;; 9712 9713 solaris*) 9714 no_undefined_flag=' -z defs' 9715 if test "$GCC" = yes; then 9716 wlarc='${wl}' 9717 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9718 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9719 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9720 else 9721 case `$CC -V 2>&1` in 9722 *"Compilers 5.0"*) 9723 wlarc='' 9724 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9725 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9726 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9727 ;; 9728 *) 9729 wlarc='${wl}' 9730 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9731 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9732 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9733 ;; 9734 esac 9735 fi 9736 hardcode_libdir_flag_spec='-R$libdir' 9737 hardcode_shlibpath_var=no 9738 case $host_os in 9739 solaris2.[0-5] | solaris2.[0-5].*) ;; 9740 *) 9741 # The compiler driver will combine and reorder linker options, 9742 # but understands `-z linker_flag'. GCC discards it without `$wl', 9743 # but is careful enough not to reorder. 9744 # Supported since Solaris 2.6 (maybe 2.5.1?) 9745 if test "$GCC" = yes; then 9746 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9747 else 9748 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9749 fi 9750 ;; 9751 esac 9752 link_all_deplibs=yes 9753 ;; 9754 9755 sunos4*) 9756 if test "x$host_vendor" = xsequent; then 9757 # Use $CC to link under sequent, because it throws in some extra .o 9758 # files that make .init and .fini sections work. 9759 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9760 else 9761 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9762 fi 9763 hardcode_libdir_flag_spec='-L$libdir' 9764 hardcode_direct=yes 9765 hardcode_minus_L=yes 9766 hardcode_shlibpath_var=no 9767 ;; 9768 9769 sysv4) 9770 case $host_vendor in 9771 sni) 9772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9773 hardcode_direct=yes # is this really true??? 9774 ;; 9775 siemens) 9776 ## LD is ld it makes a PLAMLIB 9777 ## CC just makes a GrossModule. 9778 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9779 reload_cmds='$CC -r -o $output$reload_objs' 9780 hardcode_direct=no 9781 ;; 9782 motorola) 9783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9784 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9785 ;; 9786 esac 9787 runpath_var='LD_RUN_PATH' 9788 hardcode_shlibpath_var=no 9789 ;; 9790 9791 sysv4.3*) 9792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9793 hardcode_shlibpath_var=no 9794 export_dynamic_flag_spec='-Bexport' 9795 ;; 9796 9797 sysv4*MP*) 9798 if test -d /usr/nec; then 9799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9800 hardcode_shlibpath_var=no 9801 runpath_var=LD_RUN_PATH 9802 hardcode_runpath_var=yes 9803 ld_shlibs=yes 9804 fi 9805 ;; 9806 9807 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9808 no_undefined_flag='${wl}-z,text' 9809 archive_cmds_need_lc=no 9810 hardcode_shlibpath_var=no 9811 runpath_var='LD_RUN_PATH' 9812 9813 if test "$GCC" = yes; then 9814 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9815 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9816 else 9817 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9818 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9819 fi 9820 ;; 9821 9822 sysv5* | sco3.2v5* | sco5v6*) 9823 # Note: We can NOT use -z defs as we might desire, because we do not 9824 # link with -lc, and that would cause any symbols used from libc to 9825 # always be unresolved, which means just about no library would 9826 # ever link correctly. If we're not using GNU ld we use -z text 9827 # though, which does catch some bad symbols but isn't as heavy-handed 9828 # as -z defs. 9829 no_undefined_flag='${wl}-z,text' 9830 allow_undefined_flag='${wl}-z,nodefs' 9831 archive_cmds_need_lc=no 9832 hardcode_shlibpath_var=no 9833 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9834 hardcode_libdir_separator=':' 9835 link_all_deplibs=yes 9836 export_dynamic_flag_spec='${wl}-Bexport' 9837 runpath_var='LD_RUN_PATH' 9838 9839 if test "$GCC" = yes; then 9840 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9841 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9842 else 9843 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9844 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9845 fi 9846 ;; 9847 9848 uts4*) 9849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9850 hardcode_libdir_flag_spec='-L$libdir' 9851 hardcode_shlibpath_var=no 9852 ;; 9853 9854 *) 9855 ld_shlibs=no 9856 ;; 9857 esac 9858 9859 if test x$host_vendor = xsni; then 9860 case $host in 9861 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9862 export_dynamic_flag_spec='${wl}-Blargedynsym' 9863 ;; 9864 esac 9865 fi 9866 fi 9867 9868{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9869echo "${ECHO_T}$ld_shlibs" >&6; } 9870test "$ld_shlibs" = no && can_build_shared=no 9871 9872with_gnu_ld=$with_gnu_ld 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888# 9889# Do we need to explicitly link libc? 9890# 9891case "x$archive_cmds_need_lc" in 9892x|xyes) 9893 # Assume -lc should be added 9894 archive_cmds_need_lc=yes 9895 9896 if test "$enable_shared" = yes && test "$GCC" = yes; then 9897 case $archive_cmds in 9898 *'~'*) 9899 # FIXME: we may have to deal with multi-command sequences. 9900 ;; 9901 '$CC '*) 9902 # Test whether the compiler implicitly links with -lc since on some 9903 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9904 # to ld, don't add -lc before -lgcc. 9905 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9906echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 9907 $RM conftest* 9908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9909 9910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9911 (eval $ac_compile) 2>&5 9912 ac_status=$? 9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9914 (exit $ac_status); } 2>conftest.err; then 9915 soname=conftest 9916 lib=conftest 9917 libobjs=conftest.$ac_objext 9918 deplibs= 9919 wl=$lt_prog_compiler_wl 9920 pic_flag=$lt_prog_compiler_pic 9921 compiler_flags=-v 9922 linker_flags=-v 9923 verstring= 9924 output_objdir=. 9925 libname=conftest 9926 lt_save_allow_undefined_flag=$allow_undefined_flag 9927 allow_undefined_flag= 9928 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9929 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9930 ac_status=$? 9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9932 (exit $ac_status); } 9933 then 9934 archive_cmds_need_lc=no 9935 else 9936 archive_cmds_need_lc=yes 9937 fi 9938 allow_undefined_flag=$lt_save_allow_undefined_flag 9939 else 9940 cat conftest.err 1>&5 9941 fi 9942 $RM conftest* 9943 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9944echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 9945 ;; 9946 esac 9947 fi 9948 ;; 9949esac 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10108echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 10109 10110if test "$GCC" = yes; then 10111 case $host_os in 10112 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10113 *) lt_awk_arg="/^libraries:/" ;; 10114 esac 10115 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10116 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10117 # if the path contains ";" then we assume it to be the separator 10118 # otherwise default to the standard path separator (i.e. ":") - it is 10119 # assumed that no part of a normal pathname contains ";" but that should 10120 # okay in the real world where ";" in dirpaths is itself problematic. 10121 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10122 else 10123 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10124 fi 10125 # Ok, now we have the path, separated by spaces, we can step through it 10126 # and add multilib dir if necessary. 10127 lt_tmp_lt_search_path_spec= 10128 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10129 for lt_sys_path in $lt_search_path_spec; do 10130 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10131 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10132 else 10133 test -d "$lt_sys_path" && \ 10134 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10135 fi 10136 done 10137 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10138BEGIN {RS=" "; FS="/|\n";} { 10139 lt_foo=""; 10140 lt_count=0; 10141 for (lt_i = NF; lt_i > 0; lt_i--) { 10142 if ($lt_i != "" && $lt_i != ".") { 10143 if ($lt_i == "..") { 10144 lt_count++; 10145 } else { 10146 if (lt_count == 0) { 10147 lt_foo="/" $lt_i lt_foo; 10148 } else { 10149 lt_count--; 10150 } 10151 } 10152 } 10153 } 10154 if (lt_foo != "") { lt_freq[lt_foo]++; } 10155 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10156}'` 10157 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10158else 10159 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10160fi 10161library_names_spec= 10162libname_spec='lib$name' 10163soname_spec= 10164shrext_cmds=".so" 10165postinstall_cmds= 10166postuninstall_cmds= 10167finish_cmds= 10168finish_eval= 10169shlibpath_var= 10170shlibpath_overrides_runpath=unknown 10171version_type=none 10172dynamic_linker="$host_os ld.so" 10173sys_lib_dlsearch_path_spec="/lib /usr/lib" 10174need_lib_prefix=unknown 10175hardcode_into_libs=no 10176 10177# when you set need_version to no, make sure it does not cause -set_version 10178# flags to be left without arguments 10179need_version=unknown 10180 10181case $host_os in 10182aix3*) 10183 version_type=linux 10184 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10185 shlibpath_var=LIBPATH 10186 10187 # AIX 3 has no versioning support, so we append a major version to the name. 10188 soname_spec='${libname}${release}${shared_ext}$major' 10189 ;; 10190 10191aix[4-9]*) 10192 version_type=linux 10193 need_lib_prefix=no 10194 need_version=no 10195 hardcode_into_libs=yes 10196 if test "$host_cpu" = ia64; then 10197 # AIX 5 supports IA64 10198 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10199 shlibpath_var=LD_LIBRARY_PATH 10200 else 10201 # With GCC up to 2.95.x, collect2 would create an import file 10202 # for dependence libraries. The import file would start with 10203 # the line `#! .'. This would cause the generated library to 10204 # depend on `.', always an invalid library. This was fixed in 10205 # development snapshots of GCC prior to 3.0. 10206 case $host_os in 10207 aix4 | aix4.[01] | aix4.[01].*) 10208 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10209 echo ' yes ' 10210 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10211 : 10212 else 10213 can_build_shared=no 10214 fi 10215 ;; 10216 esac 10217 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10218 # soname into executable. Probably we can add versioning support to 10219 # collect2, so additional links can be useful in future. 10220 if test "$aix_use_runtimelinking" = yes; then 10221 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10222 # instead of lib<name>.a to let people know that these are not 10223 # typical AIX shared libraries. 10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10225 else 10226 # We preserve .a as extension for shared libraries through AIX4.2 10227 # and later when we are not doing run time linking. 10228 library_names_spec='${libname}${release}.a $libname.a' 10229 soname_spec='${libname}${release}${shared_ext}$major' 10230 fi 10231 shlibpath_var=LIBPATH 10232 fi 10233 ;; 10234 10235amigaos*) 10236 case $host_cpu in 10237 powerpc) 10238 # Since July 2007 AmigaOS4 officially supports .so libraries. 10239 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10241 ;; 10242 m68k) 10243 library_names_spec='$libname.ixlibrary $libname.a' 10244 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10245 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' 10246 ;; 10247 esac 10248 ;; 10249 10250beos*) 10251 library_names_spec='${libname}${shared_ext}' 10252 dynamic_linker="$host_os ld.so" 10253 shlibpath_var=LIBRARY_PATH 10254 ;; 10255 10256bsdi[45]*) 10257 version_type=linux 10258 need_version=no 10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10260 soname_spec='${libname}${release}${shared_ext}$major' 10261 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10262 shlibpath_var=LD_LIBRARY_PATH 10263 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10264 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10265 # the default ld.so.conf also contains /usr/contrib/lib and 10266 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10267 # libtool to hard-code these into programs 10268 ;; 10269 10270cygwin* | mingw* | pw32*) 10271 version_type=windows 10272 shrext_cmds=".dll" 10273 need_version=no 10274 need_lib_prefix=no 10275 10276 case $GCC,$host_os in 10277 yes,cygwin* | yes,mingw* | yes,pw32*) 10278 library_names_spec='$libname.dll.a' 10279 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10280 postinstall_cmds='base_file=`basename \${file}`~ 10281 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10282 dldir=$destdir/`dirname \$dlpath`~ 10283 test -d \$dldir || mkdir -p \$dldir~ 10284 $install_prog $dir/$dlname \$dldir/$dlname~ 10285 chmod a+x \$dldir/$dlname~ 10286 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10287 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10288 fi' 10289 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10290 dlpath=$dir/\$dldll~ 10291 $RM \$dlpath' 10292 shlibpath_overrides_runpath=yes 10293 10294 case $host_os in 10295 cygwin*) 10296 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10297 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10298 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10299 ;; 10300 mingw*) 10301 # MinGW DLLs use traditional 'lib' prefix 10302 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10303 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10304 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10305 # It is most probably a Windows format PATH printed by 10306 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10307 # path with ; separators, and with drive letters. We can handle the 10308 # drive letters (cygwin fileutils understands them), so leave them, 10309 # especially as we might pass files found there to a mingw objdump, 10310 # which wouldn't understand a cygwinified path. Ahh. 10311 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10312 else 10313 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10314 fi 10315 ;; 10316 pw32*) 10317 # pw32 DLLs use 'pw' prefix rather than 'lib' 10318 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10319 ;; 10320 esac 10321 ;; 10322 10323 *) 10324 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10325 ;; 10326 esac 10327 dynamic_linker='Win32 ld.exe' 10328 # FIXME: first we should search . and the directory the executable is in 10329 shlibpath_var=PATH 10330 ;; 10331 10332darwin* | rhapsody*) 10333 dynamic_linker="$host_os dyld" 10334 version_type=darwin 10335 need_lib_prefix=no 10336 need_version=no 10337 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10338 soname_spec='${libname}${release}${major}$shared_ext' 10339 shlibpath_overrides_runpath=yes 10340 shlibpath_var=DYLD_LIBRARY_PATH 10341 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10342 10343 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10344 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10345 ;; 10346 10347dgux*) 10348 version_type=linux 10349 need_lib_prefix=no 10350 need_version=no 10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10352 soname_spec='${libname}${release}${shared_ext}$major' 10353 shlibpath_var=LD_LIBRARY_PATH 10354 ;; 10355 10356freebsd1*) 10357 dynamic_linker=no 10358 ;; 10359 10360freebsd* | dragonfly*) 10361 # DragonFly does not have aout. When/if they implement a new 10362 # versioning mechanism, adjust this. 10363 if test -x /usr/bin/objformat; then 10364 objformat=`/usr/bin/objformat` 10365 else 10366 case $host_os in 10367 freebsd[123]*) objformat=aout ;; 10368 *) objformat=elf ;; 10369 esac 10370 fi 10371 version_type=freebsd-$objformat 10372 case $version_type in 10373 freebsd-elf*) 10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10375 need_version=no 10376 need_lib_prefix=no 10377 ;; 10378 freebsd-*) 10379 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10380 need_version=yes 10381 ;; 10382 esac 10383 shlibpath_var=LD_LIBRARY_PATH 10384 case $host_os in 10385 freebsd2*) 10386 shlibpath_overrides_runpath=yes 10387 ;; 10388 freebsd3.[01]* | freebsdelf3.[01]*) 10389 shlibpath_overrides_runpath=yes 10390 hardcode_into_libs=yes 10391 ;; 10392 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10393 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10394 shlibpath_overrides_runpath=no 10395 hardcode_into_libs=yes 10396 ;; 10397 *) # from 4.6 on, and DragonFly 10398 shlibpath_overrides_runpath=yes 10399 hardcode_into_libs=yes 10400 ;; 10401 esac 10402 ;; 10403 10404gnu*) 10405 version_type=linux 10406 need_lib_prefix=no 10407 need_version=no 10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10409 soname_spec='${libname}${release}${shared_ext}$major' 10410 shlibpath_var=LD_LIBRARY_PATH 10411 hardcode_into_libs=yes 10412 ;; 10413 10414hpux9* | hpux10* | hpux11*) 10415 # Give a soname corresponding to the major version so that dld.sl refuses to 10416 # link against other versions. 10417 version_type=sunos 10418 need_lib_prefix=no 10419 need_version=no 10420 case $host_cpu in 10421 ia64*) 10422 shrext_cmds='.so' 10423 hardcode_into_libs=yes 10424 dynamic_linker="$host_os dld.so" 10425 shlibpath_var=LD_LIBRARY_PATH 10426 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10428 soname_spec='${libname}${release}${shared_ext}$major' 10429 if test "X$HPUX_IA64_MODE" = X32; then 10430 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10431 else 10432 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10433 fi 10434 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10435 ;; 10436 hppa*64*) 10437 shrext_cmds='.sl' 10438 hardcode_into_libs=yes 10439 dynamic_linker="$host_os dld.sl" 10440 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10443 soname_spec='${libname}${release}${shared_ext}$major' 10444 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10446 ;; 10447 *) 10448 shrext_cmds='.sl' 10449 dynamic_linker="$host_os dld.sl" 10450 shlibpath_var=SHLIB_PATH 10451 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10453 soname_spec='${libname}${release}${shared_ext}$major' 10454 ;; 10455 esac 10456 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10457 postinstall_cmds='chmod 555 $lib' 10458 ;; 10459 10460interix[3-9]*) 10461 version_type=linux 10462 need_lib_prefix=no 10463 need_version=no 10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10465 soname_spec='${libname}${release}${shared_ext}$major' 10466 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10467 shlibpath_var=LD_LIBRARY_PATH 10468 shlibpath_overrides_runpath=no 10469 hardcode_into_libs=yes 10470 ;; 10471 10472irix5* | irix6* | nonstopux*) 10473 case $host_os in 10474 nonstopux*) version_type=nonstopux ;; 10475 *) 10476 if test "$lt_cv_prog_gnu_ld" = yes; then 10477 version_type=linux 10478 else 10479 version_type=irix 10480 fi ;; 10481 esac 10482 need_lib_prefix=no 10483 need_version=no 10484 soname_spec='${libname}${release}${shared_ext}$major' 10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10486 case $host_os in 10487 irix5* | nonstopux*) 10488 libsuff= shlibsuff= 10489 ;; 10490 *) 10491 case $LD in # libtool.m4 will add one of these switches to LD 10492 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10493 libsuff= shlibsuff= libmagic=32-bit;; 10494 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10495 libsuff=32 shlibsuff=N32 libmagic=N32;; 10496 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10497 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10498 *) libsuff= shlibsuff= libmagic=never-match;; 10499 esac 10500 ;; 10501 esac 10502 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10503 shlibpath_overrides_runpath=no 10504 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10505 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10506 hardcode_into_libs=yes 10507 ;; 10508 10509# No shared lib support for Linux oldld, aout, or coff. 10510linux*oldld* | linux*aout* | linux*coff*) 10511 dynamic_linker=no 10512 ;; 10513 10514# This must be Linux ELF. 10515linux* | k*bsd*-gnu) 10516 version_type=linux 10517 need_lib_prefix=no 10518 need_version=no 10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10520 soname_spec='${libname}${release}${shared_ext}$major' 10521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10522 shlibpath_var=LD_LIBRARY_PATH 10523 shlibpath_overrides_runpath=no 10524 # Some binutils ld are patched to set DT_RUNPATH 10525 save_LDFLAGS=$LDFLAGS 10526 save_libdir=$libdir 10527 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10528 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10529 cat >conftest.$ac_ext <<_ACEOF 10530/* confdefs.h. */ 10531_ACEOF 10532cat confdefs.h >>conftest.$ac_ext 10533cat >>conftest.$ac_ext <<_ACEOF 10534/* end confdefs.h. */ 10535 10536int 10537main () 10538{ 10539 10540 ; 10541 return 0; 10542} 10543_ACEOF 10544rm -f conftest.$ac_objext conftest$ac_exeext 10545if { (ac_try="$ac_link" 10546case "(($ac_try" in 10547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10548 *) ac_try_echo=$ac_try;; 10549esac 10550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10551 (eval "$ac_link") 2>conftest.er1 10552 ac_status=$? 10553 grep -v '^ *+' conftest.er1 >conftest.err 10554 rm -f conftest.er1 10555 cat conftest.err >&5 10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10557 (exit $ac_status); } && { 10558 test -z "$ac_c_werror_flag" || 10559 test ! -s conftest.err 10560 } && test -s conftest$ac_exeext && 10561 $as_test_x conftest$ac_exeext; then 10562 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 10563 shlibpath_overrides_runpath=yes 10564fi 10565 10566else 10567 echo "$as_me: failed program was:" >&5 10568sed 's/^/| /' conftest.$ac_ext >&5 10569 10570 10571fi 10572 10573rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10574 conftest$ac_exeext conftest.$ac_ext 10575 LDFLAGS=$save_LDFLAGS 10576 libdir=$save_libdir 10577 10578 # This implies no fast_install, which is unacceptable. 10579 # Some rework will be needed to allow for fast_install 10580 # before this can be enabled. 10581 hardcode_into_libs=yes 10582 10583 # Append ld.so.conf contents to the search path 10584 if test -f /etc/ld.so.conf; then 10585 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' ' '` 10586 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10587 fi 10588 10589 # We used to test for /lib/ld.so.1 and disable shared libraries on 10590 # powerpc, because MkLinux only supported shared libraries with the 10591 # GNU dynamic linker. Since this was broken with cross compilers, 10592 # most powerpc-linux boxes support dynamic linking these days and 10593 # people can always --disable-shared, the test was removed, and we 10594 # assume the GNU/Linux dynamic linker is in use. 10595 dynamic_linker='GNU/Linux ld.so' 10596 ;; 10597 10598netbsdelf*-gnu) 10599 version_type=linux 10600 need_lib_prefix=no 10601 need_version=no 10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10603 soname_spec='${libname}${release}${shared_ext}$major' 10604 shlibpath_var=LD_LIBRARY_PATH 10605 shlibpath_overrides_runpath=no 10606 hardcode_into_libs=yes 10607 dynamic_linker='NetBSD ld.elf_so' 10608 ;; 10609 10610netbsd*) 10611 version_type=sunos 10612 need_lib_prefix=no 10613 need_version=no 10614 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10616 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10617 dynamic_linker='NetBSD (a.out) ld.so' 10618 else 10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10620 soname_spec='${libname}${release}${shared_ext}$major' 10621 dynamic_linker='NetBSD ld.elf_so' 10622 fi 10623 shlibpath_var=LD_LIBRARY_PATH 10624 shlibpath_overrides_runpath=yes 10625 hardcode_into_libs=yes 10626 ;; 10627 10628newsos6) 10629 version_type=linux 10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10631 shlibpath_var=LD_LIBRARY_PATH 10632 shlibpath_overrides_runpath=yes 10633 ;; 10634 10635*nto* | *qnx*) 10636 version_type=qnx 10637 need_lib_prefix=no 10638 need_version=no 10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10640 soname_spec='${libname}${release}${shared_ext}$major' 10641 shlibpath_var=LD_LIBRARY_PATH 10642 shlibpath_overrides_runpath=no 10643 hardcode_into_libs=yes 10644 dynamic_linker='ldqnx.so' 10645 ;; 10646 10647openbsd*) 10648 version_type=sunos 10649 sys_lib_dlsearch_path_spec="/usr/lib" 10650 need_lib_prefix=no 10651 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10652 case $host_os in 10653 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10654 *) need_version=no ;; 10655 esac 10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10658 shlibpath_var=LD_LIBRARY_PATH 10659 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10660 case $host_os in 10661 openbsd2.[89] | openbsd2.[89].*) 10662 shlibpath_overrides_runpath=no 10663 ;; 10664 *) 10665 shlibpath_overrides_runpath=yes 10666 ;; 10667 esac 10668 else 10669 shlibpath_overrides_runpath=yes 10670 fi 10671 ;; 10672 10673os2*) 10674 libname_spec='$name' 10675 shrext_cmds=".dll" 10676 need_lib_prefix=no 10677 library_names_spec='$libname${shared_ext} $libname.a' 10678 dynamic_linker='OS/2 ld.exe' 10679 shlibpath_var=LIBPATH 10680 ;; 10681 10682osf3* | osf4* | osf5*) 10683 version_type=osf 10684 need_lib_prefix=no 10685 need_version=no 10686 soname_spec='${libname}${release}${shared_ext}$major' 10687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10688 shlibpath_var=LD_LIBRARY_PATH 10689 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10690 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10691 ;; 10692 10693rdos*) 10694 dynamic_linker=no 10695 ;; 10696 10697solaris*) 10698 version_type=linux 10699 need_lib_prefix=no 10700 need_version=no 10701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10702 soname_spec='${libname}${release}${shared_ext}$major' 10703 shlibpath_var=LD_LIBRARY_PATH 10704 shlibpath_overrides_runpath=yes 10705 hardcode_into_libs=yes 10706 # ldd complains unless libraries are executable 10707 postinstall_cmds='chmod +x $lib' 10708 ;; 10709 10710sunos4*) 10711 version_type=sunos 10712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10713 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10714 shlibpath_var=LD_LIBRARY_PATH 10715 shlibpath_overrides_runpath=yes 10716 if test "$with_gnu_ld" = yes; then 10717 need_lib_prefix=no 10718 fi 10719 need_version=yes 10720 ;; 10721 10722sysv4 | sysv4.3*) 10723 version_type=linux 10724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10725 soname_spec='${libname}${release}${shared_ext}$major' 10726 shlibpath_var=LD_LIBRARY_PATH 10727 case $host_vendor in 10728 sni) 10729 shlibpath_overrides_runpath=no 10730 need_lib_prefix=no 10731 runpath_var=LD_RUN_PATH 10732 ;; 10733 siemens) 10734 need_lib_prefix=no 10735 ;; 10736 motorola) 10737 need_lib_prefix=no 10738 need_version=no 10739 shlibpath_overrides_runpath=no 10740 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10741 ;; 10742 esac 10743 ;; 10744 10745sysv4*MP*) 10746 if test -d /usr/nec ;then 10747 version_type=linux 10748 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10749 soname_spec='$libname${shared_ext}.$major' 10750 shlibpath_var=LD_LIBRARY_PATH 10751 fi 10752 ;; 10753 10754sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10755 version_type=freebsd-elf 10756 need_lib_prefix=no 10757 need_version=no 10758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10759 soname_spec='${libname}${release}${shared_ext}$major' 10760 shlibpath_var=LD_LIBRARY_PATH 10761 shlibpath_overrides_runpath=yes 10762 hardcode_into_libs=yes 10763 if test "$with_gnu_ld" = yes; then 10764 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10765 else 10766 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10767 case $host_os in 10768 sco3.2v5*) 10769 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10770 ;; 10771 esac 10772 fi 10773 sys_lib_dlsearch_path_spec='/usr/lib' 10774 ;; 10775 10776tpf*) 10777 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10778 version_type=linux 10779 need_lib_prefix=no 10780 need_version=no 10781 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10782 shlibpath_var=LD_LIBRARY_PATH 10783 shlibpath_overrides_runpath=no 10784 hardcode_into_libs=yes 10785 ;; 10786 10787uts4*) 10788 version_type=linux 10789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10790 soname_spec='${libname}${release}${shared_ext}$major' 10791 shlibpath_var=LD_LIBRARY_PATH 10792 ;; 10793 10794*) 10795 dynamic_linker=no 10796 ;; 10797esac 10798{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10799echo "${ECHO_T}$dynamic_linker" >&6; } 10800test "$dynamic_linker" = no && can_build_shared=no 10801 10802variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10803if test "$GCC" = yes; then 10804 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10805fi 10806 10807if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10808 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10809fi 10810if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10811 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10812fi 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10901echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 10902hardcode_action= 10903if test -n "$hardcode_libdir_flag_spec" || 10904 test -n "$runpath_var" || 10905 test "X$hardcode_automatic" = "Xyes" ; then 10906 10907 # We can hardcode non-existent directories. 10908 if test "$hardcode_direct" != no && 10909 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10910 # have to relink, otherwise we might link with an installed library 10911 # when we should be linking with a yet-to-be-installed one 10912 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10913 test "$hardcode_minus_L" != no; then 10914 # Linking always hardcodes the temporary library directory. 10915 hardcode_action=relink 10916 else 10917 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10918 hardcode_action=immediate 10919 fi 10920else 10921 # We cannot hardcode anything, or else we can only hardcode existing 10922 # directories. 10923 hardcode_action=unsupported 10924fi 10925{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 10926echo "${ECHO_T}$hardcode_action" >&6; } 10927 10928if test "$hardcode_action" = relink || 10929 test "$inherit_rpath" = yes; then 10930 # Fast installation is not supported 10931 enable_fast_install=no 10932elif test "$shlibpath_overrides_runpath" = yes || 10933 test "$enable_shared" = no; then 10934 # Fast installation is not necessary 10935 enable_fast_install=needless 10936fi 10937 10938 10939 10940 10941 10942 10943 if test "x$enable_dlopen" != xyes; then 10944 enable_dlopen=unknown 10945 enable_dlopen_self=unknown 10946 enable_dlopen_self_static=unknown 10947else 10948 lt_cv_dlopen=no 10949 lt_cv_dlopen_libs= 10950 10951 case $host_os in 10952 beos*) 10953 lt_cv_dlopen="load_add_on" 10954 lt_cv_dlopen_libs= 10955 lt_cv_dlopen_self=yes 10956 ;; 10957 10958 mingw* | pw32*) 10959 lt_cv_dlopen="LoadLibrary" 10960 lt_cv_dlopen_libs= 10961 ;; 10962 10963 cygwin*) 10964 lt_cv_dlopen="dlopen" 10965 lt_cv_dlopen_libs= 10966 ;; 10967 10968 darwin*) 10969 # if libdl is installed we need to link against it 10970 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10971echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10972if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10973 echo $ECHO_N "(cached) $ECHO_C" >&6 10974else 10975 ac_check_lib_save_LIBS=$LIBS 10976LIBS="-ldl $LIBS" 10977cat >conftest.$ac_ext <<_ACEOF 10978/* confdefs.h. */ 10979_ACEOF 10980cat confdefs.h >>conftest.$ac_ext 10981cat >>conftest.$ac_ext <<_ACEOF 10982/* end confdefs.h. */ 10983 10984/* Override any GCC internal prototype to avoid an error. 10985 Use char because int might match the return type of a GCC 10986 builtin and then its argument prototype would still apply. */ 10987#ifdef __cplusplus 10988extern "C" 10989#endif 10990char dlopen (); 10991int 10992main () 10993{ 10994return dlopen (); 10995 ; 10996 return 0; 10997} 10998_ACEOF 10999rm -f conftest.$ac_objext conftest$ac_exeext 11000if { (ac_try="$ac_link" 11001case "(($ac_try" in 11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11003 *) ac_try_echo=$ac_try;; 11004esac 11005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11006 (eval "$ac_link") 2>conftest.er1 11007 ac_status=$? 11008 grep -v '^ *+' conftest.er1 >conftest.err 11009 rm -f conftest.er1 11010 cat conftest.err >&5 11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11012 (exit $ac_status); } && { 11013 test -z "$ac_c_werror_flag" || 11014 test ! -s conftest.err 11015 } && test -s conftest$ac_exeext && 11016 $as_test_x conftest$ac_exeext; then 11017 ac_cv_lib_dl_dlopen=yes 11018else 11019 echo "$as_me: failed program was:" >&5 11020sed 's/^/| /' conftest.$ac_ext >&5 11021 11022 ac_cv_lib_dl_dlopen=no 11023fi 11024 11025rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11026 conftest$ac_exeext conftest.$ac_ext 11027LIBS=$ac_check_lib_save_LIBS 11028fi 11029{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11030echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 11031if test $ac_cv_lib_dl_dlopen = yes; then 11032 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11033else 11034 11035 lt_cv_dlopen="dyld" 11036 lt_cv_dlopen_libs= 11037 lt_cv_dlopen_self=yes 11038 11039fi 11040 11041 ;; 11042 11043 *) 11044 { echo "$as_me:$LINENO: checking for shl_load" >&5 11045echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 11046if test "${ac_cv_func_shl_load+set}" = set; then 11047 echo $ECHO_N "(cached) $ECHO_C" >&6 11048else 11049 cat >conftest.$ac_ext <<_ACEOF 11050/* confdefs.h. */ 11051_ACEOF 11052cat confdefs.h >>conftest.$ac_ext 11053cat >>conftest.$ac_ext <<_ACEOF 11054/* end confdefs.h. */ 11055/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11056 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11057#define shl_load innocuous_shl_load 11058 11059/* System header to define __stub macros and hopefully few prototypes, 11060 which can conflict with char shl_load (); below. 11061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11062 <limits.h> exists even on freestanding compilers. */ 11063 11064#ifdef __STDC__ 11065# include <limits.h> 11066#else 11067# include <assert.h> 11068#endif 11069 11070#undef shl_load 11071 11072/* Override any GCC internal prototype to avoid an error. 11073 Use char because int might match the return type of a GCC 11074 builtin and then its argument prototype would still apply. */ 11075#ifdef __cplusplus 11076extern "C" 11077#endif 11078char shl_load (); 11079/* The GNU C library defines this for functions which it implements 11080 to always fail with ENOSYS. Some functions are actually named 11081 something starting with __ and the normal name is an alias. */ 11082#if defined __stub_shl_load || defined __stub___shl_load 11083choke me 11084#endif 11085 11086int 11087main () 11088{ 11089return shl_load (); 11090 ; 11091 return 0; 11092} 11093_ACEOF 11094rm -f conftest.$ac_objext conftest$ac_exeext 11095if { (ac_try="$ac_link" 11096case "(($ac_try" in 11097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11098 *) ac_try_echo=$ac_try;; 11099esac 11100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11101 (eval "$ac_link") 2>conftest.er1 11102 ac_status=$? 11103 grep -v '^ *+' conftest.er1 >conftest.err 11104 rm -f conftest.er1 11105 cat conftest.err >&5 11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11107 (exit $ac_status); } && { 11108 test -z "$ac_c_werror_flag" || 11109 test ! -s conftest.err 11110 } && test -s conftest$ac_exeext && 11111 $as_test_x conftest$ac_exeext; then 11112 ac_cv_func_shl_load=yes 11113else 11114 echo "$as_me: failed program was:" >&5 11115sed 's/^/| /' conftest.$ac_ext >&5 11116 11117 ac_cv_func_shl_load=no 11118fi 11119 11120rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11121 conftest$ac_exeext conftest.$ac_ext 11122fi 11123{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11124echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 11125if test $ac_cv_func_shl_load = yes; then 11126 lt_cv_dlopen="shl_load" 11127else 11128 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11129echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 11130if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11131 echo $ECHO_N "(cached) $ECHO_C" >&6 11132else 11133 ac_check_lib_save_LIBS=$LIBS 11134LIBS="-ldld $LIBS" 11135cat >conftest.$ac_ext <<_ACEOF 11136/* confdefs.h. */ 11137_ACEOF 11138cat confdefs.h >>conftest.$ac_ext 11139cat >>conftest.$ac_ext <<_ACEOF 11140/* end confdefs.h. */ 11141 11142/* Override any GCC internal prototype to avoid an error. 11143 Use char because int might match the return type of a GCC 11144 builtin and then its argument prototype would still apply. */ 11145#ifdef __cplusplus 11146extern "C" 11147#endif 11148char shl_load (); 11149int 11150main () 11151{ 11152return shl_load (); 11153 ; 11154 return 0; 11155} 11156_ACEOF 11157rm -f conftest.$ac_objext conftest$ac_exeext 11158if { (ac_try="$ac_link" 11159case "(($ac_try" in 11160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11161 *) ac_try_echo=$ac_try;; 11162esac 11163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11164 (eval "$ac_link") 2>conftest.er1 11165 ac_status=$? 11166 grep -v '^ *+' conftest.er1 >conftest.err 11167 rm -f conftest.er1 11168 cat conftest.err >&5 11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11170 (exit $ac_status); } && { 11171 test -z "$ac_c_werror_flag" || 11172 test ! -s conftest.err 11173 } && test -s conftest$ac_exeext && 11174 $as_test_x conftest$ac_exeext; then 11175 ac_cv_lib_dld_shl_load=yes 11176else 11177 echo "$as_me: failed program was:" >&5 11178sed 's/^/| /' conftest.$ac_ext >&5 11179 11180 ac_cv_lib_dld_shl_load=no 11181fi 11182 11183rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11184 conftest$ac_exeext conftest.$ac_ext 11185LIBS=$ac_check_lib_save_LIBS 11186fi 11187{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11188echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 11189if test $ac_cv_lib_dld_shl_load = yes; then 11190 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11191else 11192 { echo "$as_me:$LINENO: checking for dlopen" >&5 11193echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 11194if test "${ac_cv_func_dlopen+set}" = set; then 11195 echo $ECHO_N "(cached) $ECHO_C" >&6 11196else 11197 cat >conftest.$ac_ext <<_ACEOF 11198/* confdefs.h. */ 11199_ACEOF 11200cat confdefs.h >>conftest.$ac_ext 11201cat >>conftest.$ac_ext <<_ACEOF 11202/* end confdefs.h. */ 11203/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11204 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11205#define dlopen innocuous_dlopen 11206 11207/* System header to define __stub macros and hopefully few prototypes, 11208 which can conflict with char dlopen (); below. 11209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11210 <limits.h> exists even on freestanding compilers. */ 11211 11212#ifdef __STDC__ 11213# include <limits.h> 11214#else 11215# include <assert.h> 11216#endif 11217 11218#undef dlopen 11219 11220/* Override any GCC internal prototype to avoid an error. 11221 Use char because int might match the return type of a GCC 11222 builtin and then its argument prototype would still apply. */ 11223#ifdef __cplusplus 11224extern "C" 11225#endif 11226char dlopen (); 11227/* The GNU C library defines this for functions which it implements 11228 to always fail with ENOSYS. Some functions are actually named 11229 something starting with __ and the normal name is an alias. */ 11230#if defined __stub_dlopen || defined __stub___dlopen 11231choke me 11232#endif 11233 11234int 11235main () 11236{ 11237return dlopen (); 11238 ; 11239 return 0; 11240} 11241_ACEOF 11242rm -f conftest.$ac_objext conftest$ac_exeext 11243if { (ac_try="$ac_link" 11244case "(($ac_try" in 11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11246 *) ac_try_echo=$ac_try;; 11247esac 11248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11249 (eval "$ac_link") 2>conftest.er1 11250 ac_status=$? 11251 grep -v '^ *+' conftest.er1 >conftest.err 11252 rm -f conftest.er1 11253 cat conftest.err >&5 11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11255 (exit $ac_status); } && { 11256 test -z "$ac_c_werror_flag" || 11257 test ! -s conftest.err 11258 } && test -s conftest$ac_exeext && 11259 $as_test_x conftest$ac_exeext; then 11260 ac_cv_func_dlopen=yes 11261else 11262 echo "$as_me: failed program was:" >&5 11263sed 's/^/| /' conftest.$ac_ext >&5 11264 11265 ac_cv_func_dlopen=no 11266fi 11267 11268rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11269 conftest$ac_exeext conftest.$ac_ext 11270fi 11271{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11272echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 11273if test $ac_cv_func_dlopen = yes; then 11274 lt_cv_dlopen="dlopen" 11275else 11276 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11277echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 11278if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11279 echo $ECHO_N "(cached) $ECHO_C" >&6 11280else 11281 ac_check_lib_save_LIBS=$LIBS 11282LIBS="-ldl $LIBS" 11283cat >conftest.$ac_ext <<_ACEOF 11284/* confdefs.h. */ 11285_ACEOF 11286cat confdefs.h >>conftest.$ac_ext 11287cat >>conftest.$ac_ext <<_ACEOF 11288/* end confdefs.h. */ 11289 11290/* Override any GCC internal prototype to avoid an error. 11291 Use char because int might match the return type of a GCC 11292 builtin and then its argument prototype would still apply. */ 11293#ifdef __cplusplus 11294extern "C" 11295#endif 11296char dlopen (); 11297int 11298main () 11299{ 11300return dlopen (); 11301 ; 11302 return 0; 11303} 11304_ACEOF 11305rm -f conftest.$ac_objext conftest$ac_exeext 11306if { (ac_try="$ac_link" 11307case "(($ac_try" in 11308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11309 *) ac_try_echo=$ac_try;; 11310esac 11311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11312 (eval "$ac_link") 2>conftest.er1 11313 ac_status=$? 11314 grep -v '^ *+' conftest.er1 >conftest.err 11315 rm -f conftest.er1 11316 cat conftest.err >&5 11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11318 (exit $ac_status); } && { 11319 test -z "$ac_c_werror_flag" || 11320 test ! -s conftest.err 11321 } && test -s conftest$ac_exeext && 11322 $as_test_x conftest$ac_exeext; then 11323 ac_cv_lib_dl_dlopen=yes 11324else 11325 echo "$as_me: failed program was:" >&5 11326sed 's/^/| /' conftest.$ac_ext >&5 11327 11328 ac_cv_lib_dl_dlopen=no 11329fi 11330 11331rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11332 conftest$ac_exeext conftest.$ac_ext 11333LIBS=$ac_check_lib_save_LIBS 11334fi 11335{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11336echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 11337if test $ac_cv_lib_dl_dlopen = yes; then 11338 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11339else 11340 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11341echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 11342if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11343 echo $ECHO_N "(cached) $ECHO_C" >&6 11344else 11345 ac_check_lib_save_LIBS=$LIBS 11346LIBS="-lsvld $LIBS" 11347cat >conftest.$ac_ext <<_ACEOF 11348/* confdefs.h. */ 11349_ACEOF 11350cat confdefs.h >>conftest.$ac_ext 11351cat >>conftest.$ac_ext <<_ACEOF 11352/* end confdefs.h. */ 11353 11354/* Override any GCC internal prototype to avoid an error. 11355 Use char because int might match the return type of a GCC 11356 builtin and then its argument prototype would still apply. */ 11357#ifdef __cplusplus 11358extern "C" 11359#endif 11360char dlopen (); 11361int 11362main () 11363{ 11364return dlopen (); 11365 ; 11366 return 0; 11367} 11368_ACEOF 11369rm -f conftest.$ac_objext conftest$ac_exeext 11370if { (ac_try="$ac_link" 11371case "(($ac_try" in 11372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11373 *) ac_try_echo=$ac_try;; 11374esac 11375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11376 (eval "$ac_link") 2>conftest.er1 11377 ac_status=$? 11378 grep -v '^ *+' conftest.er1 >conftest.err 11379 rm -f conftest.er1 11380 cat conftest.err >&5 11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11382 (exit $ac_status); } && { 11383 test -z "$ac_c_werror_flag" || 11384 test ! -s conftest.err 11385 } && test -s conftest$ac_exeext && 11386 $as_test_x conftest$ac_exeext; then 11387 ac_cv_lib_svld_dlopen=yes 11388else 11389 echo "$as_me: failed program was:" >&5 11390sed 's/^/| /' conftest.$ac_ext >&5 11391 11392 ac_cv_lib_svld_dlopen=no 11393fi 11394 11395rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11396 conftest$ac_exeext conftest.$ac_ext 11397LIBS=$ac_check_lib_save_LIBS 11398fi 11399{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11400echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 11401if test $ac_cv_lib_svld_dlopen = yes; then 11402 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11403else 11404 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11405echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 11406if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11407 echo $ECHO_N "(cached) $ECHO_C" >&6 11408else 11409 ac_check_lib_save_LIBS=$LIBS 11410LIBS="-ldld $LIBS" 11411cat >conftest.$ac_ext <<_ACEOF 11412/* confdefs.h. */ 11413_ACEOF 11414cat confdefs.h >>conftest.$ac_ext 11415cat >>conftest.$ac_ext <<_ACEOF 11416/* end confdefs.h. */ 11417 11418/* Override any GCC internal prototype to avoid an error. 11419 Use char because int might match the return type of a GCC 11420 builtin and then its argument prototype would still apply. */ 11421#ifdef __cplusplus 11422extern "C" 11423#endif 11424char dld_link (); 11425int 11426main () 11427{ 11428return dld_link (); 11429 ; 11430 return 0; 11431} 11432_ACEOF 11433rm -f conftest.$ac_objext conftest$ac_exeext 11434if { (ac_try="$ac_link" 11435case "(($ac_try" in 11436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11437 *) ac_try_echo=$ac_try;; 11438esac 11439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11440 (eval "$ac_link") 2>conftest.er1 11441 ac_status=$? 11442 grep -v '^ *+' conftest.er1 >conftest.err 11443 rm -f conftest.er1 11444 cat conftest.err >&5 11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11446 (exit $ac_status); } && { 11447 test -z "$ac_c_werror_flag" || 11448 test ! -s conftest.err 11449 } && test -s conftest$ac_exeext && 11450 $as_test_x conftest$ac_exeext; then 11451 ac_cv_lib_dld_dld_link=yes 11452else 11453 echo "$as_me: failed program was:" >&5 11454sed 's/^/| /' conftest.$ac_ext >&5 11455 11456 ac_cv_lib_dld_dld_link=no 11457fi 11458 11459rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11460 conftest$ac_exeext conftest.$ac_ext 11461LIBS=$ac_check_lib_save_LIBS 11462fi 11463{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11464echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 11465if test $ac_cv_lib_dld_dld_link = yes; then 11466 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11467fi 11468 11469 11470fi 11471 11472 11473fi 11474 11475 11476fi 11477 11478 11479fi 11480 11481 11482fi 11483 11484 ;; 11485 esac 11486 11487 if test "x$lt_cv_dlopen" != xno; then 11488 enable_dlopen=yes 11489 else 11490 enable_dlopen=no 11491 fi 11492 11493 case $lt_cv_dlopen in 11494 dlopen) 11495 save_CPPFLAGS="$CPPFLAGS" 11496 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11497 11498 save_LDFLAGS="$LDFLAGS" 11499 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11500 11501 save_LIBS="$LIBS" 11502 LIBS="$lt_cv_dlopen_libs $LIBS" 11503 11504 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11505echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 11506if test "${lt_cv_dlopen_self+set}" = set; then 11507 echo $ECHO_N "(cached) $ECHO_C" >&6 11508else 11509 if test "$cross_compiling" = yes; then : 11510 lt_cv_dlopen_self=cross 11511else 11512 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11513 lt_status=$lt_dlunknown 11514 cat > conftest.$ac_ext <<_LT_EOF 11515#line 11515 "configure" 11516#include "confdefs.h" 11517 11518#if HAVE_DLFCN_H 11519#include <dlfcn.h> 11520#endif 11521 11522#include <stdio.h> 11523 11524#ifdef RTLD_GLOBAL 11525# define LT_DLGLOBAL RTLD_GLOBAL 11526#else 11527# ifdef DL_GLOBAL 11528# define LT_DLGLOBAL DL_GLOBAL 11529# else 11530# define LT_DLGLOBAL 0 11531# endif 11532#endif 11533 11534/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11535 find out it does not work in some platform. */ 11536#ifndef LT_DLLAZY_OR_NOW 11537# ifdef RTLD_LAZY 11538# define LT_DLLAZY_OR_NOW RTLD_LAZY 11539# else 11540# ifdef DL_LAZY 11541# define LT_DLLAZY_OR_NOW DL_LAZY 11542# else 11543# ifdef RTLD_NOW 11544# define LT_DLLAZY_OR_NOW RTLD_NOW 11545# else 11546# ifdef DL_NOW 11547# define LT_DLLAZY_OR_NOW DL_NOW 11548# else 11549# define LT_DLLAZY_OR_NOW 0 11550# endif 11551# endif 11552# endif 11553# endif 11554#endif 11555 11556#ifdef __cplusplus 11557extern "C" void exit (int); 11558#endif 11559 11560void fnord() { int i=42;} 11561int main () 11562{ 11563 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11564 int status = $lt_dlunknown; 11565 11566 if (self) 11567 { 11568 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11569 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11570 /* dlclose (self); */ 11571 } 11572 else 11573 puts (dlerror ()); 11574 11575 exit (status); 11576} 11577_LT_EOF 11578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11579 (eval $ac_link) 2>&5 11580 ac_status=$? 11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11582 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11583 (./conftest; exit; ) >&5 2>/dev/null 11584 lt_status=$? 11585 case x$lt_status in 11586 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11587 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11588 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11589 esac 11590 else : 11591 # compilation failed 11592 lt_cv_dlopen_self=no 11593 fi 11594fi 11595rm -fr conftest* 11596 11597 11598fi 11599{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11600echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 11601 11602 if test "x$lt_cv_dlopen_self" = xyes; then 11603 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11604 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11605echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 11606if test "${lt_cv_dlopen_self_static+set}" = set; then 11607 echo $ECHO_N "(cached) $ECHO_C" >&6 11608else 11609 if test "$cross_compiling" = yes; then : 11610 lt_cv_dlopen_self_static=cross 11611else 11612 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11613 lt_status=$lt_dlunknown 11614 cat > conftest.$ac_ext <<_LT_EOF 11615#line 11615 "configure" 11616#include "confdefs.h" 11617 11618#if HAVE_DLFCN_H 11619#include <dlfcn.h> 11620#endif 11621 11622#include <stdio.h> 11623 11624#ifdef RTLD_GLOBAL 11625# define LT_DLGLOBAL RTLD_GLOBAL 11626#else 11627# ifdef DL_GLOBAL 11628# define LT_DLGLOBAL DL_GLOBAL 11629# else 11630# define LT_DLGLOBAL 0 11631# endif 11632#endif 11633 11634/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11635 find out it does not work in some platform. */ 11636#ifndef LT_DLLAZY_OR_NOW 11637# ifdef RTLD_LAZY 11638# define LT_DLLAZY_OR_NOW RTLD_LAZY 11639# else 11640# ifdef DL_LAZY 11641# define LT_DLLAZY_OR_NOW DL_LAZY 11642# else 11643# ifdef RTLD_NOW 11644# define LT_DLLAZY_OR_NOW RTLD_NOW 11645# else 11646# ifdef DL_NOW 11647# define LT_DLLAZY_OR_NOW DL_NOW 11648# else 11649# define LT_DLLAZY_OR_NOW 0 11650# endif 11651# endif 11652# endif 11653# endif 11654#endif 11655 11656#ifdef __cplusplus 11657extern "C" void exit (int); 11658#endif 11659 11660void fnord() { int i=42;} 11661int main () 11662{ 11663 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11664 int status = $lt_dlunknown; 11665 11666 if (self) 11667 { 11668 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11669 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11670 /* dlclose (self); */ 11671 } 11672 else 11673 puts (dlerror ()); 11674 11675 exit (status); 11676} 11677_LT_EOF 11678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11679 (eval $ac_link) 2>&5 11680 ac_status=$? 11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11682 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11683 (./conftest; exit; ) >&5 2>/dev/null 11684 lt_status=$? 11685 case x$lt_status in 11686 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11687 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11688 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11689 esac 11690 else : 11691 # compilation failed 11692 lt_cv_dlopen_self_static=no 11693 fi 11694fi 11695rm -fr conftest* 11696 11697 11698fi 11699{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11700echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 11701 fi 11702 11703 CPPFLAGS="$save_CPPFLAGS" 11704 LDFLAGS="$save_LDFLAGS" 11705 LIBS="$save_LIBS" 11706 ;; 11707 esac 11708 11709 case $lt_cv_dlopen_self in 11710 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11711 *) enable_dlopen_self=unknown ;; 11712 esac 11713 11714 case $lt_cv_dlopen_self_static in 11715 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11716 *) enable_dlopen_self_static=unknown ;; 11717 esac 11718fi 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736striplib= 11737old_striplib= 11738{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11739echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 11740if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11741 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11742 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11743 { echo "$as_me:$LINENO: result: yes" >&5 11744echo "${ECHO_T}yes" >&6; } 11745else 11746# FIXME - insert some real tests, host_os isn't really good enough 11747 case $host_os in 11748 darwin*) 11749 if test -n "$STRIP" ; then 11750 striplib="$STRIP -x" 11751 old_striplib="$STRIP -S" 11752 { echo "$as_me:$LINENO: result: yes" >&5 11753echo "${ECHO_T}yes" >&6; } 11754 else 11755 { echo "$as_me:$LINENO: result: no" >&5 11756echo "${ECHO_T}no" >&6; } 11757 fi 11758 ;; 11759 *) 11760 { echo "$as_me:$LINENO: result: no" >&5 11761echo "${ECHO_T}no" >&6; } 11762 ;; 11763 esac 11764fi 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 # Report which library types will actually be built 11778 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11779echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 11780 { echo "$as_me:$LINENO: result: $can_build_shared" >&5 11781echo "${ECHO_T}$can_build_shared" >&6; } 11782 11783 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11784echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 11785 test "$can_build_shared" = "no" && enable_shared=no 11786 11787 # On AIX, shared libraries and static libraries use the same namespace, and 11788 # are all built from PIC. 11789 case $host_os in 11790 aix3*) 11791 test "$enable_shared" = yes && enable_static=no 11792 if test -n "$RANLIB"; then 11793 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11794 postinstall_cmds='$RANLIB $lib' 11795 fi 11796 ;; 11797 11798 aix[4-9]*) 11799 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11800 test "$enable_shared" = yes && enable_static=no 11801 fi 11802 ;; 11803 esac 11804 { echo "$as_me:$LINENO: result: $enable_shared" >&5 11805echo "${ECHO_T}$enable_shared" >&6; } 11806 11807 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11808echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 11809 # Make sure either enable_shared or enable_static is yes. 11810 test "$enable_shared" = yes || enable_static=yes 11811 { echo "$as_me:$LINENO: result: $enable_static" >&5 11812echo "${ECHO_T}$enable_static" >&6; } 11813 11814 11815 11816 11817fi 11818ac_ext=c 11819ac_cpp='$CPP $CPPFLAGS' 11820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11822ac_compiler_gnu=$ac_cv_c_compiler_gnu 11823 11824CC="$lt_save_CC" 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 ac_config_commands="$ac_config_commands libtool" 11839 11840 11841 11842 11843# Only expand once: 11844 11845 11846ac_ext=c 11847ac_cpp='$CPP $CPPFLAGS' 11848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11850ac_compiler_gnu=$ac_cv_c_compiler_gnu 11851if test -n "$ac_tool_prefix"; then 11852 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11853set dummy ${ac_tool_prefix}gcc; ac_word=$2 11854{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11856if test "${ac_cv_prog_CC+set}" = set; then 11857 echo $ECHO_N "(cached) $ECHO_C" >&6 11858else 11859 if test -n "$CC"; then 11860 ac_cv_prog_CC="$CC" # Let the user override the test. 11861else 11862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11863for as_dir in $PATH 11864do 11865 IFS=$as_save_IFS 11866 test -z "$as_dir" && as_dir=. 11867 for ac_exec_ext in '' $ac_executable_extensions; do 11868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11869 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11871 break 2 11872 fi 11873done 11874done 11875IFS=$as_save_IFS 11876 11877fi 11878fi 11879CC=$ac_cv_prog_CC 11880if test -n "$CC"; then 11881 { echo "$as_me:$LINENO: result: $CC" >&5 11882echo "${ECHO_T}$CC" >&6; } 11883else 11884 { echo "$as_me:$LINENO: result: no" >&5 11885echo "${ECHO_T}no" >&6; } 11886fi 11887 11888 11889fi 11890if test -z "$ac_cv_prog_CC"; then 11891 ac_ct_CC=$CC 11892 # Extract the first word of "gcc", so it can be a program name with args. 11893set dummy gcc; ac_word=$2 11894{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11896if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 11897 echo $ECHO_N "(cached) $ECHO_C" >&6 11898else 11899 if test -n "$ac_ct_CC"; then 11900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11901else 11902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11903for as_dir in $PATH 11904do 11905 IFS=$as_save_IFS 11906 test -z "$as_dir" && as_dir=. 11907 for ac_exec_ext in '' $ac_executable_extensions; do 11908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11909 ac_cv_prog_ac_ct_CC="gcc" 11910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11911 break 2 11912 fi 11913done 11914done 11915IFS=$as_save_IFS 11916 11917fi 11918fi 11919ac_ct_CC=$ac_cv_prog_ac_ct_CC 11920if test -n "$ac_ct_CC"; then 11921 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 11922echo "${ECHO_T}$ac_ct_CC" >&6; } 11923else 11924 { echo "$as_me:$LINENO: result: no" >&5 11925echo "${ECHO_T}no" >&6; } 11926fi 11927 11928 if test "x$ac_ct_CC" = x; then 11929 CC="" 11930 else 11931 case $cross_compiling:$ac_tool_warned in 11932yes:) 11933{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 11934whose name does not start with the host triplet. If you think this 11935configuration is useful to you, please write to autoconf@gnu.org." >&5 11936echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 11937whose name does not start with the host triplet. If you think this 11938configuration is useful to you, please write to autoconf@gnu.org." >&2;} 11939ac_tool_warned=yes ;; 11940esac 11941 CC=$ac_ct_CC 11942 fi 11943else 11944 CC="$ac_cv_prog_CC" 11945fi 11946 11947if test -z "$CC"; then 11948 if test -n "$ac_tool_prefix"; then 11949 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11950set dummy ${ac_tool_prefix}cc; ac_word=$2 11951{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11953if test "${ac_cv_prog_CC+set}" = set; then 11954 echo $ECHO_N "(cached) $ECHO_C" >&6 11955else 11956 if test -n "$CC"; then 11957 ac_cv_prog_CC="$CC" # Let the user override the test. 11958else 11959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11960for as_dir in $PATH 11961do 11962 IFS=$as_save_IFS 11963 test -z "$as_dir" && as_dir=. 11964 for ac_exec_ext in '' $ac_executable_extensions; do 11965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11966 ac_cv_prog_CC="${ac_tool_prefix}cc" 11967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11968 break 2 11969 fi 11970done 11971done 11972IFS=$as_save_IFS 11973 11974fi 11975fi 11976CC=$ac_cv_prog_CC 11977if test -n "$CC"; then 11978 { echo "$as_me:$LINENO: result: $CC" >&5 11979echo "${ECHO_T}$CC" >&6; } 11980else 11981 { echo "$as_me:$LINENO: result: no" >&5 11982echo "${ECHO_T}no" >&6; } 11983fi 11984 11985 11986 fi 11987fi 11988if test -z "$CC"; then 11989 # Extract the first word of "cc", so it can be a program name with args. 11990set dummy cc; ac_word=$2 11991{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11993if test "${ac_cv_prog_CC+set}" = set; then 11994 echo $ECHO_N "(cached) $ECHO_C" >&6 11995else 11996 if test -n "$CC"; then 11997 ac_cv_prog_CC="$CC" # Let the user override the test. 11998else 11999 ac_prog_rejected=no 12000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12001for as_dir in $PATH 12002do 12003 IFS=$as_save_IFS 12004 test -z "$as_dir" && as_dir=. 12005 for ac_exec_ext in '' $ac_executable_extensions; do 12006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12007 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12008 ac_prog_rejected=yes 12009 continue 12010 fi 12011 ac_cv_prog_CC="cc" 12012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12013 break 2 12014 fi 12015done 12016done 12017IFS=$as_save_IFS 12018 12019if test $ac_prog_rejected = yes; then 12020 # We found a bogon in the path, so make sure we never use it. 12021 set dummy $ac_cv_prog_CC 12022 shift 12023 if test $# != 0; then 12024 # We chose a different compiler from the bogus one. 12025 # However, it has the same basename, so the bogon will be chosen 12026 # first if we set CC to just the basename; use the full file name. 12027 shift 12028 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12029 fi 12030fi 12031fi 12032fi 12033CC=$ac_cv_prog_CC 12034if test -n "$CC"; then 12035 { echo "$as_me:$LINENO: result: $CC" >&5 12036echo "${ECHO_T}$CC" >&6; } 12037else 12038 { echo "$as_me:$LINENO: result: no" >&5 12039echo "${ECHO_T}no" >&6; } 12040fi 12041 12042 12043fi 12044if test -z "$CC"; then 12045 if test -n "$ac_tool_prefix"; then 12046 for ac_prog in cl.exe 12047 do 12048 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12049set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12050{ echo "$as_me:$LINENO: checking for $ac_word" >&5 12051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 12052if test "${ac_cv_prog_CC+set}" = set; then 12053 echo $ECHO_N "(cached) $ECHO_C" >&6 12054else 12055 if test -n "$CC"; then 12056 ac_cv_prog_CC="$CC" # Let the user override the test. 12057else 12058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12059for as_dir in $PATH 12060do 12061 IFS=$as_save_IFS 12062 test -z "$as_dir" && as_dir=. 12063 for ac_exec_ext in '' $ac_executable_extensions; do 12064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12065 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12067 break 2 12068 fi 12069done 12070done 12071IFS=$as_save_IFS 12072 12073fi 12074fi 12075CC=$ac_cv_prog_CC 12076if test -n "$CC"; then 12077 { echo "$as_me:$LINENO: result: $CC" >&5 12078echo "${ECHO_T}$CC" >&6; } 12079else 12080 { echo "$as_me:$LINENO: result: no" >&5 12081echo "${ECHO_T}no" >&6; } 12082fi 12083 12084 12085 test -n "$CC" && break 12086 done 12087fi 12088if test -z "$CC"; then 12089 ac_ct_CC=$CC 12090 for ac_prog in cl.exe 12091do 12092 # Extract the first word of "$ac_prog", so it can be a program name with args. 12093set dummy $ac_prog; ac_word=$2 12094{ echo "$as_me:$LINENO: checking for $ac_word" >&5 12095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 12096if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 12097 echo $ECHO_N "(cached) $ECHO_C" >&6 12098else 12099 if test -n "$ac_ct_CC"; then 12100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12101else 12102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12103for as_dir in $PATH 12104do 12105 IFS=$as_save_IFS 12106 test -z "$as_dir" && as_dir=. 12107 for ac_exec_ext in '' $ac_executable_extensions; do 12108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12109 ac_cv_prog_ac_ct_CC="$ac_prog" 12110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12111 break 2 12112 fi 12113done 12114done 12115IFS=$as_save_IFS 12116 12117fi 12118fi 12119ac_ct_CC=$ac_cv_prog_ac_ct_CC 12120if test -n "$ac_ct_CC"; then 12121 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 12122echo "${ECHO_T}$ac_ct_CC" >&6; } 12123else 12124 { echo "$as_me:$LINENO: result: no" >&5 12125echo "${ECHO_T}no" >&6; } 12126fi 12127 12128 12129 test -n "$ac_ct_CC" && break 12130done 12131 12132 if test "x$ac_ct_CC" = x; then 12133 CC="" 12134 else 12135 case $cross_compiling:$ac_tool_warned in 12136yes:) 12137{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 12138whose name does not start with the host triplet. If you think this 12139configuration is useful to you, please write to autoconf@gnu.org." >&5 12140echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 12141whose name does not start with the host triplet. If you think this 12142configuration is useful to you, please write to autoconf@gnu.org." >&2;} 12143ac_tool_warned=yes ;; 12144esac 12145 CC=$ac_ct_CC 12146 fi 12147fi 12148 12149fi 12150 12151 12152test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 12153See \`config.log' for more details." >&5 12154echo "$as_me: error: no acceptable C compiler found in \$PATH 12155See \`config.log' for more details." >&2;} 12156 { (exit 1); exit 1; }; } 12157 12158# Provide some information about the compiler. 12159echo "$as_me:$LINENO: checking for C compiler version" >&5 12160ac_compiler=`set X $ac_compile; echo $2` 12161{ (ac_try="$ac_compiler --version >&5" 12162case "(($ac_try" in 12163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12164 *) ac_try_echo=$ac_try;; 12165esac 12166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12167 (eval "$ac_compiler --version >&5") 2>&5 12168 ac_status=$? 12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12170 (exit $ac_status); } 12171{ (ac_try="$ac_compiler -v >&5" 12172case "(($ac_try" in 12173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12174 *) ac_try_echo=$ac_try;; 12175esac 12176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12177 (eval "$ac_compiler -v >&5") 2>&5 12178 ac_status=$? 12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12180 (exit $ac_status); } 12181{ (ac_try="$ac_compiler -V >&5" 12182case "(($ac_try" in 12183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12184 *) ac_try_echo=$ac_try;; 12185esac 12186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12187 (eval "$ac_compiler -V >&5") 2>&5 12188 ac_status=$? 12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12190 (exit $ac_status); } 12191 12192{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 12193echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 12194if test "${ac_cv_c_compiler_gnu+set}" = set; then 12195 echo $ECHO_N "(cached) $ECHO_C" >&6 12196else 12197 cat >conftest.$ac_ext <<_ACEOF 12198/* confdefs.h. */ 12199_ACEOF 12200cat confdefs.h >>conftest.$ac_ext 12201cat >>conftest.$ac_ext <<_ACEOF 12202/* end confdefs.h. */ 12203 12204int 12205main () 12206{ 12207#ifndef __GNUC__ 12208 choke me 12209#endif 12210 12211 ; 12212 return 0; 12213} 12214_ACEOF 12215rm -f conftest.$ac_objext 12216if { (ac_try="$ac_compile" 12217case "(($ac_try" in 12218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12219 *) ac_try_echo=$ac_try;; 12220esac 12221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12222 (eval "$ac_compile") 2>conftest.er1 12223 ac_status=$? 12224 grep -v '^ *+' conftest.er1 >conftest.err 12225 rm -f conftest.er1 12226 cat conftest.err >&5 12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12228 (exit $ac_status); } && { 12229 test -z "$ac_c_werror_flag" || 12230 test ! -s conftest.err 12231 } && test -s conftest.$ac_objext; then 12232 ac_compiler_gnu=yes 12233else 12234 echo "$as_me: failed program was:" >&5 12235sed 's/^/| /' conftest.$ac_ext >&5 12236 12237 ac_compiler_gnu=no 12238fi 12239 12240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12241ac_cv_c_compiler_gnu=$ac_compiler_gnu 12242 12243fi 12244{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 12245echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 12246GCC=`test $ac_compiler_gnu = yes && echo yes` 12247ac_test_CFLAGS=${CFLAGS+set} 12248ac_save_CFLAGS=$CFLAGS 12249{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 12250echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 12251if test "${ac_cv_prog_cc_g+set}" = set; then 12252 echo $ECHO_N "(cached) $ECHO_C" >&6 12253else 12254 ac_save_c_werror_flag=$ac_c_werror_flag 12255 ac_c_werror_flag=yes 12256 ac_cv_prog_cc_g=no 12257 CFLAGS="-g" 12258 cat >conftest.$ac_ext <<_ACEOF 12259/* confdefs.h. */ 12260_ACEOF 12261cat confdefs.h >>conftest.$ac_ext 12262cat >>conftest.$ac_ext <<_ACEOF 12263/* end confdefs.h. */ 12264 12265int 12266main () 12267{ 12268 12269 ; 12270 return 0; 12271} 12272_ACEOF 12273rm -f conftest.$ac_objext 12274if { (ac_try="$ac_compile" 12275case "(($ac_try" in 12276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12277 *) ac_try_echo=$ac_try;; 12278esac 12279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12280 (eval "$ac_compile") 2>conftest.er1 12281 ac_status=$? 12282 grep -v '^ *+' conftest.er1 >conftest.err 12283 rm -f conftest.er1 12284 cat conftest.err >&5 12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12286 (exit $ac_status); } && { 12287 test -z "$ac_c_werror_flag" || 12288 test ! -s conftest.err 12289 } && test -s conftest.$ac_objext; then 12290 ac_cv_prog_cc_g=yes 12291else 12292 echo "$as_me: failed program was:" >&5 12293sed 's/^/| /' conftest.$ac_ext >&5 12294 12295 CFLAGS="" 12296 cat >conftest.$ac_ext <<_ACEOF 12297/* confdefs.h. */ 12298_ACEOF 12299cat confdefs.h >>conftest.$ac_ext 12300cat >>conftest.$ac_ext <<_ACEOF 12301/* end confdefs.h. */ 12302 12303int 12304main () 12305{ 12306 12307 ; 12308 return 0; 12309} 12310_ACEOF 12311rm -f conftest.$ac_objext 12312if { (ac_try="$ac_compile" 12313case "(($ac_try" in 12314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12315 *) ac_try_echo=$ac_try;; 12316esac 12317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12318 (eval "$ac_compile") 2>conftest.er1 12319 ac_status=$? 12320 grep -v '^ *+' conftest.er1 >conftest.err 12321 rm -f conftest.er1 12322 cat conftest.err >&5 12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12324 (exit $ac_status); } && { 12325 test -z "$ac_c_werror_flag" || 12326 test ! -s conftest.err 12327 } && test -s conftest.$ac_objext; then 12328 : 12329else 12330 echo "$as_me: failed program was:" >&5 12331sed 's/^/| /' conftest.$ac_ext >&5 12332 12333 ac_c_werror_flag=$ac_save_c_werror_flag 12334 CFLAGS="-g" 12335 cat >conftest.$ac_ext <<_ACEOF 12336/* confdefs.h. */ 12337_ACEOF 12338cat confdefs.h >>conftest.$ac_ext 12339cat >>conftest.$ac_ext <<_ACEOF 12340/* end confdefs.h. */ 12341 12342int 12343main () 12344{ 12345 12346 ; 12347 return 0; 12348} 12349_ACEOF 12350rm -f conftest.$ac_objext 12351if { (ac_try="$ac_compile" 12352case "(($ac_try" in 12353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12354 *) ac_try_echo=$ac_try;; 12355esac 12356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12357 (eval "$ac_compile") 2>conftest.er1 12358 ac_status=$? 12359 grep -v '^ *+' conftest.er1 >conftest.err 12360 rm -f conftest.er1 12361 cat conftest.err >&5 12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12363 (exit $ac_status); } && { 12364 test -z "$ac_c_werror_flag" || 12365 test ! -s conftest.err 12366 } && test -s conftest.$ac_objext; then 12367 ac_cv_prog_cc_g=yes 12368else 12369 echo "$as_me: failed program was:" >&5 12370sed 's/^/| /' conftest.$ac_ext >&5 12371 12372 12373fi 12374 12375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12376fi 12377 12378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12379fi 12380 12381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12382 ac_c_werror_flag=$ac_save_c_werror_flag 12383fi 12384{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 12385echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 12386if test "$ac_test_CFLAGS" = set; then 12387 CFLAGS=$ac_save_CFLAGS 12388elif test $ac_cv_prog_cc_g = yes; then 12389 if test "$GCC" = yes; then 12390 CFLAGS="-g -O2" 12391 else 12392 CFLAGS="-g" 12393 fi 12394else 12395 if test "$GCC" = yes; then 12396 CFLAGS="-O2" 12397 else 12398 CFLAGS= 12399 fi 12400fi 12401{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 12402echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 12403if test "${ac_cv_prog_cc_c89+set}" = set; then 12404 echo $ECHO_N "(cached) $ECHO_C" >&6 12405else 12406 ac_cv_prog_cc_c89=no 12407ac_save_CC=$CC 12408cat >conftest.$ac_ext <<_ACEOF 12409/* confdefs.h. */ 12410_ACEOF 12411cat confdefs.h >>conftest.$ac_ext 12412cat >>conftest.$ac_ext <<_ACEOF 12413/* end confdefs.h. */ 12414#include <stdarg.h> 12415#include <stdio.h> 12416#include <sys/types.h> 12417#include <sys/stat.h> 12418/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12419struct buf { int x; }; 12420FILE * (*rcsopen) (struct buf *, struct stat *, int); 12421static char *e (p, i) 12422 char **p; 12423 int i; 12424{ 12425 return p[i]; 12426} 12427static char *f (char * (*g) (char **, int), char **p, ...) 12428{ 12429 char *s; 12430 va_list v; 12431 va_start (v,p); 12432 s = g (p, va_arg (v,int)); 12433 va_end (v); 12434 return s; 12435} 12436 12437/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12438 function prototypes and stuff, but not '\xHH' hex character constants. 12439 These don't provoke an error unfortunately, instead are silently treated 12440 as 'x'. The following induces an error, until -std is added to get 12441 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12442 array size at least. It's necessary to write '\x00'==0 to get something 12443 that's true only with -std. */ 12444int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12445 12446/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12447 inside strings and character constants. */ 12448#define FOO(x) 'x' 12449int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12450 12451int test (int i, double x); 12452struct s1 {int (*f) (int a);}; 12453struct s2 {int (*f) (double a);}; 12454int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12455int argc; 12456char **argv; 12457int 12458main () 12459{ 12460return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12461 ; 12462 return 0; 12463} 12464_ACEOF 12465for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12466 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12467do 12468 CC="$ac_save_CC $ac_arg" 12469 rm -f conftest.$ac_objext 12470if { (ac_try="$ac_compile" 12471case "(($ac_try" in 12472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12473 *) ac_try_echo=$ac_try;; 12474esac 12475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12476 (eval "$ac_compile") 2>conftest.er1 12477 ac_status=$? 12478 grep -v '^ *+' conftest.er1 >conftest.err 12479 rm -f conftest.er1 12480 cat conftest.err >&5 12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12482 (exit $ac_status); } && { 12483 test -z "$ac_c_werror_flag" || 12484 test ! -s conftest.err 12485 } && test -s conftest.$ac_objext; then 12486 ac_cv_prog_cc_c89=$ac_arg 12487else 12488 echo "$as_me: failed program was:" >&5 12489sed 's/^/| /' conftest.$ac_ext >&5 12490 12491 12492fi 12493 12494rm -f core conftest.err conftest.$ac_objext 12495 test "x$ac_cv_prog_cc_c89" != "xno" && break 12496done 12497rm -f conftest.$ac_ext 12498CC=$ac_save_CC 12499 12500fi 12501# AC_CACHE_VAL 12502case "x$ac_cv_prog_cc_c89" in 12503 x) 12504 { echo "$as_me:$LINENO: result: none needed" >&5 12505echo "${ECHO_T}none needed" >&6; } ;; 12506 xno) 12507 { echo "$as_me:$LINENO: result: unsupported" >&5 12508echo "${ECHO_T}unsupported" >&6; } ;; 12509 *) 12510 CC="$CC $ac_cv_prog_cc_c89" 12511 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 12512echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 12513esac 12514 12515 12516ac_ext=c 12517ac_cpp='$CPP $CPPFLAGS' 12518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12520ac_compiler_gnu=$ac_cv_c_compiler_gnu 12521 12522 12523if test "x$GCC" = "xyes"; then 12524 CPPFLAGS="$CPPFLAGS -Wall" 12525fi 12526 12527 12528 12529 12530 12531# Check whether --with-xorg-module-dir was given. 12532if test "${with_xorg_module_dir+set}" = set; then 12533 withval=$with_xorg_module_dir; moduledir="$withval" 12534else 12535 moduledir="$libdir/xorg/modules" 12536fi 12537 12538 12539# Check whether --enable-dri was given. 12540if test "${enable_dri+set}" = set; then 12541 enableval=$enable_dri; DRI="$enableval" 12542else 12543 DRI=auto 12544fi 12545 12546 12547# Check whether --enable-exa was given. 12548if test "${enable_exa+set}" = set; then 12549 enableval=$enable_exa; EXA="$enableval" 12550else 12551 EXA=yes 12552fi 12553 12554 12555# Check whether --enable-kms was given. 12556if test "${enable_kms+set}" = set; then 12557 enableval=$enable_kms; DRM_MODE="$enableval" 12558else 12559 DRM_MODE=yes 12560fi 12561 12562 12563 12564# Check whether --with-xserver-source was given. 12565if test "${with_xserver_source+set}" = set; then 12566 withval=$with_xserver_source; XSERVER_SOURCE="$withval" 12567else 12568 XSERVER_SOURCE="" 12569fi 12570 12571 12572# Checks for extensions 12573 12574 SAVE_CFLAGS="$CFLAGS" 12575 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12576 cat >conftest.$ac_ext <<_ACEOF 12577/* confdefs.h. */ 12578_ACEOF 12579cat confdefs.h >>conftest.$ac_ext 12580cat >>conftest.$ac_ext <<_ACEOF 12581/* end confdefs.h. */ 12582 12583#include "xorg-server.h" 12584#if !defined RANDR 12585#error RANDR not defined 12586#endif 12587 12588int 12589main () 12590{ 12591 12592 ; 12593 return 0; 12594} 12595_ACEOF 12596rm -f conftest.$ac_objext 12597if { (ac_try="$ac_compile" 12598case "(($ac_try" in 12599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12600 *) ac_try_echo=$ac_try;; 12601esac 12602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12603 (eval "$ac_compile") 2>conftest.er1 12604 ac_status=$? 12605 grep -v '^ *+' conftest.er1 >conftest.err 12606 rm -f conftest.er1 12607 cat conftest.err >&5 12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12609 (exit $ac_status); } && { 12610 test -z "$ac_c_werror_flag" || 12611 test ! -s conftest.err 12612 } && test -s conftest.$ac_objext; then 12613 _EXT_CHECK=yes 12614else 12615 echo "$as_me: failed program was:" >&5 12616sed 's/^/| /' conftest.$ac_ext >&5 12617 12618 _EXT_CHECK=no 12619fi 12620 12621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12622 CFLAGS="$SAVE_CFLAGS" 12623 { echo "$as_me:$LINENO: checking if RANDR is defined" >&5 12624echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6; } 12625 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12626echo "${ECHO_T}$_EXT_CHECK" >&6; } 12627 if test "$_EXT_CHECK" != no; then 12628 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 12629 fi 12630 12631 12632 SAVE_CFLAGS="$CFLAGS" 12633 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12634 cat >conftest.$ac_ext <<_ACEOF 12635/* confdefs.h. */ 12636_ACEOF 12637cat confdefs.h >>conftest.$ac_ext 12638cat >>conftest.$ac_ext <<_ACEOF 12639/* end confdefs.h. */ 12640 12641#include "xorg-server.h" 12642#if !defined RENDER 12643#error RENDER not defined 12644#endif 12645 12646int 12647main () 12648{ 12649 12650 ; 12651 return 0; 12652} 12653_ACEOF 12654rm -f conftest.$ac_objext 12655if { (ac_try="$ac_compile" 12656case "(($ac_try" in 12657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12658 *) ac_try_echo=$ac_try;; 12659esac 12660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12661 (eval "$ac_compile") 2>conftest.er1 12662 ac_status=$? 12663 grep -v '^ *+' conftest.er1 >conftest.err 12664 rm -f conftest.er1 12665 cat conftest.err >&5 12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12667 (exit $ac_status); } && { 12668 test -z "$ac_c_werror_flag" || 12669 test ! -s conftest.err 12670 } && test -s conftest.$ac_objext; then 12671 _EXT_CHECK=yes 12672else 12673 echo "$as_me: failed program was:" >&5 12674sed 's/^/| /' conftest.$ac_ext >&5 12675 12676 _EXT_CHECK=no 12677fi 12678 12679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12680 CFLAGS="$SAVE_CFLAGS" 12681 { echo "$as_me:$LINENO: checking if RENDER is defined" >&5 12682echo $ECHO_N "checking if RENDER is defined... $ECHO_C" >&6; } 12683 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12684echo "${ECHO_T}$_EXT_CHECK" >&6; } 12685 if test "$_EXT_CHECK" != no; then 12686 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 12687 fi 12688 12689 12690 SAVE_CFLAGS="$CFLAGS" 12691 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12692 cat >conftest.$ac_ext <<_ACEOF 12693/* confdefs.h. */ 12694_ACEOF 12695cat confdefs.h >>conftest.$ac_ext 12696cat >>conftest.$ac_ext <<_ACEOF 12697/* end confdefs.h. */ 12698 12699#include "xorg-server.h" 12700#if !defined XV 12701#error XV not defined 12702#endif 12703 12704int 12705main () 12706{ 12707 12708 ; 12709 return 0; 12710} 12711_ACEOF 12712rm -f conftest.$ac_objext 12713if { (ac_try="$ac_compile" 12714case "(($ac_try" in 12715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12716 *) ac_try_echo=$ac_try;; 12717esac 12718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12719 (eval "$ac_compile") 2>conftest.er1 12720 ac_status=$? 12721 grep -v '^ *+' conftest.er1 >conftest.err 12722 rm -f conftest.er1 12723 cat conftest.err >&5 12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12725 (exit $ac_status); } && { 12726 test -z "$ac_c_werror_flag" || 12727 test ! -s conftest.err 12728 } && test -s conftest.$ac_objext; then 12729 _EXT_CHECK=yes 12730else 12731 echo "$as_me: failed program was:" >&5 12732sed 's/^/| /' conftest.$ac_ext >&5 12733 12734 _EXT_CHECK=no 12735fi 12736 12737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12738 CFLAGS="$SAVE_CFLAGS" 12739 { echo "$as_me:$LINENO: checking if XV is defined" >&5 12740echo $ECHO_N "checking if XV is defined... $ECHO_C" >&6; } 12741 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12742echo "${ECHO_T}$_EXT_CHECK" >&6; } 12743 if test "$_EXT_CHECK" != no; then 12744 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 12745 fi 12746 12747 12748 SAVE_CFLAGS="$CFLAGS" 12749 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12750 cat >conftest.$ac_ext <<_ACEOF 12751/* confdefs.h. */ 12752_ACEOF 12753cat confdefs.h >>conftest.$ac_ext 12754cat >>conftest.$ac_ext <<_ACEOF 12755/* end confdefs.h. */ 12756 12757#include "xorg-server.h" 12758#if !defined DPMSExtension 12759#error DPMSExtension not defined 12760#endif 12761 12762int 12763main () 12764{ 12765 12766 ; 12767 return 0; 12768} 12769_ACEOF 12770rm -f conftest.$ac_objext 12771if { (ac_try="$ac_compile" 12772case "(($ac_try" in 12773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12774 *) ac_try_echo=$ac_try;; 12775esac 12776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12777 (eval "$ac_compile") 2>conftest.er1 12778 ac_status=$? 12779 grep -v '^ *+' conftest.er1 >conftest.err 12780 rm -f conftest.er1 12781 cat conftest.err >&5 12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12783 (exit $ac_status); } && { 12784 test -z "$ac_c_werror_flag" || 12785 test ! -s conftest.err 12786 } && test -s conftest.$ac_objext; then 12787 _EXT_CHECK=yes 12788else 12789 echo "$as_me: failed program was:" >&5 12790sed 's/^/| /' conftest.$ac_ext >&5 12791 12792 _EXT_CHECK=no 12793fi 12794 12795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12796 CFLAGS="$SAVE_CFLAGS" 12797 { echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5 12798echo $ECHO_N "checking if DPMSExtension is defined... $ECHO_C" >&6; } 12799 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12800echo "${ECHO_T}$_EXT_CHECK" >&6; } 12801 if test "$_EXT_CHECK" != no; then 12802 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 12803 fi 12804 12805 12806# Checks for pkg-config packages 12807 12808 12809if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12810 if test -n "$ac_tool_prefix"; then 12811 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12812set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12813{ echo "$as_me:$LINENO: checking for $ac_word" >&5 12814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 12815if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 12816 echo $ECHO_N "(cached) $ECHO_C" >&6 12817else 12818 case $PKG_CONFIG in 12819 [\\/]* | ?:[\\/]*) 12820 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12821 ;; 12822 *) 12823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12824for as_dir in $PATH 12825do 12826 IFS=$as_save_IFS 12827 test -z "$as_dir" && as_dir=. 12828 for ac_exec_ext in '' $ac_executable_extensions; do 12829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12830 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12832 break 2 12833 fi 12834done 12835done 12836IFS=$as_save_IFS 12837 12838 ;; 12839esac 12840fi 12841PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12842if test -n "$PKG_CONFIG"; then 12843 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 12844echo "${ECHO_T}$PKG_CONFIG" >&6; } 12845else 12846 { echo "$as_me:$LINENO: result: no" >&5 12847echo "${ECHO_T}no" >&6; } 12848fi 12849 12850 12851fi 12852if test -z "$ac_cv_path_PKG_CONFIG"; then 12853 ac_pt_PKG_CONFIG=$PKG_CONFIG 12854 # Extract the first word of "pkg-config", so it can be a program name with args. 12855set dummy pkg-config; ac_word=$2 12856{ echo "$as_me:$LINENO: checking for $ac_word" >&5 12857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 12858if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 12859 echo $ECHO_N "(cached) $ECHO_C" >&6 12860else 12861 case $ac_pt_PKG_CONFIG in 12862 [\\/]* | ?:[\\/]*) 12863 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12864 ;; 12865 *) 12866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12867for as_dir in $PATH 12868do 12869 IFS=$as_save_IFS 12870 test -z "$as_dir" && as_dir=. 12871 for ac_exec_ext in '' $ac_executable_extensions; do 12872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12873 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12875 break 2 12876 fi 12877done 12878done 12879IFS=$as_save_IFS 12880 12881 ;; 12882esac 12883fi 12884ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12885if test -n "$ac_pt_PKG_CONFIG"; then 12886 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 12887echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 12888else 12889 { echo "$as_me:$LINENO: result: no" >&5 12890echo "${ECHO_T}no" >&6; } 12891fi 12892 12893 if test "x$ac_pt_PKG_CONFIG" = x; then 12894 PKG_CONFIG="" 12895 else 12896 case $cross_compiling:$ac_tool_warned in 12897yes:) 12898{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 12899whose name does not start with the host triplet. If you think this 12900configuration is useful to you, please write to autoconf@gnu.org." >&5 12901echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 12902whose name does not start with the host triplet. If you think this 12903configuration is useful to you, please write to autoconf@gnu.org." >&2;} 12904ac_tool_warned=yes ;; 12905esac 12906 PKG_CONFIG=$ac_pt_PKG_CONFIG 12907 fi 12908else 12909 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12910fi 12911 12912fi 12913if test -n "$PKG_CONFIG"; then 12914 _pkg_min_version=0.9.0 12915 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 12916echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 12917 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12918 { echo "$as_me:$LINENO: result: yes" >&5 12919echo "${ECHO_T}yes" >&6; } 12920 else 12921 { echo "$as_me:$LINENO: result: no" >&5 12922echo "${ECHO_T}no" >&6; } 12923 PKG_CONFIG="" 12924 fi 12925 12926fi 12927 12928pkg_failed=no 12929{ echo "$as_me:$LINENO: checking for XORG" >&5 12930echo $ECHO_N "checking for XORG... $ECHO_C" >&6; } 12931 12932if test -n "$PKG_CONFIG"; then 12933 if test -n "$XORG_CFLAGS"; then 12934 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 12935 else 12936 if test -n "$PKG_CONFIG" && \ 12937 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\"") >&5 12938 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5 12939 ac_status=$? 12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12941 (exit $ac_status); }; then 12942 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 12943else 12944 pkg_failed=yes 12945fi 12946 fi 12947else 12948 pkg_failed=untried 12949fi 12950if test -n "$PKG_CONFIG"; then 12951 if test -n "$XORG_LIBS"; then 12952 pkg_cv_XORG_LIBS="$XORG_LIBS" 12953 else 12954 if test -n "$PKG_CONFIG" && \ 12955 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\"") >&5 12956 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5 12957 ac_status=$? 12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12959 (exit $ac_status); }; then 12960 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 12961else 12962 pkg_failed=yes 12963fi 12964 fi 12965else 12966 pkg_failed=untried 12967fi 12968 12969 12970 12971if test $pkg_failed = yes; then 12972 12973if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12974 _pkg_short_errors_supported=yes 12975else 12976 _pkg_short_errors_supported=no 12977fi 12978 if test $_pkg_short_errors_supported = yes; then 12979 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES"` 12980 else 12981 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES"` 12982 fi 12983 # Put the nasty error message in config.log where it belongs 12984 echo "$XORG_PKG_ERRORS" >&5 12985 12986 { { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES) were not met: 12987 12988$XORG_PKG_ERRORS 12989 12990Consider adjusting the PKG_CONFIG_PATH environment variable if you 12991installed software in a non-standard prefix. 12992 12993Alternatively, you may set the environment variables XORG_CFLAGS 12994and XORG_LIBS to avoid the need to call pkg-config. 12995See the pkg-config man page for more details. 12996" >&5 12997echo "$as_me: error: Package requirements (xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES) were not met: 12998 12999$XORG_PKG_ERRORS 13000 13001Consider adjusting the PKG_CONFIG_PATH environment variable if you 13002installed software in a non-standard prefix. 13003 13004Alternatively, you may set the environment variables XORG_CFLAGS 13005and XORG_LIBS to avoid the need to call pkg-config. 13006See the pkg-config man page for more details. 13007" >&2;} 13008 { (exit 1); exit 1; }; } 13009elif test $pkg_failed = untried; then 13010 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 13011is in your PATH or set the PKG_CONFIG environment variable to the full 13012path to pkg-config. 13013 13014Alternatively, you may set the environment variables XORG_CFLAGS 13015and XORG_LIBS to avoid the need to call pkg-config. 13016See the pkg-config man page for more details. 13017 13018To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13019See \`config.log' for more details." >&5 13020echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 13021is in your PATH or set the PKG_CONFIG environment variable to the full 13022path to pkg-config. 13023 13024Alternatively, you may set the environment variables XORG_CFLAGS 13025and XORG_LIBS to avoid the need to call pkg-config. 13026See the pkg-config man page for more details. 13027 13028To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13029See \`config.log' for more details." >&2;} 13030 { (exit 1); exit 1; }; } 13031else 13032 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 13033 XORG_LIBS=$pkg_cv_XORG_LIBS 13034 { echo "$as_me:$LINENO: result: yes" >&5 13035echo "${ECHO_T}yes" >&6; } 13036 : 13037fi 13038 13039pkg_failed=no 13040{ echo "$as_me:$LINENO: checking for XEXT" >&5 13041echo $ECHO_N "checking for XEXT... $ECHO_C" >&6; } 13042 13043if test -n "$PKG_CONFIG"; then 13044 if test -n "$XEXT_CFLAGS"; then 13045 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 13046 else 13047 if test -n "$PKG_CONFIG" && \ 13048 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5 13049 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 13050 ac_status=$? 13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13052 (exit $ac_status); }; then 13053 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 13054else 13055 pkg_failed=yes 13056fi 13057 fi 13058else 13059 pkg_failed=untried 13060fi 13061if test -n "$PKG_CONFIG"; then 13062 if test -n "$XEXT_LIBS"; then 13063 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 13064 else 13065 if test -n "$PKG_CONFIG" && \ 13066 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5 13067 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 13068 ac_status=$? 13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13070 (exit $ac_status); }; then 13071 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 13072else 13073 pkg_failed=yes 13074fi 13075 fi 13076else 13077 pkg_failed=untried 13078fi 13079 13080 13081 13082if test $pkg_failed = yes; then 13083 13084if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13085 _pkg_short_errors_supported=yes 13086else 13087 _pkg_short_errors_supported=no 13088fi 13089 if test $_pkg_short_errors_supported = yes; then 13090 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xextproto >= 7.0.99.1"` 13091 else 13092 XEXT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xextproto >= 7.0.99.1"` 13093 fi 13094 # Put the nasty error message in config.log where it belongs 13095 echo "$XEXT_PKG_ERRORS" >&5 13096 13097 { echo "$as_me:$LINENO: result: no" >&5 13098echo "${ECHO_T}no" >&6; } 13099 HAVE_XEXTPROTO_71="no" 13100elif test $pkg_failed = untried; then 13101 HAVE_XEXTPROTO_71="no" 13102else 13103 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 13104 XEXT_LIBS=$pkg_cv_XEXT_LIBS 13105 { echo "$as_me:$LINENO: result: yes" >&5 13106echo "${ECHO_T}yes" >&6; } 13107 HAVE_XEXTPROTO_71="yes"; 13108cat >>confdefs.h <<\_ACEOF 13109#define HAVE_XEXTPROTO_71 1 13110_ACEOF 13111 13112fi 13113 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 13114 HAVE_XEXTPROTO_71_TRUE= 13115 HAVE_XEXTPROTO_71_FALSE='#' 13116else 13117 HAVE_XEXTPROTO_71_TRUE='#' 13118 HAVE_XEXTPROTO_71_FALSE= 13119fi 13120 13121 13122# Checks for libraries. 13123 13124# Checks for header files. 13125{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 13126echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 13127if test "${ac_cv_header_stdc+set}" = set; then 13128 echo $ECHO_N "(cached) $ECHO_C" >&6 13129else 13130 cat >conftest.$ac_ext <<_ACEOF 13131/* confdefs.h. */ 13132_ACEOF 13133cat confdefs.h >>conftest.$ac_ext 13134cat >>conftest.$ac_ext <<_ACEOF 13135/* end confdefs.h. */ 13136#include <stdlib.h> 13137#include <stdarg.h> 13138#include <string.h> 13139#include <float.h> 13140 13141int 13142main () 13143{ 13144 13145 ; 13146 return 0; 13147} 13148_ACEOF 13149rm -f conftest.$ac_objext 13150if { (ac_try="$ac_compile" 13151case "(($ac_try" in 13152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13153 *) ac_try_echo=$ac_try;; 13154esac 13155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13156 (eval "$ac_compile") 2>conftest.er1 13157 ac_status=$? 13158 grep -v '^ *+' conftest.er1 >conftest.err 13159 rm -f conftest.er1 13160 cat conftest.err >&5 13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13162 (exit $ac_status); } && { 13163 test -z "$ac_c_werror_flag" || 13164 test ! -s conftest.err 13165 } && test -s conftest.$ac_objext; then 13166 ac_cv_header_stdc=yes 13167else 13168 echo "$as_me: failed program was:" >&5 13169sed 's/^/| /' conftest.$ac_ext >&5 13170 13171 ac_cv_header_stdc=no 13172fi 13173 13174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13175 13176if test $ac_cv_header_stdc = yes; then 13177 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13178 cat >conftest.$ac_ext <<_ACEOF 13179/* confdefs.h. */ 13180_ACEOF 13181cat confdefs.h >>conftest.$ac_ext 13182cat >>conftest.$ac_ext <<_ACEOF 13183/* end confdefs.h. */ 13184#include <string.h> 13185 13186_ACEOF 13187if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13188 $EGREP "memchr" >/dev/null 2>&1; then 13189 : 13190else 13191 ac_cv_header_stdc=no 13192fi 13193rm -f conftest* 13194 13195fi 13196 13197if test $ac_cv_header_stdc = yes; then 13198 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13199 cat >conftest.$ac_ext <<_ACEOF 13200/* confdefs.h. */ 13201_ACEOF 13202cat confdefs.h >>conftest.$ac_ext 13203cat >>conftest.$ac_ext <<_ACEOF 13204/* end confdefs.h. */ 13205#include <stdlib.h> 13206 13207_ACEOF 13208if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13209 $EGREP "free" >/dev/null 2>&1; then 13210 : 13211else 13212 ac_cv_header_stdc=no 13213fi 13214rm -f conftest* 13215 13216fi 13217 13218if test $ac_cv_header_stdc = yes; then 13219 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13220 if test "$cross_compiling" = yes; then 13221 : 13222else 13223 cat >conftest.$ac_ext <<_ACEOF 13224/* confdefs.h. */ 13225_ACEOF 13226cat confdefs.h >>conftest.$ac_ext 13227cat >>conftest.$ac_ext <<_ACEOF 13228/* end confdefs.h. */ 13229#include <ctype.h> 13230#include <stdlib.h> 13231#if ((' ' & 0x0FF) == 0x020) 13232# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13233# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13234#else 13235# define ISLOWER(c) \ 13236 (('a' <= (c) && (c) <= 'i') \ 13237 || ('j' <= (c) && (c) <= 'r') \ 13238 || ('s' <= (c) && (c) <= 'z')) 13239# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13240#endif 13241 13242#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13243int 13244main () 13245{ 13246 int i; 13247 for (i = 0; i < 256; i++) 13248 if (XOR (islower (i), ISLOWER (i)) 13249 || toupper (i) != TOUPPER (i)) 13250 return 2; 13251 return 0; 13252} 13253_ACEOF 13254rm -f conftest$ac_exeext 13255if { (ac_try="$ac_link" 13256case "(($ac_try" in 13257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13258 *) ac_try_echo=$ac_try;; 13259esac 13260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13261 (eval "$ac_link") 2>&5 13262 ac_status=$? 13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13265 { (case "(($ac_try" in 13266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13267 *) ac_try_echo=$ac_try;; 13268esac 13269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13270 (eval "$ac_try") 2>&5 13271 ac_status=$? 13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13273 (exit $ac_status); }; }; then 13274 : 13275else 13276 echo "$as_me: program exited with status $ac_status" >&5 13277echo "$as_me: failed program was:" >&5 13278sed 's/^/| /' conftest.$ac_ext >&5 13279 13280( exit $ac_status ) 13281ac_cv_header_stdc=no 13282fi 13283rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13284fi 13285 13286 13287fi 13288fi 13289{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 13290echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 13291if test $ac_cv_header_stdc = yes; then 13292 13293cat >>confdefs.h <<\_ACEOF 13294#define STDC_HEADERS 1 13295_ACEOF 13296 13297fi 13298 13299 13300if test "$DRI" != no; then 13301 13302pkg_failed=no 13303{ echo "$as_me:$LINENO: checking for DRI" >&5 13304echo $ECHO_N "checking for DRI... $ECHO_C" >&6; } 13305 13306if test -n "$PKG_CONFIG"; then 13307 if test -n "$DRI_CFLAGS"; then 13308 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS" 13309 else 13310 if test -n "$PKG_CONFIG" && \ 13311 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\"") >&5 13312 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5 13313 ac_status=$? 13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13315 (exit $ac_status); }; then 13316 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.2 xf86driproto" 2>/dev/null` 13317else 13318 pkg_failed=yes 13319fi 13320 fi 13321else 13322 pkg_failed=untried 13323fi 13324if test -n "$PKG_CONFIG"; then 13325 if test -n "$DRI_LIBS"; then 13326 pkg_cv_DRI_LIBS="$DRI_LIBS" 13327 else 13328 if test -n "$PKG_CONFIG" && \ 13329 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\"") >&5 13330 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5 13331 ac_status=$? 13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13333 (exit $ac_status); }; then 13334 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.2 xf86driproto" 2>/dev/null` 13335else 13336 pkg_failed=yes 13337fi 13338 fi 13339else 13340 pkg_failed=untried 13341fi 13342 13343 13344 13345if test $pkg_failed = yes; then 13346 13347if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13348 _pkg_short_errors_supported=yes 13349else 13350 _pkg_short_errors_supported=no 13351fi 13352 if test $_pkg_short_errors_supported = yes; then 13353 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libdrm >= 2.2 xf86driproto"` 13354 else 13355 DRI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdrm >= 2.2 xf86driproto"` 13356 fi 13357 # Put the nasty error message in config.log where it belongs 13358 echo "$DRI_PKG_ERRORS" >&5 13359 13360 { { echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.2 xf86driproto) were not met: 13361 13362$DRI_PKG_ERRORS 13363 13364Consider adjusting the PKG_CONFIG_PATH environment variable if you 13365installed software in a non-standard prefix. 13366 13367Alternatively, you may set the environment variables DRI_CFLAGS 13368and DRI_LIBS to avoid the need to call pkg-config. 13369See the pkg-config man page for more details. 13370" >&5 13371echo "$as_me: error: Package requirements (libdrm >= 2.2 xf86driproto) were not met: 13372 13373$DRI_PKG_ERRORS 13374 13375Consider adjusting the PKG_CONFIG_PATH environment variable if you 13376installed software in a non-standard prefix. 13377 13378Alternatively, you may set the environment variables DRI_CFLAGS 13379and DRI_LIBS to avoid the need to call pkg-config. 13380See the pkg-config man page for more details. 13381" >&2;} 13382 { (exit 1); exit 1; }; } 13383elif test $pkg_failed = untried; then 13384 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 13385is in your PATH or set the PKG_CONFIG environment variable to the full 13386path to pkg-config. 13387 13388Alternatively, you may set the environment variables DRI_CFLAGS 13389and DRI_LIBS to avoid the need to call pkg-config. 13390See the pkg-config man page for more details. 13391 13392To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13393See \`config.log' for more details." >&5 13394echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 13395is in your PATH or set the PKG_CONFIG environment variable to the full 13396path to pkg-config. 13397 13398Alternatively, you may set the environment variables DRI_CFLAGS 13399and DRI_LIBS to avoid the need to call pkg-config. 13400See the pkg-config man page for more details. 13401 13402To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13403See \`config.log' for more details." >&2;} 13404 { (exit 1); exit 1; }; } 13405else 13406 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS 13407 DRI_LIBS=$pkg_cv_DRI_LIBS 13408 { echo "$as_me:$LINENO: result: yes" >&5 13409echo "${ECHO_T}yes" >&6; } 13410 : 13411fi 13412 save_CPPFLAGS="$CPPFLAGS" 13413 CPPFLAGS="$XORG_CFLAGS $DRI_CFLAGS" 13414 { echo "$as_me:$LINENO: checking for dri.h" >&5 13415echo $ECHO_N "checking for dri.h... $ECHO_C" >&6; } 13416if test "${ac_cv_header_dri_h+set}" = set; then 13417 echo $ECHO_N "(cached) $ECHO_C" >&6 13418else 13419 cat >conftest.$ac_ext <<_ACEOF 13420/* confdefs.h. */ 13421_ACEOF 13422cat confdefs.h >>conftest.$ac_ext 13423cat >>conftest.$ac_ext <<_ACEOF 13424/* end confdefs.h. */ 13425#include <dri.h> 13426_ACEOF 13427if { (ac_try="$ac_cpp conftest.$ac_ext" 13428case "(($ac_try" in 13429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13430 *) ac_try_echo=$ac_try;; 13431esac 13432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13434 ac_status=$? 13435 grep -v '^ *+' conftest.er1 >conftest.err 13436 rm -f conftest.er1 13437 cat conftest.err >&5 13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13439 (exit $ac_status); } >/dev/null && { 13440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13441 test ! -s conftest.err 13442 }; then 13443 ac_cv_header_dri_h=yes 13444else 13445 echo "$as_me: failed program was:" >&5 13446sed 's/^/| /' conftest.$ac_ext >&5 13447 13448 ac_cv_header_dri_h=no 13449fi 13450 13451rm -f conftest.err conftest.$ac_ext 13452fi 13453{ echo "$as_me:$LINENO: result: $ac_cv_header_dri_h" >&5 13454echo "${ECHO_T}$ac_cv_header_dri_h" >&6; } 13455if test $ac_cv_header_dri_h = yes; then 13456 have_dri_h="yes" 13457else 13458 have_dri_h="no" 13459fi 13460 13461 13462 { echo "$as_me:$LINENO: checking for sarea.h" >&5 13463echo $ECHO_N "checking for sarea.h... $ECHO_C" >&6; } 13464if test "${ac_cv_header_sarea_h+set}" = set; then 13465 echo $ECHO_N "(cached) $ECHO_C" >&6 13466else 13467 cat >conftest.$ac_ext <<_ACEOF 13468/* confdefs.h. */ 13469_ACEOF 13470cat confdefs.h >>conftest.$ac_ext 13471cat >>conftest.$ac_ext <<_ACEOF 13472/* end confdefs.h. */ 13473#include <sarea.h> 13474_ACEOF 13475if { (ac_try="$ac_cpp conftest.$ac_ext" 13476case "(($ac_try" in 13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13478 *) ac_try_echo=$ac_try;; 13479esac 13480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13482 ac_status=$? 13483 grep -v '^ *+' conftest.er1 >conftest.err 13484 rm -f conftest.er1 13485 cat conftest.err >&5 13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13487 (exit $ac_status); } >/dev/null && { 13488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13489 test ! -s conftest.err 13490 }; then 13491 ac_cv_header_sarea_h=yes 13492else 13493 echo "$as_me: failed program was:" >&5 13494sed 's/^/| /' conftest.$ac_ext >&5 13495 13496 ac_cv_header_sarea_h=no 13497fi 13498 13499rm -f conftest.err conftest.$ac_ext 13500fi 13501{ echo "$as_me:$LINENO: result: $ac_cv_header_sarea_h" >&5 13502echo "${ECHO_T}$ac_cv_header_sarea_h" >&6; } 13503if test $ac_cv_header_sarea_h = yes; then 13504 have_sarea_h="yes" 13505else 13506 have_sarea_h="no" 13507fi 13508 13509 13510 cat >conftest.$ac_ext <<_ACEOF 13511/* confdefs.h. */ 13512_ACEOF 13513cat confdefs.h >>conftest.$ac_ext 13514cat >>conftest.$ac_ext <<_ACEOF 13515/* end confdefs.h. */ 13516 13517#include <xorg-server.h> 13518#include <dristruct.h> 13519 13520int 13521main () 13522{ 13523 13524 ; 13525 return 0; 13526} 13527_ACEOF 13528if { (ac_try="$ac_cpp conftest.$ac_ext" 13529case "(($ac_try" in 13530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13531 *) ac_try_echo=$ac_try;; 13532esac 13533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13535 ac_status=$? 13536 grep -v '^ *+' conftest.er1 >conftest.err 13537 rm -f conftest.er1 13538 cat conftest.err >&5 13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13540 (exit $ac_status); } >/dev/null && { 13541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13542 test ! -s conftest.err 13543 }; then 13544 have_dristruct_h="yes" 13545else 13546 echo "$as_me: failed program was:" >&5 13547sed 's/^/| /' conftest.$ac_ext >&5 13548 13549 have_dristruct_h="no" 13550fi 13551 13552rm -f conftest.err conftest.$ac_ext 13553 { echo "$as_me:$LINENO: checking for damage.h" >&5 13554echo $ECHO_N "checking for damage.h... $ECHO_C" >&6; } 13555if test "${ac_cv_header_damage_h+set}" = set; then 13556 echo $ECHO_N "(cached) $ECHO_C" >&6 13557else 13558 cat >conftest.$ac_ext <<_ACEOF 13559/* confdefs.h. */ 13560_ACEOF 13561cat confdefs.h >>conftest.$ac_ext 13562cat >>conftest.$ac_ext <<_ACEOF 13563/* end confdefs.h. */ 13564#include <damage.h> 13565_ACEOF 13566if { (ac_try="$ac_cpp conftest.$ac_ext" 13567case "(($ac_try" in 13568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13569 *) ac_try_echo=$ac_try;; 13570esac 13571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13573 ac_status=$? 13574 grep -v '^ *+' conftest.er1 >conftest.err 13575 rm -f conftest.er1 13576 cat conftest.err >&5 13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13578 (exit $ac_status); } >/dev/null && { 13579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13580 test ! -s conftest.err 13581 }; then 13582 ac_cv_header_damage_h=yes 13583else 13584 echo "$as_me: failed program was:" >&5 13585sed 's/^/| /' conftest.$ac_ext >&5 13586 13587 ac_cv_header_damage_h=no 13588fi 13589 13590rm -f conftest.err conftest.$ac_ext 13591fi 13592{ echo "$as_me:$LINENO: result: $ac_cv_header_damage_h" >&5 13593echo "${ECHO_T}$ac_cv_header_damage_h" >&6; } 13594if test $ac_cv_header_damage_h = yes; then 13595 have_damage_h="yes" 13596else 13597 have_damage_h="no" 13598fi 13599 13600 13601 CPPFLAGS="$save_CPPFLAGS" 13602fi 13603 13604{ echo "$as_me:$LINENO: checking whether to include DRI support" >&5 13605echo $ECHO_N "checking whether to include DRI support... $ECHO_C" >&6; } 13606if test x$DRI = xauto; then 13607 if test "$have_dri_h" = yes -a \ 13608 "$have_sarea_h" = yes -a \ 13609 "$have_dristruct_h" = yes; then 13610 DRI="yes" 13611 else 13612 DRI="no" 13613 fi 13614fi 13615{ echo "$as_me:$LINENO: result: $DRI" >&5 13616echo "${ECHO_T}$DRI" >&6; } 13617 13618 if test x$DRI = xyes; then 13619 DRI_TRUE= 13620 DRI_FALSE='#' 13621else 13622 DRI_TRUE='#' 13623 DRI_FALSE= 13624fi 13625 13626if test "$DRI" = yes; then 13627 13628cat >>confdefs.h <<\_ACEOF 13629#define XF86DRI 1 13630_ACEOF 13631 13632 13633cat >>confdefs.h <<\_ACEOF 13634#define XF86DRI_DEVEL 1 13635_ACEOF 13636 13637 if test "$have_damage_h" = yes; then 13638 13639cat >>confdefs.h <<\_ACEOF 13640#define DAMAGE 1 13641_ACEOF 13642 13643 fi 13644 13645 save_CFLAGS="$CFLAGS" 13646 CFLAGS="$XORG_CFLAGS $DRI_CFLAGS $CFLAGS" 13647 if test "$DRM_MODE" = yes; then 13648 { echo "$as_me:$LINENO: checking for xf86drmMode.h" >&5 13649echo $ECHO_N "checking for xf86drmMode.h... $ECHO_C" >&6; } 13650if test "${ac_cv_header_xf86drmMode_h+set}" = set; then 13651 echo $ECHO_N "(cached) $ECHO_C" >&6 13652else 13653 cat >conftest.$ac_ext <<_ACEOF 13654/* confdefs.h. */ 13655_ACEOF 13656cat confdefs.h >>conftest.$ac_ext 13657cat >>conftest.$ac_ext <<_ACEOF 13658/* end confdefs.h. */ 13659#include <stdint.h> 13660#include <stdlib.h> 13661 13662#include <xf86drmMode.h> 13663_ACEOF 13664rm -f conftest.$ac_objext 13665if { (ac_try="$ac_compile" 13666case "(($ac_try" in 13667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13668 *) ac_try_echo=$ac_try;; 13669esac 13670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13671 (eval "$ac_compile") 2>conftest.er1 13672 ac_status=$? 13673 grep -v '^ *+' conftest.er1 >conftest.err 13674 rm -f conftest.er1 13675 cat conftest.err >&5 13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13677 (exit $ac_status); } && { 13678 test -z "$ac_c_werror_flag" || 13679 test ! -s conftest.err 13680 } && test -s conftest.$ac_objext; then 13681 ac_cv_header_xf86drmMode_h=yes 13682else 13683 echo "$as_me: failed program was:" >&5 13684sed 's/^/| /' conftest.$ac_ext >&5 13685 13686 ac_cv_header_xf86drmMode_h=no 13687fi 13688 13689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13690fi 13691{ echo "$as_me:$LINENO: result: $ac_cv_header_xf86drmMode_h" >&5 13692echo "${ECHO_T}$ac_cv_header_xf86drmMode_h" >&6; } 13693if test $ac_cv_header_xf86drmMode_h = yes; then 13694 DRM_MODE=yes 13695else 13696 DRM_MODE=no 13697fi 13698 13699 13700 if test "x$DRM_MODE" = xyes; then 13701 13702pkg_failed=no 13703{ echo "$as_me:$LINENO: checking for LIBDRM_RADEON" >&5 13704echo $ECHO_N "checking for LIBDRM_RADEON... $ECHO_C" >&6; } 13705 13706if test -n "$PKG_CONFIG"; then 13707 if test -n "$LIBDRM_RADEON_CFLAGS"; then 13708 pkg_cv_LIBDRM_RADEON_CFLAGS="$LIBDRM_RADEON_CFLAGS" 13709 else 13710 if test -n "$PKG_CONFIG" && \ 13711 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6.2 libdrm_radeon\"") >&5 13712 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6.2 libdrm_radeon") 2>&5 13713 ac_status=$? 13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13715 (exit $ac_status); }; then 13716 pkg_cv_LIBDRM_RADEON_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.6.2 libdrm_radeon" 2>/dev/null` 13717else 13718 pkg_failed=yes 13719fi 13720 fi 13721else 13722 pkg_failed=untried 13723fi 13724if test -n "$PKG_CONFIG"; then 13725 if test -n "$LIBDRM_RADEON_LIBS"; then 13726 pkg_cv_LIBDRM_RADEON_LIBS="$LIBDRM_RADEON_LIBS" 13727 else 13728 if test -n "$PKG_CONFIG" && \ 13729 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6.2 libdrm_radeon\"") >&5 13730 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6.2 libdrm_radeon") 2>&5 13731 ac_status=$? 13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13733 (exit $ac_status); }; then 13734 pkg_cv_LIBDRM_RADEON_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.6.2 libdrm_radeon" 2>/dev/null` 13735else 13736 pkg_failed=yes 13737fi 13738 fi 13739else 13740 pkg_failed=untried 13741fi 13742 13743 13744 13745if test $pkg_failed = yes; then 13746 13747if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13748 _pkg_short_errors_supported=yes 13749else 13750 _pkg_short_errors_supported=no 13751fi 13752 if test $_pkg_short_errors_supported = yes; then 13753 LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.6.2 libdrm_radeon"` 13754 else 13755 LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.6.2 libdrm_radeon"` 13756 fi 13757 # Put the nasty error message in config.log where it belongs 13758 echo "$LIBDRM_RADEON_PKG_ERRORS" >&5 13759 13760 { echo "$as_me:$LINENO: result: no" >&5 13761echo "${ECHO_T}no" >&6; } 13762 LIBDRM_RADEON=no 13763elif test $pkg_failed = untried; then 13764 LIBDRM_RADEON=no 13765else 13766 LIBDRM_RADEON_CFLAGS=$pkg_cv_LIBDRM_RADEON_CFLAGS 13767 LIBDRM_RADEON_LIBS=$pkg_cv_LIBDRM_RADEON_LIBS 13768 { echo "$as_me:$LINENO: result: yes" >&5 13769echo "${ECHO_T}yes" >&6; } 13770 LIBDRM_RADEON=yes 13771fi 13772 13773 if test "x$LIBDRM_RADEON" = xyes; then 13774 13775cat >>confdefs.h <<\_ACEOF 13776#define XF86DRM_MODE 1 13777_ACEOF 13778 13779 13780cat >>confdefs.h <<\_ACEOF 13781#define RADEON_DRI2 1 13782_ACEOF 13783 13784 else 13785 DRM_MODE=no 13786 fi 13787 fi 13788 fi 13789 CFLAGS="$save_CFLAGS" 13790else 13791 DRM_MODE=no 13792fi 13793 if test x$DRM_MODE = xyes; then 13794 DRM_MODE_TRUE= 13795 DRM_MODE_FALSE='#' 13796else 13797 DRM_MODE_TRUE='#' 13798 DRM_MODE_FALSE= 13799fi 13800 13801 13802save_CFLAGS="$CFLAGS" 13803CFLAGS="$XORG_CFLAGS" 13804{ echo "$as_me:$LINENO: checking for xf86Modes.h" >&5 13805echo $ECHO_N "checking for xf86Modes.h... $ECHO_C" >&6; } 13806if test "${ac_cv_header_xf86Modes_h+set}" = set; then 13807 echo $ECHO_N "(cached) $ECHO_C" >&6 13808else 13809 cat >conftest.$ac_ext <<_ACEOF 13810/* confdefs.h. */ 13811_ACEOF 13812cat confdefs.h >>conftest.$ac_ext 13813cat >>conftest.$ac_ext <<_ACEOF 13814/* end confdefs.h. */ 13815#include "xorg-server.h" 13816 13817#include <xf86Modes.h> 13818_ACEOF 13819rm -f conftest.$ac_objext 13820if { (ac_try="$ac_compile" 13821case "(($ac_try" in 13822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13823 *) ac_try_echo=$ac_try;; 13824esac 13825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13826 (eval "$ac_compile") 2>conftest.er1 13827 ac_status=$? 13828 grep -v '^ *+' conftest.er1 >conftest.err 13829 rm -f conftest.er1 13830 cat conftest.err >&5 13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13832 (exit $ac_status); } && { 13833 test -z "$ac_c_werror_flag" || 13834 test ! -s conftest.err 13835 } && test -s conftest.$ac_objext; then 13836 ac_cv_header_xf86Modes_h=yes 13837else 13838 echo "$as_me: failed program was:" >&5 13839sed 's/^/| /' conftest.$ac_ext >&5 13840 13841 ac_cv_header_xf86Modes_h=no 13842fi 13843 13844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13845fi 13846{ echo "$as_me:$LINENO: result: $ac_cv_header_xf86Modes_h" >&5 13847echo "${ECHO_T}$ac_cv_header_xf86Modes_h" >&6; } 13848if test $ac_cv_header_xf86Modes_h = yes; then 13849 XMODES=yes 13850else 13851 XMODES=no 13852fi 13853 13854 13855CFLAGS="$save_CFLAGS" 13856 13857 13858cat >>confdefs.h <<\_ACEOF 13859#define USE_XAA 1 13860_ACEOF 13861 13862 13863# Properly handle EXA. 13864{ echo "$as_me:$LINENO: checking whether to enable EXA support" >&5 13865echo $ECHO_N "checking whether to enable EXA support... $ECHO_C" >&6; } 13866if test "x$EXA" = xyes; then 13867 { echo "$as_me:$LINENO: result: yes" >&5 13868echo "${ECHO_T}yes" >&6; } 13869 13870 SAVE_CPPFLAGS="$CPPFLAGS" 13871 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 13872 if test "${ac_cv_header_exa_h+set}" = set; then 13873 { echo "$as_me:$LINENO: checking for exa.h" >&5 13874echo $ECHO_N "checking for exa.h... $ECHO_C" >&6; } 13875if test "${ac_cv_header_exa_h+set}" = set; then 13876 echo $ECHO_N "(cached) $ECHO_C" >&6 13877fi 13878{ echo "$as_me:$LINENO: result: $ac_cv_header_exa_h" >&5 13879echo "${ECHO_T}$ac_cv_header_exa_h" >&6; } 13880else 13881 # Is the header compilable? 13882{ echo "$as_me:$LINENO: checking exa.h usability" >&5 13883echo $ECHO_N "checking exa.h usability... $ECHO_C" >&6; } 13884cat >conftest.$ac_ext <<_ACEOF 13885/* confdefs.h. */ 13886_ACEOF 13887cat confdefs.h >>conftest.$ac_ext 13888cat >>conftest.$ac_ext <<_ACEOF 13889/* end confdefs.h. */ 13890$ac_includes_default 13891#include <exa.h> 13892_ACEOF 13893rm -f conftest.$ac_objext 13894if { (ac_try="$ac_compile" 13895case "(($ac_try" in 13896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13897 *) ac_try_echo=$ac_try;; 13898esac 13899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13900 (eval "$ac_compile") 2>conftest.er1 13901 ac_status=$? 13902 grep -v '^ *+' conftest.er1 >conftest.err 13903 rm -f conftest.er1 13904 cat conftest.err >&5 13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13906 (exit $ac_status); } && { 13907 test -z "$ac_c_werror_flag" || 13908 test ! -s conftest.err 13909 } && test -s conftest.$ac_objext; then 13910 ac_header_compiler=yes 13911else 13912 echo "$as_me: failed program was:" >&5 13913sed 's/^/| /' conftest.$ac_ext >&5 13914 13915 ac_header_compiler=no 13916fi 13917 13918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13919{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13920echo "${ECHO_T}$ac_header_compiler" >&6; } 13921 13922# Is the header present? 13923{ echo "$as_me:$LINENO: checking exa.h presence" >&5 13924echo $ECHO_N "checking exa.h presence... $ECHO_C" >&6; } 13925cat >conftest.$ac_ext <<_ACEOF 13926/* confdefs.h. */ 13927_ACEOF 13928cat confdefs.h >>conftest.$ac_ext 13929cat >>conftest.$ac_ext <<_ACEOF 13930/* end confdefs.h. */ 13931#include <exa.h> 13932_ACEOF 13933if { (ac_try="$ac_cpp conftest.$ac_ext" 13934case "(($ac_try" in 13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13936 *) ac_try_echo=$ac_try;; 13937esac 13938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13940 ac_status=$? 13941 grep -v '^ *+' conftest.er1 >conftest.err 13942 rm -f conftest.er1 13943 cat conftest.err >&5 13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13945 (exit $ac_status); } >/dev/null && { 13946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13947 test ! -s conftest.err 13948 }; then 13949 ac_header_preproc=yes 13950else 13951 echo "$as_me: failed program was:" >&5 13952sed 's/^/| /' conftest.$ac_ext >&5 13953 13954 ac_header_preproc=no 13955fi 13956 13957rm -f conftest.err conftest.$ac_ext 13958{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13959echo "${ECHO_T}$ac_header_preproc" >&6; } 13960 13961# So? What about this header? 13962case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13963 yes:no: ) 13964 { echo "$as_me:$LINENO: WARNING: exa.h: accepted by the compiler, rejected by the preprocessor!" >&5 13965echo "$as_me: WARNING: exa.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13966 { echo "$as_me:$LINENO: WARNING: exa.h: proceeding with the compiler's result" >&5 13967echo "$as_me: WARNING: exa.h: proceeding with the compiler's result" >&2;} 13968 ac_header_preproc=yes 13969 ;; 13970 no:yes:* ) 13971 { echo "$as_me:$LINENO: WARNING: exa.h: present but cannot be compiled" >&5 13972echo "$as_me: WARNING: exa.h: present but cannot be compiled" >&2;} 13973 { echo "$as_me:$LINENO: WARNING: exa.h: check for missing prerequisite headers?" >&5 13974echo "$as_me: WARNING: exa.h: check for missing prerequisite headers?" >&2;} 13975 { echo "$as_me:$LINENO: WARNING: exa.h: see the Autoconf documentation" >&5 13976echo "$as_me: WARNING: exa.h: see the Autoconf documentation" >&2;} 13977 { echo "$as_me:$LINENO: WARNING: exa.h: section \"Present But Cannot Be Compiled\"" >&5 13978echo "$as_me: WARNING: exa.h: section \"Present But Cannot Be Compiled\"" >&2;} 13979 { echo "$as_me:$LINENO: WARNING: exa.h: proceeding with the preprocessor's result" >&5 13980echo "$as_me: WARNING: exa.h: proceeding with the preprocessor's result" >&2;} 13981 { echo "$as_me:$LINENO: WARNING: exa.h: in the future, the compiler will take precedence" >&5 13982echo "$as_me: WARNING: exa.h: in the future, the compiler will take precedence" >&2;} 13983 ( cat <<\_ASBOX 13984## ---------------------------------------------------------------------- ## 13985## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 13986## ---------------------------------------------------------------------- ## 13987_ASBOX 13988 ) | sed "s/^/$as_me: WARNING: /" >&2 13989 ;; 13990esac 13991{ echo "$as_me:$LINENO: checking for exa.h" >&5 13992echo $ECHO_N "checking for exa.h... $ECHO_C" >&6; } 13993if test "${ac_cv_header_exa_h+set}" = set; then 13994 echo $ECHO_N "(cached) $ECHO_C" >&6 13995else 13996 ac_cv_header_exa_h=$ac_header_preproc 13997fi 13998{ echo "$as_me:$LINENO: result: $ac_cv_header_exa_h" >&5 13999echo "${ECHO_T}$ac_cv_header_exa_h" >&6; } 14000 14001fi 14002if test $ac_cv_header_exa_h = yes; then 14003 have_exa_h="yes" 14004else 14005 have_exa_h="no" 14006fi 14007 14008 14009 CPPFLAGS="$SAVE_CPPFLAGS" 14010else 14011 { echo "$as_me:$LINENO: result: no" >&5 14012echo "${ECHO_T}no" >&6; } 14013fi 14014 14015SAVE_CPPFLAGS="$CPPFLAGS" 14016CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 14017if test "x$have_exa_h" = xyes; then 14018 { echo "$as_me:$LINENO: checking whether EXA version is at least 2.0.0" >&5 14019echo $ECHO_N "checking whether EXA version is at least 2.0.0... $ECHO_C" >&6; } 14020 cat >conftest.$ac_ext <<_ACEOF 14021/* confdefs.h. */ 14022_ACEOF 14023cat confdefs.h >>conftest.$ac_ext 14024cat >>conftest.$ac_ext <<_ACEOF 14025/* end confdefs.h. */ 14026 14027#include "exa.h" 14028#if EXA_VERSION_MAJOR < 2 14029#error OLD EXA! 14030#endif 14031 14032int 14033main () 14034{ 14035 14036 ; 14037 return 0; 14038} 14039_ACEOF 14040if { (ac_try="$ac_cpp conftest.$ac_ext" 14041case "(($ac_try" in 14042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14043 *) ac_try_echo=$ac_try;; 14044esac 14045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14047 ac_status=$? 14048 grep -v '^ *+' conftest.er1 >conftest.err 14049 rm -f conftest.er1 14050 cat conftest.err >&5 14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14052 (exit $ac_status); } >/dev/null && { 14053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 14054 test ! -s conftest.err 14055 }; then 14056 USE_EXA=yes 14057else 14058 echo "$as_me: failed program was:" >&5 14059sed 's/^/| /' conftest.$ac_ext >&5 14060 14061 USE_EXA=no 14062fi 14063 14064rm -f conftest.err conftest.$ac_ext 14065 { echo "$as_me:$LINENO: result: $USE_EXA" >&5 14066echo "${ECHO_T}$USE_EXA" >&6; } 14067 14068 if test "x$USE_EXA" = xyes; then 14069 14070cat >>confdefs.h <<\_ACEOF 14071#define USE_EXA 1 14072_ACEOF 14073 14074 fi 14075fi 14076 14077{ echo "$as_me:$LINENO: checking whether xf86XVFillKeyHelperDrawable is declared" >&5 14078echo $ECHO_N "checking whether xf86XVFillKeyHelperDrawable is declared... $ECHO_C" >&6; } 14079if test "${ac_cv_have_decl_xf86XVFillKeyHelperDrawable+set}" = set; then 14080 echo $ECHO_N "(cached) $ECHO_C" >&6 14081else 14082 cat >conftest.$ac_ext <<_ACEOF 14083/* confdefs.h. */ 14084_ACEOF 14085cat confdefs.h >>conftest.$ac_ext 14086cat >>conftest.$ac_ext <<_ACEOF 14087/* end confdefs.h. */ 14088#include <xf86xv.h> 14089 14090int 14091main () 14092{ 14093#ifndef xf86XVFillKeyHelperDrawable 14094 (void) xf86XVFillKeyHelperDrawable; 14095#endif 14096 14097 ; 14098 return 0; 14099} 14100_ACEOF 14101rm -f conftest.$ac_objext 14102if { (ac_try="$ac_compile" 14103case "(($ac_try" in 14104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14105 *) ac_try_echo=$ac_try;; 14106esac 14107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14108 (eval "$ac_compile") 2>conftest.er1 14109 ac_status=$? 14110 grep -v '^ *+' conftest.er1 >conftest.err 14111 rm -f conftest.er1 14112 cat conftest.err >&5 14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14114 (exit $ac_status); } && { 14115 test -z "$ac_c_werror_flag" || 14116 test ! -s conftest.err 14117 } && test -s conftest.$ac_objext; then 14118 ac_cv_have_decl_xf86XVFillKeyHelperDrawable=yes 14119else 14120 echo "$as_me: failed program was:" >&5 14121sed 's/^/| /' conftest.$ac_ext >&5 14122 14123 ac_cv_have_decl_xf86XVFillKeyHelperDrawable=no 14124fi 14125 14126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14127fi 14128{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86XVFillKeyHelperDrawable" >&5 14129echo "${ECHO_T}$ac_cv_have_decl_xf86XVFillKeyHelperDrawable" >&6; } 14130if test $ac_cv_have_decl_xf86XVFillKeyHelperDrawable = yes; then 14131 14132cat >>confdefs.h <<\_ACEOF 14133#define HAVE_XV_DRAWABLE_HELPER 1 14134_ACEOF 14135 14136fi 14137 14138 14139{ echo "$as_me:$LINENO: checking whether xf86ModeBandwidth is declared" >&5 14140echo $ECHO_N "checking whether xf86ModeBandwidth is declared... $ECHO_C" >&6; } 14141if test "${ac_cv_have_decl_xf86ModeBandwidth+set}" = set; then 14142 echo $ECHO_N "(cached) $ECHO_C" >&6 14143else 14144 cat >conftest.$ac_ext <<_ACEOF 14145/* confdefs.h. */ 14146_ACEOF 14147cat confdefs.h >>conftest.$ac_ext 14148cat >>conftest.$ac_ext <<_ACEOF 14149/* end confdefs.h. */ 14150#include "xorg-server.h" 14151 #include "xf86Modes.h" 14152 14153int 14154main () 14155{ 14156#ifndef xf86ModeBandwidth 14157 (void) xf86ModeBandwidth; 14158#endif 14159 14160 ; 14161 return 0; 14162} 14163_ACEOF 14164rm -f conftest.$ac_objext 14165if { (ac_try="$ac_compile" 14166case "(($ac_try" in 14167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14168 *) ac_try_echo=$ac_try;; 14169esac 14170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14171 (eval "$ac_compile") 2>conftest.er1 14172 ac_status=$? 14173 grep -v '^ *+' conftest.er1 >conftest.err 14174 rm -f conftest.er1 14175 cat conftest.err >&5 14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14177 (exit $ac_status); } && { 14178 test -z "$ac_c_werror_flag" || 14179 test ! -s conftest.err 14180 } && test -s conftest.$ac_objext; then 14181 ac_cv_have_decl_xf86ModeBandwidth=yes 14182else 14183 echo "$as_me: failed program was:" >&5 14184sed 's/^/| /' conftest.$ac_ext >&5 14185 14186 ac_cv_have_decl_xf86ModeBandwidth=no 14187fi 14188 14189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14190fi 14191{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86ModeBandwidth" >&5 14192echo "${ECHO_T}$ac_cv_have_decl_xf86ModeBandwidth" >&6; } 14193if test $ac_cv_have_decl_xf86ModeBandwidth = yes; then 14194 14195cat >>confdefs.h <<\_ACEOF 14196#define HAVE_XF86MODEBANDWIDTH 1 14197_ACEOF 14198 14199fi 14200 14201 14202{ echo "$as_me:$LINENO: checking whether xf86_crtc_clip_video_helper is declared" >&5 14203echo $ECHO_N "checking whether xf86_crtc_clip_video_helper is declared... $ECHO_C" >&6; } 14204if test "${ac_cv_have_decl_xf86_crtc_clip_video_helper+set}" = set; then 14205 echo $ECHO_N "(cached) $ECHO_C" >&6 14206else 14207 cat >conftest.$ac_ext <<_ACEOF 14208/* confdefs.h. */ 14209_ACEOF 14210cat confdefs.h >>conftest.$ac_ext 14211cat >>conftest.$ac_ext <<_ACEOF 14212/* end confdefs.h. */ 14213#include <X11/Xmd.h> 14214 #include "xorg-server.h" 14215 #include "xf86i2c.h" 14216 #include "xf86Crtc.h" 14217 14218int 14219main () 14220{ 14221#ifndef xf86_crtc_clip_video_helper 14222 (void) xf86_crtc_clip_video_helper; 14223#endif 14224 14225 ; 14226 return 0; 14227} 14228_ACEOF 14229rm -f conftest.$ac_objext 14230if { (ac_try="$ac_compile" 14231case "(($ac_try" in 14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14233 *) ac_try_echo=$ac_try;; 14234esac 14235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14236 (eval "$ac_compile") 2>conftest.er1 14237 ac_status=$? 14238 grep -v '^ *+' conftest.er1 >conftest.err 14239 rm -f conftest.er1 14240 cat conftest.err >&5 14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14242 (exit $ac_status); } && { 14243 test -z "$ac_c_werror_flag" || 14244 test ! -s conftest.err 14245 } && test -s conftest.$ac_objext; then 14246 ac_cv_have_decl_xf86_crtc_clip_video_helper=yes 14247else 14248 echo "$as_me: failed program was:" >&5 14249sed 's/^/| /' conftest.$ac_ext >&5 14250 14251 ac_cv_have_decl_xf86_crtc_clip_video_helper=no 14252fi 14253 14254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14255fi 14256{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86_crtc_clip_video_helper" >&5 14257echo "${ECHO_T}$ac_cv_have_decl_xf86_crtc_clip_video_helper" >&6; } 14258if test $ac_cv_have_decl_xf86_crtc_clip_video_helper = yes; then 14259 14260cat >>confdefs.h <<\_ACEOF 14261#define HAVE_XF86CRTCCLIPVIDEOHELPER 1 14262_ACEOF 14263 14264fi 14265 14266 14267{ echo "$as_me:$LINENO: checking whether xf86RotateFreeShadow is declared" >&5 14268echo $ECHO_N "checking whether xf86RotateFreeShadow is declared... $ECHO_C" >&6; } 14269if test "${ac_cv_have_decl_xf86RotateFreeShadow+set}" = set; then 14270 echo $ECHO_N "(cached) $ECHO_C" >&6 14271else 14272 cat >conftest.$ac_ext <<_ACEOF 14273/* confdefs.h. */ 14274_ACEOF 14275cat confdefs.h >>conftest.$ac_ext 14276cat >>conftest.$ac_ext <<_ACEOF 14277/* end confdefs.h. */ 14278#include <xorg-server.h> 14279 #include <windowstr.h> 14280 #include <xf86Crtc.h> 14281 14282int 14283main () 14284{ 14285#ifndef xf86RotateFreeShadow 14286 (void) xf86RotateFreeShadow; 14287#endif 14288 14289 ; 14290 return 0; 14291} 14292_ACEOF 14293rm -f conftest.$ac_objext 14294if { (ac_try="$ac_compile" 14295case "(($ac_try" in 14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14297 *) ac_try_echo=$ac_try;; 14298esac 14299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14300 (eval "$ac_compile") 2>conftest.er1 14301 ac_status=$? 14302 grep -v '^ *+' conftest.er1 >conftest.err 14303 rm -f conftest.er1 14304 cat conftest.err >&5 14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14306 (exit $ac_status); } && { 14307 test -z "$ac_c_werror_flag" || 14308 test ! -s conftest.err 14309 } && test -s conftest.$ac_objext; then 14310 ac_cv_have_decl_xf86RotateFreeShadow=yes 14311else 14312 echo "$as_me: failed program was:" >&5 14313sed 's/^/| /' conftest.$ac_ext >&5 14314 14315 ac_cv_have_decl_xf86RotateFreeShadow=no 14316fi 14317 14318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14319fi 14320{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86RotateFreeShadow" >&5 14321echo "${ECHO_T}$ac_cv_have_decl_xf86RotateFreeShadow" >&6; } 14322if test $ac_cv_have_decl_xf86RotateFreeShadow = yes; then 14323 14324cat >>confdefs.h <<\_ACEOF 14325#define HAVE_FREE_SHADOW 1 14326_ACEOF 14327 14328fi 14329 14330 14331{ echo "$as_me:$LINENO: checking whether pci_device_enable is declared" >&5 14332echo $ECHO_N "checking whether pci_device_enable is declared... $ECHO_C" >&6; } 14333if test "${ac_cv_have_decl_pci_device_enable+set}" = set; then 14334 echo $ECHO_N "(cached) $ECHO_C" >&6 14335else 14336 cat >conftest.$ac_ext <<_ACEOF 14337/* confdefs.h. */ 14338_ACEOF 14339cat confdefs.h >>conftest.$ac_ext 14340cat >>conftest.$ac_ext <<_ACEOF 14341/* end confdefs.h. */ 14342#include <pciaccess.h> 14343 14344int 14345main () 14346{ 14347#ifndef pci_device_enable 14348 (void) pci_device_enable; 14349#endif 14350 14351 ; 14352 return 0; 14353} 14354_ACEOF 14355rm -f conftest.$ac_objext 14356if { (ac_try="$ac_compile" 14357case "(($ac_try" in 14358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14359 *) ac_try_echo=$ac_try;; 14360esac 14361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14362 (eval "$ac_compile") 2>conftest.er1 14363 ac_status=$? 14364 grep -v '^ *+' conftest.er1 >conftest.err 14365 rm -f conftest.er1 14366 cat conftest.err >&5 14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14368 (exit $ac_status); } && { 14369 test -z "$ac_c_werror_flag" || 14370 test ! -s conftest.err 14371 } && test -s conftest.$ac_objext; then 14372 ac_cv_have_decl_pci_device_enable=yes 14373else 14374 echo "$as_me: failed program was:" >&5 14375sed 's/^/| /' conftest.$ac_ext >&5 14376 14377 ac_cv_have_decl_pci_device_enable=no 14378fi 14379 14380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14381fi 14382{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_pci_device_enable" >&5 14383echo "${ECHO_T}$ac_cv_have_decl_pci_device_enable" >&6; } 14384if test $ac_cv_have_decl_pci_device_enable = yes; then 14385 14386cat >>confdefs.h <<\_ACEOF 14387#define HAVE_PCI_DEVICE_ENABLE 1 14388_ACEOF 14389 14390fi 14391 14392 14393{ echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5 14394echo $ECHO_N "checking whether XSERVER_LIBPCIACCESS is declared... $ECHO_C" >&6; } 14395if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then 14396 echo $ECHO_N "(cached) $ECHO_C" >&6 14397else 14398 cat >conftest.$ac_ext <<_ACEOF 14399/* confdefs.h. */ 14400_ACEOF 14401cat confdefs.h >>conftest.$ac_ext 14402cat >>conftest.$ac_ext <<_ACEOF 14403/* end confdefs.h. */ 14404#include "xorg-server.h" 14405 14406int 14407main () 14408{ 14409#ifndef XSERVER_LIBPCIACCESS 14410 (void) XSERVER_LIBPCIACCESS; 14411#endif 14412 14413 ; 14414 return 0; 14415} 14416_ACEOF 14417rm -f conftest.$ac_objext 14418if { (ac_try="$ac_compile" 14419case "(($ac_try" in 14420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14421 *) ac_try_echo=$ac_try;; 14422esac 14423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14424 (eval "$ac_compile") 2>conftest.er1 14425 ac_status=$? 14426 grep -v '^ *+' conftest.er1 >conftest.err 14427 rm -f conftest.er1 14428 cat conftest.err >&5 14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14430 (exit $ac_status); } && { 14431 test -z "$ac_c_werror_flag" || 14432 test ! -s conftest.err 14433 } && test -s conftest.$ac_objext; then 14434 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes 14435else 14436 echo "$as_me: failed program was:" >&5 14437sed 's/^/| /' conftest.$ac_ext >&5 14438 14439 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no 14440fi 14441 14442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14443fi 14444{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5 14445echo "${ECHO_T}$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; } 14446if test $ac_cv_have_decl_XSERVER_LIBPCIACCESS = yes; then 14447 XSERVER_LIBPCIACCESS=yes 14448else 14449 XSERVER_LIBPCIACCESS=no 14450fi 14451 14452 14453 if test "x$XMODES" = xno; then 14454 XMODES_TRUE= 14455 XMODES_FALSE='#' 14456else 14457 XMODES_TRUE='#' 14458 XMODES_FALSE= 14459fi 14460 14461 14462if test "x$XSERVER_SOURCE" = x; then 14463 if test -d ../../xserver; then 14464 XSERVER_SOURCE="`cd ../../xserver && pwd`" 14465 fi 14466fi 14467 14468if test -d "$XSERVER_SOURCE"; then 14469 case "$XSERVER_SOURCE" in 14470 /*) 14471 ;; 14472 *) 14473 XSERVER_SOURCE="`cd $XSERVER_SOURCE && pwd`" 14474 esac 14475 if test -f src/modes/xf86Modes.h; then 14476 : 14477 else 14478 ln -sf $XSERVER_SOURCE/hw/xfree86/modes src/modes 14479 fi 14480 14481 if test -f src/parser/xf86Parser.h; then 14482 : 14483 else 14484 ln -sf $XSERVER_SOURCE/hw/xfree86/parser src/parser 14485 fi 14486fi 14487if test "x$XMODES" = xyes; then 14488 { echo "$as_me:$LINENO: X server has new mode code" >&5 14489echo "$as_me: X server has new mode code" >&6;} 14490 14491cat >>confdefs.h <<\_ACEOF 14492#define XMODES 1 14493_ACEOF 14494 14495 XMODES_CFLAGS= 14496else 14497 if test -f src/modes/xf86Modes.h -a -f src/parser/xf86Parser.h; then 14498 { echo "$as_me:$LINENO: X server is missing new mode code, using local copy" >&5 14499echo "$as_me: X server is missing new mode code, using local copy" >&6;} 14500 else 14501 { { echo "$as_me:$LINENO: error: Must have X server >= 1.3 source tree for mode setting code. Please specify --with-xserver-source" >&5 14502echo "$as_me: error: Must have X server >= 1.3 source tree for mode setting code. Please specify --with-xserver-source" >&2;} 14503 { (exit 1); exit 1; }; } 14504 fi 14505 XMODES_CFLAGS='-DXF86_MODES_RENAME -I$(top_srcdir)/src -I$(top_srcdir)/src/modes -I$(top_srcdir)/src/parser' 14506fi 14507 14508 14509 14510CPPFLAGS="$SAVE_CPPFLAGS" 14511 14512 if test "x$USE_EXA" = xyes; then 14513 USE_EXA_TRUE= 14514 USE_EXA_FALSE='#' 14515else 14516 USE_EXA_TRUE='#' 14517 USE_EXA_FALSE= 14518fi 14519 14520 14521 if test "x$LIBDRM_RADEON" = xyes; then 14522 XF86DRM_MODE_TRUE= 14523 XF86DRM_MODE_FALSE='#' 14524else 14525 XF86DRM_MODE_TRUE='#' 14526 XF86DRM_MODE_FALSE= 14527fi 14528 14529 14530if test "x$XSERVER_LIBPCIACCESS" = xyes; then 14531 14532pkg_failed=no 14533{ echo "$as_me:$LINENO: checking for PCIACCESS" >&5 14534echo $ECHO_N "checking for PCIACCESS... $ECHO_C" >&6; } 14535 14536if test -n "$PKG_CONFIG"; then 14537 if test -n "$PCIACCESS_CFLAGS"; then 14538 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 14539 else 14540 if test -n "$PKG_CONFIG" && \ 14541 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 14542 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 14543 ac_status=$? 14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14545 (exit $ac_status); }; then 14546 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 14547else 14548 pkg_failed=yes 14549fi 14550 fi 14551else 14552 pkg_failed=untried 14553fi 14554if test -n "$PKG_CONFIG"; then 14555 if test -n "$PCIACCESS_LIBS"; then 14556 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 14557 else 14558 if test -n "$PKG_CONFIG" && \ 14559 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 14560 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 14561 ac_status=$? 14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14563 (exit $ac_status); }; then 14564 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 14565else 14566 pkg_failed=yes 14567fi 14568 fi 14569else 14570 pkg_failed=untried 14571fi 14572 14573 14574 14575if test $pkg_failed = yes; then 14576 14577if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14578 _pkg_short_errors_supported=yes 14579else 14580 _pkg_short_errors_supported=no 14581fi 14582 if test $_pkg_short_errors_supported = yes; then 14583 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pciaccess >= 0.8.0"` 14584 else 14585 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess >= 0.8.0"` 14586 fi 14587 # Put the nasty error message in config.log where it belongs 14588 echo "$PCIACCESS_PKG_ERRORS" >&5 14589 14590 { { echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met: 14591 14592$PCIACCESS_PKG_ERRORS 14593 14594Consider adjusting the PKG_CONFIG_PATH environment variable if you 14595installed software in a non-standard prefix. 14596 14597Alternatively, you may set the environment variables PCIACCESS_CFLAGS 14598and PCIACCESS_LIBS to avoid the need to call pkg-config. 14599See the pkg-config man page for more details. 14600" >&5 14601echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met: 14602 14603$PCIACCESS_PKG_ERRORS 14604 14605Consider adjusting the PKG_CONFIG_PATH environment variable if you 14606installed software in a non-standard prefix. 14607 14608Alternatively, you may set the environment variables PCIACCESS_CFLAGS 14609and PCIACCESS_LIBS to avoid the need to call pkg-config. 14610See the pkg-config man page for more details. 14611" >&2;} 14612 { (exit 1); exit 1; }; } 14613elif test $pkg_failed = untried; then 14614 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 14615is in your PATH or set the PKG_CONFIG environment variable to the full 14616path to pkg-config. 14617 14618Alternatively, you may set the environment variables PCIACCESS_CFLAGS 14619and PCIACCESS_LIBS to avoid the need to call pkg-config. 14620See the pkg-config man page for more details. 14621 14622To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14623See \`config.log' for more details." >&5 14624echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 14625is in your PATH or set the PKG_CONFIG environment variable to the full 14626path to pkg-config. 14627 14628Alternatively, you may set the environment variables PCIACCESS_CFLAGS 14629and PCIACCESS_LIBS to avoid the need to call pkg-config. 14630See the pkg-config man page for more details. 14631 14632To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14633See \`config.log' for more details." >&2;} 14634 { (exit 1); exit 1; }; } 14635else 14636 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 14637 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 14638 { echo "$as_me:$LINENO: result: yes" >&5 14639echo "${ECHO_T}yes" >&6; } 14640 : 14641fi 14642 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 14643fi 14644 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 14645 XSERVER_LIBPCIACCESS_TRUE= 14646 XSERVER_LIBPCIACCESS_FALSE='#' 14647else 14648 XSERVER_LIBPCIACCESS_TRUE='#' 14649 XSERVER_LIBPCIACCESS_FALSE= 14650fi 14651 14652 14653# Checks for headers/macros for byte swapping 14654# Known variants: 14655# <byteswap.h> bswap_16, bswap_32, bswap_64 (glibc) 14656# <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD) 14657# <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's) 14658# and a fallback to local macros if none of the above are found 14659 14660# if <byteswap.h> is found, assume it's the correct version 14661 14662for ac_header in byteswap.h 14663do 14664as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14665if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14666 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14667echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14668if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14669 echo $ECHO_N "(cached) $ECHO_C" >&6 14670fi 14671ac_res=`eval echo '${'$as_ac_Header'}'` 14672 { echo "$as_me:$LINENO: result: $ac_res" >&5 14673echo "${ECHO_T}$ac_res" >&6; } 14674else 14675 # Is the header compilable? 14676{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14677echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14678cat >conftest.$ac_ext <<_ACEOF 14679/* confdefs.h. */ 14680_ACEOF 14681cat confdefs.h >>conftest.$ac_ext 14682cat >>conftest.$ac_ext <<_ACEOF 14683/* end confdefs.h. */ 14684$ac_includes_default 14685#include <$ac_header> 14686_ACEOF 14687rm -f conftest.$ac_objext 14688if { (ac_try="$ac_compile" 14689case "(($ac_try" in 14690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14691 *) ac_try_echo=$ac_try;; 14692esac 14693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14694 (eval "$ac_compile") 2>conftest.er1 14695 ac_status=$? 14696 grep -v '^ *+' conftest.er1 >conftest.err 14697 rm -f conftest.er1 14698 cat conftest.err >&5 14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14700 (exit $ac_status); } && { 14701 test -z "$ac_c_werror_flag" || 14702 test ! -s conftest.err 14703 } && test -s conftest.$ac_objext; then 14704 ac_header_compiler=yes 14705else 14706 echo "$as_me: failed program was:" >&5 14707sed 's/^/| /' conftest.$ac_ext >&5 14708 14709 ac_header_compiler=no 14710fi 14711 14712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14713{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14714echo "${ECHO_T}$ac_header_compiler" >&6; } 14715 14716# Is the header present? 14717{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14718echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14719cat >conftest.$ac_ext <<_ACEOF 14720/* confdefs.h. */ 14721_ACEOF 14722cat confdefs.h >>conftest.$ac_ext 14723cat >>conftest.$ac_ext <<_ACEOF 14724/* end confdefs.h. */ 14725#include <$ac_header> 14726_ACEOF 14727if { (ac_try="$ac_cpp conftest.$ac_ext" 14728case "(($ac_try" in 14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14730 *) ac_try_echo=$ac_try;; 14731esac 14732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14734 ac_status=$? 14735 grep -v '^ *+' conftest.er1 >conftest.err 14736 rm -f conftest.er1 14737 cat conftest.err >&5 14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14739 (exit $ac_status); } >/dev/null && { 14740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 14741 test ! -s conftest.err 14742 }; then 14743 ac_header_preproc=yes 14744else 14745 echo "$as_me: failed program was:" >&5 14746sed 's/^/| /' conftest.$ac_ext >&5 14747 14748 ac_header_preproc=no 14749fi 14750 14751rm -f conftest.err conftest.$ac_ext 14752{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14753echo "${ECHO_T}$ac_header_preproc" >&6; } 14754 14755# So? What about this header? 14756case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14757 yes:no: ) 14758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14759echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14761echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14762 ac_header_preproc=yes 14763 ;; 14764 no:yes:* ) 14765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14766echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14768echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14770echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14772echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14774echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14776echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14777 ( cat <<\_ASBOX 14778## ---------------------------------------------------------------------- ## 14779## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 14780## ---------------------------------------------------------------------- ## 14781_ASBOX 14782 ) | sed "s/^/$as_me: WARNING: /" >&2 14783 ;; 14784esac 14785{ echo "$as_me:$LINENO: checking for $ac_header" >&5 14786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14787if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14788 echo $ECHO_N "(cached) $ECHO_C" >&6 14789else 14790 eval "$as_ac_Header=\$ac_header_preproc" 14791fi 14792ac_res=`eval echo '${'$as_ac_Header'}'` 14793 { echo "$as_me:$LINENO: result: $ac_res" >&5 14794echo "${ECHO_T}$ac_res" >&6; } 14795 14796fi 14797if test `eval echo '${'$as_ac_Header'}'` = yes; then 14798 cat >>confdefs.h <<_ACEOF 14799#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14800_ACEOF 14801 14802fi 14803 14804done 14805 14806 14807# if <sys/endian.h> is found, have to check which version 14808if test "${ac_cv_header_sys_endian_h+set}" = set; then 14809 { echo "$as_me:$LINENO: checking for sys/endian.h" >&5 14810echo $ECHO_N "checking for sys/endian.h... $ECHO_C" >&6; } 14811if test "${ac_cv_header_sys_endian_h+set}" = set; then 14812 echo $ECHO_N "(cached) $ECHO_C" >&6 14813fi 14814{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_endian_h" >&5 14815echo "${ECHO_T}$ac_cv_header_sys_endian_h" >&6; } 14816else 14817 # Is the header compilable? 14818{ echo "$as_me:$LINENO: checking sys/endian.h usability" >&5 14819echo $ECHO_N "checking sys/endian.h usability... $ECHO_C" >&6; } 14820cat >conftest.$ac_ext <<_ACEOF 14821/* confdefs.h. */ 14822_ACEOF 14823cat confdefs.h >>conftest.$ac_ext 14824cat >>conftest.$ac_ext <<_ACEOF 14825/* end confdefs.h. */ 14826$ac_includes_default 14827#include <sys/endian.h> 14828_ACEOF 14829rm -f conftest.$ac_objext 14830if { (ac_try="$ac_compile" 14831case "(($ac_try" in 14832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14833 *) ac_try_echo=$ac_try;; 14834esac 14835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14836 (eval "$ac_compile") 2>conftest.er1 14837 ac_status=$? 14838 grep -v '^ *+' conftest.er1 >conftest.err 14839 rm -f conftest.er1 14840 cat conftest.err >&5 14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14842 (exit $ac_status); } && { 14843 test -z "$ac_c_werror_flag" || 14844 test ! -s conftest.err 14845 } && test -s conftest.$ac_objext; then 14846 ac_header_compiler=yes 14847else 14848 echo "$as_me: failed program was:" >&5 14849sed 's/^/| /' conftest.$ac_ext >&5 14850 14851 ac_header_compiler=no 14852fi 14853 14854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14855{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14856echo "${ECHO_T}$ac_header_compiler" >&6; } 14857 14858# Is the header present? 14859{ echo "$as_me:$LINENO: checking sys/endian.h presence" >&5 14860echo $ECHO_N "checking sys/endian.h presence... $ECHO_C" >&6; } 14861cat >conftest.$ac_ext <<_ACEOF 14862/* confdefs.h. */ 14863_ACEOF 14864cat confdefs.h >>conftest.$ac_ext 14865cat >>conftest.$ac_ext <<_ACEOF 14866/* end confdefs.h. */ 14867#include <sys/endian.h> 14868_ACEOF 14869if { (ac_try="$ac_cpp conftest.$ac_ext" 14870case "(($ac_try" in 14871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14872 *) ac_try_echo=$ac_try;; 14873esac 14874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14876 ac_status=$? 14877 grep -v '^ *+' conftest.er1 >conftest.err 14878 rm -f conftest.er1 14879 cat conftest.err >&5 14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14881 (exit $ac_status); } >/dev/null && { 14882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 14883 test ! -s conftest.err 14884 }; then 14885 ac_header_preproc=yes 14886else 14887 echo "$as_me: failed program was:" >&5 14888sed 's/^/| /' conftest.$ac_ext >&5 14889 14890 ac_header_preproc=no 14891fi 14892 14893rm -f conftest.err conftest.$ac_ext 14894{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14895echo "${ECHO_T}$ac_header_preproc" >&6; } 14896 14897# So? What about this header? 14898case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14899 yes:no: ) 14900 { echo "$as_me:$LINENO: WARNING: sys/endian.h: accepted by the compiler, rejected by the preprocessor!" >&5 14901echo "$as_me: WARNING: sys/endian.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 14902 { echo "$as_me:$LINENO: WARNING: sys/endian.h: proceeding with the compiler's result" >&5 14903echo "$as_me: WARNING: sys/endian.h: proceeding with the compiler's result" >&2;} 14904 ac_header_preproc=yes 14905 ;; 14906 no:yes:* ) 14907 { echo "$as_me:$LINENO: WARNING: sys/endian.h: present but cannot be compiled" >&5 14908echo "$as_me: WARNING: sys/endian.h: present but cannot be compiled" >&2;} 14909 { echo "$as_me:$LINENO: WARNING: sys/endian.h: check for missing prerequisite headers?" >&5 14910echo "$as_me: WARNING: sys/endian.h: check for missing prerequisite headers?" >&2;} 14911 { echo "$as_me:$LINENO: WARNING: sys/endian.h: see the Autoconf documentation" >&5 14912echo "$as_me: WARNING: sys/endian.h: see the Autoconf documentation" >&2;} 14913 { echo "$as_me:$LINENO: WARNING: sys/endian.h: section \"Present But Cannot Be Compiled\"" >&5 14914echo "$as_me: WARNING: sys/endian.h: section \"Present But Cannot Be Compiled\"" >&2;} 14915 { echo "$as_me:$LINENO: WARNING: sys/endian.h: proceeding with the preprocessor's result" >&5 14916echo "$as_me: WARNING: sys/endian.h: proceeding with the preprocessor's result" >&2;} 14917 { echo "$as_me:$LINENO: WARNING: sys/endian.h: in the future, the compiler will take precedence" >&5 14918echo "$as_me: WARNING: sys/endian.h: in the future, the compiler will take precedence" >&2;} 14919 ( cat <<\_ASBOX 14920## ---------------------------------------------------------------------- ## 14921## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 14922## ---------------------------------------------------------------------- ## 14923_ASBOX 14924 ) | sed "s/^/$as_me: WARNING: /" >&2 14925 ;; 14926esac 14927{ echo "$as_me:$LINENO: checking for sys/endian.h" >&5 14928echo $ECHO_N "checking for sys/endian.h... $ECHO_C" >&6; } 14929if test "${ac_cv_header_sys_endian_h+set}" = set; then 14930 echo $ECHO_N "(cached) $ECHO_C" >&6 14931else 14932 ac_cv_header_sys_endian_h=$ac_header_preproc 14933fi 14934{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_endian_h" >&5 14935echo "${ECHO_T}$ac_cv_header_sys_endian_h" >&6; } 14936 14937fi 14938if test $ac_cv_header_sys_endian_h = yes; then 14939 HAVE_SYS_ENDIAN_H="yes" 14940else 14941 HAVE_SYS_ENDIAN_H="no" 14942fi 14943 14944 14945 14946if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then 14947 { echo "$as_me:$LINENO: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5 14948echo $ECHO_N "checking for __swap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; } 14949 cat >conftest.$ac_ext <<_ACEOF 14950/* confdefs.h. */ 14951_ACEOF 14952cat confdefs.h >>conftest.$ac_ext 14953cat >>conftest.$ac_ext <<_ACEOF 14954/* end confdefs.h. */ 14955 14956#include <sys/types.h> 14957#include <sys/endian.h> 14958 14959int 14960main () 14961{ 14962 14963int a = 1, b; 14964b = __swap16(a); 14965 14966 ; 14967 return 0; 14968} 14969 14970_ACEOF 14971rm -f conftest.$ac_objext conftest$ac_exeext 14972if { (ac_try="$ac_link" 14973case "(($ac_try" in 14974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14975 *) ac_try_echo=$ac_try;; 14976esac 14977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14978 (eval "$ac_link") 2>conftest.er1 14979 ac_status=$? 14980 grep -v '^ *+' conftest.er1 >conftest.err 14981 rm -f conftest.er1 14982 cat conftest.err >&5 14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14984 (exit $ac_status); } && { 14985 test -z "$ac_c_werror_flag" || 14986 test ! -s conftest.err 14987 } && test -s conftest$ac_exeext && 14988 $as_test_x conftest$ac_exeext; then 14989 SYS_ENDIAN__SWAP='yes' 14990else 14991 echo "$as_me: failed program was:" >&5 14992sed 's/^/| /' conftest.$ac_ext >&5 14993 14994 SYS_ENDIAN__SWAP='no' 14995fi 14996 14997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14998 conftest$ac_exeext conftest.$ac_ext 14999 { echo "$as_me:$LINENO: result: $SYS_ENDIAN__SWAP" >&5 15000echo "${ECHO_T}$SYS_ENDIAN__SWAP" >&6; } 15001 15002 { echo "$as_me:$LINENO: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5 15003echo $ECHO_N "checking for bswap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; } 15004 cat >conftest.$ac_ext <<_ACEOF 15005/* confdefs.h. */ 15006_ACEOF 15007cat confdefs.h >>conftest.$ac_ext 15008cat >>conftest.$ac_ext <<_ACEOF 15009/* end confdefs.h. */ 15010 15011#include <sys/types.h> 15012#include <sys/endian.h> 15013 15014int 15015main () 15016{ 15017 15018int a = 1, b; 15019b = bswap16(a); 15020 15021 ; 15022 return 0; 15023} 15024 15025_ACEOF 15026rm -f conftest.$ac_objext conftest$ac_exeext 15027if { (ac_try="$ac_link" 15028case "(($ac_try" in 15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15030 *) ac_try_echo=$ac_try;; 15031esac 15032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15033 (eval "$ac_link") 2>conftest.er1 15034 ac_status=$? 15035 grep -v '^ *+' conftest.er1 >conftest.err 15036 rm -f conftest.er1 15037 cat conftest.err >&5 15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15039 (exit $ac_status); } && { 15040 test -z "$ac_c_werror_flag" || 15041 test ! -s conftest.err 15042 } && test -s conftest$ac_exeext && 15043 $as_test_x conftest$ac_exeext; then 15044 SYS_ENDIAN_BSWAP='yes' 15045else 15046 echo "$as_me: failed program was:" >&5 15047sed 's/^/| /' conftest.$ac_ext >&5 15048 15049 SYS_ENDIAN_BSWAP='no' 15050fi 15051 15052rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15053 conftest$ac_exeext conftest.$ac_ext 15054 { echo "$as_me:$LINENO: result: $SYS_ENDIAN_BSWAP" >&5 15055echo "${ECHO_T}$SYS_ENDIAN_BSWAP" >&6; } 15056 15057 if test "$SYS_ENDIAN_BSWAP" = "yes" ; then 15058 USE_SYS_ENDIAN_H=yes 15059 BSWAP=bswap 15060 else 15061 if test "$SYS_ENDIAN__SWAP" = "yes" ; then 15062 USE_SYS_ENDIAN_H=yes 15063 BSWAP=__swap 15064 else 15065 USE_SYS_ENDIAN_H=no 15066 fi 15067 fi 15068 15069 if test "$USE_SYS_ENDIAN_H" = "yes" ; then 15070 15071cat >>confdefs.h <<\_ACEOF 15072#define USE_SYS_ENDIAN_H 1 15073_ACEOF 15074 15075 15076cat >>confdefs.h <<_ACEOF 15077#define bswap_16 ${BSWAP}16 15078_ACEOF 15079 15080 15081cat >>confdefs.h <<_ACEOF 15082#define bswap_32 ${BSWAP}32 15083_ACEOF 15084 15085 15086cat >>confdefs.h <<_ACEOF 15087#define bswap_64 ${BSWAP}64 15088_ACEOF 15089 15090 fi 15091fi 15092 15093case $host_os in 15094 *linux*) 15095 15096cat >>confdefs.h <<\_ACEOF 15097#define FGL_LINUX 1 15098_ACEOF 15099 ;; 15100esac 15101 15102 15103 15104 15105 15106 15107 15108DRIVER_NAME=ati 15109 15110 15111{ echo "$as_me:$LINENO: The atimisc sub-driver has been split out to xf86-video-mach64: 15112 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64 15113Please install that driver as well for mach64-based cards. 15114" >&5 15115echo "$as_me: The atimisc sub-driver has been split out to xf86-video-mach64: 15116 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64 15117Please install that driver as well for mach64-based cards. 15118" >&6;} 15119 15120{ echo "$as_me:$LINENO: The r128 sub-driver has been split out to xf86-video-r128: 15121 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128 15122Please install that driver as well for rage128-based cards. 15123" >&5 15124echo "$as_me: The r128 sub-driver has been split out to xf86-video-r128: 15125 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128 15126Please install that driver as well for rage128-based cards. 15127" >&6;} 15128 15129ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 15130 15131cat >confcache <<\_ACEOF 15132# This file is a shell script that caches the results of configure 15133# tests run on this system so they can be shared between configure 15134# scripts and configure runs, see configure's option --config-cache. 15135# It is not useful on other systems. If it contains results you don't 15136# want to keep, you may remove or edit it. 15137# 15138# config.status only pays attention to the cache file if you give it 15139# the --recheck option to rerun configure. 15140# 15141# `ac_cv_env_foo' variables (set or unset) will be overridden when 15142# loading this file, other *unset* `ac_cv_foo' will be assigned the 15143# following values. 15144 15145_ACEOF 15146 15147# The following way of writing the cache mishandles newlines in values, 15148# but we know of no workaround that is simple, portable, and efficient. 15149# So, we kill variables containing newlines. 15150# Ultrix sh set writes to stderr and can't be redirected directly, 15151# and sets the high bit in the cache file unless we assign to the vars. 15152( 15153 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15154 eval ac_val=\$$ac_var 15155 case $ac_val in #( 15156 *${as_nl}*) 15157 case $ac_var in #( 15158 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 15159echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 15160 esac 15161 case $ac_var in #( 15162 _ | IFS | as_nl) ;; #( 15163 *) $as_unset $ac_var ;; 15164 esac ;; 15165 esac 15166 done 15167 15168 (set) 2>&1 | 15169 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15170 *${as_nl}ac_space=\ *) 15171 # `set' does not quote correctly, so add quotes (double-quote 15172 # substitution turns \\\\ into \\, and sed turns \\ into \). 15173 sed -n \ 15174 "s/'/'\\\\''/g; 15175 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15176 ;; #( 15177 *) 15178 # `set' quotes correctly as required by POSIX, so do not add quotes. 15179 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15180 ;; 15181 esac | 15182 sort 15183) | 15184 sed ' 15185 /^ac_cv_env_/b end 15186 t clear 15187 :clear 15188 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15189 t end 15190 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15191 :end' >>confcache 15192if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15193 if test -w "$cache_file"; then 15194 test "x$cache_file" != "x/dev/null" && 15195 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 15196echo "$as_me: updating cache $cache_file" >&6;} 15197 cat confcache >$cache_file 15198 else 15199 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 15200echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15201 fi 15202fi 15203rm -f confcache 15204 15205test "x$prefix" = xNONE && prefix=$ac_default_prefix 15206# Let make expand exec_prefix. 15207test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15208 15209DEFS=-DHAVE_CONFIG_H 15210 15211ac_libobjs= 15212ac_ltlibobjs= 15213for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15214 # 1. Remove the extension, and $U if already installed. 15215 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15216 ac_i=`echo "$ac_i" | sed "$ac_script"` 15217 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15218 # will be set to the directory where LIBOBJS objects are built. 15219 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15220 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 15221done 15222LIBOBJS=$ac_libobjs 15223 15224LTLIBOBJS=$ac_ltlibobjs 15225 15226 15227if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15228 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 15229Usually this means the macro was only invoked conditionally." >&5 15230echo "$as_me: error: conditional \"AMDEP\" was never defined. 15231Usually this means the macro was only invoked conditionally." >&2;} 15232 { (exit 1); exit 1; }; } 15233fi 15234if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15235 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 15236Usually this means the macro was only invoked conditionally." >&5 15237echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 15238Usually this means the macro was only invoked conditionally." >&2;} 15239 { (exit 1); exit 1; }; } 15240fi 15241if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 15242 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 15243Usually this means the macro was only invoked conditionally." >&5 15244echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 15245Usually this means the macro was only invoked conditionally." >&2;} 15246 { (exit 1); exit 1; }; } 15247fi 15248if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 15249 { { echo "$as_me:$LINENO: error: conditional \"HAVE_XEXTPROTO_71\" was never defined. 15250Usually this means the macro was only invoked conditionally." >&5 15251echo "$as_me: error: conditional \"HAVE_XEXTPROTO_71\" was never defined. 15252Usually this means the macro was only invoked conditionally." >&2;} 15253 { (exit 1); exit 1; }; } 15254fi 15255if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 15256 { { echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined. 15257Usually this means the macro was only invoked conditionally." >&5 15258echo "$as_me: error: conditional \"DRI\" was never defined. 15259Usually this means the macro was only invoked conditionally." >&2;} 15260 { (exit 1); exit 1; }; } 15261fi 15262if test -z "${DRM_MODE_TRUE}" && test -z "${DRM_MODE_FALSE}"; then 15263 { { echo "$as_me:$LINENO: error: conditional \"DRM_MODE\" was never defined. 15264Usually this means the macro was only invoked conditionally." >&5 15265echo "$as_me: error: conditional \"DRM_MODE\" was never defined. 15266Usually this means the macro was only invoked conditionally." >&2;} 15267 { (exit 1); exit 1; }; } 15268fi 15269if test -z "${XMODES_TRUE}" && test -z "${XMODES_FALSE}"; then 15270 { { echo "$as_me:$LINENO: error: conditional \"XMODES\" was never defined. 15271Usually this means the macro was only invoked conditionally." >&5 15272echo "$as_me: error: conditional \"XMODES\" was never defined. 15273Usually this means the macro was only invoked conditionally." >&2;} 15274 { (exit 1); exit 1; }; } 15275fi 15276if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then 15277 { { echo "$as_me:$LINENO: error: conditional \"USE_EXA\" was never defined. 15278Usually this means the macro was only invoked conditionally." >&5 15279echo "$as_me: error: conditional \"USE_EXA\" was never defined. 15280Usually this means the macro was only invoked conditionally." >&2;} 15281 { (exit 1); exit 1; }; } 15282fi 15283if test -z "${XF86DRM_MODE_TRUE}" && test -z "${XF86DRM_MODE_FALSE}"; then 15284 { { echo "$as_me:$LINENO: error: conditional \"XF86DRM_MODE\" was never defined. 15285Usually this means the macro was only invoked conditionally." >&5 15286echo "$as_me: error: conditional \"XF86DRM_MODE\" was never defined. 15287Usually this means the macro was only invoked conditionally." >&2;} 15288 { (exit 1); exit 1; }; } 15289fi 15290if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 15291 { { echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 15292Usually this means the macro was only invoked conditionally." >&5 15293echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 15294Usually this means the macro was only invoked conditionally." >&2;} 15295 { (exit 1); exit 1; }; } 15296fi 15297 15298: ${CONFIG_STATUS=./config.status} 15299ac_clean_files_save=$ac_clean_files 15300ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15301{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 15302echo "$as_me: creating $CONFIG_STATUS" >&6;} 15303cat >$CONFIG_STATUS <<_ACEOF 15304#! $SHELL 15305# Generated by $as_me. 15306# Run this file to recreate the current configuration. 15307# Compiler output produced by configure, useful for debugging 15308# configure, is in config.log if it exists. 15309 15310debug=false 15311ac_cs_recheck=false 15312ac_cs_silent=false 15313SHELL=\${CONFIG_SHELL-$SHELL} 15314_ACEOF 15315 15316cat >>$CONFIG_STATUS <<\_ACEOF 15317## --------------------- ## 15318## M4sh Initialization. ## 15319## --------------------- ## 15320 15321# Be more Bourne compatible 15322DUALCASE=1; export DUALCASE # for MKS sh 15323if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15324 emulate sh 15325 NULLCMD=: 15326 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 15327 # is contrary to our usage. Disable this feature. 15328 alias -g '${1+"$@"}'='"$@"' 15329 setopt NO_GLOB_SUBST 15330else 15331 case `(set -o) 2>/dev/null` in 15332 *posix*) set -o posix ;; 15333esac 15334 15335fi 15336 15337 15338 15339 15340# PATH needs CR 15341# Avoid depending upon Character Ranges. 15342as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15343as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15344as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15345as_cr_digits='0123456789' 15346as_cr_alnum=$as_cr_Letters$as_cr_digits 15347 15348# The user is always right. 15349if test "${PATH_SEPARATOR+set}" != set; then 15350 echo "#! /bin/sh" >conf$$.sh 15351 echo "exit 0" >>conf$$.sh 15352 chmod +x conf$$.sh 15353 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 15354 PATH_SEPARATOR=';' 15355 else 15356 PATH_SEPARATOR=: 15357 fi 15358 rm -f conf$$.sh 15359fi 15360 15361# Support unset when possible. 15362if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 15363 as_unset=unset 15364else 15365 as_unset=false 15366fi 15367 15368 15369# IFS 15370# We need space, tab and new line, in precisely that order. Quoting is 15371# there to prevent editors from complaining about space-tab. 15372# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15373# splitting by setting IFS to empty value.) 15374as_nl=' 15375' 15376IFS=" "" $as_nl" 15377 15378# Find who we are. Look in the path if we contain no directory separator. 15379case $0 in 15380 *[\\/]* ) as_myself=$0 ;; 15381 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15382for as_dir in $PATH 15383do 15384 IFS=$as_save_IFS 15385 test -z "$as_dir" && as_dir=. 15386 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15387done 15388IFS=$as_save_IFS 15389 15390 ;; 15391esac 15392# We did not find ourselves, most probably we were run as `sh COMMAND' 15393# in which case we are not to be found in the path. 15394if test "x$as_myself" = x; then 15395 as_myself=$0 15396fi 15397if test ! -f "$as_myself"; then 15398 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15399 { (exit 1); exit 1; } 15400fi 15401 15402# Work around bugs in pre-3.0 UWIN ksh. 15403for as_var in ENV MAIL MAILPATH 15404do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 15405done 15406PS1='$ ' 15407PS2='> ' 15408PS4='+ ' 15409 15410# NLS nuisances. 15411for as_var in \ 15412 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 15413 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 15414 LC_TELEPHONE LC_TIME 15415do 15416 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 15417 eval $as_var=C; export $as_var 15418 else 15419 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 15420 fi 15421done 15422 15423# Required to use basename. 15424if expr a : '\(a\)' >/dev/null 2>&1 && 15425 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15426 as_expr=expr 15427else 15428 as_expr=false 15429fi 15430 15431if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15432 as_basename=basename 15433else 15434 as_basename=false 15435fi 15436 15437 15438# Name of the executable. 15439as_me=`$as_basename -- "$0" || 15440$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15441 X"$0" : 'X\(//\)$' \| \ 15442 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15443echo X/"$0" | 15444 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15445 s//\1/ 15446 q 15447 } 15448 /^X\/\(\/\/\)$/{ 15449 s//\1/ 15450 q 15451 } 15452 /^X\/\(\/\).*/{ 15453 s//\1/ 15454 q 15455 } 15456 s/.*/./; q'` 15457 15458# CDPATH. 15459$as_unset CDPATH 15460 15461 15462 15463 as_lineno_1=$LINENO 15464 as_lineno_2=$LINENO 15465 test "x$as_lineno_1" != "x$as_lineno_2" && 15466 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 15467 15468 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 15469 # uniformly replaced by the line number. The first 'sed' inserts a 15470 # line-number line after each line using $LINENO; the second 'sed' 15471 # does the real work. The second script uses 'N' to pair each 15472 # line-number line with the line containing $LINENO, and appends 15473 # trailing '-' during substitution so that $LINENO is not a special 15474 # case at line end. 15475 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 15476 # scripts with optimization help from Paolo Bonzini. Blame Lee 15477 # E. McMahon (1931-1989) for sed's syntax. :-) 15478 sed -n ' 15479 p 15480 /[$]LINENO/= 15481 ' <$as_myself | 15482 sed ' 15483 s/[$]LINENO.*/&-/ 15484 t lineno 15485 b 15486 :lineno 15487 N 15488 :loop 15489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 15490 t loop 15491 s/-\n.*// 15492 ' >$as_me.lineno && 15493 chmod +x "$as_me.lineno" || 15494 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 15495 { (exit 1); exit 1; }; } 15496 15497 # Don't try to exec as it changes $[0], causing all sort of problems 15498 # (the dirname of $[0] is not the place where we might find the 15499 # original and so on. Autoconf is especially sensitive to this). 15500 . "./$as_me.lineno" 15501 # Exit status is that of the last command. 15502 exit 15503} 15504 15505 15506if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15507 as_dirname=dirname 15508else 15509 as_dirname=false 15510fi 15511 15512ECHO_C= ECHO_N= ECHO_T= 15513case `echo -n x` in 15514-n*) 15515 case `echo 'x\c'` in 15516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15517 *) ECHO_C='\c';; 15518 esac;; 15519*) 15520 ECHO_N='-n';; 15521esac 15522 15523if expr a : '\(a\)' >/dev/null 2>&1 && 15524 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15525 as_expr=expr 15526else 15527 as_expr=false 15528fi 15529 15530rm -f conf$$ conf$$.exe conf$$.file 15531if test -d conf$$.dir; then 15532 rm -f conf$$.dir/conf$$.file 15533else 15534 rm -f conf$$.dir 15535 mkdir conf$$.dir 15536fi 15537echo >conf$$.file 15538if ln -s conf$$.file conf$$ 2>/dev/null; then 15539 as_ln_s='ln -s' 15540 # ... but there are two gotchas: 15541 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15542 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15543 # In both cases, we have to default to `cp -p'. 15544 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15545 as_ln_s='cp -p' 15546elif ln conf$$.file conf$$ 2>/dev/null; then 15547 as_ln_s=ln 15548else 15549 as_ln_s='cp -p' 15550fi 15551rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15552rmdir conf$$.dir 2>/dev/null 15553 15554if mkdir -p . 2>/dev/null; then 15555 as_mkdir_p=: 15556else 15557 test -d ./-p && rmdir ./-p 15558 as_mkdir_p=false 15559fi 15560 15561if test -x / >/dev/null 2>&1; then 15562 as_test_x='test -x' 15563else 15564 if ls -dL / >/dev/null 2>&1; then 15565 as_ls_L_option=L 15566 else 15567 as_ls_L_option= 15568 fi 15569 as_test_x=' 15570 eval sh -c '\'' 15571 if test -d "$1"; then 15572 test -d "$1/."; 15573 else 15574 case $1 in 15575 -*)set "./$1";; 15576 esac; 15577 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 15578 ???[sx]*):;;*)false;;esac;fi 15579 '\'' sh 15580 ' 15581fi 15582as_executable_p=$as_test_x 15583 15584# Sed expression to map a string onto a valid CPP name. 15585as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15586 15587# Sed expression to map a string onto a valid variable name. 15588as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15589 15590 15591exec 6>&1 15592 15593# Save the log message, to keep $[0] and so on meaningful, and to 15594# report actual input values of CONFIG_FILES etc. instead of their 15595# values after options handling. 15596ac_log=" 15597This file was extended by xf86-video-ati $as_me 6.13.0, which was 15598generated by GNU Autoconf 2.61. Invocation command line was 15599 15600 CONFIG_FILES = $CONFIG_FILES 15601 CONFIG_HEADERS = $CONFIG_HEADERS 15602 CONFIG_LINKS = $CONFIG_LINKS 15603 CONFIG_COMMANDS = $CONFIG_COMMANDS 15604 $ $0 $@ 15605 15606on `(hostname || uname -n) 2>/dev/null | sed 1q` 15607" 15608 15609_ACEOF 15610 15611cat >>$CONFIG_STATUS <<_ACEOF 15612# Files that config.status was made for. 15613config_files="$ac_config_files" 15614config_headers="$ac_config_headers" 15615config_commands="$ac_config_commands" 15616 15617_ACEOF 15618 15619cat >>$CONFIG_STATUS <<\_ACEOF 15620ac_cs_usage="\ 15621\`$as_me' instantiates files from templates according to the 15622current configuration. 15623 15624Usage: $0 [OPTIONS] [FILE]... 15625 15626 -h, --help print this help, then exit 15627 -V, --version print version number and configuration settings, then exit 15628 -q, --quiet do not print progress messages 15629 -d, --debug don't remove temporary files 15630 --recheck update $as_me by reconfiguring in the same conditions 15631 --file=FILE[:TEMPLATE] 15632 instantiate the configuration file FILE 15633 --header=FILE[:TEMPLATE] 15634 instantiate the configuration header FILE 15635 15636Configuration files: 15637$config_files 15638 15639Configuration headers: 15640$config_headers 15641 15642Configuration commands: 15643$config_commands 15644 15645Report bugs to <bug-autoconf@gnu.org>." 15646 15647_ACEOF 15648cat >>$CONFIG_STATUS <<_ACEOF 15649ac_cs_version="\\ 15650xf86-video-ati config.status 6.13.0 15651configured by $0, generated by GNU Autoconf 2.61, 15652 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 15653 15654Copyright (C) 2006 Free Software Foundation, Inc. 15655This config.status script is free software; the Free Software Foundation 15656gives unlimited permission to copy, distribute and modify it." 15657 15658ac_pwd='$ac_pwd' 15659srcdir='$srcdir' 15660INSTALL='$INSTALL' 15661MKDIR_P='$MKDIR_P' 15662_ACEOF 15663 15664cat >>$CONFIG_STATUS <<\_ACEOF 15665# If no file are specified by the user, then we need to provide default 15666# value. By we need to know if files were specified by the user. 15667ac_need_defaults=: 15668while test $# != 0 15669do 15670 case $1 in 15671 --*=*) 15672 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15673 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15674 ac_shift=: 15675 ;; 15676 *) 15677 ac_option=$1 15678 ac_optarg=$2 15679 ac_shift=shift 15680 ;; 15681 esac 15682 15683 case $ac_option in 15684 # Handling of the options. 15685 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15686 ac_cs_recheck=: ;; 15687 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15688 echo "$ac_cs_version"; exit ;; 15689 --debug | --debu | --deb | --de | --d | -d ) 15690 debug=: ;; 15691 --file | --fil | --fi | --f ) 15692 $ac_shift 15693 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 15694 ac_need_defaults=false;; 15695 --header | --heade | --head | --hea ) 15696 $ac_shift 15697 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 15698 ac_need_defaults=false;; 15699 --he | --h) 15700 # Conflict between --help and --header 15701 { echo "$as_me: error: ambiguous option: $1 15702Try \`$0 --help' for more information." >&2 15703 { (exit 1); exit 1; }; };; 15704 --help | --hel | -h ) 15705 echo "$ac_cs_usage"; exit ;; 15706 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15707 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15708 ac_cs_silent=: ;; 15709 15710 # This is an error. 15711 -*) { echo "$as_me: error: unrecognized option: $1 15712Try \`$0 --help' for more information." >&2 15713 { (exit 1); exit 1; }; } ;; 15714 15715 *) ac_config_targets="$ac_config_targets $1" 15716 ac_need_defaults=false ;; 15717 15718 esac 15719 shift 15720done 15721 15722ac_configure_extra_args= 15723 15724if $ac_cs_silent; then 15725 exec 6>/dev/null 15726 ac_configure_extra_args="$ac_configure_extra_args --silent" 15727fi 15728 15729_ACEOF 15730cat >>$CONFIG_STATUS <<_ACEOF 15731if \$ac_cs_recheck; then 15732 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 15733 CONFIG_SHELL=$SHELL 15734 export CONFIG_SHELL 15735 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15736fi 15737 15738_ACEOF 15739cat >>$CONFIG_STATUS <<\_ACEOF 15740exec 5>>config.log 15741{ 15742 echo 15743 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15744## Running $as_me. ## 15745_ASBOX 15746 echo "$ac_log" 15747} >&5 15748 15749_ACEOF 15750cat >>$CONFIG_STATUS <<_ACEOF 15751# 15752# INIT-COMMANDS 15753# 15754AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15755 15756 15757# The HP-UX ksh and POSIX shell print the target directory to stdout 15758# if CDPATH is set. 15759(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15760 15761sed_quote_subst='$sed_quote_subst' 15762double_quote_subst='$double_quote_subst' 15763delay_variable_subst='$delay_variable_subst' 15764enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 15765macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 15766macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 15767enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 15768pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 15769enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 15770host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 15771host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 15772host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 15773build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 15774build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 15775build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 15776SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 15777Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 15778GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 15779EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 15780FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 15781LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 15782NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 15783LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 15784max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 15785ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 15786exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 15787lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 15788lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 15789lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 15790reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 15791reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15792deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 15793file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 15794AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 15795AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 15796STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 15797RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 15798old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15799old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15800old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15801CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 15802CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 15803compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 15804GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 15805lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 15806lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 15807lt_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"`' 15808lt_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"`' 15809objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 15810SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 15811ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 15812MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 15813lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 15814lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 15815lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 15816lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 15817lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 15818need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 15819DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 15820NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 15821LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 15822OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 15823OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 15824libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 15825shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15826extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15827archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 15828enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 15829export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 15830whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 15831compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 15832old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15833old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15834archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15835archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15836module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15837module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15838with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 15839allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 15840no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 15841hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 15842hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 15843hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 15844hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 15845hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 15846hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 15847hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 15848hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 15849inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 15850link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 15851fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 15852always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 15853export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15854exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 15855include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 15856prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15857file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 15858variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 15859need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 15860need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 15861version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 15862runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 15863shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 15864shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 15865libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 15866library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 15867soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 15868postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15869postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15870finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15871finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 15872hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 15873sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 15874sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 15875hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 15876enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 15877enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 15878enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 15879old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 15880striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 15881 15882LTCC='$LTCC' 15883LTCFLAGS='$LTCFLAGS' 15884compiler='$compiler_DEFAULT' 15885 15886# Quote evaled strings. 15887for var in SED \ 15888GREP \ 15889EGREP \ 15890FGREP \ 15891LD \ 15892NM \ 15893LN_S \ 15894lt_SP2NL \ 15895lt_NL2SP \ 15896reload_flag \ 15897deplibs_check_method \ 15898file_magic_cmd \ 15899AR \ 15900AR_FLAGS \ 15901STRIP \ 15902RANLIB \ 15903CC \ 15904CFLAGS \ 15905compiler \ 15906lt_cv_sys_global_symbol_pipe \ 15907lt_cv_sys_global_symbol_to_cdecl \ 15908lt_cv_sys_global_symbol_to_c_name_address \ 15909lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15910SHELL \ 15911ECHO \ 15912lt_prog_compiler_no_builtin_flag \ 15913lt_prog_compiler_wl \ 15914lt_prog_compiler_pic \ 15915lt_prog_compiler_static \ 15916lt_cv_prog_compiler_c_o \ 15917need_locks \ 15918DSYMUTIL \ 15919NMEDIT \ 15920LIPO \ 15921OTOOL \ 15922OTOOL64 \ 15923shrext_cmds \ 15924export_dynamic_flag_spec \ 15925whole_archive_flag_spec \ 15926compiler_needs_object \ 15927with_gnu_ld \ 15928allow_undefined_flag \ 15929no_undefined_flag \ 15930hardcode_libdir_flag_spec \ 15931hardcode_libdir_flag_spec_ld \ 15932hardcode_libdir_separator \ 15933fix_srcfile_path \ 15934exclude_expsyms \ 15935include_expsyms \ 15936file_list_spec \ 15937variables_saved_for_relink \ 15938libname_spec \ 15939library_names_spec \ 15940soname_spec \ 15941finish_eval \ 15942old_striplib \ 15943striplib; do 15944 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 15945 *[\\\\\\\`\\"\\\$]*) 15946 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15947 ;; 15948 *) 15949 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15950 ;; 15951 esac 15952done 15953 15954# Double-quote double-evaled strings. 15955for var in reload_cmds \ 15956old_postinstall_cmds \ 15957old_postuninstall_cmds \ 15958old_archive_cmds \ 15959extract_expsyms_cmds \ 15960old_archive_from_new_cmds \ 15961old_archive_from_expsyms_cmds \ 15962archive_cmds \ 15963archive_expsym_cmds \ 15964module_cmds \ 15965module_expsym_cmds \ 15966export_symbols_cmds \ 15967prelink_cmds \ 15968postinstall_cmds \ 15969postuninstall_cmds \ 15970finish_cmds \ 15971sys_lib_search_path_spec \ 15972sys_lib_dlsearch_path_spec; do 15973 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 15974 *[\\\\\\\`\\"\\\$]*) 15975 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 15976 ;; 15977 *) 15978 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15979 ;; 15980 esac 15981done 15982 15983# Fix-up fallback echo if it was mangled by the above quoting rules. 15984case \$lt_ECHO in 15985*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 15986 ;; 15987esac 15988 15989ac_aux_dir='$ac_aux_dir' 15990xsi_shell='$xsi_shell' 15991lt_shell_append='$lt_shell_append' 15992 15993# See if we are running on zsh, and set the options which allow our 15994# commands through without removal of \ escapes INIT. 15995if test -n "\${ZSH_VERSION+set}" ; then 15996 setopt NO_GLOB_SUBST 15997fi 15998 15999 16000 PACKAGE='$PACKAGE' 16001 VERSION='$VERSION' 16002 TIMESTAMP='$TIMESTAMP' 16003 RM='$RM' 16004 ofile='$ofile' 16005 16006 16007 16008 16009_ACEOF 16010 16011cat >>$CONFIG_STATUS <<\_ACEOF 16012 16013# Handling of arguments. 16014for ac_config_target in $ac_config_targets 16015do 16016 case $ac_config_target in 16017 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 16018 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16019 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16020 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16021 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 16022 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 16023 16024 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 16025echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 16026 { (exit 1); exit 1; }; };; 16027 esac 16028done 16029 16030 16031# If the user did not use the arguments to specify the items to instantiate, 16032# then the envvar interface is used. Set only those that are not. 16033# We use the long form for the default assignment because of an extremely 16034# bizarre bug on SunOS 4.1.3. 16035if $ac_need_defaults; then 16036 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16037 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16038 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16039fi 16040 16041# Have a temporary directory for convenience. Make it in the build tree 16042# simply because there is no reason against having it here, and in addition, 16043# creating and moving files from /tmp can sometimes cause problems. 16044# Hook for its removal unless debugging. 16045# Note that there is a small window in which the directory will not be cleaned: 16046# after its creation but before its name has been assigned to `$tmp'. 16047$debug || 16048{ 16049 tmp= 16050 trap 'exit_status=$? 16051 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 16052' 0 16053 trap '{ (exit 1); exit 1; }' 1 2 13 15 16054} 16055# Create a (secure) tmp directory for tmp files. 16056 16057{ 16058 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16059 test -n "$tmp" && test -d "$tmp" 16060} || 16061{ 16062 tmp=./conf$$-$RANDOM 16063 (umask 077 && mkdir "$tmp") 16064} || 16065{ 16066 echo "$me: cannot create a temporary directory in ." >&2 16067 { (exit 1); exit 1; } 16068} 16069 16070# 16071# Set up the sed scripts for CONFIG_FILES section. 16072# 16073 16074# No need to generate the scripts if there are no CONFIG_FILES. 16075# This happens for instance when ./config.status config.h 16076if test -n "$CONFIG_FILES"; then 16077 16078_ACEOF 16079 16080 16081 16082ac_delim='%!_!# ' 16083for ac_last_try in false false false false false :; do 16084 cat >conf$$subs.sed <<_ACEOF 16085SHELL!$SHELL$ac_delim 16086PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 16087PACKAGE_NAME!$PACKAGE_NAME$ac_delim 16088PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 16089PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 16090PACKAGE_STRING!$PACKAGE_STRING$ac_delim 16091PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 16092exec_prefix!$exec_prefix$ac_delim 16093prefix!$prefix$ac_delim 16094program_transform_name!$program_transform_name$ac_delim 16095bindir!$bindir$ac_delim 16096sbindir!$sbindir$ac_delim 16097libexecdir!$libexecdir$ac_delim 16098datarootdir!$datarootdir$ac_delim 16099datadir!$datadir$ac_delim 16100sysconfdir!$sysconfdir$ac_delim 16101sharedstatedir!$sharedstatedir$ac_delim 16102localstatedir!$localstatedir$ac_delim 16103includedir!$includedir$ac_delim 16104oldincludedir!$oldincludedir$ac_delim 16105docdir!$docdir$ac_delim 16106infodir!$infodir$ac_delim 16107htmldir!$htmldir$ac_delim 16108dvidir!$dvidir$ac_delim 16109pdfdir!$pdfdir$ac_delim 16110psdir!$psdir$ac_delim 16111libdir!$libdir$ac_delim 16112localedir!$localedir$ac_delim 16113mandir!$mandir$ac_delim 16114DEFS!$DEFS$ac_delim 16115ECHO_C!$ECHO_C$ac_delim 16116ECHO_N!$ECHO_N$ac_delim 16117ECHO_T!$ECHO_T$ac_delim 16118LIBS!$LIBS$ac_delim 16119build_alias!$build_alias$ac_delim 16120host_alias!$host_alias$ac_delim 16121target_alias!$target_alias$ac_delim 16122CC!$CC$ac_delim 16123CFLAGS!$CFLAGS$ac_delim 16124LDFLAGS!$LDFLAGS$ac_delim 16125CPPFLAGS!$CPPFLAGS$ac_delim 16126ac_ct_CC!$ac_ct_CC$ac_delim 16127EXEEXT!$EXEEXT$ac_delim 16128OBJEXT!$OBJEXT$ac_delim 16129CPP!$CPP$ac_delim 16130GREP!$GREP$ac_delim 16131EGREP!$EGREP$ac_delim 16132CWARNFLAGS!$CWARNFLAGS$ac_delim 16133CHANGELOG_CMD!$CHANGELOG_CMD$ac_delim 16134INSTALL_CMD!$INSTALL_CMD$ac_delim 16135build!$build$ac_delim 16136build_cpu!$build_cpu$ac_delim 16137build_vendor!$build_vendor$ac_delim 16138build_os!$build_os$ac_delim 16139host!$host$ac_delim 16140host_cpu!$host_cpu$ac_delim 16141host_vendor!$host_vendor$ac_delim 16142host_os!$host_os$ac_delim 16143APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim 16144LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim 16145FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim 16146MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim 16147DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim 16148ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim 16149APP_MAN_DIR!$APP_MAN_DIR$ac_delim 16150LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim 16151FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim 16152MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim 16153DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim 16154ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim 16155INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 16156INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 16157INSTALL_DATA!$INSTALL_DATA$ac_delim 16158am__isrc!$am__isrc$ac_delim 16159CYGPATH_W!$CYGPATH_W$ac_delim 16160PACKAGE!$PACKAGE$ac_delim 16161VERSION!$VERSION$ac_delim 16162ACLOCAL!$ACLOCAL$ac_delim 16163AUTOCONF!$AUTOCONF$ac_delim 16164AUTOMAKE!$AUTOMAKE$ac_delim 16165AUTOHEADER!$AUTOHEADER$ac_delim 16166MAKEINFO!$MAKEINFO$ac_delim 16167install_sh!$install_sh$ac_delim 16168STRIP!$STRIP$ac_delim 16169INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 16170mkdir_p!$mkdir_p$ac_delim 16171AWK!$AWK$ac_delim 16172SET_MAKE!$SET_MAKE$ac_delim 16173am__leading_dot!$am__leading_dot$ac_delim 16174AMTAR!$AMTAR$ac_delim 16175am__tar!$am__tar$ac_delim 16176am__untar!$am__untar$ac_delim 16177DEPDIR!$DEPDIR$ac_delim 16178am__include!$am__include$ac_delim 16179am__quote!$am__quote$ac_delim 16180AMDEP_TRUE!$AMDEP_TRUE$ac_delim 16181AMDEP_FALSE!$AMDEP_FALSE$ac_delim 16182_ACEOF 16183 16184 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 16185 break 16186 elif $ac_last_try; then 16187 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 16188echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 16189 { (exit 1); exit 1; }; } 16190 else 16191 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16192 fi 16193done 16194 16195ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 16196if test -n "$ac_eof"; then 16197 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 16198 ac_eof=`expr $ac_eof + 1` 16199fi 16200 16201cat >>$CONFIG_STATUS <<_ACEOF 16202cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 16203/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16204_ACEOF 16205sed ' 16206s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 16207s/^/s,@/; s/!/@,|#_!!_#|/ 16208:n 16209t n 16210s/'"$ac_delim"'$/,g/; t 16211s/$/\\/; p 16212N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 16213' >>$CONFIG_STATUS <conf$$subs.sed 16214rm -f conf$$subs.sed 16215cat >>$CONFIG_STATUS <<_ACEOF 16216CEOF$ac_eof 16217_ACEOF 16218 16219 16220ac_delim='%!_!# ' 16221for ac_last_try in false false false false false :; do 16222 cat >conf$$subs.sed <<_ACEOF 16223AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 16224CCDEPMODE!$CCDEPMODE$ac_delim 16225am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 16226am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 16227MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 16228MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 16229MAINT!$MAINT$ac_delim 16230LIBTOOL!$LIBTOOL$ac_delim 16231SED!$SED$ac_delim 16232FGREP!$FGREP$ac_delim 16233LD!$LD$ac_delim 16234DUMPBIN!$DUMPBIN$ac_delim 16235ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim 16236NM!$NM$ac_delim 16237LN_S!$LN_S$ac_delim 16238AR!$AR$ac_delim 16239RANLIB!$RANLIB$ac_delim 16240lt_ECHO!$lt_ECHO$ac_delim 16241DSYMUTIL!$DSYMUTIL$ac_delim 16242NMEDIT!$NMEDIT$ac_delim 16243LIPO!$LIPO$ac_delim 16244OTOOL!$OTOOL$ac_delim 16245OTOOL64!$OTOOL64$ac_delim 16246PKG_CONFIG!$PKG_CONFIG$ac_delim 16247XORG_CFLAGS!$XORG_CFLAGS$ac_delim 16248XORG_LIBS!$XORG_LIBS$ac_delim 16249XEXT_CFLAGS!$XEXT_CFLAGS$ac_delim 16250XEXT_LIBS!$XEXT_LIBS$ac_delim 16251HAVE_XEXTPROTO_71_TRUE!$HAVE_XEXTPROTO_71_TRUE$ac_delim 16252HAVE_XEXTPROTO_71_FALSE!$HAVE_XEXTPROTO_71_FALSE$ac_delim 16253DRI_CFLAGS!$DRI_CFLAGS$ac_delim 16254DRI_LIBS!$DRI_LIBS$ac_delim 16255DRI_TRUE!$DRI_TRUE$ac_delim 16256DRI_FALSE!$DRI_FALSE$ac_delim 16257LIBDRM_RADEON_CFLAGS!$LIBDRM_RADEON_CFLAGS$ac_delim 16258LIBDRM_RADEON_LIBS!$LIBDRM_RADEON_LIBS$ac_delim 16259DRM_MODE_TRUE!$DRM_MODE_TRUE$ac_delim 16260DRM_MODE_FALSE!$DRM_MODE_FALSE$ac_delim 16261XMODES_TRUE!$XMODES_TRUE$ac_delim 16262XMODES_FALSE!$XMODES_FALSE$ac_delim 16263XMODES_CFLAGS!$XMODES_CFLAGS$ac_delim 16264USE_EXA_TRUE!$USE_EXA_TRUE$ac_delim 16265USE_EXA_FALSE!$USE_EXA_FALSE$ac_delim 16266XF86DRM_MODE_TRUE!$XF86DRM_MODE_TRUE$ac_delim 16267XF86DRM_MODE_FALSE!$XF86DRM_MODE_FALSE$ac_delim 16268PCIACCESS_CFLAGS!$PCIACCESS_CFLAGS$ac_delim 16269PCIACCESS_LIBS!$PCIACCESS_LIBS$ac_delim 16270XSERVER_LIBPCIACCESS_TRUE!$XSERVER_LIBPCIACCESS_TRUE$ac_delim 16271XSERVER_LIBPCIACCESS_FALSE!$XSERVER_LIBPCIACCESS_FALSE$ac_delim 16272moduledir!$moduledir$ac_delim 16273DRIVER_NAME!$DRIVER_NAME$ac_delim 16274LIBOBJS!$LIBOBJS$ac_delim 16275LTLIBOBJS!$LTLIBOBJS$ac_delim 16276_ACEOF 16277 16278 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then 16279 break 16280 elif $ac_last_try; then 16281 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 16282echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 16283 { (exit 1); exit 1; }; } 16284 else 16285 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16286 fi 16287done 16288 16289ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 16290if test -n "$ac_eof"; then 16291 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 16292 ac_eof=`expr $ac_eof + 1` 16293fi 16294 16295cat >>$CONFIG_STATUS <<_ACEOF 16296cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 16297/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 16298_ACEOF 16299sed ' 16300s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 16301s/^/s,@/; s/!/@,|#_!!_#|/ 16302:n 16303t n 16304s/'"$ac_delim"'$/,g/; t 16305s/$/\\/; p 16306N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 16307' >>$CONFIG_STATUS <conf$$subs.sed 16308rm -f conf$$subs.sed 16309cat >>$CONFIG_STATUS <<_ACEOF 16310:end 16311s/|#_!!_#|//g 16312CEOF$ac_eof 16313_ACEOF 16314 16315 16316# VPATH may cause trouble with some makes, so we remove $(srcdir), 16317# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 16318# trailing colons and then remove the whole line if VPATH becomes empty 16319# (actually we leave an empty line to preserve line numbers). 16320if test "x$srcdir" = x.; then 16321 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 16322s/:*\$(srcdir):*/:/ 16323s/:*\${srcdir}:*/:/ 16324s/:*@srcdir@:*/:/ 16325s/^\([^=]*=[ ]*\):*/\1/ 16326s/:*$// 16327s/^[^=]*=[ ]*$// 16328}' 16329fi 16330 16331cat >>$CONFIG_STATUS <<\_ACEOF 16332fi # test -n "$CONFIG_FILES" 16333 16334 16335for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 16336do 16337 case $ac_tag in 16338 :[FHLC]) ac_mode=$ac_tag; continue;; 16339 esac 16340 case $ac_mode$ac_tag in 16341 :[FHL]*:*);; 16342 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 16343echo "$as_me: error: Invalid tag $ac_tag." >&2;} 16344 { (exit 1); exit 1; }; };; 16345 :[FH]-) ac_tag=-:-;; 16346 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16347 esac 16348 ac_save_IFS=$IFS 16349 IFS=: 16350 set x $ac_tag 16351 IFS=$ac_save_IFS 16352 shift 16353 ac_file=$1 16354 shift 16355 16356 case $ac_mode in 16357 :L) ac_source=$1;; 16358 :[FH]) 16359 ac_file_inputs= 16360 for ac_f 16361 do 16362 case $ac_f in 16363 -) ac_f="$tmp/stdin";; 16364 *) # Look for the file first in the build tree, then in the source tree 16365 # (if the path is not absolute). The absolute path cannot be DOS-style, 16366 # because $ac_f cannot contain `:'. 16367 test -f "$ac_f" || 16368 case $ac_f in 16369 [\\/$]*) false;; 16370 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16371 esac || 16372 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 16373echo "$as_me: error: cannot find input file: $ac_f" >&2;} 16374 { (exit 1); exit 1; }; };; 16375 esac 16376 ac_file_inputs="$ac_file_inputs $ac_f" 16377 done 16378 16379 # Let's still pretend it is `configure' which instantiates (i.e., don't 16380 # use $as_me), people would be surprised to read: 16381 # /* config.h. Generated by config.status. */ 16382 configure_input="Generated from "`IFS=: 16383 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 16384 if test x"$ac_file" != x-; then 16385 configure_input="$ac_file. $configure_input" 16386 { echo "$as_me:$LINENO: creating $ac_file" >&5 16387echo "$as_me: creating $ac_file" >&6;} 16388 fi 16389 16390 case $ac_tag in 16391 *:-:* | *:-) cat >"$tmp/stdin";; 16392 esac 16393 ;; 16394 esac 16395 16396 ac_dir=`$as_dirname -- "$ac_file" || 16397$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16398 X"$ac_file" : 'X\(//\)[^/]' \| \ 16399 X"$ac_file" : 'X\(//\)$' \| \ 16400 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16401echo X"$ac_file" | 16402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16403 s//\1/ 16404 q 16405 } 16406 /^X\(\/\/\)[^/].*/{ 16407 s//\1/ 16408 q 16409 } 16410 /^X\(\/\/\)$/{ 16411 s//\1/ 16412 q 16413 } 16414 /^X\(\/\).*/{ 16415 s//\1/ 16416 q 16417 } 16418 s/.*/./; q'` 16419 { as_dir="$ac_dir" 16420 case $as_dir in #( 16421 -*) as_dir=./$as_dir;; 16422 esac 16423 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 16424 as_dirs= 16425 while :; do 16426 case $as_dir in #( 16427 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 16428 *) as_qdir=$as_dir;; 16429 esac 16430 as_dirs="'$as_qdir' $as_dirs" 16431 as_dir=`$as_dirname -- "$as_dir" || 16432$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16433 X"$as_dir" : 'X\(//\)[^/]' \| \ 16434 X"$as_dir" : 'X\(//\)$' \| \ 16435 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16436echo X"$as_dir" | 16437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16438 s//\1/ 16439 q 16440 } 16441 /^X\(\/\/\)[^/].*/{ 16442 s//\1/ 16443 q 16444 } 16445 /^X\(\/\/\)$/{ 16446 s//\1/ 16447 q 16448 } 16449 /^X\(\/\).*/{ 16450 s//\1/ 16451 q 16452 } 16453 s/.*/./; q'` 16454 test -d "$as_dir" && break 16455 done 16456 test -z "$as_dirs" || eval "mkdir $as_dirs" 16457 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 16458echo "$as_me: error: cannot create directory $as_dir" >&2;} 16459 { (exit 1); exit 1; }; }; } 16460 ac_builddir=. 16461 16462case "$ac_dir" in 16463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16464*) 16465 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 16466 # A ".." for each directory in $ac_dir_suffix. 16467 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 16468 case $ac_top_builddir_sub in 16469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16471 esac ;; 16472esac 16473ac_abs_top_builddir=$ac_pwd 16474ac_abs_builddir=$ac_pwd$ac_dir_suffix 16475# for backward compatibility: 16476ac_top_builddir=$ac_top_build_prefix 16477 16478case $srcdir in 16479 .) # We are building in place. 16480 ac_srcdir=. 16481 ac_top_srcdir=$ac_top_builddir_sub 16482 ac_abs_top_srcdir=$ac_pwd ;; 16483 [\\/]* | ?:[\\/]* ) # Absolute name. 16484 ac_srcdir=$srcdir$ac_dir_suffix; 16485 ac_top_srcdir=$srcdir 16486 ac_abs_top_srcdir=$srcdir ;; 16487 *) # Relative name. 16488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16489 ac_top_srcdir=$ac_top_build_prefix$srcdir 16490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16491esac 16492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16493 16494 16495 case $ac_mode in 16496 :F) 16497 # 16498 # CONFIG_FILE 16499 # 16500 16501 case $INSTALL in 16502 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16503 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16504 esac 16505 ac_MKDIR_P=$MKDIR_P 16506 case $MKDIR_P in 16507 [\\/$]* | ?:[\\/]* ) ;; 16508 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16509 esac 16510_ACEOF 16511 16512cat >>$CONFIG_STATUS <<\_ACEOF 16513# If the template does not know about datarootdir, expand it. 16514# FIXME: This hack should be removed a few years after 2.60. 16515ac_datarootdir_hack=; ac_datarootdir_seen= 16516 16517case `sed -n '/datarootdir/ { 16518 p 16519 q 16520} 16521/@datadir@/p 16522/@docdir@/p 16523/@infodir@/p 16524/@localedir@/p 16525/@mandir@/p 16526' $ac_file_inputs` in 16527*datarootdir*) ac_datarootdir_seen=yes;; 16528*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16529 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16530echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16531_ACEOF 16532cat >>$CONFIG_STATUS <<_ACEOF 16533 ac_datarootdir_hack=' 16534 s&@datadir@&$datadir&g 16535 s&@docdir@&$docdir&g 16536 s&@infodir@&$infodir&g 16537 s&@localedir@&$localedir&g 16538 s&@mandir@&$mandir&g 16539 s&\\\${datarootdir}&$datarootdir&g' ;; 16540esac 16541_ACEOF 16542 16543# Neutralize VPATH when `$srcdir' = `.'. 16544# Shell code in configure.ac might set extrasub. 16545# FIXME: do we really want to maintain this feature? 16546cat >>$CONFIG_STATUS <<_ACEOF 16547 sed "$ac_vpsub 16548$extrasub 16549_ACEOF 16550cat >>$CONFIG_STATUS <<\_ACEOF 16551:t 16552/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16553s&@configure_input@&$configure_input&;t t 16554s&@top_builddir@&$ac_top_builddir_sub&;t t 16555s&@srcdir@&$ac_srcdir&;t t 16556s&@abs_srcdir@&$ac_abs_srcdir&;t t 16557s&@top_srcdir@&$ac_top_srcdir&;t t 16558s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16559s&@builddir@&$ac_builddir&;t t 16560s&@abs_builddir@&$ac_abs_builddir&;t t 16561s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16562s&@INSTALL@&$ac_INSTALL&;t t 16563s&@MKDIR_P@&$ac_MKDIR_P&;t t 16564$ac_datarootdir_hack 16565" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 16566 16567test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16568 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 16569 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 16570 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16571which seems to be undefined. Please make sure it is defined." >&5 16572echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16573which seems to be undefined. Please make sure it is defined." >&2;} 16574 16575 rm -f "$tmp/stdin" 16576 case $ac_file in 16577 -) cat "$tmp/out"; rm -f "$tmp/out";; 16578 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 16579 esac 16580 ;; 16581 :H) 16582 # 16583 # CONFIG_HEADER 16584 # 16585_ACEOF 16586 16587# Transform confdefs.h into a sed script `conftest.defines', that 16588# substitutes the proper values into config.h.in to produce config.h. 16589rm -f conftest.defines conftest.tail 16590# First, append a space to every undef/define line, to ease matching. 16591echo 's/$/ /' >conftest.defines 16592# Then, protect against being on the right side of a sed subst, or in 16593# an unquoted here document, in config.status. If some macros were 16594# called several times there might be several #defines for the same 16595# symbol, which is useless. But do not sort them, since the last 16596# AC_DEFINE must be honored. 16597ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16598# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 16599# NAME is the cpp macro being defined, VALUE is the value it is being given. 16600# PARAMS is the parameter list in the macro definition--in most cases, it's 16601# just an empty string. 16602ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 16603ac_dB='\\)[ (].*,\\1define\\2' 16604ac_dC=' ' 16605ac_dD=' ,' 16606 16607uniq confdefs.h | 16608 sed -n ' 16609 t rset 16610 :rset 16611 s/^[ ]*#[ ]*define[ ][ ]*// 16612 t ok 16613 d 16614 :ok 16615 s/[\\&,]/\\&/g 16616 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 16617 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 16618 ' >>conftest.defines 16619 16620# Remove the space that was appended to ease matching. 16621# Then replace #undef with comments. This is necessary, for 16622# example, in the case of _POSIX_SOURCE, which is predefined and required 16623# on some systems where configure will not decide to define it. 16624# (The regexp can be short, since the line contains either #define or #undef.) 16625echo 's/ $// 16626s,^[ #]*u.*,/* & */,' >>conftest.defines 16627 16628# Break up conftest.defines: 16629ac_max_sed_lines=50 16630 16631# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 16632# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 16633# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 16634# et cetera. 16635ac_in='$ac_file_inputs' 16636ac_out='"$tmp/out1"' 16637ac_nxt='"$tmp/out2"' 16638 16639while : 16640do 16641 # Write a here document: 16642 cat >>$CONFIG_STATUS <<_ACEOF 16643 # First, check the format of the line: 16644 cat >"\$tmp/defines.sed" <<\\CEOF 16645/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 16646/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 16647b 16648:def 16649_ACEOF 16650 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 16651 echo 'CEOF 16652 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 16653 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 16654 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 16655 grep . conftest.tail >/dev/null || break 16656 rm -f conftest.defines 16657 mv conftest.tail conftest.defines 16658done 16659rm -f conftest.defines conftest.tail 16660 16661echo "ac_result=$ac_in" >>$CONFIG_STATUS 16662cat >>$CONFIG_STATUS <<\_ACEOF 16663 if test x"$ac_file" != x-; then 16664 echo "/* $configure_input */" >"$tmp/config.h" 16665 cat "$ac_result" >>"$tmp/config.h" 16666 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 16667 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 16668echo "$as_me: $ac_file is unchanged" >&6;} 16669 else 16670 rm -f $ac_file 16671 mv "$tmp/config.h" $ac_file 16672 fi 16673 else 16674 echo "/* $configure_input */" 16675 cat "$ac_result" 16676 fi 16677 rm -f "$tmp/out12" 16678# Compute $ac_file's index in $config_headers. 16679_am_arg=$ac_file 16680_am_stamp_count=1 16681for _am_header in $config_headers :; do 16682 case $_am_header in 16683 $_am_arg | $_am_arg:* ) 16684 break ;; 16685 * ) 16686 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16687 esac 16688done 16689echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16690$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16691 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16692 X"$_am_arg" : 'X\(//\)$' \| \ 16693 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16694echo X"$_am_arg" | 16695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16696 s//\1/ 16697 q 16698 } 16699 /^X\(\/\/\)[^/].*/{ 16700 s//\1/ 16701 q 16702 } 16703 /^X\(\/\/\)$/{ 16704 s//\1/ 16705 q 16706 } 16707 /^X\(\/\).*/{ 16708 s//\1/ 16709 q 16710 } 16711 s/.*/./; q'`/stamp-h$_am_stamp_count 16712 ;; 16713 16714 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 16715echo "$as_me: executing $ac_file commands" >&6;} 16716 ;; 16717 esac 16718 16719 16720 case $ac_file$ac_mode in 16721 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 16722 # Strip MF so we end up with the name of the file. 16723 mf=`echo "$mf" | sed -e 's/:.*$//'` 16724 # Check whether this is an Automake generated Makefile or not. 16725 # We used to match only the files named `Makefile.in', but 16726 # some people rename them; so instead we look at the file content. 16727 # Grep'ing the first line is not enough: some people post-process 16728 # each Makefile.in and add a new line on top of each file to say so. 16729 # Grep'ing the whole file is not good either: AIX grep has a line 16730 # limit of 2048, but all sed's we know have understand at least 4000. 16731 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16732 dirpart=`$as_dirname -- "$mf" || 16733$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16734 X"$mf" : 'X\(//\)[^/]' \| \ 16735 X"$mf" : 'X\(//\)$' \| \ 16736 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16737echo X"$mf" | 16738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16739 s//\1/ 16740 q 16741 } 16742 /^X\(\/\/\)[^/].*/{ 16743 s//\1/ 16744 q 16745 } 16746 /^X\(\/\/\)$/{ 16747 s//\1/ 16748 q 16749 } 16750 /^X\(\/\).*/{ 16751 s//\1/ 16752 q 16753 } 16754 s/.*/./; q'` 16755 else 16756 continue 16757 fi 16758 # Extract the definition of DEPDIR, am__include, and am__quote 16759 # from the Makefile without running `make'. 16760 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16761 test -z "$DEPDIR" && continue 16762 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16763 test -z "am__include" && continue 16764 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16765 # When using ansi2knr, U may be empty or an underscore; expand it 16766 U=`sed -n 's/^U = //p' < "$mf"` 16767 # Find all dependency output files, they are included files with 16768 # $(DEPDIR) in their names. We invoke sed twice because it is the 16769 # simplest approach to changing $(DEPDIR) to its actual value in the 16770 # expansion. 16771 for file in `sed -n " 16772 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16773 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 16774 # Make sure the directory exists. 16775 test -f "$dirpart/$file" && continue 16776 fdir=`$as_dirname -- "$file" || 16777$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16778 X"$file" : 'X\(//\)[^/]' \| \ 16779 X"$file" : 'X\(//\)$' \| \ 16780 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16781echo X"$file" | 16782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16783 s//\1/ 16784 q 16785 } 16786 /^X\(\/\/\)[^/].*/{ 16787 s//\1/ 16788 q 16789 } 16790 /^X\(\/\/\)$/{ 16791 s//\1/ 16792 q 16793 } 16794 /^X\(\/\).*/{ 16795 s//\1/ 16796 q 16797 } 16798 s/.*/./; q'` 16799 { as_dir=$dirpart/$fdir 16800 case $as_dir in #( 16801 -*) as_dir=./$as_dir;; 16802 esac 16803 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 16804 as_dirs= 16805 while :; do 16806 case $as_dir in #( 16807 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 16808 *) as_qdir=$as_dir;; 16809 esac 16810 as_dirs="'$as_qdir' $as_dirs" 16811 as_dir=`$as_dirname -- "$as_dir" || 16812$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16813 X"$as_dir" : 'X\(//\)[^/]' \| \ 16814 X"$as_dir" : 'X\(//\)$' \| \ 16815 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16816echo X"$as_dir" | 16817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16818 s//\1/ 16819 q 16820 } 16821 /^X\(\/\/\)[^/].*/{ 16822 s//\1/ 16823 q 16824 } 16825 /^X\(\/\/\)$/{ 16826 s//\1/ 16827 q 16828 } 16829 /^X\(\/\).*/{ 16830 s//\1/ 16831 q 16832 } 16833 s/.*/./; q'` 16834 test -d "$as_dir" && break 16835 done 16836 test -z "$as_dirs" || eval "mkdir $as_dirs" 16837 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 16838echo "$as_me: error: cannot create directory $as_dir" >&2;} 16839 { (exit 1); exit 1; }; }; } 16840 # echo "creating $dirpart/$file" 16841 echo '# dummy' > "$dirpart/$file" 16842 done 16843done 16844 ;; 16845 "libtool":C) 16846 16847 # See if we are running on zsh, and set the options which allow our 16848 # commands through without removal of \ escapes. 16849 if test -n "${ZSH_VERSION+set}" ; then 16850 setopt NO_GLOB_SUBST 16851 fi 16852 16853 cfgfile="${ofile}T" 16854 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16855 $RM "$cfgfile" 16856 16857 cat <<_LT_EOF >> "$cfgfile" 16858#! $SHELL 16859 16860# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16861# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16862# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16863# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16864# 16865# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16866# 2006, 2007, 2008 Free Software Foundation, Inc. 16867# Written by Gordon Matzigkeit, 1996 16868# 16869# This file is part of GNU Libtool. 16870# 16871# GNU Libtool is free software; you can redistribute it and/or 16872# modify it under the terms of the GNU General Public License as 16873# published by the Free Software Foundation; either version 2 of 16874# the License, or (at your option) any later version. 16875# 16876# As a special exception to the GNU General Public License, 16877# if you distribute this file as part of a program or library that 16878# is built using GNU Libtool, you may include this file under the 16879# same distribution terms that you use for the rest of that program. 16880# 16881# GNU Libtool is distributed in the hope that it will be useful, 16882# but WITHOUT ANY WARRANTY; without even the implied warranty of 16883# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16884# GNU General Public License for more details. 16885# 16886# You should have received a copy of the GNU General Public License 16887# along with GNU Libtool; see the file COPYING. If not, a copy 16888# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 16889# obtained by writing to the Free Software Foundation, Inc., 16890# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16891 16892 16893# The names of the tagged configurations supported by this script. 16894available_tags="" 16895 16896# ### BEGIN LIBTOOL CONFIG 16897 16898# Whether or not to build static libraries. 16899build_old_libs=$enable_static 16900 16901# Which release of libtool.m4 was used? 16902macro_version=$macro_version 16903macro_revision=$macro_revision 16904 16905# Whether or not to build shared libraries. 16906build_libtool_libs=$enable_shared 16907 16908# What type of objects to build. 16909pic_mode=$pic_mode 16910 16911# Whether or not to optimize for fast installation. 16912fast_install=$enable_fast_install 16913 16914# The host system. 16915host_alias=$host_alias 16916host=$host 16917host_os=$host_os 16918 16919# The build system. 16920build_alias=$build_alias 16921build=$build 16922build_os=$build_os 16923 16924# A sed program that does not truncate output. 16925SED=$lt_SED 16926 16927# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16928Xsed="\$SED -e 1s/^X//" 16929 16930# A grep program that handles long lines. 16931GREP=$lt_GREP 16932 16933# An ERE matcher. 16934EGREP=$lt_EGREP 16935 16936# A literal string matcher. 16937FGREP=$lt_FGREP 16938 16939# A BSD- or MS-compatible name lister. 16940NM=$lt_NM 16941 16942# Whether we need soft or hard links. 16943LN_S=$lt_LN_S 16944 16945# What is the maximum length of a command? 16946max_cmd_len=$max_cmd_len 16947 16948# Object file suffix (normally "o"). 16949objext=$ac_objext 16950 16951# Executable file suffix (normally ""). 16952exeext=$exeext 16953 16954# whether the shell understands "unset". 16955lt_unset=$lt_unset 16956 16957# turn spaces into newlines. 16958SP2NL=$lt_lt_SP2NL 16959 16960# turn newlines into spaces. 16961NL2SP=$lt_lt_NL2SP 16962 16963# How to create reloadable object files. 16964reload_flag=$lt_reload_flag 16965reload_cmds=$lt_reload_cmds 16966 16967# Method to check whether dependent libraries are shared objects. 16968deplibs_check_method=$lt_deplibs_check_method 16969 16970# Command to use when deplibs_check_method == "file_magic". 16971file_magic_cmd=$lt_file_magic_cmd 16972 16973# The archiver. 16974AR=$lt_AR 16975AR_FLAGS=$lt_AR_FLAGS 16976 16977# A symbol stripping program. 16978STRIP=$lt_STRIP 16979 16980# Commands used to install an old-style archive. 16981RANLIB=$lt_RANLIB 16982old_postinstall_cmds=$lt_old_postinstall_cmds 16983old_postuninstall_cmds=$lt_old_postuninstall_cmds 16984 16985# A C compiler. 16986LTCC=$lt_CC 16987 16988# LTCC compiler flags. 16989LTCFLAGS=$lt_CFLAGS 16990 16991# Take the output of nm and produce a listing of raw symbols and C names. 16992global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16993 16994# Transform the output of nm in a proper C declaration. 16995global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16996 16997# Transform the output of nm in a C name address pair. 16998global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16999 17000# Transform the output of nm in a C name address pair when lib prefix is needed. 17001global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17002 17003# The name of the directory that contains temporary libtool files. 17004objdir=$objdir 17005 17006# Shell to use when invoking shell scripts. 17007SHELL=$lt_SHELL 17008 17009# An echo program that does not interpret backslashes. 17010ECHO=$lt_ECHO 17011 17012# Used to examine libraries when file_magic_cmd begins with "file". 17013MAGIC_CMD=$MAGIC_CMD 17014 17015# Must we lock files when doing compilation? 17016need_locks=$lt_need_locks 17017 17018# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17019DSYMUTIL=$lt_DSYMUTIL 17020 17021# Tool to change global to local symbols on Mac OS X. 17022NMEDIT=$lt_NMEDIT 17023 17024# Tool to manipulate fat objects and archives on Mac OS X. 17025LIPO=$lt_LIPO 17026 17027# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17028OTOOL=$lt_OTOOL 17029 17030# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17031OTOOL64=$lt_OTOOL64 17032 17033# Old archive suffix (normally "a"). 17034libext=$libext 17035 17036# Shared library suffix (normally ".so"). 17037shrext_cmds=$lt_shrext_cmds 17038 17039# The commands to extract the exported symbol list from a shared archive. 17040extract_expsyms_cmds=$lt_extract_expsyms_cmds 17041 17042# Variables whose values should be saved in libtool wrapper scripts and 17043# restored at link time. 17044variables_saved_for_relink=$lt_variables_saved_for_relink 17045 17046# Do we need the "lib" prefix for modules? 17047need_lib_prefix=$need_lib_prefix 17048 17049# Do we need a version for libraries? 17050need_version=$need_version 17051 17052# Library versioning type. 17053version_type=$version_type 17054 17055# Shared library runtime path variable. 17056runpath_var=$runpath_var 17057 17058# Shared library path variable. 17059shlibpath_var=$shlibpath_var 17060 17061# Is shlibpath searched before the hard-coded library search path? 17062shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17063 17064# Format of library name prefix. 17065libname_spec=$lt_libname_spec 17066 17067# List of archive names. First name is the real one, the rest are links. 17068# The last name is the one that the linker finds with -lNAME 17069library_names_spec=$lt_library_names_spec 17070 17071# The coded name of the library, if different from the real name. 17072soname_spec=$lt_soname_spec 17073 17074# Command to use after installation of a shared archive. 17075postinstall_cmds=$lt_postinstall_cmds 17076 17077# Command to use after uninstallation of a shared archive. 17078postuninstall_cmds=$lt_postuninstall_cmds 17079 17080# Commands used to finish a libtool library installation in a directory. 17081finish_cmds=$lt_finish_cmds 17082 17083# As "finish_cmds", except a single script fragment to be evaled but 17084# not shown. 17085finish_eval=$lt_finish_eval 17086 17087# Whether we should hardcode library paths into libraries. 17088hardcode_into_libs=$hardcode_into_libs 17089 17090# Compile-time system search path for libraries. 17091sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17092 17093# Run-time system search path for libraries. 17094sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17095 17096# Whether dlopen is supported. 17097dlopen_support=$enable_dlopen 17098 17099# Whether dlopen of programs is supported. 17100dlopen_self=$enable_dlopen_self 17101 17102# Whether dlopen of statically linked programs is supported. 17103dlopen_self_static=$enable_dlopen_self_static 17104 17105# Commands to strip libraries. 17106old_striplib=$lt_old_striplib 17107striplib=$lt_striplib 17108 17109 17110# The linker used to build libraries. 17111LD=$lt_LD 17112 17113# Commands used to build an old-style archive. 17114old_archive_cmds=$lt_old_archive_cmds 17115 17116# A language specific compiler. 17117CC=$lt_compiler 17118 17119# Is the compiler the GNU compiler? 17120with_gcc=$GCC 17121 17122# Compiler flag to turn off builtin functions. 17123no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17124 17125# How to pass a linker flag through the compiler. 17126wl=$lt_lt_prog_compiler_wl 17127 17128# Additional compiler flags for building library objects. 17129pic_flag=$lt_lt_prog_compiler_pic 17130 17131# Compiler flag to prevent dynamic linking. 17132link_static_flag=$lt_lt_prog_compiler_static 17133 17134# Does compiler simultaneously support -c and -o options? 17135compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17136 17137# Whether or not to add -lc for building shared libraries. 17138build_libtool_need_lc=$archive_cmds_need_lc 17139 17140# Whether or not to disallow shared libs when runtime libs are static. 17141allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17142 17143# Compiler flag to allow reflexive dlopens. 17144export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17145 17146# Compiler flag to generate shared objects directly from archives. 17147whole_archive_flag_spec=$lt_whole_archive_flag_spec 17148 17149# Whether the compiler copes with passing no objects directly. 17150compiler_needs_object=$lt_compiler_needs_object 17151 17152# Create an old-style archive from a shared archive. 17153old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17154 17155# Create a temporary old-style archive to link instead of a shared archive. 17156old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17157 17158# Commands used to build a shared archive. 17159archive_cmds=$lt_archive_cmds 17160archive_expsym_cmds=$lt_archive_expsym_cmds 17161 17162# Commands used to build a loadable module if different from building 17163# a shared archive. 17164module_cmds=$lt_module_cmds 17165module_expsym_cmds=$lt_module_expsym_cmds 17166 17167# Whether we are building with GNU ld or not. 17168with_gnu_ld=$lt_with_gnu_ld 17169 17170# Flag that allows shared libraries with undefined symbols to be built. 17171allow_undefined_flag=$lt_allow_undefined_flag 17172 17173# Flag that enforces no undefined symbols. 17174no_undefined_flag=$lt_no_undefined_flag 17175 17176# Flag to hardcode \$libdir into a binary during linking. 17177# This must work even if \$libdir does not exist 17178hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17179 17180# If ld is used when linking, flag to hardcode \$libdir into a binary 17181# during linking. This must work even if \$libdir does not exist. 17182hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 17183 17184# Whether we need a single "-rpath" flag with a separated argument. 17185hardcode_libdir_separator=$lt_hardcode_libdir_separator 17186 17187# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17188# DIR into the resulting binary. 17189hardcode_direct=$hardcode_direct 17190 17191# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17192# DIR into the resulting binary and the resulting library dependency is 17193# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17194# library is relocated. 17195hardcode_direct_absolute=$hardcode_direct_absolute 17196 17197# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17198# into the resulting binary. 17199hardcode_minus_L=$hardcode_minus_L 17200 17201# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17202# into the resulting binary. 17203hardcode_shlibpath_var=$hardcode_shlibpath_var 17204 17205# Set to "yes" if building a shared library automatically hardcodes DIR 17206# into the library and all subsequent libraries and executables linked 17207# against it. 17208hardcode_automatic=$hardcode_automatic 17209 17210# Set to yes if linker adds runtime paths of dependent libraries 17211# to runtime path list. 17212inherit_rpath=$inherit_rpath 17213 17214# Whether libtool must link a program against all its dependency libraries. 17215link_all_deplibs=$link_all_deplibs 17216 17217# Fix the shell variable \$srcfile for the compiler. 17218fix_srcfile_path=$lt_fix_srcfile_path 17219 17220# Set to "yes" if exported symbols are required. 17221always_export_symbols=$always_export_symbols 17222 17223# The commands to list exported symbols. 17224export_symbols_cmds=$lt_export_symbols_cmds 17225 17226# Symbols that should not be listed in the preloaded symbols. 17227exclude_expsyms=$lt_exclude_expsyms 17228 17229# Symbols that must always be exported. 17230include_expsyms=$lt_include_expsyms 17231 17232# Commands necessary for linking programs (against libraries) with templates. 17233prelink_cmds=$lt_prelink_cmds 17234 17235# Specify filename containing input files. 17236file_list_spec=$lt_file_list_spec 17237 17238# How to hardcode a shared library path into an executable. 17239hardcode_action=$hardcode_action 17240 17241# ### END LIBTOOL CONFIG 17242 17243_LT_EOF 17244 17245 case $host_os in 17246 aix3*) 17247 cat <<\_LT_EOF >> "$cfgfile" 17248# AIX sometimes has problems with the GCC collect2 program. For some 17249# reason, if we set the COLLECT_NAMES environment variable, the problems 17250# vanish in a puff of smoke. 17251if test "X${COLLECT_NAMES+set}" != Xset; then 17252 COLLECT_NAMES= 17253 export COLLECT_NAMES 17254fi 17255_LT_EOF 17256 ;; 17257 esac 17258 17259 17260ltmain="$ac_aux_dir/ltmain.sh" 17261 17262 17263 # We use sed instead of cat because bash on DJGPP gets confused if 17264 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17265 # text mode, it properly converts lines to CR/LF. This bash problem 17266 # is reportedly fixed, but why not run on old versions too? 17267 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 17268 || (rm -f "$cfgfile"; exit 1) 17269 17270 case $xsi_shell in 17271 yes) 17272 cat << \_LT_EOF >> "$cfgfile" 17273 17274# func_dirname file append nondir_replacement 17275# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17276# otherwise set result to NONDIR_REPLACEMENT. 17277func_dirname () 17278{ 17279 case ${1} in 17280 */*) func_dirname_result="${1%/*}${2}" ;; 17281 * ) func_dirname_result="${3}" ;; 17282 esac 17283} 17284 17285# func_basename file 17286func_basename () 17287{ 17288 func_basename_result="${1##*/}" 17289} 17290 17291# func_dirname_and_basename file append nondir_replacement 17292# perform func_basename and func_dirname in a single function 17293# call: 17294# dirname: Compute the dirname of FILE. If nonempty, 17295# add APPEND to the result, otherwise set result 17296# to NONDIR_REPLACEMENT. 17297# value returned in "$func_dirname_result" 17298# basename: Compute filename of FILE. 17299# value retuned in "$func_basename_result" 17300# Implementation must be kept synchronized with func_dirname 17301# and func_basename. For efficiency, we do not delegate to 17302# those functions but instead duplicate the functionality here. 17303func_dirname_and_basename () 17304{ 17305 case ${1} in 17306 */*) func_dirname_result="${1%/*}${2}" ;; 17307 * ) func_dirname_result="${3}" ;; 17308 esac 17309 func_basename_result="${1##*/}" 17310} 17311 17312# func_stripname prefix suffix name 17313# strip PREFIX and SUFFIX off of NAME. 17314# PREFIX and SUFFIX must not contain globbing or regex special 17315# characters, hashes, percent signs, but SUFFIX may contain a leading 17316# dot (in which case that matches only a dot). 17317func_stripname () 17318{ 17319 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 17320 # positional parameters, so assign one to ordinary parameter first. 17321 func_stripname_result=${3} 17322 func_stripname_result=${func_stripname_result#"${1}"} 17323 func_stripname_result=${func_stripname_result%"${2}"} 17324} 17325 17326# func_opt_split 17327func_opt_split () 17328{ 17329 func_opt_split_opt=${1%%=*} 17330 func_opt_split_arg=${1#*=} 17331} 17332 17333# func_lo2o object 17334func_lo2o () 17335{ 17336 case ${1} in 17337 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 17338 *) func_lo2o_result=${1} ;; 17339 esac 17340} 17341 17342# func_xform libobj-or-source 17343func_xform () 17344{ 17345 func_xform_result=${1%.*}.lo 17346} 17347 17348# func_arith arithmetic-term... 17349func_arith () 17350{ 17351 func_arith_result=$(( $* )) 17352} 17353 17354# func_len string 17355# STRING may not start with a hyphen. 17356func_len () 17357{ 17358 func_len_result=${#1} 17359} 17360 17361_LT_EOF 17362 ;; 17363 *) # Bourne compatible functions. 17364 cat << \_LT_EOF >> "$cfgfile" 17365 17366# func_dirname file append nondir_replacement 17367# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17368# otherwise set result to NONDIR_REPLACEMENT. 17369func_dirname () 17370{ 17371 # Extract subdirectory from the argument. 17372 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 17373 if test "X$func_dirname_result" = "X${1}"; then 17374 func_dirname_result="${3}" 17375 else 17376 func_dirname_result="$func_dirname_result${2}" 17377 fi 17378} 17379 17380# func_basename file 17381func_basename () 17382{ 17383 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 17384} 17385 17386 17387# func_stripname prefix suffix name 17388# strip PREFIX and SUFFIX off of NAME. 17389# PREFIX and SUFFIX must not contain globbing or regex special 17390# characters, hashes, percent signs, but SUFFIX may contain a leading 17391# dot (in which case that matches only a dot). 17392# func_strip_suffix prefix name 17393func_stripname () 17394{ 17395 case ${2} in 17396 .*) func_stripname_result=`$ECHO "X${3}" \ 17397 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 17398 *) func_stripname_result=`$ECHO "X${3}" \ 17399 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 17400 esac 17401} 17402 17403# sed scripts: 17404my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 17405my_sed_long_arg='1s/^-[^=]*=//' 17406 17407# func_opt_split 17408func_opt_split () 17409{ 17410 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 17411 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 17412} 17413 17414# func_lo2o object 17415func_lo2o () 17416{ 17417 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 17418} 17419 17420# func_xform libobj-or-source 17421func_xform () 17422{ 17423 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 17424} 17425 17426# func_arith arithmetic-term... 17427func_arith () 17428{ 17429 func_arith_result=`expr "$@"` 17430} 17431 17432# func_len string 17433# STRING may not start with a hyphen. 17434func_len () 17435{ 17436 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 17437} 17438 17439_LT_EOF 17440esac 17441 17442case $lt_shell_append in 17443 yes) 17444 cat << \_LT_EOF >> "$cfgfile" 17445 17446# func_append var value 17447# Append VALUE to the end of shell variable VAR. 17448func_append () 17449{ 17450 eval "$1+=\$2" 17451} 17452_LT_EOF 17453 ;; 17454 *) 17455 cat << \_LT_EOF >> "$cfgfile" 17456 17457# func_append var value 17458# Append VALUE to the end of shell variable VAR. 17459func_append () 17460{ 17461 eval "$1=\$$1\$2" 17462} 17463 17464_LT_EOF 17465 ;; 17466 esac 17467 17468 17469 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 17470 || (rm -f "$cfgfile"; exit 1) 17471 17472 mv -f "$cfgfile" "$ofile" || 17473 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17474 chmod +x "$ofile" 17475 17476 ;; 17477 17478 esac 17479done # for ac_tag 17480 17481 17482{ (exit 0); exit 0; } 17483_ACEOF 17484chmod +x $CONFIG_STATUS 17485ac_clean_files=$ac_clean_files_save 17486 17487 17488# configure is writing to config.log, and then calls config.status. 17489# config.status does its own redirection, appending to config.log. 17490# Unfortunately, on DOS this fails, as config.log is still kept open 17491# by configure, so config.status won't be able to write to it; its 17492# output is simply discarded. So we exec the FD to /dev/null, 17493# effectively closing config.log, so it can be properly (re)opened and 17494# appended to by config.status. When coming back to configure, we 17495# need to make the FD available again. 17496if test "$no_create" != yes; then 17497 ac_cs_success=: 17498 ac_config_status_args= 17499 test "$silent" = yes && 17500 ac_config_status_args="$ac_config_status_args --quiet" 17501 exec 5>/dev/null 17502 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17503 exec 5>>config.log 17504 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17505 # would make configure fail if this is the last instruction. 17506 $ac_cs_success || { (exit 1); exit 1; } 17507fi 17508 17509 17510echo "" 17511echo " prefix: $prefix" 17512echo " exec_prefix: $exec_prefix" 17513echo " libdir: $libdir" 17514echo " includedir: $includedir" 17515 17516 17517echo "" 17518echo " Kernel modesetting: $DRM_MODE" 17519 17520echo "" 17521echo " CFLAGS: $CFLAGS" 17522echo " CXXFLAGS: $CXXFLAGS" 17523echo " Macros: $DEFINES" 17524 17525echo "" 17526echo " Run '${MAKE-make}' to build xf86-video-ati" 17527echo "" 17528