configure revision d7be9c72
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for xf86-video-mga 1.4.13. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42as_nl=' 43' 44export as_nl 45# Printing a long string crashes Solaris 7 /usr/bin/printf. 46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83# Support unset when possible. 84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85 as_unset=unset 86else 87 as_unset=false 88fi 89 90 91# IFS 92# We need space, tab and new line, in precisely that order. Quoting is 93# there to prevent editors from complaining about space-tab. 94# (If _AS_PATH_WALK were called with IFS unset, it would disable word 95# splitting by setting IFS to empty value.) 96IFS=" "" $as_nl" 97 98# Find who we are. Look in the path if we contain no directory separator. 99case $0 in 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102for as_dir in $PATH 103do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107done 108IFS=$as_save_IFS 109 110 ;; 111esac 112# We did not find ourselves, most probably we were run as `sh COMMAND' 113# in which case we are not to be found in the path. 114if test "x$as_myself" = x; then 115 as_myself=$0 116fi 117if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120fi 121 122# Work around bugs in pre-3.0 UWIN ksh. 123for as_var in ENV MAIL MAILPATH 124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# Required to use basename. 137if expr a : '\(a\)' >/dev/null 2>&1 && 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 139 as_expr=expr 140else 141 as_expr=false 142fi 143 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145 as_basename=basename 146else 147 as_basename=false 148fi 149 150 151# Name of the executable. 152as_me=`$as_basename -- "$0" || 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154 X"$0" : 'X\(//\)$' \| \ 155 X"$0" : 'X\(/\)' \| . 2>/dev/null || 156$as_echo X/"$0" | 157 sed '/^.*\/\([^/][^/]*\)\/*$/{ 158 s//\1/ 159 q 160 } 161 /^X\/\(\/\/\)$/{ 162 s//\1/ 163 q 164 } 165 /^X\/\(\/\).*/{ 166 s//\1/ 167 q 168 } 169 s/.*/./; q'` 170 171# CDPATH. 172$as_unset CDPATH 173 174 175if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 182 if test $as_have_required = yes && (eval ": 183(as_func_return () { 184 (exit \$1) 185} 186as_func_success () { 187 as_func_return 0 188} 189as_func_failure () { 190 as_func_return 1 191} 192as_func_ret_success () { 193 return 0 194} 195as_func_ret_failure () { 196 return 1 197} 198 199exitcode=0 200if as_func_success; then 201 : 202else 203 exitcode=1 204 echo as_func_success failed. 205fi 206 207if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210fi 211 212if as_func_ret_success; then 213 : 214else 215 exitcode=1 216 echo as_func_ret_success failed. 217fi 218 219if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222fi 223 224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226else 227 exitcode=1 228 echo positional parameters were not saved. 229fi 230 231test \$exitcode = 0) || { (exit 1); exit 1; } 232 233( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238") 2> /dev/null; then 239 : 240else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253done 254IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$as_shell") 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277_ASEOF 278}; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292esac 293 294fi 295 296 297: 298(as_func_return () { 299 (exit $1) 300} 301as_func_success () { 302 as_func_return 0 303} 304as_func_failure () { 305 as_func_return 1 306} 307as_func_ret_success () { 308 return 0 309} 310as_func_ret_failure () { 311 return 1 312} 313 314exitcode=0 315if as_func_success; then 316 : 317else 318 exitcode=1 319 echo as_func_success failed. 320fi 321 322if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325fi 326 327if as_func_ret_success; then 328 : 329else 330 exitcode=1 331 echo as_func_ret_success failed. 332fi 333 334if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337fi 338 339if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341else 342 exitcode=1 343 echo positional parameters were not saved. 344fi 345 346test $exitcode = 0) || { (exit 1); exit 1; } 347 348( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354_ASEOF 355}; then 356 break 357fi 358 359fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378fi 379 380 381fi 382 383fi 384 385 386 387(eval "as_func_return () { 388 (exit \$1) 389} 390as_func_success () { 391 as_func_return 0 392} 393as_func_failure () { 394 as_func_return 1 395} 396as_func_ret_success () { 397 return 0 398} 399as_func_ret_failure () { 400 return 1 401} 402 403exitcode=0 404if as_func_success; then 405 : 406else 407 exitcode=1 408 echo as_func_success failed. 409fi 410 411if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414fi 415 416if as_func_ret_success; then 417 : 418else 419 exitcode=1 420 echo as_func_ret_success failed. 421fi 422 423if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426fi 427 428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430else 431 exitcode=1 432 echo positional parameters were not saved. 433fi 434 435test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441} 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 460 sed -n ' 461 p 462 /[$]LINENO/= 463 ' <$as_myself | 464 sed ' 465 s/[$]LINENO.*/&-/ 466 t lineno 467 b 468 :lineno 469 N 470 :loop 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472 t loop 473 s/-\n.*// 474 ' >$as_me.lineno && 475 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 478 479 # Don't try to exec as it changes $[0], causing all sort of problems 480 # (the dirname of $[0] is not the place where we might find the 481 # original and so on. Autoconf is especially sensitive to this). 482 . "./$as_me.lineno" 483 # Exit status is that of the last command. 484 exit 485} 486 487 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 as_dirname=dirname 490else 491 as_dirname=false 492fi 493 494ECHO_C= ECHO_N= ECHO_T= 495case `echo -n x` in 496-n*) 497 case `echo 'x\c'` in 498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 500 esac;; 501*) 502 ECHO_N='-n';; 503esac 504if expr a : '\(a\)' >/dev/null 2>&1 && 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 506 as_expr=expr 507else 508 as_expr=false 509fi 510 511rm -f conf$$ conf$$.exe conf$$.file 512if test -d conf$$.dir; then 513 rm -f conf$$.dir/conf$$.file 514else 515 rm -f conf$$.dir 516 mkdir conf$$.dir 2>/dev/null 517fi 518if (echo >conf$$.file) 2>/dev/null; then 519 if ln -s conf$$.file conf$$ 2>/dev/null; then 520 as_ln_s='ln -s' 521 # ... but there are two gotchas: 522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 # In both cases, we have to default to `cp -p'. 525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 as_ln_s='cp -p' 527 elif ln conf$$.file conf$$ 2>/dev/null; then 528 as_ln_s=ln 529 else 530 as_ln_s='cp -p' 531 fi 532else 533 as_ln_s='cp -p' 534fi 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536rmdir conf$$.dir 2>/dev/null 537 538if mkdir -p . 2>/dev/null; then 539 as_mkdir_p=: 540else 541 test -d ./-p && rmdir ./-p 542 as_mkdir_p=false 543fi 544 545if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547else 548 if ls -dL / >/dev/null 2>&1; then 549 as_ls_L_option=L 550 else 551 as_ls_L_option= 552 fi 553 as_test_x=' 554 eval sh -c '\'' 555 if test -d "$1"; then 556 test -d "$1/."; 557 else 558 case $1 in 559 -*)set "./$1";; 560 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 ???[sx]*):;;*)false;;esac;fi 563 '\'' sh 564 ' 565fi 566as_executable_p=$as_test_x 567 568# Sed expression to map a string onto a valid CPP name. 569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571# Sed expression to map a string onto a valid variable name. 572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574 575 576 577# Check that we are running under the correct shell. 578SHELL=${CONFIG_SHELL-/bin/sh} 579 580case X$lt_ECHO in 581X*--fallback-echo) 582 # Remove one level of quotation (which was required for Make). 583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 584 ;; 585esac 586 587ECHO=${lt_ECHO-echo} 588if test "X$1" = X--no-reexec; then 589 # Discard the --no-reexec flag, and continue. 590 shift 591elif test "X$1" = X--fallback-echo; then 592 # Avoid inline document here, it may be left over 593 : 594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 595 # Yippee, $ECHO works! 596 : 597else 598 # Restart under the correct shell. 599 exec $SHELL "$0" --no-reexec ${1+"$@"} 600fi 601 602if test "X$1" = X--fallback-echo; then 603 # used as fallback echo 604 shift 605 cat <<_LT_EOF 606$* 607_LT_EOF 608 exit 0 609fi 610 611# The HP-UX ksh and POSIX shell print the target directory to stdout 612# if CDPATH is set. 613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 614 615if test -z "$lt_ECHO"; then 616 if test "X${echo_test_string+set}" != Xset; then 617 # find a string as large as possible, as long as the shell can cope with it 618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 620 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 622 then 623 break 624 fi 625 done 626 fi 627 628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 630 test "X$echo_testing_string" = "X$echo_test_string"; then 631 : 632 else 633 # The Solaris, AIX, and Digital Unix default echo programs unquote 634 # backslashes. This makes it impossible to quote backslashes using 635 # echo "$something" | sed 's/\\/\\\\/g' 636 # 637 # So, first we look for a working echo in the user's PATH. 638 639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 640 for dir in $PATH /usr/ucb; do 641 IFS="$lt_save_ifs" 642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 645 test "X$echo_testing_string" = "X$echo_test_string"; then 646 ECHO="$dir/echo" 647 break 648 fi 649 done 650 IFS="$lt_save_ifs" 651 652 if test "X$ECHO" = Xecho; then 653 # We didn't find a better echo, so look for alternatives. 654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 656 test "X$echo_testing_string" = "X$echo_test_string"; then 657 # This shell has a builtin print -r that does the trick. 658 ECHO='print -r' 659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 660 test "X$CONFIG_SHELL" != X/bin/ksh; then 661 # If we have ksh, try running configure again with it. 662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 663 export ORIGINAL_CONFIG_SHELL 664 CONFIG_SHELL=/bin/ksh 665 export CONFIG_SHELL 666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 667 else 668 # Try using printf. 669 ECHO='printf %s\n' 670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 672 test "X$echo_testing_string" = "X$echo_test_string"; then 673 # Cool, printf works 674 : 675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 676 test "X$echo_testing_string" = 'X\t' && 677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 678 test "X$echo_testing_string" = "X$echo_test_string"; then 679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 680 export CONFIG_SHELL 681 SHELL="$CONFIG_SHELL" 682 export SHELL 683 ECHO="$CONFIG_SHELL $0 --fallback-echo" 684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 685 test "X$echo_testing_string" = 'X\t' && 686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 687 test "X$echo_testing_string" = "X$echo_test_string"; then 688 ECHO="$CONFIG_SHELL $0 --fallback-echo" 689 else 690 # maybe with a smaller string... 691 prev=: 692 693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 695 then 696 break 697 fi 698 prev="$cmd" 699 done 700 701 if test "$prev" != 'sed 50q "$0"'; then 702 echo_test_string=`eval $prev` 703 export echo_test_string 704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 705 else 706 # Oops. We lost completely, so just stick with echo. 707 ECHO=echo 708 fi 709 fi 710 fi 711 fi 712 fi 713fi 714 715# Copy echo and quote the copy suitably for passing to libtool from 716# the Makefile, instead of quoting the original, which is used later. 717lt_ECHO=$ECHO 718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 720fi 721 722 723 724 725exec 7<&0 </dev/null 6>&1 726 727# Name of the host. 728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 729# so uname gets run too. 730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 731 732# 733# Initializations. 734# 735ac_default_prefix=/usr/local 736ac_clean_files= 737ac_config_libobj_dir=. 738LIBOBJS= 739cross_compiling=no 740subdirs= 741MFLAGS= 742MAKEFLAGS= 743SHELL=${CONFIG_SHELL-/bin/sh} 744 745# Identity of this package. 746PACKAGE_NAME='xf86-video-mga' 747PACKAGE_TARNAME='xf86-video-mga' 748PACKAGE_VERSION='1.4.13' 749PACKAGE_STRING='xf86-video-mga 1.4.13' 750PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 751 752ac_unique_file="Makefile.am" 753# Factoring default headers for most tests. 754ac_includes_default="\ 755#include <stdio.h> 756#ifdef HAVE_SYS_TYPES_H 757# include <sys/types.h> 758#endif 759#ifdef HAVE_SYS_STAT_H 760# include <sys/stat.h> 761#endif 762#ifdef STDC_HEADERS 763# include <stdlib.h> 764# include <stddef.h> 765#else 766# ifdef HAVE_STDLIB_H 767# include <stdlib.h> 768# endif 769#endif 770#ifdef HAVE_STRING_H 771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 772# include <memory.h> 773# endif 774# include <string.h> 775#endif 776#ifdef HAVE_STRINGS_H 777# include <strings.h> 778#endif 779#ifdef HAVE_INTTYPES_H 780# include <inttypes.h> 781#endif 782#ifdef HAVE_STDINT_H 783# include <stdint.h> 784#endif 785#ifdef HAVE_UNISTD_H 786# include <unistd.h> 787#endif" 788 789ac_subst_vars='am__EXEEXT_FALSE 790am__EXEEXT_TRUE 791LTLIBOBJS 792LIBOBJS 793DRIVER_NAME 794moduledir 795USE_EXA_FALSE 796USE_EXA_TRUE 797USE_XAA_FALSE 798USE_XAA_TRUE 799XSERVER_LIBPCIACCESS_FALSE 800XSERVER_LIBPCIACCESS_TRUE 801PCIACCESS_LIBS 802PCIACCESS_CFLAGS 803DRI_LIBS 804DRI_CFLAGS 805DRI_FALSE 806DRI_TRUE 807XORG_LIBS 808XORG_CFLAGS 809OTOOL64 810OTOOL 811LIPO 812NMEDIT 813DSYMUTIL 814lt_ECHO 815RANLIB 816AR 817OBJDUMP 818LN_S 819NM 820ac_ct_DUMPBIN 821DUMPBIN 822LD 823FGREP 824LIBTOOL 825MAINT 826MAINTAINER_MODE_FALSE 827MAINTAINER_MODE_TRUE 828am__fastdepCC_FALSE 829am__fastdepCC_TRUE 830CCDEPMODE 831AMDEPBACKSLASH 832AMDEP_FALSE 833AMDEP_TRUE 834am__quote 835am__include 836DEPDIR 837am__untar 838am__tar 839AMTAR 840am__leading_dot 841SET_MAKE 842AWK 843mkdir_p 844MKDIR_P 845INSTALL_STRIP_PROGRAM 846STRIP 847install_sh 848MAKEINFO 849AUTOHEADER 850AUTOMAKE 851AUTOCONF 852ACLOCAL 853VERSION 854PACKAGE 855CYGPATH_W 856am__isrc 857AM_BACKSLASH 858AM_DEFAULT_VERBOSITY 859MAN_SUBSTS 860XORG_MAN_PAGE 861ADMIN_MAN_DIR 862DRIVER_MAN_DIR 863MISC_MAN_DIR 864FILE_MAN_DIR 865LIB_MAN_DIR 866APP_MAN_DIR 867ADMIN_MAN_SUFFIX 868DRIVER_MAN_SUFFIX 869MISC_MAN_SUFFIX 870FILE_MAN_SUFFIX 871LIB_MAN_SUFFIX 872APP_MAN_SUFFIX 873SED 874host_os 875host_vendor 876host_cpu 877host 878build_os 879build_vendor 880build_cpu 881build 882INSTALL_CMD 883PKG_CONFIG 884CHANGELOG_CMD 885CWARNFLAGS 886EGREP 887GREP 888CPP 889OBJEXT 890EXEEXT 891ac_ct_CC 892CPPFLAGS 893LDFLAGS 894CFLAGS 895CC 896INSTALL_DATA 897INSTALL_SCRIPT 898INSTALL_PROGRAM 899target_alias 900host_alias 901build_alias 902LIBS 903ECHO_T 904ECHO_N 905ECHO_C 906DEFS 907mandir 908localedir 909libdir 910psdir 911pdfdir 912dvidir 913htmldir 914infodir 915docdir 916oldincludedir 917includedir 918localstatedir 919sharedstatedir 920sysconfdir 921datadir 922datarootdir 923libexecdir 924sbindir 925bindir 926program_transform_name 927prefix 928exec_prefix 929PACKAGE_BUGREPORT 930PACKAGE_STRING 931PACKAGE_VERSION 932PACKAGE_TARNAME 933PACKAGE_NAME 934PATH_SEPARATOR 935SHELL' 936ac_subst_files='' 937ac_user_opts=' 938enable_option_checking 939enable_strict_compilation 940enable_silent_rules 941enable_dependency_tracking 942enable_maintainer_mode 943enable_static 944enable_shared 945with_pic 946enable_fast_install 947with_gnu_ld 948enable_libtool_lock 949with_xorg_module_dir 950enable_dri 951enable_exa 952' 953 ac_precious_vars='build_alias 954host_alias 955target_alias 956CC 957CFLAGS 958LDFLAGS 959LIBS 960CPPFLAGS 961CPP 962PKG_CONFIG 963XORG_CFLAGS 964XORG_LIBS 965DRI_CFLAGS 966DRI_LIBS 967PCIACCESS_CFLAGS 968PCIACCESS_LIBS' 969 970 971# Initialize some variables set by options. 972ac_init_help= 973ac_init_version=false 974ac_unrecognized_opts= 975ac_unrecognized_sep= 976# The variables have the same names as the options, with 977# dashes changed to underlines. 978cache_file=/dev/null 979exec_prefix=NONE 980no_create= 981no_recursion= 982prefix=NONE 983program_prefix=NONE 984program_suffix=NONE 985program_transform_name=s,x,x, 986silent= 987site= 988srcdir= 989verbose= 990x_includes=NONE 991x_libraries=NONE 992 993# Installation directory options. 994# These are left unexpanded so users can "make install exec_prefix=/foo" 995# and all the variables that are supposed to be based on exec_prefix 996# by default will actually change. 997# Use braces instead of parens because sh, perl, etc. also accept them. 998# (The list follows the same order as the GNU Coding Standards.) 999bindir='${exec_prefix}/bin' 1000sbindir='${exec_prefix}/sbin' 1001libexecdir='${exec_prefix}/libexec' 1002datarootdir='${prefix}/share' 1003datadir='${datarootdir}' 1004sysconfdir='${prefix}/etc' 1005sharedstatedir='${prefix}/com' 1006localstatedir='${prefix}/var' 1007includedir='${prefix}/include' 1008oldincludedir='/usr/include' 1009docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1010infodir='${datarootdir}/info' 1011htmldir='${docdir}' 1012dvidir='${docdir}' 1013pdfdir='${docdir}' 1014psdir='${docdir}' 1015libdir='${exec_prefix}/lib' 1016localedir='${datarootdir}/locale' 1017mandir='${datarootdir}/man' 1018 1019ac_prev= 1020ac_dashdash= 1021for ac_option 1022do 1023 # If the previous option needs an argument, assign it. 1024 if test -n "$ac_prev"; then 1025 eval $ac_prev=\$ac_option 1026 ac_prev= 1027 continue 1028 fi 1029 1030 case $ac_option in 1031 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1032 *) ac_optarg=yes ;; 1033 esac 1034 1035 # Accept the important Cygnus configure options, so we can diagnose typos. 1036 1037 case $ac_dashdash$ac_option in 1038 --) 1039 ac_dashdash=yes ;; 1040 1041 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1042 ac_prev=bindir ;; 1043 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1044 bindir=$ac_optarg ;; 1045 1046 -build | --build | --buil | --bui | --bu) 1047 ac_prev=build_alias ;; 1048 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1049 build_alias=$ac_optarg ;; 1050 1051 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1052 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1053 ac_prev=cache_file ;; 1054 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1055 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1056 cache_file=$ac_optarg ;; 1057 1058 --config-cache | -C) 1059 cache_file=config.cache ;; 1060 1061 -datadir | --datadir | --datadi | --datad) 1062 ac_prev=datadir ;; 1063 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1064 datadir=$ac_optarg ;; 1065 1066 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1067 | --dataroo | --dataro | --datar) 1068 ac_prev=datarootdir ;; 1069 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1070 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1071 datarootdir=$ac_optarg ;; 1072 1073 -disable-* | --disable-*) 1074 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1075 # Reject names that are not valid shell variable names. 1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1077 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1078 { (exit 1); exit 1; }; } 1079 ac_useropt_orig=$ac_useropt 1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1081 case $ac_user_opts in 1082 *" 1083"enable_$ac_useropt" 1084"*) ;; 1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1086 ac_unrecognized_sep=', ';; 1087 esac 1088 eval enable_$ac_useropt=no ;; 1089 1090 -docdir | --docdir | --docdi | --doc | --do) 1091 ac_prev=docdir ;; 1092 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1093 docdir=$ac_optarg ;; 1094 1095 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1096 ac_prev=dvidir ;; 1097 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1098 dvidir=$ac_optarg ;; 1099 1100 -enable-* | --enable-*) 1101 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1102 # Reject names that are not valid shell variable names. 1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1104 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1105 { (exit 1); exit 1; }; } 1106 ac_useropt_orig=$ac_useropt 1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1108 case $ac_user_opts in 1109 *" 1110"enable_$ac_useropt" 1111"*) ;; 1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1113 ac_unrecognized_sep=', ';; 1114 esac 1115 eval enable_$ac_useropt=\$ac_optarg ;; 1116 1117 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1118 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1119 | --exec | --exe | --ex) 1120 ac_prev=exec_prefix ;; 1121 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1122 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1123 | --exec=* | --exe=* | --ex=*) 1124 exec_prefix=$ac_optarg ;; 1125 1126 -gas | --gas | --ga | --g) 1127 # Obsolete; use --with-gas. 1128 with_gas=yes ;; 1129 1130 -help | --help | --hel | --he | -h) 1131 ac_init_help=long ;; 1132 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1133 ac_init_help=recursive ;; 1134 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1135 ac_init_help=short ;; 1136 1137 -host | --host | --hos | --ho) 1138 ac_prev=host_alias ;; 1139 -host=* | --host=* | --hos=* | --ho=*) 1140 host_alias=$ac_optarg ;; 1141 1142 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1143 ac_prev=htmldir ;; 1144 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1145 | --ht=*) 1146 htmldir=$ac_optarg ;; 1147 1148 -includedir | --includedir | --includedi | --included | --include \ 1149 | --includ | --inclu | --incl | --inc) 1150 ac_prev=includedir ;; 1151 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1152 | --includ=* | --inclu=* | --incl=* | --inc=*) 1153 includedir=$ac_optarg ;; 1154 1155 -infodir | --infodir | --infodi | --infod | --info | --inf) 1156 ac_prev=infodir ;; 1157 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1158 infodir=$ac_optarg ;; 1159 1160 -libdir | --libdir | --libdi | --libd) 1161 ac_prev=libdir ;; 1162 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1163 libdir=$ac_optarg ;; 1164 1165 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1166 | --libexe | --libex | --libe) 1167 ac_prev=libexecdir ;; 1168 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1169 | --libexe=* | --libex=* | --libe=*) 1170 libexecdir=$ac_optarg ;; 1171 1172 -localedir | --localedir | --localedi | --localed | --locale) 1173 ac_prev=localedir ;; 1174 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1175 localedir=$ac_optarg ;; 1176 1177 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1178 | --localstate | --localstat | --localsta | --localst | --locals) 1179 ac_prev=localstatedir ;; 1180 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1181 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1182 localstatedir=$ac_optarg ;; 1183 1184 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1185 ac_prev=mandir ;; 1186 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1187 mandir=$ac_optarg ;; 1188 1189 -nfp | --nfp | --nf) 1190 # Obsolete; use --without-fp. 1191 with_fp=no ;; 1192 1193 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1194 | --no-cr | --no-c | -n) 1195 no_create=yes ;; 1196 1197 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1198 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1199 no_recursion=yes ;; 1200 1201 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1202 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1203 | --oldin | --oldi | --old | --ol | --o) 1204 ac_prev=oldincludedir ;; 1205 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1206 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1207 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1208 oldincludedir=$ac_optarg ;; 1209 1210 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1211 ac_prev=prefix ;; 1212 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1213 prefix=$ac_optarg ;; 1214 1215 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1216 | --program-pre | --program-pr | --program-p) 1217 ac_prev=program_prefix ;; 1218 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1219 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1220 program_prefix=$ac_optarg ;; 1221 1222 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1223 | --program-suf | --program-su | --program-s) 1224 ac_prev=program_suffix ;; 1225 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1226 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1227 program_suffix=$ac_optarg ;; 1228 1229 -program-transform-name | --program-transform-name \ 1230 | --program-transform-nam | --program-transform-na \ 1231 | --program-transform-n | --program-transform- \ 1232 | --program-transform | --program-transfor \ 1233 | --program-transfo | --program-transf \ 1234 | --program-trans | --program-tran \ 1235 | --progr-tra | --program-tr | --program-t) 1236 ac_prev=program_transform_name ;; 1237 -program-transform-name=* | --program-transform-name=* \ 1238 | --program-transform-nam=* | --program-transform-na=* \ 1239 | --program-transform-n=* | --program-transform-=* \ 1240 | --program-transform=* | --program-transfor=* \ 1241 | --program-transfo=* | --program-transf=* \ 1242 | --program-trans=* | --program-tran=* \ 1243 | --progr-tra=* | --program-tr=* | --program-t=*) 1244 program_transform_name=$ac_optarg ;; 1245 1246 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1247 ac_prev=pdfdir ;; 1248 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1249 pdfdir=$ac_optarg ;; 1250 1251 -psdir | --psdir | --psdi | --psd | --ps) 1252 ac_prev=psdir ;; 1253 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1254 psdir=$ac_optarg ;; 1255 1256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1257 | -silent | --silent | --silen | --sile | --sil) 1258 silent=yes ;; 1259 1260 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1261 ac_prev=sbindir ;; 1262 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1263 | --sbi=* | --sb=*) 1264 sbindir=$ac_optarg ;; 1265 1266 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1267 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1268 | --sharedst | --shareds | --shared | --share | --shar \ 1269 | --sha | --sh) 1270 ac_prev=sharedstatedir ;; 1271 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1272 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1273 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1274 | --sha=* | --sh=*) 1275 sharedstatedir=$ac_optarg ;; 1276 1277 -site | --site | --sit) 1278 ac_prev=site ;; 1279 -site=* | --site=* | --sit=*) 1280 site=$ac_optarg ;; 1281 1282 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1283 ac_prev=srcdir ;; 1284 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1285 srcdir=$ac_optarg ;; 1286 1287 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1288 | --syscon | --sysco | --sysc | --sys | --sy) 1289 ac_prev=sysconfdir ;; 1290 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1291 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1292 sysconfdir=$ac_optarg ;; 1293 1294 -target | --target | --targe | --targ | --tar | --ta | --t) 1295 ac_prev=target_alias ;; 1296 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1297 target_alias=$ac_optarg ;; 1298 1299 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1300 verbose=yes ;; 1301 1302 -version | --version | --versio | --versi | --vers | -V) 1303 ac_init_version=: ;; 1304 1305 -with-* | --with-*) 1306 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1307 # Reject names that are not valid shell variable names. 1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1309 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1310 { (exit 1); exit 1; }; } 1311 ac_useropt_orig=$ac_useropt 1312 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1313 case $ac_user_opts in 1314 *" 1315"with_$ac_useropt" 1316"*) ;; 1317 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1318 ac_unrecognized_sep=', ';; 1319 esac 1320 eval with_$ac_useropt=\$ac_optarg ;; 1321 1322 -without-* | --without-*) 1323 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1324 # Reject names that are not valid shell variable names. 1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1326 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1327 { (exit 1); exit 1; }; } 1328 ac_useropt_orig=$ac_useropt 1329 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1330 case $ac_user_opts in 1331 *" 1332"with_$ac_useropt" 1333"*) ;; 1334 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1335 ac_unrecognized_sep=', ';; 1336 esac 1337 eval with_$ac_useropt=no ;; 1338 1339 --x) 1340 # Obsolete; use --with-x. 1341 with_x=yes ;; 1342 1343 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1344 | --x-incl | --x-inc | --x-in | --x-i) 1345 ac_prev=x_includes ;; 1346 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1347 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1348 x_includes=$ac_optarg ;; 1349 1350 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1351 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1352 ac_prev=x_libraries ;; 1353 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1354 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1355 x_libraries=$ac_optarg ;; 1356 1357 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1358Try \`$0 --help' for more information." >&2 1359 { (exit 1); exit 1; }; } 1360 ;; 1361 1362 *=*) 1363 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1364 # Reject names that are not valid shell variable names. 1365 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1366 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1367 { (exit 1); exit 1; }; } 1368 eval $ac_envvar=\$ac_optarg 1369 export $ac_envvar ;; 1370 1371 *) 1372 # FIXME: should be removed in autoconf 3.0. 1373 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1374 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1375 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1376 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1377 ;; 1378 1379 esac 1380done 1381 1382if test -n "$ac_prev"; then 1383 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1384 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1385 { (exit 1); exit 1; }; } 1386fi 1387 1388if test -n "$ac_unrecognized_opts"; then 1389 case $enable_option_checking in 1390 no) ;; 1391 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1392 { (exit 1); exit 1; }; } ;; 1393 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1394 esac 1395fi 1396 1397# Check all directory arguments for consistency. 1398for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1399 datadir sysconfdir sharedstatedir localstatedir includedir \ 1400 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1401 libdir localedir mandir 1402do 1403 eval ac_val=\$$ac_var 1404 # Remove trailing slashes. 1405 case $ac_val in 1406 */ ) 1407 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1408 eval $ac_var=\$ac_val;; 1409 esac 1410 # Be sure to have absolute directory names. 1411 case $ac_val in 1412 [\\/$]* | ?:[\\/]* ) continue;; 1413 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1414 esac 1415 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1416 { (exit 1); exit 1; }; } 1417done 1418 1419# There might be people who depend on the old broken behavior: `$host' 1420# used to hold the argument of --host etc. 1421# FIXME: To remove some day. 1422build=$build_alias 1423host=$host_alias 1424target=$target_alias 1425 1426# FIXME: To remove some day. 1427if test "x$host_alias" != x; then 1428 if test "x$build_alias" = x; then 1429 cross_compiling=maybe 1430 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1431 If a cross compiler is detected then cross compile mode will be used." >&2 1432 elif test "x$build_alias" != "x$host_alias"; then 1433 cross_compiling=yes 1434 fi 1435fi 1436 1437ac_tool_prefix= 1438test -n "$host_alias" && ac_tool_prefix=$host_alias- 1439 1440test "$silent" = yes && exec 6>/dev/null 1441 1442 1443ac_pwd=`pwd` && test -n "$ac_pwd" && 1444ac_ls_di=`ls -di .` && 1445ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1446 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1447 { (exit 1); exit 1; }; } 1448test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1449 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1450 { (exit 1); exit 1; }; } 1451 1452 1453# Find the source files, if location was not specified. 1454if test -z "$srcdir"; then 1455 ac_srcdir_defaulted=yes 1456 # Try the directory containing this script, then the parent directory. 1457 ac_confdir=`$as_dirname -- "$as_myself" || 1458$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1459 X"$as_myself" : 'X\(//\)[^/]' \| \ 1460 X"$as_myself" : 'X\(//\)$' \| \ 1461 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1462$as_echo X"$as_myself" | 1463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1464 s//\1/ 1465 q 1466 } 1467 /^X\(\/\/\)[^/].*/{ 1468 s//\1/ 1469 q 1470 } 1471 /^X\(\/\/\)$/{ 1472 s//\1/ 1473 q 1474 } 1475 /^X\(\/\).*/{ 1476 s//\1/ 1477 q 1478 } 1479 s/.*/./; q'` 1480 srcdir=$ac_confdir 1481 if test ! -r "$srcdir/$ac_unique_file"; then 1482 srcdir=.. 1483 fi 1484else 1485 ac_srcdir_defaulted=no 1486fi 1487if test ! -r "$srcdir/$ac_unique_file"; then 1488 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1489 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1490 { (exit 1); exit 1; }; } 1491fi 1492ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1493ac_abs_confdir=`( 1494 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1495 { (exit 1); exit 1; }; } 1496 pwd)` 1497# When building in place, set srcdir=. 1498if test "$ac_abs_confdir" = "$ac_pwd"; then 1499 srcdir=. 1500fi 1501# Remove unnecessary trailing slashes from srcdir. 1502# Double slashes in file names in object file debugging info 1503# mess up M-x gdb in Emacs. 1504case $srcdir in 1505*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1506esac 1507for ac_var in $ac_precious_vars; do 1508 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1509 eval ac_env_${ac_var}_value=\$${ac_var} 1510 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1511 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1512done 1513 1514# 1515# Report the --help message. 1516# 1517if test "$ac_init_help" = "long"; then 1518 # Omit some internal or obsolete options to make the list less imposing. 1519 # This message is too long to be a string in the A/UX 3.1 sh. 1520 cat <<_ACEOF 1521\`configure' configures xf86-video-mga 1.4.13 to adapt to many kinds of systems. 1522 1523Usage: $0 [OPTION]... [VAR=VALUE]... 1524 1525To assign environment variables (e.g., CC, CFLAGS...), specify them as 1526VAR=VALUE. See below for descriptions of some of the useful variables. 1527 1528Defaults for the options are specified in brackets. 1529 1530Configuration: 1531 -h, --help display this help and exit 1532 --help=short display options specific to this package 1533 --help=recursive display the short help of all the included packages 1534 -V, --version display version information and exit 1535 -q, --quiet, --silent do not print \`checking...' messages 1536 --cache-file=FILE cache test results in FILE [disabled] 1537 -C, --config-cache alias for \`--cache-file=config.cache' 1538 -n, --no-create do not create output files 1539 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1540 1541Installation directories: 1542 --prefix=PREFIX install architecture-independent files in PREFIX 1543 [$ac_default_prefix] 1544 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1545 [PREFIX] 1546 1547By default, \`make install' will install all the files in 1548\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1549an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1550for instance \`--prefix=\$HOME'. 1551 1552For better control, use the options below. 1553 1554Fine tuning of the installation directories: 1555 --bindir=DIR user executables [EPREFIX/bin] 1556 --sbindir=DIR system admin executables [EPREFIX/sbin] 1557 --libexecdir=DIR program executables [EPREFIX/libexec] 1558 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1559 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1560 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1561 --libdir=DIR object code libraries [EPREFIX/lib] 1562 --includedir=DIR C header files [PREFIX/include] 1563 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1564 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1565 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1566 --infodir=DIR info documentation [DATAROOTDIR/info] 1567 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1568 --mandir=DIR man documentation [DATAROOTDIR/man] 1569 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-mga] 1570 --htmldir=DIR html documentation [DOCDIR] 1571 --dvidir=DIR dvi documentation [DOCDIR] 1572 --pdfdir=DIR pdf documentation [DOCDIR] 1573 --psdir=DIR ps documentation [DOCDIR] 1574_ACEOF 1575 1576 cat <<\_ACEOF 1577 1578Program names: 1579 --program-prefix=PREFIX prepend PREFIX to installed program names 1580 --program-suffix=SUFFIX append SUFFIX to installed program names 1581 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1582 1583System types: 1584 --build=BUILD configure for building on BUILD [guessed] 1585 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1586_ACEOF 1587fi 1588 1589if test -n "$ac_init_help"; then 1590 case $ac_init_help in 1591 short | recursive ) echo "Configuration of xf86-video-mga 1.4.13:";; 1592 esac 1593 cat <<\_ACEOF 1594 1595Optional Features: 1596 --disable-option-checking ignore unrecognized --enable/--with options 1597 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1598 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1599 --enable-strict-compilation 1600 Enable all warnings from compiler and make them 1601 errors (default: disabled) 1602 --enable-silent-rules less verbose build output (undo: `make V=1') 1603 --disable-silent-rules verbose build output (undo: `make V=0') 1604 --disable-dependency-tracking speeds up one-time build 1605 --enable-dependency-tracking do not reject slow dependency extractors 1606 --enable-maintainer-mode enable make rules and dependencies not useful 1607 (and sometimes confusing) to the casual installer 1608 --enable-static[=PKGS] build static libraries [default=no] 1609 --enable-shared[=PKGS] build shared libraries [default=yes] 1610 --enable-fast-install[=PKGS] 1611 optimize for fast installation [default=yes] 1612 --disable-libtool-lock avoid locking (might break parallel builds) 1613 --disable-dri Disable DRI support [default=auto] 1614 --disable-exa Disable EXA support [default=enabled] 1615 1616Optional Packages: 1617 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1618 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1619 --with-pic try to use only PIC/non-PIC objects [default=use 1620 both] 1621 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1622 --with-xorg-module-dir=DIR 1623 Default xorg module directory 1624 [default=$libdir/xorg/modules] 1625 1626Some influential environment variables: 1627 CC C compiler command 1628 CFLAGS C compiler flags 1629 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1630 nonstandard directory <lib dir> 1631 LIBS libraries to pass to the linker, e.g. -l<library> 1632 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1633 you have headers in a nonstandard directory <include dir> 1634 CPP C preprocessor 1635 PKG_CONFIG path to pkg-config utility 1636 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1637 XORG_LIBS linker flags for XORG, overriding pkg-config 1638 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config 1639 DRI_LIBS linker flags for DRI, overriding pkg-config 1640 PCIACCESS_CFLAGS 1641 C compiler flags for PCIACCESS, overriding pkg-config 1642 PCIACCESS_LIBS 1643 linker flags for PCIACCESS, overriding pkg-config 1644 1645Use these variables to override the choices made by `configure' or to help 1646it to find libraries and programs with nonstandard names/locations. 1647 1648Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1649_ACEOF 1650ac_status=$? 1651fi 1652 1653if test "$ac_init_help" = "recursive"; then 1654 # If there are subdirs, report their specific --help. 1655 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1656 test -d "$ac_dir" || 1657 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1658 continue 1659 ac_builddir=. 1660 1661case "$ac_dir" in 1662.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1663*) 1664 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1665 # A ".." for each directory in $ac_dir_suffix. 1666 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1667 case $ac_top_builddir_sub in 1668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1670 esac ;; 1671esac 1672ac_abs_top_builddir=$ac_pwd 1673ac_abs_builddir=$ac_pwd$ac_dir_suffix 1674# for backward compatibility: 1675ac_top_builddir=$ac_top_build_prefix 1676 1677case $srcdir in 1678 .) # We are building in place. 1679 ac_srcdir=. 1680 ac_top_srcdir=$ac_top_builddir_sub 1681 ac_abs_top_srcdir=$ac_pwd ;; 1682 [\\/]* | ?:[\\/]* ) # Absolute name. 1683 ac_srcdir=$srcdir$ac_dir_suffix; 1684 ac_top_srcdir=$srcdir 1685 ac_abs_top_srcdir=$srcdir ;; 1686 *) # Relative name. 1687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1688 ac_top_srcdir=$ac_top_build_prefix$srcdir 1689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1690esac 1691ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1692 1693 cd "$ac_dir" || { ac_status=$?; continue; } 1694 # Check for guested configure. 1695 if test -f "$ac_srcdir/configure.gnu"; then 1696 echo && 1697 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1698 elif test -f "$ac_srcdir/configure"; then 1699 echo && 1700 $SHELL "$ac_srcdir/configure" --help=recursive 1701 else 1702 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1703 fi || ac_status=$? 1704 cd "$ac_pwd" || { ac_status=$?; break; } 1705 done 1706fi 1707 1708test -n "$ac_init_help" && exit $ac_status 1709if $ac_init_version; then 1710 cat <<\_ACEOF 1711xf86-video-mga configure 1.4.13 1712generated by GNU Autoconf 2.63 1713 1714Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17152002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1716This configure script is free software; the Free Software Foundation 1717gives unlimited permission to copy, distribute and modify it. 1718_ACEOF 1719 exit 1720fi 1721cat >config.log <<_ACEOF 1722This file contains any messages produced by compilers while 1723running configure, to aid debugging if configure makes a mistake. 1724 1725It was created by xf86-video-mga $as_me 1.4.13, which was 1726generated by GNU Autoconf 2.63. Invocation command line was 1727 1728 $ $0 $@ 1729 1730_ACEOF 1731exec 5>>config.log 1732{ 1733cat <<_ASUNAME 1734## --------- ## 1735## Platform. ## 1736## --------- ## 1737 1738hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1739uname -m = `(uname -m) 2>/dev/null || echo unknown` 1740uname -r = `(uname -r) 2>/dev/null || echo unknown` 1741uname -s = `(uname -s) 2>/dev/null || echo unknown` 1742uname -v = `(uname -v) 2>/dev/null || echo unknown` 1743 1744/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1745/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1746 1747/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1748/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1749/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1750/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1751/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1752/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1753/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1754 1755_ASUNAME 1756 1757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1758for as_dir in $PATH 1759do 1760 IFS=$as_save_IFS 1761 test -z "$as_dir" && as_dir=. 1762 $as_echo "PATH: $as_dir" 1763done 1764IFS=$as_save_IFS 1765 1766} >&5 1767 1768cat >&5 <<_ACEOF 1769 1770 1771## ----------- ## 1772## Core tests. ## 1773## ----------- ## 1774 1775_ACEOF 1776 1777 1778# Keep a trace of the command line. 1779# Strip out --no-create and --no-recursion so they do not pile up. 1780# Strip out --silent because we don't want to record it for future runs. 1781# Also quote any args containing shell meta-characters. 1782# Make two passes to allow for proper duplicate-argument suppression. 1783ac_configure_args= 1784ac_configure_args0= 1785ac_configure_args1= 1786ac_must_keep_next=false 1787for ac_pass in 1 2 1788do 1789 for ac_arg 1790 do 1791 case $ac_arg in 1792 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1793 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1794 | -silent | --silent | --silen | --sile | --sil) 1795 continue ;; 1796 *\'*) 1797 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1798 esac 1799 case $ac_pass in 1800 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1801 2) 1802 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1803 if test $ac_must_keep_next = true; then 1804 ac_must_keep_next=false # Got value, back to normal. 1805 else 1806 case $ac_arg in 1807 *=* | --config-cache | -C | -disable-* | --disable-* \ 1808 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1809 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1810 | -with-* | --with-* | -without-* | --without-* | --x) 1811 case "$ac_configure_args0 " in 1812 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1813 esac 1814 ;; 1815 -* ) ac_must_keep_next=true ;; 1816 esac 1817 fi 1818 ac_configure_args="$ac_configure_args '$ac_arg'" 1819 ;; 1820 esac 1821 done 1822done 1823$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1824$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1825 1826# When interrupted or exit'd, cleanup temporary files, and complete 1827# config.log. We remove comments because anyway the quotes in there 1828# would cause problems or look ugly. 1829# WARNING: Use '\'' to represent an apostrophe within the trap. 1830# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1831trap 'exit_status=$? 1832 # Save into config.log some information that might help in debugging. 1833 { 1834 echo 1835 1836 cat <<\_ASBOX 1837## ---------------- ## 1838## Cache variables. ## 1839## ---------------- ## 1840_ASBOX 1841 echo 1842 # The following way of writing the cache mishandles newlines in values, 1843( 1844 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1845 eval ac_val=\$$ac_var 1846 case $ac_val in #( 1847 *${as_nl}*) 1848 case $ac_var in #( 1849 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1850$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1851 esac 1852 case $ac_var in #( 1853 _ | IFS | as_nl) ;; #( 1854 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1855 *) $as_unset $ac_var ;; 1856 esac ;; 1857 esac 1858 done 1859 (set) 2>&1 | 1860 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1861 *${as_nl}ac_space=\ *) 1862 sed -n \ 1863 "s/'\''/'\''\\\\'\'''\''/g; 1864 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1865 ;; #( 1866 *) 1867 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1868 ;; 1869 esac | 1870 sort 1871) 1872 echo 1873 1874 cat <<\_ASBOX 1875## ----------------- ## 1876## Output variables. ## 1877## ----------------- ## 1878_ASBOX 1879 echo 1880 for ac_var in $ac_subst_vars 1881 do 1882 eval ac_val=\$$ac_var 1883 case $ac_val in 1884 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1885 esac 1886 $as_echo "$ac_var='\''$ac_val'\''" 1887 done | sort 1888 echo 1889 1890 if test -n "$ac_subst_files"; then 1891 cat <<\_ASBOX 1892## ------------------- ## 1893## File substitutions. ## 1894## ------------------- ## 1895_ASBOX 1896 echo 1897 for ac_var in $ac_subst_files 1898 do 1899 eval ac_val=\$$ac_var 1900 case $ac_val in 1901 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1902 esac 1903 $as_echo "$ac_var='\''$ac_val'\''" 1904 done | sort 1905 echo 1906 fi 1907 1908 if test -s confdefs.h; then 1909 cat <<\_ASBOX 1910## ----------- ## 1911## confdefs.h. ## 1912## ----------- ## 1913_ASBOX 1914 echo 1915 cat confdefs.h 1916 echo 1917 fi 1918 test "$ac_signal" != 0 && 1919 $as_echo "$as_me: caught signal $ac_signal" 1920 $as_echo "$as_me: exit $exit_status" 1921 } >&5 1922 rm -f core *.core core.conftest.* && 1923 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1924 exit $exit_status 1925' 0 1926for ac_signal in 1 2 13 15; do 1927 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1928done 1929ac_signal=0 1930 1931# confdefs.h avoids OS command line length limits that DEFS can exceed. 1932rm -f -r conftest* confdefs.h 1933 1934# Predefined preprocessor variables. 1935 1936cat >>confdefs.h <<_ACEOF 1937#define PACKAGE_NAME "$PACKAGE_NAME" 1938_ACEOF 1939 1940 1941cat >>confdefs.h <<_ACEOF 1942#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1943_ACEOF 1944 1945 1946cat >>confdefs.h <<_ACEOF 1947#define PACKAGE_VERSION "$PACKAGE_VERSION" 1948_ACEOF 1949 1950 1951cat >>confdefs.h <<_ACEOF 1952#define PACKAGE_STRING "$PACKAGE_STRING" 1953_ACEOF 1954 1955 1956cat >>confdefs.h <<_ACEOF 1957#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1958_ACEOF 1959 1960 1961# Let the site file select an alternate cache file if it wants to. 1962# Prefer an explicitly selected file to automatically selected ones. 1963ac_site_file1=NONE 1964ac_site_file2=NONE 1965if test -n "$CONFIG_SITE"; then 1966 ac_site_file1=$CONFIG_SITE 1967elif test "x$prefix" != xNONE; then 1968 ac_site_file1=$prefix/share/config.site 1969 ac_site_file2=$prefix/etc/config.site 1970else 1971 ac_site_file1=$ac_default_prefix/share/config.site 1972 ac_site_file2=$ac_default_prefix/etc/config.site 1973fi 1974for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1975do 1976 test "x$ac_site_file" = xNONE && continue 1977 if test -r "$ac_site_file"; then 1978 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1979$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1980 sed 's/^/| /' "$ac_site_file" >&5 1981 . "$ac_site_file" 1982 fi 1983done 1984 1985if test -r "$cache_file"; then 1986 # Some versions of bash will fail to source /dev/null (special 1987 # files actually), so we avoid doing that. 1988 if test -f "$cache_file"; then 1989 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1990$as_echo "$as_me: loading cache $cache_file" >&6;} 1991 case $cache_file in 1992 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1993 *) . "./$cache_file";; 1994 esac 1995 fi 1996else 1997 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1998$as_echo "$as_me: creating cache $cache_file" >&6;} 1999 >$cache_file 2000fi 2001 2002# Check that the precious variables saved in the cache have kept the same 2003# value. 2004ac_cache_corrupted=false 2005for ac_var in $ac_precious_vars; do 2006 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2007 eval ac_new_set=\$ac_env_${ac_var}_set 2008 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2009 eval ac_new_val=\$ac_env_${ac_var}_value 2010 case $ac_old_set,$ac_new_set in 2011 set,) 2012 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2013$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2014 ac_cache_corrupted=: ;; 2015 ,set) 2016 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2017$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2018 ac_cache_corrupted=: ;; 2019 ,);; 2020 *) 2021 if test "x$ac_old_val" != "x$ac_new_val"; then 2022 # differences in whitespace do not lead to failure. 2023 ac_old_val_w=`echo x $ac_old_val` 2024 ac_new_val_w=`echo x $ac_new_val` 2025 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2026 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2027$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2028 ac_cache_corrupted=: 2029 else 2030 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2031$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2032 eval $ac_var=\$ac_old_val 2033 fi 2034 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2035$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2036 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2037$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2038 fi;; 2039 esac 2040 # Pass precious variables to config.status. 2041 if test "$ac_new_set" = set; then 2042 case $ac_new_val in 2043 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2044 *) ac_arg=$ac_var=$ac_new_val ;; 2045 esac 2046 case " $ac_configure_args " in 2047 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2048 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2049 esac 2050 fi 2051done 2052if $ac_cache_corrupted; then 2053 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2055 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2056$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2057 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2058$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2059 { (exit 1); exit 1; }; } 2060fi 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086ac_ext=c 2087ac_cpp='$CPP $CPPFLAGS' 2088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2090ac_compiler_gnu=$ac_cv_c_compiler_gnu 2091 2092 2093 2094ac_config_headers="$ac_config_headers config.h" 2095 2096 2097# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109ac_aux_dir= 2110for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2111 if test -f "$ac_dir/install-sh"; then 2112 ac_aux_dir=$ac_dir 2113 ac_install_sh="$ac_aux_dir/install-sh -c" 2114 break 2115 elif test -f "$ac_dir/install.sh"; then 2116 ac_aux_dir=$ac_dir 2117 ac_install_sh="$ac_aux_dir/install.sh -c" 2118 break 2119 elif test -f "$ac_dir/shtool"; then 2120 ac_aux_dir=$ac_dir 2121 ac_install_sh="$ac_aux_dir/shtool install -c" 2122 break 2123 fi 2124done 2125if test -z "$ac_aux_dir"; then 2126 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2127$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2128 { (exit 1); exit 1; }; } 2129fi 2130 2131# These three variables are undocumented and unsupported, 2132# and are intended to be withdrawn in a future Autoconf release. 2133# They can cause serious problems if a builder's source tree is in a directory 2134# whose full name contains unusual characters. 2135ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2136ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2137ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2138 2139 2140# Find a good install program. We prefer a C program (faster), 2141# so one script is as good as another. But avoid the broken or 2142# incompatible versions: 2143# SysV /etc/install, /usr/sbin/install 2144# SunOS /usr/etc/install 2145# IRIX /sbin/install 2146# AIX /bin/install 2147# AmigaOS /C/install, which installs bootblocks on floppy discs 2148# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2149# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2150# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2151# OS/2's system install, which has a completely different semantic 2152# ./install, which can be erroneously created by make from ./install.sh. 2153# Reject install programs that cannot install multiple files. 2154{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2155$as_echo_n "checking for a BSD-compatible install... " >&6; } 2156if test -z "$INSTALL"; then 2157if test "${ac_cv_path_install+set}" = set; then 2158 $as_echo_n "(cached) " >&6 2159else 2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2161for as_dir in $PATH 2162do 2163 IFS=$as_save_IFS 2164 test -z "$as_dir" && as_dir=. 2165 # Account for people who put trailing slashes in PATH elements. 2166case $as_dir/ in 2167 ./ | .// | /cC/* | \ 2168 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2169 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2170 /usr/ucb/* ) ;; 2171 *) 2172 # OSF1 and SCO ODT 3.0 have their own names for install. 2173 # Don't use installbsd from OSF since it installs stuff as root 2174 # by default. 2175 for ac_prog in ginstall scoinst install; do 2176 for ac_exec_ext in '' $ac_executable_extensions; do 2177 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2178 if test $ac_prog = install && 2179 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2180 # AIX install. It has an incompatible calling convention. 2181 : 2182 elif test $ac_prog = install && 2183 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2184 # program-specific install script used by HP pwplus--don't use. 2185 : 2186 else 2187 rm -rf conftest.one conftest.two conftest.dir 2188 echo one > conftest.one 2189 echo two > conftest.two 2190 mkdir conftest.dir 2191 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2192 test -s conftest.one && test -s conftest.two && 2193 test -s conftest.dir/conftest.one && 2194 test -s conftest.dir/conftest.two 2195 then 2196 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2197 break 3 2198 fi 2199 fi 2200 fi 2201 done 2202 done 2203 ;; 2204esac 2205 2206done 2207IFS=$as_save_IFS 2208 2209rm -rf conftest.one conftest.two conftest.dir 2210 2211fi 2212 if test "${ac_cv_path_install+set}" = set; then 2213 INSTALL=$ac_cv_path_install 2214 else 2215 # As a last resort, use the slow shell script. Don't cache a 2216 # value for INSTALL within a source directory, because that will 2217 # break other packages using the cache if that directory is 2218 # removed, or if the value is a relative name. 2219 INSTALL=$ac_install_sh 2220 fi 2221fi 2222{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2223$as_echo "$INSTALL" >&6; } 2224 2225# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2226# It thinks the first close brace ends the variable substitution. 2227test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2228 2229test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2230 2231test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2232 2233ac_ext=c 2234ac_cpp='$CPP $CPPFLAGS' 2235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2237ac_compiler_gnu=$ac_cv_c_compiler_gnu 2238if test -n "$ac_tool_prefix"; then 2239 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2240set dummy ${ac_tool_prefix}gcc; ac_word=$2 2241{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2242$as_echo_n "checking for $ac_word... " >&6; } 2243if test "${ac_cv_prog_CC+set}" = set; then 2244 $as_echo_n "(cached) " >&6 2245else 2246 if test -n "$CC"; then 2247 ac_cv_prog_CC="$CC" # Let the user override the test. 2248else 2249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2250for as_dir in $PATH 2251do 2252 IFS=$as_save_IFS 2253 test -z "$as_dir" && as_dir=. 2254 for ac_exec_ext in '' $ac_executable_extensions; do 2255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2256 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2258 break 2 2259 fi 2260done 2261done 2262IFS=$as_save_IFS 2263 2264fi 2265fi 2266CC=$ac_cv_prog_CC 2267if test -n "$CC"; then 2268 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2269$as_echo "$CC" >&6; } 2270else 2271 { $as_echo "$as_me:$LINENO: result: no" >&5 2272$as_echo "no" >&6; } 2273fi 2274 2275 2276fi 2277if test -z "$ac_cv_prog_CC"; then 2278 ac_ct_CC=$CC 2279 # Extract the first word of "gcc", so it can be a program name with args. 2280set dummy gcc; ac_word=$2 2281{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2282$as_echo_n "checking for $ac_word... " >&6; } 2283if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2284 $as_echo_n "(cached) " >&6 2285else 2286 if test -n "$ac_ct_CC"; then 2287 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2288else 2289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2290for as_dir in $PATH 2291do 2292 IFS=$as_save_IFS 2293 test -z "$as_dir" && as_dir=. 2294 for ac_exec_ext in '' $ac_executable_extensions; do 2295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2296 ac_cv_prog_ac_ct_CC="gcc" 2297 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2298 break 2 2299 fi 2300done 2301done 2302IFS=$as_save_IFS 2303 2304fi 2305fi 2306ac_ct_CC=$ac_cv_prog_ac_ct_CC 2307if test -n "$ac_ct_CC"; then 2308 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2309$as_echo "$ac_ct_CC" >&6; } 2310else 2311 { $as_echo "$as_me:$LINENO: result: no" >&5 2312$as_echo "no" >&6; } 2313fi 2314 2315 if test "x$ac_ct_CC" = x; then 2316 CC="" 2317 else 2318 case $cross_compiling:$ac_tool_warned in 2319yes:) 2320{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2322ac_tool_warned=yes ;; 2323esac 2324 CC=$ac_ct_CC 2325 fi 2326else 2327 CC="$ac_cv_prog_CC" 2328fi 2329 2330if test -z "$CC"; then 2331 if test -n "$ac_tool_prefix"; then 2332 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2333set dummy ${ac_tool_prefix}cc; ac_word=$2 2334{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2335$as_echo_n "checking for $ac_word... " >&6; } 2336if test "${ac_cv_prog_CC+set}" = set; then 2337 $as_echo_n "(cached) " >&6 2338else 2339 if test -n "$CC"; then 2340 ac_cv_prog_CC="$CC" # Let the user override the test. 2341else 2342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2343for as_dir in $PATH 2344do 2345 IFS=$as_save_IFS 2346 test -z "$as_dir" && as_dir=. 2347 for ac_exec_ext in '' $ac_executable_extensions; do 2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2349 ac_cv_prog_CC="${ac_tool_prefix}cc" 2350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2351 break 2 2352 fi 2353done 2354done 2355IFS=$as_save_IFS 2356 2357fi 2358fi 2359CC=$ac_cv_prog_CC 2360if test -n "$CC"; then 2361 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2362$as_echo "$CC" >&6; } 2363else 2364 { $as_echo "$as_me:$LINENO: result: no" >&5 2365$as_echo "no" >&6; } 2366fi 2367 2368 2369 fi 2370fi 2371if test -z "$CC"; then 2372 # Extract the first word of "cc", so it can be a program name with args. 2373set dummy cc; ac_word=$2 2374{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2375$as_echo_n "checking for $ac_word... " >&6; } 2376if test "${ac_cv_prog_CC+set}" = set; then 2377 $as_echo_n "(cached) " >&6 2378else 2379 if test -n "$CC"; then 2380 ac_cv_prog_CC="$CC" # Let the user override the test. 2381else 2382 ac_prog_rejected=no 2383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2384for as_dir in $PATH 2385do 2386 IFS=$as_save_IFS 2387 test -z "$as_dir" && as_dir=. 2388 for ac_exec_ext in '' $ac_executable_extensions; do 2389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2390 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2391 ac_prog_rejected=yes 2392 continue 2393 fi 2394 ac_cv_prog_CC="cc" 2395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2396 break 2 2397 fi 2398done 2399done 2400IFS=$as_save_IFS 2401 2402if test $ac_prog_rejected = yes; then 2403 # We found a bogon in the path, so make sure we never use it. 2404 set dummy $ac_cv_prog_CC 2405 shift 2406 if test $# != 0; then 2407 # We chose a different compiler from the bogus one. 2408 # However, it has the same basename, so the bogon will be chosen 2409 # first if we set CC to just the basename; use the full file name. 2410 shift 2411 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2412 fi 2413fi 2414fi 2415fi 2416CC=$ac_cv_prog_CC 2417if test -n "$CC"; then 2418 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2419$as_echo "$CC" >&6; } 2420else 2421 { $as_echo "$as_me:$LINENO: result: no" >&5 2422$as_echo "no" >&6; } 2423fi 2424 2425 2426fi 2427if test -z "$CC"; then 2428 if test -n "$ac_tool_prefix"; then 2429 for ac_prog in cl.exe 2430 do 2431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2432set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2433{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2434$as_echo_n "checking for $ac_word... " >&6; } 2435if test "${ac_cv_prog_CC+set}" = set; then 2436 $as_echo_n "(cached) " >&6 2437else 2438 if test -n "$CC"; then 2439 ac_cv_prog_CC="$CC" # Let the user override the test. 2440else 2441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2442for as_dir in $PATH 2443do 2444 IFS=$as_save_IFS 2445 test -z "$as_dir" && as_dir=. 2446 for ac_exec_ext in '' $ac_executable_extensions; do 2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2448 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2449 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2450 break 2 2451 fi 2452done 2453done 2454IFS=$as_save_IFS 2455 2456fi 2457fi 2458CC=$ac_cv_prog_CC 2459if test -n "$CC"; then 2460 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2461$as_echo "$CC" >&6; } 2462else 2463 { $as_echo "$as_me:$LINENO: result: no" >&5 2464$as_echo "no" >&6; } 2465fi 2466 2467 2468 test -n "$CC" && break 2469 done 2470fi 2471if test -z "$CC"; then 2472 ac_ct_CC=$CC 2473 for ac_prog in cl.exe 2474do 2475 # Extract the first word of "$ac_prog", so it can be a program name with args. 2476set dummy $ac_prog; ac_word=$2 2477{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2478$as_echo_n "checking for $ac_word... " >&6; } 2479if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2480 $as_echo_n "(cached) " >&6 2481else 2482 if test -n "$ac_ct_CC"; then 2483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2484else 2485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2486for as_dir in $PATH 2487do 2488 IFS=$as_save_IFS 2489 test -z "$as_dir" && as_dir=. 2490 for ac_exec_ext in '' $ac_executable_extensions; do 2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2492 ac_cv_prog_ac_ct_CC="$ac_prog" 2493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2494 break 2 2495 fi 2496done 2497done 2498IFS=$as_save_IFS 2499 2500fi 2501fi 2502ac_ct_CC=$ac_cv_prog_ac_ct_CC 2503if test -n "$ac_ct_CC"; then 2504 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2505$as_echo "$ac_ct_CC" >&6; } 2506else 2507 { $as_echo "$as_me:$LINENO: result: no" >&5 2508$as_echo "no" >&6; } 2509fi 2510 2511 2512 test -n "$ac_ct_CC" && break 2513done 2514 2515 if test "x$ac_ct_CC" = x; then 2516 CC="" 2517 else 2518 case $cross_compiling:$ac_tool_warned in 2519yes:) 2520{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2522ac_tool_warned=yes ;; 2523esac 2524 CC=$ac_ct_CC 2525 fi 2526fi 2527 2528fi 2529 2530 2531test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2533{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2534See \`config.log' for more details." >&5 2535$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2536See \`config.log' for more details." >&2;} 2537 { (exit 1); exit 1; }; }; } 2538 2539# Provide some information about the compiler. 2540$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2541set X $ac_compile 2542ac_compiler=$2 2543{ (ac_try="$ac_compiler --version >&5" 2544case "(($ac_try" in 2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2546 *) ac_try_echo=$ac_try;; 2547esac 2548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2549$as_echo "$ac_try_echo") >&5 2550 (eval "$ac_compiler --version >&5") 2>&5 2551 ac_status=$? 2552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2553 (exit $ac_status); } 2554{ (ac_try="$ac_compiler -v >&5" 2555case "(($ac_try" in 2556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2557 *) ac_try_echo=$ac_try;; 2558esac 2559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2560$as_echo "$ac_try_echo") >&5 2561 (eval "$ac_compiler -v >&5") 2>&5 2562 ac_status=$? 2563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2564 (exit $ac_status); } 2565{ (ac_try="$ac_compiler -V >&5" 2566case "(($ac_try" in 2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2568 *) ac_try_echo=$ac_try;; 2569esac 2570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2571$as_echo "$ac_try_echo") >&5 2572 (eval "$ac_compiler -V >&5") 2>&5 2573 ac_status=$? 2574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2575 (exit $ac_status); } 2576 2577cat >conftest.$ac_ext <<_ACEOF 2578/* confdefs.h. */ 2579_ACEOF 2580cat confdefs.h >>conftest.$ac_ext 2581cat >>conftest.$ac_ext <<_ACEOF 2582/* end confdefs.h. */ 2583 2584int 2585main () 2586{ 2587 2588 ; 2589 return 0; 2590} 2591_ACEOF 2592ac_clean_files_save=$ac_clean_files 2593ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2594# Try to create an executable without -o first, disregard a.out. 2595# It will help us diagnose broken compilers, and finding out an intuition 2596# of exeext. 2597{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2598$as_echo_n "checking for C compiler default output file name... " >&6; } 2599ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2600 2601# The possible output files: 2602ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2603 2604ac_rmfiles= 2605for ac_file in $ac_files 2606do 2607 case $ac_file in 2608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2609 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2610 esac 2611done 2612rm -f $ac_rmfiles 2613 2614if { (ac_try="$ac_link_default" 2615case "(($ac_try" in 2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2617 *) ac_try_echo=$ac_try;; 2618esac 2619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2620$as_echo "$ac_try_echo") >&5 2621 (eval "$ac_link_default") 2>&5 2622 ac_status=$? 2623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2624 (exit $ac_status); }; then 2625 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2626# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2627# in a Makefile. We should not override ac_cv_exeext if it was cached, 2628# so that the user can short-circuit this test for compilers unknown to 2629# Autoconf. 2630for ac_file in $ac_files '' 2631do 2632 test -f "$ac_file" || continue 2633 case $ac_file in 2634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2635 ;; 2636 [ab].out ) 2637 # We found the default executable, but exeext='' is most 2638 # certainly right. 2639 break;; 2640 *.* ) 2641 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2642 then :; else 2643 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2644 fi 2645 # We set ac_cv_exeext here because the later test for it is not 2646 # safe: cross compilers may not add the suffix if given an `-o' 2647 # argument, so we may need to know it at that point already. 2648 # Even if this section looks crufty: it has the advantage of 2649 # actually working. 2650 break;; 2651 * ) 2652 break;; 2653 esac 2654done 2655test "$ac_cv_exeext" = no && ac_cv_exeext= 2656 2657else 2658 ac_file='' 2659fi 2660 2661{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2662$as_echo "$ac_file" >&6; } 2663if test -z "$ac_file"; then 2664 $as_echo "$as_me: failed program was:" >&5 2665sed 's/^/| /' conftest.$ac_ext >&5 2666 2667{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2668$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2669{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 2670See \`config.log' for more details." >&5 2671$as_echo "$as_me: error: C compiler cannot create executables 2672See \`config.log' for more details." >&2;} 2673 { (exit 77); exit 77; }; }; } 2674fi 2675 2676ac_exeext=$ac_cv_exeext 2677 2678# Check that the compiler produces executables we can run. If not, either 2679# the compiler is broken, or we cross compile. 2680{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2681$as_echo_n "checking whether the C compiler works... " >&6; } 2682# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2683# If not cross compiling, check that we can run a simple program. 2684if test "$cross_compiling" != yes; then 2685 if { ac_try='./$ac_file' 2686 { (case "(($ac_try" in 2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2688 *) ac_try_echo=$ac_try;; 2689esac 2690eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2691$as_echo "$ac_try_echo") >&5 2692 (eval "$ac_try") 2>&5 2693 ac_status=$? 2694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2695 (exit $ac_status); }; }; then 2696 cross_compiling=no 2697 else 2698 if test "$cross_compiling" = maybe; then 2699 cross_compiling=yes 2700 else 2701 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2703{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 2704If you meant to cross compile, use \`--host'. 2705See \`config.log' for more details." >&5 2706$as_echo "$as_me: error: cannot run C compiled programs. 2707If you meant to cross compile, use \`--host'. 2708See \`config.log' for more details." >&2;} 2709 { (exit 1); exit 1; }; }; } 2710 fi 2711 fi 2712fi 2713{ $as_echo "$as_me:$LINENO: result: yes" >&5 2714$as_echo "yes" >&6; } 2715 2716rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2717ac_clean_files=$ac_clean_files_save 2718# Check that the compiler produces executables we can run. If not, either 2719# the compiler is broken, or we cross compile. 2720{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2721$as_echo_n "checking whether we are cross compiling... " >&6; } 2722{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 2723$as_echo "$cross_compiling" >&6; } 2724 2725{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 2726$as_echo_n "checking for suffix of executables... " >&6; } 2727if { (ac_try="$ac_link" 2728case "(($ac_try" in 2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2730 *) ac_try_echo=$ac_try;; 2731esac 2732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2733$as_echo "$ac_try_echo") >&5 2734 (eval "$ac_link") 2>&5 2735 ac_status=$? 2736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2737 (exit $ac_status); }; then 2738 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2739# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2740# work properly (i.e., refer to `conftest.exe'), while it won't with 2741# `rm'. 2742for ac_file in conftest.exe conftest conftest.*; do 2743 test -f "$ac_file" || continue 2744 case $ac_file in 2745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2746 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2747 break;; 2748 * ) break;; 2749 esac 2750done 2751else 2752 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2753$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2754{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2755See \`config.log' for more details." >&5 2756$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2757See \`config.log' for more details." >&2;} 2758 { (exit 1); exit 1; }; }; } 2759fi 2760 2761rm -f conftest$ac_cv_exeext 2762{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2763$as_echo "$ac_cv_exeext" >&6; } 2764 2765rm -f conftest.$ac_ext 2766EXEEXT=$ac_cv_exeext 2767ac_exeext=$EXEEXT 2768{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 2769$as_echo_n "checking for suffix of object files... " >&6; } 2770if test "${ac_cv_objext+set}" = set; then 2771 $as_echo_n "(cached) " >&6 2772else 2773 cat >conftest.$ac_ext <<_ACEOF 2774/* confdefs.h. */ 2775_ACEOF 2776cat confdefs.h >>conftest.$ac_ext 2777cat >>conftest.$ac_ext <<_ACEOF 2778/* end confdefs.h. */ 2779 2780int 2781main () 2782{ 2783 2784 ; 2785 return 0; 2786} 2787_ACEOF 2788rm -f conftest.o conftest.obj 2789if { (ac_try="$ac_compile" 2790case "(($ac_try" in 2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2792 *) ac_try_echo=$ac_try;; 2793esac 2794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2795$as_echo "$ac_try_echo") >&5 2796 (eval "$ac_compile") 2>&5 2797 ac_status=$? 2798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2799 (exit $ac_status); }; then 2800 for ac_file in conftest.o conftest.obj conftest.*; do 2801 test -f "$ac_file" || continue; 2802 case $ac_file in 2803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2804 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2805 break;; 2806 esac 2807done 2808else 2809 $as_echo "$as_me: failed program was:" >&5 2810sed 's/^/| /' conftest.$ac_ext >&5 2811 2812{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2814{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2815See \`config.log' for more details." >&5 2816$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 2817See \`config.log' for more details." >&2;} 2818 { (exit 1); exit 1; }; }; } 2819fi 2820 2821rm -f conftest.$ac_cv_objext conftest.$ac_ext 2822fi 2823{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2824$as_echo "$ac_cv_objext" >&6; } 2825OBJEXT=$ac_cv_objext 2826ac_objext=$OBJEXT 2827{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2828$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2829if test "${ac_cv_c_compiler_gnu+set}" = set; then 2830 $as_echo_n "(cached) " >&6 2831else 2832 cat >conftest.$ac_ext <<_ACEOF 2833/* confdefs.h. */ 2834_ACEOF 2835cat confdefs.h >>conftest.$ac_ext 2836cat >>conftest.$ac_ext <<_ACEOF 2837/* end confdefs.h. */ 2838 2839int 2840main () 2841{ 2842#ifndef __GNUC__ 2843 choke me 2844#endif 2845 2846 ; 2847 return 0; 2848} 2849_ACEOF 2850rm -f conftest.$ac_objext 2851if { (ac_try="$ac_compile" 2852case "(($ac_try" in 2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2854 *) ac_try_echo=$ac_try;; 2855esac 2856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2857$as_echo "$ac_try_echo") >&5 2858 (eval "$ac_compile") 2>conftest.er1 2859 ac_status=$? 2860 grep -v '^ *+' conftest.er1 >conftest.err 2861 rm -f conftest.er1 2862 cat conftest.err >&5 2863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2864 (exit $ac_status); } && { 2865 test -z "$ac_c_werror_flag" || 2866 test ! -s conftest.err 2867 } && test -s conftest.$ac_objext; then 2868 ac_compiler_gnu=yes 2869else 2870 $as_echo "$as_me: failed program was:" >&5 2871sed 's/^/| /' conftest.$ac_ext >&5 2872 2873 ac_compiler_gnu=no 2874fi 2875 2876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2877ac_cv_c_compiler_gnu=$ac_compiler_gnu 2878 2879fi 2880{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2881$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2882if test $ac_compiler_gnu = yes; then 2883 GCC=yes 2884else 2885 GCC= 2886fi 2887ac_test_CFLAGS=${CFLAGS+set} 2888ac_save_CFLAGS=$CFLAGS 2889{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2890$as_echo_n "checking whether $CC accepts -g... " >&6; } 2891if test "${ac_cv_prog_cc_g+set}" = set; then 2892 $as_echo_n "(cached) " >&6 2893else 2894 ac_save_c_werror_flag=$ac_c_werror_flag 2895 ac_c_werror_flag=yes 2896 ac_cv_prog_cc_g=no 2897 CFLAGS="-g" 2898 cat >conftest.$ac_ext <<_ACEOF 2899/* confdefs.h. */ 2900_ACEOF 2901cat confdefs.h >>conftest.$ac_ext 2902cat >>conftest.$ac_ext <<_ACEOF 2903/* end confdefs.h. */ 2904 2905int 2906main () 2907{ 2908 2909 ; 2910 return 0; 2911} 2912_ACEOF 2913rm -f conftest.$ac_objext 2914if { (ac_try="$ac_compile" 2915case "(($ac_try" in 2916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2917 *) ac_try_echo=$ac_try;; 2918esac 2919eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2920$as_echo "$ac_try_echo") >&5 2921 (eval "$ac_compile") 2>conftest.er1 2922 ac_status=$? 2923 grep -v '^ *+' conftest.er1 >conftest.err 2924 rm -f conftest.er1 2925 cat conftest.err >&5 2926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2927 (exit $ac_status); } && { 2928 test -z "$ac_c_werror_flag" || 2929 test ! -s conftest.err 2930 } && test -s conftest.$ac_objext; then 2931 ac_cv_prog_cc_g=yes 2932else 2933 $as_echo "$as_me: failed program was:" >&5 2934sed 's/^/| /' conftest.$ac_ext >&5 2935 2936 CFLAGS="" 2937 cat >conftest.$ac_ext <<_ACEOF 2938/* confdefs.h. */ 2939_ACEOF 2940cat confdefs.h >>conftest.$ac_ext 2941cat >>conftest.$ac_ext <<_ACEOF 2942/* end confdefs.h. */ 2943 2944int 2945main () 2946{ 2947 2948 ; 2949 return 0; 2950} 2951_ACEOF 2952rm -f conftest.$ac_objext 2953if { (ac_try="$ac_compile" 2954case "(($ac_try" in 2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2956 *) ac_try_echo=$ac_try;; 2957esac 2958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2959$as_echo "$ac_try_echo") >&5 2960 (eval "$ac_compile") 2>conftest.er1 2961 ac_status=$? 2962 grep -v '^ *+' conftest.er1 >conftest.err 2963 rm -f conftest.er1 2964 cat conftest.err >&5 2965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2966 (exit $ac_status); } && { 2967 test -z "$ac_c_werror_flag" || 2968 test ! -s conftest.err 2969 } && test -s conftest.$ac_objext; then 2970 : 2971else 2972 $as_echo "$as_me: failed program was:" >&5 2973sed 's/^/| /' conftest.$ac_ext >&5 2974 2975 ac_c_werror_flag=$ac_save_c_werror_flag 2976 CFLAGS="-g" 2977 cat >conftest.$ac_ext <<_ACEOF 2978/* confdefs.h. */ 2979_ACEOF 2980cat confdefs.h >>conftest.$ac_ext 2981cat >>conftest.$ac_ext <<_ACEOF 2982/* end confdefs.h. */ 2983 2984int 2985main () 2986{ 2987 2988 ; 2989 return 0; 2990} 2991_ACEOF 2992rm -f conftest.$ac_objext 2993if { (ac_try="$ac_compile" 2994case "(($ac_try" in 2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2996 *) ac_try_echo=$ac_try;; 2997esac 2998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2999$as_echo "$ac_try_echo") >&5 3000 (eval "$ac_compile") 2>conftest.er1 3001 ac_status=$? 3002 grep -v '^ *+' conftest.er1 >conftest.err 3003 rm -f conftest.er1 3004 cat conftest.err >&5 3005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3006 (exit $ac_status); } && { 3007 test -z "$ac_c_werror_flag" || 3008 test ! -s conftest.err 3009 } && test -s conftest.$ac_objext; then 3010 ac_cv_prog_cc_g=yes 3011else 3012 $as_echo "$as_me: failed program was:" >&5 3013sed 's/^/| /' conftest.$ac_ext >&5 3014 3015 3016fi 3017 3018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3019fi 3020 3021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3022fi 3023 3024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3025 ac_c_werror_flag=$ac_save_c_werror_flag 3026fi 3027{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3028$as_echo "$ac_cv_prog_cc_g" >&6; } 3029if test "$ac_test_CFLAGS" = set; then 3030 CFLAGS=$ac_save_CFLAGS 3031elif test $ac_cv_prog_cc_g = yes; then 3032 if test "$GCC" = yes; then 3033 CFLAGS="-g -O2" 3034 else 3035 CFLAGS="-g" 3036 fi 3037else 3038 if test "$GCC" = yes; then 3039 CFLAGS="-O2" 3040 else 3041 CFLAGS= 3042 fi 3043fi 3044{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3045$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3046if test "${ac_cv_prog_cc_c89+set}" = set; then 3047 $as_echo_n "(cached) " >&6 3048else 3049 ac_cv_prog_cc_c89=no 3050ac_save_CC=$CC 3051cat >conftest.$ac_ext <<_ACEOF 3052/* confdefs.h. */ 3053_ACEOF 3054cat confdefs.h >>conftest.$ac_ext 3055cat >>conftest.$ac_ext <<_ACEOF 3056/* end confdefs.h. */ 3057#include <stdarg.h> 3058#include <stdio.h> 3059#include <sys/types.h> 3060#include <sys/stat.h> 3061/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3062struct buf { int x; }; 3063FILE * (*rcsopen) (struct buf *, struct stat *, int); 3064static char *e (p, i) 3065 char **p; 3066 int i; 3067{ 3068 return p[i]; 3069} 3070static char *f (char * (*g) (char **, int), char **p, ...) 3071{ 3072 char *s; 3073 va_list v; 3074 va_start (v,p); 3075 s = g (p, va_arg (v,int)); 3076 va_end (v); 3077 return s; 3078} 3079 3080/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3081 function prototypes and stuff, but not '\xHH' hex character constants. 3082 These don't provoke an error unfortunately, instead are silently treated 3083 as 'x'. The following induces an error, until -std is added to get 3084 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3085 array size at least. It's necessary to write '\x00'==0 to get something 3086 that's true only with -std. */ 3087int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3088 3089/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3090 inside strings and character constants. */ 3091#define FOO(x) 'x' 3092int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3093 3094int test (int i, double x); 3095struct s1 {int (*f) (int a);}; 3096struct s2 {int (*f) (double a);}; 3097int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3098int argc; 3099char **argv; 3100int 3101main () 3102{ 3103return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3104 ; 3105 return 0; 3106} 3107_ACEOF 3108for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3109 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3110do 3111 CC="$ac_save_CC $ac_arg" 3112 rm -f conftest.$ac_objext 3113if { (ac_try="$ac_compile" 3114case "(($ac_try" in 3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3116 *) ac_try_echo=$ac_try;; 3117esac 3118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3119$as_echo "$ac_try_echo") >&5 3120 (eval "$ac_compile") 2>conftest.er1 3121 ac_status=$? 3122 grep -v '^ *+' conftest.er1 >conftest.err 3123 rm -f conftest.er1 3124 cat conftest.err >&5 3125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3126 (exit $ac_status); } && { 3127 test -z "$ac_c_werror_flag" || 3128 test ! -s conftest.err 3129 } && test -s conftest.$ac_objext; then 3130 ac_cv_prog_cc_c89=$ac_arg 3131else 3132 $as_echo "$as_me: failed program was:" >&5 3133sed 's/^/| /' conftest.$ac_ext >&5 3134 3135 3136fi 3137 3138rm -f core conftest.err conftest.$ac_objext 3139 test "x$ac_cv_prog_cc_c89" != "xno" && break 3140done 3141rm -f conftest.$ac_ext 3142CC=$ac_save_CC 3143 3144fi 3145# AC_CACHE_VAL 3146case "x$ac_cv_prog_cc_c89" in 3147 x) 3148 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3149$as_echo "none needed" >&6; } ;; 3150 xno) 3151 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3152$as_echo "unsupported" >&6; } ;; 3153 *) 3154 CC="$CC $ac_cv_prog_cc_c89" 3155 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3156$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3157esac 3158 3159 3160ac_ext=c 3161ac_cpp='$CPP $CPPFLAGS' 3162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3164ac_compiler_gnu=$ac_cv_c_compiler_gnu 3165 3166 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 3167$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3168if test "${ac_cv_prog_cc_c99+set}" = set; then 3169 $as_echo_n "(cached) " >&6 3170else 3171 ac_cv_prog_cc_c99=no 3172ac_save_CC=$CC 3173cat >conftest.$ac_ext <<_ACEOF 3174/* confdefs.h. */ 3175_ACEOF 3176cat confdefs.h >>conftest.$ac_ext 3177cat >>conftest.$ac_ext <<_ACEOF 3178/* end confdefs.h. */ 3179#include <stdarg.h> 3180#include <stdbool.h> 3181#include <stdlib.h> 3182#include <wchar.h> 3183#include <stdio.h> 3184 3185// Check varargs macros. These examples are taken from C99 6.10.3.5. 3186#define debug(...) fprintf (stderr, __VA_ARGS__) 3187#define showlist(...) puts (#__VA_ARGS__) 3188#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3189static void 3190test_varargs_macros (void) 3191{ 3192 int x = 1234; 3193 int y = 5678; 3194 debug ("Flag"); 3195 debug ("X = %d\n", x); 3196 showlist (The first, second, and third items.); 3197 report (x>y, "x is %d but y is %d", x, y); 3198} 3199 3200// Check long long types. 3201#define BIG64 18446744073709551615ull 3202#define BIG32 4294967295ul 3203#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3204#if !BIG_OK 3205 your preprocessor is broken; 3206#endif 3207#if BIG_OK 3208#else 3209 your preprocessor is broken; 3210#endif 3211static long long int bignum = -9223372036854775807LL; 3212static unsigned long long int ubignum = BIG64; 3213 3214struct incomplete_array 3215{ 3216 int datasize; 3217 double data[]; 3218}; 3219 3220struct named_init { 3221 int number; 3222 const wchar_t *name; 3223 double average; 3224}; 3225 3226typedef const char *ccp; 3227 3228static inline int 3229test_restrict (ccp restrict text) 3230{ 3231 // See if C++-style comments work. 3232 // Iterate through items via the restricted pointer. 3233 // Also check for declarations in for loops. 3234 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3235 continue; 3236 return 0; 3237} 3238 3239// Check varargs and va_copy. 3240static void 3241test_varargs (const char *format, ...) 3242{ 3243 va_list args; 3244 va_start (args, format); 3245 va_list args_copy; 3246 va_copy (args_copy, args); 3247 3248 const char *str; 3249 int number; 3250 float fnumber; 3251 3252 while (*format) 3253 { 3254 switch (*format++) 3255 { 3256 case 's': // string 3257 str = va_arg (args_copy, const char *); 3258 break; 3259 case 'd': // int 3260 number = va_arg (args_copy, int); 3261 break; 3262 case 'f': // float 3263 fnumber = va_arg (args_copy, double); 3264 break; 3265 default: 3266 break; 3267 } 3268 } 3269 va_end (args_copy); 3270 va_end (args); 3271} 3272 3273int 3274main () 3275{ 3276 3277 // Check bool. 3278 _Bool success = false; 3279 3280 // Check restrict. 3281 if (test_restrict ("String literal") == 0) 3282 success = true; 3283 char *restrict newvar = "Another string"; 3284 3285 // Check varargs. 3286 test_varargs ("s, d' f .", "string", 65, 34.234); 3287 test_varargs_macros (); 3288 3289 // Check flexible array members. 3290 struct incomplete_array *ia = 3291 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3292 ia->datasize = 10; 3293 for (int i = 0; i < ia->datasize; ++i) 3294 ia->data[i] = i * 1.234; 3295 3296 // Check named initializers. 3297 struct named_init ni = { 3298 .number = 34, 3299 .name = L"Test wide string", 3300 .average = 543.34343, 3301 }; 3302 3303 ni.number = 58; 3304 3305 int dynamic_array[ni.number]; 3306 dynamic_array[ni.number - 1] = 543; 3307 3308 // work around unused variable warnings 3309 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3310 || dynamic_array[ni.number - 1] != 543); 3311 3312 ; 3313 return 0; 3314} 3315_ACEOF 3316for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3317do 3318 CC="$ac_save_CC $ac_arg" 3319 rm -f conftest.$ac_objext 3320if { (ac_try="$ac_compile" 3321case "(($ac_try" in 3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3323 *) ac_try_echo=$ac_try;; 3324esac 3325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3326$as_echo "$ac_try_echo") >&5 3327 (eval "$ac_compile") 2>conftest.er1 3328 ac_status=$? 3329 grep -v '^ *+' conftest.er1 >conftest.err 3330 rm -f conftest.er1 3331 cat conftest.err >&5 3332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3333 (exit $ac_status); } && { 3334 test -z "$ac_c_werror_flag" || 3335 test ! -s conftest.err 3336 } && test -s conftest.$ac_objext; then 3337 ac_cv_prog_cc_c99=$ac_arg 3338else 3339 $as_echo "$as_me: failed program was:" >&5 3340sed 's/^/| /' conftest.$ac_ext >&5 3341 3342 3343fi 3344 3345rm -f core conftest.err conftest.$ac_objext 3346 test "x$ac_cv_prog_cc_c99" != "xno" && break 3347done 3348rm -f conftest.$ac_ext 3349CC=$ac_save_CC 3350 3351fi 3352# AC_CACHE_VAL 3353case "x$ac_cv_prog_cc_c99" in 3354 x) 3355 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3356$as_echo "none needed" >&6; } ;; 3357 xno) 3358 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3359$as_echo "unsupported" >&6; } ;; 3360 *) 3361 CC="$CC $ac_cv_prog_cc_c99" 3362 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 3363$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3364esac 3365 3366 3367 3368 3369ac_ext=c 3370ac_cpp='$CPP $CPPFLAGS' 3371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3373ac_compiler_gnu=$ac_cv_c_compiler_gnu 3374{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3375$as_echo_n "checking how to run the C preprocessor... " >&6; } 3376# On Suns, sometimes $CPP names a directory. 3377if test -n "$CPP" && test -d "$CPP"; then 3378 CPP= 3379fi 3380if test -z "$CPP"; then 3381 if test "${ac_cv_prog_CPP+set}" = set; then 3382 $as_echo_n "(cached) " >&6 3383else 3384 # Double quotes because CPP needs to be expanded 3385 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3386 do 3387 ac_preproc_ok=false 3388for ac_c_preproc_warn_flag in '' yes 3389do 3390 # Use a header file that comes with gcc, so configuring glibc 3391 # with a fresh cross-compiler works. 3392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3393 # <limits.h> exists even on freestanding compilers. 3394 # On the NeXT, cc -E runs the code through the compiler's parser, 3395 # not just through cpp. "Syntax error" is here to catch this case. 3396 cat >conftest.$ac_ext <<_ACEOF 3397/* confdefs.h. */ 3398_ACEOF 3399cat confdefs.h >>conftest.$ac_ext 3400cat >>conftest.$ac_ext <<_ACEOF 3401/* end confdefs.h. */ 3402#ifdef __STDC__ 3403# include <limits.h> 3404#else 3405# include <assert.h> 3406#endif 3407 Syntax error 3408_ACEOF 3409if { (ac_try="$ac_cpp conftest.$ac_ext" 3410case "(($ac_try" in 3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3412 *) ac_try_echo=$ac_try;; 3413esac 3414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3415$as_echo "$ac_try_echo") >&5 3416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3417 ac_status=$? 3418 grep -v '^ *+' conftest.er1 >conftest.err 3419 rm -f conftest.er1 3420 cat conftest.err >&5 3421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3422 (exit $ac_status); } >/dev/null && { 3423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3424 test ! -s conftest.err 3425 }; then 3426 : 3427else 3428 $as_echo "$as_me: failed program was:" >&5 3429sed 's/^/| /' conftest.$ac_ext >&5 3430 3431 # Broken: fails on valid input. 3432continue 3433fi 3434 3435rm -f conftest.err conftest.$ac_ext 3436 3437 # OK, works on sane cases. Now check whether nonexistent headers 3438 # can be detected and how. 3439 cat >conftest.$ac_ext <<_ACEOF 3440/* confdefs.h. */ 3441_ACEOF 3442cat confdefs.h >>conftest.$ac_ext 3443cat >>conftest.$ac_ext <<_ACEOF 3444/* end confdefs.h. */ 3445#include <ac_nonexistent.h> 3446_ACEOF 3447if { (ac_try="$ac_cpp conftest.$ac_ext" 3448case "(($ac_try" in 3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3450 *) ac_try_echo=$ac_try;; 3451esac 3452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3453$as_echo "$ac_try_echo") >&5 3454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3455 ac_status=$? 3456 grep -v '^ *+' conftest.er1 >conftest.err 3457 rm -f conftest.er1 3458 cat conftest.err >&5 3459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3460 (exit $ac_status); } >/dev/null && { 3461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3462 test ! -s conftest.err 3463 }; then 3464 # Broken: success on invalid input. 3465continue 3466else 3467 $as_echo "$as_me: failed program was:" >&5 3468sed 's/^/| /' conftest.$ac_ext >&5 3469 3470 # Passes both tests. 3471ac_preproc_ok=: 3472break 3473fi 3474 3475rm -f conftest.err conftest.$ac_ext 3476 3477done 3478# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3479rm -f conftest.err conftest.$ac_ext 3480if $ac_preproc_ok; then 3481 break 3482fi 3483 3484 done 3485 ac_cv_prog_CPP=$CPP 3486 3487fi 3488 CPP=$ac_cv_prog_CPP 3489else 3490 ac_cv_prog_CPP=$CPP 3491fi 3492{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 3493$as_echo "$CPP" >&6; } 3494ac_preproc_ok=false 3495for ac_c_preproc_warn_flag in '' yes 3496do 3497 # Use a header file that comes with gcc, so configuring glibc 3498 # with a fresh cross-compiler works. 3499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3500 # <limits.h> exists even on freestanding compilers. 3501 # On the NeXT, cc -E runs the code through the compiler's parser, 3502 # not just through cpp. "Syntax error" is here to catch this case. 3503 cat >conftest.$ac_ext <<_ACEOF 3504/* confdefs.h. */ 3505_ACEOF 3506cat confdefs.h >>conftest.$ac_ext 3507cat >>conftest.$ac_ext <<_ACEOF 3508/* end confdefs.h. */ 3509#ifdef __STDC__ 3510# include <limits.h> 3511#else 3512# include <assert.h> 3513#endif 3514 Syntax error 3515_ACEOF 3516if { (ac_try="$ac_cpp conftest.$ac_ext" 3517case "(($ac_try" in 3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3519 *) ac_try_echo=$ac_try;; 3520esac 3521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3522$as_echo "$ac_try_echo") >&5 3523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3524 ac_status=$? 3525 grep -v '^ *+' conftest.er1 >conftest.err 3526 rm -f conftest.er1 3527 cat conftest.err >&5 3528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3529 (exit $ac_status); } >/dev/null && { 3530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3531 test ! -s conftest.err 3532 }; then 3533 : 3534else 3535 $as_echo "$as_me: failed program was:" >&5 3536sed 's/^/| /' conftest.$ac_ext >&5 3537 3538 # Broken: fails on valid input. 3539continue 3540fi 3541 3542rm -f conftest.err conftest.$ac_ext 3543 3544 # OK, works on sane cases. Now check whether nonexistent headers 3545 # can be detected and how. 3546 cat >conftest.$ac_ext <<_ACEOF 3547/* confdefs.h. */ 3548_ACEOF 3549cat confdefs.h >>conftest.$ac_ext 3550cat >>conftest.$ac_ext <<_ACEOF 3551/* end confdefs.h. */ 3552#include <ac_nonexistent.h> 3553_ACEOF 3554if { (ac_try="$ac_cpp conftest.$ac_ext" 3555case "(($ac_try" in 3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3557 *) ac_try_echo=$ac_try;; 3558esac 3559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3560$as_echo "$ac_try_echo") >&5 3561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3562 ac_status=$? 3563 grep -v '^ *+' conftest.er1 >conftest.err 3564 rm -f conftest.er1 3565 cat conftest.err >&5 3566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3567 (exit $ac_status); } >/dev/null && { 3568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3569 test ! -s conftest.err 3570 }; then 3571 # Broken: success on invalid input. 3572continue 3573else 3574 $as_echo "$as_me: failed program was:" >&5 3575sed 's/^/| /' conftest.$ac_ext >&5 3576 3577 # Passes both tests. 3578ac_preproc_ok=: 3579break 3580fi 3581 3582rm -f conftest.err conftest.$ac_ext 3583 3584done 3585# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3586rm -f conftest.err conftest.$ac_ext 3587if $ac_preproc_ok; then 3588 : 3589else 3590 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3592{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3593See \`config.log' for more details." >&5 3594$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3595See \`config.log' for more details." >&2;} 3596 { (exit 1); exit 1; }; }; } 3597fi 3598 3599ac_ext=c 3600ac_cpp='$CPP $CPPFLAGS' 3601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3603ac_compiler_gnu=$ac_cv_c_compiler_gnu 3604 3605 3606{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3607$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3608if test "${ac_cv_path_GREP+set}" = set; then 3609 $as_echo_n "(cached) " >&6 3610else 3611 if test -z "$GREP"; then 3612 ac_path_GREP_found=false 3613 # Loop through the user's path and test for each of PROGNAME-LIST 3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3615for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3616do 3617 IFS=$as_save_IFS 3618 test -z "$as_dir" && as_dir=. 3619 for ac_prog in grep ggrep; do 3620 for ac_exec_ext in '' $ac_executable_extensions; do 3621 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3622 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3623# Check for GNU ac_path_GREP and select it if it is found. 3624 # Check for GNU $ac_path_GREP 3625case `"$ac_path_GREP" --version 2>&1` in 3626*GNU*) 3627 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3628*) 3629 ac_count=0 3630 $as_echo_n 0123456789 >"conftest.in" 3631 while : 3632 do 3633 cat "conftest.in" "conftest.in" >"conftest.tmp" 3634 mv "conftest.tmp" "conftest.in" 3635 cp "conftest.in" "conftest.nl" 3636 $as_echo 'GREP' >> "conftest.nl" 3637 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3639 ac_count=`expr $ac_count + 1` 3640 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3641 # Best one so far, save it but keep looking for a better one 3642 ac_cv_path_GREP="$ac_path_GREP" 3643 ac_path_GREP_max=$ac_count 3644 fi 3645 # 10*(2^10) chars as input seems more than enough 3646 test $ac_count -gt 10 && break 3647 done 3648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3649esac 3650 3651 $ac_path_GREP_found && break 3 3652 done 3653 done 3654done 3655IFS=$as_save_IFS 3656 if test -z "$ac_cv_path_GREP"; then 3657 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3658$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3659 { (exit 1); exit 1; }; } 3660 fi 3661else 3662 ac_cv_path_GREP=$GREP 3663fi 3664 3665fi 3666{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3667$as_echo "$ac_cv_path_GREP" >&6; } 3668 GREP="$ac_cv_path_GREP" 3669 3670 3671{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3672$as_echo_n "checking for egrep... " >&6; } 3673if test "${ac_cv_path_EGREP+set}" = set; then 3674 $as_echo_n "(cached) " >&6 3675else 3676 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3677 then ac_cv_path_EGREP="$GREP -E" 3678 else 3679 if test -z "$EGREP"; then 3680 ac_path_EGREP_found=false 3681 # Loop through the user's path and test for each of PROGNAME-LIST 3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3683for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3684do 3685 IFS=$as_save_IFS 3686 test -z "$as_dir" && as_dir=. 3687 for ac_prog in egrep; do 3688 for ac_exec_ext in '' $ac_executable_extensions; do 3689 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3690 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3691# Check for GNU ac_path_EGREP and select it if it is found. 3692 # Check for GNU $ac_path_EGREP 3693case `"$ac_path_EGREP" --version 2>&1` in 3694*GNU*) 3695 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3696*) 3697 ac_count=0 3698 $as_echo_n 0123456789 >"conftest.in" 3699 while : 3700 do 3701 cat "conftest.in" "conftest.in" >"conftest.tmp" 3702 mv "conftest.tmp" "conftest.in" 3703 cp "conftest.in" "conftest.nl" 3704 $as_echo 'EGREP' >> "conftest.nl" 3705 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3707 ac_count=`expr $ac_count + 1` 3708 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3709 # Best one so far, save it but keep looking for a better one 3710 ac_cv_path_EGREP="$ac_path_EGREP" 3711 ac_path_EGREP_max=$ac_count 3712 fi 3713 # 10*(2^10) chars as input seems more than enough 3714 test $ac_count -gt 10 && break 3715 done 3716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3717esac 3718 3719 $ac_path_EGREP_found && break 3 3720 done 3721 done 3722done 3723IFS=$as_save_IFS 3724 if test -z "$ac_cv_path_EGREP"; then 3725 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3726$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3727 { (exit 1); exit 1; }; } 3728 fi 3729else 3730 ac_cv_path_EGREP=$EGREP 3731fi 3732 3733 fi 3734fi 3735{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3736$as_echo "$ac_cv_path_EGREP" >&6; } 3737 EGREP="$ac_cv_path_EGREP" 3738 3739 3740{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3741$as_echo_n "checking for ANSI C header files... " >&6; } 3742if test "${ac_cv_header_stdc+set}" = set; then 3743 $as_echo_n "(cached) " >&6 3744else 3745 cat >conftest.$ac_ext <<_ACEOF 3746/* confdefs.h. */ 3747_ACEOF 3748cat confdefs.h >>conftest.$ac_ext 3749cat >>conftest.$ac_ext <<_ACEOF 3750/* end confdefs.h. */ 3751#include <stdlib.h> 3752#include <stdarg.h> 3753#include <string.h> 3754#include <float.h> 3755 3756int 3757main () 3758{ 3759 3760 ; 3761 return 0; 3762} 3763_ACEOF 3764rm -f conftest.$ac_objext 3765if { (ac_try="$ac_compile" 3766case "(($ac_try" in 3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3768 *) ac_try_echo=$ac_try;; 3769esac 3770eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3771$as_echo "$ac_try_echo") >&5 3772 (eval "$ac_compile") 2>conftest.er1 3773 ac_status=$? 3774 grep -v '^ *+' conftest.er1 >conftest.err 3775 rm -f conftest.er1 3776 cat conftest.err >&5 3777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3778 (exit $ac_status); } && { 3779 test -z "$ac_c_werror_flag" || 3780 test ! -s conftest.err 3781 } && test -s conftest.$ac_objext; then 3782 ac_cv_header_stdc=yes 3783else 3784 $as_echo "$as_me: failed program was:" >&5 3785sed 's/^/| /' conftest.$ac_ext >&5 3786 3787 ac_cv_header_stdc=no 3788fi 3789 3790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3791 3792if test $ac_cv_header_stdc = yes; then 3793 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3794 cat >conftest.$ac_ext <<_ACEOF 3795/* confdefs.h. */ 3796_ACEOF 3797cat confdefs.h >>conftest.$ac_ext 3798cat >>conftest.$ac_ext <<_ACEOF 3799/* end confdefs.h. */ 3800#include <string.h> 3801 3802_ACEOF 3803if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3804 $EGREP "memchr" >/dev/null 2>&1; then 3805 : 3806else 3807 ac_cv_header_stdc=no 3808fi 3809rm -f conftest* 3810 3811fi 3812 3813if test $ac_cv_header_stdc = yes; then 3814 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3815 cat >conftest.$ac_ext <<_ACEOF 3816/* confdefs.h. */ 3817_ACEOF 3818cat confdefs.h >>conftest.$ac_ext 3819cat >>conftest.$ac_ext <<_ACEOF 3820/* end confdefs.h. */ 3821#include <stdlib.h> 3822 3823_ACEOF 3824if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3825 $EGREP "free" >/dev/null 2>&1; then 3826 : 3827else 3828 ac_cv_header_stdc=no 3829fi 3830rm -f conftest* 3831 3832fi 3833 3834if test $ac_cv_header_stdc = yes; then 3835 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3836 if test "$cross_compiling" = yes; then 3837 : 3838else 3839 cat >conftest.$ac_ext <<_ACEOF 3840/* confdefs.h. */ 3841_ACEOF 3842cat confdefs.h >>conftest.$ac_ext 3843cat >>conftest.$ac_ext <<_ACEOF 3844/* end confdefs.h. */ 3845#include <ctype.h> 3846#include <stdlib.h> 3847#if ((' ' & 0x0FF) == 0x020) 3848# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3849# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3850#else 3851# define ISLOWER(c) \ 3852 (('a' <= (c) && (c) <= 'i') \ 3853 || ('j' <= (c) && (c) <= 'r') \ 3854 || ('s' <= (c) && (c) <= 'z')) 3855# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3856#endif 3857 3858#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3859int 3860main () 3861{ 3862 int i; 3863 for (i = 0; i < 256; i++) 3864 if (XOR (islower (i), ISLOWER (i)) 3865 || toupper (i) != TOUPPER (i)) 3866 return 2; 3867 return 0; 3868} 3869_ACEOF 3870rm -f conftest$ac_exeext 3871if { (ac_try="$ac_link" 3872case "(($ac_try" in 3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3874 *) ac_try_echo=$ac_try;; 3875esac 3876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3877$as_echo "$ac_try_echo") >&5 3878 (eval "$ac_link") 2>&5 3879 ac_status=$? 3880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3882 { (case "(($ac_try" in 3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3884 *) ac_try_echo=$ac_try;; 3885esac 3886eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3887$as_echo "$ac_try_echo") >&5 3888 (eval "$ac_try") 2>&5 3889 ac_status=$? 3890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3891 (exit $ac_status); }; }; then 3892 : 3893else 3894 $as_echo "$as_me: program exited with status $ac_status" >&5 3895$as_echo "$as_me: failed program was:" >&5 3896sed 's/^/| /' conftest.$ac_ext >&5 3897 3898( exit $ac_status ) 3899ac_cv_header_stdc=no 3900fi 3901rm -rf conftest.dSYM 3902rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3903fi 3904 3905 3906fi 3907fi 3908{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3909$as_echo "$ac_cv_header_stdc" >&6; } 3910if test $ac_cv_header_stdc = yes; then 3911 3912cat >>confdefs.h <<\_ACEOF 3913#define STDC_HEADERS 1 3914_ACEOF 3915 3916fi 3917 3918# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3929 inttypes.h stdint.h unistd.h 3930do 3931as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3932{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 3933$as_echo_n "checking for $ac_header... " >&6; } 3934if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3935 $as_echo_n "(cached) " >&6 3936else 3937 cat >conftest.$ac_ext <<_ACEOF 3938/* confdefs.h. */ 3939_ACEOF 3940cat confdefs.h >>conftest.$ac_ext 3941cat >>conftest.$ac_ext <<_ACEOF 3942/* end confdefs.h. */ 3943$ac_includes_default 3944 3945#include <$ac_header> 3946_ACEOF 3947rm -f conftest.$ac_objext 3948if { (ac_try="$ac_compile" 3949case "(($ac_try" in 3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3951 *) ac_try_echo=$ac_try;; 3952esac 3953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3954$as_echo "$ac_try_echo") >&5 3955 (eval "$ac_compile") 2>conftest.er1 3956 ac_status=$? 3957 grep -v '^ *+' conftest.er1 >conftest.err 3958 rm -f conftest.er1 3959 cat conftest.err >&5 3960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3961 (exit $ac_status); } && { 3962 test -z "$ac_c_werror_flag" || 3963 test ! -s conftest.err 3964 } && test -s conftest.$ac_objext; then 3965 eval "$as_ac_Header=yes" 3966else 3967 $as_echo "$as_me: failed program was:" >&5 3968sed 's/^/| /' conftest.$ac_ext >&5 3969 3970 eval "$as_ac_Header=no" 3971fi 3972 3973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3974fi 3975ac_res=`eval 'as_val=${'$as_ac_Header'} 3976 $as_echo "$as_val"'` 3977 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 3978$as_echo "$ac_res" >&6; } 3979as_val=`eval 'as_val=${'$as_ac_Header'} 3980 $as_echo "$as_val"'` 3981 if test "x$as_val" = x""yes; then 3982 cat >>confdefs.h <<_ACEOF 3983#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3984_ACEOF 3985 3986fi 3987 3988done 3989 3990 3991 3992 3993if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 3994 if test -n "$ac_tool_prefix"; then 3995 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 3996set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 3997{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3998$as_echo_n "checking for $ac_word... " >&6; } 3999if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 4000 $as_echo_n "(cached) " >&6 4001else 4002 case $PKG_CONFIG in 4003 [\\/]* | ?:[\\/]*) 4004 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4005 ;; 4006 *) 4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4008for as_dir in $PATH 4009do 4010 IFS=$as_save_IFS 4011 test -z "$as_dir" && as_dir=. 4012 for ac_exec_ext in '' $ac_executable_extensions; do 4013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4014 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4015 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4016 break 2 4017 fi 4018done 4019done 4020IFS=$as_save_IFS 4021 4022 ;; 4023esac 4024fi 4025PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4026if test -n "$PKG_CONFIG"; then 4027 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 4028$as_echo "$PKG_CONFIG" >&6; } 4029else 4030 { $as_echo "$as_me:$LINENO: result: no" >&5 4031$as_echo "no" >&6; } 4032fi 4033 4034 4035fi 4036if test -z "$ac_cv_path_PKG_CONFIG"; then 4037 ac_pt_PKG_CONFIG=$PKG_CONFIG 4038 # Extract the first word of "pkg-config", so it can be a program name with args. 4039set dummy pkg-config; ac_word=$2 4040{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4041$as_echo_n "checking for $ac_word... " >&6; } 4042if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 4043 $as_echo_n "(cached) " >&6 4044else 4045 case $ac_pt_PKG_CONFIG in 4046 [\\/]* | ?:[\\/]*) 4047 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4048 ;; 4049 *) 4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4051for as_dir in $PATH 4052do 4053 IFS=$as_save_IFS 4054 test -z "$as_dir" && as_dir=. 4055 for ac_exec_ext in '' $ac_executable_extensions; do 4056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4057 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4058 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4059 break 2 4060 fi 4061done 4062done 4063IFS=$as_save_IFS 4064 4065 ;; 4066esac 4067fi 4068ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4069if test -n "$ac_pt_PKG_CONFIG"; then 4070 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 4071$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4072else 4073 { $as_echo "$as_me:$LINENO: result: no" >&5 4074$as_echo "no" >&6; } 4075fi 4076 4077 if test "x$ac_pt_PKG_CONFIG" = x; then 4078 PKG_CONFIG="" 4079 else 4080 case $cross_compiling:$ac_tool_warned in 4081yes:) 4082{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4084ac_tool_warned=yes ;; 4085esac 4086 PKG_CONFIG=$ac_pt_PKG_CONFIG 4087 fi 4088else 4089 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4090fi 4091 4092fi 4093if test -n "$PKG_CONFIG"; then 4094 _pkg_min_version=0.9.0 4095 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 4096$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4097 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4098 { $as_echo "$as_me:$LINENO: result: yes" >&5 4099$as_echo "yes" >&6; } 4100 else 4101 { $as_echo "$as_me:$LINENO: result: no" >&5 4102$as_echo "no" >&6; } 4103 PKG_CONFIG="" 4104 fi 4105 4106fi 4107# Make sure we can run config.sub. 4108$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4109 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 4110$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 4111 { (exit 1); exit 1; }; } 4112 4113{ $as_echo "$as_me:$LINENO: checking build system type" >&5 4114$as_echo_n "checking build system type... " >&6; } 4115if test "${ac_cv_build+set}" = set; then 4116 $as_echo_n "(cached) " >&6 4117else 4118 ac_build_alias=$build_alias 4119test "x$ac_build_alias" = x && 4120 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4121test "x$ac_build_alias" = x && 4122 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 4123$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 4124 { (exit 1); exit 1; }; } 4125ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4126 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 4127$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 4128 { (exit 1); exit 1; }; } 4129 4130fi 4131{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 4132$as_echo "$ac_cv_build" >&6; } 4133case $ac_cv_build in 4134*-*-*) ;; 4135*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 4136$as_echo "$as_me: error: invalid value of canonical build" >&2;} 4137 { (exit 1); exit 1; }; };; 4138esac 4139build=$ac_cv_build 4140ac_save_IFS=$IFS; IFS='-' 4141set x $ac_cv_build 4142shift 4143build_cpu=$1 4144build_vendor=$2 4145shift; shift 4146# Remember, the first character of IFS is used to create $*, 4147# except with old shells: 4148build_os=$* 4149IFS=$ac_save_IFS 4150case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4151 4152 4153{ $as_echo "$as_me:$LINENO: checking host system type" >&5 4154$as_echo_n "checking host system type... " >&6; } 4155if test "${ac_cv_host+set}" = set; then 4156 $as_echo_n "(cached) " >&6 4157else 4158 if test "x$host_alias" = x; then 4159 ac_cv_host=$ac_cv_build 4160else 4161 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4162 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 4163$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 4164 { (exit 1); exit 1; }; } 4165fi 4166 4167fi 4168{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 4169$as_echo "$ac_cv_host" >&6; } 4170case $ac_cv_host in 4171*-*-*) ;; 4172*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 4173$as_echo "$as_me: error: invalid value of canonical host" >&2;} 4174 { (exit 1); exit 1; }; };; 4175esac 4176host=$ac_cv_host 4177ac_save_IFS=$IFS; IFS='-' 4178set x $ac_cv_host 4179shift 4180host_cpu=$1 4181host_vendor=$2 4182shift; shift 4183# Remember, the first character of IFS is used to create $*, 4184# except with old shells: 4185host_os=$* 4186IFS=$ac_save_IFS 4187case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4188 4189 4190{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4191$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4192if test "${ac_cv_path_SED+set}" = set; then 4193 $as_echo_n "(cached) " >&6 4194else 4195 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4196 for ac_i in 1 2 3 4 5 6 7; do 4197 ac_script="$ac_script$as_nl$ac_script" 4198 done 4199 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4200 $as_unset ac_script || ac_script= 4201 if test -z "$SED"; then 4202 ac_path_SED_found=false 4203 # Loop through the user's path and test for each of PROGNAME-LIST 4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4205for as_dir in $PATH 4206do 4207 IFS=$as_save_IFS 4208 test -z "$as_dir" && as_dir=. 4209 for ac_prog in sed gsed; do 4210 for ac_exec_ext in '' $ac_executable_extensions; do 4211 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4212 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4213# Check for GNU ac_path_SED and select it if it is found. 4214 # Check for GNU $ac_path_SED 4215case `"$ac_path_SED" --version 2>&1` in 4216*GNU*) 4217 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4218*) 4219 ac_count=0 4220 $as_echo_n 0123456789 >"conftest.in" 4221 while : 4222 do 4223 cat "conftest.in" "conftest.in" >"conftest.tmp" 4224 mv "conftest.tmp" "conftest.in" 4225 cp "conftest.in" "conftest.nl" 4226 $as_echo '' >> "conftest.nl" 4227 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4228 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4229 ac_count=`expr $ac_count + 1` 4230 if test $ac_count -gt ${ac_path_SED_max-0}; then 4231 # Best one so far, save it but keep looking for a better one 4232 ac_cv_path_SED="$ac_path_SED" 4233 ac_path_SED_max=$ac_count 4234 fi 4235 # 10*(2^10) chars as input seems more than enough 4236 test $ac_count -gt 10 && break 4237 done 4238 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4239esac 4240 4241 $ac_path_SED_found && break 3 4242 done 4243 done 4244done 4245IFS=$as_save_IFS 4246 if test -z "$ac_cv_path_SED"; then 4247 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 4248$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 4249 { (exit 1); exit 1; }; } 4250 fi 4251else 4252 ac_cv_path_SED=$SED 4253fi 4254 4255fi 4256{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 4257$as_echo "$ac_cv_path_SED" >&6; } 4258 SED="$ac_cv_path_SED" 4259 rm -f conftest.sed 4260 4261 4262 4263 4264 4265if test "x$GCC" = xyes ; then 4266 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4267-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4268-Wbad-function-cast -Wformat=2" 4269 case `$CC -dumpversion` in 4270 3.4.* | 4.*) 4271 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4272 ;; 4273 esac 4274else 4275 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 4276$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 4277if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 4278 $as_echo_n "(cached) " >&6 4279else 4280 cat >conftest.$ac_ext <<_ACEOF 4281/* confdefs.h. */ 4282_ACEOF 4283cat confdefs.h >>conftest.$ac_ext 4284cat >>conftest.$ac_ext <<_ACEOF 4285/* end confdefs.h. */ 4286$ac_includes_default 4287int 4288main () 4289{ 4290#ifndef __SUNPRO_C 4291 (void) __SUNPRO_C; 4292#endif 4293 4294 ; 4295 return 0; 4296} 4297_ACEOF 4298rm -f conftest.$ac_objext 4299if { (ac_try="$ac_compile" 4300case "(($ac_try" in 4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4302 *) ac_try_echo=$ac_try;; 4303esac 4304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4305$as_echo "$ac_try_echo") >&5 4306 (eval "$ac_compile") 2>conftest.er1 4307 ac_status=$? 4308 grep -v '^ *+' conftest.er1 >conftest.err 4309 rm -f conftest.er1 4310 cat conftest.err >&5 4311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4312 (exit $ac_status); } && { 4313 test -z "$ac_c_werror_flag" || 4314 test ! -s conftest.err 4315 } && test -s conftest.$ac_objext; then 4316 ac_cv_have_decl___SUNPRO_C=yes 4317else 4318 $as_echo "$as_me: failed program was:" >&5 4319sed 's/^/| /' conftest.$ac_ext >&5 4320 4321 ac_cv_have_decl___SUNPRO_C=no 4322fi 4323 4324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4325fi 4326{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 4327$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 4328if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 4329 SUNCC="yes" 4330else 4331 SUNCC="no" 4332fi 4333 4334 if test "x$SUNCC" = "xyes"; then 4335 CWARNFLAGS="-v" 4336 fi 4337fi 4338 4339 4340 4341# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 4342 4343 4344 4345# Check whether --enable-strict-compilation was given. 4346if test "${enable_strict_compilation+set}" = set; then 4347 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4348else 4349 STRICT_COMPILE=no 4350fi 4351 4352if test "x$STRICT_COMPILE" = "xyes"; then 4353 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 4354$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 4355if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 4356 $as_echo_n "(cached) " >&6 4357else 4358 cat >conftest.$ac_ext <<_ACEOF 4359/* confdefs.h. */ 4360_ACEOF 4361cat confdefs.h >>conftest.$ac_ext 4362cat >>conftest.$ac_ext <<_ACEOF 4363/* end confdefs.h. */ 4364$ac_includes_default 4365int 4366main () 4367{ 4368#ifndef __SUNPRO_C 4369 (void) __SUNPRO_C; 4370#endif 4371 4372 ; 4373 return 0; 4374} 4375_ACEOF 4376rm -f conftest.$ac_objext 4377if { (ac_try="$ac_compile" 4378case "(($ac_try" in 4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4380 *) ac_try_echo=$ac_try;; 4381esac 4382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4383$as_echo "$ac_try_echo") >&5 4384 (eval "$ac_compile") 2>conftest.er1 4385 ac_status=$? 4386 grep -v '^ *+' conftest.er1 >conftest.err 4387 rm -f conftest.er1 4388 cat conftest.err >&5 4389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4390 (exit $ac_status); } && { 4391 test -z "$ac_c_werror_flag" || 4392 test ! -s conftest.err 4393 } && test -s conftest.$ac_objext; then 4394 ac_cv_have_decl___SUNPRO_C=yes 4395else 4396 $as_echo "$as_me: failed program was:" >&5 4397sed 's/^/| /' conftest.$ac_ext >&5 4398 4399 ac_cv_have_decl___SUNPRO_C=no 4400fi 4401 4402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4403fi 4404{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 4405$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 4406if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 4407 SUNCC="yes" 4408else 4409 SUNCC="no" 4410fi 4411 4412 { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5 4413$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; } 4414if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then 4415 $as_echo_n "(cached) " >&6 4416else 4417 cat >conftest.$ac_ext <<_ACEOF 4418/* confdefs.h. */ 4419_ACEOF 4420cat confdefs.h >>conftest.$ac_ext 4421cat >>conftest.$ac_ext <<_ACEOF 4422/* end confdefs.h. */ 4423$ac_includes_default 4424int 4425main () 4426{ 4427#ifndef __INTEL_COMPILER 4428 (void) __INTEL_COMPILER; 4429#endif 4430 4431 ; 4432 return 0; 4433} 4434_ACEOF 4435rm -f conftest.$ac_objext 4436if { (ac_try="$ac_compile" 4437case "(($ac_try" in 4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4439 *) ac_try_echo=$ac_try;; 4440esac 4441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4442$as_echo "$ac_try_echo") >&5 4443 (eval "$ac_compile") 2>conftest.er1 4444 ac_status=$? 4445 grep -v '^ *+' conftest.er1 >conftest.err 4446 rm -f conftest.er1 4447 cat conftest.err >&5 4448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4449 (exit $ac_status); } && { 4450 test -z "$ac_c_werror_flag" || 4451 test ! -s conftest.err 4452 } && test -s conftest.$ac_objext; then 4453 ac_cv_have_decl___INTEL_COMPILER=yes 4454else 4455 $as_echo "$as_me: failed program was:" >&5 4456sed 's/^/| /' conftest.$ac_ext >&5 4457 4458 ac_cv_have_decl___INTEL_COMPILER=no 4459fi 4460 4461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4462fi 4463{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5 4464$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; } 4465if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then 4466 INTELCC="yes" 4467else 4468 INTELCC="no" 4469fi 4470 4471 if test "x$GCC" = xyes ; then 4472 STRICT_CFLAGS="-pedantic -Werror" 4473 elif test "x$SUNCC" = "xyes"; then 4474 STRICT_CFLAGS="-errwarn" 4475 elif test "x$INTELCC" = "xyes"; then 4476 STRICT_CFLAGS="-Werror" 4477 fi 4478fi 4479CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4480 4481 4482 4483 4484cat >>confdefs.h <<_ACEOF 4485#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4486_ACEOF 4487 4488 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4489 if test "x$PVM" = "x"; then 4490 PVM="0" 4491 fi 4492 4493cat >>confdefs.h <<_ACEOF 4494#define PACKAGE_VERSION_MINOR $PVM 4495_ACEOF 4496 4497 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4498 if test "x$PVP" = "x"; then 4499 PVP="0" 4500 fi 4501 4502cat >>confdefs.h <<_ACEOF 4503#define PACKAGE_VERSION_PATCHLEVEL $PVP 4504_ACEOF 4505 4506 4507 4508CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 4509mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 4510|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 4511echo 'git directory not found: installing possibly empty changelog.' >&2)" 4512 4513 4514 4515 4516macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 4517INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 4518mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 4519|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 4520echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 4521 4522 4523 4524 4525 4526 4527if test x$APP_MAN_SUFFIX = x ; then 4528 APP_MAN_SUFFIX=1 4529fi 4530if test x$APP_MAN_DIR = x ; then 4531 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4532fi 4533 4534if test x$LIB_MAN_SUFFIX = x ; then 4535 LIB_MAN_SUFFIX=3 4536fi 4537if test x$LIB_MAN_DIR = x ; then 4538 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4539fi 4540 4541if test x$FILE_MAN_SUFFIX = x ; then 4542 case $host_os in 4543 solaris*) FILE_MAN_SUFFIX=4 ;; 4544 *) FILE_MAN_SUFFIX=5 ;; 4545 esac 4546fi 4547if test x$FILE_MAN_DIR = x ; then 4548 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4549fi 4550 4551if test x$MISC_MAN_SUFFIX = x ; then 4552 case $host_os in 4553 solaris*) MISC_MAN_SUFFIX=5 ;; 4554 *) MISC_MAN_SUFFIX=7 ;; 4555 esac 4556fi 4557if test x$MISC_MAN_DIR = x ; then 4558 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4559fi 4560 4561if test x$DRIVER_MAN_SUFFIX = x ; then 4562 case $host_os in 4563 solaris*) DRIVER_MAN_SUFFIX=7 ;; 4564 *) DRIVER_MAN_SUFFIX=4 ;; 4565 esac 4566fi 4567if test x$DRIVER_MAN_DIR = x ; then 4568 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4569fi 4570 4571if test x$ADMIN_MAN_SUFFIX = x ; then 4572 case $host_os in 4573 solaris*) ADMIN_MAN_SUFFIX=1m ;; 4574 *) ADMIN_MAN_SUFFIX=8 ;; 4575 esac 4576fi 4577if test x$ADMIN_MAN_DIR = x ; then 4578 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4579fi 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595XORG_MAN_PAGE="X Version 11" 4596 4597MAN_SUBSTS="\ 4598 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4599 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4600 -e 's|__xservername__|Xorg|g' \ 4601 -e 's|__xconfigfile__|xorg.conf|g' \ 4602 -e 's|__projectroot__|\$(prefix)|g' \ 4603 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 4604 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 4605 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 4606 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 4607 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 4608 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 4609 4610 4611 4612# Check whether --enable-silent-rules was given. 4613if test "${enable_silent_rules+set}" = set; then 4614 enableval=$enable_silent_rules; 4615fi 4616 4617case $enable_silent_rules in 4618yes) AM_DEFAULT_VERBOSITY=0;; 4619no) AM_DEFAULT_VERBOSITY=1;; 4620*) AM_DEFAULT_VERBOSITY=0;; 4621esac 4622AM_BACKSLASH='\' 4623 4624 4625 4626ac_aux_dir= 4627for ac_dir in . "$srcdir"/.; do 4628 if test -f "$ac_dir/install-sh"; then 4629 ac_aux_dir=$ac_dir 4630 ac_install_sh="$ac_aux_dir/install-sh -c" 4631 break 4632 elif test -f "$ac_dir/install.sh"; then 4633 ac_aux_dir=$ac_dir 4634 ac_install_sh="$ac_aux_dir/install.sh -c" 4635 break 4636 elif test -f "$ac_dir/shtool"; then 4637 ac_aux_dir=$ac_dir 4638 ac_install_sh="$ac_aux_dir/shtool install -c" 4639 break 4640 fi 4641done 4642if test -z "$ac_aux_dir"; then 4643 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 4644$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 4645 { (exit 1); exit 1; }; } 4646fi 4647 4648# These three variables are undocumented and unsupported, 4649# and are intended to be withdrawn in a future Autoconf release. 4650# They can cause serious problems if a builder's source tree is in a directory 4651# whose full name contains unusual characters. 4652ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 4653ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 4654ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 4655 4656 4657 4658# Initialize Automake 4659am__api_version='1.11' 4660 4661{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 4662$as_echo_n "checking whether build environment is sane... " >&6; } 4663# Just in case 4664sleep 1 4665echo timestamp > conftest.file 4666# Reject unsafe characters in $srcdir or the absolute working directory 4667# name. Accept space and tab only in the latter. 4668am_lf=' 4669' 4670case `pwd` in 4671 *[\\\"\#\$\&\'\`$am_lf]*) 4672 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 4673$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 4674 { (exit 1); exit 1; }; };; 4675esac 4676case $srcdir in 4677 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4678 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 4679$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 4680 { (exit 1); exit 1; }; };; 4681esac 4682 4683# Do `set' in a subshell so we don't clobber the current shell's 4684# arguments. Must try -L first in case configure is actually a 4685# symlink; some systems play weird games with the mod time of symlinks 4686# (eg FreeBSD returns the mod time of the symlink's containing 4687# directory). 4688if ( 4689 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4690 if test "$*" = "X"; then 4691 # -L didn't work. 4692 set X `ls -t "$srcdir/configure" conftest.file` 4693 fi 4694 rm -f conftest.file 4695 if test "$*" != "X $srcdir/configure conftest.file" \ 4696 && test "$*" != "X conftest.file $srcdir/configure"; then 4697 4698 # If neither matched, then we have a broken ls. This can happen 4699 # if, for instance, CONFIG_SHELL is bash and it inherits a 4700 # broken ls alias from the environment. This has actually 4701 # happened. Such a system could not be considered "sane". 4702 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 4703alias in your environment" >&5 4704$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 4705alias in your environment" >&2;} 4706 { (exit 1); exit 1; }; } 4707 fi 4708 4709 test "$2" = conftest.file 4710 ) 4711then 4712 # Ok. 4713 : 4714else 4715 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 4716Check your system clock" >&5 4717$as_echo "$as_me: error: newly created file is older than distributed files! 4718Check your system clock" >&2;} 4719 { (exit 1); exit 1; }; } 4720fi 4721{ $as_echo "$as_me:$LINENO: result: yes" >&5 4722$as_echo "yes" >&6; } 4723test "$program_prefix" != NONE && 4724 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4725# Use a double $ so make ignores it. 4726test "$program_suffix" != NONE && 4727 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4728# Double any \ or $. 4729# By default was `s,x,x', remove it if useless. 4730ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4731program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 4732 4733# expand $ac_aux_dir to an absolute path 4734am_aux_dir=`cd $ac_aux_dir && pwd` 4735 4736if test x"${MISSING+set}" != xset; then 4737 case $am_aux_dir in 4738 *\ * | *\ *) 4739 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 4740 *) 4741 MISSING="\${SHELL} $am_aux_dir/missing" ;; 4742 esac 4743fi 4744# Use eval to expand $SHELL 4745if eval "$MISSING --run true"; then 4746 am_missing_run="$MISSING --run " 4747else 4748 am_missing_run= 4749 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 4750$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 4751fi 4752 4753if test x"${install_sh}" != xset; then 4754 case $am_aux_dir in 4755 *\ * | *\ *) 4756 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4757 *) 4758 install_sh="\${SHELL} $am_aux_dir/install-sh" 4759 esac 4760fi 4761 4762# Installed binaries are usually stripped using `strip' when the user 4763# run `make install-strip'. However `strip' might not be the right 4764# tool to use in cross-compilation environments, therefore Automake 4765# will honor the `STRIP' environment variable to overrule this program. 4766if test "$cross_compiling" != no; then 4767 if test -n "$ac_tool_prefix"; then 4768 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4769set dummy ${ac_tool_prefix}strip; ac_word=$2 4770{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4771$as_echo_n "checking for $ac_word... " >&6; } 4772if test "${ac_cv_prog_STRIP+set}" = set; then 4773 $as_echo_n "(cached) " >&6 4774else 4775 if test -n "$STRIP"; then 4776 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4777else 4778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4779for as_dir in $PATH 4780do 4781 IFS=$as_save_IFS 4782 test -z "$as_dir" && as_dir=. 4783 for ac_exec_ext in '' $ac_executable_extensions; do 4784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4785 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4786 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4787 break 2 4788 fi 4789done 4790done 4791IFS=$as_save_IFS 4792 4793fi 4794fi 4795STRIP=$ac_cv_prog_STRIP 4796if test -n "$STRIP"; then 4797 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 4798$as_echo "$STRIP" >&6; } 4799else 4800 { $as_echo "$as_me:$LINENO: result: no" >&5 4801$as_echo "no" >&6; } 4802fi 4803 4804 4805fi 4806if test -z "$ac_cv_prog_STRIP"; then 4807 ac_ct_STRIP=$STRIP 4808 # Extract the first word of "strip", so it can be a program name with args. 4809set dummy strip; ac_word=$2 4810{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4811$as_echo_n "checking for $ac_word... " >&6; } 4812if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 4813 $as_echo_n "(cached) " >&6 4814else 4815 if test -n "$ac_ct_STRIP"; then 4816 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4817else 4818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4819for as_dir in $PATH 4820do 4821 IFS=$as_save_IFS 4822 test -z "$as_dir" && as_dir=. 4823 for ac_exec_ext in '' $ac_executable_extensions; do 4824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4825 ac_cv_prog_ac_ct_STRIP="strip" 4826 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4827 break 2 4828 fi 4829done 4830done 4831IFS=$as_save_IFS 4832 4833fi 4834fi 4835ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4836if test -n "$ac_ct_STRIP"; then 4837 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 4838$as_echo "$ac_ct_STRIP" >&6; } 4839else 4840 { $as_echo "$as_me:$LINENO: result: no" >&5 4841$as_echo "no" >&6; } 4842fi 4843 4844 if test "x$ac_ct_STRIP" = x; then 4845 STRIP=":" 4846 else 4847 case $cross_compiling:$ac_tool_warned in 4848yes:) 4849{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4851ac_tool_warned=yes ;; 4852esac 4853 STRIP=$ac_ct_STRIP 4854 fi 4855else 4856 STRIP="$ac_cv_prog_STRIP" 4857fi 4858 4859fi 4860INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4861 4862{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 4863$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4864if test -z "$MKDIR_P"; then 4865 if test "${ac_cv_path_mkdir+set}" = set; then 4866 $as_echo_n "(cached) " >&6 4867else 4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4869for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4870do 4871 IFS=$as_save_IFS 4872 test -z "$as_dir" && as_dir=. 4873 for ac_prog in mkdir gmkdir; do 4874 for ac_exec_ext in '' $ac_executable_extensions; do 4875 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 4876 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4877 'mkdir (GNU coreutils) '* | \ 4878 'mkdir (coreutils) '* | \ 4879 'mkdir (fileutils) '4.1*) 4880 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4881 break 3;; 4882 esac 4883 done 4884 done 4885done 4886IFS=$as_save_IFS 4887 4888fi 4889 4890 if test "${ac_cv_path_mkdir+set}" = set; then 4891 MKDIR_P="$ac_cv_path_mkdir -p" 4892 else 4893 # As a last resort, use the slow shell script. Don't cache a 4894 # value for MKDIR_P within a source directory, because that will 4895 # break other packages using the cache if that directory is 4896 # removed, or if the value is a relative name. 4897 test -d ./--version && rmdir ./--version 4898 MKDIR_P="$ac_install_sh -d" 4899 fi 4900fi 4901{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 4902$as_echo "$MKDIR_P" >&6; } 4903 4904mkdir_p="$MKDIR_P" 4905case $mkdir_p in 4906 [\\/$]* | ?:[\\/]*) ;; 4907 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 4908esac 4909 4910for ac_prog in gawk mawk nawk awk 4911do 4912 # Extract the first word of "$ac_prog", so it can be a program name with args. 4913set dummy $ac_prog; ac_word=$2 4914{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4915$as_echo_n "checking for $ac_word... " >&6; } 4916if test "${ac_cv_prog_AWK+set}" = set; then 4917 $as_echo_n "(cached) " >&6 4918else 4919 if test -n "$AWK"; then 4920 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4921else 4922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4923for as_dir in $PATH 4924do 4925 IFS=$as_save_IFS 4926 test -z "$as_dir" && as_dir=. 4927 for ac_exec_ext in '' $ac_executable_extensions; do 4928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4929 ac_cv_prog_AWK="$ac_prog" 4930 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4931 break 2 4932 fi 4933done 4934done 4935IFS=$as_save_IFS 4936 4937fi 4938fi 4939AWK=$ac_cv_prog_AWK 4940if test -n "$AWK"; then 4941 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 4942$as_echo "$AWK" >&6; } 4943else 4944 { $as_echo "$as_me:$LINENO: result: no" >&5 4945$as_echo "no" >&6; } 4946fi 4947 4948 4949 test -n "$AWK" && break 4950done 4951 4952{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4953$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4954set x ${MAKE-make} 4955ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4956if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 4957 $as_echo_n "(cached) " >&6 4958else 4959 cat >conftest.make <<\_ACEOF 4960SHELL = /bin/sh 4961all: 4962 @echo '@@@%%%=$(MAKE)=@@@%%%' 4963_ACEOF 4964# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4965case `${MAKE-make} -f conftest.make 2>/dev/null` in 4966 *@@@%%%=?*=@@@%%%*) 4967 eval ac_cv_prog_make_${ac_make}_set=yes;; 4968 *) 4969 eval ac_cv_prog_make_${ac_make}_set=no;; 4970esac 4971rm -f conftest.make 4972fi 4973if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4974 { $as_echo "$as_me:$LINENO: result: yes" >&5 4975$as_echo "yes" >&6; } 4976 SET_MAKE= 4977else 4978 { $as_echo "$as_me:$LINENO: result: no" >&5 4979$as_echo "no" >&6; } 4980 SET_MAKE="MAKE=${MAKE-make}" 4981fi 4982 4983rm -rf .tst 2>/dev/null 4984mkdir .tst 2>/dev/null 4985if test -d .tst; then 4986 am__leading_dot=. 4987else 4988 am__leading_dot=_ 4989fi 4990rmdir .tst 2>/dev/null 4991 4992DEPDIR="${am__leading_dot}deps" 4993 4994ac_config_commands="$ac_config_commands depfiles" 4995 4996 4997am_make=${MAKE-make} 4998cat > confinc << 'END' 4999am__doit: 5000 @echo this is the am__doit target 5001.PHONY: am__doit 5002END 5003# If we don't find an include directive, just comment out the code. 5004{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 5005$as_echo_n "checking for style of include used by $am_make... " >&6; } 5006am__include="#" 5007am__quote= 5008_am_result=none 5009# First try GNU make style include. 5010echo "include confinc" > confmf 5011# Ignore all kinds of additional output from `make'. 5012case `$am_make -s -f confmf 2> /dev/null` in #( 5013*the\ am__doit\ target*) 5014 am__include=include 5015 am__quote= 5016 _am_result=GNU 5017 ;; 5018esac 5019# Now try BSD make style include. 5020if test "$am__include" = "#"; then 5021 echo '.include "confinc"' > confmf 5022 case `$am_make -s -f confmf 2> /dev/null` in #( 5023 *the\ am__doit\ target*) 5024 am__include=.include 5025 am__quote="\"" 5026 _am_result=BSD 5027 ;; 5028 esac 5029fi 5030 5031 5032{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 5033$as_echo "$_am_result" >&6; } 5034rm -f confinc confmf 5035 5036# Check whether --enable-dependency-tracking was given. 5037if test "${enable_dependency_tracking+set}" = set; then 5038 enableval=$enable_dependency_tracking; 5039fi 5040 5041if test "x$enable_dependency_tracking" != xno; then 5042 am_depcomp="$ac_aux_dir/depcomp" 5043 AMDEPBACKSLASH='\' 5044fi 5045 if test "x$enable_dependency_tracking" != xno; then 5046 AMDEP_TRUE= 5047 AMDEP_FALSE='#' 5048else 5049 AMDEP_TRUE='#' 5050 AMDEP_FALSE= 5051fi 5052 5053 5054if test "`cd $srcdir && pwd`" != "`pwd`"; then 5055 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 5056 # is not polluted with repeated "-I." 5057 am__isrc=' -I$(srcdir)' 5058 # test to see if srcdir already configured 5059 if test -f $srcdir/config.status; then 5060 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 5061$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 5062 { (exit 1); exit 1; }; } 5063 fi 5064fi 5065 5066# test whether we have cygpath 5067if test -z "$CYGPATH_W"; then 5068 if (cygpath --version) >/dev/null 2>/dev/null; then 5069 CYGPATH_W='cygpath -w' 5070 else 5071 CYGPATH_W=echo 5072 fi 5073fi 5074 5075 5076# Define the identity of the package. 5077 PACKAGE='xf86-video-mga' 5078 VERSION='1.4.13' 5079 5080 5081cat >>confdefs.h <<_ACEOF 5082#define PACKAGE "$PACKAGE" 5083_ACEOF 5084 5085 5086cat >>confdefs.h <<_ACEOF 5087#define VERSION "$VERSION" 5088_ACEOF 5089 5090# Some tools Automake needs. 5091 5092ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 5093 5094 5095AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 5096 5097 5098AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 5099 5100 5101AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 5102 5103 5104MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 5105 5106# We need awk for the "check" target. The system "awk" is bad on 5107# some platforms. 5108# Always define AMTAR for backward compatibility. 5109 5110AMTAR=${AMTAR-"${am_missing_run}tar"} 5111 5112am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 5113 5114 5115 5116 5117depcc="$CC" am_compiler_list= 5118 5119{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5120$as_echo_n "checking dependency style of $depcc... " >&6; } 5121if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 5122 $as_echo_n "(cached) " >&6 5123else 5124 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5125 # We make a subdir and do the tests there. Otherwise we can end up 5126 # making bogus files that we don't know about and never remove. For 5127 # instance it was reported that on HP-UX the gcc test will end up 5128 # making a dummy file named `D' -- because `-MD' means `put the output 5129 # in D'. 5130 mkdir conftest.dir 5131 # Copy depcomp to subdir because otherwise we won't find it if we're 5132 # using a relative directory. 5133 cp "$am_depcomp" conftest.dir 5134 cd conftest.dir 5135 # We will build objects and dependencies in a subdirectory because 5136 # it helps to detect inapplicable dependency modes. For instance 5137 # both Tru64's cc and ICC support -MD to output dependencies as a 5138 # side effect of compilation, but ICC will put the dependencies in 5139 # the current directory while Tru64 will put them in the object 5140 # directory. 5141 mkdir sub 5142 5143 am_cv_CC_dependencies_compiler_type=none 5144 if test "$am_compiler_list" = ""; then 5145 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5146 fi 5147 am__universal=false 5148 case " $depcc " in #( 5149 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5150 esac 5151 5152 for depmode in $am_compiler_list; do 5153 # Setup a source with many dependencies, because some compilers 5154 # like to wrap large dependency lists on column 80 (with \), and 5155 # we should not choose a depcomp mode which is confused by this. 5156 # 5157 # We need to recreate these files for each test, as the compiler may 5158 # overwrite some of them when testing with obscure command lines. 5159 # This happens at least with the AIX C compiler. 5160 : > sub/conftest.c 5161 for i in 1 2 3 4 5 6; do 5162 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5163 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5164 # Solaris 8's {/usr,}/bin/sh. 5165 touch sub/conftst$i.h 5166 done 5167 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5168 5169 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5170 # mode. It turns out that the SunPro C++ compiler does not properly 5171 # handle `-M -o', and we need to detect this. Also, some Intel 5172 # versions had trouble with output in subdirs 5173 am__obj=sub/conftest.${OBJEXT-o} 5174 am__minus_obj="-o $am__obj" 5175 case $depmode in 5176 gcc) 5177 # This depmode causes a compiler race in universal mode. 5178 test "$am__universal" = false || continue 5179 ;; 5180 nosideeffect) 5181 # after this tag, mechanisms are not by side-effect, so they'll 5182 # only be used when explicitly requested 5183 if test "x$enable_dependency_tracking" = xyes; then 5184 continue 5185 else 5186 break 5187 fi 5188 ;; 5189 msvisualcpp | msvcmsys) 5190 # This compiler won't grok `-c -o', but also, the minuso test has 5191 # not run yet. These depmodes are late enough in the game, and 5192 # so weak that their functioning should not be impacted. 5193 am__obj=conftest.${OBJEXT-o} 5194 am__minus_obj= 5195 ;; 5196 none) break ;; 5197 esac 5198 if depmode=$depmode \ 5199 source=sub/conftest.c object=$am__obj \ 5200 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5201 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5202 >/dev/null 2>conftest.err && 5203 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5204 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5205 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5206 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5207 # icc doesn't choke on unknown options, it will just issue warnings 5208 # or remarks (even with -Werror). So we grep stderr for any message 5209 # that says an option was ignored or not supported. 5210 # When given -MP, icc 7.0 and 7.1 complain thusly: 5211 # icc: Command line warning: ignoring option '-M'; no argument required 5212 # The diagnosis changed in icc 8.0: 5213 # icc: Command line remark: option '-MP' not supported 5214 if (grep 'ignoring option' conftest.err || 5215 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5216 am_cv_CC_dependencies_compiler_type=$depmode 5217 break 5218 fi 5219 fi 5220 done 5221 5222 cd .. 5223 rm -rf conftest.dir 5224else 5225 am_cv_CC_dependencies_compiler_type=none 5226fi 5227 5228fi 5229{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 5230$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5231CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5232 5233 if 5234 test "x$enable_dependency_tracking" != xno \ 5235 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5236 am__fastdepCC_TRUE= 5237 am__fastdepCC_FALSE='#' 5238else 5239 am__fastdepCC_TRUE='#' 5240 am__fastdepCC_FALSE= 5241fi 5242 5243 5244 5245 5246{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 5247$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 5248 # Check whether --enable-maintainer-mode was given. 5249if test "${enable_maintainer_mode+set}" = set; then 5250 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 5251else 5252 USE_MAINTAINER_MODE=no 5253fi 5254 5255 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 5256$as_echo "$USE_MAINTAINER_MODE" >&6; } 5257 if test $USE_MAINTAINER_MODE = yes; then 5258 MAINTAINER_MODE_TRUE= 5259 MAINTAINER_MODE_FALSE='#' 5260else 5261 MAINTAINER_MODE_TRUE='#' 5262 MAINTAINER_MODE_FALSE= 5263fi 5264 5265 MAINT=$MAINTAINER_MODE_TRUE 5266 5267 5268 5269# Initialize libtool 5270# Check whether --enable-static was given. 5271if test "${enable_static+set}" = set; then 5272 enableval=$enable_static; p=${PACKAGE-default} 5273 case $enableval in 5274 yes) enable_static=yes ;; 5275 no) enable_static=no ;; 5276 *) 5277 enable_static=no 5278 # Look at the argument we got. We use all the common list separators. 5279 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5280 for pkg in $enableval; do 5281 IFS="$lt_save_ifs" 5282 if test "X$pkg" = "X$p"; then 5283 enable_static=yes 5284 fi 5285 done 5286 IFS="$lt_save_ifs" 5287 ;; 5288 esac 5289else 5290 enable_static=no 5291fi 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301case `pwd` in 5302 *\ * | *\ *) 5303 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5304$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5305esac 5306 5307 5308 5309macro_version='2.2.6b' 5310macro_revision='1.3017' 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324ltmain="$ac_aux_dir/ltmain.sh" 5325 5326{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 5327$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5328if test "${ac_cv_path_SED+set}" = set; then 5329 $as_echo_n "(cached) " >&6 5330else 5331 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5332 for ac_i in 1 2 3 4 5 6 7; do 5333 ac_script="$ac_script$as_nl$ac_script" 5334 done 5335 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5336 $as_unset ac_script || ac_script= 5337 if test -z "$SED"; then 5338 ac_path_SED_found=false 5339 # Loop through the user's path and test for each of PROGNAME-LIST 5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5341for as_dir in $PATH 5342do 5343 IFS=$as_save_IFS 5344 test -z "$as_dir" && as_dir=. 5345 for ac_prog in sed gsed; do 5346 for ac_exec_ext in '' $ac_executable_extensions; do 5347 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5348 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5349# Check for GNU ac_path_SED and select it if it is found. 5350 # Check for GNU $ac_path_SED 5351case `"$ac_path_SED" --version 2>&1` in 5352*GNU*) 5353 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5354*) 5355 ac_count=0 5356 $as_echo_n 0123456789 >"conftest.in" 5357 while : 5358 do 5359 cat "conftest.in" "conftest.in" >"conftest.tmp" 5360 mv "conftest.tmp" "conftest.in" 5361 cp "conftest.in" "conftest.nl" 5362 $as_echo '' >> "conftest.nl" 5363 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5364 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5365 ac_count=`expr $ac_count + 1` 5366 if test $ac_count -gt ${ac_path_SED_max-0}; then 5367 # Best one so far, save it but keep looking for a better one 5368 ac_cv_path_SED="$ac_path_SED" 5369 ac_path_SED_max=$ac_count 5370 fi 5371 # 10*(2^10) chars as input seems more than enough 5372 test $ac_count -gt 10 && break 5373 done 5374 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5375esac 5376 5377 $ac_path_SED_found && break 3 5378 done 5379 done 5380done 5381IFS=$as_save_IFS 5382 if test -z "$ac_cv_path_SED"; then 5383 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 5384$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 5385 { (exit 1); exit 1; }; } 5386 fi 5387else 5388 ac_cv_path_SED=$SED 5389fi 5390 5391fi 5392{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 5393$as_echo "$ac_cv_path_SED" >&6; } 5394 SED="$ac_cv_path_SED" 5395 rm -f conftest.sed 5396 5397test -z "$SED" && SED=sed 5398Xsed="$SED -e 1s/^X//" 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 5411$as_echo_n "checking for fgrep... " >&6; } 5412if test "${ac_cv_path_FGREP+set}" = set; then 5413 $as_echo_n "(cached) " >&6 5414else 5415 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5416 then ac_cv_path_FGREP="$GREP -F" 5417 else 5418 if test -z "$FGREP"; then 5419 ac_path_FGREP_found=false 5420 # Loop through the user's path and test for each of PROGNAME-LIST 5421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5422for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5423do 5424 IFS=$as_save_IFS 5425 test -z "$as_dir" && as_dir=. 5426 for ac_prog in fgrep; do 5427 for ac_exec_ext in '' $ac_executable_extensions; do 5428 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5429 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5430# Check for GNU ac_path_FGREP and select it if it is found. 5431 # Check for GNU $ac_path_FGREP 5432case `"$ac_path_FGREP" --version 2>&1` in 5433*GNU*) 5434 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5435*) 5436 ac_count=0 5437 $as_echo_n 0123456789 >"conftest.in" 5438 while : 5439 do 5440 cat "conftest.in" "conftest.in" >"conftest.tmp" 5441 mv "conftest.tmp" "conftest.in" 5442 cp "conftest.in" "conftest.nl" 5443 $as_echo 'FGREP' >> "conftest.nl" 5444 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5445 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5446 ac_count=`expr $ac_count + 1` 5447 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5448 # Best one so far, save it but keep looking for a better one 5449 ac_cv_path_FGREP="$ac_path_FGREP" 5450 ac_path_FGREP_max=$ac_count 5451 fi 5452 # 10*(2^10) chars as input seems more than enough 5453 test $ac_count -gt 10 && break 5454 done 5455 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5456esac 5457 5458 $ac_path_FGREP_found && break 3 5459 done 5460 done 5461done 5462IFS=$as_save_IFS 5463 if test -z "$ac_cv_path_FGREP"; then 5464 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5465$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5466 { (exit 1); exit 1; }; } 5467 fi 5468else 5469 ac_cv_path_FGREP=$FGREP 5470fi 5471 5472 fi 5473fi 5474{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 5475$as_echo "$ac_cv_path_FGREP" >&6; } 5476 FGREP="$ac_cv_path_FGREP" 5477 5478 5479test -z "$GREP" && GREP=grep 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499# Check whether --with-gnu-ld was given. 5500if test "${with_gnu_ld+set}" = set; then 5501 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5502else 5503 with_gnu_ld=no 5504fi 5505 5506ac_prog=ld 5507if test "$GCC" = yes; then 5508 # Check if gcc -print-prog-name=ld gives a path. 5509 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 5510$as_echo_n "checking for ld used by $CC... " >&6; } 5511 case $host in 5512 *-*-mingw*) 5513 # gcc leaves a trailing carriage return which upsets mingw 5514 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5515 *) 5516 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5517 esac 5518 case $ac_prog in 5519 # Accept absolute paths. 5520 [\\/]* | ?:[\\/]*) 5521 re_direlt='/[^/][^/]*/\.\./' 5522 # Canonicalize the pathname of ld 5523 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5524 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5525 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5526 done 5527 test -z "$LD" && LD="$ac_prog" 5528 ;; 5529 "") 5530 # If it fails, then pretend we aren't using GCC. 5531 ac_prog=ld 5532 ;; 5533 *) 5534 # If it is relative, then search for the first ld in PATH. 5535 with_gnu_ld=unknown 5536 ;; 5537 esac 5538elif test "$with_gnu_ld" = yes; then 5539 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 5540$as_echo_n "checking for GNU ld... " >&6; } 5541else 5542 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 5543$as_echo_n "checking for non-GNU ld... " >&6; } 5544fi 5545if test "${lt_cv_path_LD+set}" = set; then 5546 $as_echo_n "(cached) " >&6 5547else 5548 if test -z "$LD"; then 5549 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5550 for ac_dir in $PATH; do 5551 IFS="$lt_save_ifs" 5552 test -z "$ac_dir" && ac_dir=. 5553 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5554 lt_cv_path_LD="$ac_dir/$ac_prog" 5555 # Check to see if the program is GNU ld. I'd rather use --version, 5556 # but apparently some variants of GNU ld only accept -v. 5557 # Break only if it was the GNU/non-GNU ld that we prefer. 5558 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5559 *GNU* | *'with BFD'*) 5560 test "$with_gnu_ld" != no && break 5561 ;; 5562 *) 5563 test "$with_gnu_ld" != yes && break 5564 ;; 5565 esac 5566 fi 5567 done 5568 IFS="$lt_save_ifs" 5569else 5570 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5571fi 5572fi 5573 5574LD="$lt_cv_path_LD" 5575if test -n "$LD"; then 5576 { $as_echo "$as_me:$LINENO: result: $LD" >&5 5577$as_echo "$LD" >&6; } 5578else 5579 { $as_echo "$as_me:$LINENO: result: no" >&5 5580$as_echo "no" >&6; } 5581fi 5582test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 5583$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 5584 { (exit 1); exit 1; }; } 5585{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 5586$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5587if test "${lt_cv_prog_gnu_ld+set}" = set; then 5588 $as_echo_n "(cached) " >&6 5589else 5590 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5591case `$LD -v 2>&1 </dev/null` in 5592*GNU* | *'with BFD'*) 5593 lt_cv_prog_gnu_ld=yes 5594 ;; 5595*) 5596 lt_cv_prog_gnu_ld=no 5597 ;; 5598esac 5599fi 5600{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 5601$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5602with_gnu_ld=$lt_cv_prog_gnu_ld 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 5613$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5614if test "${lt_cv_path_NM+set}" = set; then 5615 $as_echo_n "(cached) " >&6 5616else 5617 if test -n "$NM"; then 5618 # Let the user override the test. 5619 lt_cv_path_NM="$NM" 5620else 5621 lt_nm_to_check="${ac_tool_prefix}nm" 5622 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5623 lt_nm_to_check="$lt_nm_to_check nm" 5624 fi 5625 for lt_tmp_nm in $lt_nm_to_check; do 5626 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5627 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5628 IFS="$lt_save_ifs" 5629 test -z "$ac_dir" && ac_dir=. 5630 tmp_nm="$ac_dir/$lt_tmp_nm" 5631 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5632 # Check to see if the nm accepts a BSD-compat flag. 5633 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5634 # nm: unknown option "B" ignored 5635 # Tru64's nm complains that /dev/null is an invalid object file 5636 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5637 */dev/null* | *'Invalid file or object type'*) 5638 lt_cv_path_NM="$tmp_nm -B" 5639 break 5640 ;; 5641 *) 5642 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5643 */dev/null*) 5644 lt_cv_path_NM="$tmp_nm -p" 5645 break 5646 ;; 5647 *) 5648 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5649 continue # so that we can try to find one that supports BSD flags 5650 ;; 5651 esac 5652 ;; 5653 esac 5654 fi 5655 done 5656 IFS="$lt_save_ifs" 5657 done 5658 : ${lt_cv_path_NM=no} 5659fi 5660fi 5661{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5662$as_echo "$lt_cv_path_NM" >&6; } 5663if test "$lt_cv_path_NM" != "no"; then 5664 NM="$lt_cv_path_NM" 5665else 5666 # Didn't find any BSD compatible name lister, look for dumpbin. 5667 if test -n "$ac_tool_prefix"; then 5668 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5669 do 5670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5671set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5672{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5673$as_echo_n "checking for $ac_word... " >&6; } 5674if test "${ac_cv_prog_DUMPBIN+set}" = set; then 5675 $as_echo_n "(cached) " >&6 5676else 5677 if test -n "$DUMPBIN"; then 5678 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5679else 5680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5681for as_dir in $PATH 5682do 5683 IFS=$as_save_IFS 5684 test -z "$as_dir" && as_dir=. 5685 for ac_exec_ext in '' $ac_executable_extensions; do 5686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5687 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5688 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5689 break 2 5690 fi 5691done 5692done 5693IFS=$as_save_IFS 5694 5695fi 5696fi 5697DUMPBIN=$ac_cv_prog_DUMPBIN 5698if test -n "$DUMPBIN"; then 5699 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 5700$as_echo "$DUMPBIN" >&6; } 5701else 5702 { $as_echo "$as_me:$LINENO: result: no" >&5 5703$as_echo "no" >&6; } 5704fi 5705 5706 5707 test -n "$DUMPBIN" && break 5708 done 5709fi 5710if test -z "$DUMPBIN"; then 5711 ac_ct_DUMPBIN=$DUMPBIN 5712 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5713do 5714 # Extract the first word of "$ac_prog", so it can be a program name with args. 5715set dummy $ac_prog; ac_word=$2 5716{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5717$as_echo_n "checking for $ac_word... " >&6; } 5718if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 5719 $as_echo_n "(cached) " >&6 5720else 5721 if test -n "$ac_ct_DUMPBIN"; then 5722 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5723else 5724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5725for as_dir in $PATH 5726do 5727 IFS=$as_save_IFS 5728 test -z "$as_dir" && as_dir=. 5729 for ac_exec_ext in '' $ac_executable_extensions; do 5730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5731 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5732 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5733 break 2 5734 fi 5735done 5736done 5737IFS=$as_save_IFS 5738 5739fi 5740fi 5741ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5742if test -n "$ac_ct_DUMPBIN"; then 5743 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 5744$as_echo "$ac_ct_DUMPBIN" >&6; } 5745else 5746 { $as_echo "$as_me:$LINENO: result: no" >&5 5747$as_echo "no" >&6; } 5748fi 5749 5750 5751 test -n "$ac_ct_DUMPBIN" && break 5752done 5753 5754 if test "x$ac_ct_DUMPBIN" = x; then 5755 DUMPBIN=":" 5756 else 5757 case $cross_compiling:$ac_tool_warned in 5758yes:) 5759{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5760$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5761ac_tool_warned=yes ;; 5762esac 5763 DUMPBIN=$ac_ct_DUMPBIN 5764 fi 5765fi 5766 5767 5768 if test "$DUMPBIN" != ":"; then 5769 NM="$DUMPBIN" 5770 fi 5771fi 5772test -z "$NM" && NM=nm 5773 5774 5775 5776 5777 5778 5779{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 5780$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5781if test "${lt_cv_nm_interface+set}" = set; then 5782 $as_echo_n "(cached) " >&6 5783else 5784 lt_cv_nm_interface="BSD nm" 5785 echo "int some_variable = 0;" > conftest.$ac_ext 5786 (eval echo "\"\$as_me:5786: $ac_compile\"" >&5) 5787 (eval "$ac_compile" 2>conftest.err) 5788 cat conftest.err >&5 5789 (eval echo "\"\$as_me:5789: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5790 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5791 cat conftest.err >&5 5792 (eval echo "\"\$as_me:5792: output\"" >&5) 5793 cat conftest.out >&5 5794 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5795 lt_cv_nm_interface="MS dumpbin" 5796 fi 5797 rm -f conftest* 5798fi 5799{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 5800$as_echo "$lt_cv_nm_interface" >&6; } 5801 5802{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 5803$as_echo_n "checking whether ln -s works... " >&6; } 5804LN_S=$as_ln_s 5805if test "$LN_S" = "ln -s"; then 5806 { $as_echo "$as_me:$LINENO: result: yes" >&5 5807$as_echo "yes" >&6; } 5808else 5809 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5810$as_echo "no, using $LN_S" >&6; } 5811fi 5812 5813# find the maximum length of command line arguments 5814{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5815$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5816if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5817 $as_echo_n "(cached) " >&6 5818else 5819 i=0 5820 teststring="ABCD" 5821 5822 case $build_os in 5823 msdosdjgpp*) 5824 # On DJGPP, this test can blow up pretty badly due to problems in libc 5825 # (any single argument exceeding 2000 bytes causes a buffer overrun 5826 # during glob expansion). Even if it were fixed, the result of this 5827 # check would be larger than it should be. 5828 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5829 ;; 5830 5831 gnu*) 5832 # Under GNU Hurd, this test is not required because there is 5833 # no limit to the length of command line arguments. 5834 # Libtool will interpret -1 as no limit whatsoever 5835 lt_cv_sys_max_cmd_len=-1; 5836 ;; 5837 5838 cygwin* | mingw* | cegcc*) 5839 # On Win9x/ME, this test blows up -- it succeeds, but takes 5840 # about 5 minutes as the teststring grows exponentially. 5841 # Worse, since 9x/ME are not pre-emptively multitasking, 5842 # you end up with a "frozen" computer, even though with patience 5843 # the test eventually succeeds (with a max line length of 256k). 5844 # Instead, let's just punt: use the minimum linelength reported by 5845 # all of the supported platforms: 8192 (on NT/2K/XP). 5846 lt_cv_sys_max_cmd_len=8192; 5847 ;; 5848 5849 amigaos*) 5850 # On AmigaOS with pdksh, this test takes hours, literally. 5851 # So we just punt and use a minimum line length of 8192. 5852 lt_cv_sys_max_cmd_len=8192; 5853 ;; 5854 5855 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5856 # This has been around since 386BSD, at least. Likely further. 5857 if test -x /sbin/sysctl; then 5858 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5859 elif test -x /usr/sbin/sysctl; then 5860 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5861 else 5862 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5863 fi 5864 # And add a safety zone 5865 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5866 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5867 ;; 5868 5869 interix*) 5870 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5871 lt_cv_sys_max_cmd_len=196608 5872 ;; 5873 5874 osf*) 5875 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5876 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5877 # nice to cause kernel panics so lets avoid the loop below. 5878 # First set a reasonable default. 5879 lt_cv_sys_max_cmd_len=16384 5880 # 5881 if test -x /sbin/sysconfig; then 5882 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5883 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5884 esac 5885 fi 5886 ;; 5887 sco3.2v5*) 5888 lt_cv_sys_max_cmd_len=102400 5889 ;; 5890 sysv5* | sco5v6* | sysv4.2uw2*) 5891 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5892 if test -n "$kargmax"; then 5893 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5894 else 5895 lt_cv_sys_max_cmd_len=32768 5896 fi 5897 ;; 5898 *) 5899 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5900 if test -n "$lt_cv_sys_max_cmd_len"; then 5901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5903 else 5904 # Make teststring a little bigger before we do anything with it. 5905 # a 1K string should be a reasonable start. 5906 for i in 1 2 3 4 5 6 7 8 ; do 5907 teststring=$teststring$teststring 5908 done 5909 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5910 # If test is not a shell built-in, we'll probably end up computing a 5911 # maximum length that is only half of the actual maximum length, but 5912 # we can't tell. 5913 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5914 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5915 test $i != 17 # 1/2 MB should be enough 5916 do 5917 i=`expr $i + 1` 5918 teststring=$teststring$teststring 5919 done 5920 # Only check the string length outside the loop. 5921 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5922 teststring= 5923 # Add a significant safety factor because C++ compilers can tack on 5924 # massive amounts of additional arguments before passing them to the 5925 # linker. It appears as though 1/2 is a usable value. 5926 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5927 fi 5928 ;; 5929 esac 5930 5931fi 5932 5933if test -n $lt_cv_sys_max_cmd_len ; then 5934 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5935$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5936else 5937 { $as_echo "$as_me:$LINENO: result: none" >&5 5938$as_echo "none" >&6; } 5939fi 5940max_cmd_len=$lt_cv_sys_max_cmd_len 5941 5942 5943 5944 5945 5946 5947: ${CP="cp -f"} 5948: ${MV="mv -f"} 5949: ${RM="rm -f"} 5950 5951{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 5952$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5953# Try some XSI features 5954xsi_shell=no 5955( _lt_dummy="a/b/c" 5956 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5957 = c,a/b,, \ 5958 && eval 'test $(( 1 + 1 )) -eq 2 \ 5959 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5960 && xsi_shell=yes 5961{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 5962$as_echo "$xsi_shell" >&6; } 5963 5964 5965{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 5966$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5967lt_shell_append=no 5968( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5969 >/dev/null 2>&1 \ 5970 && lt_shell_append=yes 5971{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 5972$as_echo "$lt_shell_append" >&6; } 5973 5974 5975if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5976 lt_unset=unset 5977else 5978 lt_unset=false 5979fi 5980 5981 5982 5983 5984 5985# test EBCDIC or ASCII 5986case `echo X|tr X '\101'` in 5987 A) # ASCII based system 5988 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5989 lt_SP2NL='tr \040 \012' 5990 lt_NL2SP='tr \015\012 \040\040' 5991 ;; 5992 *) # EBCDIC based system 5993 lt_SP2NL='tr \100 \n' 5994 lt_NL2SP='tr \r\n \100\100' 5995 ;; 5996esac 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 6007$as_echo_n "checking for $LD option to reload object files... " >&6; } 6008if test "${lt_cv_ld_reload_flag+set}" = set; then 6009 $as_echo_n "(cached) " >&6 6010else 6011 lt_cv_ld_reload_flag='-r' 6012fi 6013{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 6014$as_echo "$lt_cv_ld_reload_flag" >&6; } 6015reload_flag=$lt_cv_ld_reload_flag 6016case $reload_flag in 6017"" | " "*) ;; 6018*) reload_flag=" $reload_flag" ;; 6019esac 6020reload_cmds='$LD$reload_flag -o $output$reload_objs' 6021case $host_os in 6022 darwin*) 6023 if test "$GCC" = yes; then 6024 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6025 else 6026 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6027 fi 6028 ;; 6029esac 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039if test -n "$ac_tool_prefix"; then 6040 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6041set dummy ${ac_tool_prefix}objdump; ac_word=$2 6042{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6043$as_echo_n "checking for $ac_word... " >&6; } 6044if test "${ac_cv_prog_OBJDUMP+set}" = set; then 6045 $as_echo_n "(cached) " >&6 6046else 6047 if test -n "$OBJDUMP"; then 6048 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6049else 6050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6051for as_dir in $PATH 6052do 6053 IFS=$as_save_IFS 6054 test -z "$as_dir" && as_dir=. 6055 for ac_exec_ext in '' $ac_executable_extensions; do 6056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6057 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6058 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6059 break 2 6060 fi 6061done 6062done 6063IFS=$as_save_IFS 6064 6065fi 6066fi 6067OBJDUMP=$ac_cv_prog_OBJDUMP 6068if test -n "$OBJDUMP"; then 6069 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 6070$as_echo "$OBJDUMP" >&6; } 6071else 6072 { $as_echo "$as_me:$LINENO: result: no" >&5 6073$as_echo "no" >&6; } 6074fi 6075 6076 6077fi 6078if test -z "$ac_cv_prog_OBJDUMP"; then 6079 ac_ct_OBJDUMP=$OBJDUMP 6080 # Extract the first word of "objdump", so it can be a program name with args. 6081set dummy objdump; ac_word=$2 6082{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6083$as_echo_n "checking for $ac_word... " >&6; } 6084if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 6085 $as_echo_n "(cached) " >&6 6086else 6087 if test -n "$ac_ct_OBJDUMP"; then 6088 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6089else 6090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6091for as_dir in $PATH 6092do 6093 IFS=$as_save_IFS 6094 test -z "$as_dir" && as_dir=. 6095 for ac_exec_ext in '' $ac_executable_extensions; do 6096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6097 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6098 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6099 break 2 6100 fi 6101done 6102done 6103IFS=$as_save_IFS 6104 6105fi 6106fi 6107ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6108if test -n "$ac_ct_OBJDUMP"; then 6109 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 6110$as_echo "$ac_ct_OBJDUMP" >&6; } 6111else 6112 { $as_echo "$as_me:$LINENO: result: no" >&5 6113$as_echo "no" >&6; } 6114fi 6115 6116 if test "x$ac_ct_OBJDUMP" = x; then 6117 OBJDUMP="false" 6118 else 6119 case $cross_compiling:$ac_tool_warned in 6120yes:) 6121{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6123ac_tool_warned=yes ;; 6124esac 6125 OBJDUMP=$ac_ct_OBJDUMP 6126 fi 6127else 6128 OBJDUMP="$ac_cv_prog_OBJDUMP" 6129fi 6130 6131test -z "$OBJDUMP" && OBJDUMP=objdump 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 6142$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6143if test "${lt_cv_deplibs_check_method+set}" = set; then 6144 $as_echo_n "(cached) " >&6 6145else 6146 lt_cv_file_magic_cmd='$MAGIC_CMD' 6147lt_cv_file_magic_test_file= 6148lt_cv_deplibs_check_method='unknown' 6149# Need to set the preceding variable on all platforms that support 6150# interlibrary dependencies. 6151# 'none' -- dependencies not supported. 6152# `unknown' -- same as none, but documents that we really don't know. 6153# 'pass_all' -- all dependencies passed with no checks. 6154# 'test_compile' -- check by making test program. 6155# 'file_magic [[regex]]' -- check by looking for files in library path 6156# which responds to the $file_magic_cmd with a given extended regex. 6157# If you have `file' or equivalent on your system and you're not sure 6158# whether `pass_all' will *always* work, you probably want this one. 6159 6160case $host_os in 6161aix[4-9]*) 6162 lt_cv_deplibs_check_method=pass_all 6163 ;; 6164 6165beos*) 6166 lt_cv_deplibs_check_method=pass_all 6167 ;; 6168 6169bsdi[45]*) 6170 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6171 lt_cv_file_magic_cmd='/usr/bin/file -L' 6172 lt_cv_file_magic_test_file=/shlib/libc.so 6173 ;; 6174 6175cygwin*) 6176 # func_win32_libid is a shell function defined in ltmain.sh 6177 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6178 lt_cv_file_magic_cmd='func_win32_libid' 6179 ;; 6180 6181mingw* | pw32*) 6182 # Base MSYS/MinGW do not provide the 'file' command needed by 6183 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6184 # unless we find 'file', for example because we are cross-compiling. 6185 if ( file / ) >/dev/null 2>&1; then 6186 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6187 lt_cv_file_magic_cmd='func_win32_libid' 6188 else 6189 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6190 lt_cv_file_magic_cmd='$OBJDUMP -f' 6191 fi 6192 ;; 6193 6194cegcc) 6195 # use the weaker test based on 'objdump'. See mingw*. 6196 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6197 lt_cv_file_magic_cmd='$OBJDUMP -f' 6198 ;; 6199 6200darwin* | rhapsody*) 6201 lt_cv_deplibs_check_method=pass_all 6202 ;; 6203 6204freebsd* | dragonfly*) 6205 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6206 case $host_cpu in 6207 i*86 ) 6208 # Not sure whether the presence of OpenBSD here was a mistake. 6209 # Let's accept both of them until this is cleared up. 6210 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6211 lt_cv_file_magic_cmd=/usr/bin/file 6212 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6213 ;; 6214 esac 6215 else 6216 lt_cv_deplibs_check_method=pass_all 6217 fi 6218 ;; 6219 6220gnu*) 6221 lt_cv_deplibs_check_method=pass_all 6222 ;; 6223 6224hpux10.20* | hpux11*) 6225 lt_cv_file_magic_cmd=/usr/bin/file 6226 case $host_cpu in 6227 ia64*) 6228 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6229 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6230 ;; 6231 hppa*64*) 6232 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]' 6233 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6234 ;; 6235 *) 6236 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6237 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6238 ;; 6239 esac 6240 ;; 6241 6242interix[3-9]*) 6243 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6245 ;; 6246 6247irix5* | irix6* | nonstopux*) 6248 case $LD in 6249 *-32|*"-32 ") libmagic=32-bit;; 6250 *-n32|*"-n32 ") libmagic=N32;; 6251 *-64|*"-64 ") libmagic=64-bit;; 6252 *) libmagic=never-match;; 6253 esac 6254 lt_cv_deplibs_check_method=pass_all 6255 ;; 6256 6257# This must be Linux ELF. 6258linux* | k*bsd*-gnu) 6259 lt_cv_deplibs_check_method=pass_all 6260 ;; 6261 6262netbsd*) 6263 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6265 else 6266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6267 fi 6268 ;; 6269 6270newos6*) 6271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6272 lt_cv_file_magic_cmd=/usr/bin/file 6273 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6274 ;; 6275 6276*nto* | *qnx*) 6277 lt_cv_deplibs_check_method=pass_all 6278 ;; 6279 6280openbsd*) 6281 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6283 else 6284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6285 fi 6286 ;; 6287 6288osf3* | osf4* | osf5*) 6289 lt_cv_deplibs_check_method=pass_all 6290 ;; 6291 6292rdos*) 6293 lt_cv_deplibs_check_method=pass_all 6294 ;; 6295 6296solaris*) 6297 lt_cv_deplibs_check_method=pass_all 6298 ;; 6299 6300sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6301 lt_cv_deplibs_check_method=pass_all 6302 ;; 6303 6304sysv4 | sysv4.3*) 6305 case $host_vendor in 6306 motorola) 6307 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]' 6308 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6309 ;; 6310 ncr) 6311 lt_cv_deplibs_check_method=pass_all 6312 ;; 6313 sequent) 6314 lt_cv_file_magic_cmd='/bin/file' 6315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6316 ;; 6317 sni) 6318 lt_cv_file_magic_cmd='/bin/file' 6319 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6320 lt_cv_file_magic_test_file=/lib/libc.so 6321 ;; 6322 siemens) 6323 lt_cv_deplibs_check_method=pass_all 6324 ;; 6325 pc) 6326 lt_cv_deplibs_check_method=pass_all 6327 ;; 6328 esac 6329 ;; 6330 6331tpf*) 6332 lt_cv_deplibs_check_method=pass_all 6333 ;; 6334esac 6335 6336fi 6337{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 6338$as_echo "$lt_cv_deplibs_check_method" >&6; } 6339file_magic_cmd=$lt_cv_file_magic_cmd 6340deplibs_check_method=$lt_cv_deplibs_check_method 6341test -z "$deplibs_check_method" && deplibs_check_method=unknown 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354if test -n "$ac_tool_prefix"; then 6355 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6356set dummy ${ac_tool_prefix}ar; ac_word=$2 6357{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6358$as_echo_n "checking for $ac_word... " >&6; } 6359if test "${ac_cv_prog_AR+set}" = set; then 6360 $as_echo_n "(cached) " >&6 6361else 6362 if test -n "$AR"; then 6363 ac_cv_prog_AR="$AR" # Let the user override the test. 6364else 6365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6366for as_dir in $PATH 6367do 6368 IFS=$as_save_IFS 6369 test -z "$as_dir" && as_dir=. 6370 for ac_exec_ext in '' $ac_executable_extensions; do 6371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6372 ac_cv_prog_AR="${ac_tool_prefix}ar" 6373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6374 break 2 6375 fi 6376done 6377done 6378IFS=$as_save_IFS 6379 6380fi 6381fi 6382AR=$ac_cv_prog_AR 6383if test -n "$AR"; then 6384 { $as_echo "$as_me:$LINENO: result: $AR" >&5 6385$as_echo "$AR" >&6; } 6386else 6387 { $as_echo "$as_me:$LINENO: result: no" >&5 6388$as_echo "no" >&6; } 6389fi 6390 6391 6392fi 6393if test -z "$ac_cv_prog_AR"; then 6394 ac_ct_AR=$AR 6395 # Extract the first word of "ar", so it can be a program name with args. 6396set dummy ar; ac_word=$2 6397{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6398$as_echo_n "checking for $ac_word... " >&6; } 6399if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6400 $as_echo_n "(cached) " >&6 6401else 6402 if test -n "$ac_ct_AR"; then 6403 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6404else 6405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6406for as_dir in $PATH 6407do 6408 IFS=$as_save_IFS 6409 test -z "$as_dir" && as_dir=. 6410 for ac_exec_ext in '' $ac_executable_extensions; do 6411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6412 ac_cv_prog_ac_ct_AR="ar" 6413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6414 break 2 6415 fi 6416done 6417done 6418IFS=$as_save_IFS 6419 6420fi 6421fi 6422ac_ct_AR=$ac_cv_prog_ac_ct_AR 6423if test -n "$ac_ct_AR"; then 6424 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6425$as_echo "$ac_ct_AR" >&6; } 6426else 6427 { $as_echo "$as_me:$LINENO: result: no" >&5 6428$as_echo "no" >&6; } 6429fi 6430 6431 if test "x$ac_ct_AR" = x; then 6432 AR="false" 6433 else 6434 case $cross_compiling:$ac_tool_warned in 6435yes:) 6436{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6438ac_tool_warned=yes ;; 6439esac 6440 AR=$ac_ct_AR 6441 fi 6442else 6443 AR="$ac_cv_prog_AR" 6444fi 6445 6446test -z "$AR" && AR=ar 6447test -z "$AR_FLAGS" && AR_FLAGS=cru 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459if test -n "$ac_tool_prefix"; then 6460 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6461set dummy ${ac_tool_prefix}strip; ac_word=$2 6462{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6463$as_echo_n "checking for $ac_word... " >&6; } 6464if test "${ac_cv_prog_STRIP+set}" = set; then 6465 $as_echo_n "(cached) " >&6 6466else 6467 if test -n "$STRIP"; then 6468 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6469else 6470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6471for as_dir in $PATH 6472do 6473 IFS=$as_save_IFS 6474 test -z "$as_dir" && as_dir=. 6475 for ac_exec_ext in '' $ac_executable_extensions; do 6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6477 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6479 break 2 6480 fi 6481done 6482done 6483IFS=$as_save_IFS 6484 6485fi 6486fi 6487STRIP=$ac_cv_prog_STRIP 6488if test -n "$STRIP"; then 6489 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 6490$as_echo "$STRIP" >&6; } 6491else 6492 { $as_echo "$as_me:$LINENO: result: no" >&5 6493$as_echo "no" >&6; } 6494fi 6495 6496 6497fi 6498if test -z "$ac_cv_prog_STRIP"; then 6499 ac_ct_STRIP=$STRIP 6500 # Extract the first word of "strip", so it can be a program name with args. 6501set dummy strip; ac_word=$2 6502{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6503$as_echo_n "checking for $ac_word... " >&6; } 6504if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6505 $as_echo_n "(cached) " >&6 6506else 6507 if test -n "$ac_ct_STRIP"; then 6508 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6509else 6510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6511for as_dir in $PATH 6512do 6513 IFS=$as_save_IFS 6514 test -z "$as_dir" && as_dir=. 6515 for ac_exec_ext in '' $ac_executable_extensions; do 6516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6517 ac_cv_prog_ac_ct_STRIP="strip" 6518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6519 break 2 6520 fi 6521done 6522done 6523IFS=$as_save_IFS 6524 6525fi 6526fi 6527ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6528if test -n "$ac_ct_STRIP"; then 6529 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6530$as_echo "$ac_ct_STRIP" >&6; } 6531else 6532 { $as_echo "$as_me:$LINENO: result: no" >&5 6533$as_echo "no" >&6; } 6534fi 6535 6536 if test "x$ac_ct_STRIP" = x; then 6537 STRIP=":" 6538 else 6539 case $cross_compiling:$ac_tool_warned in 6540yes:) 6541{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6543ac_tool_warned=yes ;; 6544esac 6545 STRIP=$ac_ct_STRIP 6546 fi 6547else 6548 STRIP="$ac_cv_prog_STRIP" 6549fi 6550 6551test -z "$STRIP" && STRIP=: 6552 6553 6554 6555 6556 6557 6558if test -n "$ac_tool_prefix"; then 6559 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6560set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6561{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6562$as_echo_n "checking for $ac_word... " >&6; } 6563if test "${ac_cv_prog_RANLIB+set}" = set; then 6564 $as_echo_n "(cached) " >&6 6565else 6566 if test -n "$RANLIB"; then 6567 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6568else 6569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6570for as_dir in $PATH 6571do 6572 IFS=$as_save_IFS 6573 test -z "$as_dir" && as_dir=. 6574 for ac_exec_ext in '' $ac_executable_extensions; do 6575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6576 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6577 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6578 break 2 6579 fi 6580done 6581done 6582IFS=$as_save_IFS 6583 6584fi 6585fi 6586RANLIB=$ac_cv_prog_RANLIB 6587if test -n "$RANLIB"; then 6588 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6589$as_echo "$RANLIB" >&6; } 6590else 6591 { $as_echo "$as_me:$LINENO: result: no" >&5 6592$as_echo "no" >&6; } 6593fi 6594 6595 6596fi 6597if test -z "$ac_cv_prog_RANLIB"; then 6598 ac_ct_RANLIB=$RANLIB 6599 # Extract the first word of "ranlib", so it can be a program name with args. 6600set dummy ranlib; ac_word=$2 6601{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6602$as_echo_n "checking for $ac_word... " >&6; } 6603if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6604 $as_echo_n "(cached) " >&6 6605else 6606 if test -n "$ac_ct_RANLIB"; then 6607 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6608else 6609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6610for as_dir in $PATH 6611do 6612 IFS=$as_save_IFS 6613 test -z "$as_dir" && as_dir=. 6614 for ac_exec_ext in '' $ac_executable_extensions; do 6615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6616 ac_cv_prog_ac_ct_RANLIB="ranlib" 6617 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6618 break 2 6619 fi 6620done 6621done 6622IFS=$as_save_IFS 6623 6624fi 6625fi 6626ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6627if test -n "$ac_ct_RANLIB"; then 6628 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6629$as_echo "$ac_ct_RANLIB" >&6; } 6630else 6631 { $as_echo "$as_me:$LINENO: result: no" >&5 6632$as_echo "no" >&6; } 6633fi 6634 6635 if test "x$ac_ct_RANLIB" = x; then 6636 RANLIB=":" 6637 else 6638 case $cross_compiling:$ac_tool_warned in 6639yes:) 6640{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6642ac_tool_warned=yes ;; 6643esac 6644 RANLIB=$ac_ct_RANLIB 6645 fi 6646else 6647 RANLIB="$ac_cv_prog_RANLIB" 6648fi 6649 6650test -z "$RANLIB" && RANLIB=: 6651 6652 6653 6654 6655 6656 6657# Determine commands to create old-style static archives. 6658old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6659old_postinstall_cmds='chmod 644 $oldlib' 6660old_postuninstall_cmds= 6661 6662if test -n "$RANLIB"; then 6663 case $host_os in 6664 openbsd*) 6665 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6666 ;; 6667 *) 6668 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6669 ;; 6670 esac 6671 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6672fi 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707# If no C compiler was specified, use CC. 6708LTCC=${LTCC-"$CC"} 6709 6710# If no C compiler flags were specified, use CFLAGS. 6711LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6712 6713# Allow CC to be a program name with arguments. 6714compiler=$CC 6715 6716 6717# Check for command to grab the raw symbol name followed by C symbol from nm. 6718{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6719$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6720if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6721 $as_echo_n "(cached) " >&6 6722else 6723 6724# These are sane defaults that work on at least a few old systems. 6725# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6726 6727# Character class describing NM global symbol codes. 6728symcode='[BCDEGRST]' 6729 6730# Regexp to match symbols that can be accessed directly from C. 6731sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6732 6733# Define system-specific variables. 6734case $host_os in 6735aix*) 6736 symcode='[BCDT]' 6737 ;; 6738cygwin* | mingw* | pw32* | cegcc*) 6739 symcode='[ABCDGISTW]' 6740 ;; 6741hpux*) 6742 if test "$host_cpu" = ia64; then 6743 symcode='[ABCDEGRST]' 6744 fi 6745 ;; 6746irix* | nonstopux*) 6747 symcode='[BCDEGRST]' 6748 ;; 6749osf*) 6750 symcode='[BCDEGQRST]' 6751 ;; 6752solaris*) 6753 symcode='[BDRT]' 6754 ;; 6755sco3.2v5*) 6756 symcode='[DT]' 6757 ;; 6758sysv4.2uw2*) 6759 symcode='[DT]' 6760 ;; 6761sysv5* | sco5v6* | unixware* | OpenUNIX*) 6762 symcode='[ABDT]' 6763 ;; 6764sysv4) 6765 symcode='[DFNSTU]' 6766 ;; 6767esac 6768 6769# If we're using GNU nm, then use its standard symbol codes. 6770case `$NM -V 2>&1` in 6771*GNU* | *'with BFD'*) 6772 symcode='[ABCDGIRSTW]' ;; 6773esac 6774 6775# Transform an extracted symbol line into a proper C declaration. 6776# Some systems (esp. on ia64) link data and code symbols differently, 6777# so use this general approach. 6778lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6779 6780# Transform an extracted symbol line into symbol name and symbol address 6781lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6782lt_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'" 6783 6784# Handle CRLF in mingw tool chain 6785opt_cr= 6786case $build_os in 6787mingw*) 6788 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6789 ;; 6790esac 6791 6792# Try without a prefix underscore, then with it. 6793for ac_symprfx in "" "_"; do 6794 6795 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6796 symxfrm="\\1 $ac_symprfx\\2 \\2" 6797 6798 # Write the raw and C identifiers. 6799 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6800 # Fake it for dumpbin and say T for any non-static function 6801 # and D for any global variable. 6802 # Also find C++ and __fastcall symbols from MSVC++, 6803 # which start with @ or ?. 6804 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6805" {last_section=section; section=\$ 3};"\ 6806" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6807" \$ 0!~/External *\|/{next};"\ 6808" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6809" {if(hide[section]) next};"\ 6810" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6811" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6812" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6813" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6814" ' prfx=^$ac_symprfx" 6815 else 6816 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6817 fi 6818 6819 # Check to see that the pipe works correctly. 6820 pipe_works=no 6821 6822 rm -f conftest* 6823 cat > conftest.$ac_ext <<_LT_EOF 6824#ifdef __cplusplus 6825extern "C" { 6826#endif 6827char nm_test_var; 6828void nm_test_func(void); 6829void nm_test_func(void){} 6830#ifdef __cplusplus 6831} 6832#endif 6833int main(){nm_test_var='a';nm_test_func();return(0);} 6834_LT_EOF 6835 6836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6837 (eval $ac_compile) 2>&5 6838 ac_status=$? 6839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6840 (exit $ac_status); }; then 6841 # Now try to grab the symbols. 6842 nlist=conftest.nm 6843 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6844 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6845 ac_status=$? 6846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6847 (exit $ac_status); } && test -s "$nlist"; then 6848 # Try sorting and uniquifying the output. 6849 if sort "$nlist" | uniq > "$nlist"T; then 6850 mv -f "$nlist"T "$nlist" 6851 else 6852 rm -f "$nlist"T 6853 fi 6854 6855 # Make sure that we snagged all the symbols we need. 6856 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6857 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6858 cat <<_LT_EOF > conftest.$ac_ext 6859#ifdef __cplusplus 6860extern "C" { 6861#endif 6862 6863_LT_EOF 6864 # Now generate the symbol file. 6865 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6866 6867 cat <<_LT_EOF >> conftest.$ac_ext 6868 6869/* The mapping between symbol names and symbols. */ 6870const struct { 6871 const char *name; 6872 void *address; 6873} 6874lt__PROGRAM__LTX_preloaded_symbols[] = 6875{ 6876 { "@PROGRAM@", (void *) 0 }, 6877_LT_EOF 6878 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6879 cat <<\_LT_EOF >> conftest.$ac_ext 6880 {0, (void *) 0} 6881}; 6882 6883/* This works around a problem in FreeBSD linker */ 6884#ifdef FREEBSD_WORKAROUND 6885static const void *lt_preloaded_setup() { 6886 return lt__PROGRAM__LTX_preloaded_symbols; 6887} 6888#endif 6889 6890#ifdef __cplusplus 6891} 6892#endif 6893_LT_EOF 6894 # Now try linking the two files. 6895 mv conftest.$ac_objext conftstm.$ac_objext 6896 lt_save_LIBS="$LIBS" 6897 lt_save_CFLAGS="$CFLAGS" 6898 LIBS="conftstm.$ac_objext" 6899 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6901 (eval $ac_link) 2>&5 6902 ac_status=$? 6903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6904 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6905 pipe_works=yes 6906 fi 6907 LIBS="$lt_save_LIBS" 6908 CFLAGS="$lt_save_CFLAGS" 6909 else 6910 echo "cannot find nm_test_func in $nlist" >&5 6911 fi 6912 else 6913 echo "cannot find nm_test_var in $nlist" >&5 6914 fi 6915 else 6916 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6917 fi 6918 else 6919 echo "$progname: failed program was:" >&5 6920 cat conftest.$ac_ext >&5 6921 fi 6922 rm -rf conftest* conftst* 6923 6924 # Do not use the global_symbol_pipe unless it works. 6925 if test "$pipe_works" = yes; then 6926 break 6927 else 6928 lt_cv_sys_global_symbol_pipe= 6929 fi 6930done 6931 6932fi 6933 6934if test -z "$lt_cv_sys_global_symbol_pipe"; then 6935 lt_cv_sys_global_symbol_to_cdecl= 6936fi 6937if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6938 { $as_echo "$as_me:$LINENO: result: failed" >&5 6939$as_echo "failed" >&6; } 6940else 6941 { $as_echo "$as_me:$LINENO: result: ok" >&5 6942$as_echo "ok" >&6; } 6943fi 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966# Check whether --enable-libtool-lock was given. 6967if test "${enable_libtool_lock+set}" = set; then 6968 enableval=$enable_libtool_lock; 6969fi 6970 6971test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6972 6973# Some flags need to be propagated to the compiler or linker for good 6974# libtool support. 6975case $host in 6976ia64-*-hpux*) 6977 # Find out which ABI we are using. 6978 echo 'int i;' > conftest.$ac_ext 6979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6980 (eval $ac_compile) 2>&5 6981 ac_status=$? 6982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6983 (exit $ac_status); }; then 6984 case `/usr/bin/file conftest.$ac_objext` in 6985 *ELF-32*) 6986 HPUX_IA64_MODE="32" 6987 ;; 6988 *ELF-64*) 6989 HPUX_IA64_MODE="64" 6990 ;; 6991 esac 6992 fi 6993 rm -rf conftest* 6994 ;; 6995*-*-irix6*) 6996 # Find out which ABI we are using. 6997 echo '#line 6997 "configure"' > conftest.$ac_ext 6998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6999 (eval $ac_compile) 2>&5 7000 ac_status=$? 7001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7002 (exit $ac_status); }; then 7003 if test "$lt_cv_prog_gnu_ld" = yes; then 7004 case `/usr/bin/file conftest.$ac_objext` in 7005 *32-bit*) 7006 LD="${LD-ld} -melf32bsmip" 7007 ;; 7008 *N32*) 7009 LD="${LD-ld} -melf32bmipn32" 7010 ;; 7011 *64-bit*) 7012 LD="${LD-ld} -melf64bmip" 7013 ;; 7014 esac 7015 else 7016 case `/usr/bin/file conftest.$ac_objext` in 7017 *32-bit*) 7018 LD="${LD-ld} -32" 7019 ;; 7020 *N32*) 7021 LD="${LD-ld} -n32" 7022 ;; 7023 *64-bit*) 7024 LD="${LD-ld} -64" 7025 ;; 7026 esac 7027 fi 7028 fi 7029 rm -rf conftest* 7030 ;; 7031 7032x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7033s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7034 # Find out which ABI we are using. 7035 echo 'int i;' > conftest.$ac_ext 7036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7037 (eval $ac_compile) 2>&5 7038 ac_status=$? 7039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7040 (exit $ac_status); }; then 7041 case `/usr/bin/file conftest.o` in 7042 *32-bit*) 7043 case $host in 7044 x86_64-*kfreebsd*-gnu) 7045 LD="${LD-ld} -m elf_i386_fbsd" 7046 ;; 7047 x86_64-*linux*) 7048 LD="${LD-ld} -m elf_i386" 7049 ;; 7050 ppc64-*linux*|powerpc64-*linux*) 7051 LD="${LD-ld} -m elf32ppclinux" 7052 ;; 7053 s390x-*linux*) 7054 LD="${LD-ld} -m elf_s390" 7055 ;; 7056 sparc64-*linux*) 7057 LD="${LD-ld} -m elf32_sparc" 7058 ;; 7059 esac 7060 ;; 7061 *64-bit*) 7062 case $host in 7063 x86_64-*kfreebsd*-gnu) 7064 LD="${LD-ld} -m elf_x86_64_fbsd" 7065 ;; 7066 x86_64-*linux*) 7067 LD="${LD-ld} -m elf_x86_64" 7068 ;; 7069 ppc*-*linux*|powerpc*-*linux*) 7070 LD="${LD-ld} -m elf64ppc" 7071 ;; 7072 s390*-*linux*|s390*-*tpf*) 7073 LD="${LD-ld} -m elf64_s390" 7074 ;; 7075 sparc*-*linux*) 7076 LD="${LD-ld} -m elf64_sparc" 7077 ;; 7078 esac 7079 ;; 7080 esac 7081 fi 7082 rm -rf conftest* 7083 ;; 7084 7085*-*-sco3.2v5*) 7086 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7087 SAVE_CFLAGS="$CFLAGS" 7088 CFLAGS="$CFLAGS -belf" 7089 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 7090$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7091if test "${lt_cv_cc_needs_belf+set}" = set; then 7092 $as_echo_n "(cached) " >&6 7093else 7094 ac_ext=c 7095ac_cpp='$CPP $CPPFLAGS' 7096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7098ac_compiler_gnu=$ac_cv_c_compiler_gnu 7099 7100 cat >conftest.$ac_ext <<_ACEOF 7101/* confdefs.h. */ 7102_ACEOF 7103cat confdefs.h >>conftest.$ac_ext 7104cat >>conftest.$ac_ext <<_ACEOF 7105/* end confdefs.h. */ 7106 7107int 7108main () 7109{ 7110 7111 ; 7112 return 0; 7113} 7114_ACEOF 7115rm -f conftest.$ac_objext conftest$ac_exeext 7116if { (ac_try="$ac_link" 7117case "(($ac_try" in 7118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7119 *) ac_try_echo=$ac_try;; 7120esac 7121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7122$as_echo "$ac_try_echo") >&5 7123 (eval "$ac_link") 2>conftest.er1 7124 ac_status=$? 7125 grep -v '^ *+' conftest.er1 >conftest.err 7126 rm -f conftest.er1 7127 cat conftest.err >&5 7128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7129 (exit $ac_status); } && { 7130 test -z "$ac_c_werror_flag" || 7131 test ! -s conftest.err 7132 } && test -s conftest$ac_exeext && { 7133 test "$cross_compiling" = yes || 7134 $as_test_x conftest$ac_exeext 7135 }; then 7136 lt_cv_cc_needs_belf=yes 7137else 7138 $as_echo "$as_me: failed program was:" >&5 7139sed 's/^/| /' conftest.$ac_ext >&5 7140 7141 lt_cv_cc_needs_belf=no 7142fi 7143 7144rm -rf conftest.dSYM 7145rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7146 conftest$ac_exeext conftest.$ac_ext 7147 ac_ext=c 7148ac_cpp='$CPP $CPPFLAGS' 7149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7151ac_compiler_gnu=$ac_cv_c_compiler_gnu 7152 7153fi 7154{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 7155$as_echo "$lt_cv_cc_needs_belf" >&6; } 7156 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7157 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7158 CFLAGS="$SAVE_CFLAGS" 7159 fi 7160 ;; 7161sparc*-*solaris*) 7162 # Find out which ABI we are using. 7163 echo 'int i;' > conftest.$ac_ext 7164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7165 (eval $ac_compile) 2>&5 7166 ac_status=$? 7167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7168 (exit $ac_status); }; then 7169 case `/usr/bin/file conftest.o` in 7170 *64-bit*) 7171 case $lt_cv_prog_gnu_ld in 7172 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7173 *) 7174 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7175 LD="${LD-ld} -64" 7176 fi 7177 ;; 7178 esac 7179 ;; 7180 esac 7181 fi 7182 rm -rf conftest* 7183 ;; 7184esac 7185 7186need_locks="$enable_libtool_lock" 7187 7188 7189 case $host_os in 7190 rhapsody* | darwin*) 7191 if test -n "$ac_tool_prefix"; then 7192 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7193set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7194{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7195$as_echo_n "checking for $ac_word... " >&6; } 7196if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7197 $as_echo_n "(cached) " >&6 7198else 7199 if test -n "$DSYMUTIL"; then 7200 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7201else 7202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7203for as_dir in $PATH 7204do 7205 IFS=$as_save_IFS 7206 test -z "$as_dir" && as_dir=. 7207 for ac_exec_ext in '' $ac_executable_extensions; do 7208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7209 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7210 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7211 break 2 7212 fi 7213done 7214done 7215IFS=$as_save_IFS 7216 7217fi 7218fi 7219DSYMUTIL=$ac_cv_prog_DSYMUTIL 7220if test -n "$DSYMUTIL"; then 7221 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7222$as_echo "$DSYMUTIL" >&6; } 7223else 7224 { $as_echo "$as_me:$LINENO: result: no" >&5 7225$as_echo "no" >&6; } 7226fi 7227 7228 7229fi 7230if test -z "$ac_cv_prog_DSYMUTIL"; then 7231 ac_ct_DSYMUTIL=$DSYMUTIL 7232 # Extract the first word of "dsymutil", so it can be a program name with args. 7233set dummy dsymutil; ac_word=$2 7234{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7235$as_echo_n "checking for $ac_word... " >&6; } 7236if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7237 $as_echo_n "(cached) " >&6 7238else 7239 if test -n "$ac_ct_DSYMUTIL"; then 7240 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7241else 7242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7243for as_dir in $PATH 7244do 7245 IFS=$as_save_IFS 7246 test -z "$as_dir" && as_dir=. 7247 for ac_exec_ext in '' $ac_executable_extensions; do 7248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7249 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7250 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7251 break 2 7252 fi 7253done 7254done 7255IFS=$as_save_IFS 7256 7257fi 7258fi 7259ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7260if test -n "$ac_ct_DSYMUTIL"; then 7261 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7262$as_echo "$ac_ct_DSYMUTIL" >&6; } 7263else 7264 { $as_echo "$as_me:$LINENO: result: no" >&5 7265$as_echo "no" >&6; } 7266fi 7267 7268 if test "x$ac_ct_DSYMUTIL" = x; then 7269 DSYMUTIL=":" 7270 else 7271 case $cross_compiling:$ac_tool_warned in 7272yes:) 7273{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7275ac_tool_warned=yes ;; 7276esac 7277 DSYMUTIL=$ac_ct_DSYMUTIL 7278 fi 7279else 7280 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7281fi 7282 7283 if test -n "$ac_tool_prefix"; then 7284 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7285set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7286{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7287$as_echo_n "checking for $ac_word... " >&6; } 7288if test "${ac_cv_prog_NMEDIT+set}" = set; then 7289 $as_echo_n "(cached) " >&6 7290else 7291 if test -n "$NMEDIT"; then 7292 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7293else 7294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7295for as_dir in $PATH 7296do 7297 IFS=$as_save_IFS 7298 test -z "$as_dir" && as_dir=. 7299 for ac_exec_ext in '' $ac_executable_extensions; do 7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7301 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7302 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7303 break 2 7304 fi 7305done 7306done 7307IFS=$as_save_IFS 7308 7309fi 7310fi 7311NMEDIT=$ac_cv_prog_NMEDIT 7312if test -n "$NMEDIT"; then 7313 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 7314$as_echo "$NMEDIT" >&6; } 7315else 7316 { $as_echo "$as_me:$LINENO: result: no" >&5 7317$as_echo "no" >&6; } 7318fi 7319 7320 7321fi 7322if test -z "$ac_cv_prog_NMEDIT"; then 7323 ac_ct_NMEDIT=$NMEDIT 7324 # Extract the first word of "nmedit", so it can be a program name with args. 7325set dummy nmedit; ac_word=$2 7326{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7327$as_echo_n "checking for $ac_word... " >&6; } 7328if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7329 $as_echo_n "(cached) " >&6 7330else 7331 if test -n "$ac_ct_NMEDIT"; then 7332 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7333else 7334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7335for as_dir in $PATH 7336do 7337 IFS=$as_save_IFS 7338 test -z "$as_dir" && as_dir=. 7339 for ac_exec_ext in '' $ac_executable_extensions; do 7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7341 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7343 break 2 7344 fi 7345done 7346done 7347IFS=$as_save_IFS 7348 7349fi 7350fi 7351ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7352if test -n "$ac_ct_NMEDIT"; then 7353 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7354$as_echo "$ac_ct_NMEDIT" >&6; } 7355else 7356 { $as_echo "$as_me:$LINENO: result: no" >&5 7357$as_echo "no" >&6; } 7358fi 7359 7360 if test "x$ac_ct_NMEDIT" = x; then 7361 NMEDIT=":" 7362 else 7363 case $cross_compiling:$ac_tool_warned in 7364yes:) 7365{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7366$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7367ac_tool_warned=yes ;; 7368esac 7369 NMEDIT=$ac_ct_NMEDIT 7370 fi 7371else 7372 NMEDIT="$ac_cv_prog_NMEDIT" 7373fi 7374 7375 if test -n "$ac_tool_prefix"; then 7376 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7377set dummy ${ac_tool_prefix}lipo; ac_word=$2 7378{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7379$as_echo_n "checking for $ac_word... " >&6; } 7380if test "${ac_cv_prog_LIPO+set}" = set; then 7381 $as_echo_n "(cached) " >&6 7382else 7383 if test -n "$LIPO"; then 7384 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7385else 7386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7387for as_dir in $PATH 7388do 7389 IFS=$as_save_IFS 7390 test -z "$as_dir" && as_dir=. 7391 for ac_exec_ext in '' $ac_executable_extensions; do 7392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7393 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7394 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7395 break 2 7396 fi 7397done 7398done 7399IFS=$as_save_IFS 7400 7401fi 7402fi 7403LIPO=$ac_cv_prog_LIPO 7404if test -n "$LIPO"; then 7405 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 7406$as_echo "$LIPO" >&6; } 7407else 7408 { $as_echo "$as_me:$LINENO: result: no" >&5 7409$as_echo "no" >&6; } 7410fi 7411 7412 7413fi 7414if test -z "$ac_cv_prog_LIPO"; then 7415 ac_ct_LIPO=$LIPO 7416 # Extract the first word of "lipo", so it can be a program name with args. 7417set dummy lipo; ac_word=$2 7418{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7419$as_echo_n "checking for $ac_word... " >&6; } 7420if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 7421 $as_echo_n "(cached) " >&6 7422else 7423 if test -n "$ac_ct_LIPO"; then 7424 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7425else 7426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7427for as_dir in $PATH 7428do 7429 IFS=$as_save_IFS 7430 test -z "$as_dir" && as_dir=. 7431 for ac_exec_ext in '' $ac_executable_extensions; do 7432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7433 ac_cv_prog_ac_ct_LIPO="lipo" 7434 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7435 break 2 7436 fi 7437done 7438done 7439IFS=$as_save_IFS 7440 7441fi 7442fi 7443ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7444if test -n "$ac_ct_LIPO"; then 7445 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 7446$as_echo "$ac_ct_LIPO" >&6; } 7447else 7448 { $as_echo "$as_me:$LINENO: result: no" >&5 7449$as_echo "no" >&6; } 7450fi 7451 7452 if test "x$ac_ct_LIPO" = x; then 7453 LIPO=":" 7454 else 7455 case $cross_compiling:$ac_tool_warned in 7456yes:) 7457{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7459ac_tool_warned=yes ;; 7460esac 7461 LIPO=$ac_ct_LIPO 7462 fi 7463else 7464 LIPO="$ac_cv_prog_LIPO" 7465fi 7466 7467 if test -n "$ac_tool_prefix"; then 7468 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7469set dummy ${ac_tool_prefix}otool; ac_word=$2 7470{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7471$as_echo_n "checking for $ac_word... " >&6; } 7472if test "${ac_cv_prog_OTOOL+set}" = set; then 7473 $as_echo_n "(cached) " >&6 7474else 7475 if test -n "$OTOOL"; then 7476 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7477else 7478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7479for as_dir in $PATH 7480do 7481 IFS=$as_save_IFS 7482 test -z "$as_dir" && as_dir=. 7483 for ac_exec_ext in '' $ac_executable_extensions; do 7484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7485 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7486 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7487 break 2 7488 fi 7489done 7490done 7491IFS=$as_save_IFS 7492 7493fi 7494fi 7495OTOOL=$ac_cv_prog_OTOOL 7496if test -n "$OTOOL"; then 7497 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 7498$as_echo "$OTOOL" >&6; } 7499else 7500 { $as_echo "$as_me:$LINENO: result: no" >&5 7501$as_echo "no" >&6; } 7502fi 7503 7504 7505fi 7506if test -z "$ac_cv_prog_OTOOL"; then 7507 ac_ct_OTOOL=$OTOOL 7508 # Extract the first word of "otool", so it can be a program name with args. 7509set dummy otool; ac_word=$2 7510{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7511$as_echo_n "checking for $ac_word... " >&6; } 7512if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 7513 $as_echo_n "(cached) " >&6 7514else 7515 if test -n "$ac_ct_OTOOL"; then 7516 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7517else 7518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7519for as_dir in $PATH 7520do 7521 IFS=$as_save_IFS 7522 test -z "$as_dir" && as_dir=. 7523 for ac_exec_ext in '' $ac_executable_extensions; do 7524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7525 ac_cv_prog_ac_ct_OTOOL="otool" 7526 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7527 break 2 7528 fi 7529done 7530done 7531IFS=$as_save_IFS 7532 7533fi 7534fi 7535ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7536if test -n "$ac_ct_OTOOL"; then 7537 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 7538$as_echo "$ac_ct_OTOOL" >&6; } 7539else 7540 { $as_echo "$as_me:$LINENO: result: no" >&5 7541$as_echo "no" >&6; } 7542fi 7543 7544 if test "x$ac_ct_OTOOL" = x; then 7545 OTOOL=":" 7546 else 7547 case $cross_compiling:$ac_tool_warned in 7548yes:) 7549{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7550$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7551ac_tool_warned=yes ;; 7552esac 7553 OTOOL=$ac_ct_OTOOL 7554 fi 7555else 7556 OTOOL="$ac_cv_prog_OTOOL" 7557fi 7558 7559 if test -n "$ac_tool_prefix"; then 7560 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7561set dummy ${ac_tool_prefix}otool64; ac_word=$2 7562{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7563$as_echo_n "checking for $ac_word... " >&6; } 7564if test "${ac_cv_prog_OTOOL64+set}" = set; then 7565 $as_echo_n "(cached) " >&6 7566else 7567 if test -n "$OTOOL64"; then 7568 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7569else 7570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7571for as_dir in $PATH 7572do 7573 IFS=$as_save_IFS 7574 test -z "$as_dir" && as_dir=. 7575 for ac_exec_ext in '' $ac_executable_extensions; do 7576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7577 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7578 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7579 break 2 7580 fi 7581done 7582done 7583IFS=$as_save_IFS 7584 7585fi 7586fi 7587OTOOL64=$ac_cv_prog_OTOOL64 7588if test -n "$OTOOL64"; then 7589 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 7590$as_echo "$OTOOL64" >&6; } 7591else 7592 { $as_echo "$as_me:$LINENO: result: no" >&5 7593$as_echo "no" >&6; } 7594fi 7595 7596 7597fi 7598if test -z "$ac_cv_prog_OTOOL64"; then 7599 ac_ct_OTOOL64=$OTOOL64 7600 # Extract the first word of "otool64", so it can be a program name with args. 7601set dummy otool64; ac_word=$2 7602{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7603$as_echo_n "checking for $ac_word... " >&6; } 7604if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 7605 $as_echo_n "(cached) " >&6 7606else 7607 if test -n "$ac_ct_OTOOL64"; then 7608 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7609else 7610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7611for as_dir in $PATH 7612do 7613 IFS=$as_save_IFS 7614 test -z "$as_dir" && as_dir=. 7615 for ac_exec_ext in '' $ac_executable_extensions; do 7616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7617 ac_cv_prog_ac_ct_OTOOL64="otool64" 7618 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7619 break 2 7620 fi 7621done 7622done 7623IFS=$as_save_IFS 7624 7625fi 7626fi 7627ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7628if test -n "$ac_ct_OTOOL64"; then 7629 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 7630$as_echo "$ac_ct_OTOOL64" >&6; } 7631else 7632 { $as_echo "$as_me:$LINENO: result: no" >&5 7633$as_echo "no" >&6; } 7634fi 7635 7636 if test "x$ac_ct_OTOOL64" = x; then 7637 OTOOL64=":" 7638 else 7639 case $cross_compiling:$ac_tool_warned in 7640yes:) 7641{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7642$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7643ac_tool_warned=yes ;; 7644esac 7645 OTOOL64=$ac_ct_OTOOL64 7646 fi 7647else 7648 OTOOL64="$ac_cv_prog_OTOOL64" 7649fi 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7678$as_echo_n "checking for -single_module linker flag... " >&6; } 7679if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7680 $as_echo_n "(cached) " >&6 7681else 7682 lt_cv_apple_cc_single_mod=no 7683 if test -z "${LT_MULTI_MODULE}"; then 7684 # By default we will add the -single_module flag. You can override 7685 # by either setting the environment variable LT_MULTI_MODULE 7686 # non-empty at configure time, or by adding -multi_module to the 7687 # link flags. 7688 rm -rf libconftest.dylib* 7689 echo "int foo(void){return 1;}" > conftest.c 7690 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7691-dynamiclib -Wl,-single_module conftest.c" >&5 7692 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7693 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7694 _lt_result=$? 7695 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7696 lt_cv_apple_cc_single_mod=yes 7697 else 7698 cat conftest.err >&5 7699 fi 7700 rm -rf libconftest.dylib* 7701 rm -f conftest.* 7702 fi 7703fi 7704{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7705$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7706 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7707$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7708if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7709 $as_echo_n "(cached) " >&6 7710else 7711 lt_cv_ld_exported_symbols_list=no 7712 save_LDFLAGS=$LDFLAGS 7713 echo "_main" > conftest.sym 7714 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7715 cat >conftest.$ac_ext <<_ACEOF 7716/* confdefs.h. */ 7717_ACEOF 7718cat confdefs.h >>conftest.$ac_ext 7719cat >>conftest.$ac_ext <<_ACEOF 7720/* end confdefs.h. */ 7721 7722int 7723main () 7724{ 7725 7726 ; 7727 return 0; 7728} 7729_ACEOF 7730rm -f conftest.$ac_objext conftest$ac_exeext 7731if { (ac_try="$ac_link" 7732case "(($ac_try" in 7733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7734 *) ac_try_echo=$ac_try;; 7735esac 7736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7737$as_echo "$ac_try_echo") >&5 7738 (eval "$ac_link") 2>conftest.er1 7739 ac_status=$? 7740 grep -v '^ *+' conftest.er1 >conftest.err 7741 rm -f conftest.er1 7742 cat conftest.err >&5 7743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7744 (exit $ac_status); } && { 7745 test -z "$ac_c_werror_flag" || 7746 test ! -s conftest.err 7747 } && test -s conftest$ac_exeext && { 7748 test "$cross_compiling" = yes || 7749 $as_test_x conftest$ac_exeext 7750 }; then 7751 lt_cv_ld_exported_symbols_list=yes 7752else 7753 $as_echo "$as_me: failed program was:" >&5 7754sed 's/^/| /' conftest.$ac_ext >&5 7755 7756 lt_cv_ld_exported_symbols_list=no 7757fi 7758 7759rm -rf conftest.dSYM 7760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7761 conftest$ac_exeext conftest.$ac_ext 7762 LDFLAGS="$save_LDFLAGS" 7763 7764fi 7765{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7766$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7767 case $host_os in 7768 rhapsody* | darwin1.[012]) 7769 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7770 darwin1.*) 7771 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7772 darwin*) # darwin 5.x on 7773 # if running on 10.5 or later, the deployment target defaults 7774 # to the OS version, if on x86, and 10.4, the deployment 7775 # target defaults to 10.4. Don't you love it? 7776 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7777 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7778 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7779 10.[012]*) 7780 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7781 10.*) 7782 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7783 esac 7784 ;; 7785 esac 7786 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7787 _lt_dar_single_mod='$single_module' 7788 fi 7789 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7790 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7791 else 7792 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7793 fi 7794 if test "$DSYMUTIL" != ":"; then 7795 _lt_dsymutil='~$DSYMUTIL $lib || :' 7796 else 7797 _lt_dsymutil= 7798 fi 7799 ;; 7800 esac 7801 7802 7803for ac_header in dlfcn.h 7804do 7805as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7806{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7807$as_echo_n "checking for $ac_header... " >&6; } 7808if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7809 $as_echo_n "(cached) " >&6 7810else 7811 cat >conftest.$ac_ext <<_ACEOF 7812/* confdefs.h. */ 7813_ACEOF 7814cat confdefs.h >>conftest.$ac_ext 7815cat >>conftest.$ac_ext <<_ACEOF 7816/* end confdefs.h. */ 7817$ac_includes_default 7818 7819#include <$ac_header> 7820_ACEOF 7821rm -f conftest.$ac_objext 7822if { (ac_try="$ac_compile" 7823case "(($ac_try" in 7824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7825 *) ac_try_echo=$ac_try;; 7826esac 7827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7828$as_echo "$ac_try_echo") >&5 7829 (eval "$ac_compile") 2>conftest.er1 7830 ac_status=$? 7831 grep -v '^ *+' conftest.er1 >conftest.err 7832 rm -f conftest.er1 7833 cat conftest.err >&5 7834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7835 (exit $ac_status); } && { 7836 test -z "$ac_c_werror_flag" || 7837 test ! -s conftest.err 7838 } && test -s conftest.$ac_objext; then 7839 eval "$as_ac_Header=yes" 7840else 7841 $as_echo "$as_me: failed program was:" >&5 7842sed 's/^/| /' conftest.$ac_ext >&5 7843 7844 eval "$as_ac_Header=no" 7845fi 7846 7847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7848fi 7849ac_res=`eval 'as_val=${'$as_ac_Header'} 7850 $as_echo "$as_val"'` 7851 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7852$as_echo "$ac_res" >&6; } 7853as_val=`eval 'as_val=${'$as_ac_Header'} 7854 $as_echo "$as_val"'` 7855 if test "x$as_val" = x""yes; then 7856 cat >>confdefs.h <<_ACEOF 7857#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7858_ACEOF 7859 7860fi 7861 7862done 7863 7864 7865 7866# Set options 7867 7868 7869 7870 enable_dlopen=no 7871 7872 7873 enable_win32_dll=no 7874 7875 7876 # Check whether --enable-shared was given. 7877if test "${enable_shared+set}" = set; then 7878 enableval=$enable_shared; p=${PACKAGE-default} 7879 case $enableval in 7880 yes) enable_shared=yes ;; 7881 no) enable_shared=no ;; 7882 *) 7883 enable_shared=no 7884 # Look at the argument we got. We use all the common list separators. 7885 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7886 for pkg in $enableval; do 7887 IFS="$lt_save_ifs" 7888 if test "X$pkg" = "X$p"; then 7889 enable_shared=yes 7890 fi 7891 done 7892 IFS="$lt_save_ifs" 7893 ;; 7894 esac 7895else 7896 enable_shared=yes 7897fi 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909# Check whether --with-pic was given. 7910if test "${with_pic+set}" = set; then 7911 withval=$with_pic; pic_mode="$withval" 7912else 7913 pic_mode=default 7914fi 7915 7916 7917test -z "$pic_mode" && pic_mode=default 7918 7919 7920 7921 7922 7923 7924 7925 # Check whether --enable-fast-install was given. 7926if test "${enable_fast_install+set}" = set; then 7927 enableval=$enable_fast_install; p=${PACKAGE-default} 7928 case $enableval in 7929 yes) enable_fast_install=yes ;; 7930 no) enable_fast_install=no ;; 7931 *) 7932 enable_fast_install=no 7933 # Look at the argument we got. We use all the common list separators. 7934 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7935 for pkg in $enableval; do 7936 IFS="$lt_save_ifs" 7937 if test "X$pkg" = "X$p"; then 7938 enable_fast_install=yes 7939 fi 7940 done 7941 IFS="$lt_save_ifs" 7942 ;; 7943 esac 7944else 7945 enable_fast_install=yes 7946fi 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958# This can be used to rebuild libtool when needed 7959LIBTOOL_DEPS="$ltmain" 7960 7961# Always use our own libtool. 7962LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988test -z "$LN_S" && LN_S="ln -s" 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003if test -n "${ZSH_VERSION+set}" ; then 8004 setopt NO_GLOB_SUBST 8005fi 8006 8007{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 8008$as_echo_n "checking for objdir... " >&6; } 8009if test "${lt_cv_objdir+set}" = set; then 8010 $as_echo_n "(cached) " >&6 8011else 8012 rm -f .libs 2>/dev/null 8013mkdir .libs 2>/dev/null 8014if test -d .libs; then 8015 lt_cv_objdir=.libs 8016else 8017 # MS-DOS does not allow filenames that begin with a dot. 8018 lt_cv_objdir=_libs 8019fi 8020rmdir .libs 2>/dev/null 8021fi 8022{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 8023$as_echo "$lt_cv_objdir" >&6; } 8024objdir=$lt_cv_objdir 8025 8026 8027 8028 8029 8030cat >>confdefs.h <<_ACEOF 8031#define LT_OBJDIR "$lt_cv_objdir/" 8032_ACEOF 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050case $host_os in 8051aix3*) 8052 # AIX sometimes has problems with the GCC collect2 program. For some 8053 # reason, if we set the COLLECT_NAMES environment variable, the problems 8054 # vanish in a puff of smoke. 8055 if test "X${COLLECT_NAMES+set}" != Xset; then 8056 COLLECT_NAMES= 8057 export COLLECT_NAMES 8058 fi 8059 ;; 8060esac 8061 8062# Sed substitution that helps us do robust quoting. It backslashifies 8063# metacharacters that are still active within double-quoted strings. 8064sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8065 8066# Same as above, but do not quote variable references. 8067double_quote_subst='s/\(["`\\]\)/\\\1/g' 8068 8069# Sed substitution to delay expansion of an escaped shell variable in a 8070# double_quote_subst'ed string. 8071delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8072 8073# Sed substitution to delay expansion of an escaped single quote. 8074delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8075 8076# Sed substitution to avoid accidental globbing in evaled expressions 8077no_glob_subst='s/\*/\\\*/g' 8078 8079# Global variables: 8080ofile=libtool 8081can_build_shared=yes 8082 8083# All known linkers require a `.a' archive for static linking (except MSVC, 8084# which needs '.lib'). 8085libext=a 8086 8087with_gnu_ld="$lt_cv_prog_gnu_ld" 8088 8089old_CC="$CC" 8090old_CFLAGS="$CFLAGS" 8091 8092# Set sane defaults for various variables 8093test -z "$CC" && CC=cc 8094test -z "$LTCC" && LTCC=$CC 8095test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8096test -z "$LD" && LD=ld 8097test -z "$ac_objext" && ac_objext=o 8098 8099for cc_temp in $compiler""; do 8100 case $cc_temp in 8101 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8102 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8103 \-*) ;; 8104 *) break;; 8105 esac 8106done 8107cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8108 8109 8110# Only perform the check for file, if the check method requires it 8111test -z "$MAGIC_CMD" && MAGIC_CMD=file 8112case $deplibs_check_method in 8113file_magic*) 8114 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8115 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8116$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8117if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8118 $as_echo_n "(cached) " >&6 8119else 8120 case $MAGIC_CMD in 8121[\\/*] | ?:[\\/]*) 8122 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8123 ;; 8124*) 8125 lt_save_MAGIC_CMD="$MAGIC_CMD" 8126 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8127 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8128 for ac_dir in $ac_dummy; do 8129 IFS="$lt_save_ifs" 8130 test -z "$ac_dir" && ac_dir=. 8131 if test -f $ac_dir/${ac_tool_prefix}file; then 8132 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8133 if test -n "$file_magic_test_file"; then 8134 case $deplibs_check_method in 8135 "file_magic "*) 8136 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8137 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8138 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8139 $EGREP "$file_magic_regex" > /dev/null; then 8140 : 8141 else 8142 cat <<_LT_EOF 1>&2 8143 8144*** Warning: the command libtool uses to detect shared libraries, 8145*** $file_magic_cmd, produces output that libtool cannot recognize. 8146*** The result is that libtool may fail to recognize shared libraries 8147*** as such. This will affect the creation of libtool libraries that 8148*** depend on shared libraries, but programs linked with such libtool 8149*** libraries will work regardless of this problem. Nevertheless, you 8150*** may want to report the problem to your system manager and/or to 8151*** bug-libtool@gnu.org 8152 8153_LT_EOF 8154 fi ;; 8155 esac 8156 fi 8157 break 8158 fi 8159 done 8160 IFS="$lt_save_ifs" 8161 MAGIC_CMD="$lt_save_MAGIC_CMD" 8162 ;; 8163esac 8164fi 8165 8166MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8167if test -n "$MAGIC_CMD"; then 8168 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8169$as_echo "$MAGIC_CMD" >&6; } 8170else 8171 { $as_echo "$as_me:$LINENO: result: no" >&5 8172$as_echo "no" >&6; } 8173fi 8174 8175 8176 8177 8178 8179if test -z "$lt_cv_path_MAGIC_CMD"; then 8180 if test -n "$ac_tool_prefix"; then 8181 { $as_echo "$as_me:$LINENO: checking for file" >&5 8182$as_echo_n "checking for file... " >&6; } 8183if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8184 $as_echo_n "(cached) " >&6 8185else 8186 case $MAGIC_CMD in 8187[\\/*] | ?:[\\/]*) 8188 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8189 ;; 8190*) 8191 lt_save_MAGIC_CMD="$MAGIC_CMD" 8192 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8193 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8194 for ac_dir in $ac_dummy; do 8195 IFS="$lt_save_ifs" 8196 test -z "$ac_dir" && ac_dir=. 8197 if test -f $ac_dir/file; then 8198 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8199 if test -n "$file_magic_test_file"; then 8200 case $deplibs_check_method in 8201 "file_magic "*) 8202 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8204 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8205 $EGREP "$file_magic_regex" > /dev/null; then 8206 : 8207 else 8208 cat <<_LT_EOF 1>&2 8209 8210*** Warning: the command libtool uses to detect shared libraries, 8211*** $file_magic_cmd, produces output that libtool cannot recognize. 8212*** The result is that libtool may fail to recognize shared libraries 8213*** as such. This will affect the creation of libtool libraries that 8214*** depend on shared libraries, but programs linked with such libtool 8215*** libraries will work regardless of this problem. Nevertheless, you 8216*** may want to report the problem to your system manager and/or to 8217*** bug-libtool@gnu.org 8218 8219_LT_EOF 8220 fi ;; 8221 esac 8222 fi 8223 break 8224 fi 8225 done 8226 IFS="$lt_save_ifs" 8227 MAGIC_CMD="$lt_save_MAGIC_CMD" 8228 ;; 8229esac 8230fi 8231 8232MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8233if test -n "$MAGIC_CMD"; then 8234 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8235$as_echo "$MAGIC_CMD" >&6; } 8236else 8237 { $as_echo "$as_me:$LINENO: result: no" >&5 8238$as_echo "no" >&6; } 8239fi 8240 8241 8242 else 8243 MAGIC_CMD=: 8244 fi 8245fi 8246 8247 fi 8248 ;; 8249esac 8250 8251# Use C for the default configuration in the libtool script 8252 8253lt_save_CC="$CC" 8254ac_ext=c 8255ac_cpp='$CPP $CPPFLAGS' 8256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8258ac_compiler_gnu=$ac_cv_c_compiler_gnu 8259 8260 8261# Source file extension for C test sources. 8262ac_ext=c 8263 8264# Object file extension for compiled C test sources. 8265objext=o 8266objext=$objext 8267 8268# Code to be used in simple compile tests 8269lt_simple_compile_test_code="int some_variable = 0;" 8270 8271# Code to be used in simple link tests 8272lt_simple_link_test_code='int main(){return(0);}' 8273 8274 8275 8276 8277 8278 8279 8280# If no C compiler was specified, use CC. 8281LTCC=${LTCC-"$CC"} 8282 8283# If no C compiler flags were specified, use CFLAGS. 8284LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8285 8286# Allow CC to be a program name with arguments. 8287compiler=$CC 8288 8289# Save the default compiler, since it gets overwritten when the other 8290# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8291compiler_DEFAULT=$CC 8292 8293# save warnings/boilerplate of simple test code 8294ac_outfile=conftest.$ac_objext 8295echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8296eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8297_lt_compiler_boilerplate=`cat conftest.err` 8298$RM conftest* 8299 8300ac_outfile=conftest.$ac_objext 8301echo "$lt_simple_link_test_code" >conftest.$ac_ext 8302eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8303_lt_linker_boilerplate=`cat conftest.err` 8304$RM -r conftest* 8305 8306 8307if test -n "$compiler"; then 8308 8309lt_prog_compiler_no_builtin_flag= 8310 8311if test "$GCC" = yes; then 8312 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8313 8314 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8315$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8316if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8317 $as_echo_n "(cached) " >&6 8318else 8319 lt_cv_prog_compiler_rtti_exceptions=no 8320 ac_outfile=conftest.$ac_objext 8321 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8322 lt_compiler_flag="-fno-rtti -fno-exceptions" 8323 # Insert the option either (1) after the last *FLAGS variable, or 8324 # (2) before a word containing "conftest.", or (3) at the end. 8325 # Note that $ac_compile itself does not contain backslashes and begins 8326 # with a dollar sign (not a hyphen), so the echo should work correctly. 8327 # The option is referenced via a variable to avoid confusing sed. 8328 lt_compile=`echo "$ac_compile" | $SED \ 8329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8331 -e 's:$: $lt_compiler_flag:'` 8332 (eval echo "\"\$as_me:8332: $lt_compile\"" >&5) 8333 (eval "$lt_compile" 2>conftest.err) 8334 ac_status=$? 8335 cat conftest.err >&5 8336 echo "$as_me:8336: \$? = $ac_status" >&5 8337 if (exit $ac_status) && test -s "$ac_outfile"; then 8338 # The compiler can only warn and ignore the option if not recognized 8339 # So say no if there are warnings other than the usual output. 8340 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8341 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8342 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8343 lt_cv_prog_compiler_rtti_exceptions=yes 8344 fi 8345 fi 8346 $RM conftest* 8347 8348fi 8349{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8350$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8351 8352if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8353 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8354else 8355 : 8356fi 8357 8358fi 8359 8360 8361 8362 8363 8364 8365 lt_prog_compiler_wl= 8366lt_prog_compiler_pic= 8367lt_prog_compiler_static= 8368 8369{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8370$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8371 8372 if test "$GCC" = yes; then 8373 lt_prog_compiler_wl='-Wl,' 8374 lt_prog_compiler_static='-static' 8375 8376 case $host_os in 8377 aix*) 8378 # All AIX code is PIC. 8379 if test "$host_cpu" = ia64; then 8380 # AIX 5 now supports IA64 processor 8381 lt_prog_compiler_static='-Bstatic' 8382 fi 8383 ;; 8384 8385 amigaos*) 8386 case $host_cpu in 8387 powerpc) 8388 # see comment about AmigaOS4 .so support 8389 lt_prog_compiler_pic='-fPIC' 8390 ;; 8391 m68k) 8392 # FIXME: we need at least 68020 code to build shared libraries, but 8393 # adding the `-m68020' flag to GCC prevents building anything better, 8394 # like `-m68040'. 8395 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8396 ;; 8397 esac 8398 ;; 8399 8400 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8401 # PIC is the default for these OSes. 8402 ;; 8403 8404 mingw* | cygwin* | pw32* | os2* | cegcc*) 8405 # This hack is so that the source file can tell whether it is being 8406 # built for inclusion in a dll (and should export symbols for example). 8407 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8408 # (--disable-auto-import) libraries 8409 lt_prog_compiler_pic='-DDLL_EXPORT' 8410 ;; 8411 8412 darwin* | rhapsody*) 8413 # PIC is the default on this platform 8414 # Common symbols not allowed in MH_DYLIB files 8415 lt_prog_compiler_pic='-fno-common' 8416 ;; 8417 8418 hpux*) 8419 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8420 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8421 # sets the default TLS model and affects inlining. 8422 case $host_cpu in 8423 hppa*64*) 8424 # +Z the default 8425 ;; 8426 *) 8427 lt_prog_compiler_pic='-fPIC' 8428 ;; 8429 esac 8430 ;; 8431 8432 interix[3-9]*) 8433 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8434 # Instead, we relocate shared libraries at runtime. 8435 ;; 8436 8437 msdosdjgpp*) 8438 # Just because we use GCC doesn't mean we suddenly get shared libraries 8439 # on systems that don't support them. 8440 lt_prog_compiler_can_build_shared=no 8441 enable_shared=no 8442 ;; 8443 8444 *nto* | *qnx*) 8445 # QNX uses GNU C++, but need to define -shared option too, otherwise 8446 # it will coredump. 8447 lt_prog_compiler_pic='-fPIC -shared' 8448 ;; 8449 8450 sysv4*MP*) 8451 if test -d /usr/nec; then 8452 lt_prog_compiler_pic=-Kconform_pic 8453 fi 8454 ;; 8455 8456 *) 8457 lt_prog_compiler_pic='-fPIC' 8458 ;; 8459 esac 8460 else 8461 # PORTME Check for flag to pass linker flags through the system compiler. 8462 case $host_os in 8463 aix*) 8464 lt_prog_compiler_wl='-Wl,' 8465 if test "$host_cpu" = ia64; then 8466 # AIX 5 now supports IA64 processor 8467 lt_prog_compiler_static='-Bstatic' 8468 else 8469 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8470 fi 8471 ;; 8472 8473 mingw* | cygwin* | pw32* | os2* | cegcc*) 8474 # This hack is so that the source file can tell whether it is being 8475 # built for inclusion in a dll (and should export symbols for example). 8476 lt_prog_compiler_pic='-DDLL_EXPORT' 8477 ;; 8478 8479 hpux9* | hpux10* | hpux11*) 8480 lt_prog_compiler_wl='-Wl,' 8481 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8482 # not for PA HP-UX. 8483 case $host_cpu in 8484 hppa*64*|ia64*) 8485 # +Z the default 8486 ;; 8487 *) 8488 lt_prog_compiler_pic='+Z' 8489 ;; 8490 esac 8491 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8492 lt_prog_compiler_static='${wl}-a ${wl}archive' 8493 ;; 8494 8495 irix5* | irix6* | nonstopux*) 8496 lt_prog_compiler_wl='-Wl,' 8497 # PIC (with -KPIC) is the default. 8498 lt_prog_compiler_static='-non_shared' 8499 ;; 8500 8501 linux* | k*bsd*-gnu) 8502 case $cc_basename in 8503 # old Intel for x86_64 which still supported -KPIC. 8504 ecc*) 8505 lt_prog_compiler_wl='-Wl,' 8506 lt_prog_compiler_pic='-KPIC' 8507 lt_prog_compiler_static='-static' 8508 ;; 8509 # icc used to be incompatible with GCC. 8510 # ICC 10 doesn't accept -KPIC any more. 8511 icc* | ifort*) 8512 lt_prog_compiler_wl='-Wl,' 8513 lt_prog_compiler_pic='-fPIC' 8514 lt_prog_compiler_static='-static' 8515 ;; 8516 # Lahey Fortran 8.1. 8517 lf95*) 8518 lt_prog_compiler_wl='-Wl,' 8519 lt_prog_compiler_pic='--shared' 8520 lt_prog_compiler_static='--static' 8521 ;; 8522 pgcc* | pgf77* | pgf90* | pgf95*) 8523 # Portland Group compilers (*not* the Pentium gcc compiler, 8524 # which looks to be a dead project) 8525 lt_prog_compiler_wl='-Wl,' 8526 lt_prog_compiler_pic='-fpic' 8527 lt_prog_compiler_static='-Bstatic' 8528 ;; 8529 ccc*) 8530 lt_prog_compiler_wl='-Wl,' 8531 # All Alpha code is PIC. 8532 lt_prog_compiler_static='-non_shared' 8533 ;; 8534 xl*) 8535 # IBM XL C 8.0/Fortran 10.1 on PPC 8536 lt_prog_compiler_wl='-Wl,' 8537 lt_prog_compiler_pic='-qpic' 8538 lt_prog_compiler_static='-qstaticlink' 8539 ;; 8540 *) 8541 case `$CC -V 2>&1 | sed 5q` in 8542 *Sun\ C*) 8543 # Sun C 5.9 8544 lt_prog_compiler_pic='-KPIC' 8545 lt_prog_compiler_static='-Bstatic' 8546 lt_prog_compiler_wl='-Wl,' 8547 ;; 8548 *Sun\ F*) 8549 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8550 lt_prog_compiler_pic='-KPIC' 8551 lt_prog_compiler_static='-Bstatic' 8552 lt_prog_compiler_wl='' 8553 ;; 8554 esac 8555 ;; 8556 esac 8557 ;; 8558 8559 newsos6) 8560 lt_prog_compiler_pic='-KPIC' 8561 lt_prog_compiler_static='-Bstatic' 8562 ;; 8563 8564 *nto* | *qnx*) 8565 # QNX uses GNU C++, but need to define -shared option too, otherwise 8566 # it will coredump. 8567 lt_prog_compiler_pic='-fPIC -shared' 8568 ;; 8569 8570 osf3* | osf4* | osf5*) 8571 lt_prog_compiler_wl='-Wl,' 8572 # All OSF/1 code is PIC. 8573 lt_prog_compiler_static='-non_shared' 8574 ;; 8575 8576 rdos*) 8577 lt_prog_compiler_static='-non_shared' 8578 ;; 8579 8580 solaris*) 8581 lt_prog_compiler_pic='-KPIC' 8582 lt_prog_compiler_static='-Bstatic' 8583 case $cc_basename in 8584 f77* | f90* | f95*) 8585 lt_prog_compiler_wl='-Qoption ld ';; 8586 *) 8587 lt_prog_compiler_wl='-Wl,';; 8588 esac 8589 ;; 8590 8591 sunos4*) 8592 lt_prog_compiler_wl='-Qoption ld ' 8593 lt_prog_compiler_pic='-PIC' 8594 lt_prog_compiler_static='-Bstatic' 8595 ;; 8596 8597 sysv4 | sysv4.2uw2* | sysv4.3*) 8598 lt_prog_compiler_wl='-Wl,' 8599 lt_prog_compiler_pic='-KPIC' 8600 lt_prog_compiler_static='-Bstatic' 8601 ;; 8602 8603 sysv4*MP*) 8604 if test -d /usr/nec ;then 8605 lt_prog_compiler_pic='-Kconform_pic' 8606 lt_prog_compiler_static='-Bstatic' 8607 fi 8608 ;; 8609 8610 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8611 lt_prog_compiler_wl='-Wl,' 8612 lt_prog_compiler_pic='-KPIC' 8613 lt_prog_compiler_static='-Bstatic' 8614 ;; 8615 8616 unicos*) 8617 lt_prog_compiler_wl='-Wl,' 8618 lt_prog_compiler_can_build_shared=no 8619 ;; 8620 8621 uts4*) 8622 lt_prog_compiler_pic='-pic' 8623 lt_prog_compiler_static='-Bstatic' 8624 ;; 8625 8626 *) 8627 lt_prog_compiler_can_build_shared=no 8628 ;; 8629 esac 8630 fi 8631 8632case $host_os in 8633 # For platforms which do not support PIC, -DPIC is meaningless: 8634 *djgpp*) 8635 lt_prog_compiler_pic= 8636 ;; 8637 *) 8638 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8639 ;; 8640esac 8641{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8642$as_echo "$lt_prog_compiler_pic" >&6; } 8643 8644 8645 8646 8647 8648 8649# 8650# Check to make sure the PIC flag actually works. 8651# 8652if test -n "$lt_prog_compiler_pic"; then 8653 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8654$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8655if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 8656 $as_echo_n "(cached) " >&6 8657else 8658 lt_cv_prog_compiler_pic_works=no 8659 ac_outfile=conftest.$ac_objext 8660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8661 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8662 # Insert the option either (1) after the last *FLAGS variable, or 8663 # (2) before a word containing "conftest.", or (3) at the end. 8664 # Note that $ac_compile itself does not contain backslashes and begins 8665 # with a dollar sign (not a hyphen), so the echo should work correctly. 8666 # The option is referenced via a variable to avoid confusing sed. 8667 lt_compile=`echo "$ac_compile" | $SED \ 8668 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8669 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8670 -e 's:$: $lt_compiler_flag:'` 8671 (eval echo "\"\$as_me:8671: $lt_compile\"" >&5) 8672 (eval "$lt_compile" 2>conftest.err) 8673 ac_status=$? 8674 cat conftest.err >&5 8675 echo "$as_me:8675: \$? = $ac_status" >&5 8676 if (exit $ac_status) && test -s "$ac_outfile"; then 8677 # The compiler can only warn and ignore the option if not recognized 8678 # So say no if there are warnings other than the usual output. 8679 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8680 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8681 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8682 lt_cv_prog_compiler_pic_works=yes 8683 fi 8684 fi 8685 $RM conftest* 8686 8687fi 8688{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 8689$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8690 8691if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8692 case $lt_prog_compiler_pic in 8693 "" | " "*) ;; 8694 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8695 esac 8696else 8697 lt_prog_compiler_pic= 8698 lt_prog_compiler_can_build_shared=no 8699fi 8700 8701fi 8702 8703 8704 8705 8706 8707 8708# 8709# Check to make sure the static flag actually works. 8710# 8711wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8712{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8713$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8714if test "${lt_cv_prog_compiler_static_works+set}" = set; then 8715 $as_echo_n "(cached) " >&6 8716else 8717 lt_cv_prog_compiler_static_works=no 8718 save_LDFLAGS="$LDFLAGS" 8719 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8720 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8721 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8722 # The linker can only warn and ignore the option if not recognized 8723 # So say no if there are warnings 8724 if test -s conftest.err; then 8725 # Append any errors to the config.log. 8726 cat conftest.err 1>&5 8727 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8728 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8729 if diff conftest.exp conftest.er2 >/dev/null; then 8730 lt_cv_prog_compiler_static_works=yes 8731 fi 8732 else 8733 lt_cv_prog_compiler_static_works=yes 8734 fi 8735 fi 8736 $RM -r conftest* 8737 LDFLAGS="$save_LDFLAGS" 8738 8739fi 8740{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 8741$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8742 8743if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8744 : 8745else 8746 lt_prog_compiler_static= 8747fi 8748 8749 8750 8751 8752 8753 8754 8755 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8756$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8757if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8758 $as_echo_n "(cached) " >&6 8759else 8760 lt_cv_prog_compiler_c_o=no 8761 $RM -r conftest 2>/dev/null 8762 mkdir conftest 8763 cd conftest 8764 mkdir out 8765 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8766 8767 lt_compiler_flag="-o out/conftest2.$ac_objext" 8768 # Insert the option either (1) after the last *FLAGS variable, or 8769 # (2) before a word containing "conftest.", or (3) at the end. 8770 # Note that $ac_compile itself does not contain backslashes and begins 8771 # with a dollar sign (not a hyphen), so the echo should work correctly. 8772 lt_compile=`echo "$ac_compile" | $SED \ 8773 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8774 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8775 -e 's:$: $lt_compiler_flag:'` 8776 (eval echo "\"\$as_me:8776: $lt_compile\"" >&5) 8777 (eval "$lt_compile" 2>out/conftest.err) 8778 ac_status=$? 8779 cat out/conftest.err >&5 8780 echo "$as_me:8780: \$? = $ac_status" >&5 8781 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8782 then 8783 # The compiler can only warn and ignore the option if not recognized 8784 # So say no if there are warnings 8785 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8786 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8787 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8788 lt_cv_prog_compiler_c_o=yes 8789 fi 8790 fi 8791 chmod u+w . 2>&5 8792 $RM conftest* 8793 # SGI C++ compiler will create directory out/ii_files/ for 8794 # template instantiation 8795 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8796 $RM out/* && rmdir out 8797 cd .. 8798 $RM -r conftest 8799 $RM conftest* 8800 8801fi 8802{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8803$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8804 8805 8806 8807 8808 8809 8810 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8811$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8812if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8813 $as_echo_n "(cached) " >&6 8814else 8815 lt_cv_prog_compiler_c_o=no 8816 $RM -r conftest 2>/dev/null 8817 mkdir conftest 8818 cd conftest 8819 mkdir out 8820 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8821 8822 lt_compiler_flag="-o out/conftest2.$ac_objext" 8823 # Insert the option either (1) after the last *FLAGS variable, or 8824 # (2) before a word containing "conftest.", or (3) at the end. 8825 # Note that $ac_compile itself does not contain backslashes and begins 8826 # with a dollar sign (not a hyphen), so the echo should work correctly. 8827 lt_compile=`echo "$ac_compile" | $SED \ 8828 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8830 -e 's:$: $lt_compiler_flag:'` 8831 (eval echo "\"\$as_me:8831: $lt_compile\"" >&5) 8832 (eval "$lt_compile" 2>out/conftest.err) 8833 ac_status=$? 8834 cat out/conftest.err >&5 8835 echo "$as_me:8835: \$? = $ac_status" >&5 8836 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8837 then 8838 # The compiler can only warn and ignore the option if not recognized 8839 # So say no if there are warnings 8840 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8841 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8842 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8843 lt_cv_prog_compiler_c_o=yes 8844 fi 8845 fi 8846 chmod u+w . 2>&5 8847 $RM conftest* 8848 # SGI C++ compiler will create directory out/ii_files/ for 8849 # template instantiation 8850 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8851 $RM out/* && rmdir out 8852 cd .. 8853 $RM -r conftest 8854 $RM conftest* 8855 8856fi 8857{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8858$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8859 8860 8861 8862 8863hard_links="nottested" 8864if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8865 # do not overwrite the value of need_locks provided by the user 8866 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8867$as_echo_n "checking if we can lock with hard links... " >&6; } 8868 hard_links=yes 8869 $RM conftest* 8870 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8871 touch conftest.a 8872 ln conftest.a conftest.b 2>&5 || hard_links=no 8873 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8874 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8875$as_echo "$hard_links" >&6; } 8876 if test "$hard_links" = no; then 8877 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8878$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8879 need_locks=warn 8880 fi 8881else 8882 need_locks=no 8883fi 8884 8885 8886 8887 8888 8889 8890 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8891$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8892 8893 runpath_var= 8894 allow_undefined_flag= 8895 always_export_symbols=no 8896 archive_cmds= 8897 archive_expsym_cmds= 8898 compiler_needs_object=no 8899 enable_shared_with_static_runtimes=no 8900 export_dynamic_flag_spec= 8901 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8902 hardcode_automatic=no 8903 hardcode_direct=no 8904 hardcode_direct_absolute=no 8905 hardcode_libdir_flag_spec= 8906 hardcode_libdir_flag_spec_ld= 8907 hardcode_libdir_separator= 8908 hardcode_minus_L=no 8909 hardcode_shlibpath_var=unsupported 8910 inherit_rpath=no 8911 link_all_deplibs=unknown 8912 module_cmds= 8913 module_expsym_cmds= 8914 old_archive_from_new_cmds= 8915 old_archive_from_expsyms_cmds= 8916 thread_safe_flag_spec= 8917 whole_archive_flag_spec= 8918 # include_expsyms should be a list of space-separated symbols to be *always* 8919 # included in the symbol list 8920 include_expsyms= 8921 # exclude_expsyms can be an extended regexp of symbols to exclude 8922 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8923 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8924 # as well as any symbol that contains `d'. 8925 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8926 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8927 # platforms (ab)use it in PIC code, but their linkers get confused if 8928 # the symbol is explicitly referenced. Since portable code cannot 8929 # rely on this symbol name, it's probably fine to never include it in 8930 # preloaded symbol tables. 8931 # Exclude shared library initialization/finalization symbols. 8932 extract_expsyms_cmds= 8933 8934 case $host_os in 8935 cygwin* | mingw* | pw32* | cegcc*) 8936 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8937 # When not using gcc, we currently assume that we are using 8938 # Microsoft Visual C++. 8939 if test "$GCC" != yes; then 8940 with_gnu_ld=no 8941 fi 8942 ;; 8943 interix*) 8944 # we just hope/assume this is gcc and not c89 (= MSVC++) 8945 with_gnu_ld=yes 8946 ;; 8947 openbsd*) 8948 with_gnu_ld=no 8949 ;; 8950 esac 8951 8952 ld_shlibs=yes 8953 if test "$with_gnu_ld" = yes; then 8954 # If archive_cmds runs LD, not CC, wlarc should be empty 8955 wlarc='${wl}' 8956 8957 # Set some defaults for GNU ld with shared library support. These 8958 # are reset later if shared libraries are not supported. Putting them 8959 # here allows them to be overridden if necessary. 8960 runpath_var=LD_RUN_PATH 8961 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8962 export_dynamic_flag_spec='${wl}--export-dynamic' 8963 # ancient GNU ld didn't support --whole-archive et. al. 8964 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8965 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8966 else 8967 whole_archive_flag_spec= 8968 fi 8969 supports_anon_versioning=no 8970 case `$LD -v 2>&1` in 8971 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8972 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8973 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8974 *\ 2.11.*) ;; # other 2.11 versions 8975 *) supports_anon_versioning=yes ;; 8976 esac 8977 8978 # See if GNU ld supports shared libraries. 8979 case $host_os in 8980 aix[3-9]*) 8981 # On AIX/PPC, the GNU linker is very broken 8982 if test "$host_cpu" != ia64; then 8983 ld_shlibs=no 8984 cat <<_LT_EOF 1>&2 8985 8986*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8987*** to be unable to reliably create shared libraries on AIX. 8988*** Therefore, libtool is disabling shared libraries support. If you 8989*** really care for shared libraries, you may want to modify your PATH 8990*** so that a non-GNU linker is found, and then restart. 8991 8992_LT_EOF 8993 fi 8994 ;; 8995 8996 amigaos*) 8997 case $host_cpu in 8998 powerpc) 8999 # see comment about AmigaOS4 .so support 9000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9001 archive_expsym_cmds='' 9002 ;; 9003 m68k) 9004 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)' 9005 hardcode_libdir_flag_spec='-L$libdir' 9006 hardcode_minus_L=yes 9007 ;; 9008 esac 9009 ;; 9010 9011 beos*) 9012 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9013 allow_undefined_flag=unsupported 9014 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9015 # support --undefined. This deserves some investigation. FIXME 9016 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9017 else 9018 ld_shlibs=no 9019 fi 9020 ;; 9021 9022 cygwin* | mingw* | pw32* | cegcc*) 9023 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9024 # as there is no search path for DLLs. 9025 hardcode_libdir_flag_spec='-L$libdir' 9026 allow_undefined_flag=unsupported 9027 always_export_symbols=no 9028 enable_shared_with_static_runtimes=yes 9029 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9030 9031 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9033 # If the export-symbols file already is a .def file (1st line 9034 # is EXPORTS), use it as is; otherwise, prepend... 9035 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9036 cp $export_symbols $output_objdir/$soname.def; 9037 else 9038 echo EXPORTS > $output_objdir/$soname.def; 9039 cat $export_symbols >> $output_objdir/$soname.def; 9040 fi~ 9041 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9042 else 9043 ld_shlibs=no 9044 fi 9045 ;; 9046 9047 interix[3-9]*) 9048 hardcode_direct=no 9049 hardcode_shlibpath_var=no 9050 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9051 export_dynamic_flag_spec='${wl}-E' 9052 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9053 # Instead, shared libraries are loaded at an image base (0x10000000 by 9054 # default) and relocated if they conflict, which is a slow very memory 9055 # consuming and fragmenting process. To avoid this, we pick a random, 9056 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9057 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9058 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9059 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' 9060 ;; 9061 9062 gnu* | linux* | tpf* | k*bsd*-gnu) 9063 tmp_diet=no 9064 if test "$host_os" = linux-dietlibc; then 9065 case $cc_basename in 9066 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9067 esac 9068 fi 9069 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9070 && test "$tmp_diet" = no 9071 then 9072 tmp_addflag= 9073 tmp_sharedflag='-shared' 9074 case $cc_basename,$host_cpu in 9075 pgcc*) # Portland Group C compiler 9076 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' 9077 tmp_addflag=' $pic_flag' 9078 ;; 9079 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9080 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' 9081 tmp_addflag=' $pic_flag -Mnomain' ;; 9082 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9083 tmp_addflag=' -i_dynamic' ;; 9084 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9085 tmp_addflag=' -i_dynamic -nofor_main' ;; 9086 ifc* | ifort*) # Intel Fortran compiler 9087 tmp_addflag=' -nofor_main' ;; 9088 lf95*) # Lahey Fortran 8.1 9089 whole_archive_flag_spec= 9090 tmp_sharedflag='--shared' ;; 9091 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9092 tmp_sharedflag='-qmkshrobj' 9093 tmp_addflag= ;; 9094 esac 9095 case `$CC -V 2>&1 | sed 5q` in 9096 *Sun\ C*) # Sun C 5.9 9097 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' 9098 compiler_needs_object=yes 9099 tmp_sharedflag='-G' ;; 9100 *Sun\ F*) # Sun Fortran 8.3 9101 tmp_sharedflag='-G' ;; 9102 esac 9103 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9104 9105 if test "x$supports_anon_versioning" = xyes; then 9106 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9107 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9108 echo "local: *; };" >> $output_objdir/$libname.ver~ 9109 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9110 fi 9111 9112 case $cc_basename in 9113 xlf*) 9114 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9115 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9116 hardcode_libdir_flag_spec= 9117 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9118 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9119 if test "x$supports_anon_versioning" = xyes; then 9120 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9121 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9122 echo "local: *; };" >> $output_objdir/$libname.ver~ 9123 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9124 fi 9125 ;; 9126 esac 9127 else 9128 ld_shlibs=no 9129 fi 9130 ;; 9131 9132 netbsd*) 9133 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9134 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9135 wlarc= 9136 else 9137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9138 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9139 fi 9140 ;; 9141 9142 solaris*) 9143 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9144 ld_shlibs=no 9145 cat <<_LT_EOF 1>&2 9146 9147*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9148*** create shared libraries on Solaris systems. Therefore, libtool 9149*** is disabling shared libraries support. We urge you to upgrade GNU 9150*** binutils to release 2.9.1 or newer. Another option is to modify 9151*** your PATH or compiler configuration so that the native linker is 9152*** used, and then restart. 9153 9154_LT_EOF 9155 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9157 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9158 else 9159 ld_shlibs=no 9160 fi 9161 ;; 9162 9163 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9164 case `$LD -v 2>&1` in 9165 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9166 ld_shlibs=no 9167 cat <<_LT_EOF 1>&2 9168 9169*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9170*** reliably create shared libraries on SCO systems. Therefore, libtool 9171*** is disabling shared libraries support. We urge you to upgrade GNU 9172*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9173*** your PATH or compiler configuration so that the native linker is 9174*** used, and then restart. 9175 9176_LT_EOF 9177 ;; 9178 *) 9179 # For security reasons, it is highly recommended that you always 9180 # use absolute paths for naming shared libraries, and exclude the 9181 # DT_RUNPATH tag from executables and libraries. But doing so 9182 # requires that you compile everything twice, which is a pain. 9183 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9184 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9186 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9187 else 9188 ld_shlibs=no 9189 fi 9190 ;; 9191 esac 9192 ;; 9193 9194 sunos4*) 9195 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9196 wlarc= 9197 hardcode_direct=yes 9198 hardcode_shlibpath_var=no 9199 ;; 9200 9201 *) 9202 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9205 else 9206 ld_shlibs=no 9207 fi 9208 ;; 9209 esac 9210 9211 if test "$ld_shlibs" = no; then 9212 runpath_var= 9213 hardcode_libdir_flag_spec= 9214 export_dynamic_flag_spec= 9215 whole_archive_flag_spec= 9216 fi 9217 else 9218 # PORTME fill in a description of your system's linker (not GNU ld) 9219 case $host_os in 9220 aix3*) 9221 allow_undefined_flag=unsupported 9222 always_export_symbols=yes 9223 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' 9224 # Note: this linker hardcodes the directories in LIBPATH if there 9225 # are no directories specified by -L. 9226 hardcode_minus_L=yes 9227 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9228 # Neither direct hardcoding nor static linking is supported with a 9229 # broken collect2. 9230 hardcode_direct=unsupported 9231 fi 9232 ;; 9233 9234 aix[4-9]*) 9235 if test "$host_cpu" = ia64; then 9236 # On IA64, the linker does run time linking by default, so we don't 9237 # have to do anything special. 9238 aix_use_runtimelinking=no 9239 exp_sym_flag='-Bexport' 9240 no_entry_flag="" 9241 else 9242 # If we're using GNU nm, then we don't want the "-C" option. 9243 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9244 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9245 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' 9246 else 9247 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' 9248 fi 9249 aix_use_runtimelinking=no 9250 9251 # Test if we are trying to use run time linking or normal 9252 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9253 # need to do runtime linking. 9254 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9255 for ld_flag in $LDFLAGS; do 9256 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9257 aix_use_runtimelinking=yes 9258 break 9259 fi 9260 done 9261 ;; 9262 esac 9263 9264 exp_sym_flag='-bexport' 9265 no_entry_flag='-bnoentry' 9266 fi 9267 9268 # When large executables or shared objects are built, AIX ld can 9269 # have problems creating the table of contents. If linking a library 9270 # or program results in "error TOC overflow" add -mminimal-toc to 9271 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9272 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9273 9274 archive_cmds='' 9275 hardcode_direct=yes 9276 hardcode_direct_absolute=yes 9277 hardcode_libdir_separator=':' 9278 link_all_deplibs=yes 9279 file_list_spec='${wl}-f,' 9280 9281 if test "$GCC" = yes; then 9282 case $host_os in aix4.[012]|aix4.[012].*) 9283 # We only want to do this on AIX 4.2 and lower, the check 9284 # below for broken collect2 doesn't work under 4.3+ 9285 collect2name=`${CC} -print-prog-name=collect2` 9286 if test -f "$collect2name" && 9287 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9288 then 9289 # We have reworked collect2 9290 : 9291 else 9292 # We have old collect2 9293 hardcode_direct=unsupported 9294 # It fails to find uninstalled libraries when the uninstalled 9295 # path is not listed in the libpath. Setting hardcode_minus_L 9296 # to unsupported forces relinking 9297 hardcode_minus_L=yes 9298 hardcode_libdir_flag_spec='-L$libdir' 9299 hardcode_libdir_separator= 9300 fi 9301 ;; 9302 esac 9303 shared_flag='-shared' 9304 if test "$aix_use_runtimelinking" = yes; then 9305 shared_flag="$shared_flag "'${wl}-G' 9306 fi 9307 else 9308 # not using gcc 9309 if test "$host_cpu" = ia64; then 9310 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9311 # chokes on -Wl,-G. The following line is correct: 9312 shared_flag='-G' 9313 else 9314 if test "$aix_use_runtimelinking" = yes; then 9315 shared_flag='${wl}-G' 9316 else 9317 shared_flag='${wl}-bM:SRE' 9318 fi 9319 fi 9320 fi 9321 9322 export_dynamic_flag_spec='${wl}-bexpall' 9323 # It seems that -bexpall does not export symbols beginning with 9324 # underscore (_), so it is better to generate a list of symbols to export. 9325 always_export_symbols=yes 9326 if test "$aix_use_runtimelinking" = yes; then 9327 # Warning - without using the other runtime loading flags (-brtl), 9328 # -berok will link without error, but may produce a broken library. 9329 allow_undefined_flag='-berok' 9330 # Determine the default libpath from the value encoded in an 9331 # empty executable. 9332 cat >conftest.$ac_ext <<_ACEOF 9333/* confdefs.h. */ 9334_ACEOF 9335cat confdefs.h >>conftest.$ac_ext 9336cat >>conftest.$ac_ext <<_ACEOF 9337/* end confdefs.h. */ 9338 9339int 9340main () 9341{ 9342 9343 ; 9344 return 0; 9345} 9346_ACEOF 9347rm -f conftest.$ac_objext conftest$ac_exeext 9348if { (ac_try="$ac_link" 9349case "(($ac_try" in 9350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9351 *) ac_try_echo=$ac_try;; 9352esac 9353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9354$as_echo "$ac_try_echo") >&5 9355 (eval "$ac_link") 2>conftest.er1 9356 ac_status=$? 9357 grep -v '^ *+' conftest.er1 >conftest.err 9358 rm -f conftest.er1 9359 cat conftest.err >&5 9360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9361 (exit $ac_status); } && { 9362 test -z "$ac_c_werror_flag" || 9363 test ! -s conftest.err 9364 } && test -s conftest$ac_exeext && { 9365 test "$cross_compiling" = yes || 9366 $as_test_x conftest$ac_exeext 9367 }; then 9368 9369lt_aix_libpath_sed=' 9370 /Import File Strings/,/^$/ { 9371 /^0/ { 9372 s/^0 *\(.*\)$/\1/ 9373 p 9374 } 9375 }' 9376aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9377# Check for a 64-bit object if we didn't find anything. 9378if test -z "$aix_libpath"; then 9379 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9380fi 9381else 9382 $as_echo "$as_me: failed program was:" >&5 9383sed 's/^/| /' conftest.$ac_ext >&5 9384 9385 9386fi 9387 9388rm -rf conftest.dSYM 9389rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9390 conftest$ac_exeext conftest.$ac_ext 9391if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9392 9393 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9394 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" 9395 else 9396 if test "$host_cpu" = ia64; then 9397 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9398 allow_undefined_flag="-z nodefs" 9399 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" 9400 else 9401 # Determine the default libpath from the value encoded in an 9402 # empty executable. 9403 cat >conftest.$ac_ext <<_ACEOF 9404/* confdefs.h. */ 9405_ACEOF 9406cat confdefs.h >>conftest.$ac_ext 9407cat >>conftest.$ac_ext <<_ACEOF 9408/* end confdefs.h. */ 9409 9410int 9411main () 9412{ 9413 9414 ; 9415 return 0; 9416} 9417_ACEOF 9418rm -f conftest.$ac_objext conftest$ac_exeext 9419if { (ac_try="$ac_link" 9420case "(($ac_try" in 9421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9422 *) ac_try_echo=$ac_try;; 9423esac 9424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9425$as_echo "$ac_try_echo") >&5 9426 (eval "$ac_link") 2>conftest.er1 9427 ac_status=$? 9428 grep -v '^ *+' conftest.er1 >conftest.err 9429 rm -f conftest.er1 9430 cat conftest.err >&5 9431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9432 (exit $ac_status); } && { 9433 test -z "$ac_c_werror_flag" || 9434 test ! -s conftest.err 9435 } && test -s conftest$ac_exeext && { 9436 test "$cross_compiling" = yes || 9437 $as_test_x conftest$ac_exeext 9438 }; then 9439 9440lt_aix_libpath_sed=' 9441 /Import File Strings/,/^$/ { 9442 /^0/ { 9443 s/^0 *\(.*\)$/\1/ 9444 p 9445 } 9446 }' 9447aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9448# Check for a 64-bit object if we didn't find anything. 9449if test -z "$aix_libpath"; then 9450 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9451fi 9452else 9453 $as_echo "$as_me: failed program was:" >&5 9454sed 's/^/| /' conftest.$ac_ext >&5 9455 9456 9457fi 9458 9459rm -rf conftest.dSYM 9460rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9461 conftest$ac_exeext conftest.$ac_ext 9462if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9463 9464 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9465 # Warning - without using the other run time loading flags, 9466 # -berok will link without error, but may produce a broken library. 9467 no_undefined_flag=' ${wl}-bernotok' 9468 allow_undefined_flag=' ${wl}-berok' 9469 # Exported symbols can be pulled into shared objects from archives 9470 whole_archive_flag_spec='$convenience' 9471 archive_cmds_need_lc=yes 9472 # This is similar to how AIX traditionally builds its shared libraries. 9473 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' 9474 fi 9475 fi 9476 ;; 9477 9478 amigaos*) 9479 case $host_cpu in 9480 powerpc) 9481 # see comment about AmigaOS4 .so support 9482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9483 archive_expsym_cmds='' 9484 ;; 9485 m68k) 9486 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)' 9487 hardcode_libdir_flag_spec='-L$libdir' 9488 hardcode_minus_L=yes 9489 ;; 9490 esac 9491 ;; 9492 9493 bsdi[45]*) 9494 export_dynamic_flag_spec=-rdynamic 9495 ;; 9496 9497 cygwin* | mingw* | pw32* | cegcc*) 9498 # When not using gcc, we currently assume that we are using 9499 # Microsoft Visual C++. 9500 # hardcode_libdir_flag_spec is actually meaningless, as there is 9501 # no search path for DLLs. 9502 hardcode_libdir_flag_spec=' ' 9503 allow_undefined_flag=unsupported 9504 # Tell ltmain to make .lib files, not .a files. 9505 libext=lib 9506 # Tell ltmain to make .dll files, not .so files. 9507 shrext_cmds=".dll" 9508 # FIXME: Setting linknames here is a bad hack. 9509 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9510 # The linker will automatically build a .lib file if we build a DLL. 9511 old_archive_from_new_cmds='true' 9512 # FIXME: Should let the user specify the lib program. 9513 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9514 fix_srcfile_path='`cygpath -w "$srcfile"`' 9515 enable_shared_with_static_runtimes=yes 9516 ;; 9517 9518 darwin* | rhapsody*) 9519 9520 9521 archive_cmds_need_lc=no 9522 hardcode_direct=no 9523 hardcode_automatic=yes 9524 hardcode_shlibpath_var=unsupported 9525 whole_archive_flag_spec='' 9526 link_all_deplibs=yes 9527 allow_undefined_flag="$_lt_dar_allow_undefined" 9528 case $cc_basename in 9529 ifort*) _lt_dar_can_shared=yes ;; 9530 *) _lt_dar_can_shared=$GCC ;; 9531 esac 9532 if test "$_lt_dar_can_shared" = "yes"; then 9533 output_verbose_link_cmd=echo 9534 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9535 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9536 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}" 9537 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}" 9538 9539 else 9540 ld_shlibs=no 9541 fi 9542 9543 ;; 9544 9545 dgux*) 9546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9547 hardcode_libdir_flag_spec='-L$libdir' 9548 hardcode_shlibpath_var=no 9549 ;; 9550 9551 freebsd1*) 9552 ld_shlibs=no 9553 ;; 9554 9555 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9556 # support. Future versions do this automatically, but an explicit c++rt0.o 9557 # does not break anything, and helps significantly (at the cost of a little 9558 # extra space). 9559 freebsd2.2*) 9560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9561 hardcode_libdir_flag_spec='-R$libdir' 9562 hardcode_direct=yes 9563 hardcode_shlibpath_var=no 9564 ;; 9565 9566 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9567 freebsd2*) 9568 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9569 hardcode_direct=yes 9570 hardcode_minus_L=yes 9571 hardcode_shlibpath_var=no 9572 ;; 9573 9574 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9575 freebsd* | dragonfly*) 9576 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9577 hardcode_libdir_flag_spec='-R$libdir' 9578 hardcode_direct=yes 9579 hardcode_shlibpath_var=no 9580 ;; 9581 9582 hpux9*) 9583 if test "$GCC" = yes; then 9584 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' 9585 else 9586 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' 9587 fi 9588 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9589 hardcode_libdir_separator=: 9590 hardcode_direct=yes 9591 9592 # hardcode_minus_L: Not really in the search PATH, 9593 # but as the default location of the library. 9594 hardcode_minus_L=yes 9595 export_dynamic_flag_spec='${wl}-E' 9596 ;; 9597 9598 hpux10*) 9599 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9600 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9601 else 9602 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9603 fi 9604 if test "$with_gnu_ld" = no; then 9605 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9606 hardcode_libdir_flag_spec_ld='+b $libdir' 9607 hardcode_libdir_separator=: 9608 hardcode_direct=yes 9609 hardcode_direct_absolute=yes 9610 export_dynamic_flag_spec='${wl}-E' 9611 # hardcode_minus_L: Not really in the search PATH, 9612 # but as the default location of the library. 9613 hardcode_minus_L=yes 9614 fi 9615 ;; 9616 9617 hpux11*) 9618 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9619 case $host_cpu in 9620 hppa*64*) 9621 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9622 ;; 9623 ia64*) 9624 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9625 ;; 9626 *) 9627 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9628 ;; 9629 esac 9630 else 9631 case $host_cpu in 9632 hppa*64*) 9633 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9634 ;; 9635 ia64*) 9636 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9637 ;; 9638 *) 9639 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9640 ;; 9641 esac 9642 fi 9643 if test "$with_gnu_ld" = no; then 9644 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9645 hardcode_libdir_separator=: 9646 9647 case $host_cpu in 9648 hppa*64*|ia64*) 9649 hardcode_direct=no 9650 hardcode_shlibpath_var=no 9651 ;; 9652 *) 9653 hardcode_direct=yes 9654 hardcode_direct_absolute=yes 9655 export_dynamic_flag_spec='${wl}-E' 9656 9657 # hardcode_minus_L: Not really in the search PATH, 9658 # but as the default location of the library. 9659 hardcode_minus_L=yes 9660 ;; 9661 esac 9662 fi 9663 ;; 9664 9665 irix5* | irix6* | nonstopux*) 9666 if test "$GCC" = yes; then 9667 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' 9668 # Try to use the -exported_symbol ld option, if it does not 9669 # work, assume that -exports_file does not work either and 9670 # implicitly export all symbols. 9671 save_LDFLAGS="$LDFLAGS" 9672 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9673 cat >conftest.$ac_ext <<_ACEOF 9674int foo(void) {} 9675_ACEOF 9676rm -f conftest.$ac_objext conftest$ac_exeext 9677if { (ac_try="$ac_link" 9678case "(($ac_try" in 9679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9680 *) ac_try_echo=$ac_try;; 9681esac 9682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9683$as_echo "$ac_try_echo") >&5 9684 (eval "$ac_link") 2>conftest.er1 9685 ac_status=$? 9686 grep -v '^ *+' conftest.er1 >conftest.err 9687 rm -f conftest.er1 9688 cat conftest.err >&5 9689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9690 (exit $ac_status); } && { 9691 test -z "$ac_c_werror_flag" || 9692 test ! -s conftest.err 9693 } && test -s conftest$ac_exeext && { 9694 test "$cross_compiling" = yes || 9695 $as_test_x conftest$ac_exeext 9696 }; then 9697 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' 9698 9699else 9700 $as_echo "$as_me: failed program was:" >&5 9701sed 's/^/| /' conftest.$ac_ext >&5 9702 9703 9704fi 9705 9706rm -rf conftest.dSYM 9707rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9708 conftest$ac_exeext conftest.$ac_ext 9709 LDFLAGS="$save_LDFLAGS" 9710 else 9711 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' 9712 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' 9713 fi 9714 archive_cmds_need_lc='no' 9715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9716 hardcode_libdir_separator=: 9717 inherit_rpath=yes 9718 link_all_deplibs=yes 9719 ;; 9720 9721 netbsd*) 9722 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9724 else 9725 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9726 fi 9727 hardcode_libdir_flag_spec='-R$libdir' 9728 hardcode_direct=yes 9729 hardcode_shlibpath_var=no 9730 ;; 9731 9732 newsos6) 9733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9734 hardcode_direct=yes 9735 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9736 hardcode_libdir_separator=: 9737 hardcode_shlibpath_var=no 9738 ;; 9739 9740 *nto* | *qnx*) 9741 ;; 9742 9743 openbsd*) 9744 if test -f /usr/libexec/ld.so; then 9745 hardcode_direct=yes 9746 hardcode_shlibpath_var=no 9747 hardcode_direct_absolute=yes 9748 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9749 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9750 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9751 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9752 export_dynamic_flag_spec='${wl}-E' 9753 else 9754 case $host_os in 9755 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9756 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9757 hardcode_libdir_flag_spec='-R$libdir' 9758 ;; 9759 *) 9760 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9761 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9762 ;; 9763 esac 9764 fi 9765 else 9766 ld_shlibs=no 9767 fi 9768 ;; 9769 9770 os2*) 9771 hardcode_libdir_flag_spec='-L$libdir' 9772 hardcode_minus_L=yes 9773 allow_undefined_flag=unsupported 9774 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' 9775 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9776 ;; 9777 9778 osf3*) 9779 if test "$GCC" = yes; then 9780 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9781 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' 9782 else 9783 allow_undefined_flag=' -expect_unresolved \*' 9784 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' 9785 fi 9786 archive_cmds_need_lc='no' 9787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9788 hardcode_libdir_separator=: 9789 ;; 9790 9791 osf4* | osf5*) # as osf3* with the addition of -msym flag 9792 if test "$GCC" = yes; then 9793 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9794 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' 9795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9796 else 9797 allow_undefined_flag=' -expect_unresolved \*' 9798 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' 9799 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~ 9800 $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' 9801 9802 # Both c and cxx compiler support -rpath directly 9803 hardcode_libdir_flag_spec='-rpath $libdir' 9804 fi 9805 archive_cmds_need_lc='no' 9806 hardcode_libdir_separator=: 9807 ;; 9808 9809 solaris*) 9810 no_undefined_flag=' -z defs' 9811 if test "$GCC" = yes; then 9812 wlarc='${wl}' 9813 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9814 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9815 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9816 else 9817 case `$CC -V 2>&1` in 9818 *"Compilers 5.0"*) 9819 wlarc='' 9820 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9821 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9822 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9823 ;; 9824 *) 9825 wlarc='${wl}' 9826 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9827 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9828 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9829 ;; 9830 esac 9831 fi 9832 hardcode_libdir_flag_spec='-R$libdir' 9833 hardcode_shlibpath_var=no 9834 case $host_os in 9835 solaris2.[0-5] | solaris2.[0-5].*) ;; 9836 *) 9837 # The compiler driver will combine and reorder linker options, 9838 # but understands `-z linker_flag'. GCC discards it without `$wl', 9839 # but is careful enough not to reorder. 9840 # Supported since Solaris 2.6 (maybe 2.5.1?) 9841 if test "$GCC" = yes; then 9842 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9843 else 9844 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9845 fi 9846 ;; 9847 esac 9848 link_all_deplibs=yes 9849 ;; 9850 9851 sunos4*) 9852 if test "x$host_vendor" = xsequent; then 9853 # Use $CC to link under sequent, because it throws in some extra .o 9854 # files that make .init and .fini sections work. 9855 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9856 else 9857 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9858 fi 9859 hardcode_libdir_flag_spec='-L$libdir' 9860 hardcode_direct=yes 9861 hardcode_minus_L=yes 9862 hardcode_shlibpath_var=no 9863 ;; 9864 9865 sysv4) 9866 case $host_vendor in 9867 sni) 9868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9869 hardcode_direct=yes # is this really true??? 9870 ;; 9871 siemens) 9872 ## LD is ld it makes a PLAMLIB 9873 ## CC just makes a GrossModule. 9874 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9875 reload_cmds='$CC -r -o $output$reload_objs' 9876 hardcode_direct=no 9877 ;; 9878 motorola) 9879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9880 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9881 ;; 9882 esac 9883 runpath_var='LD_RUN_PATH' 9884 hardcode_shlibpath_var=no 9885 ;; 9886 9887 sysv4.3*) 9888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9889 hardcode_shlibpath_var=no 9890 export_dynamic_flag_spec='-Bexport' 9891 ;; 9892 9893 sysv4*MP*) 9894 if test -d /usr/nec; then 9895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9896 hardcode_shlibpath_var=no 9897 runpath_var=LD_RUN_PATH 9898 hardcode_runpath_var=yes 9899 ld_shlibs=yes 9900 fi 9901 ;; 9902 9903 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9904 no_undefined_flag='${wl}-z,text' 9905 archive_cmds_need_lc=no 9906 hardcode_shlibpath_var=no 9907 runpath_var='LD_RUN_PATH' 9908 9909 if test "$GCC" = yes; then 9910 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9911 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9912 else 9913 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9914 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9915 fi 9916 ;; 9917 9918 sysv5* | sco3.2v5* | sco5v6*) 9919 # Note: We can NOT use -z defs as we might desire, because we do not 9920 # link with -lc, and that would cause any symbols used from libc to 9921 # always be unresolved, which means just about no library would 9922 # ever link correctly. If we're not using GNU ld we use -z text 9923 # though, which does catch some bad symbols but isn't as heavy-handed 9924 # as -z defs. 9925 no_undefined_flag='${wl}-z,text' 9926 allow_undefined_flag='${wl}-z,nodefs' 9927 archive_cmds_need_lc=no 9928 hardcode_shlibpath_var=no 9929 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9930 hardcode_libdir_separator=':' 9931 link_all_deplibs=yes 9932 export_dynamic_flag_spec='${wl}-Bexport' 9933 runpath_var='LD_RUN_PATH' 9934 9935 if test "$GCC" = yes; then 9936 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9937 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9938 else 9939 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9940 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9941 fi 9942 ;; 9943 9944 uts4*) 9945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9946 hardcode_libdir_flag_spec='-L$libdir' 9947 hardcode_shlibpath_var=no 9948 ;; 9949 9950 *) 9951 ld_shlibs=no 9952 ;; 9953 esac 9954 9955 if test x$host_vendor = xsni; then 9956 case $host in 9957 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9958 export_dynamic_flag_spec='${wl}-Blargedynsym' 9959 ;; 9960 esac 9961 fi 9962 fi 9963 9964{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9965$as_echo "$ld_shlibs" >&6; } 9966test "$ld_shlibs" = no && can_build_shared=no 9967 9968with_gnu_ld=$with_gnu_ld 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984# 9985# Do we need to explicitly link libc? 9986# 9987case "x$archive_cmds_need_lc" in 9988x|xyes) 9989 # Assume -lc should be added 9990 archive_cmds_need_lc=yes 9991 9992 if test "$enable_shared" = yes && test "$GCC" = yes; then 9993 case $archive_cmds in 9994 *'~'*) 9995 # FIXME: we may have to deal with multi-command sequences. 9996 ;; 9997 '$CC '*) 9998 # Test whether the compiler implicitly links with -lc since on some 9999 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10000 # to ld, don't add -lc before -lgcc. 10001 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 10002$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10003 $RM conftest* 10004 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10005 10006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10007 (eval $ac_compile) 2>&5 10008 ac_status=$? 10009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10010 (exit $ac_status); } 2>conftest.err; then 10011 soname=conftest 10012 lib=conftest 10013 libobjs=conftest.$ac_objext 10014 deplibs= 10015 wl=$lt_prog_compiler_wl 10016 pic_flag=$lt_prog_compiler_pic 10017 compiler_flags=-v 10018 linker_flags=-v 10019 verstring= 10020 output_objdir=. 10021 libname=conftest 10022 lt_save_allow_undefined_flag=$allow_undefined_flag 10023 allow_undefined_flag= 10024 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 10025 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10026 ac_status=$? 10027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10028 (exit $ac_status); } 10029 then 10030 archive_cmds_need_lc=no 10031 else 10032 archive_cmds_need_lc=yes 10033 fi 10034 allow_undefined_flag=$lt_save_allow_undefined_flag 10035 else 10036 cat conftest.err 1>&5 10037 fi 10038 $RM conftest* 10039 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 10040$as_echo "$archive_cmds_need_lc" >&6; } 10041 ;; 10042 esac 10043 fi 10044 ;; 10045esac 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10204$as_echo_n "checking dynamic linker characteristics... " >&6; } 10205 10206if test "$GCC" = yes; then 10207 case $host_os in 10208 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10209 *) lt_awk_arg="/^libraries:/" ;; 10210 esac 10211 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10212 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10213 # if the path contains ";" then we assume it to be the separator 10214 # otherwise default to the standard path separator (i.e. ":") - it is 10215 # assumed that no part of a normal pathname contains ";" but that should 10216 # okay in the real world where ";" in dirpaths is itself problematic. 10217 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10218 else 10219 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10220 fi 10221 # Ok, now we have the path, separated by spaces, we can step through it 10222 # and add multilib dir if necessary. 10223 lt_tmp_lt_search_path_spec= 10224 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10225 for lt_sys_path in $lt_search_path_spec; do 10226 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10227 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10228 else 10229 test -d "$lt_sys_path" && \ 10230 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10231 fi 10232 done 10233 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10234BEGIN {RS=" "; FS="/|\n";} { 10235 lt_foo=""; 10236 lt_count=0; 10237 for (lt_i = NF; lt_i > 0; lt_i--) { 10238 if ($lt_i != "" && $lt_i != ".") { 10239 if ($lt_i == "..") { 10240 lt_count++; 10241 } else { 10242 if (lt_count == 0) { 10243 lt_foo="/" $lt_i lt_foo; 10244 } else { 10245 lt_count--; 10246 } 10247 } 10248 } 10249 } 10250 if (lt_foo != "") { lt_freq[lt_foo]++; } 10251 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10252}'` 10253 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10254else 10255 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10256fi 10257library_names_spec= 10258libname_spec='lib$name' 10259soname_spec= 10260shrext_cmds=".so" 10261postinstall_cmds= 10262postuninstall_cmds= 10263finish_cmds= 10264finish_eval= 10265shlibpath_var= 10266shlibpath_overrides_runpath=unknown 10267version_type=none 10268dynamic_linker="$host_os ld.so" 10269sys_lib_dlsearch_path_spec="/lib /usr/lib" 10270need_lib_prefix=unknown 10271hardcode_into_libs=no 10272 10273# when you set need_version to no, make sure it does not cause -set_version 10274# flags to be left without arguments 10275need_version=unknown 10276 10277case $host_os in 10278aix3*) 10279 version_type=linux 10280 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10281 shlibpath_var=LIBPATH 10282 10283 # AIX 3 has no versioning support, so we append a major version to the name. 10284 soname_spec='${libname}${release}${shared_ext}$major' 10285 ;; 10286 10287aix[4-9]*) 10288 version_type=linux 10289 need_lib_prefix=no 10290 need_version=no 10291 hardcode_into_libs=yes 10292 if test "$host_cpu" = ia64; then 10293 # AIX 5 supports IA64 10294 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10295 shlibpath_var=LD_LIBRARY_PATH 10296 else 10297 # With GCC up to 2.95.x, collect2 would create an import file 10298 # for dependence libraries. The import file would start with 10299 # the line `#! .'. This would cause the generated library to 10300 # depend on `.', always an invalid library. This was fixed in 10301 # development snapshots of GCC prior to 3.0. 10302 case $host_os in 10303 aix4 | aix4.[01] | aix4.[01].*) 10304 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10305 echo ' yes ' 10306 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10307 : 10308 else 10309 can_build_shared=no 10310 fi 10311 ;; 10312 esac 10313 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10314 # soname into executable. Probably we can add versioning support to 10315 # collect2, so additional links can be useful in future. 10316 if test "$aix_use_runtimelinking" = yes; then 10317 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10318 # instead of lib<name>.a to let people know that these are not 10319 # typical AIX shared libraries. 10320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10321 else 10322 # We preserve .a as extension for shared libraries through AIX4.2 10323 # and later when we are not doing run time linking. 10324 library_names_spec='${libname}${release}.a $libname.a' 10325 soname_spec='${libname}${release}${shared_ext}$major' 10326 fi 10327 shlibpath_var=LIBPATH 10328 fi 10329 ;; 10330 10331amigaos*) 10332 case $host_cpu in 10333 powerpc) 10334 # Since July 2007 AmigaOS4 officially supports .so libraries. 10335 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10337 ;; 10338 m68k) 10339 library_names_spec='$libname.ixlibrary $libname.a' 10340 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10341 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' 10342 ;; 10343 esac 10344 ;; 10345 10346beos*) 10347 library_names_spec='${libname}${shared_ext}' 10348 dynamic_linker="$host_os ld.so" 10349 shlibpath_var=LIBRARY_PATH 10350 ;; 10351 10352bsdi[45]*) 10353 version_type=linux 10354 need_version=no 10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10356 soname_spec='${libname}${release}${shared_ext}$major' 10357 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10358 shlibpath_var=LD_LIBRARY_PATH 10359 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10360 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10361 # the default ld.so.conf also contains /usr/contrib/lib and 10362 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10363 # libtool to hard-code these into programs 10364 ;; 10365 10366cygwin* | mingw* | pw32* | cegcc*) 10367 version_type=windows 10368 shrext_cmds=".dll" 10369 need_version=no 10370 need_lib_prefix=no 10371 10372 case $GCC,$host_os in 10373 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10374 library_names_spec='$libname.dll.a' 10375 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10376 postinstall_cmds='base_file=`basename \${file}`~ 10377 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10378 dldir=$destdir/`dirname \$dlpath`~ 10379 test -d \$dldir || mkdir -p \$dldir~ 10380 $install_prog $dir/$dlname \$dldir/$dlname~ 10381 chmod a+x \$dldir/$dlname~ 10382 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10383 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10384 fi' 10385 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10386 dlpath=$dir/\$dldll~ 10387 $RM \$dlpath' 10388 shlibpath_overrides_runpath=yes 10389 10390 case $host_os in 10391 cygwin*) 10392 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10393 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10394 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10395 ;; 10396 mingw* | cegcc*) 10397 # MinGW DLLs use traditional 'lib' prefix 10398 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10399 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10400 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10401 # It is most probably a Windows format PATH printed by 10402 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10403 # path with ; separators, and with drive letters. We can handle the 10404 # drive letters (cygwin fileutils understands them), so leave them, 10405 # especially as we might pass files found there to a mingw objdump, 10406 # which wouldn't understand a cygwinified path. Ahh. 10407 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10408 else 10409 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10410 fi 10411 ;; 10412 pw32*) 10413 # pw32 DLLs use 'pw' prefix rather than 'lib' 10414 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10415 ;; 10416 esac 10417 ;; 10418 10419 *) 10420 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10421 ;; 10422 esac 10423 dynamic_linker='Win32 ld.exe' 10424 # FIXME: first we should search . and the directory the executable is in 10425 shlibpath_var=PATH 10426 ;; 10427 10428darwin* | rhapsody*) 10429 dynamic_linker="$host_os dyld" 10430 version_type=darwin 10431 need_lib_prefix=no 10432 need_version=no 10433 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10434 soname_spec='${libname}${release}${major}$shared_ext' 10435 shlibpath_overrides_runpath=yes 10436 shlibpath_var=DYLD_LIBRARY_PATH 10437 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10438 10439 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10440 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10441 ;; 10442 10443dgux*) 10444 version_type=linux 10445 need_lib_prefix=no 10446 need_version=no 10447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10448 soname_spec='${libname}${release}${shared_ext}$major' 10449 shlibpath_var=LD_LIBRARY_PATH 10450 ;; 10451 10452freebsd1*) 10453 dynamic_linker=no 10454 ;; 10455 10456freebsd* | dragonfly*) 10457 # DragonFly does not have aout. When/if they implement a new 10458 # versioning mechanism, adjust this. 10459 if test -x /usr/bin/objformat; then 10460 objformat=`/usr/bin/objformat` 10461 else 10462 case $host_os in 10463 freebsd[123]*) objformat=aout ;; 10464 *) objformat=elf ;; 10465 esac 10466 fi 10467 version_type=freebsd-$objformat 10468 case $version_type in 10469 freebsd-elf*) 10470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10471 need_version=no 10472 need_lib_prefix=no 10473 ;; 10474 freebsd-*) 10475 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10476 need_version=yes 10477 ;; 10478 esac 10479 shlibpath_var=LD_LIBRARY_PATH 10480 case $host_os in 10481 freebsd2*) 10482 shlibpath_overrides_runpath=yes 10483 ;; 10484 freebsd3.[01]* | freebsdelf3.[01]*) 10485 shlibpath_overrides_runpath=yes 10486 hardcode_into_libs=yes 10487 ;; 10488 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10489 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10490 shlibpath_overrides_runpath=no 10491 hardcode_into_libs=yes 10492 ;; 10493 *) # from 4.6 on, and DragonFly 10494 shlibpath_overrides_runpath=yes 10495 hardcode_into_libs=yes 10496 ;; 10497 esac 10498 ;; 10499 10500gnu*) 10501 version_type=linux 10502 need_lib_prefix=no 10503 need_version=no 10504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10505 soname_spec='${libname}${release}${shared_ext}$major' 10506 shlibpath_var=LD_LIBRARY_PATH 10507 hardcode_into_libs=yes 10508 ;; 10509 10510hpux9* | hpux10* | hpux11*) 10511 # Give a soname corresponding to the major version so that dld.sl refuses to 10512 # link against other versions. 10513 version_type=sunos 10514 need_lib_prefix=no 10515 need_version=no 10516 case $host_cpu in 10517 ia64*) 10518 shrext_cmds='.so' 10519 hardcode_into_libs=yes 10520 dynamic_linker="$host_os dld.so" 10521 shlibpath_var=LD_LIBRARY_PATH 10522 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10524 soname_spec='${libname}${release}${shared_ext}$major' 10525 if test "X$HPUX_IA64_MODE" = X32; then 10526 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10527 else 10528 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10529 fi 10530 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10531 ;; 10532 hppa*64*) 10533 shrext_cmds='.sl' 10534 hardcode_into_libs=yes 10535 dynamic_linker="$host_os dld.sl" 10536 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10537 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10539 soname_spec='${libname}${release}${shared_ext}$major' 10540 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10541 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10542 ;; 10543 *) 10544 shrext_cmds='.sl' 10545 dynamic_linker="$host_os dld.sl" 10546 shlibpath_var=SHLIB_PATH 10547 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10549 soname_spec='${libname}${release}${shared_ext}$major' 10550 ;; 10551 esac 10552 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10553 postinstall_cmds='chmod 555 $lib' 10554 ;; 10555 10556interix[3-9]*) 10557 version_type=linux 10558 need_lib_prefix=no 10559 need_version=no 10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10561 soname_spec='${libname}${release}${shared_ext}$major' 10562 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10563 shlibpath_var=LD_LIBRARY_PATH 10564 shlibpath_overrides_runpath=no 10565 hardcode_into_libs=yes 10566 ;; 10567 10568irix5* | irix6* | nonstopux*) 10569 case $host_os in 10570 nonstopux*) version_type=nonstopux ;; 10571 *) 10572 if test "$lt_cv_prog_gnu_ld" = yes; then 10573 version_type=linux 10574 else 10575 version_type=irix 10576 fi ;; 10577 esac 10578 need_lib_prefix=no 10579 need_version=no 10580 soname_spec='${libname}${release}${shared_ext}$major' 10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10582 case $host_os in 10583 irix5* | nonstopux*) 10584 libsuff= shlibsuff= 10585 ;; 10586 *) 10587 case $LD in # libtool.m4 will add one of these switches to LD 10588 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10589 libsuff= shlibsuff= libmagic=32-bit;; 10590 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10591 libsuff=32 shlibsuff=N32 libmagic=N32;; 10592 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10593 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10594 *) libsuff= shlibsuff= libmagic=never-match;; 10595 esac 10596 ;; 10597 esac 10598 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10599 shlibpath_overrides_runpath=no 10600 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10601 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10602 hardcode_into_libs=yes 10603 ;; 10604 10605# No shared lib support for Linux oldld, aout, or coff. 10606linux*oldld* | linux*aout* | linux*coff*) 10607 dynamic_linker=no 10608 ;; 10609 10610# This must be Linux ELF. 10611linux* | k*bsd*-gnu) 10612 version_type=linux 10613 need_lib_prefix=no 10614 need_version=no 10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10616 soname_spec='${libname}${release}${shared_ext}$major' 10617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10618 shlibpath_var=LD_LIBRARY_PATH 10619 shlibpath_overrides_runpath=no 10620 # Some binutils ld are patched to set DT_RUNPATH 10621 save_LDFLAGS=$LDFLAGS 10622 save_libdir=$libdir 10623 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10624 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10625 cat >conftest.$ac_ext <<_ACEOF 10626/* confdefs.h. */ 10627_ACEOF 10628cat confdefs.h >>conftest.$ac_ext 10629cat >>conftest.$ac_ext <<_ACEOF 10630/* end confdefs.h. */ 10631 10632int 10633main () 10634{ 10635 10636 ; 10637 return 0; 10638} 10639_ACEOF 10640rm -f conftest.$ac_objext conftest$ac_exeext 10641if { (ac_try="$ac_link" 10642case "(($ac_try" in 10643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10644 *) ac_try_echo=$ac_try;; 10645esac 10646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10647$as_echo "$ac_try_echo") >&5 10648 (eval "$ac_link") 2>conftest.er1 10649 ac_status=$? 10650 grep -v '^ *+' conftest.er1 >conftest.err 10651 rm -f conftest.er1 10652 cat conftest.err >&5 10653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10654 (exit $ac_status); } && { 10655 test -z "$ac_c_werror_flag" || 10656 test ! -s conftest.err 10657 } && test -s conftest$ac_exeext && { 10658 test "$cross_compiling" = yes || 10659 $as_test_x conftest$ac_exeext 10660 }; then 10661 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 10662 shlibpath_overrides_runpath=yes 10663fi 10664 10665else 10666 $as_echo "$as_me: failed program was:" >&5 10667sed 's/^/| /' conftest.$ac_ext >&5 10668 10669 10670fi 10671 10672rm -rf conftest.dSYM 10673rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10674 conftest$ac_exeext conftest.$ac_ext 10675 LDFLAGS=$save_LDFLAGS 10676 libdir=$save_libdir 10677 10678 # This implies no fast_install, which is unacceptable. 10679 # Some rework will be needed to allow for fast_install 10680 # before this can be enabled. 10681 hardcode_into_libs=yes 10682 10683 # Add ABI-specific directories to the system library path. 10684 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 10685 10686 # Append ld.so.conf contents to the search path 10687 if test -f /etc/ld.so.conf; then 10688 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' ' '` 10689 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 10690 fi 10691 10692 # We used to test for /lib/ld.so.1 and disable shared libraries on 10693 # powerpc, because MkLinux only supported shared libraries with the 10694 # GNU dynamic linker. Since this was broken with cross compilers, 10695 # most powerpc-linux boxes support dynamic linking these days and 10696 # people can always --disable-shared, the test was removed, and we 10697 # assume the GNU/Linux dynamic linker is in use. 10698 dynamic_linker='GNU/Linux ld.so' 10699 ;; 10700 10701netbsd*) 10702 version_type=sunos 10703 need_lib_prefix=no 10704 need_version=no 10705 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10708 dynamic_linker='NetBSD (a.out) ld.so' 10709 else 10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10711 soname_spec='${libname}${release}${shared_ext}$major' 10712 dynamic_linker='NetBSD ld.elf_so' 10713 fi 10714 shlibpath_var=LD_LIBRARY_PATH 10715 shlibpath_overrides_runpath=yes 10716 hardcode_into_libs=yes 10717 ;; 10718 10719newsos6) 10720 version_type=linux 10721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10722 shlibpath_var=LD_LIBRARY_PATH 10723 shlibpath_overrides_runpath=yes 10724 ;; 10725 10726*nto* | *qnx*) 10727 version_type=qnx 10728 need_lib_prefix=no 10729 need_version=no 10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10731 soname_spec='${libname}${release}${shared_ext}$major' 10732 shlibpath_var=LD_LIBRARY_PATH 10733 shlibpath_overrides_runpath=no 10734 hardcode_into_libs=yes 10735 dynamic_linker='ldqnx.so' 10736 ;; 10737 10738openbsd*) 10739 version_type=sunos 10740 sys_lib_dlsearch_path_spec="/usr/lib" 10741 need_lib_prefix=no 10742 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10743 case $host_os in 10744 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10745 *) need_version=no ;; 10746 esac 10747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10749 shlibpath_var=LD_LIBRARY_PATH 10750 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10751 case $host_os in 10752 openbsd2.[89] | openbsd2.[89].*) 10753 shlibpath_overrides_runpath=no 10754 ;; 10755 *) 10756 shlibpath_overrides_runpath=yes 10757 ;; 10758 esac 10759 else 10760 shlibpath_overrides_runpath=yes 10761 fi 10762 ;; 10763 10764os2*) 10765 libname_spec='$name' 10766 shrext_cmds=".dll" 10767 need_lib_prefix=no 10768 library_names_spec='$libname${shared_ext} $libname.a' 10769 dynamic_linker='OS/2 ld.exe' 10770 shlibpath_var=LIBPATH 10771 ;; 10772 10773osf3* | osf4* | osf5*) 10774 version_type=osf 10775 need_lib_prefix=no 10776 need_version=no 10777 soname_spec='${libname}${release}${shared_ext}$major' 10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10779 shlibpath_var=LD_LIBRARY_PATH 10780 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10781 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10782 ;; 10783 10784rdos*) 10785 dynamic_linker=no 10786 ;; 10787 10788solaris*) 10789 version_type=linux 10790 need_lib_prefix=no 10791 need_version=no 10792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10793 soname_spec='${libname}${release}${shared_ext}$major' 10794 shlibpath_var=LD_LIBRARY_PATH 10795 shlibpath_overrides_runpath=yes 10796 hardcode_into_libs=yes 10797 # ldd complains unless libraries are executable 10798 postinstall_cmds='chmod +x $lib' 10799 ;; 10800 10801sunos4*) 10802 version_type=sunos 10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10804 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10805 shlibpath_var=LD_LIBRARY_PATH 10806 shlibpath_overrides_runpath=yes 10807 if test "$with_gnu_ld" = yes; then 10808 need_lib_prefix=no 10809 fi 10810 need_version=yes 10811 ;; 10812 10813sysv4 | sysv4.3*) 10814 version_type=linux 10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10816 soname_spec='${libname}${release}${shared_ext}$major' 10817 shlibpath_var=LD_LIBRARY_PATH 10818 case $host_vendor in 10819 sni) 10820 shlibpath_overrides_runpath=no 10821 need_lib_prefix=no 10822 runpath_var=LD_RUN_PATH 10823 ;; 10824 siemens) 10825 need_lib_prefix=no 10826 ;; 10827 motorola) 10828 need_lib_prefix=no 10829 need_version=no 10830 shlibpath_overrides_runpath=no 10831 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10832 ;; 10833 esac 10834 ;; 10835 10836sysv4*MP*) 10837 if test -d /usr/nec ;then 10838 version_type=linux 10839 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10840 soname_spec='$libname${shared_ext}.$major' 10841 shlibpath_var=LD_LIBRARY_PATH 10842 fi 10843 ;; 10844 10845sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10846 version_type=freebsd-elf 10847 need_lib_prefix=no 10848 need_version=no 10849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10850 soname_spec='${libname}${release}${shared_ext}$major' 10851 shlibpath_var=LD_LIBRARY_PATH 10852 shlibpath_overrides_runpath=yes 10853 hardcode_into_libs=yes 10854 if test "$with_gnu_ld" = yes; then 10855 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10856 else 10857 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10858 case $host_os in 10859 sco3.2v5*) 10860 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10861 ;; 10862 esac 10863 fi 10864 sys_lib_dlsearch_path_spec='/usr/lib' 10865 ;; 10866 10867tpf*) 10868 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10869 version_type=linux 10870 need_lib_prefix=no 10871 need_version=no 10872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10873 shlibpath_var=LD_LIBRARY_PATH 10874 shlibpath_overrides_runpath=no 10875 hardcode_into_libs=yes 10876 ;; 10877 10878uts4*) 10879 version_type=linux 10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10881 soname_spec='${libname}${release}${shared_ext}$major' 10882 shlibpath_var=LD_LIBRARY_PATH 10883 ;; 10884 10885*) 10886 dynamic_linker=no 10887 ;; 10888esac 10889{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10890$as_echo "$dynamic_linker" >&6; } 10891test "$dynamic_linker" = no && can_build_shared=no 10892 10893variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10894if test "$GCC" = yes; then 10895 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10896fi 10897 10898if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10899 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10900fi 10901if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10902 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10903fi 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10992$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10993hardcode_action= 10994if test -n "$hardcode_libdir_flag_spec" || 10995 test -n "$runpath_var" || 10996 test "X$hardcode_automatic" = "Xyes" ; then 10997 10998 # We can hardcode non-existent directories. 10999 if test "$hardcode_direct" != no && 11000 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11001 # have to relink, otherwise we might link with an installed library 11002 # when we should be linking with a yet-to-be-installed one 11003 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11004 test "$hardcode_minus_L" != no; then 11005 # Linking always hardcodes the temporary library directory. 11006 hardcode_action=relink 11007 else 11008 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11009 hardcode_action=immediate 11010 fi 11011else 11012 # We cannot hardcode anything, or else we can only hardcode existing 11013 # directories. 11014 hardcode_action=unsupported 11015fi 11016{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 11017$as_echo "$hardcode_action" >&6; } 11018 11019if test "$hardcode_action" = relink || 11020 test "$inherit_rpath" = yes; then 11021 # Fast installation is not supported 11022 enable_fast_install=no 11023elif test "$shlibpath_overrides_runpath" = yes || 11024 test "$enable_shared" = no; then 11025 # Fast installation is not necessary 11026 enable_fast_install=needless 11027fi 11028 11029 11030 11031 11032 11033 11034 if test "x$enable_dlopen" != xyes; then 11035 enable_dlopen=unknown 11036 enable_dlopen_self=unknown 11037 enable_dlopen_self_static=unknown 11038else 11039 lt_cv_dlopen=no 11040 lt_cv_dlopen_libs= 11041 11042 case $host_os in 11043 beos*) 11044 lt_cv_dlopen="load_add_on" 11045 lt_cv_dlopen_libs= 11046 lt_cv_dlopen_self=yes 11047 ;; 11048 11049 mingw* | pw32* | cegcc*) 11050 lt_cv_dlopen="LoadLibrary" 11051 lt_cv_dlopen_libs= 11052 ;; 11053 11054 cygwin*) 11055 lt_cv_dlopen="dlopen" 11056 lt_cv_dlopen_libs= 11057 ;; 11058 11059 darwin*) 11060 # if libdl is installed we need to link against it 11061 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11062$as_echo_n "checking for dlopen in -ldl... " >&6; } 11063if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11064 $as_echo_n "(cached) " >&6 11065else 11066 ac_check_lib_save_LIBS=$LIBS 11067LIBS="-ldl $LIBS" 11068cat >conftest.$ac_ext <<_ACEOF 11069/* confdefs.h. */ 11070_ACEOF 11071cat confdefs.h >>conftest.$ac_ext 11072cat >>conftest.$ac_ext <<_ACEOF 11073/* end confdefs.h. */ 11074 11075/* Override any GCC internal prototype to avoid an error. 11076 Use char because int might match the return type of a GCC 11077 builtin and then its argument prototype would still apply. */ 11078#ifdef __cplusplus 11079extern "C" 11080#endif 11081char dlopen (); 11082int 11083main () 11084{ 11085return dlopen (); 11086 ; 11087 return 0; 11088} 11089_ACEOF 11090rm -f conftest.$ac_objext conftest$ac_exeext 11091if { (ac_try="$ac_link" 11092case "(($ac_try" in 11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11094 *) ac_try_echo=$ac_try;; 11095esac 11096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11097$as_echo "$ac_try_echo") >&5 11098 (eval "$ac_link") 2>conftest.er1 11099 ac_status=$? 11100 grep -v '^ *+' conftest.er1 >conftest.err 11101 rm -f conftest.er1 11102 cat conftest.err >&5 11103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11104 (exit $ac_status); } && { 11105 test -z "$ac_c_werror_flag" || 11106 test ! -s conftest.err 11107 } && test -s conftest$ac_exeext && { 11108 test "$cross_compiling" = yes || 11109 $as_test_x conftest$ac_exeext 11110 }; then 11111 ac_cv_lib_dl_dlopen=yes 11112else 11113 $as_echo "$as_me: failed program was:" >&5 11114sed 's/^/| /' conftest.$ac_ext >&5 11115 11116 ac_cv_lib_dl_dlopen=no 11117fi 11118 11119rm -rf conftest.dSYM 11120rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11121 conftest$ac_exeext conftest.$ac_ext 11122LIBS=$ac_check_lib_save_LIBS 11123fi 11124{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11125$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11126if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 11127 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11128else 11129 11130 lt_cv_dlopen="dyld" 11131 lt_cv_dlopen_libs= 11132 lt_cv_dlopen_self=yes 11133 11134fi 11135 11136 ;; 11137 11138 *) 11139 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 11140$as_echo_n "checking for shl_load... " >&6; } 11141if test "${ac_cv_func_shl_load+set}" = set; then 11142 $as_echo_n "(cached) " >&6 11143else 11144 cat >conftest.$ac_ext <<_ACEOF 11145/* confdefs.h. */ 11146_ACEOF 11147cat confdefs.h >>conftest.$ac_ext 11148cat >>conftest.$ac_ext <<_ACEOF 11149/* end confdefs.h. */ 11150/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11151 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11152#define shl_load innocuous_shl_load 11153 11154/* System header to define __stub macros and hopefully few prototypes, 11155 which can conflict with char shl_load (); below. 11156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11157 <limits.h> exists even on freestanding compilers. */ 11158 11159#ifdef __STDC__ 11160# include <limits.h> 11161#else 11162# include <assert.h> 11163#endif 11164 11165#undef shl_load 11166 11167/* Override any GCC internal prototype to avoid an error. 11168 Use char because int might match the return type of a GCC 11169 builtin and then its argument prototype would still apply. */ 11170#ifdef __cplusplus 11171extern "C" 11172#endif 11173char shl_load (); 11174/* The GNU C library defines this for functions which it implements 11175 to always fail with ENOSYS. Some functions are actually named 11176 something starting with __ and the normal name is an alias. */ 11177#if defined __stub_shl_load || defined __stub___shl_load 11178choke me 11179#endif 11180 11181int 11182main () 11183{ 11184return shl_load (); 11185 ; 11186 return 0; 11187} 11188_ACEOF 11189rm -f conftest.$ac_objext conftest$ac_exeext 11190if { (ac_try="$ac_link" 11191case "(($ac_try" in 11192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11193 *) ac_try_echo=$ac_try;; 11194esac 11195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11196$as_echo "$ac_try_echo") >&5 11197 (eval "$ac_link") 2>conftest.er1 11198 ac_status=$? 11199 grep -v '^ *+' conftest.er1 >conftest.err 11200 rm -f conftest.er1 11201 cat conftest.err >&5 11202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11203 (exit $ac_status); } && { 11204 test -z "$ac_c_werror_flag" || 11205 test ! -s conftest.err 11206 } && test -s conftest$ac_exeext && { 11207 test "$cross_compiling" = yes || 11208 $as_test_x conftest$ac_exeext 11209 }; then 11210 ac_cv_func_shl_load=yes 11211else 11212 $as_echo "$as_me: failed program was:" >&5 11213sed 's/^/| /' conftest.$ac_ext >&5 11214 11215 ac_cv_func_shl_load=no 11216fi 11217 11218rm -rf conftest.dSYM 11219rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11220 conftest$ac_exeext conftest.$ac_ext 11221fi 11222{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11223$as_echo "$ac_cv_func_shl_load" >&6; } 11224if test "x$ac_cv_func_shl_load" = x""yes; then 11225 lt_cv_dlopen="shl_load" 11226else 11227 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11228$as_echo_n "checking for shl_load in -ldld... " >&6; } 11229if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11230 $as_echo_n "(cached) " >&6 11231else 11232 ac_check_lib_save_LIBS=$LIBS 11233LIBS="-ldld $LIBS" 11234cat >conftest.$ac_ext <<_ACEOF 11235/* confdefs.h. */ 11236_ACEOF 11237cat confdefs.h >>conftest.$ac_ext 11238cat >>conftest.$ac_ext <<_ACEOF 11239/* end confdefs.h. */ 11240 11241/* Override any GCC internal prototype to avoid an error. 11242 Use char because int might match the return type of a GCC 11243 builtin and then its argument prototype would still apply. */ 11244#ifdef __cplusplus 11245extern "C" 11246#endif 11247char shl_load (); 11248int 11249main () 11250{ 11251return shl_load (); 11252 ; 11253 return 0; 11254} 11255_ACEOF 11256rm -f conftest.$ac_objext conftest$ac_exeext 11257if { (ac_try="$ac_link" 11258case "(($ac_try" in 11259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11260 *) ac_try_echo=$ac_try;; 11261esac 11262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11263$as_echo "$ac_try_echo") >&5 11264 (eval "$ac_link") 2>conftest.er1 11265 ac_status=$? 11266 grep -v '^ *+' conftest.er1 >conftest.err 11267 rm -f conftest.er1 11268 cat conftest.err >&5 11269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11270 (exit $ac_status); } && { 11271 test -z "$ac_c_werror_flag" || 11272 test ! -s conftest.err 11273 } && test -s conftest$ac_exeext && { 11274 test "$cross_compiling" = yes || 11275 $as_test_x conftest$ac_exeext 11276 }; then 11277 ac_cv_lib_dld_shl_load=yes 11278else 11279 $as_echo "$as_me: failed program was:" >&5 11280sed 's/^/| /' conftest.$ac_ext >&5 11281 11282 ac_cv_lib_dld_shl_load=no 11283fi 11284 11285rm -rf conftest.dSYM 11286rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11287 conftest$ac_exeext conftest.$ac_ext 11288LIBS=$ac_check_lib_save_LIBS 11289fi 11290{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11291$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11292if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 11293 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11294else 11295 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 11296$as_echo_n "checking for dlopen... " >&6; } 11297if test "${ac_cv_func_dlopen+set}" = set; then 11298 $as_echo_n "(cached) " >&6 11299else 11300 cat >conftest.$ac_ext <<_ACEOF 11301/* confdefs.h. */ 11302_ACEOF 11303cat confdefs.h >>conftest.$ac_ext 11304cat >>conftest.$ac_ext <<_ACEOF 11305/* end confdefs.h. */ 11306/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11307 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11308#define dlopen innocuous_dlopen 11309 11310/* System header to define __stub macros and hopefully few prototypes, 11311 which can conflict with char dlopen (); below. 11312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11313 <limits.h> exists even on freestanding compilers. */ 11314 11315#ifdef __STDC__ 11316# include <limits.h> 11317#else 11318# include <assert.h> 11319#endif 11320 11321#undef dlopen 11322 11323/* Override any GCC internal prototype to avoid an error. 11324 Use char because int might match the return type of a GCC 11325 builtin and then its argument prototype would still apply. */ 11326#ifdef __cplusplus 11327extern "C" 11328#endif 11329char dlopen (); 11330/* The GNU C library defines this for functions which it implements 11331 to always fail with ENOSYS. Some functions are actually named 11332 something starting with __ and the normal name is an alias. */ 11333#if defined __stub_dlopen || defined __stub___dlopen 11334choke me 11335#endif 11336 11337int 11338main () 11339{ 11340return dlopen (); 11341 ; 11342 return 0; 11343} 11344_ACEOF 11345rm -f conftest.$ac_objext conftest$ac_exeext 11346if { (ac_try="$ac_link" 11347case "(($ac_try" in 11348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11349 *) ac_try_echo=$ac_try;; 11350esac 11351eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11352$as_echo "$ac_try_echo") >&5 11353 (eval "$ac_link") 2>conftest.er1 11354 ac_status=$? 11355 grep -v '^ *+' conftest.er1 >conftest.err 11356 rm -f conftest.er1 11357 cat conftest.err >&5 11358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11359 (exit $ac_status); } && { 11360 test -z "$ac_c_werror_flag" || 11361 test ! -s conftest.err 11362 } && test -s conftest$ac_exeext && { 11363 test "$cross_compiling" = yes || 11364 $as_test_x conftest$ac_exeext 11365 }; then 11366 ac_cv_func_dlopen=yes 11367else 11368 $as_echo "$as_me: failed program was:" >&5 11369sed 's/^/| /' conftest.$ac_ext >&5 11370 11371 ac_cv_func_dlopen=no 11372fi 11373 11374rm -rf conftest.dSYM 11375rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11376 conftest$ac_exeext conftest.$ac_ext 11377fi 11378{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11379$as_echo "$ac_cv_func_dlopen" >&6; } 11380if test "x$ac_cv_func_dlopen" = x""yes; then 11381 lt_cv_dlopen="dlopen" 11382else 11383 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11384$as_echo_n "checking for dlopen in -ldl... " >&6; } 11385if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11386 $as_echo_n "(cached) " >&6 11387else 11388 ac_check_lib_save_LIBS=$LIBS 11389LIBS="-ldl $LIBS" 11390cat >conftest.$ac_ext <<_ACEOF 11391/* confdefs.h. */ 11392_ACEOF 11393cat confdefs.h >>conftest.$ac_ext 11394cat >>conftest.$ac_ext <<_ACEOF 11395/* end confdefs.h. */ 11396 11397/* Override any GCC internal prototype to avoid an error. 11398 Use char because int might match the return type of a GCC 11399 builtin and then its argument prototype would still apply. */ 11400#ifdef __cplusplus 11401extern "C" 11402#endif 11403char dlopen (); 11404int 11405main () 11406{ 11407return dlopen (); 11408 ; 11409 return 0; 11410} 11411_ACEOF 11412rm -f conftest.$ac_objext conftest$ac_exeext 11413if { (ac_try="$ac_link" 11414case "(($ac_try" in 11415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11416 *) ac_try_echo=$ac_try;; 11417esac 11418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11419$as_echo "$ac_try_echo") >&5 11420 (eval "$ac_link") 2>conftest.er1 11421 ac_status=$? 11422 grep -v '^ *+' conftest.er1 >conftest.err 11423 rm -f conftest.er1 11424 cat conftest.err >&5 11425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11426 (exit $ac_status); } && { 11427 test -z "$ac_c_werror_flag" || 11428 test ! -s conftest.err 11429 } && test -s conftest$ac_exeext && { 11430 test "$cross_compiling" = yes || 11431 $as_test_x conftest$ac_exeext 11432 }; then 11433 ac_cv_lib_dl_dlopen=yes 11434else 11435 $as_echo "$as_me: failed program was:" >&5 11436sed 's/^/| /' conftest.$ac_ext >&5 11437 11438 ac_cv_lib_dl_dlopen=no 11439fi 11440 11441rm -rf conftest.dSYM 11442rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11443 conftest$ac_exeext conftest.$ac_ext 11444LIBS=$ac_check_lib_save_LIBS 11445fi 11446{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11447$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11448if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 11449 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11450else 11451 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11452$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11453if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11454 $as_echo_n "(cached) " >&6 11455else 11456 ac_check_lib_save_LIBS=$LIBS 11457LIBS="-lsvld $LIBS" 11458cat >conftest.$ac_ext <<_ACEOF 11459/* confdefs.h. */ 11460_ACEOF 11461cat confdefs.h >>conftest.$ac_ext 11462cat >>conftest.$ac_ext <<_ACEOF 11463/* end confdefs.h. */ 11464 11465/* Override any GCC internal prototype to avoid an error. 11466 Use char because int might match the return type of a GCC 11467 builtin and then its argument prototype would still apply. */ 11468#ifdef __cplusplus 11469extern "C" 11470#endif 11471char dlopen (); 11472int 11473main () 11474{ 11475return dlopen (); 11476 ; 11477 return 0; 11478} 11479_ACEOF 11480rm -f conftest.$ac_objext conftest$ac_exeext 11481if { (ac_try="$ac_link" 11482case "(($ac_try" in 11483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11484 *) ac_try_echo=$ac_try;; 11485esac 11486eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11487$as_echo "$ac_try_echo") >&5 11488 (eval "$ac_link") 2>conftest.er1 11489 ac_status=$? 11490 grep -v '^ *+' conftest.er1 >conftest.err 11491 rm -f conftest.er1 11492 cat conftest.err >&5 11493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11494 (exit $ac_status); } && { 11495 test -z "$ac_c_werror_flag" || 11496 test ! -s conftest.err 11497 } && test -s conftest$ac_exeext && { 11498 test "$cross_compiling" = yes || 11499 $as_test_x conftest$ac_exeext 11500 }; then 11501 ac_cv_lib_svld_dlopen=yes 11502else 11503 $as_echo "$as_me: failed program was:" >&5 11504sed 's/^/| /' conftest.$ac_ext >&5 11505 11506 ac_cv_lib_svld_dlopen=no 11507fi 11508 11509rm -rf conftest.dSYM 11510rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11511 conftest$ac_exeext conftest.$ac_ext 11512LIBS=$ac_check_lib_save_LIBS 11513fi 11514{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11515$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11516if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 11517 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11518else 11519 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11520$as_echo_n "checking for dld_link in -ldld... " >&6; } 11521if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11522 $as_echo_n "(cached) " >&6 11523else 11524 ac_check_lib_save_LIBS=$LIBS 11525LIBS="-ldld $LIBS" 11526cat >conftest.$ac_ext <<_ACEOF 11527/* confdefs.h. */ 11528_ACEOF 11529cat confdefs.h >>conftest.$ac_ext 11530cat >>conftest.$ac_ext <<_ACEOF 11531/* end confdefs.h. */ 11532 11533/* Override any GCC internal prototype to avoid an error. 11534 Use char because int might match the return type of a GCC 11535 builtin and then its argument prototype would still apply. */ 11536#ifdef __cplusplus 11537extern "C" 11538#endif 11539char dld_link (); 11540int 11541main () 11542{ 11543return dld_link (); 11544 ; 11545 return 0; 11546} 11547_ACEOF 11548rm -f conftest.$ac_objext conftest$ac_exeext 11549if { (ac_try="$ac_link" 11550case "(($ac_try" in 11551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11552 *) ac_try_echo=$ac_try;; 11553esac 11554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11555$as_echo "$ac_try_echo") >&5 11556 (eval "$ac_link") 2>conftest.er1 11557 ac_status=$? 11558 grep -v '^ *+' conftest.er1 >conftest.err 11559 rm -f conftest.er1 11560 cat conftest.err >&5 11561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11562 (exit $ac_status); } && { 11563 test -z "$ac_c_werror_flag" || 11564 test ! -s conftest.err 11565 } && test -s conftest$ac_exeext && { 11566 test "$cross_compiling" = yes || 11567 $as_test_x conftest$ac_exeext 11568 }; then 11569 ac_cv_lib_dld_dld_link=yes 11570else 11571 $as_echo "$as_me: failed program was:" >&5 11572sed 's/^/| /' conftest.$ac_ext >&5 11573 11574 ac_cv_lib_dld_dld_link=no 11575fi 11576 11577rm -rf conftest.dSYM 11578rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11579 conftest$ac_exeext conftest.$ac_ext 11580LIBS=$ac_check_lib_save_LIBS 11581fi 11582{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11583$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11584if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 11585 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11586fi 11587 11588 11589fi 11590 11591 11592fi 11593 11594 11595fi 11596 11597 11598fi 11599 11600 11601fi 11602 11603 ;; 11604 esac 11605 11606 if test "x$lt_cv_dlopen" != xno; then 11607 enable_dlopen=yes 11608 else 11609 enable_dlopen=no 11610 fi 11611 11612 case $lt_cv_dlopen in 11613 dlopen) 11614 save_CPPFLAGS="$CPPFLAGS" 11615 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11616 11617 save_LDFLAGS="$LDFLAGS" 11618 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11619 11620 save_LIBS="$LIBS" 11621 LIBS="$lt_cv_dlopen_libs $LIBS" 11622 11623 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11624$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11625if test "${lt_cv_dlopen_self+set}" = set; then 11626 $as_echo_n "(cached) " >&6 11627else 11628 if test "$cross_compiling" = yes; then : 11629 lt_cv_dlopen_self=cross 11630else 11631 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11632 lt_status=$lt_dlunknown 11633 cat > conftest.$ac_ext <<_LT_EOF 11634#line 11634 "configure" 11635#include "confdefs.h" 11636 11637#if HAVE_DLFCN_H 11638#include <dlfcn.h> 11639#endif 11640 11641#include <stdio.h> 11642 11643#ifdef RTLD_GLOBAL 11644# define LT_DLGLOBAL RTLD_GLOBAL 11645#else 11646# ifdef DL_GLOBAL 11647# define LT_DLGLOBAL DL_GLOBAL 11648# else 11649# define LT_DLGLOBAL 0 11650# endif 11651#endif 11652 11653/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11654 find out it does not work in some platform. */ 11655#ifndef LT_DLLAZY_OR_NOW 11656# ifdef RTLD_LAZY 11657# define LT_DLLAZY_OR_NOW RTLD_LAZY 11658# else 11659# ifdef DL_LAZY 11660# define LT_DLLAZY_OR_NOW DL_LAZY 11661# else 11662# ifdef RTLD_NOW 11663# define LT_DLLAZY_OR_NOW RTLD_NOW 11664# else 11665# ifdef DL_NOW 11666# define LT_DLLAZY_OR_NOW DL_NOW 11667# else 11668# define LT_DLLAZY_OR_NOW 0 11669# endif 11670# endif 11671# endif 11672# endif 11673#endif 11674 11675void fnord() { int i=42;} 11676int main () 11677{ 11678 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11679 int status = $lt_dlunknown; 11680 11681 if (self) 11682 { 11683 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11684 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11685 /* dlclose (self); */ 11686 } 11687 else 11688 puts (dlerror ()); 11689 11690 return status; 11691} 11692_LT_EOF 11693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11694 (eval $ac_link) 2>&5 11695 ac_status=$? 11696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11697 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11698 (./conftest; exit; ) >&5 2>/dev/null 11699 lt_status=$? 11700 case x$lt_status in 11701 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11702 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11703 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11704 esac 11705 else : 11706 # compilation failed 11707 lt_cv_dlopen_self=no 11708 fi 11709fi 11710rm -fr conftest* 11711 11712 11713fi 11714{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11715$as_echo "$lt_cv_dlopen_self" >&6; } 11716 11717 if test "x$lt_cv_dlopen_self" = xyes; then 11718 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11719 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11720$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11721if test "${lt_cv_dlopen_self_static+set}" = set; then 11722 $as_echo_n "(cached) " >&6 11723else 11724 if test "$cross_compiling" = yes; then : 11725 lt_cv_dlopen_self_static=cross 11726else 11727 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11728 lt_status=$lt_dlunknown 11729 cat > conftest.$ac_ext <<_LT_EOF 11730#line 11730 "configure" 11731#include "confdefs.h" 11732 11733#if HAVE_DLFCN_H 11734#include <dlfcn.h> 11735#endif 11736 11737#include <stdio.h> 11738 11739#ifdef RTLD_GLOBAL 11740# define LT_DLGLOBAL RTLD_GLOBAL 11741#else 11742# ifdef DL_GLOBAL 11743# define LT_DLGLOBAL DL_GLOBAL 11744# else 11745# define LT_DLGLOBAL 0 11746# endif 11747#endif 11748 11749/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11750 find out it does not work in some platform. */ 11751#ifndef LT_DLLAZY_OR_NOW 11752# ifdef RTLD_LAZY 11753# define LT_DLLAZY_OR_NOW RTLD_LAZY 11754# else 11755# ifdef DL_LAZY 11756# define LT_DLLAZY_OR_NOW DL_LAZY 11757# else 11758# ifdef RTLD_NOW 11759# define LT_DLLAZY_OR_NOW RTLD_NOW 11760# else 11761# ifdef DL_NOW 11762# define LT_DLLAZY_OR_NOW DL_NOW 11763# else 11764# define LT_DLLAZY_OR_NOW 0 11765# endif 11766# endif 11767# endif 11768# endif 11769#endif 11770 11771void fnord() { int i=42;} 11772int main () 11773{ 11774 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11775 int status = $lt_dlunknown; 11776 11777 if (self) 11778 { 11779 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11780 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11781 /* dlclose (self); */ 11782 } 11783 else 11784 puts (dlerror ()); 11785 11786 return status; 11787} 11788_LT_EOF 11789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11790 (eval $ac_link) 2>&5 11791 ac_status=$? 11792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11793 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11794 (./conftest; exit; ) >&5 2>/dev/null 11795 lt_status=$? 11796 case x$lt_status in 11797 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11798 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11799 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11800 esac 11801 else : 11802 # compilation failed 11803 lt_cv_dlopen_self_static=no 11804 fi 11805fi 11806rm -fr conftest* 11807 11808 11809fi 11810{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11811$as_echo "$lt_cv_dlopen_self_static" >&6; } 11812 fi 11813 11814 CPPFLAGS="$save_CPPFLAGS" 11815 LDFLAGS="$save_LDFLAGS" 11816 LIBS="$save_LIBS" 11817 ;; 11818 esac 11819 11820 case $lt_cv_dlopen_self in 11821 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11822 *) enable_dlopen_self=unknown ;; 11823 esac 11824 11825 case $lt_cv_dlopen_self_static in 11826 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11827 *) enable_dlopen_self_static=unknown ;; 11828 esac 11829fi 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847striplib= 11848old_striplib= 11849{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11850$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11851if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11852 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11853 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11854 { $as_echo "$as_me:$LINENO: result: yes" >&5 11855$as_echo "yes" >&6; } 11856else 11857# FIXME - insert some real tests, host_os isn't really good enough 11858 case $host_os in 11859 darwin*) 11860 if test -n "$STRIP" ; then 11861 striplib="$STRIP -x" 11862 old_striplib="$STRIP -S" 11863 { $as_echo "$as_me:$LINENO: result: yes" >&5 11864$as_echo "yes" >&6; } 11865 else 11866 { $as_echo "$as_me:$LINENO: result: no" >&5 11867$as_echo "no" >&6; } 11868 fi 11869 ;; 11870 *) 11871 { $as_echo "$as_me:$LINENO: result: no" >&5 11872$as_echo "no" >&6; } 11873 ;; 11874 esac 11875fi 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 # Report which library types will actually be built 11889 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11890$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11891 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11892$as_echo "$can_build_shared" >&6; } 11893 11894 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11895$as_echo_n "checking whether to build shared libraries... " >&6; } 11896 test "$can_build_shared" = "no" && enable_shared=no 11897 11898 # On AIX, shared libraries and static libraries use the same namespace, and 11899 # are all built from PIC. 11900 case $host_os in 11901 aix3*) 11902 test "$enable_shared" = yes && enable_static=no 11903 if test -n "$RANLIB"; then 11904 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11905 postinstall_cmds='$RANLIB $lib' 11906 fi 11907 ;; 11908 11909 aix[4-9]*) 11910 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11911 test "$enable_shared" = yes && enable_static=no 11912 fi 11913 ;; 11914 esac 11915 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11916$as_echo "$enable_shared" >&6; } 11917 11918 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11919$as_echo_n "checking whether to build static libraries... " >&6; } 11920 # Make sure either enable_shared or enable_static is yes. 11921 test "$enable_shared" = yes || enable_static=yes 11922 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11923$as_echo "$enable_static" >&6; } 11924 11925 11926 11927 11928fi 11929ac_ext=c 11930ac_cpp='$CPP $CPPFLAGS' 11931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11933ac_compiler_gnu=$ac_cv_c_compiler_gnu 11934 11935CC="$lt_save_CC" 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 ac_config_commands="$ac_config_commands libtool" 11950 11951 11952 11953 11954# Only expand once: 11955 11956 11957 11958 11959 11960 11961# Define a configure option for an alternate module directory 11962 11963# Check whether --with-xorg-module-dir was given. 11964if test "${with_xorg_module_dir+set}" = set; then 11965 withval=$with_xorg_module_dir; moduledir="$withval" 11966else 11967 moduledir="$libdir/xorg/modules" 11968fi 11969 11970 11971# Check whether --enable-dri was given. 11972if test "${enable_dri+set}" = set; then 11973 enableval=$enable_dri; DRI="$enableval" 11974else 11975 DRI=auto 11976fi 11977 11978# Check whether --enable-exa was given. 11979if test "${enable_exa+set}" = set; then 11980 enableval=$enable_exa; EXA="$enableval" 11981else 11982 EXA=yes 11983fi 11984 11985 11986# Store the list of server defined optional extensions in REQUIRED_MODULES 11987 11988 11989 SAVE_CFLAGS="$CFLAGS" 11990 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 11991 cat >conftest.$ac_ext <<_ACEOF 11992/* confdefs.h. */ 11993_ACEOF 11994cat confdefs.h >>conftest.$ac_ext 11995cat >>conftest.$ac_ext <<_ACEOF 11996/* end confdefs.h. */ 11997 11998#include "xorg-server.h" 11999#if !defined RANDR 12000#error RANDR not defined 12001#endif 12002 12003int 12004main () 12005{ 12006 12007 ; 12008 return 0; 12009} 12010_ACEOF 12011rm -f conftest.$ac_objext 12012if { (ac_try="$ac_compile" 12013case "(($ac_try" in 12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12015 *) ac_try_echo=$ac_try;; 12016esac 12017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12018$as_echo "$ac_try_echo") >&5 12019 (eval "$ac_compile") 2>conftest.er1 12020 ac_status=$? 12021 grep -v '^ *+' conftest.er1 >conftest.err 12022 rm -f conftest.er1 12023 cat conftest.err >&5 12024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12025 (exit $ac_status); } && { 12026 test -z "$ac_c_werror_flag" || 12027 test ! -s conftest.err 12028 } && test -s conftest.$ac_objext; then 12029 _EXT_CHECK=yes 12030else 12031 $as_echo "$as_me: failed program was:" >&5 12032sed 's/^/| /' conftest.$ac_ext >&5 12033 12034 _EXT_CHECK=no 12035fi 12036 12037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12038 CFLAGS="$SAVE_CFLAGS" 12039 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5 12040$as_echo_n "checking if RANDR is defined... " >&6; } 12041 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12042$as_echo "$_EXT_CHECK" >&6; } 12043 if test "$_EXT_CHECK" != no; then 12044 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 12045 fi 12046 12047 12048 12049 SAVE_CFLAGS="$CFLAGS" 12050 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 12051 cat >conftest.$ac_ext <<_ACEOF 12052/* confdefs.h. */ 12053_ACEOF 12054cat confdefs.h >>conftest.$ac_ext 12055cat >>conftest.$ac_ext <<_ACEOF 12056/* end confdefs.h. */ 12057 12058#include "xorg-server.h" 12059#if !defined RENDER 12060#error RENDER not defined 12061#endif 12062 12063int 12064main () 12065{ 12066 12067 ; 12068 return 0; 12069} 12070_ACEOF 12071rm -f conftest.$ac_objext 12072if { (ac_try="$ac_compile" 12073case "(($ac_try" in 12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12075 *) ac_try_echo=$ac_try;; 12076esac 12077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12078$as_echo "$ac_try_echo") >&5 12079 (eval "$ac_compile") 2>conftest.er1 12080 ac_status=$? 12081 grep -v '^ *+' conftest.er1 >conftest.err 12082 rm -f conftest.er1 12083 cat conftest.err >&5 12084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12085 (exit $ac_status); } && { 12086 test -z "$ac_c_werror_flag" || 12087 test ! -s conftest.err 12088 } && test -s conftest.$ac_objext; then 12089 _EXT_CHECK=yes 12090else 12091 $as_echo "$as_me: failed program was:" >&5 12092sed 's/^/| /' conftest.$ac_ext >&5 12093 12094 _EXT_CHECK=no 12095fi 12096 12097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12098 CFLAGS="$SAVE_CFLAGS" 12099 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5 12100$as_echo_n "checking if RENDER is defined... " >&6; } 12101 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12102$as_echo "$_EXT_CHECK" >&6; } 12103 if test "$_EXT_CHECK" != no; then 12104 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 12105 fi 12106 12107 12108 12109 SAVE_CFLAGS="$CFLAGS" 12110 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 12111 cat >conftest.$ac_ext <<_ACEOF 12112/* confdefs.h. */ 12113_ACEOF 12114cat confdefs.h >>conftest.$ac_ext 12115cat >>conftest.$ac_ext <<_ACEOF 12116/* end confdefs.h. */ 12117 12118#include "xorg-server.h" 12119#if !defined XV 12120#error XV not defined 12121#endif 12122 12123int 12124main () 12125{ 12126 12127 ; 12128 return 0; 12129} 12130_ACEOF 12131rm -f conftest.$ac_objext 12132if { (ac_try="$ac_compile" 12133case "(($ac_try" in 12134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12135 *) ac_try_echo=$ac_try;; 12136esac 12137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12138$as_echo "$ac_try_echo") >&5 12139 (eval "$ac_compile") 2>conftest.er1 12140 ac_status=$? 12141 grep -v '^ *+' conftest.er1 >conftest.err 12142 rm -f conftest.er1 12143 cat conftest.err >&5 12144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12145 (exit $ac_status); } && { 12146 test -z "$ac_c_werror_flag" || 12147 test ! -s conftest.err 12148 } && test -s conftest.$ac_objext; then 12149 _EXT_CHECK=yes 12150else 12151 $as_echo "$as_me: failed program was:" >&5 12152sed 's/^/| /' conftest.$ac_ext >&5 12153 12154 _EXT_CHECK=no 12155fi 12156 12157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12158 CFLAGS="$SAVE_CFLAGS" 12159 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5 12160$as_echo_n "checking if XV is defined... " >&6; } 12161 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12162$as_echo "$_EXT_CHECK" >&6; } 12163 if test "$_EXT_CHECK" != no; then 12164 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 12165 fi 12166 12167 12168 12169 SAVE_CFLAGS="$CFLAGS" 12170 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 12171 cat >conftest.$ac_ext <<_ACEOF 12172/* confdefs.h. */ 12173_ACEOF 12174cat confdefs.h >>conftest.$ac_ext 12175cat >>conftest.$ac_ext <<_ACEOF 12176/* end confdefs.h. */ 12177 12178#include "xorg-server.h" 12179#if !defined DPMSExtension 12180#error DPMSExtension not defined 12181#endif 12182 12183int 12184main () 12185{ 12186 12187 ; 12188 return 0; 12189} 12190_ACEOF 12191rm -f conftest.$ac_objext 12192if { (ac_try="$ac_compile" 12193case "(($ac_try" in 12194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12195 *) ac_try_echo=$ac_try;; 12196esac 12197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12198$as_echo "$ac_try_echo") >&5 12199 (eval "$ac_compile") 2>conftest.er1 12200 ac_status=$? 12201 grep -v '^ *+' conftest.er1 >conftest.err 12202 rm -f conftest.er1 12203 cat conftest.err >&5 12204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12205 (exit $ac_status); } && { 12206 test -z "$ac_c_werror_flag" || 12207 test ! -s conftest.err 12208 } && test -s conftest.$ac_objext; then 12209 _EXT_CHECK=yes 12210else 12211 $as_echo "$as_me: failed program was:" >&5 12212sed 's/^/| /' conftest.$ac_ext >&5 12213 12214 _EXT_CHECK=no 12215fi 12216 12217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12218 CFLAGS="$SAVE_CFLAGS" 12219 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5 12220$as_echo_n "checking if DPMSExtension is defined... " >&6; } 12221 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12222$as_echo "$_EXT_CHECK" >&6; } 12223 if test "$_EXT_CHECK" != no; then 12224 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 12225 fi 12226 12227 12228# Obtain compiler/linker options for the driver dependencies 12229 12230pkg_failed=no 12231{ $as_echo "$as_me:$LINENO: checking for XORG" >&5 12232$as_echo_n "checking for XORG... " >&6; } 12233 12234if test -n "$XORG_CFLAGS"; then 12235 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 12236 elif test -n "$PKG_CONFIG"; then 12237 if test -n "$PKG_CONFIG" && \ 12238 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\"") >&5 12239 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5 12240 ac_status=$? 12241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12242 (exit $ac_status); }; then 12243 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 12244else 12245 pkg_failed=yes 12246fi 12247 else 12248 pkg_failed=untried 12249fi 12250if test -n "$XORG_LIBS"; then 12251 pkg_cv_XORG_LIBS="$XORG_LIBS" 12252 elif test -n "$PKG_CONFIG"; then 12253 if test -n "$PKG_CONFIG" && \ 12254 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\"") >&5 12255 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5 12256 ac_status=$? 12257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12258 (exit $ac_status); }; then 12259 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 12260else 12261 pkg_failed=yes 12262fi 12263 else 12264 pkg_failed=untried 12265fi 12266 12267 12268 12269if test $pkg_failed = yes; then 12270 12271if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12272 _pkg_short_errors_supported=yes 12273else 12274 _pkg_short_errors_supported=no 12275fi 12276 if test $_pkg_short_errors_supported = yes; then 12277 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1` 12278 else 12279 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1` 12280 fi 12281 # Put the nasty error message in config.log where it belongs 12282 echo "$XORG_PKG_ERRORS" >&5 12283 12284 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met: 12285 12286$XORG_PKG_ERRORS 12287 12288Consider adjusting the PKG_CONFIG_PATH environment variable if you 12289installed software in a non-standard prefix. 12290 12291Alternatively, you may set the environment variables XORG_CFLAGS 12292and XORG_LIBS to avoid the need to call pkg-config. 12293See the pkg-config man page for more details. 12294" >&5 12295$as_echo "$as_me: error: Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met: 12296 12297$XORG_PKG_ERRORS 12298 12299Consider adjusting the PKG_CONFIG_PATH environment variable if you 12300installed software in a non-standard prefix. 12301 12302Alternatively, you may set the environment variables XORG_CFLAGS 12303and XORG_LIBS to avoid the need to call pkg-config. 12304See the pkg-config man page for more details. 12305" >&2;} 12306 { (exit 1); exit 1; }; } 12307elif test $pkg_failed = untried; then 12308 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 12309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12310{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 12311is in your PATH or set the PKG_CONFIG environment variable to the full 12312path to pkg-config. 12313 12314Alternatively, you may set the environment variables XORG_CFLAGS 12315and XORG_LIBS to avoid the need to call pkg-config. 12316See the pkg-config man page for more details. 12317 12318To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12319See \`config.log' for more details." >&5 12320$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 12321is in your PATH or set the PKG_CONFIG environment variable to the full 12322path to pkg-config. 12323 12324Alternatively, you may set the environment variables XORG_CFLAGS 12325and XORG_LIBS to avoid the need to call pkg-config. 12326See the pkg-config man page for more details. 12327 12328To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12329See \`config.log' for more details." >&2;} 12330 { (exit 1); exit 1; }; }; } 12331else 12332 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 12333 XORG_LIBS=$pkg_cv_XORG_LIBS 12334 { $as_echo "$as_me:$LINENO: result: yes" >&5 12335$as_echo "yes" >&6; } 12336 : 12337fi 12338sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` 12339 12340# Checks for libraries. 12341 12342if test "x$DRI" != xno; then 12343 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh` 12344{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5 12345$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; } 12346if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 12347 $as_echo_n "(cached) " >&6 12348else 12349 test "$cross_compiling" = yes && 12350 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 12351$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 12352 { (exit 1); exit 1; }; } 12353if test -r "${sdkdir}/dri.h"; then 12354 eval "$as_ac_File=yes" 12355else 12356 eval "$as_ac_File=no" 12357fi 12358fi 12359ac_res=`eval 'as_val=${'$as_ac_File'} 12360 $as_echo "$as_val"'` 12361 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12362$as_echo "$ac_res" >&6; } 12363as_val=`eval 'as_val=${'$as_ac_File'} 12364 $as_echo "$as_val"'` 12365 if test "x$as_val" = x""yes; then 12366 have_dri_h="yes" 12367else 12368 have_dri_h="no" 12369fi 12370 12371 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh` 12372{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5 12373$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; } 12374if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 12375 $as_echo_n "(cached) " >&6 12376else 12377 test "$cross_compiling" = yes && 12378 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 12379$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 12380 { (exit 1); exit 1; }; } 12381if test -r "${sdkdir}/sarea.h"; then 12382 eval "$as_ac_File=yes" 12383else 12384 eval "$as_ac_File=no" 12385fi 12386fi 12387ac_res=`eval 'as_val=${'$as_ac_File'} 12388 $as_echo "$as_val"'` 12389 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12390$as_echo "$ac_res" >&6; } 12391as_val=`eval 'as_val=${'$as_ac_File'} 12392 $as_echo "$as_val"'` 12393 if test "x$as_val" = x""yes; then 12394 have_sarea_h="yes" 12395else 12396 have_sarea_h="no" 12397fi 12398 12399 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh` 12400{ $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5 12401$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; } 12402if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 12403 $as_echo_n "(cached) " >&6 12404else 12405 test "$cross_compiling" = yes && 12406 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 12407$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 12408 { (exit 1); exit 1; }; } 12409if test -r "${sdkdir}/dristruct.h"; then 12410 eval "$as_ac_File=yes" 12411else 12412 eval "$as_ac_File=no" 12413fi 12414fi 12415ac_res=`eval 'as_val=${'$as_ac_File'} 12416 $as_echo "$as_val"'` 12417 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12418$as_echo "$ac_res" >&6; } 12419as_val=`eval 'as_val=${'$as_ac_File'} 12420 $as_echo "$as_val"'` 12421 if test "x$as_val" = x""yes; then 12422 have_dristruct_h="yes" 12423else 12424 have_dristruct_h="no" 12425fi 12426 12427fi 12428 12429{ $as_echo "$as_me:$LINENO: checking whether to include DRI support" >&5 12430$as_echo_n "checking whether to include DRI support... " >&6; } 12431if test "x$DRI" = xauto; then 12432 if test "x$have_dri_h" = xyes && \ 12433 test "x$have_sarea_h" = xyes && \ 12434 test "x$have_dristruct_h" = xyes; then 12435 DRI="yes" 12436 else 12437 DRI="no" 12438 fi 12439fi 12440{ $as_echo "$as_me:$LINENO: result: $DRI" >&5 12441$as_echo "$DRI" >&6; } 12442 12443 if test "x$DRI" = xyes; then 12444 DRI_TRUE= 12445 DRI_FALSE='#' 12446else 12447 DRI_TRUE='#' 12448 DRI_FALSE= 12449fi 12450 12451if test "x$DRI" = xyes; then 12452 12453pkg_failed=no 12454{ $as_echo "$as_me:$LINENO: checking for DRI" >&5 12455$as_echo_n "checking for DRI... " >&6; } 12456 12457if test -n "$DRI_CFLAGS"; then 12458 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS" 12459 elif test -n "$PKG_CONFIG"; then 12460 if test -n "$PKG_CONFIG" && \ 12461 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5 12462 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 12463 ac_status=$? 12464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12465 (exit $ac_status); }; then 12466 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null` 12467else 12468 pkg_failed=yes 12469fi 12470 else 12471 pkg_failed=untried 12472fi 12473if test -n "$DRI_LIBS"; then 12474 pkg_cv_DRI_LIBS="$DRI_LIBS" 12475 elif test -n "$PKG_CONFIG"; then 12476 if test -n "$PKG_CONFIG" && \ 12477 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5 12478 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 12479 ac_status=$? 12480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12481 (exit $ac_status); }; then 12482 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null` 12483else 12484 pkg_failed=yes 12485fi 12486 else 12487 pkg_failed=untried 12488fi 12489 12490 12491 12492if test $pkg_failed = yes; then 12493 12494if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12495 _pkg_short_errors_supported=yes 12496else 12497 _pkg_short_errors_supported=no 12498fi 12499 if test $_pkg_short_errors_supported = yes; then 12500 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.0 xf86driproto" 2>&1` 12501 else 12502 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.0 xf86driproto" 2>&1` 12503 fi 12504 # Put the nasty error message in config.log where it belongs 12505 echo "$DRI_PKG_ERRORS" >&5 12506 12507 { { $as_echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met: 12508 12509$DRI_PKG_ERRORS 12510 12511Consider adjusting the PKG_CONFIG_PATH environment variable if you 12512installed software in a non-standard prefix. 12513 12514Alternatively, you may set the environment variables DRI_CFLAGS 12515and DRI_LIBS to avoid the need to call pkg-config. 12516See the pkg-config man page for more details. 12517" >&5 12518$as_echo "$as_me: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met: 12519 12520$DRI_PKG_ERRORS 12521 12522Consider adjusting the PKG_CONFIG_PATH environment variable if you 12523installed software in a non-standard prefix. 12524 12525Alternatively, you may set the environment variables DRI_CFLAGS 12526and DRI_LIBS to avoid the need to call pkg-config. 12527See the pkg-config man page for more details. 12528" >&2;} 12529 { (exit 1); exit 1; }; } 12530elif test $pkg_failed = untried; then 12531 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 12532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12533{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 12534is in your PATH or set the PKG_CONFIG environment variable to the full 12535path to pkg-config. 12536 12537Alternatively, you may set the environment variables DRI_CFLAGS 12538and DRI_LIBS to avoid the need to call pkg-config. 12539See the pkg-config man page for more details. 12540 12541To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12542See \`config.log' for more details." >&5 12543$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 12544is in your PATH or set the PKG_CONFIG environment variable to the full 12545path to pkg-config. 12546 12547Alternatively, you may set the environment variables DRI_CFLAGS 12548and DRI_LIBS to avoid the need to call pkg-config. 12549See the pkg-config man page for more details. 12550 12551To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12552See \`config.log' for more details." >&2;} 12553 { (exit 1); exit 1; }; }; } 12554else 12555 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS 12556 DRI_LIBS=$pkg_cv_DRI_LIBS 12557 { $as_echo "$as_me:$LINENO: result: yes" >&5 12558$as_echo "yes" >&6; } 12559 : 12560fi 12561 12562cat >>confdefs.h <<\_ACEOF 12563#define XF86DRI 1 12564_ACEOF 12565 12566 12567cat >>confdefs.h <<\_ACEOF 12568#define XF86DRI_DEVEL 1 12569_ACEOF 12570 12571fi 12572 12573save_CFLAGS="$CFLAGS" 12574CFLAGS="$XORG_CFLAGS" 12575{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5 12576$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; } 12577if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then 12578 $as_echo_n "(cached) " >&6 12579else 12580 cat >conftest.$ac_ext <<_ACEOF 12581/* confdefs.h. */ 12582_ACEOF 12583cat confdefs.h >>conftest.$ac_ext 12584cat >>conftest.$ac_ext <<_ACEOF 12585/* end confdefs.h. */ 12586#include "xorg-server.h" 12587 12588int 12589main () 12590{ 12591#ifndef XSERVER_LIBPCIACCESS 12592 (void) XSERVER_LIBPCIACCESS; 12593#endif 12594 12595 ; 12596 return 0; 12597} 12598_ACEOF 12599rm -f conftest.$ac_objext 12600if { (ac_try="$ac_compile" 12601case "(($ac_try" in 12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12603 *) ac_try_echo=$ac_try;; 12604esac 12605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12606$as_echo "$ac_try_echo") >&5 12607 (eval "$ac_compile") 2>conftest.er1 12608 ac_status=$? 12609 grep -v '^ *+' conftest.er1 >conftest.err 12610 rm -f conftest.er1 12611 cat conftest.err >&5 12612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12613 (exit $ac_status); } && { 12614 test -z "$ac_c_werror_flag" || 12615 test ! -s conftest.err 12616 } && test -s conftest.$ac_objext; then 12617 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes 12618else 12619 $as_echo "$as_me: failed program was:" >&5 12620sed 's/^/| /' conftest.$ac_ext >&5 12621 12622 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no 12623fi 12624 12625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12626fi 12627{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5 12628$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; } 12629if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then 12630 XSERVER_LIBPCIACCESS=yes 12631else 12632 XSERVER_LIBPCIACCESS=no 12633fi 12634 12635CFLAGS="$save_CFLAGS" 12636 12637save_CFLAGS="$CFLAGS" 12638CFLAGS="$XORG_CFLAGS" 12639{ $as_echo "$as_me:$LINENO: checking whether xf86ModeBandwidth is declared" >&5 12640$as_echo_n "checking whether xf86ModeBandwidth is declared... " >&6; } 12641if test "${ac_cv_have_decl_xf86ModeBandwidth+set}" = set; then 12642 $as_echo_n "(cached) " >&6 12643else 12644 cat >conftest.$ac_ext <<_ACEOF 12645/* confdefs.h. */ 12646_ACEOF 12647cat confdefs.h >>conftest.$ac_ext 12648cat >>conftest.$ac_ext <<_ACEOF 12649/* end confdefs.h. */ 12650#include <X11/extensions/randr.h> 12651 #include "xorg-server.h" 12652 #include "xf86Modes.h" 12653 12654int 12655main () 12656{ 12657#ifndef xf86ModeBandwidth 12658 (void) xf86ModeBandwidth; 12659#endif 12660 12661 ; 12662 return 0; 12663} 12664_ACEOF 12665rm -f conftest.$ac_objext 12666if { (ac_try="$ac_compile" 12667case "(($ac_try" in 12668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12669 *) ac_try_echo=$ac_try;; 12670esac 12671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12672$as_echo "$ac_try_echo") >&5 12673 (eval "$ac_compile") 2>conftest.er1 12674 ac_status=$? 12675 grep -v '^ *+' conftest.er1 >conftest.err 12676 rm -f conftest.er1 12677 cat conftest.err >&5 12678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12679 (exit $ac_status); } && { 12680 test -z "$ac_c_werror_flag" || 12681 test ! -s conftest.err 12682 } && test -s conftest.$ac_objext; then 12683 ac_cv_have_decl_xf86ModeBandwidth=yes 12684else 12685 $as_echo "$as_me: failed program was:" >&5 12686sed 's/^/| /' conftest.$ac_ext >&5 12687 12688 ac_cv_have_decl_xf86ModeBandwidth=no 12689fi 12690 12691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12692fi 12693{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_xf86ModeBandwidth" >&5 12694$as_echo "$ac_cv_have_decl_xf86ModeBandwidth" >&6; } 12695if test "x$ac_cv_have_decl_xf86ModeBandwidth" = x""yes; then 12696 12697cat >>confdefs.h <<\_ACEOF 12698#define HAVE_XF86MODEBANDWIDTH 1 12699_ACEOF 12700 12701fi 12702 12703CFLAGS="$save_CFLAGS" 12704 12705if test "x$XSERVER_LIBPCIACCESS" = xyes; then 12706 12707pkg_failed=no 12708{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5 12709$as_echo_n "checking for PCIACCESS... " >&6; } 12710 12711if test -n "$PCIACCESS_CFLAGS"; then 12712 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 12713 elif test -n "$PKG_CONFIG"; then 12714 if test -n "$PKG_CONFIG" && \ 12715 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 12716 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 12717 ac_status=$? 12718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12719 (exit $ac_status); }; then 12720 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 12721else 12722 pkg_failed=yes 12723fi 12724 else 12725 pkg_failed=untried 12726fi 12727if test -n "$PCIACCESS_LIBS"; then 12728 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 12729 elif test -n "$PKG_CONFIG"; then 12730 if test -n "$PKG_CONFIG" && \ 12731 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 12732 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 12733 ac_status=$? 12734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12735 (exit $ac_status); }; then 12736 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 12737else 12738 pkg_failed=yes 12739fi 12740 else 12741 pkg_failed=untried 12742fi 12743 12744 12745 12746if test $pkg_failed = yes; then 12747 12748if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12749 _pkg_short_errors_supported=yes 12750else 12751 _pkg_short_errors_supported=no 12752fi 12753 if test $_pkg_short_errors_supported = yes; then 12754 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1` 12755 else 12756 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1` 12757 fi 12758 # Put the nasty error message in config.log where it belongs 12759 echo "$PCIACCESS_PKG_ERRORS" >&5 12760 12761 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met: 12762 12763$PCIACCESS_PKG_ERRORS 12764 12765Consider adjusting the PKG_CONFIG_PATH environment variable if you 12766installed software in a non-standard prefix. 12767 12768Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12769and PCIACCESS_LIBS to avoid the need to call pkg-config. 12770See the pkg-config man page for more details. 12771" >&5 12772$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met: 12773 12774$PCIACCESS_PKG_ERRORS 12775 12776Consider adjusting the PKG_CONFIG_PATH environment variable if you 12777installed software in a non-standard prefix. 12778 12779Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12780and PCIACCESS_LIBS to avoid the need to call pkg-config. 12781See the pkg-config man page for more details. 12782" >&2;} 12783 { (exit 1); exit 1; }; } 12784elif test $pkg_failed = untried; then 12785 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 12786$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12787{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 12788is in your PATH or set the PKG_CONFIG environment variable to the full 12789path to pkg-config. 12790 12791Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12792and PCIACCESS_LIBS to avoid the need to call pkg-config. 12793See the pkg-config man page for more details. 12794 12795To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12796See \`config.log' for more details." >&5 12797$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 12798is in your PATH or set the PKG_CONFIG environment variable to the full 12799path to pkg-config. 12800 12801Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12802and PCIACCESS_LIBS to avoid the need to call pkg-config. 12803See the pkg-config man page for more details. 12804 12805To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12806See \`config.log' for more details." >&2;} 12807 { (exit 1); exit 1; }; }; } 12808else 12809 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 12810 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 12811 { $as_echo "$as_me:$LINENO: result: yes" >&5 12812$as_echo "yes" >&6; } 12813 : 12814fi 12815fi 12816 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 12817 XSERVER_LIBPCIACCESS_TRUE= 12818 XSERVER_LIBPCIACCESS_FALSE='#' 12819else 12820 XSERVER_LIBPCIACCESS_TRUE='#' 12821 XSERVER_LIBPCIACCESS_FALSE= 12822fi 12823 12824 12825 if true; then 12826 USE_XAA_TRUE= 12827 USE_XAA_FALSE='#' 12828else 12829 USE_XAA_TRUE='#' 12830 USE_XAA_FALSE= 12831fi 12832 12833 12834cat >>confdefs.h <<\_ACEOF 12835#define USE_XAA 1 12836_ACEOF 12837 12838 12839# Properly handle EXA. 12840{ $as_echo "$as_me:$LINENO: checking whether to enable EXA support" >&5 12841$as_echo_n "checking whether to enable EXA support... " >&6; } 12842if test "x$EXA" = xyes; then 12843 { $as_echo "$as_me:$LINENO: result: yes" >&5 12844$as_echo "yes" >&6; } 12845 12846 SAVE_CPPFLAGS="$CPPFLAGS" 12847 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 12848 if test "${ac_cv_header_exa_h+set}" = set; then 12849 { $as_echo "$as_me:$LINENO: checking for exa.h" >&5 12850$as_echo_n "checking for exa.h... " >&6; } 12851if test "${ac_cv_header_exa_h+set}" = set; then 12852 $as_echo_n "(cached) " >&6 12853fi 12854{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_exa_h" >&5 12855$as_echo "$ac_cv_header_exa_h" >&6; } 12856else 12857 # Is the header compilable? 12858{ $as_echo "$as_me:$LINENO: checking exa.h usability" >&5 12859$as_echo_n "checking exa.h usability... " >&6; } 12860cat >conftest.$ac_ext <<_ACEOF 12861/* confdefs.h. */ 12862_ACEOF 12863cat confdefs.h >>conftest.$ac_ext 12864cat >>conftest.$ac_ext <<_ACEOF 12865/* end confdefs.h. */ 12866$ac_includes_default 12867#include <exa.h> 12868_ACEOF 12869rm -f conftest.$ac_objext 12870if { (ac_try="$ac_compile" 12871case "(($ac_try" in 12872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12873 *) ac_try_echo=$ac_try;; 12874esac 12875eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12876$as_echo "$ac_try_echo") >&5 12877 (eval "$ac_compile") 2>conftest.er1 12878 ac_status=$? 12879 grep -v '^ *+' conftest.er1 >conftest.err 12880 rm -f conftest.er1 12881 cat conftest.err >&5 12882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12883 (exit $ac_status); } && { 12884 test -z "$ac_c_werror_flag" || 12885 test ! -s conftest.err 12886 } && test -s conftest.$ac_objext; then 12887 ac_header_compiler=yes 12888else 12889 $as_echo "$as_me: failed program was:" >&5 12890sed 's/^/| /' conftest.$ac_ext >&5 12891 12892 ac_header_compiler=no 12893fi 12894 12895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12896{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12897$as_echo "$ac_header_compiler" >&6; } 12898 12899# Is the header present? 12900{ $as_echo "$as_me:$LINENO: checking exa.h presence" >&5 12901$as_echo_n "checking exa.h presence... " >&6; } 12902cat >conftest.$ac_ext <<_ACEOF 12903/* confdefs.h. */ 12904_ACEOF 12905cat confdefs.h >>conftest.$ac_ext 12906cat >>conftest.$ac_ext <<_ACEOF 12907/* end confdefs.h. */ 12908#include <exa.h> 12909_ACEOF 12910if { (ac_try="$ac_cpp conftest.$ac_ext" 12911case "(($ac_try" in 12912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12913 *) ac_try_echo=$ac_try;; 12914esac 12915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12916$as_echo "$ac_try_echo") >&5 12917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12918 ac_status=$? 12919 grep -v '^ *+' conftest.er1 >conftest.err 12920 rm -f conftest.er1 12921 cat conftest.err >&5 12922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12923 (exit $ac_status); } >/dev/null && { 12924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12925 test ! -s conftest.err 12926 }; then 12927 ac_header_preproc=yes 12928else 12929 $as_echo "$as_me: failed program was:" >&5 12930sed 's/^/| /' conftest.$ac_ext >&5 12931 12932 ac_header_preproc=no 12933fi 12934 12935rm -f conftest.err conftest.$ac_ext 12936{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12937$as_echo "$ac_header_preproc" >&6; } 12938 12939# So? What about this header? 12940case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12941 yes:no: ) 12942 { $as_echo "$as_me:$LINENO: WARNING: exa.h: accepted by the compiler, rejected by the preprocessor!" >&5 12943$as_echo "$as_me: WARNING: exa.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 12944 { $as_echo "$as_me:$LINENO: WARNING: exa.h: proceeding with the compiler's result" >&5 12945$as_echo "$as_me: WARNING: exa.h: proceeding with the compiler's result" >&2;} 12946 ac_header_preproc=yes 12947 ;; 12948 no:yes:* ) 12949 { $as_echo "$as_me:$LINENO: WARNING: exa.h: present but cannot be compiled" >&5 12950$as_echo "$as_me: WARNING: exa.h: present but cannot be compiled" >&2;} 12951 { $as_echo "$as_me:$LINENO: WARNING: exa.h: check for missing prerequisite headers?" >&5 12952$as_echo "$as_me: WARNING: exa.h: check for missing prerequisite headers?" >&2;} 12953 { $as_echo "$as_me:$LINENO: WARNING: exa.h: see the Autoconf documentation" >&5 12954$as_echo "$as_me: WARNING: exa.h: see the Autoconf documentation" >&2;} 12955 { $as_echo "$as_me:$LINENO: WARNING: exa.h: section \"Present But Cannot Be Compiled\"" >&5 12956$as_echo "$as_me: WARNING: exa.h: section \"Present But Cannot Be Compiled\"" >&2;} 12957 { $as_echo "$as_me:$LINENO: WARNING: exa.h: proceeding with the preprocessor's result" >&5 12958$as_echo "$as_me: WARNING: exa.h: proceeding with the preprocessor's result" >&2;} 12959 { $as_echo "$as_me:$LINENO: WARNING: exa.h: in the future, the compiler will take precedence" >&5 12960$as_echo "$as_me: WARNING: exa.h: in the future, the compiler will take precedence" >&2;} 12961 ( cat <<\_ASBOX 12962## ---------------------------------------------------------------------- ## 12963## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 12964## ---------------------------------------------------------------------- ## 12965_ASBOX 12966 ) | sed "s/^/$as_me: WARNING: /" >&2 12967 ;; 12968esac 12969{ $as_echo "$as_me:$LINENO: checking for exa.h" >&5 12970$as_echo_n "checking for exa.h... " >&6; } 12971if test "${ac_cv_header_exa_h+set}" = set; then 12972 $as_echo_n "(cached) " >&6 12973else 12974 ac_cv_header_exa_h=$ac_header_preproc 12975fi 12976{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_exa_h" >&5 12977$as_echo "$ac_cv_header_exa_h" >&6; } 12978 12979fi 12980if test "x$ac_cv_header_exa_h" = x""yes; then 12981 have_exa_h="yes" 12982else 12983 have_exa_h="no" 12984fi 12985 12986 12987 CPPFLAGS="$SAVE_CPPFLAGS" 12988else 12989 { $as_echo "$as_me:$LINENO: result: no" >&5 12990$as_echo "no" >&6; } 12991fi 12992 12993SAVE_CPPFLAGS="$CPPFLAGS" 12994CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 12995if test "x$have_exa_h" = xyes; then 12996 { $as_echo "$as_me:$LINENO: checking whether EXA version is at least 2.0.0" >&5 12997$as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; } 12998 cat >conftest.$ac_ext <<_ACEOF 12999/* confdefs.h. */ 13000_ACEOF 13001cat confdefs.h >>conftest.$ac_ext 13002cat >>conftest.$ac_ext <<_ACEOF 13003/* end confdefs.h. */ 13004 13005#include "exa.h" 13006#if EXA_VERSION_MAJOR < 2 13007#error OLD EXA! 13008#endif 13009 13010int 13011main () 13012{ 13013 13014 ; 13015 return 0; 13016} 13017_ACEOF 13018if { (ac_try="$ac_cpp conftest.$ac_ext" 13019case "(($ac_try" in 13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13021 *) ac_try_echo=$ac_try;; 13022esac 13023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13024$as_echo "$ac_try_echo") >&5 13025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13026 ac_status=$? 13027 grep -v '^ *+' conftest.er1 >conftest.err 13028 rm -f conftest.er1 13029 cat conftest.err >&5 13030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13031 (exit $ac_status); } >/dev/null && { 13032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13033 test ! -s conftest.err 13034 }; then 13035 USE_EXA=yes 13036else 13037 $as_echo "$as_me: failed program was:" >&5 13038sed 's/^/| /' conftest.$ac_ext >&5 13039 13040 USE_EXA=no 13041fi 13042 13043rm -f conftest.err conftest.$ac_ext 13044 { $as_echo "$as_me:$LINENO: result: $USE_EXA" >&5 13045$as_echo "$USE_EXA" >&6; } 13046 13047 if test "x$USE_EXA" = xyes; then 13048 13049cat >>confdefs.h <<\_ACEOF 13050#define USE_EXA 1 13051_ACEOF 13052 13053 fi 13054fi 13055CPPFLAGS="$SAVE_CPPFLAGS" 13056 13057 if test "x$USE_EXA" = xyes; then 13058 USE_EXA_TRUE= 13059 USE_EXA_FALSE='#' 13060else 13061 USE_EXA_TRUE='#' 13062 USE_EXA_FALSE= 13063fi 13064 13065 13066 13067 13068DRIVER_NAME=mga 13069 13070 13071ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile util/Makefile" 13072 13073cat >confcache <<\_ACEOF 13074# This file is a shell script that caches the results of configure 13075# tests run on this system so they can be shared between configure 13076# scripts and configure runs, see configure's option --config-cache. 13077# It is not useful on other systems. If it contains results you don't 13078# want to keep, you may remove or edit it. 13079# 13080# config.status only pays attention to the cache file if you give it 13081# the --recheck option to rerun configure. 13082# 13083# `ac_cv_env_foo' variables (set or unset) will be overridden when 13084# loading this file, other *unset* `ac_cv_foo' will be assigned the 13085# following values. 13086 13087_ACEOF 13088 13089# The following way of writing the cache mishandles newlines in values, 13090# but we know of no workaround that is simple, portable, and efficient. 13091# So, we kill variables containing newlines. 13092# Ultrix sh set writes to stderr and can't be redirected directly, 13093# and sets the high bit in the cache file unless we assign to the vars. 13094( 13095 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13096 eval ac_val=\$$ac_var 13097 case $ac_val in #( 13098 *${as_nl}*) 13099 case $ac_var in #( 13100 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 13101$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13102 esac 13103 case $ac_var in #( 13104 _ | IFS | as_nl) ;; #( 13105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13106 *) $as_unset $ac_var ;; 13107 esac ;; 13108 esac 13109 done 13110 13111 (set) 2>&1 | 13112 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13113 *${as_nl}ac_space=\ *) 13114 # `set' does not quote correctly, so add quotes (double-quote 13115 # substitution turns \\\\ into \\, and sed turns \\ into \). 13116 sed -n \ 13117 "s/'/'\\\\''/g; 13118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13119 ;; #( 13120 *) 13121 # `set' quotes correctly as required by POSIX, so do not add quotes. 13122 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13123 ;; 13124 esac | 13125 sort 13126) | 13127 sed ' 13128 /^ac_cv_env_/b end 13129 t clear 13130 :clear 13131 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13132 t end 13133 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13134 :end' >>confcache 13135if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13136 if test -w "$cache_file"; then 13137 test "x$cache_file" != "x/dev/null" && 13138 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 13139$as_echo "$as_me: updating cache $cache_file" >&6;} 13140 cat confcache >$cache_file 13141 else 13142 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 13143$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13144 fi 13145fi 13146rm -f confcache 13147 13148test "x$prefix" = xNONE && prefix=$ac_default_prefix 13149# Let make expand exec_prefix. 13150test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13151 13152DEFS=-DHAVE_CONFIG_H 13153 13154ac_libobjs= 13155ac_ltlibobjs= 13156for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13157 # 1. Remove the extension, and $U if already installed. 13158 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13159 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13160 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13161 # will be set to the directory where LIBOBJS objects are built. 13162 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13163 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 13164done 13165LIBOBJS=$ac_libobjs 13166 13167LTLIBOBJS=$ac_ltlibobjs 13168 13169 13170if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13171 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 13172Usually this means the macro was only invoked conditionally." >&5 13173$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 13174Usually this means the macro was only invoked conditionally." >&2;} 13175 { (exit 1); exit 1; }; } 13176fi 13177if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13178 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13179Usually this means the macro was only invoked conditionally." >&5 13180$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13181Usually this means the macro was only invoked conditionally." >&2;} 13182 { (exit 1); exit 1; }; } 13183fi 13184 if test -n "$EXEEXT"; then 13185 am__EXEEXT_TRUE= 13186 am__EXEEXT_FALSE='#' 13187else 13188 am__EXEEXT_TRUE='#' 13189 am__EXEEXT_FALSE= 13190fi 13191 13192if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13193 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 13194Usually this means the macro was only invoked conditionally." >&5 13195$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 13196Usually this means the macro was only invoked conditionally." >&2;} 13197 { (exit 1); exit 1; }; } 13198fi 13199if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 13200 { { $as_echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined. 13201Usually this means the macro was only invoked conditionally." >&5 13202$as_echo "$as_me: error: conditional \"DRI\" was never defined. 13203Usually this means the macro was only invoked conditionally." >&2;} 13204 { (exit 1); exit 1; }; } 13205fi 13206if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 13207 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 13208Usually this means the macro was only invoked conditionally." >&5 13209$as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 13210Usually this means the macro was only invoked conditionally." >&2;} 13211 { (exit 1); exit 1; }; } 13212fi 13213if test -z "${USE_XAA_TRUE}" && test -z "${USE_XAA_FALSE}"; then 13214 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_XAA\" was never defined. 13215Usually this means the macro was only invoked conditionally." >&5 13216$as_echo "$as_me: error: conditional \"USE_XAA\" was never defined. 13217Usually this means the macro was only invoked conditionally." >&2;} 13218 { (exit 1); exit 1; }; } 13219fi 13220if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then 13221 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_EXA\" was never defined. 13222Usually this means the macro was only invoked conditionally." >&5 13223$as_echo "$as_me: error: conditional \"USE_EXA\" was never defined. 13224Usually this means the macro was only invoked conditionally." >&2;} 13225 { (exit 1); exit 1; }; } 13226fi 13227 13228: ${CONFIG_STATUS=./config.status} 13229ac_write_fail=0 13230ac_clean_files_save=$ac_clean_files 13231ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13232{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13233$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13234cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13235#! $SHELL 13236# Generated by $as_me. 13237# Run this file to recreate the current configuration. 13238# Compiler output produced by configure, useful for debugging 13239# configure, is in config.log if it exists. 13240 13241debug=false 13242ac_cs_recheck=false 13243ac_cs_silent=false 13244SHELL=\${CONFIG_SHELL-$SHELL} 13245_ACEOF 13246 13247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13248## --------------------- ## 13249## M4sh Initialization. ## 13250## --------------------- ## 13251 13252# Be more Bourne compatible 13253DUALCASE=1; export DUALCASE # for MKS sh 13254if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13255 emulate sh 13256 NULLCMD=: 13257 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13258 # is contrary to our usage. Disable this feature. 13259 alias -g '${1+"$@"}'='"$@"' 13260 setopt NO_GLOB_SUBST 13261else 13262 case `(set -o) 2>/dev/null` in 13263 *posix*) set -o posix ;; 13264esac 13265 13266fi 13267 13268 13269 13270 13271# PATH needs CR 13272# Avoid depending upon Character Ranges. 13273as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13274as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13275as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13276as_cr_digits='0123456789' 13277as_cr_alnum=$as_cr_Letters$as_cr_digits 13278 13279as_nl=' 13280' 13281export as_nl 13282# Printing a long string crashes Solaris 7 /usr/bin/printf. 13283as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13284as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13285as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13286if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13287 as_echo='printf %s\n' 13288 as_echo_n='printf %s' 13289else 13290 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13291 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13292 as_echo_n='/usr/ucb/echo -n' 13293 else 13294 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13295 as_echo_n_body='eval 13296 arg=$1; 13297 case $arg in 13298 *"$as_nl"*) 13299 expr "X$arg" : "X\\(.*\\)$as_nl"; 13300 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13301 esac; 13302 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13303 ' 13304 export as_echo_n_body 13305 as_echo_n='sh -c $as_echo_n_body as_echo' 13306 fi 13307 export as_echo_body 13308 as_echo='sh -c $as_echo_body as_echo' 13309fi 13310 13311# The user is always right. 13312if test "${PATH_SEPARATOR+set}" != set; then 13313 PATH_SEPARATOR=: 13314 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13315 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13316 PATH_SEPARATOR=';' 13317 } 13318fi 13319 13320# Support unset when possible. 13321if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13322 as_unset=unset 13323else 13324 as_unset=false 13325fi 13326 13327 13328# IFS 13329# We need space, tab and new line, in precisely that order. Quoting is 13330# there to prevent editors from complaining about space-tab. 13331# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13332# splitting by setting IFS to empty value.) 13333IFS=" "" $as_nl" 13334 13335# Find who we are. Look in the path if we contain no directory separator. 13336case $0 in 13337 *[\\/]* ) as_myself=$0 ;; 13338 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13339for as_dir in $PATH 13340do 13341 IFS=$as_save_IFS 13342 test -z "$as_dir" && as_dir=. 13343 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13344done 13345IFS=$as_save_IFS 13346 13347 ;; 13348esac 13349# We did not find ourselves, most probably we were run as `sh COMMAND' 13350# in which case we are not to be found in the path. 13351if test "x$as_myself" = x; then 13352 as_myself=$0 13353fi 13354if test ! -f "$as_myself"; then 13355 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13356 { (exit 1); exit 1; } 13357fi 13358 13359# Work around bugs in pre-3.0 UWIN ksh. 13360for as_var in ENV MAIL MAILPATH 13361do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13362done 13363PS1='$ ' 13364PS2='> ' 13365PS4='+ ' 13366 13367# NLS nuisances. 13368LC_ALL=C 13369export LC_ALL 13370LANGUAGE=C 13371export LANGUAGE 13372 13373# Required to use basename. 13374if expr a : '\(a\)' >/dev/null 2>&1 && 13375 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13376 as_expr=expr 13377else 13378 as_expr=false 13379fi 13380 13381if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13382 as_basename=basename 13383else 13384 as_basename=false 13385fi 13386 13387 13388# Name of the executable. 13389as_me=`$as_basename -- "$0" || 13390$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13391 X"$0" : 'X\(//\)$' \| \ 13392 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13393$as_echo X/"$0" | 13394 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13395 s//\1/ 13396 q 13397 } 13398 /^X\/\(\/\/\)$/{ 13399 s//\1/ 13400 q 13401 } 13402 /^X\/\(\/\).*/{ 13403 s//\1/ 13404 q 13405 } 13406 s/.*/./; q'` 13407 13408# CDPATH. 13409$as_unset CDPATH 13410 13411 13412 13413 as_lineno_1=$LINENO 13414 as_lineno_2=$LINENO 13415 test "x$as_lineno_1" != "x$as_lineno_2" && 13416 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 13417 13418 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13419 # uniformly replaced by the line number. The first 'sed' inserts a 13420 # line-number line after each line using $LINENO; the second 'sed' 13421 # does the real work. The second script uses 'N' to pair each 13422 # line-number line with the line containing $LINENO, and appends 13423 # trailing '-' during substitution so that $LINENO is not a special 13424 # case at line end. 13425 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13426 # scripts with optimization help from Paolo Bonzini. Blame Lee 13427 # E. McMahon (1931-1989) for sed's syntax. :-) 13428 sed -n ' 13429 p 13430 /[$]LINENO/= 13431 ' <$as_myself | 13432 sed ' 13433 s/[$]LINENO.*/&-/ 13434 t lineno 13435 b 13436 :lineno 13437 N 13438 :loop 13439 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 13440 t loop 13441 s/-\n.*// 13442 ' >$as_me.lineno && 13443 chmod +x "$as_me.lineno" || 13444 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 13445 { (exit 1); exit 1; }; } 13446 13447 # Don't try to exec as it changes $[0], causing all sort of problems 13448 # (the dirname of $[0] is not the place where we might find the 13449 # original and so on. Autoconf is especially sensitive to this). 13450 . "./$as_me.lineno" 13451 # Exit status is that of the last command. 13452 exit 13453} 13454 13455 13456if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13457 as_dirname=dirname 13458else 13459 as_dirname=false 13460fi 13461 13462ECHO_C= ECHO_N= ECHO_T= 13463case `echo -n x` in 13464-n*) 13465 case `echo 'x\c'` in 13466 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13467 *) ECHO_C='\c';; 13468 esac;; 13469*) 13470 ECHO_N='-n';; 13471esac 13472if expr a : '\(a\)' >/dev/null 2>&1 && 13473 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13474 as_expr=expr 13475else 13476 as_expr=false 13477fi 13478 13479rm -f conf$$ conf$$.exe conf$$.file 13480if test -d conf$$.dir; then 13481 rm -f conf$$.dir/conf$$.file 13482else 13483 rm -f conf$$.dir 13484 mkdir conf$$.dir 2>/dev/null 13485fi 13486if (echo >conf$$.file) 2>/dev/null; then 13487 if ln -s conf$$.file conf$$ 2>/dev/null; then 13488 as_ln_s='ln -s' 13489 # ... but there are two gotchas: 13490 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13491 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13492 # In both cases, we have to default to `cp -p'. 13493 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13494 as_ln_s='cp -p' 13495 elif ln conf$$.file conf$$ 2>/dev/null; then 13496 as_ln_s=ln 13497 else 13498 as_ln_s='cp -p' 13499 fi 13500else 13501 as_ln_s='cp -p' 13502fi 13503rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13504rmdir conf$$.dir 2>/dev/null 13505 13506if mkdir -p . 2>/dev/null; then 13507 as_mkdir_p=: 13508else 13509 test -d ./-p && rmdir ./-p 13510 as_mkdir_p=false 13511fi 13512 13513if test -x / >/dev/null 2>&1; then 13514 as_test_x='test -x' 13515else 13516 if ls -dL / >/dev/null 2>&1; then 13517 as_ls_L_option=L 13518 else 13519 as_ls_L_option= 13520 fi 13521 as_test_x=' 13522 eval sh -c '\'' 13523 if test -d "$1"; then 13524 test -d "$1/."; 13525 else 13526 case $1 in 13527 -*)set "./$1";; 13528 esac; 13529 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 13530 ???[sx]*):;;*)false;;esac;fi 13531 '\'' sh 13532 ' 13533fi 13534as_executable_p=$as_test_x 13535 13536# Sed expression to map a string onto a valid CPP name. 13537as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13538 13539# Sed expression to map a string onto a valid variable name. 13540as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13541 13542 13543exec 6>&1 13544 13545# Save the log message, to keep $[0] and so on meaningful, and to 13546# report actual input values of CONFIG_FILES etc. instead of their 13547# values after options handling. 13548ac_log=" 13549This file was extended by xf86-video-mga $as_me 1.4.13, which was 13550generated by GNU Autoconf 2.63. Invocation command line was 13551 13552 CONFIG_FILES = $CONFIG_FILES 13553 CONFIG_HEADERS = $CONFIG_HEADERS 13554 CONFIG_LINKS = $CONFIG_LINKS 13555 CONFIG_COMMANDS = $CONFIG_COMMANDS 13556 $ $0 $@ 13557 13558on `(hostname || uname -n) 2>/dev/null | sed 1q` 13559" 13560 13561_ACEOF 13562 13563case $ac_config_files in *" 13564"*) set x $ac_config_files; shift; ac_config_files=$*;; 13565esac 13566 13567case $ac_config_headers in *" 13568"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13569esac 13570 13571 13572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13573# Files that config.status was made for. 13574config_files="$ac_config_files" 13575config_headers="$ac_config_headers" 13576config_commands="$ac_config_commands" 13577 13578_ACEOF 13579 13580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13581ac_cs_usage="\ 13582\`$as_me' instantiates files from templates according to the 13583current configuration. 13584 13585Usage: $0 [OPTION]... [FILE]... 13586 13587 -h, --help print this help, then exit 13588 -V, --version print version number and configuration settings, then exit 13589 -q, --quiet, --silent 13590 do not print progress messages 13591 -d, --debug don't remove temporary files 13592 --recheck update $as_me by reconfiguring in the same conditions 13593 --file=FILE[:TEMPLATE] 13594 instantiate the configuration file FILE 13595 --header=FILE[:TEMPLATE] 13596 instantiate the configuration header FILE 13597 13598Configuration files: 13599$config_files 13600 13601Configuration headers: 13602$config_headers 13603 13604Configuration commands: 13605$config_commands 13606 13607Report bugs to <bug-autoconf@gnu.org>." 13608 13609_ACEOF 13610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13611ac_cs_version="\\ 13612xf86-video-mga config.status 1.4.13 13613configured by $0, generated by GNU Autoconf 2.63, 13614 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 13615 13616Copyright (C) 2008 Free Software Foundation, Inc. 13617This config.status script is free software; the Free Software Foundation 13618gives unlimited permission to copy, distribute and modify it." 13619 13620ac_pwd='$ac_pwd' 13621srcdir='$srcdir' 13622INSTALL='$INSTALL' 13623MKDIR_P='$MKDIR_P' 13624AWK='$AWK' 13625test -n "\$AWK" || AWK=awk 13626_ACEOF 13627 13628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13629# The default lists apply if the user does not specify any file. 13630ac_need_defaults=: 13631while test $# != 0 13632do 13633 case $1 in 13634 --*=*) 13635 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13636 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13637 ac_shift=: 13638 ;; 13639 *) 13640 ac_option=$1 13641 ac_optarg=$2 13642 ac_shift=shift 13643 ;; 13644 esac 13645 13646 case $ac_option in 13647 # Handling of the options. 13648 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13649 ac_cs_recheck=: ;; 13650 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13651 $as_echo "$ac_cs_version"; exit ;; 13652 --debug | --debu | --deb | --de | --d | -d ) 13653 debug=: ;; 13654 --file | --fil | --fi | --f ) 13655 $ac_shift 13656 case $ac_optarg in 13657 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13658 esac 13659 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 13660 ac_need_defaults=false;; 13661 --header | --heade | --head | --hea ) 13662 $ac_shift 13663 case $ac_optarg in 13664 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13665 esac 13666 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 13667 ac_need_defaults=false;; 13668 --he | --h) 13669 # Conflict between --help and --header 13670 { $as_echo "$as_me: error: ambiguous option: $1 13671Try \`$0 --help' for more information." >&2 13672 { (exit 1); exit 1; }; };; 13673 --help | --hel | -h ) 13674 $as_echo "$ac_cs_usage"; exit ;; 13675 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13676 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13677 ac_cs_silent=: ;; 13678 13679 # This is an error. 13680 -*) { $as_echo "$as_me: error: unrecognized option: $1 13681Try \`$0 --help' for more information." >&2 13682 { (exit 1); exit 1; }; } ;; 13683 13684 *) ac_config_targets="$ac_config_targets $1" 13685 ac_need_defaults=false ;; 13686 13687 esac 13688 shift 13689done 13690 13691ac_configure_extra_args= 13692 13693if $ac_cs_silent; then 13694 exec 6>/dev/null 13695 ac_configure_extra_args="$ac_configure_extra_args --silent" 13696fi 13697 13698_ACEOF 13699cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13700if \$ac_cs_recheck; then 13701 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13702 shift 13703 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13704 CONFIG_SHELL='$SHELL' 13705 export CONFIG_SHELL 13706 exec "\$@" 13707fi 13708 13709_ACEOF 13710cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13711exec 5>>config.log 13712{ 13713 echo 13714 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13715## Running $as_me. ## 13716_ASBOX 13717 $as_echo "$ac_log" 13718} >&5 13719 13720_ACEOF 13721cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13722# 13723# INIT-COMMANDS 13724# 13725AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13726 13727 13728# The HP-UX ksh and POSIX shell print the target directory to stdout 13729# if CDPATH is set. 13730(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13731 13732sed_quote_subst='$sed_quote_subst' 13733double_quote_subst='$double_quote_subst' 13734delay_variable_subst='$delay_variable_subst' 13735enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 13736macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 13737macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 13738enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 13739pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 13740enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 13741host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 13742host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 13743host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 13744build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 13745build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 13746build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 13747SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 13748Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 13749GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 13750EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 13751FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 13752LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 13753NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 13754LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 13755max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 13756ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 13757exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 13758lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 13759lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 13760lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 13761reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 13762reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13763OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 13764deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 13765file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 13766AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 13767AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13768STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 13769RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 13770old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13771old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13772old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13773CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 13774CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13775compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 13776GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 13777lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 13778lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 13779lt_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"`' 13780lt_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"`' 13781objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 13782SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 13783ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 13784MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 13785lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 13786lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 13787lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 13788lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 13789lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 13790need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 13791DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 13792NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 13793LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 13794OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 13795OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 13796libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 13797shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13798extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13799archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 13800enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 13801export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13802whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13803compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 13804old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13805old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13806archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13807archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13808module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13809module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13810with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 13811allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13812no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13813hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13814hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 13815hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 13816hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 13817hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 13818hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 13819hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13820hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 13821inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 13822link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 13823fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 13824always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 13825export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13826exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13827include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13828prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13829file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 13830variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 13831need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13832need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 13833version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 13834runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13835shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13836shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 13837libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13838library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 13839soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13840postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13841postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13842finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13843finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 13844hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 13845sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13846sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13847hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 13848enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 13849enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 13850enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 13851old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 13852striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 13853 13854LTCC='$LTCC' 13855LTCFLAGS='$LTCFLAGS' 13856compiler='$compiler_DEFAULT' 13857 13858# Quote evaled strings. 13859for var in SED \ 13860GREP \ 13861EGREP \ 13862FGREP \ 13863LD \ 13864NM \ 13865LN_S \ 13866lt_SP2NL \ 13867lt_NL2SP \ 13868reload_flag \ 13869OBJDUMP \ 13870deplibs_check_method \ 13871file_magic_cmd \ 13872AR \ 13873AR_FLAGS \ 13874STRIP \ 13875RANLIB \ 13876CC \ 13877CFLAGS \ 13878compiler \ 13879lt_cv_sys_global_symbol_pipe \ 13880lt_cv_sys_global_symbol_to_cdecl \ 13881lt_cv_sys_global_symbol_to_c_name_address \ 13882lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13883SHELL \ 13884ECHO \ 13885lt_prog_compiler_no_builtin_flag \ 13886lt_prog_compiler_wl \ 13887lt_prog_compiler_pic \ 13888lt_prog_compiler_static \ 13889lt_cv_prog_compiler_c_o \ 13890need_locks \ 13891DSYMUTIL \ 13892NMEDIT \ 13893LIPO \ 13894OTOOL \ 13895OTOOL64 \ 13896shrext_cmds \ 13897export_dynamic_flag_spec \ 13898whole_archive_flag_spec \ 13899compiler_needs_object \ 13900with_gnu_ld \ 13901allow_undefined_flag \ 13902no_undefined_flag \ 13903hardcode_libdir_flag_spec \ 13904hardcode_libdir_flag_spec_ld \ 13905hardcode_libdir_separator \ 13906fix_srcfile_path \ 13907exclude_expsyms \ 13908include_expsyms \ 13909file_list_spec \ 13910variables_saved_for_relink \ 13911libname_spec \ 13912library_names_spec \ 13913soname_spec \ 13914finish_eval \ 13915old_striplib \ 13916striplib; do 13917 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13918 *[\\\\\\\`\\"\\\$]*) 13919 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13920 ;; 13921 *) 13922 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13923 ;; 13924 esac 13925done 13926 13927# Double-quote double-evaled strings. 13928for var in reload_cmds \ 13929old_postinstall_cmds \ 13930old_postuninstall_cmds \ 13931old_archive_cmds \ 13932extract_expsyms_cmds \ 13933old_archive_from_new_cmds \ 13934old_archive_from_expsyms_cmds \ 13935archive_cmds \ 13936archive_expsym_cmds \ 13937module_cmds \ 13938module_expsym_cmds \ 13939export_symbols_cmds \ 13940prelink_cmds \ 13941postinstall_cmds \ 13942postuninstall_cmds \ 13943finish_cmds \ 13944sys_lib_search_path_spec \ 13945sys_lib_dlsearch_path_spec; do 13946 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13947 *[\\\\\\\`\\"\\\$]*) 13948 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13949 ;; 13950 *) 13951 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13952 ;; 13953 esac 13954done 13955 13956# Fix-up fallback echo if it was mangled by the above quoting rules. 13957case \$lt_ECHO in 13958*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 13959 ;; 13960esac 13961 13962ac_aux_dir='$ac_aux_dir' 13963xsi_shell='$xsi_shell' 13964lt_shell_append='$lt_shell_append' 13965 13966# See if we are running on zsh, and set the options which allow our 13967# commands through without removal of \ escapes INIT. 13968if test -n "\${ZSH_VERSION+set}" ; then 13969 setopt NO_GLOB_SUBST 13970fi 13971 13972 13973 PACKAGE='$PACKAGE' 13974 VERSION='$VERSION' 13975 TIMESTAMP='$TIMESTAMP' 13976 RM='$RM' 13977 ofile='$ofile' 13978 13979 13980 13981 13982_ACEOF 13983 13984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13985 13986# Handling of arguments. 13987for ac_config_target in $ac_config_targets 13988do 13989 case $ac_config_target in 13990 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13991 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13992 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13993 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13994 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13995 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 13996 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 13997 13998 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13999$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14000 { (exit 1); exit 1; }; };; 14001 esac 14002done 14003 14004 14005# If the user did not use the arguments to specify the items to instantiate, 14006# then the envvar interface is used. Set only those that are not. 14007# We use the long form for the default assignment because of an extremely 14008# bizarre bug on SunOS 4.1.3. 14009if $ac_need_defaults; then 14010 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14011 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14012 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14013fi 14014 14015# Have a temporary directory for convenience. Make it in the build tree 14016# simply because there is no reason against having it here, and in addition, 14017# creating and moving files from /tmp can sometimes cause problems. 14018# Hook for its removal unless debugging. 14019# Note that there is a small window in which the directory will not be cleaned: 14020# after its creation but before its name has been assigned to `$tmp'. 14021$debug || 14022{ 14023 tmp= 14024 trap 'exit_status=$? 14025 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14026' 0 14027 trap '{ (exit 1); exit 1; }' 1 2 13 15 14028} 14029# Create a (secure) tmp directory for tmp files. 14030 14031{ 14032 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14033 test -n "$tmp" && test -d "$tmp" 14034} || 14035{ 14036 tmp=./conf$$-$RANDOM 14037 (umask 077 && mkdir "$tmp") 14038} || 14039{ 14040 $as_echo "$as_me: cannot create a temporary directory in ." >&2 14041 { (exit 1); exit 1; } 14042} 14043 14044# Set up the scripts for CONFIG_FILES section. 14045# No need to generate them if there are no CONFIG_FILES. 14046# This happens for instance with `./config.status config.h'. 14047if test -n "$CONFIG_FILES"; then 14048 14049 14050ac_cr=' 14051' 14052ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14053if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14054 ac_cs_awk_cr='\\r' 14055else 14056 ac_cs_awk_cr=$ac_cr 14057fi 14058 14059echo 'BEGIN {' >"$tmp/subs1.awk" && 14060_ACEOF 14061 14062 14063{ 14064 echo "cat >conf$$subs.awk <<_ACEOF" && 14065 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14066 echo "_ACEOF" 14067} >conf$$subs.sh || 14068 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14069$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14070 { (exit 1); exit 1; }; } 14071ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 14072ac_delim='%!_!# ' 14073for ac_last_try in false false false false false :; do 14074 . ./conf$$subs.sh || 14075 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14076$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14077 { (exit 1); exit 1; }; } 14078 14079 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14080 if test $ac_delim_n = $ac_delim_num; then 14081 break 14082 elif $ac_last_try; then 14083 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14084$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14085 { (exit 1); exit 1; }; } 14086 else 14087 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14088 fi 14089done 14090rm -f conf$$subs.sh 14091 14092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14093cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 14094_ACEOF 14095sed -n ' 14096h 14097s/^/S["/; s/!.*/"]=/ 14098p 14099g 14100s/^[^!]*!// 14101:repl 14102t repl 14103s/'"$ac_delim"'$// 14104t delim 14105:nl 14106h 14107s/\(.\{148\}\).*/\1/ 14108t more1 14109s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14110p 14111n 14112b repl 14113:more1 14114s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14115p 14116g 14117s/.\{148\}// 14118t nl 14119:delim 14120h 14121s/\(.\{148\}\).*/\1/ 14122t more2 14123s/["\\]/\\&/g; s/^/"/; s/$/"/ 14124p 14125b 14126:more2 14127s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14128p 14129g 14130s/.\{148\}// 14131t delim 14132' <conf$$subs.awk | sed ' 14133/^[^""]/{ 14134 N 14135 s/\n// 14136} 14137' >>$CONFIG_STATUS || ac_write_fail=1 14138rm -f conf$$subs.awk 14139cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14140_ACAWK 14141cat >>"\$tmp/subs1.awk" <<_ACAWK && 14142 for (key in S) S_is_set[key] = 1 14143 FS = "" 14144 14145} 14146{ 14147 line = $ 0 14148 nfields = split(line, field, "@") 14149 substed = 0 14150 len = length(field[1]) 14151 for (i = 2; i < nfields; i++) { 14152 key = field[i] 14153 keylen = length(key) 14154 if (S_is_set[key]) { 14155 value = S[key] 14156 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14157 len += length(value) + length(field[++i]) 14158 substed = 1 14159 } else 14160 len += 1 + keylen 14161 } 14162 14163 print line 14164} 14165 14166_ACAWK 14167_ACEOF 14168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14169if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14170 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14171else 14172 cat 14173fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14174 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 14175$as_echo "$as_me: error: could not setup config files machinery" >&2;} 14176 { (exit 1); exit 1; }; } 14177_ACEOF 14178 14179# VPATH may cause trouble with some makes, so we remove $(srcdir), 14180# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14181# trailing colons and then remove the whole line if VPATH becomes empty 14182# (actually we leave an empty line to preserve line numbers). 14183if test "x$srcdir" = x.; then 14184 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14185s/:*\$(srcdir):*/:/ 14186s/:*\${srcdir}:*/:/ 14187s/:*@srcdir@:*/:/ 14188s/^\([^=]*=[ ]*\):*/\1/ 14189s/:*$// 14190s/^[^=]*=[ ]*$// 14191}' 14192fi 14193 14194cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14195fi # test -n "$CONFIG_FILES" 14196 14197# Set up the scripts for CONFIG_HEADERS section. 14198# No need to generate them if there are no CONFIG_HEADERS. 14199# This happens for instance with `./config.status Makefile'. 14200if test -n "$CONFIG_HEADERS"; then 14201cat >"$tmp/defines.awk" <<\_ACAWK || 14202BEGIN { 14203_ACEOF 14204 14205# Transform confdefs.h into an awk script `defines.awk', embedded as 14206# here-document in config.status, that substitutes the proper values into 14207# config.h.in to produce config.h. 14208 14209# Create a delimiter string that does not exist in confdefs.h, to ease 14210# handling of long lines. 14211ac_delim='%!_!# ' 14212for ac_last_try in false false :; do 14213 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 14214 if test -z "$ac_t"; then 14215 break 14216 elif $ac_last_try; then 14217 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 14218$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 14219 { (exit 1); exit 1; }; } 14220 else 14221 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14222 fi 14223done 14224 14225# For the awk script, D is an array of macro values keyed by name, 14226# likewise P contains macro parameters if any. Preserve backslash 14227# newline sequences. 14228 14229ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14230sed -n ' 14231s/.\{148\}/&'"$ac_delim"'/g 14232t rset 14233:rset 14234s/^[ ]*#[ ]*define[ ][ ]*/ / 14235t def 14236d 14237:def 14238s/\\$// 14239t bsnl 14240s/["\\]/\\&/g 14241s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14242D["\1"]=" \3"/p 14243s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14244d 14245:bsnl 14246s/["\\]/\\&/g 14247s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14248D["\1"]=" \3\\\\\\n"\\/p 14249t cont 14250s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14251t cont 14252d 14253:cont 14254n 14255s/.\{148\}/&'"$ac_delim"'/g 14256t clear 14257:clear 14258s/\\$// 14259t bsnlc 14260s/["\\]/\\&/g; s/^/"/; s/$/"/p 14261d 14262:bsnlc 14263s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14264b cont 14265' <confdefs.h | sed ' 14266s/'"$ac_delim"'/"\\\ 14267"/g' >>$CONFIG_STATUS || ac_write_fail=1 14268 14269cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14270 for (key in D) D_is_set[key] = 1 14271 FS = "" 14272} 14273/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14274 line = \$ 0 14275 split(line, arg, " ") 14276 if (arg[1] == "#") { 14277 defundef = arg[2] 14278 mac1 = arg[3] 14279 } else { 14280 defundef = substr(arg[1], 2) 14281 mac1 = arg[2] 14282 } 14283 split(mac1, mac2, "(") #) 14284 macro = mac2[1] 14285 prefix = substr(line, 1, index(line, defundef) - 1) 14286 if (D_is_set[macro]) { 14287 # Preserve the white space surrounding the "#". 14288 print prefix "define", macro P[macro] D[macro] 14289 next 14290 } else { 14291 # Replace #undef with comments. This is necessary, for example, 14292 # in the case of _POSIX_SOURCE, which is predefined and required 14293 # on some systems where configure will not decide to define it. 14294 if (defundef == "undef") { 14295 print "/*", prefix defundef, macro, "*/" 14296 next 14297 } 14298 } 14299} 14300{ print } 14301_ACAWK 14302_ACEOF 14303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14304 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 14305$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 14306 { (exit 1); exit 1; }; } 14307fi # test -n "$CONFIG_HEADERS" 14308 14309 14310eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14311shift 14312for ac_tag 14313do 14314 case $ac_tag in 14315 :[FHLC]) ac_mode=$ac_tag; continue;; 14316 esac 14317 case $ac_mode$ac_tag in 14318 :[FHL]*:*);; 14319 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 14320$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 14321 { (exit 1); exit 1; }; };; 14322 :[FH]-) ac_tag=-:-;; 14323 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14324 esac 14325 ac_save_IFS=$IFS 14326 IFS=: 14327 set x $ac_tag 14328 IFS=$ac_save_IFS 14329 shift 14330 ac_file=$1 14331 shift 14332 14333 case $ac_mode in 14334 :L) ac_source=$1;; 14335 :[FH]) 14336 ac_file_inputs= 14337 for ac_f 14338 do 14339 case $ac_f in 14340 -) ac_f="$tmp/stdin";; 14341 *) # Look for the file first in the build tree, then in the source tree 14342 # (if the path is not absolute). The absolute path cannot be DOS-style, 14343 # because $ac_f cannot contain `:'. 14344 test -f "$ac_f" || 14345 case $ac_f in 14346 [\\/$]*) false;; 14347 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14348 esac || 14349 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14350$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 14351 { (exit 1); exit 1; }; };; 14352 esac 14353 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14354 ac_file_inputs="$ac_file_inputs '$ac_f'" 14355 done 14356 14357 # Let's still pretend it is `configure' which instantiates (i.e., don't 14358 # use $as_me), people would be surprised to read: 14359 # /* config.h. Generated by config.status. */ 14360 configure_input='Generated from '` 14361 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14362 `' by configure.' 14363 if test x"$ac_file" != x-; then 14364 configure_input="$ac_file. $configure_input" 14365 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 14366$as_echo "$as_me: creating $ac_file" >&6;} 14367 fi 14368 # Neutralize special characters interpreted by sed in replacement strings. 14369 case $configure_input in #( 14370 *\&* | *\|* | *\\* ) 14371 ac_sed_conf_input=`$as_echo "$configure_input" | 14372 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14373 *) ac_sed_conf_input=$configure_input;; 14374 esac 14375 14376 case $ac_tag in 14377 *:-:* | *:-) cat >"$tmp/stdin" \ 14378 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14379$as_echo "$as_me: error: could not create $ac_file" >&2;} 14380 { (exit 1); exit 1; }; } ;; 14381 esac 14382 ;; 14383 esac 14384 14385 ac_dir=`$as_dirname -- "$ac_file" || 14386$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14387 X"$ac_file" : 'X\(//\)[^/]' \| \ 14388 X"$ac_file" : 'X\(//\)$' \| \ 14389 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14390$as_echo X"$ac_file" | 14391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14392 s//\1/ 14393 q 14394 } 14395 /^X\(\/\/\)[^/].*/{ 14396 s//\1/ 14397 q 14398 } 14399 /^X\(\/\/\)$/{ 14400 s//\1/ 14401 q 14402 } 14403 /^X\(\/\).*/{ 14404 s//\1/ 14405 q 14406 } 14407 s/.*/./; q'` 14408 { as_dir="$ac_dir" 14409 case $as_dir in #( 14410 -*) as_dir=./$as_dir;; 14411 esac 14412 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14413 as_dirs= 14414 while :; do 14415 case $as_dir in #( 14416 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14417 *) as_qdir=$as_dir;; 14418 esac 14419 as_dirs="'$as_qdir' $as_dirs" 14420 as_dir=`$as_dirname -- "$as_dir" || 14421$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14422 X"$as_dir" : 'X\(//\)[^/]' \| \ 14423 X"$as_dir" : 'X\(//\)$' \| \ 14424 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14425$as_echo X"$as_dir" | 14426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14427 s//\1/ 14428 q 14429 } 14430 /^X\(\/\/\)[^/].*/{ 14431 s//\1/ 14432 q 14433 } 14434 /^X\(\/\/\)$/{ 14435 s//\1/ 14436 q 14437 } 14438 /^X\(\/\).*/{ 14439 s//\1/ 14440 q 14441 } 14442 s/.*/./; q'` 14443 test -d "$as_dir" && break 14444 done 14445 test -z "$as_dirs" || eval "mkdir $as_dirs" 14446 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14447$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14448 { (exit 1); exit 1; }; }; } 14449 ac_builddir=. 14450 14451case "$ac_dir" in 14452.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14453*) 14454 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14455 # A ".." for each directory in $ac_dir_suffix. 14456 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14457 case $ac_top_builddir_sub in 14458 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14459 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14460 esac ;; 14461esac 14462ac_abs_top_builddir=$ac_pwd 14463ac_abs_builddir=$ac_pwd$ac_dir_suffix 14464# for backward compatibility: 14465ac_top_builddir=$ac_top_build_prefix 14466 14467case $srcdir in 14468 .) # We are building in place. 14469 ac_srcdir=. 14470 ac_top_srcdir=$ac_top_builddir_sub 14471 ac_abs_top_srcdir=$ac_pwd ;; 14472 [\\/]* | ?:[\\/]* ) # Absolute name. 14473 ac_srcdir=$srcdir$ac_dir_suffix; 14474 ac_top_srcdir=$srcdir 14475 ac_abs_top_srcdir=$srcdir ;; 14476 *) # Relative name. 14477 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14478 ac_top_srcdir=$ac_top_build_prefix$srcdir 14479 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14480esac 14481ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14482 14483 14484 case $ac_mode in 14485 :F) 14486 # 14487 # CONFIG_FILE 14488 # 14489 14490 case $INSTALL in 14491 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14492 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14493 esac 14494 ac_MKDIR_P=$MKDIR_P 14495 case $MKDIR_P in 14496 [\\/$]* | ?:[\\/]* ) ;; 14497 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14498 esac 14499_ACEOF 14500 14501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14502# If the template does not know about datarootdir, expand it. 14503# FIXME: This hack should be removed a few years after 2.60. 14504ac_datarootdir_hack=; ac_datarootdir_seen= 14505 14506ac_sed_dataroot=' 14507/datarootdir/ { 14508 p 14509 q 14510} 14511/@datadir@/p 14512/@docdir@/p 14513/@infodir@/p 14514/@localedir@/p 14515/@mandir@/p 14516' 14517case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14518*datarootdir*) ac_datarootdir_seen=yes;; 14519*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14520 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14521$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14522_ACEOF 14523cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14524 ac_datarootdir_hack=' 14525 s&@datadir@&$datadir&g 14526 s&@docdir@&$docdir&g 14527 s&@infodir@&$infodir&g 14528 s&@localedir@&$localedir&g 14529 s&@mandir@&$mandir&g 14530 s&\\\${datarootdir}&$datarootdir&g' ;; 14531esac 14532_ACEOF 14533 14534# Neutralize VPATH when `$srcdir' = `.'. 14535# Shell code in configure.ac might set extrasub. 14536# FIXME: do we really want to maintain this feature? 14537cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14538ac_sed_extra="$ac_vpsub 14539$extrasub 14540_ACEOF 14541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14542:t 14543/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14544s|@configure_input@|$ac_sed_conf_input|;t t 14545s&@top_builddir@&$ac_top_builddir_sub&;t t 14546s&@top_build_prefix@&$ac_top_build_prefix&;t t 14547s&@srcdir@&$ac_srcdir&;t t 14548s&@abs_srcdir@&$ac_abs_srcdir&;t t 14549s&@top_srcdir@&$ac_top_srcdir&;t t 14550s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14551s&@builddir@&$ac_builddir&;t t 14552s&@abs_builddir@&$ac_abs_builddir&;t t 14553s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14554s&@INSTALL@&$ac_INSTALL&;t t 14555s&@MKDIR_P@&$ac_MKDIR_P&;t t 14556$ac_datarootdir_hack 14557" 14558eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14559 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14560$as_echo "$as_me: error: could not create $ac_file" >&2;} 14561 { (exit 1); exit 1; }; } 14562 14563test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14564 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14565 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14566 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14567which seems to be undefined. Please make sure it is defined." >&5 14568$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14569which seems to be undefined. Please make sure it is defined." >&2;} 14570 14571 rm -f "$tmp/stdin" 14572 case $ac_file in 14573 -) cat "$tmp/out" && rm -f "$tmp/out";; 14574 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 14575 esac \ 14576 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14577$as_echo "$as_me: error: could not create $ac_file" >&2;} 14578 { (exit 1); exit 1; }; } 14579 ;; 14580 :H) 14581 # 14582 # CONFIG_HEADER 14583 # 14584 if test x"$ac_file" != x-; then 14585 { 14586 $as_echo "/* $configure_input */" \ 14587 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 14588 } >"$tmp/config.h" \ 14589 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14590$as_echo "$as_me: error: could not create $ac_file" >&2;} 14591 { (exit 1); exit 1; }; } 14592 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 14593 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14594$as_echo "$as_me: $ac_file is unchanged" >&6;} 14595 else 14596 rm -f "$ac_file" 14597 mv "$tmp/config.h" "$ac_file" \ 14598 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14599$as_echo "$as_me: error: could not create $ac_file" >&2;} 14600 { (exit 1); exit 1; }; } 14601 fi 14602 else 14603 $as_echo "/* $configure_input */" \ 14604 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 14605 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 14606$as_echo "$as_me: error: could not create -" >&2;} 14607 { (exit 1); exit 1; }; } 14608 fi 14609# Compute "$ac_file"'s index in $config_headers. 14610_am_arg="$ac_file" 14611_am_stamp_count=1 14612for _am_header in $config_headers :; do 14613 case $_am_header in 14614 $_am_arg | $_am_arg:* ) 14615 break ;; 14616 * ) 14617 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14618 esac 14619done 14620echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14621$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14622 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14623 X"$_am_arg" : 'X\(//\)$' \| \ 14624 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14625$as_echo X"$_am_arg" | 14626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14627 s//\1/ 14628 q 14629 } 14630 /^X\(\/\/\)[^/].*/{ 14631 s//\1/ 14632 q 14633 } 14634 /^X\(\/\/\)$/{ 14635 s//\1/ 14636 q 14637 } 14638 /^X\(\/\).*/{ 14639 s//\1/ 14640 q 14641 } 14642 s/.*/./; q'`/stamp-h$_am_stamp_count 14643 ;; 14644 14645 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 14646$as_echo "$as_me: executing $ac_file commands" >&6;} 14647 ;; 14648 esac 14649 14650 14651 case $ac_file$ac_mode in 14652 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14653 # Autoconf 2.62 quotes --file arguments for eval, but not when files 14654 # are listed without --file. Let's play safe and only enable the eval 14655 # if we detect the quoting. 14656 case $CONFIG_FILES in 14657 *\'*) eval set x "$CONFIG_FILES" ;; 14658 *) set x $CONFIG_FILES ;; 14659 esac 14660 shift 14661 for mf 14662 do 14663 # Strip MF so we end up with the name of the file. 14664 mf=`echo "$mf" | sed -e 's/:.*$//'` 14665 # Check whether this is an Automake generated Makefile or not. 14666 # We used to match only the files named `Makefile.in', but 14667 # some people rename them; so instead we look at the file content. 14668 # Grep'ing the first line is not enough: some people post-process 14669 # each Makefile.in and add a new line on top of each file to say so. 14670 # Grep'ing the whole file is not good either: AIX grep has a line 14671 # limit of 2048, but all sed's we know have understand at least 4000. 14672 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14673 dirpart=`$as_dirname -- "$mf" || 14674$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14675 X"$mf" : 'X\(//\)[^/]' \| \ 14676 X"$mf" : 'X\(//\)$' \| \ 14677 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14678$as_echo X"$mf" | 14679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14680 s//\1/ 14681 q 14682 } 14683 /^X\(\/\/\)[^/].*/{ 14684 s//\1/ 14685 q 14686 } 14687 /^X\(\/\/\)$/{ 14688 s//\1/ 14689 q 14690 } 14691 /^X\(\/\).*/{ 14692 s//\1/ 14693 q 14694 } 14695 s/.*/./; q'` 14696 else 14697 continue 14698 fi 14699 # Extract the definition of DEPDIR, am__include, and am__quote 14700 # from the Makefile without running `make'. 14701 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14702 test -z "$DEPDIR" && continue 14703 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14704 test -z "am__include" && continue 14705 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14706 # When using ansi2knr, U may be empty or an underscore; expand it 14707 U=`sed -n 's/^U = //p' < "$mf"` 14708 # Find all dependency output files, they are included files with 14709 # $(DEPDIR) in their names. We invoke sed twice because it is the 14710 # simplest approach to changing $(DEPDIR) to its actual value in the 14711 # expansion. 14712 for file in `sed -n " 14713 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14714 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14715 # Make sure the directory exists. 14716 test -f "$dirpart/$file" && continue 14717 fdir=`$as_dirname -- "$file" || 14718$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14719 X"$file" : 'X\(//\)[^/]' \| \ 14720 X"$file" : 'X\(//\)$' \| \ 14721 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14722$as_echo X"$file" | 14723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14724 s//\1/ 14725 q 14726 } 14727 /^X\(\/\/\)[^/].*/{ 14728 s//\1/ 14729 q 14730 } 14731 /^X\(\/\/\)$/{ 14732 s//\1/ 14733 q 14734 } 14735 /^X\(\/\).*/{ 14736 s//\1/ 14737 q 14738 } 14739 s/.*/./; q'` 14740 { as_dir=$dirpart/$fdir 14741 case $as_dir in #( 14742 -*) as_dir=./$as_dir;; 14743 esac 14744 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14745 as_dirs= 14746 while :; do 14747 case $as_dir in #( 14748 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14749 *) as_qdir=$as_dir;; 14750 esac 14751 as_dirs="'$as_qdir' $as_dirs" 14752 as_dir=`$as_dirname -- "$as_dir" || 14753$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14754 X"$as_dir" : 'X\(//\)[^/]' \| \ 14755 X"$as_dir" : 'X\(//\)$' \| \ 14756 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14757$as_echo X"$as_dir" | 14758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14759 s//\1/ 14760 q 14761 } 14762 /^X\(\/\/\)[^/].*/{ 14763 s//\1/ 14764 q 14765 } 14766 /^X\(\/\/\)$/{ 14767 s//\1/ 14768 q 14769 } 14770 /^X\(\/\).*/{ 14771 s//\1/ 14772 q 14773 } 14774 s/.*/./; q'` 14775 test -d "$as_dir" && break 14776 done 14777 test -z "$as_dirs" || eval "mkdir $as_dirs" 14778 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14779$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14780 { (exit 1); exit 1; }; }; } 14781 # echo "creating $dirpart/$file" 14782 echo '# dummy' > "$dirpart/$file" 14783 done 14784 done 14785} 14786 ;; 14787 "libtool":C) 14788 14789 # See if we are running on zsh, and set the options which allow our 14790 # commands through without removal of \ escapes. 14791 if test -n "${ZSH_VERSION+set}" ; then 14792 setopt NO_GLOB_SUBST 14793 fi 14794 14795 cfgfile="${ofile}T" 14796 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14797 $RM "$cfgfile" 14798 14799 cat <<_LT_EOF >> "$cfgfile" 14800#! $SHELL 14801 14802# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14803# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14804# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14805# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14806# 14807# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14808# 2006, 2007, 2008 Free Software Foundation, Inc. 14809# Written by Gordon Matzigkeit, 1996 14810# 14811# This file is part of GNU Libtool. 14812# 14813# GNU Libtool is free software; you can redistribute it and/or 14814# modify it under the terms of the GNU General Public License as 14815# published by the Free Software Foundation; either version 2 of 14816# the License, or (at your option) any later version. 14817# 14818# As a special exception to the GNU General Public License, 14819# if you distribute this file as part of a program or library that 14820# is built using GNU Libtool, you may include this file under the 14821# same distribution terms that you use for the rest of that program. 14822# 14823# GNU Libtool is distributed in the hope that it will be useful, 14824# but WITHOUT ANY WARRANTY; without even the implied warranty of 14825# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14826# GNU General Public License for more details. 14827# 14828# You should have received a copy of the GNU General Public License 14829# along with GNU Libtool; see the file COPYING. If not, a copy 14830# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14831# obtained by writing to the Free Software Foundation, Inc., 14832# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14833 14834 14835# The names of the tagged configurations supported by this script. 14836available_tags="" 14837 14838# ### BEGIN LIBTOOL CONFIG 14839 14840# Whether or not to build static libraries. 14841build_old_libs=$enable_static 14842 14843# Which release of libtool.m4 was used? 14844macro_version=$macro_version 14845macro_revision=$macro_revision 14846 14847# Whether or not to build shared libraries. 14848build_libtool_libs=$enable_shared 14849 14850# What type of objects to build. 14851pic_mode=$pic_mode 14852 14853# Whether or not to optimize for fast installation. 14854fast_install=$enable_fast_install 14855 14856# The host system. 14857host_alias=$host_alias 14858host=$host 14859host_os=$host_os 14860 14861# The build system. 14862build_alias=$build_alias 14863build=$build 14864build_os=$build_os 14865 14866# A sed program that does not truncate output. 14867SED=$lt_SED 14868 14869# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14870Xsed="\$SED -e 1s/^X//" 14871 14872# A grep program that handles long lines. 14873GREP=$lt_GREP 14874 14875# An ERE matcher. 14876EGREP=$lt_EGREP 14877 14878# A literal string matcher. 14879FGREP=$lt_FGREP 14880 14881# A BSD- or MS-compatible name lister. 14882NM=$lt_NM 14883 14884# Whether we need soft or hard links. 14885LN_S=$lt_LN_S 14886 14887# What is the maximum length of a command? 14888max_cmd_len=$max_cmd_len 14889 14890# Object file suffix (normally "o"). 14891objext=$ac_objext 14892 14893# Executable file suffix (normally ""). 14894exeext=$exeext 14895 14896# whether the shell understands "unset". 14897lt_unset=$lt_unset 14898 14899# turn spaces into newlines. 14900SP2NL=$lt_lt_SP2NL 14901 14902# turn newlines into spaces. 14903NL2SP=$lt_lt_NL2SP 14904 14905# How to create reloadable object files. 14906reload_flag=$lt_reload_flag 14907reload_cmds=$lt_reload_cmds 14908 14909# An object symbol dumper. 14910OBJDUMP=$lt_OBJDUMP 14911 14912# Method to check whether dependent libraries are shared objects. 14913deplibs_check_method=$lt_deplibs_check_method 14914 14915# Command to use when deplibs_check_method == "file_magic". 14916file_magic_cmd=$lt_file_magic_cmd 14917 14918# The archiver. 14919AR=$lt_AR 14920AR_FLAGS=$lt_AR_FLAGS 14921 14922# A symbol stripping program. 14923STRIP=$lt_STRIP 14924 14925# Commands used to install an old-style archive. 14926RANLIB=$lt_RANLIB 14927old_postinstall_cmds=$lt_old_postinstall_cmds 14928old_postuninstall_cmds=$lt_old_postuninstall_cmds 14929 14930# A C compiler. 14931LTCC=$lt_CC 14932 14933# LTCC compiler flags. 14934LTCFLAGS=$lt_CFLAGS 14935 14936# Take the output of nm and produce a listing of raw symbols and C names. 14937global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14938 14939# Transform the output of nm in a proper C declaration. 14940global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14941 14942# Transform the output of nm in a C name address pair. 14943global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14944 14945# Transform the output of nm in a C name address pair when lib prefix is needed. 14946global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14947 14948# The name of the directory that contains temporary libtool files. 14949objdir=$objdir 14950 14951# Shell to use when invoking shell scripts. 14952SHELL=$lt_SHELL 14953 14954# An echo program that does not interpret backslashes. 14955ECHO=$lt_ECHO 14956 14957# Used to examine libraries when file_magic_cmd begins with "file". 14958MAGIC_CMD=$MAGIC_CMD 14959 14960# Must we lock files when doing compilation? 14961need_locks=$lt_need_locks 14962 14963# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14964DSYMUTIL=$lt_DSYMUTIL 14965 14966# Tool to change global to local symbols on Mac OS X. 14967NMEDIT=$lt_NMEDIT 14968 14969# Tool to manipulate fat objects and archives on Mac OS X. 14970LIPO=$lt_LIPO 14971 14972# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14973OTOOL=$lt_OTOOL 14974 14975# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14976OTOOL64=$lt_OTOOL64 14977 14978# Old archive suffix (normally "a"). 14979libext=$libext 14980 14981# Shared library suffix (normally ".so"). 14982shrext_cmds=$lt_shrext_cmds 14983 14984# The commands to extract the exported symbol list from a shared archive. 14985extract_expsyms_cmds=$lt_extract_expsyms_cmds 14986 14987# Variables whose values should be saved in libtool wrapper scripts and 14988# restored at link time. 14989variables_saved_for_relink=$lt_variables_saved_for_relink 14990 14991# Do we need the "lib" prefix for modules? 14992need_lib_prefix=$need_lib_prefix 14993 14994# Do we need a version for libraries? 14995need_version=$need_version 14996 14997# Library versioning type. 14998version_type=$version_type 14999 15000# Shared library runtime path variable. 15001runpath_var=$runpath_var 15002 15003# Shared library path variable. 15004shlibpath_var=$shlibpath_var 15005 15006# Is shlibpath searched before the hard-coded library search path? 15007shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15008 15009# Format of library name prefix. 15010libname_spec=$lt_libname_spec 15011 15012# List of archive names. First name is the real one, the rest are links. 15013# The last name is the one that the linker finds with -lNAME 15014library_names_spec=$lt_library_names_spec 15015 15016# The coded name of the library, if different from the real name. 15017soname_spec=$lt_soname_spec 15018 15019# Command to use after installation of a shared archive. 15020postinstall_cmds=$lt_postinstall_cmds 15021 15022# Command to use after uninstallation of a shared archive. 15023postuninstall_cmds=$lt_postuninstall_cmds 15024 15025# Commands used to finish a libtool library installation in a directory. 15026finish_cmds=$lt_finish_cmds 15027 15028# As "finish_cmds", except a single script fragment to be evaled but 15029# not shown. 15030finish_eval=$lt_finish_eval 15031 15032# Whether we should hardcode library paths into libraries. 15033hardcode_into_libs=$hardcode_into_libs 15034 15035# Compile-time system search path for libraries. 15036sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15037 15038# Run-time system search path for libraries. 15039sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15040 15041# Whether dlopen is supported. 15042dlopen_support=$enable_dlopen 15043 15044# Whether dlopen of programs is supported. 15045dlopen_self=$enable_dlopen_self 15046 15047# Whether dlopen of statically linked programs is supported. 15048dlopen_self_static=$enable_dlopen_self_static 15049 15050# Commands to strip libraries. 15051old_striplib=$lt_old_striplib 15052striplib=$lt_striplib 15053 15054 15055# The linker used to build libraries. 15056LD=$lt_LD 15057 15058# Commands used to build an old-style archive. 15059old_archive_cmds=$lt_old_archive_cmds 15060 15061# A language specific compiler. 15062CC=$lt_compiler 15063 15064# Is the compiler the GNU compiler? 15065with_gcc=$GCC 15066 15067# Compiler flag to turn off builtin functions. 15068no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15069 15070# How to pass a linker flag through the compiler. 15071wl=$lt_lt_prog_compiler_wl 15072 15073# Additional compiler flags for building library objects. 15074pic_flag=$lt_lt_prog_compiler_pic 15075 15076# Compiler flag to prevent dynamic linking. 15077link_static_flag=$lt_lt_prog_compiler_static 15078 15079# Does compiler simultaneously support -c and -o options? 15080compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15081 15082# Whether or not to add -lc for building shared libraries. 15083build_libtool_need_lc=$archive_cmds_need_lc 15084 15085# Whether or not to disallow shared libs when runtime libs are static. 15086allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15087 15088# Compiler flag to allow reflexive dlopens. 15089export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15090 15091# Compiler flag to generate shared objects directly from archives. 15092whole_archive_flag_spec=$lt_whole_archive_flag_spec 15093 15094# Whether the compiler copes with passing no objects directly. 15095compiler_needs_object=$lt_compiler_needs_object 15096 15097# Create an old-style archive from a shared archive. 15098old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15099 15100# Create a temporary old-style archive to link instead of a shared archive. 15101old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15102 15103# Commands used to build a shared archive. 15104archive_cmds=$lt_archive_cmds 15105archive_expsym_cmds=$lt_archive_expsym_cmds 15106 15107# Commands used to build a loadable module if different from building 15108# a shared archive. 15109module_cmds=$lt_module_cmds 15110module_expsym_cmds=$lt_module_expsym_cmds 15111 15112# Whether we are building with GNU ld or not. 15113with_gnu_ld=$lt_with_gnu_ld 15114 15115# Flag that allows shared libraries with undefined symbols to be built. 15116allow_undefined_flag=$lt_allow_undefined_flag 15117 15118# Flag that enforces no undefined symbols. 15119no_undefined_flag=$lt_no_undefined_flag 15120 15121# Flag to hardcode \$libdir into a binary during linking. 15122# This must work even if \$libdir does not exist 15123hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15124 15125# If ld is used when linking, flag to hardcode \$libdir into a binary 15126# during linking. This must work even if \$libdir does not exist. 15127hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15128 15129# Whether we need a single "-rpath" flag with a separated argument. 15130hardcode_libdir_separator=$lt_hardcode_libdir_separator 15131 15132# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15133# DIR into the resulting binary. 15134hardcode_direct=$hardcode_direct 15135 15136# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15137# DIR into the resulting binary and the resulting library dependency is 15138# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15139# library is relocated. 15140hardcode_direct_absolute=$hardcode_direct_absolute 15141 15142# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15143# into the resulting binary. 15144hardcode_minus_L=$hardcode_minus_L 15145 15146# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15147# into the resulting binary. 15148hardcode_shlibpath_var=$hardcode_shlibpath_var 15149 15150# Set to "yes" if building a shared library automatically hardcodes DIR 15151# into the library and all subsequent libraries and executables linked 15152# against it. 15153hardcode_automatic=$hardcode_automatic 15154 15155# Set to yes if linker adds runtime paths of dependent libraries 15156# to runtime path list. 15157inherit_rpath=$inherit_rpath 15158 15159# Whether libtool must link a program against all its dependency libraries. 15160link_all_deplibs=$link_all_deplibs 15161 15162# Fix the shell variable \$srcfile for the compiler. 15163fix_srcfile_path=$lt_fix_srcfile_path 15164 15165# Set to "yes" if exported symbols are required. 15166always_export_symbols=$always_export_symbols 15167 15168# The commands to list exported symbols. 15169export_symbols_cmds=$lt_export_symbols_cmds 15170 15171# Symbols that should not be listed in the preloaded symbols. 15172exclude_expsyms=$lt_exclude_expsyms 15173 15174# Symbols that must always be exported. 15175include_expsyms=$lt_include_expsyms 15176 15177# Commands necessary for linking programs (against libraries) with templates. 15178prelink_cmds=$lt_prelink_cmds 15179 15180# Specify filename containing input files. 15181file_list_spec=$lt_file_list_spec 15182 15183# How to hardcode a shared library path into an executable. 15184hardcode_action=$hardcode_action 15185 15186# ### END LIBTOOL CONFIG 15187 15188_LT_EOF 15189 15190 case $host_os in 15191 aix3*) 15192 cat <<\_LT_EOF >> "$cfgfile" 15193# AIX sometimes has problems with the GCC collect2 program. For some 15194# reason, if we set the COLLECT_NAMES environment variable, the problems 15195# vanish in a puff of smoke. 15196if test "X${COLLECT_NAMES+set}" != Xset; then 15197 COLLECT_NAMES= 15198 export COLLECT_NAMES 15199fi 15200_LT_EOF 15201 ;; 15202 esac 15203 15204 15205ltmain="$ac_aux_dir/ltmain.sh" 15206 15207 15208 # We use sed instead of cat because bash on DJGPP gets confused if 15209 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15210 # text mode, it properly converts lines to CR/LF. This bash problem 15211 # is reportedly fixed, but why not run on old versions too? 15212 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15213 || (rm -f "$cfgfile"; exit 1) 15214 15215 case $xsi_shell in 15216 yes) 15217 cat << \_LT_EOF >> "$cfgfile" 15218 15219# func_dirname file append nondir_replacement 15220# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15221# otherwise set result to NONDIR_REPLACEMENT. 15222func_dirname () 15223{ 15224 case ${1} in 15225 */*) func_dirname_result="${1%/*}${2}" ;; 15226 * ) func_dirname_result="${3}" ;; 15227 esac 15228} 15229 15230# func_basename file 15231func_basename () 15232{ 15233 func_basename_result="${1##*/}" 15234} 15235 15236# func_dirname_and_basename file append nondir_replacement 15237# perform func_basename and func_dirname in a single function 15238# call: 15239# dirname: Compute the dirname of FILE. If nonempty, 15240# add APPEND to the result, otherwise set result 15241# to NONDIR_REPLACEMENT. 15242# value returned in "$func_dirname_result" 15243# basename: Compute filename of FILE. 15244# value retuned in "$func_basename_result" 15245# Implementation must be kept synchronized with func_dirname 15246# and func_basename. For efficiency, we do not delegate to 15247# those functions but instead duplicate the functionality here. 15248func_dirname_and_basename () 15249{ 15250 case ${1} in 15251 */*) func_dirname_result="${1%/*}${2}" ;; 15252 * ) func_dirname_result="${3}" ;; 15253 esac 15254 func_basename_result="${1##*/}" 15255} 15256 15257# func_stripname prefix suffix name 15258# strip PREFIX and SUFFIX off of NAME. 15259# PREFIX and SUFFIX must not contain globbing or regex special 15260# characters, hashes, percent signs, but SUFFIX may contain a leading 15261# dot (in which case that matches only a dot). 15262func_stripname () 15263{ 15264 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15265 # positional parameters, so assign one to ordinary parameter first. 15266 func_stripname_result=${3} 15267 func_stripname_result=${func_stripname_result#"${1}"} 15268 func_stripname_result=${func_stripname_result%"${2}"} 15269} 15270 15271# func_opt_split 15272func_opt_split () 15273{ 15274 func_opt_split_opt=${1%%=*} 15275 func_opt_split_arg=${1#*=} 15276} 15277 15278# func_lo2o object 15279func_lo2o () 15280{ 15281 case ${1} in 15282 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15283 *) func_lo2o_result=${1} ;; 15284 esac 15285} 15286 15287# func_xform libobj-or-source 15288func_xform () 15289{ 15290 func_xform_result=${1%.*}.lo 15291} 15292 15293# func_arith arithmetic-term... 15294func_arith () 15295{ 15296 func_arith_result=$(( $* )) 15297} 15298 15299# func_len string 15300# STRING may not start with a hyphen. 15301func_len () 15302{ 15303 func_len_result=${#1} 15304} 15305 15306_LT_EOF 15307 ;; 15308 *) # Bourne compatible functions. 15309 cat << \_LT_EOF >> "$cfgfile" 15310 15311# func_dirname file append nondir_replacement 15312# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15313# otherwise set result to NONDIR_REPLACEMENT. 15314func_dirname () 15315{ 15316 # Extract subdirectory from the argument. 15317 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15318 if test "X$func_dirname_result" = "X${1}"; then 15319 func_dirname_result="${3}" 15320 else 15321 func_dirname_result="$func_dirname_result${2}" 15322 fi 15323} 15324 15325# func_basename file 15326func_basename () 15327{ 15328 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15329} 15330 15331 15332# func_stripname prefix suffix name 15333# strip PREFIX and SUFFIX off of NAME. 15334# PREFIX and SUFFIX must not contain globbing or regex special 15335# characters, hashes, percent signs, but SUFFIX may contain a leading 15336# dot (in which case that matches only a dot). 15337# func_strip_suffix prefix name 15338func_stripname () 15339{ 15340 case ${2} in 15341 .*) func_stripname_result=`$ECHO "X${3}" \ 15342 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15343 *) func_stripname_result=`$ECHO "X${3}" \ 15344 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15345 esac 15346} 15347 15348# sed scripts: 15349my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15350my_sed_long_arg='1s/^-[^=]*=//' 15351 15352# func_opt_split 15353func_opt_split () 15354{ 15355 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15356 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15357} 15358 15359# func_lo2o object 15360func_lo2o () 15361{ 15362 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15363} 15364 15365# func_xform libobj-or-source 15366func_xform () 15367{ 15368 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15369} 15370 15371# func_arith arithmetic-term... 15372func_arith () 15373{ 15374 func_arith_result=`expr "$@"` 15375} 15376 15377# func_len string 15378# STRING may not start with a hyphen. 15379func_len () 15380{ 15381 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15382} 15383 15384_LT_EOF 15385esac 15386 15387case $lt_shell_append in 15388 yes) 15389 cat << \_LT_EOF >> "$cfgfile" 15390 15391# func_append var value 15392# Append VALUE to the end of shell variable VAR. 15393func_append () 15394{ 15395 eval "$1+=\$2" 15396} 15397_LT_EOF 15398 ;; 15399 *) 15400 cat << \_LT_EOF >> "$cfgfile" 15401 15402# func_append var value 15403# Append VALUE to the end of shell variable VAR. 15404func_append () 15405{ 15406 eval "$1=\$$1\$2" 15407} 15408 15409_LT_EOF 15410 ;; 15411 esac 15412 15413 15414 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15415 || (rm -f "$cfgfile"; exit 1) 15416 15417 mv -f "$cfgfile" "$ofile" || 15418 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15419 chmod +x "$ofile" 15420 15421 ;; 15422 15423 esac 15424done # for ac_tag 15425 15426 15427{ (exit 0); exit 0; } 15428_ACEOF 15429chmod +x $CONFIG_STATUS 15430ac_clean_files=$ac_clean_files_save 15431 15432test $ac_write_fail = 0 || 15433 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 15434$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 15435 { (exit 1); exit 1; }; } 15436 15437 15438# configure is writing to config.log, and then calls config.status. 15439# config.status does its own redirection, appending to config.log. 15440# Unfortunately, on DOS this fails, as config.log is still kept open 15441# by configure, so config.status won't be able to write to it; its 15442# output is simply discarded. So we exec the FD to /dev/null, 15443# effectively closing config.log, so it can be properly (re)opened and 15444# appended to by config.status. When coming back to configure, we 15445# need to make the FD available again. 15446if test "$no_create" != yes; then 15447 ac_cs_success=: 15448 ac_config_status_args= 15449 test "$silent" = yes && 15450 ac_config_status_args="$ac_config_status_args --quiet" 15451 exec 5>/dev/null 15452 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15453 exec 5>>config.log 15454 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15455 # would make configure fail if this is the last instruction. 15456 $ac_cs_success || { (exit 1); exit 1; } 15457fi 15458if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15459 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15460$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15461fi 15462 15463