configure revision bd2f6fc9
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for xf86-video-nv 2.1.14. 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-nv' 747PACKAGE_TARNAME='xf86-video-nv' 748PACKAGE_VERSION='2.1.14' 749PACKAGE_STRING='xf86-video-nv 2.1.14' 750PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 751 752ac_unique_file="Makefile.am" 753# Factoring default headers for most tests. 754ac_includes_default="\ 755#include <stdio.h> 756#ifdef HAVE_SYS_TYPES_H 757# include <sys/types.h> 758#endif 759#ifdef HAVE_SYS_STAT_H 760# include <sys/stat.h> 761#endif 762#ifdef STDC_HEADERS 763# include <stdlib.h> 764# include <stddef.h> 765#else 766# ifdef HAVE_STDLIB_H 767# include <stdlib.h> 768# endif 769#endif 770#ifdef HAVE_STRING_H 771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 772# include <memory.h> 773# endif 774# include <string.h> 775#endif 776#ifdef HAVE_STRINGS_H 777# include <strings.h> 778#endif 779#ifdef HAVE_INTTYPES_H 780# include <inttypes.h> 781#endif 782#ifdef HAVE_STDINT_H 783# include <stdint.h> 784#endif 785#ifdef HAVE_UNISTD_H 786# include <unistd.h> 787#endif" 788 789ac_subst_vars='LTLIBOBJS 790LIBOBJS 791ADMIN_MAN_DIR 792DRIVER_MAN_DIR 793MISC_MAN_DIR 794FILE_MAN_DIR 795LIB_MAN_DIR 796APP_MAN_DIR 797ADMIN_MAN_SUFFIX 798DRIVER_MAN_SUFFIX 799MISC_MAN_SUFFIX 800FILE_MAN_SUFFIX 801LIB_MAN_SUFFIX 802APP_MAN_SUFFIX 803DRIVER_NAME 804moduledir 805modes_dir 806parser_dir 807XMODES_CFLAGS 808BUILD_XMODES_FALSE 809BUILD_XMODES_TRUE 810PCIACCESS_LIBS 811PCIACCESS_CFLAGS 812XORG_LIBS 813XORG_CFLAGS 814PKG_CONFIG 815CPP 816OTOOL64 817OTOOL 818LIPO 819NMEDIT 820DSYMUTIL 821lt_ECHO 822RANLIB 823AR 824OBJDUMP 825LN_S 826NM 827ac_ct_DUMPBIN 828DUMPBIN 829LD 830FGREP 831EGREP 832GREP 833SED 834am__fastdepCC_FALSE 835am__fastdepCC_TRUE 836CCDEPMODE 837AMDEPBACKSLASH 838AMDEP_FALSE 839AMDEP_TRUE 840am__quote 841am__include 842DEPDIR 843OBJEXT 844EXEEXT 845ac_ct_CC 846CPPFLAGS 847LDFLAGS 848CFLAGS 849CC 850host_os 851host_vendor 852host_cpu 853host 854build_os 855build_vendor 856build_cpu 857build 858LIBTOOL 859MAINT 860MAINTAINER_MODE_FALSE 861MAINTAINER_MODE_TRUE 862am__untar 863am__tar 864AMTAR 865am__leading_dot 866SET_MAKE 867AWK 868mkdir_p 869MKDIR_P 870INSTALL_STRIP_PROGRAM 871STRIP 872install_sh 873MAKEINFO 874AUTOHEADER 875AUTOMAKE 876AUTOCONF 877ACLOCAL 878VERSION 879PACKAGE 880CYGPATH_W 881am__isrc 882INSTALL_DATA 883INSTALL_SCRIPT 884INSTALL_PROGRAM 885target_alias 886host_alias 887build_alias 888LIBS 889ECHO_T 890ECHO_N 891ECHO_C 892DEFS 893mandir 894localedir 895libdir 896psdir 897pdfdir 898dvidir 899htmldir 900infodir 901docdir 902oldincludedir 903includedir 904localstatedir 905sharedstatedir 906sysconfdir 907datadir 908datarootdir 909libexecdir 910sbindir 911bindir 912program_transform_name 913prefix 914exec_prefix 915PACKAGE_BUGREPORT 916PACKAGE_STRING 917PACKAGE_VERSION 918PACKAGE_TARNAME 919PACKAGE_NAME 920PATH_SEPARATOR 921SHELL' 922ac_subst_files='' 923ac_user_opts=' 924enable_option_checking 925enable_maintainer_mode 926enable_static 927enable_shared 928with_pic 929enable_fast_install 930enable_dependency_tracking 931with_gnu_ld 932enable_libtool_lock 933with_xorg_module_dir 934with_xserver_source 935with_release_version 936' 937 ac_precious_vars='build_alias 938host_alias 939target_alias 940CC 941CFLAGS 942LDFLAGS 943LIBS 944CPPFLAGS 945CPP 946PKG_CONFIG 947XORG_CFLAGS 948XORG_LIBS 949PCIACCESS_CFLAGS 950PCIACCESS_LIBS' 951 952 953# Initialize some variables set by options. 954ac_init_help= 955ac_init_version=false 956ac_unrecognized_opts= 957ac_unrecognized_sep= 958# The variables have the same names as the options, with 959# dashes changed to underlines. 960cache_file=/dev/null 961exec_prefix=NONE 962no_create= 963no_recursion= 964prefix=NONE 965program_prefix=NONE 966program_suffix=NONE 967program_transform_name=s,x,x, 968silent= 969site= 970srcdir= 971verbose= 972x_includes=NONE 973x_libraries=NONE 974 975# Installation directory options. 976# These are left unexpanded so users can "make install exec_prefix=/foo" 977# and all the variables that are supposed to be based on exec_prefix 978# by default will actually change. 979# Use braces instead of parens because sh, perl, etc. also accept them. 980# (The list follows the same order as the GNU Coding Standards.) 981bindir='${exec_prefix}/bin' 982sbindir='${exec_prefix}/sbin' 983libexecdir='${exec_prefix}/libexec' 984datarootdir='${prefix}/share' 985datadir='${datarootdir}' 986sysconfdir='${prefix}/etc' 987sharedstatedir='${prefix}/com' 988localstatedir='${prefix}/var' 989includedir='${prefix}/include' 990oldincludedir='/usr/include' 991docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 992infodir='${datarootdir}/info' 993htmldir='${docdir}' 994dvidir='${docdir}' 995pdfdir='${docdir}' 996psdir='${docdir}' 997libdir='${exec_prefix}/lib' 998localedir='${datarootdir}/locale' 999mandir='${datarootdir}/man' 1000 1001ac_prev= 1002ac_dashdash= 1003for ac_option 1004do 1005 # If the previous option needs an argument, assign it. 1006 if test -n "$ac_prev"; then 1007 eval $ac_prev=\$ac_option 1008 ac_prev= 1009 continue 1010 fi 1011 1012 case $ac_option in 1013 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1014 *) ac_optarg=yes ;; 1015 esac 1016 1017 # Accept the important Cygnus configure options, so we can diagnose typos. 1018 1019 case $ac_dashdash$ac_option in 1020 --) 1021 ac_dashdash=yes ;; 1022 1023 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1024 ac_prev=bindir ;; 1025 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1026 bindir=$ac_optarg ;; 1027 1028 -build | --build | --buil | --bui | --bu) 1029 ac_prev=build_alias ;; 1030 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1031 build_alias=$ac_optarg ;; 1032 1033 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1035 ac_prev=cache_file ;; 1036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1038 cache_file=$ac_optarg ;; 1039 1040 --config-cache | -C) 1041 cache_file=config.cache ;; 1042 1043 -datadir | --datadir | --datadi | --datad) 1044 ac_prev=datadir ;; 1045 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1046 datadir=$ac_optarg ;; 1047 1048 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1049 | --dataroo | --dataro | --datar) 1050 ac_prev=datarootdir ;; 1051 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1052 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1053 datarootdir=$ac_optarg ;; 1054 1055 -disable-* | --disable-*) 1056 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1057 # Reject names that are not valid shell variable names. 1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1059 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1060 { (exit 1); exit 1; }; } 1061 ac_useropt_orig=$ac_useropt 1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1063 case $ac_user_opts in 1064 *" 1065"enable_$ac_useropt" 1066"*) ;; 1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1068 ac_unrecognized_sep=', ';; 1069 esac 1070 eval enable_$ac_useropt=no ;; 1071 1072 -docdir | --docdir | --docdi | --doc | --do) 1073 ac_prev=docdir ;; 1074 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1075 docdir=$ac_optarg ;; 1076 1077 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1078 ac_prev=dvidir ;; 1079 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1080 dvidir=$ac_optarg ;; 1081 1082 -enable-* | --enable-*) 1083 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1084 # Reject names that are not valid shell variable names. 1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1086 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1087 { (exit 1); exit 1; }; } 1088 ac_useropt_orig=$ac_useropt 1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1090 case $ac_user_opts in 1091 *" 1092"enable_$ac_useropt" 1093"*) ;; 1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1095 ac_unrecognized_sep=', ';; 1096 esac 1097 eval enable_$ac_useropt=\$ac_optarg ;; 1098 1099 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1100 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1101 | --exec | --exe | --ex) 1102 ac_prev=exec_prefix ;; 1103 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1104 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1105 | --exec=* | --exe=* | --ex=*) 1106 exec_prefix=$ac_optarg ;; 1107 1108 -gas | --gas | --ga | --g) 1109 # Obsolete; use --with-gas. 1110 with_gas=yes ;; 1111 1112 -help | --help | --hel | --he | -h) 1113 ac_init_help=long ;; 1114 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1115 ac_init_help=recursive ;; 1116 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1117 ac_init_help=short ;; 1118 1119 -host | --host | --hos | --ho) 1120 ac_prev=host_alias ;; 1121 -host=* | --host=* | --hos=* | --ho=*) 1122 host_alias=$ac_optarg ;; 1123 1124 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1125 ac_prev=htmldir ;; 1126 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1127 | --ht=*) 1128 htmldir=$ac_optarg ;; 1129 1130 -includedir | --includedir | --includedi | --included | --include \ 1131 | --includ | --inclu | --incl | --inc) 1132 ac_prev=includedir ;; 1133 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1134 | --includ=* | --inclu=* | --incl=* | --inc=*) 1135 includedir=$ac_optarg ;; 1136 1137 -infodir | --infodir | --infodi | --infod | --info | --inf) 1138 ac_prev=infodir ;; 1139 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1140 infodir=$ac_optarg ;; 1141 1142 -libdir | --libdir | --libdi | --libd) 1143 ac_prev=libdir ;; 1144 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1145 libdir=$ac_optarg ;; 1146 1147 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1148 | --libexe | --libex | --libe) 1149 ac_prev=libexecdir ;; 1150 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1151 | --libexe=* | --libex=* | --libe=*) 1152 libexecdir=$ac_optarg ;; 1153 1154 -localedir | --localedir | --localedi | --localed | --locale) 1155 ac_prev=localedir ;; 1156 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1157 localedir=$ac_optarg ;; 1158 1159 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1160 | --localstate | --localstat | --localsta | --localst | --locals) 1161 ac_prev=localstatedir ;; 1162 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1163 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1164 localstatedir=$ac_optarg ;; 1165 1166 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1167 ac_prev=mandir ;; 1168 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1169 mandir=$ac_optarg ;; 1170 1171 -nfp | --nfp | --nf) 1172 # Obsolete; use --without-fp. 1173 with_fp=no ;; 1174 1175 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1176 | --no-cr | --no-c | -n) 1177 no_create=yes ;; 1178 1179 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1180 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1181 no_recursion=yes ;; 1182 1183 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1184 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1185 | --oldin | --oldi | --old | --ol | --o) 1186 ac_prev=oldincludedir ;; 1187 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1188 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1189 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1190 oldincludedir=$ac_optarg ;; 1191 1192 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1193 ac_prev=prefix ;; 1194 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1195 prefix=$ac_optarg ;; 1196 1197 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1198 | --program-pre | --program-pr | --program-p) 1199 ac_prev=program_prefix ;; 1200 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1201 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1202 program_prefix=$ac_optarg ;; 1203 1204 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1205 | --program-suf | --program-su | --program-s) 1206 ac_prev=program_suffix ;; 1207 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1208 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1209 program_suffix=$ac_optarg ;; 1210 1211 -program-transform-name | --program-transform-name \ 1212 | --program-transform-nam | --program-transform-na \ 1213 | --program-transform-n | --program-transform- \ 1214 | --program-transform | --program-transfor \ 1215 | --program-transfo | --program-transf \ 1216 | --program-trans | --program-tran \ 1217 | --progr-tra | --program-tr | --program-t) 1218 ac_prev=program_transform_name ;; 1219 -program-transform-name=* | --program-transform-name=* \ 1220 | --program-transform-nam=* | --program-transform-na=* \ 1221 | --program-transform-n=* | --program-transform-=* \ 1222 | --program-transform=* | --program-transfor=* \ 1223 | --program-transfo=* | --program-transf=* \ 1224 | --program-trans=* | --program-tran=* \ 1225 | --progr-tra=* | --program-tr=* | --program-t=*) 1226 program_transform_name=$ac_optarg ;; 1227 1228 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1229 ac_prev=pdfdir ;; 1230 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1231 pdfdir=$ac_optarg ;; 1232 1233 -psdir | --psdir | --psdi | --psd | --ps) 1234 ac_prev=psdir ;; 1235 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1236 psdir=$ac_optarg ;; 1237 1238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1239 | -silent | --silent | --silen | --sile | --sil) 1240 silent=yes ;; 1241 1242 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1243 ac_prev=sbindir ;; 1244 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1245 | --sbi=* | --sb=*) 1246 sbindir=$ac_optarg ;; 1247 1248 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1249 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1250 | --sharedst | --shareds | --shared | --share | --shar \ 1251 | --sha | --sh) 1252 ac_prev=sharedstatedir ;; 1253 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1254 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1255 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1256 | --sha=* | --sh=*) 1257 sharedstatedir=$ac_optarg ;; 1258 1259 -site | --site | --sit) 1260 ac_prev=site ;; 1261 -site=* | --site=* | --sit=*) 1262 site=$ac_optarg ;; 1263 1264 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1265 ac_prev=srcdir ;; 1266 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1267 srcdir=$ac_optarg ;; 1268 1269 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1270 | --syscon | --sysco | --sysc | --sys | --sy) 1271 ac_prev=sysconfdir ;; 1272 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1273 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1274 sysconfdir=$ac_optarg ;; 1275 1276 -target | --target | --targe | --targ | --tar | --ta | --t) 1277 ac_prev=target_alias ;; 1278 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1279 target_alias=$ac_optarg ;; 1280 1281 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1282 verbose=yes ;; 1283 1284 -version | --version | --versio | --versi | --vers | -V) 1285 ac_init_version=: ;; 1286 1287 -with-* | --with-*) 1288 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1289 # Reject names that are not valid shell variable names. 1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1291 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1292 { (exit 1); exit 1; }; } 1293 ac_useropt_orig=$ac_useropt 1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1295 case $ac_user_opts in 1296 *" 1297"with_$ac_useropt" 1298"*) ;; 1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1300 ac_unrecognized_sep=', ';; 1301 esac 1302 eval with_$ac_useropt=\$ac_optarg ;; 1303 1304 -without-* | --without-*) 1305 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1306 # Reject names that are not valid shell variable names. 1307 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1308 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1309 { (exit 1); exit 1; }; } 1310 ac_useropt_orig=$ac_useropt 1311 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1312 case $ac_user_opts in 1313 *" 1314"with_$ac_useropt" 1315"*) ;; 1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1317 ac_unrecognized_sep=', ';; 1318 esac 1319 eval with_$ac_useropt=no ;; 1320 1321 --x) 1322 # Obsolete; use --with-x. 1323 with_x=yes ;; 1324 1325 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1326 | --x-incl | --x-inc | --x-in | --x-i) 1327 ac_prev=x_includes ;; 1328 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1329 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1330 x_includes=$ac_optarg ;; 1331 1332 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1333 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1334 ac_prev=x_libraries ;; 1335 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1336 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1337 x_libraries=$ac_optarg ;; 1338 1339 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1340Try \`$0 --help' for more information." >&2 1341 { (exit 1); exit 1; }; } 1342 ;; 1343 1344 *=*) 1345 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1346 # Reject names that are not valid shell variable names. 1347 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1348 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1349 { (exit 1); exit 1; }; } 1350 eval $ac_envvar=\$ac_optarg 1351 export $ac_envvar ;; 1352 1353 *) 1354 # FIXME: should be removed in autoconf 3.0. 1355 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1356 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1357 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1358 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1359 ;; 1360 1361 esac 1362done 1363 1364if test -n "$ac_prev"; then 1365 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1366 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1367 { (exit 1); exit 1; }; } 1368fi 1369 1370if test -n "$ac_unrecognized_opts"; then 1371 case $enable_option_checking in 1372 no) ;; 1373 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1374 { (exit 1); exit 1; }; } ;; 1375 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1376 esac 1377fi 1378 1379# Check all directory arguments for consistency. 1380for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1381 datadir sysconfdir sharedstatedir localstatedir includedir \ 1382 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1383 libdir localedir mandir 1384do 1385 eval ac_val=\$$ac_var 1386 # Remove trailing slashes. 1387 case $ac_val in 1388 */ ) 1389 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1390 eval $ac_var=\$ac_val;; 1391 esac 1392 # Be sure to have absolute directory names. 1393 case $ac_val in 1394 [\\/$]* | ?:[\\/]* ) continue;; 1395 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1396 esac 1397 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1398 { (exit 1); exit 1; }; } 1399done 1400 1401# There might be people who depend on the old broken behavior: `$host' 1402# used to hold the argument of --host etc. 1403# FIXME: To remove some day. 1404build=$build_alias 1405host=$host_alias 1406target=$target_alias 1407 1408# FIXME: To remove some day. 1409if test "x$host_alias" != x; then 1410 if test "x$build_alias" = x; then 1411 cross_compiling=maybe 1412 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1413 If a cross compiler is detected then cross compile mode will be used." >&2 1414 elif test "x$build_alias" != "x$host_alias"; then 1415 cross_compiling=yes 1416 fi 1417fi 1418 1419ac_tool_prefix= 1420test -n "$host_alias" && ac_tool_prefix=$host_alias- 1421 1422test "$silent" = yes && exec 6>/dev/null 1423 1424 1425ac_pwd=`pwd` && test -n "$ac_pwd" && 1426ac_ls_di=`ls -di .` && 1427ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1428 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1429 { (exit 1); exit 1; }; } 1430test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1431 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1432 { (exit 1); exit 1; }; } 1433 1434 1435# Find the source files, if location was not specified. 1436if test -z "$srcdir"; then 1437 ac_srcdir_defaulted=yes 1438 # Try the directory containing this script, then the parent directory. 1439 ac_confdir=`$as_dirname -- "$as_myself" || 1440$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1441 X"$as_myself" : 'X\(//\)[^/]' \| \ 1442 X"$as_myself" : 'X\(//\)$' \| \ 1443 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1444$as_echo X"$as_myself" | 1445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1446 s//\1/ 1447 q 1448 } 1449 /^X\(\/\/\)[^/].*/{ 1450 s//\1/ 1451 q 1452 } 1453 /^X\(\/\/\)$/{ 1454 s//\1/ 1455 q 1456 } 1457 /^X\(\/\).*/{ 1458 s//\1/ 1459 q 1460 } 1461 s/.*/./; q'` 1462 srcdir=$ac_confdir 1463 if test ! -r "$srcdir/$ac_unique_file"; then 1464 srcdir=.. 1465 fi 1466else 1467 ac_srcdir_defaulted=no 1468fi 1469if test ! -r "$srcdir/$ac_unique_file"; then 1470 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1471 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1472 { (exit 1); exit 1; }; } 1473fi 1474ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1475ac_abs_confdir=`( 1476 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1477 { (exit 1); exit 1; }; } 1478 pwd)` 1479# When building in place, set srcdir=. 1480if test "$ac_abs_confdir" = "$ac_pwd"; then 1481 srcdir=. 1482fi 1483# Remove unnecessary trailing slashes from srcdir. 1484# Double slashes in file names in object file debugging info 1485# mess up M-x gdb in Emacs. 1486case $srcdir in 1487*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1488esac 1489for ac_var in $ac_precious_vars; do 1490 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1491 eval ac_env_${ac_var}_value=\$${ac_var} 1492 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1493 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1494done 1495 1496# 1497# Report the --help message. 1498# 1499if test "$ac_init_help" = "long"; then 1500 # Omit some internal or obsolete options to make the list less imposing. 1501 # This message is too long to be a string in the A/UX 3.1 sh. 1502 cat <<_ACEOF 1503\`configure' configures xf86-video-nv 2.1.14 to adapt to many kinds of systems. 1504 1505Usage: $0 [OPTION]... [VAR=VALUE]... 1506 1507To assign environment variables (e.g., CC, CFLAGS...), specify them as 1508VAR=VALUE. See below for descriptions of some of the useful variables. 1509 1510Defaults for the options are specified in brackets. 1511 1512Configuration: 1513 -h, --help display this help and exit 1514 --help=short display options specific to this package 1515 --help=recursive display the short help of all the included packages 1516 -V, --version display version information and exit 1517 -q, --quiet, --silent do not print \`checking...' messages 1518 --cache-file=FILE cache test results in FILE [disabled] 1519 -C, --config-cache alias for \`--cache-file=config.cache' 1520 -n, --no-create do not create output files 1521 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1522 1523Installation directories: 1524 --prefix=PREFIX install architecture-independent files in PREFIX 1525 [$ac_default_prefix] 1526 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1527 [PREFIX] 1528 1529By default, \`make install' will install all the files in 1530\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1531an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1532for instance \`--prefix=\$HOME'. 1533 1534For better control, use the options below. 1535 1536Fine tuning of the installation directories: 1537 --bindir=DIR user executables [EPREFIX/bin] 1538 --sbindir=DIR system admin executables [EPREFIX/sbin] 1539 --libexecdir=DIR program executables [EPREFIX/libexec] 1540 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1541 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1542 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1543 --libdir=DIR object code libraries [EPREFIX/lib] 1544 --includedir=DIR C header files [PREFIX/include] 1545 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1546 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1547 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1548 --infodir=DIR info documentation [DATAROOTDIR/info] 1549 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1550 --mandir=DIR man documentation [DATAROOTDIR/man] 1551 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-nv] 1552 --htmldir=DIR html documentation [DOCDIR] 1553 --dvidir=DIR dvi documentation [DOCDIR] 1554 --pdfdir=DIR pdf documentation [DOCDIR] 1555 --psdir=DIR ps documentation [DOCDIR] 1556_ACEOF 1557 1558 cat <<\_ACEOF 1559 1560Program names: 1561 --program-prefix=PREFIX prepend PREFIX to installed program names 1562 --program-suffix=SUFFIX append SUFFIX to installed program names 1563 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1564 1565System types: 1566 --build=BUILD configure for building on BUILD [guessed] 1567 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1568_ACEOF 1569fi 1570 1571if test -n "$ac_init_help"; then 1572 case $ac_init_help in 1573 short | recursive ) echo "Configuration of xf86-video-nv 2.1.14:";; 1574 esac 1575 cat <<\_ACEOF 1576 1577Optional Features: 1578 --disable-option-checking ignore unrecognized --enable/--with options 1579 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1580 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1581 --enable-maintainer-mode enable make rules and dependencies not useful 1582 (and sometimes confusing) to the casual installer 1583 --enable-static[=PKGS] build static libraries [default=no] 1584 --enable-shared[=PKGS] build shared libraries [default=yes] 1585 --enable-fast-install[=PKGS] 1586 optimize for fast installation [default=yes] 1587 --disable-dependency-tracking speeds up one-time build 1588 --enable-dependency-tracking do not reject slow dependency extractors 1589 --disable-libtool-lock avoid locking (might break parallel builds) 1590 1591Optional Packages: 1592 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1593 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1594 --with-pic try to use only PIC/non-PIC objects [default=use 1595 both] 1596 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1597 --with-xorg-module-dir=DIR 1598 Default xorg module directory 1599 [default=$libdir/xorg/modules] 1600 --with-xserver-source=XSERVER_SOURCE 1601 Path to X server source tree 1602 --with-release-version=STRING 1603 Use release version string in package name 1604 1605Some influential environment variables: 1606 CC C compiler command 1607 CFLAGS C compiler flags 1608 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1609 nonstandard directory <lib dir> 1610 LIBS libraries to pass to the linker, e.g. -l<library> 1611 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1612 you have headers in a nonstandard directory <include dir> 1613 CPP C preprocessor 1614 PKG_CONFIG path to pkg-config utility 1615 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1616 XORG_LIBS linker flags for XORG, overriding pkg-config 1617 PCIACCESS_CFLAGS 1618 C compiler flags for PCIACCESS, overriding pkg-config 1619 PCIACCESS_LIBS 1620 linker flags for PCIACCESS, overriding pkg-config 1621 1622Use these variables to override the choices made by `configure' or to help 1623it to find libraries and programs with nonstandard names/locations. 1624 1625Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1626_ACEOF 1627ac_status=$? 1628fi 1629 1630if test "$ac_init_help" = "recursive"; then 1631 # If there are subdirs, report their specific --help. 1632 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1633 test -d "$ac_dir" || 1634 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1635 continue 1636 ac_builddir=. 1637 1638case "$ac_dir" in 1639.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1640*) 1641 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1642 # A ".." for each directory in $ac_dir_suffix. 1643 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1644 case $ac_top_builddir_sub in 1645 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1646 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1647 esac ;; 1648esac 1649ac_abs_top_builddir=$ac_pwd 1650ac_abs_builddir=$ac_pwd$ac_dir_suffix 1651# for backward compatibility: 1652ac_top_builddir=$ac_top_build_prefix 1653 1654case $srcdir in 1655 .) # We are building in place. 1656 ac_srcdir=. 1657 ac_top_srcdir=$ac_top_builddir_sub 1658 ac_abs_top_srcdir=$ac_pwd ;; 1659 [\\/]* | ?:[\\/]* ) # Absolute name. 1660 ac_srcdir=$srcdir$ac_dir_suffix; 1661 ac_top_srcdir=$srcdir 1662 ac_abs_top_srcdir=$srcdir ;; 1663 *) # Relative name. 1664 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1665 ac_top_srcdir=$ac_top_build_prefix$srcdir 1666 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1667esac 1668ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1669 1670 cd "$ac_dir" || { ac_status=$?; continue; } 1671 # Check for guested configure. 1672 if test -f "$ac_srcdir/configure.gnu"; then 1673 echo && 1674 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1675 elif test -f "$ac_srcdir/configure"; then 1676 echo && 1677 $SHELL "$ac_srcdir/configure" --help=recursive 1678 else 1679 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1680 fi || ac_status=$? 1681 cd "$ac_pwd" || { ac_status=$?; break; } 1682 done 1683fi 1684 1685test -n "$ac_init_help" && exit $ac_status 1686if $ac_init_version; then 1687 cat <<\_ACEOF 1688xf86-video-nv configure 2.1.14 1689generated by GNU Autoconf 2.63 1690 1691Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16922002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1693This configure script is free software; the Free Software Foundation 1694gives unlimited permission to copy, distribute and modify it. 1695_ACEOF 1696 exit 1697fi 1698cat >config.log <<_ACEOF 1699This file contains any messages produced by compilers while 1700running configure, to aid debugging if configure makes a mistake. 1701 1702It was created by xf86-video-nv $as_me 2.1.14, which was 1703generated by GNU Autoconf 2.63. Invocation command line was 1704 1705 $ $0 $@ 1706 1707_ACEOF 1708exec 5>>config.log 1709{ 1710cat <<_ASUNAME 1711## --------- ## 1712## Platform. ## 1713## --------- ## 1714 1715hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1716uname -m = `(uname -m) 2>/dev/null || echo unknown` 1717uname -r = `(uname -r) 2>/dev/null || echo unknown` 1718uname -s = `(uname -s) 2>/dev/null || echo unknown` 1719uname -v = `(uname -v) 2>/dev/null || echo unknown` 1720 1721/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1722/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1723 1724/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1725/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1726/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1727/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1728/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1729/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1730/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1731 1732_ASUNAME 1733 1734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1735for as_dir in $PATH 1736do 1737 IFS=$as_save_IFS 1738 test -z "$as_dir" && as_dir=. 1739 $as_echo "PATH: $as_dir" 1740done 1741IFS=$as_save_IFS 1742 1743} >&5 1744 1745cat >&5 <<_ACEOF 1746 1747 1748## ----------- ## 1749## Core tests. ## 1750## ----------- ## 1751 1752_ACEOF 1753 1754 1755# Keep a trace of the command line. 1756# Strip out --no-create and --no-recursion so they do not pile up. 1757# Strip out --silent because we don't want to record it for future runs. 1758# Also quote any args containing shell meta-characters. 1759# Make two passes to allow for proper duplicate-argument suppression. 1760ac_configure_args= 1761ac_configure_args0= 1762ac_configure_args1= 1763ac_must_keep_next=false 1764for ac_pass in 1 2 1765do 1766 for ac_arg 1767 do 1768 case $ac_arg in 1769 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1770 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1771 | -silent | --silent | --silen | --sile | --sil) 1772 continue ;; 1773 *\'*) 1774 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1775 esac 1776 case $ac_pass in 1777 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1778 2) 1779 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1780 if test $ac_must_keep_next = true; then 1781 ac_must_keep_next=false # Got value, back to normal. 1782 else 1783 case $ac_arg in 1784 *=* | --config-cache | -C | -disable-* | --disable-* \ 1785 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1786 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1787 | -with-* | --with-* | -without-* | --without-* | --x) 1788 case "$ac_configure_args0 " in 1789 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1790 esac 1791 ;; 1792 -* ) ac_must_keep_next=true ;; 1793 esac 1794 fi 1795 ac_configure_args="$ac_configure_args '$ac_arg'" 1796 ;; 1797 esac 1798 done 1799done 1800$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1801$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1802 1803# When interrupted or exit'd, cleanup temporary files, and complete 1804# config.log. We remove comments because anyway the quotes in there 1805# would cause problems or look ugly. 1806# WARNING: Use '\'' to represent an apostrophe within the trap. 1807# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1808trap 'exit_status=$? 1809 # Save into config.log some information that might help in debugging. 1810 { 1811 echo 1812 1813 cat <<\_ASBOX 1814## ---------------- ## 1815## Cache variables. ## 1816## ---------------- ## 1817_ASBOX 1818 echo 1819 # The following way of writing the cache mishandles newlines in values, 1820( 1821 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1822 eval ac_val=\$$ac_var 1823 case $ac_val in #( 1824 *${as_nl}*) 1825 case $ac_var in #( 1826 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1827$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1828 esac 1829 case $ac_var in #( 1830 _ | IFS | as_nl) ;; #( 1831 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1832 *) $as_unset $ac_var ;; 1833 esac ;; 1834 esac 1835 done 1836 (set) 2>&1 | 1837 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1838 *${as_nl}ac_space=\ *) 1839 sed -n \ 1840 "s/'\''/'\''\\\\'\'''\''/g; 1841 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1842 ;; #( 1843 *) 1844 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1845 ;; 1846 esac | 1847 sort 1848) 1849 echo 1850 1851 cat <<\_ASBOX 1852## ----------------- ## 1853## Output variables. ## 1854## ----------------- ## 1855_ASBOX 1856 echo 1857 for ac_var in $ac_subst_vars 1858 do 1859 eval ac_val=\$$ac_var 1860 case $ac_val in 1861 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1862 esac 1863 $as_echo "$ac_var='\''$ac_val'\''" 1864 done | sort 1865 echo 1866 1867 if test -n "$ac_subst_files"; then 1868 cat <<\_ASBOX 1869## ------------------- ## 1870## File substitutions. ## 1871## ------------------- ## 1872_ASBOX 1873 echo 1874 for ac_var in $ac_subst_files 1875 do 1876 eval ac_val=\$$ac_var 1877 case $ac_val in 1878 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1879 esac 1880 $as_echo "$ac_var='\''$ac_val'\''" 1881 done | sort 1882 echo 1883 fi 1884 1885 if test -s confdefs.h; then 1886 cat <<\_ASBOX 1887## ----------- ## 1888## confdefs.h. ## 1889## ----------- ## 1890_ASBOX 1891 echo 1892 cat confdefs.h 1893 echo 1894 fi 1895 test "$ac_signal" != 0 && 1896 $as_echo "$as_me: caught signal $ac_signal" 1897 $as_echo "$as_me: exit $exit_status" 1898 } >&5 1899 rm -f core *.core core.conftest.* && 1900 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1901 exit $exit_status 1902' 0 1903for ac_signal in 1 2 13 15; do 1904 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1905done 1906ac_signal=0 1907 1908# confdefs.h avoids OS command line length limits that DEFS can exceed. 1909rm -f -r conftest* confdefs.h 1910 1911# Predefined preprocessor variables. 1912 1913cat >>confdefs.h <<_ACEOF 1914#define PACKAGE_NAME "$PACKAGE_NAME" 1915_ACEOF 1916 1917 1918cat >>confdefs.h <<_ACEOF 1919#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1920_ACEOF 1921 1922 1923cat >>confdefs.h <<_ACEOF 1924#define PACKAGE_VERSION "$PACKAGE_VERSION" 1925_ACEOF 1926 1927 1928cat >>confdefs.h <<_ACEOF 1929#define PACKAGE_STRING "$PACKAGE_STRING" 1930_ACEOF 1931 1932 1933cat >>confdefs.h <<_ACEOF 1934#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1935_ACEOF 1936 1937 1938# Let the site file select an alternate cache file if it wants to. 1939# Prefer an explicitly selected file to automatically selected ones. 1940ac_site_file1=NONE 1941ac_site_file2=NONE 1942if test -n "$CONFIG_SITE"; then 1943 ac_site_file1=$CONFIG_SITE 1944elif test "x$prefix" != xNONE; then 1945 ac_site_file1=$prefix/share/config.site 1946 ac_site_file2=$prefix/etc/config.site 1947else 1948 ac_site_file1=$ac_default_prefix/share/config.site 1949 ac_site_file2=$ac_default_prefix/etc/config.site 1950fi 1951for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1952do 1953 test "x$ac_site_file" = xNONE && continue 1954 if test -r "$ac_site_file"; then 1955 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1956$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1957 sed 's/^/| /' "$ac_site_file" >&5 1958 . "$ac_site_file" 1959 fi 1960done 1961 1962if test -r "$cache_file"; then 1963 # Some versions of bash will fail to source /dev/null (special 1964 # files actually), so we avoid doing that. 1965 if test -f "$cache_file"; then 1966 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1967$as_echo "$as_me: loading cache $cache_file" >&6;} 1968 case $cache_file in 1969 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1970 *) . "./$cache_file";; 1971 esac 1972 fi 1973else 1974 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1975$as_echo "$as_me: creating cache $cache_file" >&6;} 1976 >$cache_file 1977fi 1978 1979# Check that the precious variables saved in the cache have kept the same 1980# value. 1981ac_cache_corrupted=false 1982for ac_var in $ac_precious_vars; do 1983 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1984 eval ac_new_set=\$ac_env_${ac_var}_set 1985 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1986 eval ac_new_val=\$ac_env_${ac_var}_value 1987 case $ac_old_set,$ac_new_set in 1988 set,) 1989 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1990$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1991 ac_cache_corrupted=: ;; 1992 ,set) 1993 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1994$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1995 ac_cache_corrupted=: ;; 1996 ,);; 1997 *) 1998 if test "x$ac_old_val" != "x$ac_new_val"; then 1999 # differences in whitespace do not lead to failure. 2000 ac_old_val_w=`echo x $ac_old_val` 2001 ac_new_val_w=`echo x $ac_new_val` 2002 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2003 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2004$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2005 ac_cache_corrupted=: 2006 else 2007 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2008$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2009 eval $ac_var=\$ac_old_val 2010 fi 2011 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2012$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2013 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2014$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2015 fi;; 2016 esac 2017 # Pass precious variables to config.status. 2018 if test "$ac_new_set" = set; then 2019 case $ac_new_val in 2020 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2021 *) ac_arg=$ac_var=$ac_new_val ;; 2022 esac 2023 case " $ac_configure_args " in 2024 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2025 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2026 esac 2027 fi 2028done 2029if $ac_cache_corrupted; then 2030 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2032 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2033$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2034 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2035$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2036 { (exit 1); exit 1; }; } 2037fi 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063ac_ext=c 2064ac_cpp='$CPP $CPPFLAGS' 2065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2067ac_compiler_gnu=$ac_cv_c_compiler_gnu 2068 2069 2070 2071 2072ac_config_headers="$ac_config_headers config.h" 2073 2074ac_aux_dir= 2075for ac_dir in . "$srcdir"/.; do 2076 if test -f "$ac_dir/install-sh"; then 2077 ac_aux_dir=$ac_dir 2078 ac_install_sh="$ac_aux_dir/install-sh -c" 2079 break 2080 elif test -f "$ac_dir/install.sh"; then 2081 ac_aux_dir=$ac_dir 2082 ac_install_sh="$ac_aux_dir/install.sh -c" 2083 break 2084 elif test -f "$ac_dir/shtool"; then 2085 ac_aux_dir=$ac_dir 2086 ac_install_sh="$ac_aux_dir/shtool install -c" 2087 break 2088 fi 2089done 2090if test -z "$ac_aux_dir"; then 2091 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 2092$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 2093 { (exit 1); exit 1; }; } 2094fi 2095 2096# These three variables are undocumented and unsupported, 2097# and are intended to be withdrawn in a future Autoconf release. 2098# They can cause serious problems if a builder's source tree is in a directory 2099# whose full name contains unusual characters. 2100ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2101ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2102ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2103 2104 2105 2106am__api_version='1.10' 2107 2108# Find a good install program. We prefer a C program (faster), 2109# so one script is as good as another. But avoid the broken or 2110# incompatible versions: 2111# SysV /etc/install, /usr/sbin/install 2112# SunOS /usr/etc/install 2113# IRIX /sbin/install 2114# AIX /bin/install 2115# AmigaOS /C/install, which installs bootblocks on floppy discs 2116# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2117# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2118# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2119# OS/2's system install, which has a completely different semantic 2120# ./install, which can be erroneously created by make from ./install.sh. 2121# Reject install programs that cannot install multiple files. 2122{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2123$as_echo_n "checking for a BSD-compatible install... " >&6; } 2124if test -z "$INSTALL"; then 2125if test "${ac_cv_path_install+set}" = set; then 2126 $as_echo_n "(cached) " >&6 2127else 2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2129for as_dir in $PATH 2130do 2131 IFS=$as_save_IFS 2132 test -z "$as_dir" && as_dir=. 2133 # Account for people who put trailing slashes in PATH elements. 2134case $as_dir/ in 2135 ./ | .// | /cC/* | \ 2136 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2137 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2138 /usr/ucb/* ) ;; 2139 *) 2140 # OSF1 and SCO ODT 3.0 have their own names for install. 2141 # Don't use installbsd from OSF since it installs stuff as root 2142 # by default. 2143 for ac_prog in ginstall scoinst install; do 2144 for ac_exec_ext in '' $ac_executable_extensions; do 2145 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2146 if test $ac_prog = install && 2147 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2148 # AIX install. It has an incompatible calling convention. 2149 : 2150 elif test $ac_prog = install && 2151 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2152 # program-specific install script used by HP pwplus--don't use. 2153 : 2154 else 2155 rm -rf conftest.one conftest.two conftest.dir 2156 echo one > conftest.one 2157 echo two > conftest.two 2158 mkdir conftest.dir 2159 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2160 test -s conftest.one && test -s conftest.two && 2161 test -s conftest.dir/conftest.one && 2162 test -s conftest.dir/conftest.two 2163 then 2164 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2165 break 3 2166 fi 2167 fi 2168 fi 2169 done 2170 done 2171 ;; 2172esac 2173 2174done 2175IFS=$as_save_IFS 2176 2177rm -rf conftest.one conftest.two conftest.dir 2178 2179fi 2180 if test "${ac_cv_path_install+set}" = set; then 2181 INSTALL=$ac_cv_path_install 2182 else 2183 # As a last resort, use the slow shell script. Don't cache a 2184 # value for INSTALL within a source directory, because that will 2185 # break other packages using the cache if that directory is 2186 # removed, or if the value is a relative name. 2187 INSTALL=$ac_install_sh 2188 fi 2189fi 2190{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2191$as_echo "$INSTALL" >&6; } 2192 2193# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2194# It thinks the first close brace ends the variable substitution. 2195test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2196 2197test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2198 2199test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2200 2201{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2202$as_echo_n "checking whether build environment is sane... " >&6; } 2203# Just in case 2204sleep 1 2205echo timestamp > conftest.file 2206# Do `set' in a subshell so we don't clobber the current shell's 2207# arguments. Must try -L first in case configure is actually a 2208# symlink; some systems play weird games with the mod time of symlinks 2209# (eg FreeBSD returns the mod time of the symlink's containing 2210# directory). 2211if ( 2212 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2213 if test "$*" = "X"; then 2214 # -L didn't work. 2215 set X `ls -t $srcdir/configure conftest.file` 2216 fi 2217 rm -f conftest.file 2218 if test "$*" != "X $srcdir/configure conftest.file" \ 2219 && test "$*" != "X conftest.file $srcdir/configure"; then 2220 2221 # If neither matched, then we have a broken ls. This can happen 2222 # if, for instance, CONFIG_SHELL is bash and it inherits a 2223 # broken ls alias from the environment. This has actually 2224 # happened. Such a system could not be considered "sane". 2225 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2226alias in your environment" >&5 2227$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2228alias in your environment" >&2;} 2229 { (exit 1); exit 1; }; } 2230 fi 2231 2232 test "$2" = conftest.file 2233 ) 2234then 2235 # Ok. 2236 : 2237else 2238 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2239Check your system clock" >&5 2240$as_echo "$as_me: error: newly created file is older than distributed files! 2241Check your system clock" >&2;} 2242 { (exit 1); exit 1; }; } 2243fi 2244{ $as_echo "$as_me:$LINENO: result: yes" >&5 2245$as_echo "yes" >&6; } 2246test "$program_prefix" != NONE && 2247 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2248# Use a double $ so make ignores it. 2249test "$program_suffix" != NONE && 2250 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2251# Double any \ or $. 2252# By default was `s,x,x', remove it if useless. 2253ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2254program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2255 2256# expand $ac_aux_dir to an absolute path 2257am_aux_dir=`cd $ac_aux_dir && pwd` 2258 2259test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2260# Use eval to expand $SHELL 2261if eval "$MISSING --run true"; then 2262 am_missing_run="$MISSING --run " 2263else 2264 am_missing_run= 2265 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2266$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2267fi 2268 2269{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2270$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2271if test -z "$MKDIR_P"; then 2272 if test "${ac_cv_path_mkdir+set}" = set; then 2273 $as_echo_n "(cached) " >&6 2274else 2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2276for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2277do 2278 IFS=$as_save_IFS 2279 test -z "$as_dir" && as_dir=. 2280 for ac_prog in mkdir gmkdir; do 2281 for ac_exec_ext in '' $ac_executable_extensions; do 2282 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2283 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2284 'mkdir (GNU coreutils) '* | \ 2285 'mkdir (coreutils) '* | \ 2286 'mkdir (fileutils) '4.1*) 2287 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2288 break 3;; 2289 esac 2290 done 2291 done 2292done 2293IFS=$as_save_IFS 2294 2295fi 2296 2297 if test "${ac_cv_path_mkdir+set}" = set; then 2298 MKDIR_P="$ac_cv_path_mkdir -p" 2299 else 2300 # As a last resort, use the slow shell script. Don't cache a 2301 # value for MKDIR_P within a source directory, because that will 2302 # break other packages using the cache if that directory is 2303 # removed, or if the value is a relative name. 2304 test -d ./--version && rmdir ./--version 2305 MKDIR_P="$ac_install_sh -d" 2306 fi 2307fi 2308{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2309$as_echo "$MKDIR_P" >&6; } 2310 2311mkdir_p="$MKDIR_P" 2312case $mkdir_p in 2313 [\\/$]* | ?:[\\/]*) ;; 2314 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2315esac 2316 2317for ac_prog in gawk mawk nawk awk 2318do 2319 # Extract the first word of "$ac_prog", so it can be a program name with args. 2320set dummy $ac_prog; ac_word=$2 2321{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2322$as_echo_n "checking for $ac_word... " >&6; } 2323if test "${ac_cv_prog_AWK+set}" = set; then 2324 $as_echo_n "(cached) " >&6 2325else 2326 if test -n "$AWK"; then 2327 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2328else 2329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2330for as_dir in $PATH 2331do 2332 IFS=$as_save_IFS 2333 test -z "$as_dir" && as_dir=. 2334 for ac_exec_ext in '' $ac_executable_extensions; do 2335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2336 ac_cv_prog_AWK="$ac_prog" 2337 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2338 break 2 2339 fi 2340done 2341done 2342IFS=$as_save_IFS 2343 2344fi 2345fi 2346AWK=$ac_cv_prog_AWK 2347if test -n "$AWK"; then 2348 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2349$as_echo "$AWK" >&6; } 2350else 2351 { $as_echo "$as_me:$LINENO: result: no" >&5 2352$as_echo "no" >&6; } 2353fi 2354 2355 2356 test -n "$AWK" && break 2357done 2358 2359{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2360$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2361set x ${MAKE-make} 2362ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2363if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2364 $as_echo_n "(cached) " >&6 2365else 2366 cat >conftest.make <<\_ACEOF 2367SHELL = /bin/sh 2368all: 2369 @echo '@@@%%%=$(MAKE)=@@@%%%' 2370_ACEOF 2371# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2372case `${MAKE-make} -f conftest.make 2>/dev/null` in 2373 *@@@%%%=?*=@@@%%%*) 2374 eval ac_cv_prog_make_${ac_make}_set=yes;; 2375 *) 2376 eval ac_cv_prog_make_${ac_make}_set=no;; 2377esac 2378rm -f conftest.make 2379fi 2380if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2381 { $as_echo "$as_me:$LINENO: result: yes" >&5 2382$as_echo "yes" >&6; } 2383 SET_MAKE= 2384else 2385 { $as_echo "$as_me:$LINENO: result: no" >&5 2386$as_echo "no" >&6; } 2387 SET_MAKE="MAKE=${MAKE-make}" 2388fi 2389 2390rm -rf .tst 2>/dev/null 2391mkdir .tst 2>/dev/null 2392if test -d .tst; then 2393 am__leading_dot=. 2394else 2395 am__leading_dot=_ 2396fi 2397rmdir .tst 2>/dev/null 2398 2399if test "`cd $srcdir && pwd`" != "`pwd`"; then 2400 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2401 # is not polluted with repeated "-I." 2402 am__isrc=' -I$(srcdir)' 2403 # test to see if srcdir already configured 2404 if test -f $srcdir/config.status; then 2405 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2406$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2407 { (exit 1); exit 1; }; } 2408 fi 2409fi 2410 2411# test whether we have cygpath 2412if test -z "$CYGPATH_W"; then 2413 if (cygpath --version) >/dev/null 2>/dev/null; then 2414 CYGPATH_W='cygpath -w' 2415 else 2416 CYGPATH_W=echo 2417 fi 2418fi 2419 2420 2421# Define the identity of the package. 2422 PACKAGE='xf86-video-nv' 2423 VERSION='2.1.14' 2424 2425 2426cat >>confdefs.h <<_ACEOF 2427#define PACKAGE "$PACKAGE" 2428_ACEOF 2429 2430 2431cat >>confdefs.h <<_ACEOF 2432#define VERSION "$VERSION" 2433_ACEOF 2434 2435# Some tools Automake needs. 2436 2437ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2438 2439 2440AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2441 2442 2443AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2444 2445 2446AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2447 2448 2449MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2450 2451install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2452 2453# Installed binaries are usually stripped using `strip' when the user 2454# run `make install-strip'. However `strip' might not be the right 2455# tool to use in cross-compilation environments, therefore Automake 2456# will honor the `STRIP' environment variable to overrule this program. 2457if test "$cross_compiling" != no; then 2458 if test -n "$ac_tool_prefix"; then 2459 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2460set dummy ${ac_tool_prefix}strip; ac_word=$2 2461{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2462$as_echo_n "checking for $ac_word... " >&6; } 2463if test "${ac_cv_prog_STRIP+set}" = set; then 2464 $as_echo_n "(cached) " >&6 2465else 2466 if test -n "$STRIP"; then 2467 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2468else 2469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2470for as_dir in $PATH 2471do 2472 IFS=$as_save_IFS 2473 test -z "$as_dir" && as_dir=. 2474 for ac_exec_ext in '' $ac_executable_extensions; do 2475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2476 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2477 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2478 break 2 2479 fi 2480done 2481done 2482IFS=$as_save_IFS 2483 2484fi 2485fi 2486STRIP=$ac_cv_prog_STRIP 2487if test -n "$STRIP"; then 2488 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2489$as_echo "$STRIP" >&6; } 2490else 2491 { $as_echo "$as_me:$LINENO: result: no" >&5 2492$as_echo "no" >&6; } 2493fi 2494 2495 2496fi 2497if test -z "$ac_cv_prog_STRIP"; then 2498 ac_ct_STRIP=$STRIP 2499 # Extract the first word of "strip", so it can be a program name with args. 2500set dummy strip; ac_word=$2 2501{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2502$as_echo_n "checking for $ac_word... " >&6; } 2503if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2504 $as_echo_n "(cached) " >&6 2505else 2506 if test -n "$ac_ct_STRIP"; then 2507 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2508else 2509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2510for as_dir in $PATH 2511do 2512 IFS=$as_save_IFS 2513 test -z "$as_dir" && as_dir=. 2514 for ac_exec_ext in '' $ac_executable_extensions; do 2515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2516 ac_cv_prog_ac_ct_STRIP="strip" 2517 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2518 break 2 2519 fi 2520done 2521done 2522IFS=$as_save_IFS 2523 2524fi 2525fi 2526ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2527if test -n "$ac_ct_STRIP"; then 2528 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2529$as_echo "$ac_ct_STRIP" >&6; } 2530else 2531 { $as_echo "$as_me:$LINENO: result: no" >&5 2532$as_echo "no" >&6; } 2533fi 2534 2535 if test "x$ac_ct_STRIP" = x; then 2536 STRIP=":" 2537 else 2538 case $cross_compiling:$ac_tool_warned in 2539yes:) 2540{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2542ac_tool_warned=yes ;; 2543esac 2544 STRIP=$ac_ct_STRIP 2545 fi 2546else 2547 STRIP="$ac_cv_prog_STRIP" 2548fi 2549 2550fi 2551INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2552 2553# We need awk for the "check" target. The system "awk" is bad on 2554# some platforms. 2555# Always define AMTAR for backward compatibility. 2556 2557AMTAR=${AMTAR-"${am_missing_run}tar"} 2558 2559am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2560 2561 2562 2563 2564 2565 2566{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2567$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2568 # Check whether --enable-maintainer-mode was given. 2569if test "${enable_maintainer_mode+set}" = set; then 2570 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2571else 2572 USE_MAINTAINER_MODE=no 2573fi 2574 2575 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2576$as_echo "$USE_MAINTAINER_MODE" >&6; } 2577 if test $USE_MAINTAINER_MODE = yes; then 2578 MAINTAINER_MODE_TRUE= 2579 MAINTAINER_MODE_FALSE='#' 2580else 2581 MAINTAINER_MODE_TRUE='#' 2582 MAINTAINER_MODE_FALSE= 2583fi 2584 2585 MAINT=$MAINTAINER_MODE_TRUE 2586 2587 2588 2589# Checks for programs. 2590# Check whether --enable-static was given. 2591if test "${enable_static+set}" = set; then 2592 enableval=$enable_static; p=${PACKAGE-default} 2593 case $enableval in 2594 yes) enable_static=yes ;; 2595 no) enable_static=no ;; 2596 *) 2597 enable_static=no 2598 # Look at the argument we got. We use all the common list separators. 2599 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2600 for pkg in $enableval; do 2601 IFS="$lt_save_ifs" 2602 if test "X$pkg" = "X$p"; then 2603 enable_static=yes 2604 fi 2605 done 2606 IFS="$lt_save_ifs" 2607 ;; 2608 esac 2609else 2610 enable_static=no 2611fi 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621case `pwd` in 2622 *\ * | *\ *) 2623 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2624$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2625esac 2626 2627 2628 2629macro_version='2.2.6' 2630macro_revision='1.3012' 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644ltmain="$ac_aux_dir/ltmain.sh" 2645 2646# Make sure we can run config.sub. 2647$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2648 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2649$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2650 { (exit 1); exit 1; }; } 2651 2652{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2653$as_echo_n "checking build system type... " >&6; } 2654if test "${ac_cv_build+set}" = set; then 2655 $as_echo_n "(cached) " >&6 2656else 2657 ac_build_alias=$build_alias 2658test "x$ac_build_alias" = x && 2659 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2660test "x$ac_build_alias" = x && 2661 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2662$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2663 { (exit 1); exit 1; }; } 2664ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2665 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2666$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2667 { (exit 1); exit 1; }; } 2668 2669fi 2670{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2671$as_echo "$ac_cv_build" >&6; } 2672case $ac_cv_build in 2673*-*-*) ;; 2674*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2675$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2676 { (exit 1); exit 1; }; };; 2677esac 2678build=$ac_cv_build 2679ac_save_IFS=$IFS; IFS='-' 2680set x $ac_cv_build 2681shift 2682build_cpu=$1 2683build_vendor=$2 2684shift; shift 2685# Remember, the first character of IFS is used to create $*, 2686# except with old shells: 2687build_os=$* 2688IFS=$ac_save_IFS 2689case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2690 2691 2692{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2693$as_echo_n "checking host system type... " >&6; } 2694if test "${ac_cv_host+set}" = set; then 2695 $as_echo_n "(cached) " >&6 2696else 2697 if test "x$host_alias" = x; then 2698 ac_cv_host=$ac_cv_build 2699else 2700 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2701 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2702$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2703 { (exit 1); exit 1; }; } 2704fi 2705 2706fi 2707{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2708$as_echo "$ac_cv_host" >&6; } 2709case $ac_cv_host in 2710*-*-*) ;; 2711*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2712$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2713 { (exit 1); exit 1; }; };; 2714esac 2715host=$ac_cv_host 2716ac_save_IFS=$IFS; IFS='-' 2717set x $ac_cv_host 2718shift 2719host_cpu=$1 2720host_vendor=$2 2721shift; shift 2722# Remember, the first character of IFS is used to create $*, 2723# except with old shells: 2724host_os=$* 2725IFS=$ac_save_IFS 2726case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2727 2728 2729DEPDIR="${am__leading_dot}deps" 2730 2731ac_config_commands="$ac_config_commands depfiles" 2732 2733 2734am_make=${MAKE-make} 2735cat > confinc << 'END' 2736am__doit: 2737 @echo done 2738.PHONY: am__doit 2739END 2740# If we don't find an include directive, just comment out the code. 2741{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2742$as_echo_n "checking for style of include used by $am_make... " >&6; } 2743am__include="#" 2744am__quote= 2745_am_result=none 2746# First try GNU make style include. 2747echo "include confinc" > confmf 2748# We grep out `Entering directory' and `Leaving directory' 2749# messages which can occur if `w' ends up in MAKEFLAGS. 2750# In particular we don't look at `^make:' because GNU make might 2751# be invoked under some other name (usually "gmake"), in which 2752# case it prints its new name instead of `make'. 2753if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2754 am__include=include 2755 am__quote= 2756 _am_result=GNU 2757fi 2758# Now try BSD make style include. 2759if test "$am__include" = "#"; then 2760 echo '.include "confinc"' > confmf 2761 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2762 am__include=.include 2763 am__quote="\"" 2764 _am_result=BSD 2765 fi 2766fi 2767 2768 2769{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 2770$as_echo "$_am_result" >&6; } 2771rm -f confinc confmf 2772 2773# Check whether --enable-dependency-tracking was given. 2774if test "${enable_dependency_tracking+set}" = set; then 2775 enableval=$enable_dependency_tracking; 2776fi 2777 2778if test "x$enable_dependency_tracking" != xno; then 2779 am_depcomp="$ac_aux_dir/depcomp" 2780 AMDEPBACKSLASH='\' 2781fi 2782 if test "x$enable_dependency_tracking" != xno; then 2783 AMDEP_TRUE= 2784 AMDEP_FALSE='#' 2785else 2786 AMDEP_TRUE='#' 2787 AMDEP_FALSE= 2788fi 2789 2790 2791ac_ext=c 2792ac_cpp='$CPP $CPPFLAGS' 2793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2795ac_compiler_gnu=$ac_cv_c_compiler_gnu 2796if test -n "$ac_tool_prefix"; then 2797 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2798set dummy ${ac_tool_prefix}gcc; ac_word=$2 2799{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2800$as_echo_n "checking for $ac_word... " >&6; } 2801if test "${ac_cv_prog_CC+set}" = set; then 2802 $as_echo_n "(cached) " >&6 2803else 2804 if test -n "$CC"; then 2805 ac_cv_prog_CC="$CC" # Let the user override the test. 2806else 2807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2808for as_dir in $PATH 2809do 2810 IFS=$as_save_IFS 2811 test -z "$as_dir" && as_dir=. 2812 for ac_exec_ext in '' $ac_executable_extensions; do 2813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2814 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2815 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2816 break 2 2817 fi 2818done 2819done 2820IFS=$as_save_IFS 2821 2822fi 2823fi 2824CC=$ac_cv_prog_CC 2825if test -n "$CC"; then 2826 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2827$as_echo "$CC" >&6; } 2828else 2829 { $as_echo "$as_me:$LINENO: result: no" >&5 2830$as_echo "no" >&6; } 2831fi 2832 2833 2834fi 2835if test -z "$ac_cv_prog_CC"; then 2836 ac_ct_CC=$CC 2837 # Extract the first word of "gcc", so it can be a program name with args. 2838set dummy gcc; ac_word=$2 2839{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2840$as_echo_n "checking for $ac_word... " >&6; } 2841if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2842 $as_echo_n "(cached) " >&6 2843else 2844 if test -n "$ac_ct_CC"; then 2845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2846else 2847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2848for as_dir in $PATH 2849do 2850 IFS=$as_save_IFS 2851 test -z "$as_dir" && as_dir=. 2852 for ac_exec_ext in '' $ac_executable_extensions; do 2853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2854 ac_cv_prog_ac_ct_CC="gcc" 2855 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2856 break 2 2857 fi 2858done 2859done 2860IFS=$as_save_IFS 2861 2862fi 2863fi 2864ac_ct_CC=$ac_cv_prog_ac_ct_CC 2865if test -n "$ac_ct_CC"; then 2866 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2867$as_echo "$ac_ct_CC" >&6; } 2868else 2869 { $as_echo "$as_me:$LINENO: result: no" >&5 2870$as_echo "no" >&6; } 2871fi 2872 2873 if test "x$ac_ct_CC" = x; then 2874 CC="" 2875 else 2876 case $cross_compiling:$ac_tool_warned in 2877yes:) 2878{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2880ac_tool_warned=yes ;; 2881esac 2882 CC=$ac_ct_CC 2883 fi 2884else 2885 CC="$ac_cv_prog_CC" 2886fi 2887 2888if test -z "$CC"; then 2889 if test -n "$ac_tool_prefix"; then 2890 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2891set dummy ${ac_tool_prefix}cc; ac_word=$2 2892{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2893$as_echo_n "checking for $ac_word... " >&6; } 2894if test "${ac_cv_prog_CC+set}" = set; then 2895 $as_echo_n "(cached) " >&6 2896else 2897 if test -n "$CC"; then 2898 ac_cv_prog_CC="$CC" # Let the user override the test. 2899else 2900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2901for as_dir in $PATH 2902do 2903 IFS=$as_save_IFS 2904 test -z "$as_dir" && as_dir=. 2905 for ac_exec_ext in '' $ac_executable_extensions; do 2906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2907 ac_cv_prog_CC="${ac_tool_prefix}cc" 2908 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2909 break 2 2910 fi 2911done 2912done 2913IFS=$as_save_IFS 2914 2915fi 2916fi 2917CC=$ac_cv_prog_CC 2918if test -n "$CC"; then 2919 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2920$as_echo "$CC" >&6; } 2921else 2922 { $as_echo "$as_me:$LINENO: result: no" >&5 2923$as_echo "no" >&6; } 2924fi 2925 2926 2927 fi 2928fi 2929if test -z "$CC"; then 2930 # Extract the first word of "cc", so it can be a program name with args. 2931set dummy cc; ac_word=$2 2932{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2933$as_echo_n "checking for $ac_word... " >&6; } 2934if test "${ac_cv_prog_CC+set}" = set; then 2935 $as_echo_n "(cached) " >&6 2936else 2937 if test -n "$CC"; then 2938 ac_cv_prog_CC="$CC" # Let the user override the test. 2939else 2940 ac_prog_rejected=no 2941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2942for as_dir in $PATH 2943do 2944 IFS=$as_save_IFS 2945 test -z "$as_dir" && as_dir=. 2946 for ac_exec_ext in '' $ac_executable_extensions; do 2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2948 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2949 ac_prog_rejected=yes 2950 continue 2951 fi 2952 ac_cv_prog_CC="cc" 2953 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2954 break 2 2955 fi 2956done 2957done 2958IFS=$as_save_IFS 2959 2960if test $ac_prog_rejected = yes; then 2961 # We found a bogon in the path, so make sure we never use it. 2962 set dummy $ac_cv_prog_CC 2963 shift 2964 if test $# != 0; then 2965 # We chose a different compiler from the bogus one. 2966 # However, it has the same basename, so the bogon will be chosen 2967 # first if we set CC to just the basename; use the full file name. 2968 shift 2969 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2970 fi 2971fi 2972fi 2973fi 2974CC=$ac_cv_prog_CC 2975if test -n "$CC"; then 2976 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2977$as_echo "$CC" >&6; } 2978else 2979 { $as_echo "$as_me:$LINENO: result: no" >&5 2980$as_echo "no" >&6; } 2981fi 2982 2983 2984fi 2985if test -z "$CC"; then 2986 if test -n "$ac_tool_prefix"; then 2987 for ac_prog in cl.exe 2988 do 2989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2990set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2991{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2992$as_echo_n "checking for $ac_word... " >&6; } 2993if test "${ac_cv_prog_CC+set}" = set; then 2994 $as_echo_n "(cached) " >&6 2995else 2996 if test -n "$CC"; then 2997 ac_cv_prog_CC="$CC" # Let the user override the test. 2998else 2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3000for as_dir in $PATH 3001do 3002 IFS=$as_save_IFS 3003 test -z "$as_dir" && as_dir=. 3004 for ac_exec_ext in '' $ac_executable_extensions; do 3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3006 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3007 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3008 break 2 3009 fi 3010done 3011done 3012IFS=$as_save_IFS 3013 3014fi 3015fi 3016CC=$ac_cv_prog_CC 3017if test -n "$CC"; then 3018 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3019$as_echo "$CC" >&6; } 3020else 3021 { $as_echo "$as_me:$LINENO: result: no" >&5 3022$as_echo "no" >&6; } 3023fi 3024 3025 3026 test -n "$CC" && break 3027 done 3028fi 3029if test -z "$CC"; then 3030 ac_ct_CC=$CC 3031 for ac_prog in cl.exe 3032do 3033 # Extract the first word of "$ac_prog", so it can be a program name with args. 3034set dummy $ac_prog; ac_word=$2 3035{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3036$as_echo_n "checking for $ac_word... " >&6; } 3037if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3038 $as_echo_n "(cached) " >&6 3039else 3040 if test -n "$ac_ct_CC"; then 3041 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3042else 3043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3044for as_dir in $PATH 3045do 3046 IFS=$as_save_IFS 3047 test -z "$as_dir" && as_dir=. 3048 for ac_exec_ext in '' $ac_executable_extensions; do 3049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3050 ac_cv_prog_ac_ct_CC="$ac_prog" 3051 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3052 break 2 3053 fi 3054done 3055done 3056IFS=$as_save_IFS 3057 3058fi 3059fi 3060ac_ct_CC=$ac_cv_prog_ac_ct_CC 3061if test -n "$ac_ct_CC"; then 3062 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3063$as_echo "$ac_ct_CC" >&6; } 3064else 3065 { $as_echo "$as_me:$LINENO: result: no" >&5 3066$as_echo "no" >&6; } 3067fi 3068 3069 3070 test -n "$ac_ct_CC" && break 3071done 3072 3073 if test "x$ac_ct_CC" = x; then 3074 CC="" 3075 else 3076 case $cross_compiling:$ac_tool_warned in 3077yes:) 3078{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3080ac_tool_warned=yes ;; 3081esac 3082 CC=$ac_ct_CC 3083 fi 3084fi 3085 3086fi 3087 3088 3089test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3091{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3092See \`config.log' for more details." >&5 3093$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3094See \`config.log' for more details." >&2;} 3095 { (exit 1); exit 1; }; }; } 3096 3097# Provide some information about the compiler. 3098$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3099set X $ac_compile 3100ac_compiler=$2 3101{ (ac_try="$ac_compiler --version >&5" 3102case "(($ac_try" in 3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3104 *) ac_try_echo=$ac_try;; 3105esac 3106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3107$as_echo "$ac_try_echo") >&5 3108 (eval "$ac_compiler --version >&5") 2>&5 3109 ac_status=$? 3110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3111 (exit $ac_status); } 3112{ (ac_try="$ac_compiler -v >&5" 3113case "(($ac_try" in 3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3115 *) ac_try_echo=$ac_try;; 3116esac 3117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3118$as_echo "$ac_try_echo") >&5 3119 (eval "$ac_compiler -v >&5") 2>&5 3120 ac_status=$? 3121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3122 (exit $ac_status); } 3123{ (ac_try="$ac_compiler -V >&5" 3124case "(($ac_try" in 3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3126 *) ac_try_echo=$ac_try;; 3127esac 3128eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3129$as_echo "$ac_try_echo") >&5 3130 (eval "$ac_compiler -V >&5") 2>&5 3131 ac_status=$? 3132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3133 (exit $ac_status); } 3134 3135cat >conftest.$ac_ext <<_ACEOF 3136/* confdefs.h. */ 3137_ACEOF 3138cat confdefs.h >>conftest.$ac_ext 3139cat >>conftest.$ac_ext <<_ACEOF 3140/* end confdefs.h. */ 3141 3142int 3143main () 3144{ 3145 3146 ; 3147 return 0; 3148} 3149_ACEOF 3150ac_clean_files_save=$ac_clean_files 3151ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3152# Try to create an executable without -o first, disregard a.out. 3153# It will help us diagnose broken compilers, and finding out an intuition 3154# of exeext. 3155{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3156$as_echo_n "checking for C compiler default output file name... " >&6; } 3157ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3158 3159# The possible output files: 3160ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3161 3162ac_rmfiles= 3163for ac_file in $ac_files 3164do 3165 case $ac_file in 3166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3167 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3168 esac 3169done 3170rm -f $ac_rmfiles 3171 3172if { (ac_try="$ac_link_default" 3173case "(($ac_try" in 3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3175 *) ac_try_echo=$ac_try;; 3176esac 3177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3178$as_echo "$ac_try_echo") >&5 3179 (eval "$ac_link_default") 2>&5 3180 ac_status=$? 3181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3182 (exit $ac_status); }; then 3183 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3184# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3185# in a Makefile. We should not override ac_cv_exeext if it was cached, 3186# so that the user can short-circuit this test for compilers unknown to 3187# Autoconf. 3188for ac_file in $ac_files '' 3189do 3190 test -f "$ac_file" || continue 3191 case $ac_file in 3192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3193 ;; 3194 [ab].out ) 3195 # We found the default executable, but exeext='' is most 3196 # certainly right. 3197 break;; 3198 *.* ) 3199 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3200 then :; else 3201 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3202 fi 3203 # We set ac_cv_exeext here because the later test for it is not 3204 # safe: cross compilers may not add the suffix if given an `-o' 3205 # argument, so we may need to know it at that point already. 3206 # Even if this section looks crufty: it has the advantage of 3207 # actually working. 3208 break;; 3209 * ) 3210 break;; 3211 esac 3212done 3213test "$ac_cv_exeext" = no && ac_cv_exeext= 3214 3215else 3216 ac_file='' 3217fi 3218 3219{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3220$as_echo "$ac_file" >&6; } 3221if test -z "$ac_file"; then 3222 $as_echo "$as_me: failed program was:" >&5 3223sed 's/^/| /' conftest.$ac_ext >&5 3224 3225{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3227{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3228See \`config.log' for more details." >&5 3229$as_echo "$as_me: error: C compiler cannot create executables 3230See \`config.log' for more details." >&2;} 3231 { (exit 77); exit 77; }; }; } 3232fi 3233 3234ac_exeext=$ac_cv_exeext 3235 3236# Check that the compiler produces executables we can run. If not, either 3237# the compiler is broken, or we cross compile. 3238{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3239$as_echo_n "checking whether the C compiler works... " >&6; } 3240# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3241# If not cross compiling, check that we can run a simple program. 3242if test "$cross_compiling" != yes; then 3243 if { ac_try='./$ac_file' 3244 { (case "(($ac_try" in 3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3246 *) ac_try_echo=$ac_try;; 3247esac 3248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3249$as_echo "$ac_try_echo") >&5 3250 (eval "$ac_try") 2>&5 3251 ac_status=$? 3252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3253 (exit $ac_status); }; }; then 3254 cross_compiling=no 3255 else 3256 if test "$cross_compiling" = maybe; then 3257 cross_compiling=yes 3258 else 3259 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3260$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3261{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3262If you meant to cross compile, use \`--host'. 3263See \`config.log' for more details." >&5 3264$as_echo "$as_me: error: cannot run C compiled programs. 3265If you meant to cross compile, use \`--host'. 3266See \`config.log' for more details." >&2;} 3267 { (exit 1); exit 1; }; }; } 3268 fi 3269 fi 3270fi 3271{ $as_echo "$as_me:$LINENO: result: yes" >&5 3272$as_echo "yes" >&6; } 3273 3274rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3275ac_clean_files=$ac_clean_files_save 3276# Check that the compiler produces executables we can run. If not, either 3277# the compiler is broken, or we cross compile. 3278{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3279$as_echo_n "checking whether we are cross compiling... " >&6; } 3280{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3281$as_echo "$cross_compiling" >&6; } 3282 3283{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3284$as_echo_n "checking for suffix of executables... " >&6; } 3285if { (ac_try="$ac_link" 3286case "(($ac_try" in 3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3288 *) ac_try_echo=$ac_try;; 3289esac 3290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3291$as_echo "$ac_try_echo") >&5 3292 (eval "$ac_link") 2>&5 3293 ac_status=$? 3294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3295 (exit $ac_status); }; then 3296 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3297# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3298# work properly (i.e., refer to `conftest.exe'), while it won't with 3299# `rm'. 3300for ac_file in conftest.exe conftest conftest.*; do 3301 test -f "$ac_file" || continue 3302 case $ac_file in 3303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3304 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3305 break;; 3306 * ) break;; 3307 esac 3308done 3309else 3310 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3312{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3313See \`config.log' for more details." >&5 3314$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3315See \`config.log' for more details." >&2;} 3316 { (exit 1); exit 1; }; }; } 3317fi 3318 3319rm -f conftest$ac_cv_exeext 3320{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3321$as_echo "$ac_cv_exeext" >&6; } 3322 3323rm -f conftest.$ac_ext 3324EXEEXT=$ac_cv_exeext 3325ac_exeext=$EXEEXT 3326{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3327$as_echo_n "checking for suffix of object files... " >&6; } 3328if test "${ac_cv_objext+set}" = set; then 3329 $as_echo_n "(cached) " >&6 3330else 3331 cat >conftest.$ac_ext <<_ACEOF 3332/* confdefs.h. */ 3333_ACEOF 3334cat confdefs.h >>conftest.$ac_ext 3335cat >>conftest.$ac_ext <<_ACEOF 3336/* end confdefs.h. */ 3337 3338int 3339main () 3340{ 3341 3342 ; 3343 return 0; 3344} 3345_ACEOF 3346rm -f conftest.o conftest.obj 3347if { (ac_try="$ac_compile" 3348case "(($ac_try" in 3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3350 *) ac_try_echo=$ac_try;; 3351esac 3352eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3353$as_echo "$ac_try_echo") >&5 3354 (eval "$ac_compile") 2>&5 3355 ac_status=$? 3356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3357 (exit $ac_status); }; then 3358 for ac_file in conftest.o conftest.obj conftest.*; do 3359 test -f "$ac_file" || continue; 3360 case $ac_file in 3361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3362 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3363 break;; 3364 esac 3365done 3366else 3367 $as_echo "$as_me: failed program was:" >&5 3368sed 's/^/| /' conftest.$ac_ext >&5 3369 3370{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3371$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3372{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3373See \`config.log' for more details." >&5 3374$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3375See \`config.log' for more details." >&2;} 3376 { (exit 1); exit 1; }; }; } 3377fi 3378 3379rm -f conftest.$ac_cv_objext conftest.$ac_ext 3380fi 3381{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3382$as_echo "$ac_cv_objext" >&6; } 3383OBJEXT=$ac_cv_objext 3384ac_objext=$OBJEXT 3385{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3386$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3387if test "${ac_cv_c_compiler_gnu+set}" = set; then 3388 $as_echo_n "(cached) " >&6 3389else 3390 cat >conftest.$ac_ext <<_ACEOF 3391/* confdefs.h. */ 3392_ACEOF 3393cat confdefs.h >>conftest.$ac_ext 3394cat >>conftest.$ac_ext <<_ACEOF 3395/* end confdefs.h. */ 3396 3397int 3398main () 3399{ 3400#ifndef __GNUC__ 3401 choke me 3402#endif 3403 3404 ; 3405 return 0; 3406} 3407_ACEOF 3408rm -f conftest.$ac_objext 3409if { (ac_try="$ac_compile" 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_compile") 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); } && { 3423 test -z "$ac_c_werror_flag" || 3424 test ! -s conftest.err 3425 } && test -s conftest.$ac_objext; then 3426 ac_compiler_gnu=yes 3427else 3428 $as_echo "$as_me: failed program was:" >&5 3429sed 's/^/| /' conftest.$ac_ext >&5 3430 3431 ac_compiler_gnu=no 3432fi 3433 3434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3435ac_cv_c_compiler_gnu=$ac_compiler_gnu 3436 3437fi 3438{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3439$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3440if test $ac_compiler_gnu = yes; then 3441 GCC=yes 3442else 3443 GCC= 3444fi 3445ac_test_CFLAGS=${CFLAGS+set} 3446ac_save_CFLAGS=$CFLAGS 3447{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3448$as_echo_n "checking whether $CC accepts -g... " >&6; } 3449if test "${ac_cv_prog_cc_g+set}" = set; then 3450 $as_echo_n "(cached) " >&6 3451else 3452 ac_save_c_werror_flag=$ac_c_werror_flag 3453 ac_c_werror_flag=yes 3454 ac_cv_prog_cc_g=no 3455 CFLAGS="-g" 3456 cat >conftest.$ac_ext <<_ACEOF 3457/* confdefs.h. */ 3458_ACEOF 3459cat confdefs.h >>conftest.$ac_ext 3460cat >>conftest.$ac_ext <<_ACEOF 3461/* end confdefs.h. */ 3462 3463int 3464main () 3465{ 3466 3467 ; 3468 return 0; 3469} 3470_ACEOF 3471rm -f conftest.$ac_objext 3472if { (ac_try="$ac_compile" 3473case "(($ac_try" in 3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3475 *) ac_try_echo=$ac_try;; 3476esac 3477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3478$as_echo "$ac_try_echo") >&5 3479 (eval "$ac_compile") 2>conftest.er1 3480 ac_status=$? 3481 grep -v '^ *+' conftest.er1 >conftest.err 3482 rm -f conftest.er1 3483 cat conftest.err >&5 3484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3485 (exit $ac_status); } && { 3486 test -z "$ac_c_werror_flag" || 3487 test ! -s conftest.err 3488 } && test -s conftest.$ac_objext; then 3489 ac_cv_prog_cc_g=yes 3490else 3491 $as_echo "$as_me: failed program was:" >&5 3492sed 's/^/| /' conftest.$ac_ext >&5 3493 3494 CFLAGS="" 3495 cat >conftest.$ac_ext <<_ACEOF 3496/* confdefs.h. */ 3497_ACEOF 3498cat confdefs.h >>conftest.$ac_ext 3499cat >>conftest.$ac_ext <<_ACEOF 3500/* end confdefs.h. */ 3501 3502int 3503main () 3504{ 3505 3506 ; 3507 return 0; 3508} 3509_ACEOF 3510rm -f conftest.$ac_objext 3511if { (ac_try="$ac_compile" 3512case "(($ac_try" in 3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3514 *) ac_try_echo=$ac_try;; 3515esac 3516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3517$as_echo "$ac_try_echo") >&5 3518 (eval "$ac_compile") 2>conftest.er1 3519 ac_status=$? 3520 grep -v '^ *+' conftest.er1 >conftest.err 3521 rm -f conftest.er1 3522 cat conftest.err >&5 3523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3524 (exit $ac_status); } && { 3525 test -z "$ac_c_werror_flag" || 3526 test ! -s conftest.err 3527 } && test -s conftest.$ac_objext; then 3528 : 3529else 3530 $as_echo "$as_me: failed program was:" >&5 3531sed 's/^/| /' conftest.$ac_ext >&5 3532 3533 ac_c_werror_flag=$ac_save_c_werror_flag 3534 CFLAGS="-g" 3535 cat >conftest.$ac_ext <<_ACEOF 3536/* confdefs.h. */ 3537_ACEOF 3538cat confdefs.h >>conftest.$ac_ext 3539cat >>conftest.$ac_ext <<_ACEOF 3540/* end confdefs.h. */ 3541 3542int 3543main () 3544{ 3545 3546 ; 3547 return 0; 3548} 3549_ACEOF 3550rm -f conftest.$ac_objext 3551if { (ac_try="$ac_compile" 3552case "(($ac_try" in 3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3554 *) ac_try_echo=$ac_try;; 3555esac 3556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3557$as_echo "$ac_try_echo") >&5 3558 (eval "$ac_compile") 2>conftest.er1 3559 ac_status=$? 3560 grep -v '^ *+' conftest.er1 >conftest.err 3561 rm -f conftest.er1 3562 cat conftest.err >&5 3563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3564 (exit $ac_status); } && { 3565 test -z "$ac_c_werror_flag" || 3566 test ! -s conftest.err 3567 } && test -s conftest.$ac_objext; then 3568 ac_cv_prog_cc_g=yes 3569else 3570 $as_echo "$as_me: failed program was:" >&5 3571sed 's/^/| /' conftest.$ac_ext >&5 3572 3573 3574fi 3575 3576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3577fi 3578 3579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3580fi 3581 3582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3583 ac_c_werror_flag=$ac_save_c_werror_flag 3584fi 3585{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3586$as_echo "$ac_cv_prog_cc_g" >&6; } 3587if test "$ac_test_CFLAGS" = set; then 3588 CFLAGS=$ac_save_CFLAGS 3589elif test $ac_cv_prog_cc_g = yes; then 3590 if test "$GCC" = yes; then 3591 CFLAGS="-g -O2" 3592 else 3593 CFLAGS="-g" 3594 fi 3595else 3596 if test "$GCC" = yes; then 3597 CFLAGS="-O2" 3598 else 3599 CFLAGS= 3600 fi 3601fi 3602{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3603$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3604if test "${ac_cv_prog_cc_c89+set}" = set; then 3605 $as_echo_n "(cached) " >&6 3606else 3607 ac_cv_prog_cc_c89=no 3608ac_save_CC=$CC 3609cat >conftest.$ac_ext <<_ACEOF 3610/* confdefs.h. */ 3611_ACEOF 3612cat confdefs.h >>conftest.$ac_ext 3613cat >>conftest.$ac_ext <<_ACEOF 3614/* end confdefs.h. */ 3615#include <stdarg.h> 3616#include <stdio.h> 3617#include <sys/types.h> 3618#include <sys/stat.h> 3619/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3620struct buf { int x; }; 3621FILE * (*rcsopen) (struct buf *, struct stat *, int); 3622static char *e (p, i) 3623 char **p; 3624 int i; 3625{ 3626 return p[i]; 3627} 3628static char *f (char * (*g) (char **, int), char **p, ...) 3629{ 3630 char *s; 3631 va_list v; 3632 va_start (v,p); 3633 s = g (p, va_arg (v,int)); 3634 va_end (v); 3635 return s; 3636} 3637 3638/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3639 function prototypes and stuff, but not '\xHH' hex character constants. 3640 These don't provoke an error unfortunately, instead are silently treated 3641 as 'x'. The following induces an error, until -std is added to get 3642 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3643 array size at least. It's necessary to write '\x00'==0 to get something 3644 that's true only with -std. */ 3645int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3646 3647/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3648 inside strings and character constants. */ 3649#define FOO(x) 'x' 3650int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3651 3652int test (int i, double x); 3653struct s1 {int (*f) (int a);}; 3654struct s2 {int (*f) (double a);}; 3655int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3656int argc; 3657char **argv; 3658int 3659main () 3660{ 3661return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3662 ; 3663 return 0; 3664} 3665_ACEOF 3666for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3667 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3668do 3669 CC="$ac_save_CC $ac_arg" 3670 rm -f conftest.$ac_objext 3671if { (ac_try="$ac_compile" 3672case "(($ac_try" in 3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3674 *) ac_try_echo=$ac_try;; 3675esac 3676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3677$as_echo "$ac_try_echo") >&5 3678 (eval "$ac_compile") 2>conftest.er1 3679 ac_status=$? 3680 grep -v '^ *+' conftest.er1 >conftest.err 3681 rm -f conftest.er1 3682 cat conftest.err >&5 3683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3684 (exit $ac_status); } && { 3685 test -z "$ac_c_werror_flag" || 3686 test ! -s conftest.err 3687 } && test -s conftest.$ac_objext; then 3688 ac_cv_prog_cc_c89=$ac_arg 3689else 3690 $as_echo "$as_me: failed program was:" >&5 3691sed 's/^/| /' conftest.$ac_ext >&5 3692 3693 3694fi 3695 3696rm -f core conftest.err conftest.$ac_objext 3697 test "x$ac_cv_prog_cc_c89" != "xno" && break 3698done 3699rm -f conftest.$ac_ext 3700CC=$ac_save_CC 3701 3702fi 3703# AC_CACHE_VAL 3704case "x$ac_cv_prog_cc_c89" in 3705 x) 3706 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3707$as_echo "none needed" >&6; } ;; 3708 xno) 3709 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3710$as_echo "unsupported" >&6; } ;; 3711 *) 3712 CC="$CC $ac_cv_prog_cc_c89" 3713 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3714$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3715esac 3716 3717 3718ac_ext=c 3719ac_cpp='$CPP $CPPFLAGS' 3720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3722ac_compiler_gnu=$ac_cv_c_compiler_gnu 3723 3724depcc="$CC" am_compiler_list= 3725 3726{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3727$as_echo_n "checking dependency style of $depcc... " >&6; } 3728if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3729 $as_echo_n "(cached) " >&6 3730else 3731 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3732 # We make a subdir and do the tests there. Otherwise we can end up 3733 # making bogus files that we don't know about and never remove. For 3734 # instance it was reported that on HP-UX the gcc test will end up 3735 # making a dummy file named `D' -- because `-MD' means `put the output 3736 # in D'. 3737 mkdir conftest.dir 3738 # Copy depcomp to subdir because otherwise we won't find it if we're 3739 # using a relative directory. 3740 cp "$am_depcomp" conftest.dir 3741 cd conftest.dir 3742 # We will build objects and dependencies in a subdirectory because 3743 # it helps to detect inapplicable dependency modes. For instance 3744 # both Tru64's cc and ICC support -MD to output dependencies as a 3745 # side effect of compilation, but ICC will put the dependencies in 3746 # the current directory while Tru64 will put them in the object 3747 # directory. 3748 mkdir sub 3749 3750 am_cv_CC_dependencies_compiler_type=none 3751 if test "$am_compiler_list" = ""; then 3752 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3753 fi 3754 for depmode in $am_compiler_list; do 3755 # Setup a source with many dependencies, because some compilers 3756 # like to wrap large dependency lists on column 80 (with \), and 3757 # we should not choose a depcomp mode which is confused by this. 3758 # 3759 # We need to recreate these files for each test, as the compiler may 3760 # overwrite some of them when testing with obscure command lines. 3761 # This happens at least with the AIX C compiler. 3762 : > sub/conftest.c 3763 for i in 1 2 3 4 5 6; do 3764 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3765 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3766 # Solaris 8's {/usr,}/bin/sh. 3767 touch sub/conftst$i.h 3768 done 3769 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3770 3771 case $depmode in 3772 nosideeffect) 3773 # after this tag, mechanisms are not by side-effect, so they'll 3774 # only be used when explicitly requested 3775 if test "x$enable_dependency_tracking" = xyes; then 3776 continue 3777 else 3778 break 3779 fi 3780 ;; 3781 none) break ;; 3782 esac 3783 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3784 # mode. It turns out that the SunPro C++ compiler does not properly 3785 # handle `-M -o', and we need to detect this. 3786 if depmode=$depmode \ 3787 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3788 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3789 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3790 >/dev/null 2>conftest.err && 3791 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3792 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3793 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3794 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3795 # icc doesn't choke on unknown options, it will just issue warnings 3796 # or remarks (even with -Werror). So we grep stderr for any message 3797 # that says an option was ignored or not supported. 3798 # When given -MP, icc 7.0 and 7.1 complain thusly: 3799 # icc: Command line warning: ignoring option '-M'; no argument required 3800 # The diagnosis changed in icc 8.0: 3801 # icc: Command line remark: option '-MP' not supported 3802 if (grep 'ignoring option' conftest.err || 3803 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3804 am_cv_CC_dependencies_compiler_type=$depmode 3805 break 3806 fi 3807 fi 3808 done 3809 3810 cd .. 3811 rm -rf conftest.dir 3812else 3813 am_cv_CC_dependencies_compiler_type=none 3814fi 3815 3816fi 3817{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3818$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3819CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3820 3821 if 3822 test "x$enable_dependency_tracking" != xno \ 3823 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3824 am__fastdepCC_TRUE= 3825 am__fastdepCC_FALSE='#' 3826else 3827 am__fastdepCC_TRUE='#' 3828 am__fastdepCC_FALSE= 3829fi 3830 3831 3832{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3833$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3834if test "${ac_cv_path_SED+set}" = set; then 3835 $as_echo_n "(cached) " >&6 3836else 3837 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3838 for ac_i in 1 2 3 4 5 6 7; do 3839 ac_script="$ac_script$as_nl$ac_script" 3840 done 3841 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3842 $as_unset ac_script || ac_script= 3843 if test -z "$SED"; then 3844 ac_path_SED_found=false 3845 # Loop through the user's path and test for each of PROGNAME-LIST 3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3847for as_dir in $PATH 3848do 3849 IFS=$as_save_IFS 3850 test -z "$as_dir" && as_dir=. 3851 for ac_prog in sed gsed; do 3852 for ac_exec_ext in '' $ac_executable_extensions; do 3853 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3854 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3855# Check for GNU ac_path_SED and select it if it is found. 3856 # Check for GNU $ac_path_SED 3857case `"$ac_path_SED" --version 2>&1` in 3858*GNU*) 3859 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3860*) 3861 ac_count=0 3862 $as_echo_n 0123456789 >"conftest.in" 3863 while : 3864 do 3865 cat "conftest.in" "conftest.in" >"conftest.tmp" 3866 mv "conftest.tmp" "conftest.in" 3867 cp "conftest.in" "conftest.nl" 3868 $as_echo '' >> "conftest.nl" 3869 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3870 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3871 ac_count=`expr $ac_count + 1` 3872 if test $ac_count -gt ${ac_path_SED_max-0}; then 3873 # Best one so far, save it but keep looking for a better one 3874 ac_cv_path_SED="$ac_path_SED" 3875 ac_path_SED_max=$ac_count 3876 fi 3877 # 10*(2^10) chars as input seems more than enough 3878 test $ac_count -gt 10 && break 3879 done 3880 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3881esac 3882 3883 $ac_path_SED_found && break 3 3884 done 3885 done 3886done 3887IFS=$as_save_IFS 3888 if test -z "$ac_cv_path_SED"; then 3889 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 3890$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 3891 { (exit 1); exit 1; }; } 3892 fi 3893else 3894 ac_cv_path_SED=$SED 3895fi 3896 3897fi 3898{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 3899$as_echo "$ac_cv_path_SED" >&6; } 3900 SED="$ac_cv_path_SED" 3901 rm -f conftest.sed 3902 3903test -z "$SED" && SED=sed 3904Xsed="$SED -e 1s/^X//" 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3917$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3918if test "${ac_cv_path_GREP+set}" = set; then 3919 $as_echo_n "(cached) " >&6 3920else 3921 if test -z "$GREP"; then 3922 ac_path_GREP_found=false 3923 # Loop through the user's path and test for each of PROGNAME-LIST 3924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3925for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3926do 3927 IFS=$as_save_IFS 3928 test -z "$as_dir" && as_dir=. 3929 for ac_prog in grep ggrep; do 3930 for ac_exec_ext in '' $ac_executable_extensions; do 3931 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3932 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3933# Check for GNU ac_path_GREP and select it if it is found. 3934 # Check for GNU $ac_path_GREP 3935case `"$ac_path_GREP" --version 2>&1` in 3936*GNU*) 3937 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3938*) 3939 ac_count=0 3940 $as_echo_n 0123456789 >"conftest.in" 3941 while : 3942 do 3943 cat "conftest.in" "conftest.in" >"conftest.tmp" 3944 mv "conftest.tmp" "conftest.in" 3945 cp "conftest.in" "conftest.nl" 3946 $as_echo 'GREP' >> "conftest.nl" 3947 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3948 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3949 ac_count=`expr $ac_count + 1` 3950 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3951 # Best one so far, save it but keep looking for a better one 3952 ac_cv_path_GREP="$ac_path_GREP" 3953 ac_path_GREP_max=$ac_count 3954 fi 3955 # 10*(2^10) chars as input seems more than enough 3956 test $ac_count -gt 10 && break 3957 done 3958 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3959esac 3960 3961 $ac_path_GREP_found && break 3 3962 done 3963 done 3964done 3965IFS=$as_save_IFS 3966 if test -z "$ac_cv_path_GREP"; then 3967 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3968$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3969 { (exit 1); exit 1; }; } 3970 fi 3971else 3972 ac_cv_path_GREP=$GREP 3973fi 3974 3975fi 3976{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3977$as_echo "$ac_cv_path_GREP" >&6; } 3978 GREP="$ac_cv_path_GREP" 3979 3980 3981{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3982$as_echo_n "checking for egrep... " >&6; } 3983if test "${ac_cv_path_EGREP+set}" = set; then 3984 $as_echo_n "(cached) " >&6 3985else 3986 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3987 then ac_cv_path_EGREP="$GREP -E" 3988 else 3989 if test -z "$EGREP"; then 3990 ac_path_EGREP_found=false 3991 # Loop through the user's path and test for each of PROGNAME-LIST 3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3993for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3994do 3995 IFS=$as_save_IFS 3996 test -z "$as_dir" && as_dir=. 3997 for ac_prog in egrep; do 3998 for ac_exec_ext in '' $ac_executable_extensions; do 3999 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4000 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4001# Check for GNU ac_path_EGREP and select it if it is found. 4002 # Check for GNU $ac_path_EGREP 4003case `"$ac_path_EGREP" --version 2>&1` in 4004*GNU*) 4005 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4006*) 4007 ac_count=0 4008 $as_echo_n 0123456789 >"conftest.in" 4009 while : 4010 do 4011 cat "conftest.in" "conftest.in" >"conftest.tmp" 4012 mv "conftest.tmp" "conftest.in" 4013 cp "conftest.in" "conftest.nl" 4014 $as_echo 'EGREP' >> "conftest.nl" 4015 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4016 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4017 ac_count=`expr $ac_count + 1` 4018 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4019 # Best one so far, save it but keep looking for a better one 4020 ac_cv_path_EGREP="$ac_path_EGREP" 4021 ac_path_EGREP_max=$ac_count 4022 fi 4023 # 10*(2^10) chars as input seems more than enough 4024 test $ac_count -gt 10 && break 4025 done 4026 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4027esac 4028 4029 $ac_path_EGREP_found && break 3 4030 done 4031 done 4032done 4033IFS=$as_save_IFS 4034 if test -z "$ac_cv_path_EGREP"; then 4035 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4036$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4037 { (exit 1); exit 1; }; } 4038 fi 4039else 4040 ac_cv_path_EGREP=$EGREP 4041fi 4042 4043 fi 4044fi 4045{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4046$as_echo "$ac_cv_path_EGREP" >&6; } 4047 EGREP="$ac_cv_path_EGREP" 4048 4049 4050{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 4051$as_echo_n "checking for fgrep... " >&6; } 4052if test "${ac_cv_path_FGREP+set}" = set; then 4053 $as_echo_n "(cached) " >&6 4054else 4055 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4056 then ac_cv_path_FGREP="$GREP -F" 4057 else 4058 if test -z "$FGREP"; then 4059 ac_path_FGREP_found=false 4060 # Loop through the user's path and test for each of PROGNAME-LIST 4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4062for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4063do 4064 IFS=$as_save_IFS 4065 test -z "$as_dir" && as_dir=. 4066 for ac_prog in fgrep; do 4067 for ac_exec_ext in '' $ac_executable_extensions; do 4068 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4069 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4070# Check for GNU ac_path_FGREP and select it if it is found. 4071 # Check for GNU $ac_path_FGREP 4072case `"$ac_path_FGREP" --version 2>&1` in 4073*GNU*) 4074 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4075*) 4076 ac_count=0 4077 $as_echo_n 0123456789 >"conftest.in" 4078 while : 4079 do 4080 cat "conftest.in" "conftest.in" >"conftest.tmp" 4081 mv "conftest.tmp" "conftest.in" 4082 cp "conftest.in" "conftest.nl" 4083 $as_echo 'FGREP' >> "conftest.nl" 4084 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4085 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4086 ac_count=`expr $ac_count + 1` 4087 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4088 # Best one so far, save it but keep looking for a better one 4089 ac_cv_path_FGREP="$ac_path_FGREP" 4090 ac_path_FGREP_max=$ac_count 4091 fi 4092 # 10*(2^10) chars as input seems more than enough 4093 test $ac_count -gt 10 && break 4094 done 4095 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4096esac 4097 4098 $ac_path_FGREP_found && break 3 4099 done 4100 done 4101done 4102IFS=$as_save_IFS 4103 if test -z "$ac_cv_path_FGREP"; then 4104 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4105$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4106 { (exit 1); exit 1; }; } 4107 fi 4108else 4109 ac_cv_path_FGREP=$FGREP 4110fi 4111 4112 fi 4113fi 4114{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4115$as_echo "$ac_cv_path_FGREP" >&6; } 4116 FGREP="$ac_cv_path_FGREP" 4117 4118 4119test -z "$GREP" && GREP=grep 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139# Check whether --with-gnu-ld was given. 4140if test "${with_gnu_ld+set}" = set; then 4141 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4142else 4143 with_gnu_ld=no 4144fi 4145 4146ac_prog=ld 4147if test "$GCC" = yes; then 4148 # Check if gcc -print-prog-name=ld gives a path. 4149 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4150$as_echo_n "checking for ld used by $CC... " >&6; } 4151 case $host in 4152 *-*-mingw*) 4153 # gcc leaves a trailing carriage return which upsets mingw 4154 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4155 *) 4156 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4157 esac 4158 case $ac_prog in 4159 # Accept absolute paths. 4160 [\\/]* | ?:[\\/]*) 4161 re_direlt='/[^/][^/]*/\.\./' 4162 # Canonicalize the pathname of ld 4163 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4164 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4165 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4166 done 4167 test -z "$LD" && LD="$ac_prog" 4168 ;; 4169 "") 4170 # If it fails, then pretend we aren't using GCC. 4171 ac_prog=ld 4172 ;; 4173 *) 4174 # If it is relative, then search for the first ld in PATH. 4175 with_gnu_ld=unknown 4176 ;; 4177 esac 4178elif test "$with_gnu_ld" = yes; then 4179 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4180$as_echo_n "checking for GNU ld... " >&6; } 4181else 4182 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4183$as_echo_n "checking for non-GNU ld... " >&6; } 4184fi 4185if test "${lt_cv_path_LD+set}" = set; then 4186 $as_echo_n "(cached) " >&6 4187else 4188 if test -z "$LD"; then 4189 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4190 for ac_dir in $PATH; do 4191 IFS="$lt_save_ifs" 4192 test -z "$ac_dir" && ac_dir=. 4193 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4194 lt_cv_path_LD="$ac_dir/$ac_prog" 4195 # Check to see if the program is GNU ld. I'd rather use --version, 4196 # but apparently some variants of GNU ld only accept -v. 4197 # Break only if it was the GNU/non-GNU ld that we prefer. 4198 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4199 *GNU* | *'with BFD'*) 4200 test "$with_gnu_ld" != no && break 4201 ;; 4202 *) 4203 test "$with_gnu_ld" != yes && break 4204 ;; 4205 esac 4206 fi 4207 done 4208 IFS="$lt_save_ifs" 4209else 4210 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4211fi 4212fi 4213 4214LD="$lt_cv_path_LD" 4215if test -n "$LD"; then 4216 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4217$as_echo "$LD" >&6; } 4218else 4219 { $as_echo "$as_me:$LINENO: result: no" >&5 4220$as_echo "no" >&6; } 4221fi 4222test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4223$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4224 { (exit 1); exit 1; }; } 4225{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4226$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4227if test "${lt_cv_prog_gnu_ld+set}" = set; then 4228 $as_echo_n "(cached) " >&6 4229else 4230 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4231case `$LD -v 2>&1 </dev/null` in 4232*GNU* | *'with BFD'*) 4233 lt_cv_prog_gnu_ld=yes 4234 ;; 4235*) 4236 lt_cv_prog_gnu_ld=no 4237 ;; 4238esac 4239fi 4240{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4241$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4242with_gnu_ld=$lt_cv_prog_gnu_ld 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4253$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4254if test "${lt_cv_path_NM+set}" = set; then 4255 $as_echo_n "(cached) " >&6 4256else 4257 if test -n "$NM"; then 4258 # Let the user override the test. 4259 lt_cv_path_NM="$NM" 4260else 4261 lt_nm_to_check="${ac_tool_prefix}nm" 4262 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4263 lt_nm_to_check="$lt_nm_to_check nm" 4264 fi 4265 for lt_tmp_nm in $lt_nm_to_check; do 4266 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4267 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4268 IFS="$lt_save_ifs" 4269 test -z "$ac_dir" && ac_dir=. 4270 tmp_nm="$ac_dir/$lt_tmp_nm" 4271 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4272 # Check to see if the nm accepts a BSD-compat flag. 4273 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4274 # nm: unknown option "B" ignored 4275 # Tru64's nm complains that /dev/null is an invalid object file 4276 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4277 */dev/null* | *'Invalid file or object type'*) 4278 lt_cv_path_NM="$tmp_nm -B" 4279 break 4280 ;; 4281 *) 4282 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4283 */dev/null*) 4284 lt_cv_path_NM="$tmp_nm -p" 4285 break 4286 ;; 4287 *) 4288 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4289 continue # so that we can try to find one that supports BSD flags 4290 ;; 4291 esac 4292 ;; 4293 esac 4294 fi 4295 done 4296 IFS="$lt_save_ifs" 4297 done 4298 : ${lt_cv_path_NM=no} 4299fi 4300fi 4301{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4302$as_echo "$lt_cv_path_NM" >&6; } 4303if test "$lt_cv_path_NM" != "no"; then 4304 NM="$lt_cv_path_NM" 4305else 4306 # Didn't find any BSD compatible name lister, look for dumpbin. 4307 if test -n "$ac_tool_prefix"; then 4308 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4309 do 4310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4311set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4312{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4313$as_echo_n "checking for $ac_word... " >&6; } 4314if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4315 $as_echo_n "(cached) " >&6 4316else 4317 if test -n "$DUMPBIN"; then 4318 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4319else 4320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4321for as_dir in $PATH 4322do 4323 IFS=$as_save_IFS 4324 test -z "$as_dir" && as_dir=. 4325 for ac_exec_ext in '' $ac_executable_extensions; do 4326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4327 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4328 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4329 break 2 4330 fi 4331done 4332done 4333IFS=$as_save_IFS 4334 4335fi 4336fi 4337DUMPBIN=$ac_cv_prog_DUMPBIN 4338if test -n "$DUMPBIN"; then 4339 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 4340$as_echo "$DUMPBIN" >&6; } 4341else 4342 { $as_echo "$as_me:$LINENO: result: no" >&5 4343$as_echo "no" >&6; } 4344fi 4345 4346 4347 test -n "$DUMPBIN" && break 4348 done 4349fi 4350if test -z "$DUMPBIN"; then 4351 ac_ct_DUMPBIN=$DUMPBIN 4352 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4353do 4354 # Extract the first word of "$ac_prog", so it can be a program name with args. 4355set dummy $ac_prog; ac_word=$2 4356{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4357$as_echo_n "checking for $ac_word... " >&6; } 4358if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 4359 $as_echo_n "(cached) " >&6 4360else 4361 if test -n "$ac_ct_DUMPBIN"; then 4362 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4363else 4364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4365for as_dir in $PATH 4366do 4367 IFS=$as_save_IFS 4368 test -z "$as_dir" && as_dir=. 4369 for ac_exec_ext in '' $ac_executable_extensions; do 4370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4371 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4372 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4373 break 2 4374 fi 4375done 4376done 4377IFS=$as_save_IFS 4378 4379fi 4380fi 4381ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4382if test -n "$ac_ct_DUMPBIN"; then 4383 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 4384$as_echo "$ac_ct_DUMPBIN" >&6; } 4385else 4386 { $as_echo "$as_me:$LINENO: result: no" >&5 4387$as_echo "no" >&6; } 4388fi 4389 4390 4391 test -n "$ac_ct_DUMPBIN" && break 4392done 4393 4394 if test "x$ac_ct_DUMPBIN" = x; then 4395 DUMPBIN=":" 4396 else 4397 case $cross_compiling:$ac_tool_warned in 4398yes:) 4399{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4401ac_tool_warned=yes ;; 4402esac 4403 DUMPBIN=$ac_ct_DUMPBIN 4404 fi 4405fi 4406 4407 4408 if test "$DUMPBIN" != ":"; then 4409 NM="$DUMPBIN" 4410 fi 4411fi 4412test -z "$NM" && NM=nm 4413 4414 4415 4416 4417 4418 4419{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 4420$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4421if test "${lt_cv_nm_interface+set}" = set; then 4422 $as_echo_n "(cached) " >&6 4423else 4424 lt_cv_nm_interface="BSD nm" 4425 echo "int some_variable = 0;" > conftest.$ac_ext 4426 (eval echo "\"\$as_me:4426: $ac_compile\"" >&5) 4427 (eval "$ac_compile" 2>conftest.err) 4428 cat conftest.err >&5 4429 (eval echo "\"\$as_me:4429: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4430 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4431 cat conftest.err >&5 4432 (eval echo "\"\$as_me:4432: output\"" >&5) 4433 cat conftest.out >&5 4434 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4435 lt_cv_nm_interface="MS dumpbin" 4436 fi 4437 rm -f conftest* 4438fi 4439{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 4440$as_echo "$lt_cv_nm_interface" >&6; } 4441 4442{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4443$as_echo_n "checking whether ln -s works... " >&6; } 4444LN_S=$as_ln_s 4445if test "$LN_S" = "ln -s"; then 4446 { $as_echo "$as_me:$LINENO: result: yes" >&5 4447$as_echo "yes" >&6; } 4448else 4449 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4450$as_echo "no, using $LN_S" >&6; } 4451fi 4452 4453# find the maximum length of command line arguments 4454{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4455$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4456if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4457 $as_echo_n "(cached) " >&6 4458else 4459 i=0 4460 teststring="ABCD" 4461 4462 case $build_os in 4463 msdosdjgpp*) 4464 # On DJGPP, this test can blow up pretty badly due to problems in libc 4465 # (any single argument exceeding 2000 bytes causes a buffer overrun 4466 # during glob expansion). Even if it were fixed, the result of this 4467 # check would be larger than it should be. 4468 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4469 ;; 4470 4471 gnu*) 4472 # Under GNU Hurd, this test is not required because there is 4473 # no limit to the length of command line arguments. 4474 # Libtool will interpret -1 as no limit whatsoever 4475 lt_cv_sys_max_cmd_len=-1; 4476 ;; 4477 4478 cygwin* | mingw* | cegcc*) 4479 # On Win9x/ME, this test blows up -- it succeeds, but takes 4480 # about 5 minutes as the teststring grows exponentially. 4481 # Worse, since 9x/ME are not pre-emptively multitasking, 4482 # you end up with a "frozen" computer, even though with patience 4483 # the test eventually succeeds (with a max line length of 256k). 4484 # Instead, let's just punt: use the minimum linelength reported by 4485 # all of the supported platforms: 8192 (on NT/2K/XP). 4486 lt_cv_sys_max_cmd_len=8192; 4487 ;; 4488 4489 amigaos*) 4490 # On AmigaOS with pdksh, this test takes hours, literally. 4491 # So we just punt and use a minimum line length of 8192. 4492 lt_cv_sys_max_cmd_len=8192; 4493 ;; 4494 4495 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4496 # This has been around since 386BSD, at least. Likely further. 4497 if test -x /sbin/sysctl; then 4498 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4499 elif test -x /usr/sbin/sysctl; then 4500 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4501 else 4502 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4503 fi 4504 # And add a safety zone 4505 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4506 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4507 ;; 4508 4509 interix*) 4510 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4511 lt_cv_sys_max_cmd_len=196608 4512 ;; 4513 4514 osf*) 4515 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4516 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4517 # nice to cause kernel panics so lets avoid the loop below. 4518 # First set a reasonable default. 4519 lt_cv_sys_max_cmd_len=16384 4520 # 4521 if test -x /sbin/sysconfig; then 4522 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4523 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4524 esac 4525 fi 4526 ;; 4527 sco3.2v5*) 4528 lt_cv_sys_max_cmd_len=102400 4529 ;; 4530 sysv5* | sco5v6* | sysv4.2uw2*) 4531 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4532 if test -n "$kargmax"; then 4533 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4534 else 4535 lt_cv_sys_max_cmd_len=32768 4536 fi 4537 ;; 4538 *) 4539 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4540 if test -n "$lt_cv_sys_max_cmd_len"; then 4541 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4542 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4543 else 4544 # Make teststring a little bigger before we do anything with it. 4545 # a 1K string should be a reasonable start. 4546 for i in 1 2 3 4 5 6 7 8 ; do 4547 teststring=$teststring$teststring 4548 done 4549 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4550 # If test is not a shell built-in, we'll probably end up computing a 4551 # maximum length that is only half of the actual maximum length, but 4552 # we can't tell. 4553 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4554 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4555 test $i != 17 # 1/2 MB should be enough 4556 do 4557 i=`expr $i + 1` 4558 teststring=$teststring$teststring 4559 done 4560 # Only check the string length outside the loop. 4561 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4562 teststring= 4563 # Add a significant safety factor because C++ compilers can tack on 4564 # massive amounts of additional arguments before passing them to the 4565 # linker. It appears as though 1/2 is a usable value. 4566 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4567 fi 4568 ;; 4569 esac 4570 4571fi 4572 4573if test -n $lt_cv_sys_max_cmd_len ; then 4574 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4575$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4576else 4577 { $as_echo "$as_me:$LINENO: result: none" >&5 4578$as_echo "none" >&6; } 4579fi 4580max_cmd_len=$lt_cv_sys_max_cmd_len 4581 4582 4583 4584 4585 4586 4587: ${CP="cp -f"} 4588: ${MV="mv -f"} 4589: ${RM="rm -f"} 4590 4591{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 4592$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4593# Try some XSI features 4594xsi_shell=no 4595( _lt_dummy="a/b/c" 4596 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4597 = c,a/b,, \ 4598 && eval 'test $(( 1 + 1 )) -eq 2 \ 4599 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4600 && xsi_shell=yes 4601{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 4602$as_echo "$xsi_shell" >&6; } 4603 4604 4605{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 4606$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4607lt_shell_append=no 4608( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4609 >/dev/null 2>&1 \ 4610 && lt_shell_append=yes 4611{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 4612$as_echo "$lt_shell_append" >&6; } 4613 4614 4615if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4616 lt_unset=unset 4617else 4618 lt_unset=false 4619fi 4620 4621 4622 4623 4624 4625# test EBCDIC or ASCII 4626case `echo X|tr X '\101'` in 4627 A) # ASCII based system 4628 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4629 lt_SP2NL='tr \040 \012' 4630 lt_NL2SP='tr \015\012 \040\040' 4631 ;; 4632 *) # EBCDIC based system 4633 lt_SP2NL='tr \100 \n' 4634 lt_NL2SP='tr \r\n \100\100' 4635 ;; 4636esac 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4647$as_echo_n "checking for $LD option to reload object files... " >&6; } 4648if test "${lt_cv_ld_reload_flag+set}" = set; then 4649 $as_echo_n "(cached) " >&6 4650else 4651 lt_cv_ld_reload_flag='-r' 4652fi 4653{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4654$as_echo "$lt_cv_ld_reload_flag" >&6; } 4655reload_flag=$lt_cv_ld_reload_flag 4656case $reload_flag in 4657"" | " "*) ;; 4658*) reload_flag=" $reload_flag" ;; 4659esac 4660reload_cmds='$LD$reload_flag -o $output$reload_objs' 4661case $host_os in 4662 darwin*) 4663 if test "$GCC" = yes; then 4664 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4665 else 4666 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4667 fi 4668 ;; 4669esac 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679if test -n "$ac_tool_prefix"; then 4680 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4681set dummy ${ac_tool_prefix}objdump; ac_word=$2 4682{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4683$as_echo_n "checking for $ac_word... " >&6; } 4684if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4685 $as_echo_n "(cached) " >&6 4686else 4687 if test -n "$OBJDUMP"; then 4688 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4689else 4690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4691for as_dir in $PATH 4692do 4693 IFS=$as_save_IFS 4694 test -z "$as_dir" && as_dir=. 4695 for ac_exec_ext in '' $ac_executable_extensions; do 4696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4697 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4698 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4699 break 2 4700 fi 4701done 4702done 4703IFS=$as_save_IFS 4704 4705fi 4706fi 4707OBJDUMP=$ac_cv_prog_OBJDUMP 4708if test -n "$OBJDUMP"; then 4709 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4710$as_echo "$OBJDUMP" >&6; } 4711else 4712 { $as_echo "$as_me:$LINENO: result: no" >&5 4713$as_echo "no" >&6; } 4714fi 4715 4716 4717fi 4718if test -z "$ac_cv_prog_OBJDUMP"; then 4719 ac_ct_OBJDUMP=$OBJDUMP 4720 # Extract the first word of "objdump", so it can be a program name with args. 4721set dummy objdump; ac_word=$2 4722{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4723$as_echo_n "checking for $ac_word... " >&6; } 4724if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4725 $as_echo_n "(cached) " >&6 4726else 4727 if test -n "$ac_ct_OBJDUMP"; then 4728 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4729else 4730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4731for as_dir in $PATH 4732do 4733 IFS=$as_save_IFS 4734 test -z "$as_dir" && as_dir=. 4735 for ac_exec_ext in '' $ac_executable_extensions; do 4736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4737 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4738 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4739 break 2 4740 fi 4741done 4742done 4743IFS=$as_save_IFS 4744 4745fi 4746fi 4747ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4748if test -n "$ac_ct_OBJDUMP"; then 4749 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4750$as_echo "$ac_ct_OBJDUMP" >&6; } 4751else 4752 { $as_echo "$as_me:$LINENO: result: no" >&5 4753$as_echo "no" >&6; } 4754fi 4755 4756 if test "x$ac_ct_OBJDUMP" = x; then 4757 OBJDUMP="false" 4758 else 4759 case $cross_compiling:$ac_tool_warned in 4760yes:) 4761{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4763ac_tool_warned=yes ;; 4764esac 4765 OBJDUMP=$ac_ct_OBJDUMP 4766 fi 4767else 4768 OBJDUMP="$ac_cv_prog_OBJDUMP" 4769fi 4770 4771test -z "$OBJDUMP" && OBJDUMP=objdump 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4782$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4783if test "${lt_cv_deplibs_check_method+set}" = set; then 4784 $as_echo_n "(cached) " >&6 4785else 4786 lt_cv_file_magic_cmd='$MAGIC_CMD' 4787lt_cv_file_magic_test_file= 4788lt_cv_deplibs_check_method='unknown' 4789# Need to set the preceding variable on all platforms that support 4790# interlibrary dependencies. 4791# 'none' -- dependencies not supported. 4792# `unknown' -- same as none, but documents that we really don't know. 4793# 'pass_all' -- all dependencies passed with no checks. 4794# 'test_compile' -- check by making test program. 4795# 'file_magic [[regex]]' -- check by looking for files in library path 4796# which responds to the $file_magic_cmd with a given extended regex. 4797# If you have `file' or equivalent on your system and you're not sure 4798# whether `pass_all' will *always* work, you probably want this one. 4799 4800case $host_os in 4801aix[4-9]*) 4802 lt_cv_deplibs_check_method=pass_all 4803 ;; 4804 4805beos*) 4806 lt_cv_deplibs_check_method=pass_all 4807 ;; 4808 4809bsdi[45]*) 4810 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4811 lt_cv_file_magic_cmd='/usr/bin/file -L' 4812 lt_cv_file_magic_test_file=/shlib/libc.so 4813 ;; 4814 4815cygwin*) 4816 # func_win32_libid is a shell function defined in ltmain.sh 4817 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4818 lt_cv_file_magic_cmd='func_win32_libid' 4819 ;; 4820 4821mingw* | pw32*) 4822 # Base MSYS/MinGW do not provide the 'file' command needed by 4823 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4824 # unless we find 'file', for example because we are cross-compiling. 4825 if ( file / ) >/dev/null 2>&1; then 4826 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4827 lt_cv_file_magic_cmd='func_win32_libid' 4828 else 4829 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4830 lt_cv_file_magic_cmd='$OBJDUMP -f' 4831 fi 4832 ;; 4833 4834cegcc) 4835 # use the weaker test based on 'objdump'. See mingw*. 4836 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4837 lt_cv_file_magic_cmd='$OBJDUMP -f' 4838 ;; 4839 4840darwin* | rhapsody*) 4841 lt_cv_deplibs_check_method=pass_all 4842 ;; 4843 4844freebsd* | dragonfly*) 4845 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4846 case $host_cpu in 4847 i*86 ) 4848 # Not sure whether the presence of OpenBSD here was a mistake. 4849 # Let's accept both of them until this is cleared up. 4850 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4851 lt_cv_file_magic_cmd=/usr/bin/file 4852 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4853 ;; 4854 esac 4855 else 4856 lt_cv_deplibs_check_method=pass_all 4857 fi 4858 ;; 4859 4860gnu*) 4861 lt_cv_deplibs_check_method=pass_all 4862 ;; 4863 4864hpux10.20* | hpux11*) 4865 lt_cv_file_magic_cmd=/usr/bin/file 4866 case $host_cpu in 4867 ia64*) 4868 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4869 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4870 ;; 4871 hppa*64*) 4872 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]' 4873 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4874 ;; 4875 *) 4876 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4877 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4878 ;; 4879 esac 4880 ;; 4881 4882interix[3-9]*) 4883 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4884 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4885 ;; 4886 4887irix5* | irix6* | nonstopux*) 4888 case $LD in 4889 *-32|*"-32 ") libmagic=32-bit;; 4890 *-n32|*"-n32 ") libmagic=N32;; 4891 *-64|*"-64 ") libmagic=64-bit;; 4892 *) libmagic=never-match;; 4893 esac 4894 lt_cv_deplibs_check_method=pass_all 4895 ;; 4896 4897# This must be Linux ELF. 4898linux* | k*bsd*-gnu) 4899 lt_cv_deplibs_check_method=pass_all 4900 ;; 4901 4902netbsd* | netbsdelf*-gnu) 4903 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4904 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4905 else 4906 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4907 fi 4908 ;; 4909 4910newos6*) 4911 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4912 lt_cv_file_magic_cmd=/usr/bin/file 4913 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4914 ;; 4915 4916*nto* | *qnx*) 4917 lt_cv_deplibs_check_method=pass_all 4918 ;; 4919 4920openbsd*) 4921 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4922 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4923 else 4924 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4925 fi 4926 ;; 4927 4928osf3* | osf4* | osf5*) 4929 lt_cv_deplibs_check_method=pass_all 4930 ;; 4931 4932rdos*) 4933 lt_cv_deplibs_check_method=pass_all 4934 ;; 4935 4936solaris*) 4937 lt_cv_deplibs_check_method=pass_all 4938 ;; 4939 4940sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4941 lt_cv_deplibs_check_method=pass_all 4942 ;; 4943 4944sysv4 | sysv4.3*) 4945 case $host_vendor in 4946 motorola) 4947 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]' 4948 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4949 ;; 4950 ncr) 4951 lt_cv_deplibs_check_method=pass_all 4952 ;; 4953 sequent) 4954 lt_cv_file_magic_cmd='/bin/file' 4955 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4956 ;; 4957 sni) 4958 lt_cv_file_magic_cmd='/bin/file' 4959 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4960 lt_cv_file_magic_test_file=/lib/libc.so 4961 ;; 4962 siemens) 4963 lt_cv_deplibs_check_method=pass_all 4964 ;; 4965 pc) 4966 lt_cv_deplibs_check_method=pass_all 4967 ;; 4968 esac 4969 ;; 4970 4971tpf*) 4972 lt_cv_deplibs_check_method=pass_all 4973 ;; 4974esac 4975 4976fi 4977{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4978$as_echo "$lt_cv_deplibs_check_method" >&6; } 4979file_magic_cmd=$lt_cv_file_magic_cmd 4980deplibs_check_method=$lt_cv_deplibs_check_method 4981test -z "$deplibs_check_method" && deplibs_check_method=unknown 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994if test -n "$ac_tool_prefix"; then 4995 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4996set dummy ${ac_tool_prefix}ar; ac_word=$2 4997{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4998$as_echo_n "checking for $ac_word... " >&6; } 4999if test "${ac_cv_prog_AR+set}" = set; then 5000 $as_echo_n "(cached) " >&6 5001else 5002 if test -n "$AR"; then 5003 ac_cv_prog_AR="$AR" # Let the user override the test. 5004else 5005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5006for as_dir in $PATH 5007do 5008 IFS=$as_save_IFS 5009 test -z "$as_dir" && as_dir=. 5010 for ac_exec_ext in '' $ac_executable_extensions; do 5011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5012 ac_cv_prog_AR="${ac_tool_prefix}ar" 5013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5014 break 2 5015 fi 5016done 5017done 5018IFS=$as_save_IFS 5019 5020fi 5021fi 5022AR=$ac_cv_prog_AR 5023if test -n "$AR"; then 5024 { $as_echo "$as_me:$LINENO: result: $AR" >&5 5025$as_echo "$AR" >&6; } 5026else 5027 { $as_echo "$as_me:$LINENO: result: no" >&5 5028$as_echo "no" >&6; } 5029fi 5030 5031 5032fi 5033if test -z "$ac_cv_prog_AR"; then 5034 ac_ct_AR=$AR 5035 # Extract the first word of "ar", so it can be a program name with args. 5036set dummy ar; ac_word=$2 5037{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5038$as_echo_n "checking for $ac_word... " >&6; } 5039if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5040 $as_echo_n "(cached) " >&6 5041else 5042 if test -n "$ac_ct_AR"; then 5043 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5044else 5045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5046for as_dir in $PATH 5047do 5048 IFS=$as_save_IFS 5049 test -z "$as_dir" && as_dir=. 5050 for ac_exec_ext in '' $ac_executable_extensions; do 5051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5052 ac_cv_prog_ac_ct_AR="ar" 5053 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5054 break 2 5055 fi 5056done 5057done 5058IFS=$as_save_IFS 5059 5060fi 5061fi 5062ac_ct_AR=$ac_cv_prog_ac_ct_AR 5063if test -n "$ac_ct_AR"; then 5064 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5065$as_echo "$ac_ct_AR" >&6; } 5066else 5067 { $as_echo "$as_me:$LINENO: result: no" >&5 5068$as_echo "no" >&6; } 5069fi 5070 5071 if test "x$ac_ct_AR" = x; then 5072 AR="false" 5073 else 5074 case $cross_compiling:$ac_tool_warned in 5075yes:) 5076{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5078ac_tool_warned=yes ;; 5079esac 5080 AR=$ac_ct_AR 5081 fi 5082else 5083 AR="$ac_cv_prog_AR" 5084fi 5085 5086test -z "$AR" && AR=ar 5087test -z "$AR_FLAGS" && AR_FLAGS=cru 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099if test -n "$ac_tool_prefix"; then 5100 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5101set dummy ${ac_tool_prefix}strip; ac_word=$2 5102{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5103$as_echo_n "checking for $ac_word... " >&6; } 5104if test "${ac_cv_prog_STRIP+set}" = set; then 5105 $as_echo_n "(cached) " >&6 5106else 5107 if test -n "$STRIP"; then 5108 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5109else 5110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5111for as_dir in $PATH 5112do 5113 IFS=$as_save_IFS 5114 test -z "$as_dir" && as_dir=. 5115 for ac_exec_ext in '' $ac_executable_extensions; do 5116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5117 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5118 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5119 break 2 5120 fi 5121done 5122done 5123IFS=$as_save_IFS 5124 5125fi 5126fi 5127STRIP=$ac_cv_prog_STRIP 5128if test -n "$STRIP"; then 5129 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 5130$as_echo "$STRIP" >&6; } 5131else 5132 { $as_echo "$as_me:$LINENO: result: no" >&5 5133$as_echo "no" >&6; } 5134fi 5135 5136 5137fi 5138if test -z "$ac_cv_prog_STRIP"; then 5139 ac_ct_STRIP=$STRIP 5140 # Extract the first word of "strip", so it can be a program name with args. 5141set dummy strip; ac_word=$2 5142{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5143$as_echo_n "checking for $ac_word... " >&6; } 5144if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5145 $as_echo_n "(cached) " >&6 5146else 5147 if test -n "$ac_ct_STRIP"; then 5148 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5149else 5150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5151for as_dir in $PATH 5152do 5153 IFS=$as_save_IFS 5154 test -z "$as_dir" && as_dir=. 5155 for ac_exec_ext in '' $ac_executable_extensions; do 5156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5157 ac_cv_prog_ac_ct_STRIP="strip" 5158 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5159 break 2 5160 fi 5161done 5162done 5163IFS=$as_save_IFS 5164 5165fi 5166fi 5167ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5168if test -n "$ac_ct_STRIP"; then 5169 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5170$as_echo "$ac_ct_STRIP" >&6; } 5171else 5172 { $as_echo "$as_me:$LINENO: result: no" >&5 5173$as_echo "no" >&6; } 5174fi 5175 5176 if test "x$ac_ct_STRIP" = x; then 5177 STRIP=":" 5178 else 5179 case $cross_compiling:$ac_tool_warned in 5180yes:) 5181{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5183ac_tool_warned=yes ;; 5184esac 5185 STRIP=$ac_ct_STRIP 5186 fi 5187else 5188 STRIP="$ac_cv_prog_STRIP" 5189fi 5190 5191test -z "$STRIP" && STRIP=: 5192 5193 5194 5195 5196 5197 5198if test -n "$ac_tool_prefix"; then 5199 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5200set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5201{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5202$as_echo_n "checking for $ac_word... " >&6; } 5203if test "${ac_cv_prog_RANLIB+set}" = set; then 5204 $as_echo_n "(cached) " >&6 5205else 5206 if test -n "$RANLIB"; then 5207 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5208else 5209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5210for as_dir in $PATH 5211do 5212 IFS=$as_save_IFS 5213 test -z "$as_dir" && as_dir=. 5214 for ac_exec_ext in '' $ac_executable_extensions; do 5215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5216 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5217 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5218 break 2 5219 fi 5220done 5221done 5222IFS=$as_save_IFS 5223 5224fi 5225fi 5226RANLIB=$ac_cv_prog_RANLIB 5227if test -n "$RANLIB"; then 5228 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 5229$as_echo "$RANLIB" >&6; } 5230else 5231 { $as_echo "$as_me:$LINENO: result: no" >&5 5232$as_echo "no" >&6; } 5233fi 5234 5235 5236fi 5237if test -z "$ac_cv_prog_RANLIB"; then 5238 ac_ct_RANLIB=$RANLIB 5239 # Extract the first word of "ranlib", so it can be a program name with args. 5240set dummy ranlib; ac_word=$2 5241{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5242$as_echo_n "checking for $ac_word... " >&6; } 5243if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5244 $as_echo_n "(cached) " >&6 5245else 5246 if test -n "$ac_ct_RANLIB"; then 5247 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5248else 5249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5250for as_dir in $PATH 5251do 5252 IFS=$as_save_IFS 5253 test -z "$as_dir" && as_dir=. 5254 for ac_exec_ext in '' $ac_executable_extensions; do 5255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5256 ac_cv_prog_ac_ct_RANLIB="ranlib" 5257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5258 break 2 5259 fi 5260done 5261done 5262IFS=$as_save_IFS 5263 5264fi 5265fi 5266ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5267if test -n "$ac_ct_RANLIB"; then 5268 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5269$as_echo "$ac_ct_RANLIB" >&6; } 5270else 5271 { $as_echo "$as_me:$LINENO: result: no" >&5 5272$as_echo "no" >&6; } 5273fi 5274 5275 if test "x$ac_ct_RANLIB" = x; then 5276 RANLIB=":" 5277 else 5278 case $cross_compiling:$ac_tool_warned in 5279yes:) 5280{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5282ac_tool_warned=yes ;; 5283esac 5284 RANLIB=$ac_ct_RANLIB 5285 fi 5286else 5287 RANLIB="$ac_cv_prog_RANLIB" 5288fi 5289 5290test -z "$RANLIB" && RANLIB=: 5291 5292 5293 5294 5295 5296 5297# Determine commands to create old-style static archives. 5298old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5299old_postinstall_cmds='chmod 644 $oldlib' 5300old_postuninstall_cmds= 5301 5302if test -n "$RANLIB"; then 5303 case $host_os in 5304 openbsd*) 5305 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5306 ;; 5307 *) 5308 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5309 ;; 5310 esac 5311 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5312fi 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347# If no C compiler was specified, use CC. 5348LTCC=${LTCC-"$CC"} 5349 5350# If no C compiler flags were specified, use CFLAGS. 5351LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5352 5353# Allow CC to be a program name with arguments. 5354compiler=$CC 5355 5356 5357# Check for command to grab the raw symbol name followed by C symbol from nm. 5358{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5359$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5360if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5361 $as_echo_n "(cached) " >&6 5362else 5363 5364# These are sane defaults that work on at least a few old systems. 5365# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5366 5367# Character class describing NM global symbol codes. 5368symcode='[BCDEGRST]' 5369 5370# Regexp to match symbols that can be accessed directly from C. 5371sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5372 5373# Define system-specific variables. 5374case $host_os in 5375aix*) 5376 symcode='[BCDT]' 5377 ;; 5378cygwin* | mingw* | pw32* | cegcc*) 5379 symcode='[ABCDGISTW]' 5380 ;; 5381hpux*) 5382 if test "$host_cpu" = ia64; then 5383 symcode='[ABCDEGRST]' 5384 fi 5385 ;; 5386irix* | nonstopux*) 5387 symcode='[BCDEGRST]' 5388 ;; 5389osf*) 5390 symcode='[BCDEGQRST]' 5391 ;; 5392solaris*) 5393 symcode='[BDRT]' 5394 ;; 5395sco3.2v5*) 5396 symcode='[DT]' 5397 ;; 5398sysv4.2uw2*) 5399 symcode='[DT]' 5400 ;; 5401sysv5* | sco5v6* | unixware* | OpenUNIX*) 5402 symcode='[ABDT]' 5403 ;; 5404sysv4) 5405 symcode='[DFNSTU]' 5406 ;; 5407esac 5408 5409# If we're using GNU nm, then use its standard symbol codes. 5410case `$NM -V 2>&1` in 5411*GNU* | *'with BFD'*) 5412 symcode='[ABCDGIRSTW]' ;; 5413esac 5414 5415# Transform an extracted symbol line into a proper C declaration. 5416# Some systems (esp. on ia64) link data and code symbols differently, 5417# so use this general approach. 5418lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5419 5420# Transform an extracted symbol line into symbol name and symbol address 5421lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5422lt_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'" 5423 5424# Handle CRLF in mingw tool chain 5425opt_cr= 5426case $build_os in 5427mingw*) 5428 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5429 ;; 5430esac 5431 5432# Try without a prefix underscore, then with it. 5433for ac_symprfx in "" "_"; do 5434 5435 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5436 symxfrm="\\1 $ac_symprfx\\2 \\2" 5437 5438 # Write the raw and C identifiers. 5439 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5440 # Fake it for dumpbin and say T for any non-static function 5441 # and D for any global variable. 5442 # Also find C++ and __fastcall symbols from MSVC++, 5443 # which start with @ or ?. 5444 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5445" {last_section=section; section=\$ 3};"\ 5446" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5447" \$ 0!~/External *\|/{next};"\ 5448" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5449" {if(hide[section]) next};"\ 5450" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5451" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5452" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5453" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5454" ' prfx=^$ac_symprfx" 5455 else 5456 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5457 fi 5458 5459 # Check to see that the pipe works correctly. 5460 pipe_works=no 5461 5462 rm -f conftest* 5463 cat > conftest.$ac_ext <<_LT_EOF 5464#ifdef __cplusplus 5465extern "C" { 5466#endif 5467char nm_test_var; 5468void nm_test_func(void); 5469void nm_test_func(void){} 5470#ifdef __cplusplus 5471} 5472#endif 5473int main(){nm_test_var='a';nm_test_func();return(0);} 5474_LT_EOF 5475 5476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5477 (eval $ac_compile) 2>&5 5478 ac_status=$? 5479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5480 (exit $ac_status); }; then 5481 # Now try to grab the symbols. 5482 nlist=conftest.nm 5483 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5484 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5485 ac_status=$? 5486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5487 (exit $ac_status); } && test -s "$nlist"; then 5488 # Try sorting and uniquifying the output. 5489 if sort "$nlist" | uniq > "$nlist"T; then 5490 mv -f "$nlist"T "$nlist" 5491 else 5492 rm -f "$nlist"T 5493 fi 5494 5495 # Make sure that we snagged all the symbols we need. 5496 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5497 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5498 cat <<_LT_EOF > conftest.$ac_ext 5499#ifdef __cplusplus 5500extern "C" { 5501#endif 5502 5503_LT_EOF 5504 # Now generate the symbol file. 5505 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5506 5507 cat <<_LT_EOF >> conftest.$ac_ext 5508 5509/* The mapping between symbol names and symbols. */ 5510const struct { 5511 const char *name; 5512 void *address; 5513} 5514lt__PROGRAM__LTX_preloaded_symbols[] = 5515{ 5516 { "@PROGRAM@", (void *) 0 }, 5517_LT_EOF 5518 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5519 cat <<\_LT_EOF >> conftest.$ac_ext 5520 {0, (void *) 0} 5521}; 5522 5523/* This works around a problem in FreeBSD linker */ 5524#ifdef FREEBSD_WORKAROUND 5525static const void *lt_preloaded_setup() { 5526 return lt__PROGRAM__LTX_preloaded_symbols; 5527} 5528#endif 5529 5530#ifdef __cplusplus 5531} 5532#endif 5533_LT_EOF 5534 # Now try linking the two files. 5535 mv conftest.$ac_objext conftstm.$ac_objext 5536 lt_save_LIBS="$LIBS" 5537 lt_save_CFLAGS="$CFLAGS" 5538 LIBS="conftstm.$ac_objext" 5539 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5541 (eval $ac_link) 2>&5 5542 ac_status=$? 5543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5544 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5545 pipe_works=yes 5546 fi 5547 LIBS="$lt_save_LIBS" 5548 CFLAGS="$lt_save_CFLAGS" 5549 else 5550 echo "cannot find nm_test_func in $nlist" >&5 5551 fi 5552 else 5553 echo "cannot find nm_test_var in $nlist" >&5 5554 fi 5555 else 5556 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5557 fi 5558 else 5559 echo "$progname: failed program was:" >&5 5560 cat conftest.$ac_ext >&5 5561 fi 5562 rm -rf conftest* conftst* 5563 5564 # Do not use the global_symbol_pipe unless it works. 5565 if test "$pipe_works" = yes; then 5566 break 5567 else 5568 lt_cv_sys_global_symbol_pipe= 5569 fi 5570done 5571 5572fi 5573 5574if test -z "$lt_cv_sys_global_symbol_pipe"; then 5575 lt_cv_sys_global_symbol_to_cdecl= 5576fi 5577if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5578 { $as_echo "$as_me:$LINENO: result: failed" >&5 5579$as_echo "failed" >&6; } 5580else 5581 { $as_echo "$as_me:$LINENO: result: ok" >&5 5582$as_echo "ok" >&6; } 5583fi 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607# Check whether --enable-libtool-lock was given. 5608if test "${enable_libtool_lock+set}" = set; then 5609 enableval=$enable_libtool_lock; 5610fi 5611 5612test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5613 5614# Some flags need to be propagated to the compiler or linker for good 5615# libtool support. 5616case $host in 5617ia64-*-hpux*) 5618 # Find out which ABI we are using. 5619 echo 'int i;' > conftest.$ac_ext 5620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5621 (eval $ac_compile) 2>&5 5622 ac_status=$? 5623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5624 (exit $ac_status); }; then 5625 case `/usr/bin/file conftest.$ac_objext` in 5626 *ELF-32*) 5627 HPUX_IA64_MODE="32" 5628 ;; 5629 *ELF-64*) 5630 HPUX_IA64_MODE="64" 5631 ;; 5632 esac 5633 fi 5634 rm -rf conftest* 5635 ;; 5636*-*-irix6*) 5637 # Find out which ABI we are using. 5638 echo '#line 5638 "configure"' > conftest.$ac_ext 5639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5640 (eval $ac_compile) 2>&5 5641 ac_status=$? 5642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5643 (exit $ac_status); }; then 5644 if test "$lt_cv_prog_gnu_ld" = yes; then 5645 case `/usr/bin/file conftest.$ac_objext` in 5646 *32-bit*) 5647 LD="${LD-ld} -melf32bsmip" 5648 ;; 5649 *N32*) 5650 LD="${LD-ld} -melf32bmipn32" 5651 ;; 5652 *64-bit*) 5653 LD="${LD-ld} -melf64bmip" 5654 ;; 5655 esac 5656 else 5657 case `/usr/bin/file conftest.$ac_objext` in 5658 *32-bit*) 5659 LD="${LD-ld} -32" 5660 ;; 5661 *N32*) 5662 LD="${LD-ld} -n32" 5663 ;; 5664 *64-bit*) 5665 LD="${LD-ld} -64" 5666 ;; 5667 esac 5668 fi 5669 fi 5670 rm -rf conftest* 5671 ;; 5672 5673x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5674s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5675 # Find out which ABI we are using. 5676 echo 'int i;' > conftest.$ac_ext 5677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5678 (eval $ac_compile) 2>&5 5679 ac_status=$? 5680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5681 (exit $ac_status); }; then 5682 case `/usr/bin/file conftest.o` in 5683 *32-bit*) 5684 case $host in 5685 x86_64-*kfreebsd*-gnu) 5686 LD="${LD-ld} -m elf_i386_fbsd" 5687 ;; 5688 x86_64-*linux*) 5689 LD="${LD-ld} -m elf_i386" 5690 ;; 5691 ppc64-*linux*|powerpc64-*linux*) 5692 LD="${LD-ld} -m elf32ppclinux" 5693 ;; 5694 s390x-*linux*) 5695 LD="${LD-ld} -m elf_s390" 5696 ;; 5697 sparc64-*linux*) 5698 LD="${LD-ld} -m elf32_sparc" 5699 ;; 5700 esac 5701 ;; 5702 *64-bit*) 5703 case $host in 5704 x86_64-*kfreebsd*-gnu) 5705 LD="${LD-ld} -m elf_x86_64_fbsd" 5706 ;; 5707 x86_64-*linux*) 5708 LD="${LD-ld} -m elf_x86_64" 5709 ;; 5710 ppc*-*linux*|powerpc*-*linux*) 5711 LD="${LD-ld} -m elf64ppc" 5712 ;; 5713 s390*-*linux*|s390*-*tpf*) 5714 LD="${LD-ld} -m elf64_s390" 5715 ;; 5716 sparc*-*linux*) 5717 LD="${LD-ld} -m elf64_sparc" 5718 ;; 5719 esac 5720 ;; 5721 esac 5722 fi 5723 rm -rf conftest* 5724 ;; 5725 5726*-*-sco3.2v5*) 5727 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5728 SAVE_CFLAGS="$CFLAGS" 5729 CFLAGS="$CFLAGS -belf" 5730 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5731$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5732if test "${lt_cv_cc_needs_belf+set}" = set; then 5733 $as_echo_n "(cached) " >&6 5734else 5735 ac_ext=c 5736ac_cpp='$CPP $CPPFLAGS' 5737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5739ac_compiler_gnu=$ac_cv_c_compiler_gnu 5740 5741 cat >conftest.$ac_ext <<_ACEOF 5742/* confdefs.h. */ 5743_ACEOF 5744cat confdefs.h >>conftest.$ac_ext 5745cat >>conftest.$ac_ext <<_ACEOF 5746/* end confdefs.h. */ 5747 5748int 5749main () 5750{ 5751 5752 ; 5753 return 0; 5754} 5755_ACEOF 5756rm -f conftest.$ac_objext conftest$ac_exeext 5757if { (ac_try="$ac_link" 5758case "(($ac_try" in 5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5760 *) ac_try_echo=$ac_try;; 5761esac 5762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5763$as_echo "$ac_try_echo") >&5 5764 (eval "$ac_link") 2>conftest.er1 5765 ac_status=$? 5766 grep -v '^ *+' conftest.er1 >conftest.err 5767 rm -f conftest.er1 5768 cat conftest.err >&5 5769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5770 (exit $ac_status); } && { 5771 test -z "$ac_c_werror_flag" || 5772 test ! -s conftest.err 5773 } && test -s conftest$ac_exeext && { 5774 test "$cross_compiling" = yes || 5775 $as_test_x conftest$ac_exeext 5776 }; then 5777 lt_cv_cc_needs_belf=yes 5778else 5779 $as_echo "$as_me: failed program was:" >&5 5780sed 's/^/| /' conftest.$ac_ext >&5 5781 5782 lt_cv_cc_needs_belf=no 5783fi 5784 5785rm -rf conftest.dSYM 5786rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5787 conftest$ac_exeext conftest.$ac_ext 5788 ac_ext=c 5789ac_cpp='$CPP $CPPFLAGS' 5790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5792ac_compiler_gnu=$ac_cv_c_compiler_gnu 5793 5794fi 5795{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5796$as_echo "$lt_cv_cc_needs_belf" >&6; } 5797 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5798 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5799 CFLAGS="$SAVE_CFLAGS" 5800 fi 5801 ;; 5802sparc*-*solaris*) 5803 # Find out which ABI we are using. 5804 echo 'int i;' > conftest.$ac_ext 5805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5806 (eval $ac_compile) 2>&5 5807 ac_status=$? 5808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5809 (exit $ac_status); }; then 5810 case `/usr/bin/file conftest.o` in 5811 *64-bit*) 5812 case $lt_cv_prog_gnu_ld in 5813 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5814 *) 5815 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5816 LD="${LD-ld} -64" 5817 fi 5818 ;; 5819 esac 5820 ;; 5821 esac 5822 fi 5823 rm -rf conftest* 5824 ;; 5825esac 5826 5827need_locks="$enable_libtool_lock" 5828 5829 5830 case $host_os in 5831 rhapsody* | darwin*) 5832 if test -n "$ac_tool_prefix"; then 5833 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5834set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5835{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5836$as_echo_n "checking for $ac_word... " >&6; } 5837if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 5838 $as_echo_n "(cached) " >&6 5839else 5840 if test -n "$DSYMUTIL"; then 5841 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5842else 5843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5844for as_dir in $PATH 5845do 5846 IFS=$as_save_IFS 5847 test -z "$as_dir" && as_dir=. 5848 for ac_exec_ext in '' $ac_executable_extensions; do 5849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5850 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5851 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5852 break 2 5853 fi 5854done 5855done 5856IFS=$as_save_IFS 5857 5858fi 5859fi 5860DSYMUTIL=$ac_cv_prog_DSYMUTIL 5861if test -n "$DSYMUTIL"; then 5862 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 5863$as_echo "$DSYMUTIL" >&6; } 5864else 5865 { $as_echo "$as_me:$LINENO: result: no" >&5 5866$as_echo "no" >&6; } 5867fi 5868 5869 5870fi 5871if test -z "$ac_cv_prog_DSYMUTIL"; then 5872 ac_ct_DSYMUTIL=$DSYMUTIL 5873 # Extract the first word of "dsymutil", so it can be a program name with args. 5874set dummy dsymutil; ac_word=$2 5875{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5876$as_echo_n "checking for $ac_word... " >&6; } 5877if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 5878 $as_echo_n "(cached) " >&6 5879else 5880 if test -n "$ac_ct_DSYMUTIL"; then 5881 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5882else 5883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5884for as_dir in $PATH 5885do 5886 IFS=$as_save_IFS 5887 test -z "$as_dir" && as_dir=. 5888 for ac_exec_ext in '' $ac_executable_extensions; do 5889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5890 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5891 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5892 break 2 5893 fi 5894done 5895done 5896IFS=$as_save_IFS 5897 5898fi 5899fi 5900ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5901if test -n "$ac_ct_DSYMUTIL"; then 5902 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 5903$as_echo "$ac_ct_DSYMUTIL" >&6; } 5904else 5905 { $as_echo "$as_me:$LINENO: result: no" >&5 5906$as_echo "no" >&6; } 5907fi 5908 5909 if test "x$ac_ct_DSYMUTIL" = x; then 5910 DSYMUTIL=":" 5911 else 5912 case $cross_compiling:$ac_tool_warned in 5913yes:) 5914{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5916ac_tool_warned=yes ;; 5917esac 5918 DSYMUTIL=$ac_ct_DSYMUTIL 5919 fi 5920else 5921 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5922fi 5923 5924 if test -n "$ac_tool_prefix"; then 5925 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5926set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5927{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5928$as_echo_n "checking for $ac_word... " >&6; } 5929if test "${ac_cv_prog_NMEDIT+set}" = set; then 5930 $as_echo_n "(cached) " >&6 5931else 5932 if test -n "$NMEDIT"; then 5933 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5934else 5935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5936for as_dir in $PATH 5937do 5938 IFS=$as_save_IFS 5939 test -z "$as_dir" && as_dir=. 5940 for ac_exec_ext in '' $ac_executable_extensions; do 5941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5942 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5943 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5944 break 2 5945 fi 5946done 5947done 5948IFS=$as_save_IFS 5949 5950fi 5951fi 5952NMEDIT=$ac_cv_prog_NMEDIT 5953if test -n "$NMEDIT"; then 5954 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 5955$as_echo "$NMEDIT" >&6; } 5956else 5957 { $as_echo "$as_me:$LINENO: result: no" >&5 5958$as_echo "no" >&6; } 5959fi 5960 5961 5962fi 5963if test -z "$ac_cv_prog_NMEDIT"; then 5964 ac_ct_NMEDIT=$NMEDIT 5965 # Extract the first word of "nmedit", so it can be a program name with args. 5966set dummy nmedit; ac_word=$2 5967{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5968$as_echo_n "checking for $ac_word... " >&6; } 5969if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 5970 $as_echo_n "(cached) " >&6 5971else 5972 if test -n "$ac_ct_NMEDIT"; then 5973 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 5974else 5975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5976for as_dir in $PATH 5977do 5978 IFS=$as_save_IFS 5979 test -z "$as_dir" && as_dir=. 5980 for ac_exec_ext in '' $ac_executable_extensions; do 5981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5982 ac_cv_prog_ac_ct_NMEDIT="nmedit" 5983 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5984 break 2 5985 fi 5986done 5987done 5988IFS=$as_save_IFS 5989 5990fi 5991fi 5992ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 5993if test -n "$ac_ct_NMEDIT"; then 5994 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 5995$as_echo "$ac_ct_NMEDIT" >&6; } 5996else 5997 { $as_echo "$as_me:$LINENO: result: no" >&5 5998$as_echo "no" >&6; } 5999fi 6000 6001 if test "x$ac_ct_NMEDIT" = x; then 6002 NMEDIT=":" 6003 else 6004 case $cross_compiling:$ac_tool_warned in 6005yes:) 6006{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6008ac_tool_warned=yes ;; 6009esac 6010 NMEDIT=$ac_ct_NMEDIT 6011 fi 6012else 6013 NMEDIT="$ac_cv_prog_NMEDIT" 6014fi 6015 6016 if test -n "$ac_tool_prefix"; then 6017 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6018set dummy ${ac_tool_prefix}lipo; ac_word=$2 6019{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6020$as_echo_n "checking for $ac_word... " >&6; } 6021if test "${ac_cv_prog_LIPO+set}" = set; then 6022 $as_echo_n "(cached) " >&6 6023else 6024 if test -n "$LIPO"; then 6025 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6026else 6027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6028for as_dir in $PATH 6029do 6030 IFS=$as_save_IFS 6031 test -z "$as_dir" && as_dir=. 6032 for ac_exec_ext in '' $ac_executable_extensions; do 6033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6034 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6035 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6036 break 2 6037 fi 6038done 6039done 6040IFS=$as_save_IFS 6041 6042fi 6043fi 6044LIPO=$ac_cv_prog_LIPO 6045if test -n "$LIPO"; then 6046 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 6047$as_echo "$LIPO" >&6; } 6048else 6049 { $as_echo "$as_me:$LINENO: result: no" >&5 6050$as_echo "no" >&6; } 6051fi 6052 6053 6054fi 6055if test -z "$ac_cv_prog_LIPO"; then 6056 ac_ct_LIPO=$LIPO 6057 # Extract the first word of "lipo", so it can be a program name with args. 6058set dummy lipo; ac_word=$2 6059{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6060$as_echo_n "checking for $ac_word... " >&6; } 6061if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 6062 $as_echo_n "(cached) " >&6 6063else 6064 if test -n "$ac_ct_LIPO"; then 6065 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6066else 6067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6068for as_dir in $PATH 6069do 6070 IFS=$as_save_IFS 6071 test -z "$as_dir" && as_dir=. 6072 for ac_exec_ext in '' $ac_executable_extensions; do 6073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6074 ac_cv_prog_ac_ct_LIPO="lipo" 6075 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6076 break 2 6077 fi 6078done 6079done 6080IFS=$as_save_IFS 6081 6082fi 6083fi 6084ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6085if test -n "$ac_ct_LIPO"; then 6086 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 6087$as_echo "$ac_ct_LIPO" >&6; } 6088else 6089 { $as_echo "$as_me:$LINENO: result: no" >&5 6090$as_echo "no" >&6; } 6091fi 6092 6093 if test "x$ac_ct_LIPO" = x; then 6094 LIPO=":" 6095 else 6096 case $cross_compiling:$ac_tool_warned in 6097yes:) 6098{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6100ac_tool_warned=yes ;; 6101esac 6102 LIPO=$ac_ct_LIPO 6103 fi 6104else 6105 LIPO="$ac_cv_prog_LIPO" 6106fi 6107 6108 if test -n "$ac_tool_prefix"; then 6109 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6110set dummy ${ac_tool_prefix}otool; ac_word=$2 6111{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6112$as_echo_n "checking for $ac_word... " >&6; } 6113if test "${ac_cv_prog_OTOOL+set}" = set; then 6114 $as_echo_n "(cached) " >&6 6115else 6116 if test -n "$OTOOL"; then 6117 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6118else 6119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6120for as_dir in $PATH 6121do 6122 IFS=$as_save_IFS 6123 test -z "$as_dir" && as_dir=. 6124 for ac_exec_ext in '' $ac_executable_extensions; do 6125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6126 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6127 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6128 break 2 6129 fi 6130done 6131done 6132IFS=$as_save_IFS 6133 6134fi 6135fi 6136OTOOL=$ac_cv_prog_OTOOL 6137if test -n "$OTOOL"; then 6138 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 6139$as_echo "$OTOOL" >&6; } 6140else 6141 { $as_echo "$as_me:$LINENO: result: no" >&5 6142$as_echo "no" >&6; } 6143fi 6144 6145 6146fi 6147if test -z "$ac_cv_prog_OTOOL"; then 6148 ac_ct_OTOOL=$OTOOL 6149 # Extract the first word of "otool", so it can be a program name with args. 6150set dummy otool; ac_word=$2 6151{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6152$as_echo_n "checking for $ac_word... " >&6; } 6153if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6154 $as_echo_n "(cached) " >&6 6155else 6156 if test -n "$ac_ct_OTOOL"; then 6157 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6158else 6159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6160for as_dir in $PATH 6161do 6162 IFS=$as_save_IFS 6163 test -z "$as_dir" && as_dir=. 6164 for ac_exec_ext in '' $ac_executable_extensions; do 6165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6166 ac_cv_prog_ac_ct_OTOOL="otool" 6167 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6168 break 2 6169 fi 6170done 6171done 6172IFS=$as_save_IFS 6173 6174fi 6175fi 6176ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6177if test -n "$ac_ct_OTOOL"; then 6178 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6179$as_echo "$ac_ct_OTOOL" >&6; } 6180else 6181 { $as_echo "$as_me:$LINENO: result: no" >&5 6182$as_echo "no" >&6; } 6183fi 6184 6185 if test "x$ac_ct_OTOOL" = x; then 6186 OTOOL=":" 6187 else 6188 case $cross_compiling:$ac_tool_warned in 6189yes:) 6190{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6192ac_tool_warned=yes ;; 6193esac 6194 OTOOL=$ac_ct_OTOOL 6195 fi 6196else 6197 OTOOL="$ac_cv_prog_OTOOL" 6198fi 6199 6200 if test -n "$ac_tool_prefix"; then 6201 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6202set dummy ${ac_tool_prefix}otool64; ac_word=$2 6203{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6204$as_echo_n "checking for $ac_word... " >&6; } 6205if test "${ac_cv_prog_OTOOL64+set}" = set; then 6206 $as_echo_n "(cached) " >&6 6207else 6208 if test -n "$OTOOL64"; then 6209 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6210else 6211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6212for as_dir in $PATH 6213do 6214 IFS=$as_save_IFS 6215 test -z "$as_dir" && as_dir=. 6216 for ac_exec_ext in '' $ac_executable_extensions; do 6217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6218 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6219 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6220 break 2 6221 fi 6222done 6223done 6224IFS=$as_save_IFS 6225 6226fi 6227fi 6228OTOOL64=$ac_cv_prog_OTOOL64 6229if test -n "$OTOOL64"; then 6230 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 6231$as_echo "$OTOOL64" >&6; } 6232else 6233 { $as_echo "$as_me:$LINENO: result: no" >&5 6234$as_echo "no" >&6; } 6235fi 6236 6237 6238fi 6239if test -z "$ac_cv_prog_OTOOL64"; then 6240 ac_ct_OTOOL64=$OTOOL64 6241 # Extract the first word of "otool64", so it can be a program name with args. 6242set dummy otool64; ac_word=$2 6243{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6244$as_echo_n "checking for $ac_word... " >&6; } 6245if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6246 $as_echo_n "(cached) " >&6 6247else 6248 if test -n "$ac_ct_OTOOL64"; then 6249 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6250else 6251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6252for as_dir in $PATH 6253do 6254 IFS=$as_save_IFS 6255 test -z "$as_dir" && as_dir=. 6256 for ac_exec_ext in '' $ac_executable_extensions; do 6257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6258 ac_cv_prog_ac_ct_OTOOL64="otool64" 6259 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6260 break 2 6261 fi 6262done 6263done 6264IFS=$as_save_IFS 6265 6266fi 6267fi 6268ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6269if test -n "$ac_ct_OTOOL64"; then 6270 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6271$as_echo "$ac_ct_OTOOL64" >&6; } 6272else 6273 { $as_echo "$as_me:$LINENO: result: no" >&5 6274$as_echo "no" >&6; } 6275fi 6276 6277 if test "x$ac_ct_OTOOL64" = x; then 6278 OTOOL64=":" 6279 else 6280 case $cross_compiling:$ac_tool_warned in 6281yes:) 6282{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6284ac_tool_warned=yes ;; 6285esac 6286 OTOOL64=$ac_ct_OTOOL64 6287 fi 6288else 6289 OTOOL64="$ac_cv_prog_OTOOL64" 6290fi 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6319$as_echo_n "checking for -single_module linker flag... " >&6; } 6320if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6321 $as_echo_n "(cached) " >&6 6322else 6323 lt_cv_apple_cc_single_mod=no 6324 if test -z "${LT_MULTI_MODULE}"; then 6325 # By default we will add the -single_module flag. You can override 6326 # by either setting the environment variable LT_MULTI_MODULE 6327 # non-empty at configure time, or by adding -multi_module to the 6328 # link flags. 6329 rm -rf libconftest.dylib* 6330 echo "int foo(void){return 1;}" > conftest.c 6331 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6332-dynamiclib -Wl,-single_module conftest.c" >&5 6333 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6334 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6335 _lt_result=$? 6336 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6337 lt_cv_apple_cc_single_mod=yes 6338 else 6339 cat conftest.err >&5 6340 fi 6341 rm -rf libconftest.dylib* 6342 rm -f conftest.* 6343 fi 6344fi 6345{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6346$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6347 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6348$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6349if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6350 $as_echo_n "(cached) " >&6 6351else 6352 lt_cv_ld_exported_symbols_list=no 6353 save_LDFLAGS=$LDFLAGS 6354 echo "_main" > conftest.sym 6355 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6356 cat >conftest.$ac_ext <<_ACEOF 6357/* confdefs.h. */ 6358_ACEOF 6359cat confdefs.h >>conftest.$ac_ext 6360cat >>conftest.$ac_ext <<_ACEOF 6361/* end confdefs.h. */ 6362 6363int 6364main () 6365{ 6366 6367 ; 6368 return 0; 6369} 6370_ACEOF 6371rm -f conftest.$ac_objext conftest$ac_exeext 6372if { (ac_try="$ac_link" 6373case "(($ac_try" in 6374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6375 *) ac_try_echo=$ac_try;; 6376esac 6377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6378$as_echo "$ac_try_echo") >&5 6379 (eval "$ac_link") 2>conftest.er1 6380 ac_status=$? 6381 grep -v '^ *+' conftest.er1 >conftest.err 6382 rm -f conftest.er1 6383 cat conftest.err >&5 6384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6385 (exit $ac_status); } && { 6386 test -z "$ac_c_werror_flag" || 6387 test ! -s conftest.err 6388 } && test -s conftest$ac_exeext && { 6389 test "$cross_compiling" = yes || 6390 $as_test_x conftest$ac_exeext 6391 }; then 6392 lt_cv_ld_exported_symbols_list=yes 6393else 6394 $as_echo "$as_me: failed program was:" >&5 6395sed 's/^/| /' conftest.$ac_ext >&5 6396 6397 lt_cv_ld_exported_symbols_list=no 6398fi 6399 6400rm -rf conftest.dSYM 6401rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6402 conftest$ac_exeext conftest.$ac_ext 6403 LDFLAGS="$save_LDFLAGS" 6404 6405fi 6406{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6407$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6408 case $host_os in 6409 rhapsody* | darwin1.[012]) 6410 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6411 darwin1.*) 6412 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6413 darwin*) # darwin 5.x on 6414 # if running on 10.5 or later, the deployment target defaults 6415 # to the OS version, if on x86, and 10.4, the deployment 6416 # target defaults to 10.4. Don't you love it? 6417 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6418 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6419 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6420 10.[012]*) 6421 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6422 10.*) 6423 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6424 esac 6425 ;; 6426 esac 6427 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6428 _lt_dar_single_mod='$single_module' 6429 fi 6430 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6431 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6432 else 6433 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6434 fi 6435 if test "$DSYMUTIL" != ":"; then 6436 _lt_dsymutil='~$DSYMUTIL $lib || :' 6437 else 6438 _lt_dsymutil= 6439 fi 6440 ;; 6441 esac 6442 6443ac_ext=c 6444ac_cpp='$CPP $CPPFLAGS' 6445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6447ac_compiler_gnu=$ac_cv_c_compiler_gnu 6448{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6449$as_echo_n "checking how to run the C preprocessor... " >&6; } 6450# On Suns, sometimes $CPP names a directory. 6451if test -n "$CPP" && test -d "$CPP"; then 6452 CPP= 6453fi 6454if test -z "$CPP"; then 6455 if test "${ac_cv_prog_CPP+set}" = set; then 6456 $as_echo_n "(cached) " >&6 6457else 6458 # Double quotes because CPP needs to be expanded 6459 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6460 do 6461 ac_preproc_ok=false 6462for ac_c_preproc_warn_flag in '' yes 6463do 6464 # Use a header file that comes with gcc, so configuring glibc 6465 # with a fresh cross-compiler works. 6466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6467 # <limits.h> exists even on freestanding compilers. 6468 # On the NeXT, cc -E runs the code through the compiler's parser, 6469 # not just through cpp. "Syntax error" is here to catch this case. 6470 cat >conftest.$ac_ext <<_ACEOF 6471/* confdefs.h. */ 6472_ACEOF 6473cat confdefs.h >>conftest.$ac_ext 6474cat >>conftest.$ac_ext <<_ACEOF 6475/* end confdefs.h. */ 6476#ifdef __STDC__ 6477# include <limits.h> 6478#else 6479# include <assert.h> 6480#endif 6481 Syntax error 6482_ACEOF 6483if { (ac_try="$ac_cpp conftest.$ac_ext" 6484case "(($ac_try" in 6485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6486 *) ac_try_echo=$ac_try;; 6487esac 6488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6489$as_echo "$ac_try_echo") >&5 6490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6491 ac_status=$? 6492 grep -v '^ *+' conftest.er1 >conftest.err 6493 rm -f conftest.er1 6494 cat conftest.err >&5 6495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6496 (exit $ac_status); } >/dev/null && { 6497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6498 test ! -s conftest.err 6499 }; then 6500 : 6501else 6502 $as_echo "$as_me: failed program was:" >&5 6503sed 's/^/| /' conftest.$ac_ext >&5 6504 6505 # Broken: fails on valid input. 6506continue 6507fi 6508 6509rm -f conftest.err conftest.$ac_ext 6510 6511 # OK, works on sane cases. Now check whether nonexistent headers 6512 # can be detected and how. 6513 cat >conftest.$ac_ext <<_ACEOF 6514/* confdefs.h. */ 6515_ACEOF 6516cat confdefs.h >>conftest.$ac_ext 6517cat >>conftest.$ac_ext <<_ACEOF 6518/* end confdefs.h. */ 6519#include <ac_nonexistent.h> 6520_ACEOF 6521if { (ac_try="$ac_cpp conftest.$ac_ext" 6522case "(($ac_try" in 6523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6524 *) ac_try_echo=$ac_try;; 6525esac 6526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6527$as_echo "$ac_try_echo") >&5 6528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6529 ac_status=$? 6530 grep -v '^ *+' conftest.er1 >conftest.err 6531 rm -f conftest.er1 6532 cat conftest.err >&5 6533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6534 (exit $ac_status); } >/dev/null && { 6535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6536 test ! -s conftest.err 6537 }; then 6538 # Broken: success on invalid input. 6539continue 6540else 6541 $as_echo "$as_me: failed program was:" >&5 6542sed 's/^/| /' conftest.$ac_ext >&5 6543 6544 # Passes both tests. 6545ac_preproc_ok=: 6546break 6547fi 6548 6549rm -f conftest.err conftest.$ac_ext 6550 6551done 6552# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6553rm -f conftest.err conftest.$ac_ext 6554if $ac_preproc_ok; then 6555 break 6556fi 6557 6558 done 6559 ac_cv_prog_CPP=$CPP 6560 6561fi 6562 CPP=$ac_cv_prog_CPP 6563else 6564 ac_cv_prog_CPP=$CPP 6565fi 6566{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 6567$as_echo "$CPP" >&6; } 6568ac_preproc_ok=false 6569for ac_c_preproc_warn_flag in '' yes 6570do 6571 # Use a header file that comes with gcc, so configuring glibc 6572 # with a fresh cross-compiler works. 6573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6574 # <limits.h> exists even on freestanding compilers. 6575 # On the NeXT, cc -E runs the code through the compiler's parser, 6576 # not just through cpp. "Syntax error" is here to catch this case. 6577 cat >conftest.$ac_ext <<_ACEOF 6578/* confdefs.h. */ 6579_ACEOF 6580cat confdefs.h >>conftest.$ac_ext 6581cat >>conftest.$ac_ext <<_ACEOF 6582/* end confdefs.h. */ 6583#ifdef __STDC__ 6584# include <limits.h> 6585#else 6586# include <assert.h> 6587#endif 6588 Syntax error 6589_ACEOF 6590if { (ac_try="$ac_cpp conftest.$ac_ext" 6591case "(($ac_try" in 6592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6593 *) ac_try_echo=$ac_try;; 6594esac 6595eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6596$as_echo "$ac_try_echo") >&5 6597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6598 ac_status=$? 6599 grep -v '^ *+' conftest.er1 >conftest.err 6600 rm -f conftest.er1 6601 cat conftest.err >&5 6602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6603 (exit $ac_status); } >/dev/null && { 6604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6605 test ! -s conftest.err 6606 }; then 6607 : 6608else 6609 $as_echo "$as_me: failed program was:" >&5 6610sed 's/^/| /' conftest.$ac_ext >&5 6611 6612 # Broken: fails on valid input. 6613continue 6614fi 6615 6616rm -f conftest.err conftest.$ac_ext 6617 6618 # OK, works on sane cases. Now check whether nonexistent headers 6619 # can be detected and how. 6620 cat >conftest.$ac_ext <<_ACEOF 6621/* confdefs.h. */ 6622_ACEOF 6623cat confdefs.h >>conftest.$ac_ext 6624cat >>conftest.$ac_ext <<_ACEOF 6625/* end confdefs.h. */ 6626#include <ac_nonexistent.h> 6627_ACEOF 6628if { (ac_try="$ac_cpp conftest.$ac_ext" 6629case "(($ac_try" in 6630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6631 *) ac_try_echo=$ac_try;; 6632esac 6633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6634$as_echo "$ac_try_echo") >&5 6635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6636 ac_status=$? 6637 grep -v '^ *+' conftest.er1 >conftest.err 6638 rm -f conftest.er1 6639 cat conftest.err >&5 6640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6641 (exit $ac_status); } >/dev/null && { 6642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6643 test ! -s conftest.err 6644 }; then 6645 # Broken: success on invalid input. 6646continue 6647else 6648 $as_echo "$as_me: failed program was:" >&5 6649sed 's/^/| /' conftest.$ac_ext >&5 6650 6651 # Passes both tests. 6652ac_preproc_ok=: 6653break 6654fi 6655 6656rm -f conftest.err conftest.$ac_ext 6657 6658done 6659# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6660rm -f conftest.err conftest.$ac_ext 6661if $ac_preproc_ok; then 6662 : 6663else 6664 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6666{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6667See \`config.log' for more details." >&5 6668$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6669See \`config.log' for more details." >&2;} 6670 { (exit 1); exit 1; }; }; } 6671fi 6672 6673ac_ext=c 6674ac_cpp='$CPP $CPPFLAGS' 6675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6677ac_compiler_gnu=$ac_cv_c_compiler_gnu 6678 6679 6680{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6681$as_echo_n "checking for ANSI C header files... " >&6; } 6682if test "${ac_cv_header_stdc+set}" = set; then 6683 $as_echo_n "(cached) " >&6 6684else 6685 cat >conftest.$ac_ext <<_ACEOF 6686/* confdefs.h. */ 6687_ACEOF 6688cat confdefs.h >>conftest.$ac_ext 6689cat >>conftest.$ac_ext <<_ACEOF 6690/* end confdefs.h. */ 6691#include <stdlib.h> 6692#include <stdarg.h> 6693#include <string.h> 6694#include <float.h> 6695 6696int 6697main () 6698{ 6699 6700 ; 6701 return 0; 6702} 6703_ACEOF 6704rm -f conftest.$ac_objext 6705if { (ac_try="$ac_compile" 6706case "(($ac_try" in 6707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6708 *) ac_try_echo=$ac_try;; 6709esac 6710eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6711$as_echo "$ac_try_echo") >&5 6712 (eval "$ac_compile") 2>conftest.er1 6713 ac_status=$? 6714 grep -v '^ *+' conftest.er1 >conftest.err 6715 rm -f conftest.er1 6716 cat conftest.err >&5 6717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6718 (exit $ac_status); } && { 6719 test -z "$ac_c_werror_flag" || 6720 test ! -s conftest.err 6721 } && test -s conftest.$ac_objext; then 6722 ac_cv_header_stdc=yes 6723else 6724 $as_echo "$as_me: failed program was:" >&5 6725sed 's/^/| /' conftest.$ac_ext >&5 6726 6727 ac_cv_header_stdc=no 6728fi 6729 6730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6731 6732if test $ac_cv_header_stdc = yes; then 6733 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6734 cat >conftest.$ac_ext <<_ACEOF 6735/* confdefs.h. */ 6736_ACEOF 6737cat confdefs.h >>conftest.$ac_ext 6738cat >>conftest.$ac_ext <<_ACEOF 6739/* end confdefs.h. */ 6740#include <string.h> 6741 6742_ACEOF 6743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6744 $EGREP "memchr" >/dev/null 2>&1; then 6745 : 6746else 6747 ac_cv_header_stdc=no 6748fi 6749rm -f conftest* 6750 6751fi 6752 6753if test $ac_cv_header_stdc = yes; then 6754 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6755 cat >conftest.$ac_ext <<_ACEOF 6756/* confdefs.h. */ 6757_ACEOF 6758cat confdefs.h >>conftest.$ac_ext 6759cat >>conftest.$ac_ext <<_ACEOF 6760/* end confdefs.h. */ 6761#include <stdlib.h> 6762 6763_ACEOF 6764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6765 $EGREP "free" >/dev/null 2>&1; then 6766 : 6767else 6768 ac_cv_header_stdc=no 6769fi 6770rm -f conftest* 6771 6772fi 6773 6774if test $ac_cv_header_stdc = yes; then 6775 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6776 if test "$cross_compiling" = yes; then 6777 : 6778else 6779 cat >conftest.$ac_ext <<_ACEOF 6780/* confdefs.h. */ 6781_ACEOF 6782cat confdefs.h >>conftest.$ac_ext 6783cat >>conftest.$ac_ext <<_ACEOF 6784/* end confdefs.h. */ 6785#include <ctype.h> 6786#include <stdlib.h> 6787#if ((' ' & 0x0FF) == 0x020) 6788# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6789# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6790#else 6791# define ISLOWER(c) \ 6792 (('a' <= (c) && (c) <= 'i') \ 6793 || ('j' <= (c) && (c) <= 'r') \ 6794 || ('s' <= (c) && (c) <= 'z')) 6795# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6796#endif 6797 6798#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6799int 6800main () 6801{ 6802 int i; 6803 for (i = 0; i < 256; i++) 6804 if (XOR (islower (i), ISLOWER (i)) 6805 || toupper (i) != TOUPPER (i)) 6806 return 2; 6807 return 0; 6808} 6809_ACEOF 6810rm -f conftest$ac_exeext 6811if { (ac_try="$ac_link" 6812case "(($ac_try" in 6813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6814 *) ac_try_echo=$ac_try;; 6815esac 6816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6817$as_echo "$ac_try_echo") >&5 6818 (eval "$ac_link") 2>&5 6819 ac_status=$? 6820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6822 { (case "(($ac_try" in 6823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6824 *) ac_try_echo=$ac_try;; 6825esac 6826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6827$as_echo "$ac_try_echo") >&5 6828 (eval "$ac_try") 2>&5 6829 ac_status=$? 6830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6831 (exit $ac_status); }; }; then 6832 : 6833else 6834 $as_echo "$as_me: program exited with status $ac_status" >&5 6835$as_echo "$as_me: failed program was:" >&5 6836sed 's/^/| /' conftest.$ac_ext >&5 6837 6838( exit $ac_status ) 6839ac_cv_header_stdc=no 6840fi 6841rm -rf conftest.dSYM 6842rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6843fi 6844 6845 6846fi 6847fi 6848{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6849$as_echo "$ac_cv_header_stdc" >&6; } 6850if test $ac_cv_header_stdc = yes; then 6851 6852cat >>confdefs.h <<\_ACEOF 6853#define STDC_HEADERS 1 6854_ACEOF 6855 6856fi 6857 6858# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6869 inttypes.h stdint.h unistd.h 6870do 6871as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6872{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6873$as_echo_n "checking for $ac_header... " >&6; } 6874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6875 $as_echo_n "(cached) " >&6 6876else 6877 cat >conftest.$ac_ext <<_ACEOF 6878/* confdefs.h. */ 6879_ACEOF 6880cat confdefs.h >>conftest.$ac_ext 6881cat >>conftest.$ac_ext <<_ACEOF 6882/* end confdefs.h. */ 6883$ac_includes_default 6884 6885#include <$ac_header> 6886_ACEOF 6887rm -f conftest.$ac_objext 6888if { (ac_try="$ac_compile" 6889case "(($ac_try" in 6890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6891 *) ac_try_echo=$ac_try;; 6892esac 6893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6894$as_echo "$ac_try_echo") >&5 6895 (eval "$ac_compile") 2>conftest.er1 6896 ac_status=$? 6897 grep -v '^ *+' conftest.er1 >conftest.err 6898 rm -f conftest.er1 6899 cat conftest.err >&5 6900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6901 (exit $ac_status); } && { 6902 test -z "$ac_c_werror_flag" || 6903 test ! -s conftest.err 6904 } && test -s conftest.$ac_objext; then 6905 eval "$as_ac_Header=yes" 6906else 6907 $as_echo "$as_me: failed program was:" >&5 6908sed 's/^/| /' conftest.$ac_ext >&5 6909 6910 eval "$as_ac_Header=no" 6911fi 6912 6913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6914fi 6915ac_res=`eval 'as_val=${'$as_ac_Header'} 6916 $as_echo "$as_val"'` 6917 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6918$as_echo "$ac_res" >&6; } 6919as_val=`eval 'as_val=${'$as_ac_Header'} 6920 $as_echo "$as_val"'` 6921 if test "x$as_val" = x""yes; then 6922 cat >>confdefs.h <<_ACEOF 6923#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6924_ACEOF 6925 6926fi 6927 6928done 6929 6930 6931 6932for ac_header in dlfcn.h 6933do 6934as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6935{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6936$as_echo_n "checking for $ac_header... " >&6; } 6937if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6938 $as_echo_n "(cached) " >&6 6939else 6940 cat >conftest.$ac_ext <<_ACEOF 6941/* confdefs.h. */ 6942_ACEOF 6943cat confdefs.h >>conftest.$ac_ext 6944cat >>conftest.$ac_ext <<_ACEOF 6945/* end confdefs.h. */ 6946$ac_includes_default 6947 6948#include <$ac_header> 6949_ACEOF 6950rm -f conftest.$ac_objext 6951if { (ac_try="$ac_compile" 6952case "(($ac_try" in 6953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6954 *) ac_try_echo=$ac_try;; 6955esac 6956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6957$as_echo "$ac_try_echo") >&5 6958 (eval "$ac_compile") 2>conftest.er1 6959 ac_status=$? 6960 grep -v '^ *+' conftest.er1 >conftest.err 6961 rm -f conftest.er1 6962 cat conftest.err >&5 6963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6964 (exit $ac_status); } && { 6965 test -z "$ac_c_werror_flag" || 6966 test ! -s conftest.err 6967 } && test -s conftest.$ac_objext; then 6968 eval "$as_ac_Header=yes" 6969else 6970 $as_echo "$as_me: failed program was:" >&5 6971sed 's/^/| /' conftest.$ac_ext >&5 6972 6973 eval "$as_ac_Header=no" 6974fi 6975 6976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6977fi 6978ac_res=`eval 'as_val=${'$as_ac_Header'} 6979 $as_echo "$as_val"'` 6980 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6981$as_echo "$ac_res" >&6; } 6982as_val=`eval 'as_val=${'$as_ac_Header'} 6983 $as_echo "$as_val"'` 6984 if test "x$as_val" = x""yes; then 6985 cat >>confdefs.h <<_ACEOF 6986#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6987_ACEOF 6988 6989fi 6990 6991done 6992 6993 6994 6995# Set options 6996 6997 6998 6999 enable_dlopen=no 7000 7001 7002 enable_win32_dll=no 7003 7004 7005 # Check whether --enable-shared was given. 7006if test "${enable_shared+set}" = set; then 7007 enableval=$enable_shared; p=${PACKAGE-default} 7008 case $enableval in 7009 yes) enable_shared=yes ;; 7010 no) enable_shared=no ;; 7011 *) 7012 enable_shared=no 7013 # Look at the argument we got. We use all the common list separators. 7014 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7015 for pkg in $enableval; do 7016 IFS="$lt_save_ifs" 7017 if test "X$pkg" = "X$p"; then 7018 enable_shared=yes 7019 fi 7020 done 7021 IFS="$lt_save_ifs" 7022 ;; 7023 esac 7024else 7025 enable_shared=yes 7026fi 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038# Check whether --with-pic was given. 7039if test "${with_pic+set}" = set; then 7040 withval=$with_pic; pic_mode="$withval" 7041else 7042 pic_mode=default 7043fi 7044 7045 7046test -z "$pic_mode" && pic_mode=default 7047 7048 7049 7050 7051 7052 7053 7054 # Check whether --enable-fast-install was given. 7055if test "${enable_fast_install+set}" = set; then 7056 enableval=$enable_fast_install; p=${PACKAGE-default} 7057 case $enableval in 7058 yes) enable_fast_install=yes ;; 7059 no) enable_fast_install=no ;; 7060 *) 7061 enable_fast_install=no 7062 # Look at the argument we got. We use all the common list separators. 7063 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7064 for pkg in $enableval; do 7065 IFS="$lt_save_ifs" 7066 if test "X$pkg" = "X$p"; then 7067 enable_fast_install=yes 7068 fi 7069 done 7070 IFS="$lt_save_ifs" 7071 ;; 7072 esac 7073else 7074 enable_fast_install=yes 7075fi 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087# This can be used to rebuild libtool when needed 7088LIBTOOL_DEPS="$ltmain" 7089 7090# Always use our own libtool. 7091LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117test -z "$LN_S" && LN_S="ln -s" 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132if test -n "${ZSH_VERSION+set}" ; then 7133 setopt NO_GLOB_SUBST 7134fi 7135 7136{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 7137$as_echo_n "checking for objdir... " >&6; } 7138if test "${lt_cv_objdir+set}" = set; then 7139 $as_echo_n "(cached) " >&6 7140else 7141 rm -f .libs 2>/dev/null 7142mkdir .libs 2>/dev/null 7143if test -d .libs; then 7144 lt_cv_objdir=.libs 7145else 7146 # MS-DOS does not allow filenames that begin with a dot. 7147 lt_cv_objdir=_libs 7148fi 7149rmdir .libs 2>/dev/null 7150fi 7151{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7152$as_echo "$lt_cv_objdir" >&6; } 7153objdir=$lt_cv_objdir 7154 7155 7156 7157 7158 7159cat >>confdefs.h <<_ACEOF 7160#define LT_OBJDIR "$lt_cv_objdir/" 7161_ACEOF 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179case $host_os in 7180aix3*) 7181 # AIX sometimes has problems with the GCC collect2 program. For some 7182 # reason, if we set the COLLECT_NAMES environment variable, the problems 7183 # vanish in a puff of smoke. 7184 if test "X${COLLECT_NAMES+set}" != Xset; then 7185 COLLECT_NAMES= 7186 export COLLECT_NAMES 7187 fi 7188 ;; 7189esac 7190 7191# Sed substitution that helps us do robust quoting. It backslashifies 7192# metacharacters that are still active within double-quoted strings. 7193sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7194 7195# Same as above, but do not quote variable references. 7196double_quote_subst='s/\(["`\\]\)/\\\1/g' 7197 7198# Sed substitution to delay expansion of an escaped shell variable in a 7199# double_quote_subst'ed string. 7200delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7201 7202# Sed substitution to delay expansion of an escaped single quote. 7203delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7204 7205# Sed substitution to avoid accidental globbing in evaled expressions 7206no_glob_subst='s/\*/\\\*/g' 7207 7208# Global variables: 7209ofile=libtool 7210can_build_shared=yes 7211 7212# All known linkers require a `.a' archive for static linking (except MSVC, 7213# which needs '.lib'). 7214libext=a 7215 7216with_gnu_ld="$lt_cv_prog_gnu_ld" 7217 7218old_CC="$CC" 7219old_CFLAGS="$CFLAGS" 7220 7221# Set sane defaults for various variables 7222test -z "$CC" && CC=cc 7223test -z "$LTCC" && LTCC=$CC 7224test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7225test -z "$LD" && LD=ld 7226test -z "$ac_objext" && ac_objext=o 7227 7228for cc_temp in $compiler""; do 7229 case $cc_temp in 7230 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7231 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7232 \-*) ;; 7233 *) break;; 7234 esac 7235done 7236cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7237 7238 7239# Only perform the check for file, if the check method requires it 7240test -z "$MAGIC_CMD" && MAGIC_CMD=file 7241case $deplibs_check_method in 7242file_magic*) 7243 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7244 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7245$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7246if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7247 $as_echo_n "(cached) " >&6 7248else 7249 case $MAGIC_CMD in 7250[\\/*] | ?:[\\/]*) 7251 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7252 ;; 7253*) 7254 lt_save_MAGIC_CMD="$MAGIC_CMD" 7255 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7256 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7257 for ac_dir in $ac_dummy; do 7258 IFS="$lt_save_ifs" 7259 test -z "$ac_dir" && ac_dir=. 7260 if test -f $ac_dir/${ac_tool_prefix}file; then 7261 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7262 if test -n "$file_magic_test_file"; then 7263 case $deplibs_check_method in 7264 "file_magic "*) 7265 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7266 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7267 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7268 $EGREP "$file_magic_regex" > /dev/null; then 7269 : 7270 else 7271 cat <<_LT_EOF 1>&2 7272 7273*** Warning: the command libtool uses to detect shared libraries, 7274*** $file_magic_cmd, produces output that libtool cannot recognize. 7275*** The result is that libtool may fail to recognize shared libraries 7276*** as such. This will affect the creation of libtool libraries that 7277*** depend on shared libraries, but programs linked with such libtool 7278*** libraries will work regardless of this problem. Nevertheless, you 7279*** may want to report the problem to your system manager and/or to 7280*** bug-libtool@gnu.org 7281 7282_LT_EOF 7283 fi ;; 7284 esac 7285 fi 7286 break 7287 fi 7288 done 7289 IFS="$lt_save_ifs" 7290 MAGIC_CMD="$lt_save_MAGIC_CMD" 7291 ;; 7292esac 7293fi 7294 7295MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7296if test -n "$MAGIC_CMD"; then 7297 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7298$as_echo "$MAGIC_CMD" >&6; } 7299else 7300 { $as_echo "$as_me:$LINENO: result: no" >&5 7301$as_echo "no" >&6; } 7302fi 7303 7304 7305 7306 7307 7308if test -z "$lt_cv_path_MAGIC_CMD"; then 7309 if test -n "$ac_tool_prefix"; then 7310 { $as_echo "$as_me:$LINENO: checking for file" >&5 7311$as_echo_n "checking for file... " >&6; } 7312if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7313 $as_echo_n "(cached) " >&6 7314else 7315 case $MAGIC_CMD in 7316[\\/*] | ?:[\\/]*) 7317 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7318 ;; 7319*) 7320 lt_save_MAGIC_CMD="$MAGIC_CMD" 7321 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7322 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7323 for ac_dir in $ac_dummy; do 7324 IFS="$lt_save_ifs" 7325 test -z "$ac_dir" && ac_dir=. 7326 if test -f $ac_dir/file; then 7327 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7328 if test -n "$file_magic_test_file"; then 7329 case $deplibs_check_method in 7330 "file_magic "*) 7331 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7332 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7333 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7334 $EGREP "$file_magic_regex" > /dev/null; then 7335 : 7336 else 7337 cat <<_LT_EOF 1>&2 7338 7339*** Warning: the command libtool uses to detect shared libraries, 7340*** $file_magic_cmd, produces output that libtool cannot recognize. 7341*** The result is that libtool may fail to recognize shared libraries 7342*** as such. This will affect the creation of libtool libraries that 7343*** depend on shared libraries, but programs linked with such libtool 7344*** libraries will work regardless of this problem. Nevertheless, you 7345*** may want to report the problem to your system manager and/or to 7346*** bug-libtool@gnu.org 7347 7348_LT_EOF 7349 fi ;; 7350 esac 7351 fi 7352 break 7353 fi 7354 done 7355 IFS="$lt_save_ifs" 7356 MAGIC_CMD="$lt_save_MAGIC_CMD" 7357 ;; 7358esac 7359fi 7360 7361MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7362if test -n "$MAGIC_CMD"; then 7363 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7364$as_echo "$MAGIC_CMD" >&6; } 7365else 7366 { $as_echo "$as_me:$LINENO: result: no" >&5 7367$as_echo "no" >&6; } 7368fi 7369 7370 7371 else 7372 MAGIC_CMD=: 7373 fi 7374fi 7375 7376 fi 7377 ;; 7378esac 7379 7380# Use C for the default configuration in the libtool script 7381 7382lt_save_CC="$CC" 7383ac_ext=c 7384ac_cpp='$CPP $CPPFLAGS' 7385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7387ac_compiler_gnu=$ac_cv_c_compiler_gnu 7388 7389 7390# Source file extension for C test sources. 7391ac_ext=c 7392 7393# Object file extension for compiled C test sources. 7394objext=o 7395objext=$objext 7396 7397# Code to be used in simple compile tests 7398lt_simple_compile_test_code="int some_variable = 0;" 7399 7400# Code to be used in simple link tests 7401lt_simple_link_test_code='int main(){return(0);}' 7402 7403 7404 7405 7406 7407 7408 7409# If no C compiler was specified, use CC. 7410LTCC=${LTCC-"$CC"} 7411 7412# If no C compiler flags were specified, use CFLAGS. 7413LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7414 7415# Allow CC to be a program name with arguments. 7416compiler=$CC 7417 7418# Save the default compiler, since it gets overwritten when the other 7419# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7420compiler_DEFAULT=$CC 7421 7422# save warnings/boilerplate of simple test code 7423ac_outfile=conftest.$ac_objext 7424echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7425eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7426_lt_compiler_boilerplate=`cat conftest.err` 7427$RM conftest* 7428 7429ac_outfile=conftest.$ac_objext 7430echo "$lt_simple_link_test_code" >conftest.$ac_ext 7431eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7432_lt_linker_boilerplate=`cat conftest.err` 7433$RM -r conftest* 7434 7435 7436if test -n "$compiler"; then 7437 7438lt_prog_compiler_no_builtin_flag= 7439 7440if test "$GCC" = yes; then 7441 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7442 7443 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7444$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7445if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7446 $as_echo_n "(cached) " >&6 7447else 7448 lt_cv_prog_compiler_rtti_exceptions=no 7449 ac_outfile=conftest.$ac_objext 7450 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7451 lt_compiler_flag="-fno-rtti -fno-exceptions" 7452 # Insert the option either (1) after the last *FLAGS variable, or 7453 # (2) before a word containing "conftest.", or (3) at the end. 7454 # Note that $ac_compile itself does not contain backslashes and begins 7455 # with a dollar sign (not a hyphen), so the echo should work correctly. 7456 # The option is referenced via a variable to avoid confusing sed. 7457 lt_compile=`echo "$ac_compile" | $SED \ 7458 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7459 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7460 -e 's:$: $lt_compiler_flag:'` 7461 (eval echo "\"\$as_me:7461: $lt_compile\"" >&5) 7462 (eval "$lt_compile" 2>conftest.err) 7463 ac_status=$? 7464 cat conftest.err >&5 7465 echo "$as_me:7465: \$? = $ac_status" >&5 7466 if (exit $ac_status) && test -s "$ac_outfile"; then 7467 # The compiler can only warn and ignore the option if not recognized 7468 # So say no if there are warnings other than the usual output. 7469 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7470 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7471 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7472 lt_cv_prog_compiler_rtti_exceptions=yes 7473 fi 7474 fi 7475 $RM conftest* 7476 7477fi 7478{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7479$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7480 7481if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7482 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7483else 7484 : 7485fi 7486 7487fi 7488 7489 7490 7491 7492 7493 7494 lt_prog_compiler_wl= 7495lt_prog_compiler_pic= 7496lt_prog_compiler_static= 7497 7498{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7499$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7500 7501 if test "$GCC" = yes; then 7502 lt_prog_compiler_wl='-Wl,' 7503 lt_prog_compiler_static='-static' 7504 7505 case $host_os in 7506 aix*) 7507 # All AIX code is PIC. 7508 if test "$host_cpu" = ia64; then 7509 # AIX 5 now supports IA64 processor 7510 lt_prog_compiler_static='-Bstatic' 7511 fi 7512 ;; 7513 7514 amigaos*) 7515 case $host_cpu in 7516 powerpc) 7517 # see comment about AmigaOS4 .so support 7518 lt_prog_compiler_pic='-fPIC' 7519 ;; 7520 m68k) 7521 # FIXME: we need at least 68020 code to build shared libraries, but 7522 # adding the `-m68020' flag to GCC prevents building anything better, 7523 # like `-m68040'. 7524 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7525 ;; 7526 esac 7527 ;; 7528 7529 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7530 # PIC is the default for these OSes. 7531 ;; 7532 7533 mingw* | cygwin* | pw32* | os2* | cegcc*) 7534 # This hack is so that the source file can tell whether it is being 7535 # built for inclusion in a dll (and should export symbols for example). 7536 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7537 # (--disable-auto-import) libraries 7538 lt_prog_compiler_pic='-DDLL_EXPORT' 7539 ;; 7540 7541 darwin* | rhapsody*) 7542 # PIC is the default on this platform 7543 # Common symbols not allowed in MH_DYLIB files 7544 lt_prog_compiler_pic='-fno-common' 7545 ;; 7546 7547 hpux*) 7548 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7549 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7550 # sets the default TLS model and affects inlining. 7551 case $host_cpu in 7552 hppa*64*) 7553 # +Z the default 7554 ;; 7555 *) 7556 lt_prog_compiler_pic='-fPIC' 7557 ;; 7558 esac 7559 ;; 7560 7561 interix[3-9]*) 7562 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7563 # Instead, we relocate shared libraries at runtime. 7564 ;; 7565 7566 msdosdjgpp*) 7567 # Just because we use GCC doesn't mean we suddenly get shared libraries 7568 # on systems that don't support them. 7569 lt_prog_compiler_can_build_shared=no 7570 enable_shared=no 7571 ;; 7572 7573 *nto* | *qnx*) 7574 # QNX uses GNU C++, but need to define -shared option too, otherwise 7575 # it will coredump. 7576 lt_prog_compiler_pic='-fPIC -shared' 7577 ;; 7578 7579 sysv4*MP*) 7580 if test -d /usr/nec; then 7581 lt_prog_compiler_pic=-Kconform_pic 7582 fi 7583 ;; 7584 7585 *) 7586 lt_prog_compiler_pic='-fPIC' 7587 ;; 7588 esac 7589 else 7590 # PORTME Check for flag to pass linker flags through the system compiler. 7591 case $host_os in 7592 aix*) 7593 lt_prog_compiler_wl='-Wl,' 7594 if test "$host_cpu" = ia64; then 7595 # AIX 5 now supports IA64 processor 7596 lt_prog_compiler_static='-Bstatic' 7597 else 7598 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7599 fi 7600 ;; 7601 7602 mingw* | cygwin* | pw32* | os2* | cegcc*) 7603 # This hack is so that the source file can tell whether it is being 7604 # built for inclusion in a dll (and should export symbols for example). 7605 lt_prog_compiler_pic='-DDLL_EXPORT' 7606 ;; 7607 7608 hpux9* | hpux10* | hpux11*) 7609 lt_prog_compiler_wl='-Wl,' 7610 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7611 # not for PA HP-UX. 7612 case $host_cpu in 7613 hppa*64*|ia64*) 7614 # +Z the default 7615 ;; 7616 *) 7617 lt_prog_compiler_pic='+Z' 7618 ;; 7619 esac 7620 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7621 lt_prog_compiler_static='${wl}-a ${wl}archive' 7622 ;; 7623 7624 irix5* | irix6* | nonstopux*) 7625 lt_prog_compiler_wl='-Wl,' 7626 # PIC (with -KPIC) is the default. 7627 lt_prog_compiler_static='-non_shared' 7628 ;; 7629 7630 linux* | k*bsd*-gnu) 7631 case $cc_basename in 7632 # old Intel for x86_64 which still supported -KPIC. 7633 ecc*) 7634 lt_prog_compiler_wl='-Wl,' 7635 lt_prog_compiler_pic='-KPIC' 7636 lt_prog_compiler_static='-static' 7637 ;; 7638 # icc used to be incompatible with GCC. 7639 # ICC 10 doesn't accept -KPIC any more. 7640 icc* | ifort*) 7641 lt_prog_compiler_wl='-Wl,' 7642 lt_prog_compiler_pic='-fPIC' 7643 lt_prog_compiler_static='-static' 7644 ;; 7645 # Lahey Fortran 8.1. 7646 lf95*) 7647 lt_prog_compiler_wl='-Wl,' 7648 lt_prog_compiler_pic='--shared' 7649 lt_prog_compiler_static='--static' 7650 ;; 7651 pgcc* | pgf77* | pgf90* | pgf95*) 7652 # Portland Group compilers (*not* the Pentium gcc compiler, 7653 # which looks to be a dead project) 7654 lt_prog_compiler_wl='-Wl,' 7655 lt_prog_compiler_pic='-fpic' 7656 lt_prog_compiler_static='-Bstatic' 7657 ;; 7658 ccc*) 7659 lt_prog_compiler_wl='-Wl,' 7660 # All Alpha code is PIC. 7661 lt_prog_compiler_static='-non_shared' 7662 ;; 7663 xl*) 7664 # IBM XL C 8.0/Fortran 10.1 on PPC 7665 lt_prog_compiler_wl='-Wl,' 7666 lt_prog_compiler_pic='-qpic' 7667 lt_prog_compiler_static='-qstaticlink' 7668 ;; 7669 *) 7670 case `$CC -V 2>&1 | sed 5q` in 7671 *Sun\ C*) 7672 # Sun C 5.9 7673 lt_prog_compiler_pic='-KPIC' 7674 lt_prog_compiler_static='-Bstatic' 7675 lt_prog_compiler_wl='-Wl,' 7676 ;; 7677 *Sun\ F*) 7678 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7679 lt_prog_compiler_pic='-KPIC' 7680 lt_prog_compiler_static='-Bstatic' 7681 lt_prog_compiler_wl='' 7682 ;; 7683 esac 7684 ;; 7685 esac 7686 ;; 7687 7688 newsos6) 7689 lt_prog_compiler_pic='-KPIC' 7690 lt_prog_compiler_static='-Bstatic' 7691 ;; 7692 7693 *nto* | *qnx*) 7694 # QNX uses GNU C++, but need to define -shared option too, otherwise 7695 # it will coredump. 7696 lt_prog_compiler_pic='-fPIC -shared' 7697 ;; 7698 7699 osf3* | osf4* | osf5*) 7700 lt_prog_compiler_wl='-Wl,' 7701 # All OSF/1 code is PIC. 7702 lt_prog_compiler_static='-non_shared' 7703 ;; 7704 7705 rdos*) 7706 lt_prog_compiler_static='-non_shared' 7707 ;; 7708 7709 solaris*) 7710 lt_prog_compiler_pic='-KPIC' 7711 lt_prog_compiler_static='-Bstatic' 7712 case $cc_basename in 7713 f77* | f90* | f95*) 7714 lt_prog_compiler_wl='-Qoption ld ';; 7715 *) 7716 lt_prog_compiler_wl='-Wl,';; 7717 esac 7718 ;; 7719 7720 sunos4*) 7721 lt_prog_compiler_wl='-Qoption ld ' 7722 lt_prog_compiler_pic='-PIC' 7723 lt_prog_compiler_static='-Bstatic' 7724 ;; 7725 7726 sysv4 | sysv4.2uw2* | sysv4.3*) 7727 lt_prog_compiler_wl='-Wl,' 7728 lt_prog_compiler_pic='-KPIC' 7729 lt_prog_compiler_static='-Bstatic' 7730 ;; 7731 7732 sysv4*MP*) 7733 if test -d /usr/nec ;then 7734 lt_prog_compiler_pic='-Kconform_pic' 7735 lt_prog_compiler_static='-Bstatic' 7736 fi 7737 ;; 7738 7739 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7740 lt_prog_compiler_wl='-Wl,' 7741 lt_prog_compiler_pic='-KPIC' 7742 lt_prog_compiler_static='-Bstatic' 7743 ;; 7744 7745 unicos*) 7746 lt_prog_compiler_wl='-Wl,' 7747 lt_prog_compiler_can_build_shared=no 7748 ;; 7749 7750 uts4*) 7751 lt_prog_compiler_pic='-pic' 7752 lt_prog_compiler_static='-Bstatic' 7753 ;; 7754 7755 *) 7756 lt_prog_compiler_can_build_shared=no 7757 ;; 7758 esac 7759 fi 7760 7761case $host_os in 7762 # For platforms which do not support PIC, -DPIC is meaningless: 7763 *djgpp*) 7764 lt_prog_compiler_pic= 7765 ;; 7766 *) 7767 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7768 ;; 7769esac 7770{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7771$as_echo "$lt_prog_compiler_pic" >&6; } 7772 7773 7774 7775 7776 7777 7778# 7779# Check to make sure the PIC flag actually works. 7780# 7781if test -n "$lt_prog_compiler_pic"; then 7782 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7783$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7784if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7785 $as_echo_n "(cached) " >&6 7786else 7787 lt_cv_prog_compiler_pic_works=no 7788 ac_outfile=conftest.$ac_objext 7789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7790 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7791 # Insert the option either (1) after the last *FLAGS variable, or 7792 # (2) before a word containing "conftest.", or (3) at the end. 7793 # Note that $ac_compile itself does not contain backslashes and begins 7794 # with a dollar sign (not a hyphen), so the echo should work correctly. 7795 # The option is referenced via a variable to avoid confusing sed. 7796 lt_compile=`echo "$ac_compile" | $SED \ 7797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7799 -e 's:$: $lt_compiler_flag:'` 7800 (eval echo "\"\$as_me:7800: $lt_compile\"" >&5) 7801 (eval "$lt_compile" 2>conftest.err) 7802 ac_status=$? 7803 cat conftest.err >&5 7804 echo "$as_me:7804: \$? = $ac_status" >&5 7805 if (exit $ac_status) && test -s "$ac_outfile"; then 7806 # The compiler can only warn and ignore the option if not recognized 7807 # So say no if there are warnings other than the usual output. 7808 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7810 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7811 lt_cv_prog_compiler_pic_works=yes 7812 fi 7813 fi 7814 $RM conftest* 7815 7816fi 7817{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7818$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7819 7820if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7821 case $lt_prog_compiler_pic in 7822 "" | " "*) ;; 7823 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7824 esac 7825else 7826 lt_prog_compiler_pic= 7827 lt_prog_compiler_can_build_shared=no 7828fi 7829 7830fi 7831 7832 7833 7834 7835 7836 7837# 7838# Check to make sure the static flag actually works. 7839# 7840wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7841{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7842$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7843if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7844 $as_echo_n "(cached) " >&6 7845else 7846 lt_cv_prog_compiler_static_works=no 7847 save_LDFLAGS="$LDFLAGS" 7848 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7849 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7850 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7851 # The linker can only warn and ignore the option if not recognized 7852 # So say no if there are warnings 7853 if test -s conftest.err; then 7854 # Append any errors to the config.log. 7855 cat conftest.err 1>&5 7856 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7857 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7858 if diff conftest.exp conftest.er2 >/dev/null; then 7859 lt_cv_prog_compiler_static_works=yes 7860 fi 7861 else 7862 lt_cv_prog_compiler_static_works=yes 7863 fi 7864 fi 7865 $RM -r conftest* 7866 LDFLAGS="$save_LDFLAGS" 7867 7868fi 7869{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7870$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7871 7872if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7873 : 7874else 7875 lt_prog_compiler_static= 7876fi 7877 7878 7879 7880 7881 7882 7883 7884 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7885$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7886if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7887 $as_echo_n "(cached) " >&6 7888else 7889 lt_cv_prog_compiler_c_o=no 7890 $RM -r conftest 2>/dev/null 7891 mkdir conftest 7892 cd conftest 7893 mkdir out 7894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7895 7896 lt_compiler_flag="-o out/conftest2.$ac_objext" 7897 # Insert the option either (1) after the last *FLAGS variable, or 7898 # (2) before a word containing "conftest.", or (3) at the end. 7899 # Note that $ac_compile itself does not contain backslashes and begins 7900 # with a dollar sign (not a hyphen), so the echo should work correctly. 7901 lt_compile=`echo "$ac_compile" | $SED \ 7902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7904 -e 's:$: $lt_compiler_flag:'` 7905 (eval echo "\"\$as_me:7905: $lt_compile\"" >&5) 7906 (eval "$lt_compile" 2>out/conftest.err) 7907 ac_status=$? 7908 cat out/conftest.err >&5 7909 echo "$as_me:7909: \$? = $ac_status" >&5 7910 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7911 then 7912 # The compiler can only warn and ignore the option if not recognized 7913 # So say no if there are warnings 7914 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7915 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7916 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7917 lt_cv_prog_compiler_c_o=yes 7918 fi 7919 fi 7920 chmod u+w . 2>&5 7921 $RM conftest* 7922 # SGI C++ compiler will create directory out/ii_files/ for 7923 # template instantiation 7924 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7925 $RM out/* && rmdir out 7926 cd .. 7927 $RM -r conftest 7928 $RM conftest* 7929 7930fi 7931{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7932$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7933 7934 7935 7936 7937 7938 7939 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7940$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7941if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7942 $as_echo_n "(cached) " >&6 7943else 7944 lt_cv_prog_compiler_c_o=no 7945 $RM -r conftest 2>/dev/null 7946 mkdir conftest 7947 cd conftest 7948 mkdir out 7949 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7950 7951 lt_compiler_flag="-o out/conftest2.$ac_objext" 7952 # Insert the option either (1) after the last *FLAGS variable, or 7953 # (2) before a word containing "conftest.", or (3) at the end. 7954 # Note that $ac_compile itself does not contain backslashes and begins 7955 # with a dollar sign (not a hyphen), so the echo should work correctly. 7956 lt_compile=`echo "$ac_compile" | $SED \ 7957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7959 -e 's:$: $lt_compiler_flag:'` 7960 (eval echo "\"\$as_me:7960: $lt_compile\"" >&5) 7961 (eval "$lt_compile" 2>out/conftest.err) 7962 ac_status=$? 7963 cat out/conftest.err >&5 7964 echo "$as_me:7964: \$? = $ac_status" >&5 7965 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7966 then 7967 # The compiler can only warn and ignore the option if not recognized 7968 # So say no if there are warnings 7969 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7970 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7971 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7972 lt_cv_prog_compiler_c_o=yes 7973 fi 7974 fi 7975 chmod u+w . 2>&5 7976 $RM conftest* 7977 # SGI C++ compiler will create directory out/ii_files/ for 7978 # template instantiation 7979 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7980 $RM out/* && rmdir out 7981 cd .. 7982 $RM -r conftest 7983 $RM conftest* 7984 7985fi 7986{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7987$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7988 7989 7990 7991 7992hard_links="nottested" 7993if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7994 # do not overwrite the value of need_locks provided by the user 7995 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7996$as_echo_n "checking if we can lock with hard links... " >&6; } 7997 hard_links=yes 7998 $RM conftest* 7999 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8000 touch conftest.a 8001 ln conftest.a conftest.b 2>&5 || hard_links=no 8002 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8003 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8004$as_echo "$hard_links" >&6; } 8005 if test "$hard_links" = no; then 8006 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8007$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8008 need_locks=warn 8009 fi 8010else 8011 need_locks=no 8012fi 8013 8014 8015 8016 8017 8018 8019 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8020$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8021 8022 runpath_var= 8023 allow_undefined_flag= 8024 always_export_symbols=no 8025 archive_cmds= 8026 archive_expsym_cmds= 8027 compiler_needs_object=no 8028 enable_shared_with_static_runtimes=no 8029 export_dynamic_flag_spec= 8030 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8031 hardcode_automatic=no 8032 hardcode_direct=no 8033 hardcode_direct_absolute=no 8034 hardcode_libdir_flag_spec= 8035 hardcode_libdir_flag_spec_ld= 8036 hardcode_libdir_separator= 8037 hardcode_minus_L=no 8038 hardcode_shlibpath_var=unsupported 8039 inherit_rpath=no 8040 link_all_deplibs=unknown 8041 module_cmds= 8042 module_expsym_cmds= 8043 old_archive_from_new_cmds= 8044 old_archive_from_expsyms_cmds= 8045 thread_safe_flag_spec= 8046 whole_archive_flag_spec= 8047 # include_expsyms should be a list of space-separated symbols to be *always* 8048 # included in the symbol list 8049 include_expsyms= 8050 # exclude_expsyms can be an extended regexp of symbols to exclude 8051 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8052 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8053 # as well as any symbol that contains `d'. 8054 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8055 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8056 # platforms (ab)use it in PIC code, but their linkers get confused if 8057 # the symbol is explicitly referenced. Since portable code cannot 8058 # rely on this symbol name, it's probably fine to never include it in 8059 # preloaded symbol tables. 8060 # Exclude shared library initialization/finalization symbols. 8061 extract_expsyms_cmds= 8062 8063 case $host_os in 8064 cygwin* | mingw* | pw32* | cegcc*) 8065 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8066 # When not using gcc, we currently assume that we are using 8067 # Microsoft Visual C++. 8068 if test "$GCC" != yes; then 8069 with_gnu_ld=no 8070 fi 8071 ;; 8072 interix*) 8073 # we just hope/assume this is gcc and not c89 (= MSVC++) 8074 with_gnu_ld=yes 8075 ;; 8076 openbsd*) 8077 with_gnu_ld=no 8078 ;; 8079 esac 8080 8081 ld_shlibs=yes 8082 if test "$with_gnu_ld" = yes; then 8083 # If archive_cmds runs LD, not CC, wlarc should be empty 8084 wlarc='${wl}' 8085 8086 # Set some defaults for GNU ld with shared library support. These 8087 # are reset later if shared libraries are not supported. Putting them 8088 # here allows them to be overridden if necessary. 8089 runpath_var=LD_RUN_PATH 8090 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8091 export_dynamic_flag_spec='${wl}--export-dynamic' 8092 # ancient GNU ld didn't support --whole-archive et. al. 8093 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8094 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8095 else 8096 whole_archive_flag_spec= 8097 fi 8098 supports_anon_versioning=no 8099 case `$LD -v 2>&1` in 8100 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8101 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8102 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8103 *\ 2.11.*) ;; # other 2.11 versions 8104 *) supports_anon_versioning=yes ;; 8105 esac 8106 8107 # See if GNU ld supports shared libraries. 8108 case $host_os in 8109 aix[3-9]*) 8110 # On AIX/PPC, the GNU linker is very broken 8111 if test "$host_cpu" != ia64; then 8112 ld_shlibs=no 8113 cat <<_LT_EOF 1>&2 8114 8115*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8116*** to be unable to reliably create shared libraries on AIX. 8117*** Therefore, libtool is disabling shared libraries support. If you 8118*** really care for shared libraries, you may want to modify your PATH 8119*** so that a non-GNU linker is found, and then restart. 8120 8121_LT_EOF 8122 fi 8123 ;; 8124 8125 amigaos*) 8126 case $host_cpu in 8127 powerpc) 8128 # see comment about AmigaOS4 .so support 8129 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8130 archive_expsym_cmds='' 8131 ;; 8132 m68k) 8133 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)' 8134 hardcode_libdir_flag_spec='-L$libdir' 8135 hardcode_minus_L=yes 8136 ;; 8137 esac 8138 ;; 8139 8140 beos*) 8141 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8142 allow_undefined_flag=unsupported 8143 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8144 # support --undefined. This deserves some investigation. FIXME 8145 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8146 else 8147 ld_shlibs=no 8148 fi 8149 ;; 8150 8151 cygwin* | mingw* | pw32* | cegcc*) 8152 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8153 # as there is no search path for DLLs. 8154 hardcode_libdir_flag_spec='-L$libdir' 8155 allow_undefined_flag=unsupported 8156 always_export_symbols=no 8157 enable_shared_with_static_runtimes=yes 8158 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8159 8160 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8162 # If the export-symbols file already is a .def file (1st line 8163 # is EXPORTS), use it as is; otherwise, prepend... 8164 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8165 cp $export_symbols $output_objdir/$soname.def; 8166 else 8167 echo EXPORTS > $output_objdir/$soname.def; 8168 cat $export_symbols >> $output_objdir/$soname.def; 8169 fi~ 8170 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8171 else 8172 ld_shlibs=no 8173 fi 8174 ;; 8175 8176 interix[3-9]*) 8177 hardcode_direct=no 8178 hardcode_shlibpath_var=no 8179 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8180 export_dynamic_flag_spec='${wl}-E' 8181 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8182 # Instead, shared libraries are loaded at an image base (0x10000000 by 8183 # default) and relocated if they conflict, which is a slow very memory 8184 # consuming and fragmenting process. To avoid this, we pick a random, 8185 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8186 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8187 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8188 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' 8189 ;; 8190 8191 gnu* | linux* | tpf* | k*bsd*-gnu) 8192 tmp_diet=no 8193 if test "$host_os" = linux-dietlibc; then 8194 case $cc_basename in 8195 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8196 esac 8197 fi 8198 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8199 && test "$tmp_diet" = no 8200 then 8201 tmp_addflag= 8202 tmp_sharedflag='-shared' 8203 case $cc_basename,$host_cpu in 8204 pgcc*) # Portland Group C compiler 8205 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' 8206 tmp_addflag=' $pic_flag' 8207 ;; 8208 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8209 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' 8210 tmp_addflag=' $pic_flag -Mnomain' ;; 8211 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8212 tmp_addflag=' -i_dynamic' ;; 8213 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8214 tmp_addflag=' -i_dynamic -nofor_main' ;; 8215 ifc* | ifort*) # Intel Fortran compiler 8216 tmp_addflag=' -nofor_main' ;; 8217 lf95*) # Lahey Fortran 8.1 8218 whole_archive_flag_spec= 8219 tmp_sharedflag='--shared' ;; 8220 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8221 tmp_sharedflag='-qmkshrobj' 8222 tmp_addflag= ;; 8223 esac 8224 case `$CC -V 2>&1 | sed 5q` in 8225 *Sun\ C*) # Sun C 5.9 8226 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' 8227 compiler_needs_object=yes 8228 tmp_sharedflag='-G' ;; 8229 *Sun\ F*) # Sun Fortran 8.3 8230 tmp_sharedflag='-G' ;; 8231 esac 8232 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8233 8234 if test "x$supports_anon_versioning" = xyes; then 8235 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8236 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8237 echo "local: *; };" >> $output_objdir/$libname.ver~ 8238 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8239 fi 8240 8241 case $cc_basename in 8242 xlf*) 8243 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8244 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8245 hardcode_libdir_flag_spec= 8246 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8247 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8248 if test "x$supports_anon_versioning" = xyes; then 8249 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8250 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8251 echo "local: *; };" >> $output_objdir/$libname.ver~ 8252 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8253 fi 8254 ;; 8255 esac 8256 else 8257 ld_shlibs=no 8258 fi 8259 ;; 8260 8261 netbsd* | netbsdelf*-gnu) 8262 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8263 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8264 wlarc= 8265 else 8266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8267 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8268 fi 8269 ;; 8270 8271 solaris*) 8272 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8273 ld_shlibs=no 8274 cat <<_LT_EOF 1>&2 8275 8276*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8277*** create shared libraries on Solaris systems. Therefore, libtool 8278*** is disabling shared libraries support. We urge you to upgrade GNU 8279*** binutils to release 2.9.1 or newer. Another option is to modify 8280*** your PATH or compiler configuration so that the native linker is 8281*** used, and then restart. 8282 8283_LT_EOF 8284 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8286 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8287 else 8288 ld_shlibs=no 8289 fi 8290 ;; 8291 8292 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8293 case `$LD -v 2>&1` in 8294 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8295 ld_shlibs=no 8296 cat <<_LT_EOF 1>&2 8297 8298*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8299*** reliably create shared libraries on SCO systems. Therefore, libtool 8300*** is disabling shared libraries support. We urge you to upgrade GNU 8301*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8302*** your PATH or compiler configuration so that the native linker is 8303*** used, and then restart. 8304 8305_LT_EOF 8306 ;; 8307 *) 8308 # For security reasons, it is highly recommended that you always 8309 # use absolute paths for naming shared libraries, and exclude the 8310 # DT_RUNPATH tag from executables and libraries. But doing so 8311 # requires that you compile everything twice, which is a pain. 8312 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8315 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8316 else 8317 ld_shlibs=no 8318 fi 8319 ;; 8320 esac 8321 ;; 8322 8323 sunos4*) 8324 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8325 wlarc= 8326 hardcode_direct=yes 8327 hardcode_shlibpath_var=no 8328 ;; 8329 8330 *) 8331 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8333 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8334 else 8335 ld_shlibs=no 8336 fi 8337 ;; 8338 esac 8339 8340 if test "$ld_shlibs" = no; then 8341 runpath_var= 8342 hardcode_libdir_flag_spec= 8343 export_dynamic_flag_spec= 8344 whole_archive_flag_spec= 8345 fi 8346 else 8347 # PORTME fill in a description of your system's linker (not GNU ld) 8348 case $host_os in 8349 aix3*) 8350 allow_undefined_flag=unsupported 8351 always_export_symbols=yes 8352 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' 8353 # Note: this linker hardcodes the directories in LIBPATH if there 8354 # are no directories specified by -L. 8355 hardcode_minus_L=yes 8356 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8357 # Neither direct hardcoding nor static linking is supported with a 8358 # broken collect2. 8359 hardcode_direct=unsupported 8360 fi 8361 ;; 8362 8363 aix[4-9]*) 8364 if test "$host_cpu" = ia64; then 8365 # On IA64, the linker does run time linking by default, so we don't 8366 # have to do anything special. 8367 aix_use_runtimelinking=no 8368 exp_sym_flag='-Bexport' 8369 no_entry_flag="" 8370 else 8371 # If we're using GNU nm, then we don't want the "-C" option. 8372 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8373 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8374 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' 8375 else 8376 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' 8377 fi 8378 aix_use_runtimelinking=no 8379 8380 # Test if we are trying to use run time linking or normal 8381 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8382 # need to do runtime linking. 8383 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8384 for ld_flag in $LDFLAGS; do 8385 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8386 aix_use_runtimelinking=yes 8387 break 8388 fi 8389 done 8390 ;; 8391 esac 8392 8393 exp_sym_flag='-bexport' 8394 no_entry_flag='-bnoentry' 8395 fi 8396 8397 # When large executables or shared objects are built, AIX ld can 8398 # have problems creating the table of contents. If linking a library 8399 # or program results in "error TOC overflow" add -mminimal-toc to 8400 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8401 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8402 8403 archive_cmds='' 8404 hardcode_direct=yes 8405 hardcode_direct_absolute=yes 8406 hardcode_libdir_separator=':' 8407 link_all_deplibs=yes 8408 file_list_spec='${wl}-f,' 8409 8410 if test "$GCC" = yes; then 8411 case $host_os in aix4.[012]|aix4.[012].*) 8412 # We only want to do this on AIX 4.2 and lower, the check 8413 # below for broken collect2 doesn't work under 4.3+ 8414 collect2name=`${CC} -print-prog-name=collect2` 8415 if test -f "$collect2name" && 8416 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8417 then 8418 # We have reworked collect2 8419 : 8420 else 8421 # We have old collect2 8422 hardcode_direct=unsupported 8423 # It fails to find uninstalled libraries when the uninstalled 8424 # path is not listed in the libpath. Setting hardcode_minus_L 8425 # to unsupported forces relinking 8426 hardcode_minus_L=yes 8427 hardcode_libdir_flag_spec='-L$libdir' 8428 hardcode_libdir_separator= 8429 fi 8430 ;; 8431 esac 8432 shared_flag='-shared' 8433 if test "$aix_use_runtimelinking" = yes; then 8434 shared_flag="$shared_flag "'${wl}-G' 8435 fi 8436 link_all_deplibs=no 8437 else 8438 # not using gcc 8439 if test "$host_cpu" = ia64; then 8440 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8441 # chokes on -Wl,-G. The following line is correct: 8442 shared_flag='-G' 8443 else 8444 if test "$aix_use_runtimelinking" = yes; then 8445 shared_flag='${wl}-G' 8446 else 8447 shared_flag='${wl}-bM:SRE' 8448 fi 8449 fi 8450 fi 8451 8452 export_dynamic_flag_spec='${wl}-bexpall' 8453 # It seems that -bexpall does not export symbols beginning with 8454 # underscore (_), so it is better to generate a list of symbols to export. 8455 always_export_symbols=yes 8456 if test "$aix_use_runtimelinking" = yes; then 8457 # Warning - without using the other runtime loading flags (-brtl), 8458 # -berok will link without error, but may produce a broken library. 8459 allow_undefined_flag='-berok' 8460 # Determine the default libpath from the value encoded in an 8461 # empty executable. 8462 cat >conftest.$ac_ext <<_ACEOF 8463/* confdefs.h. */ 8464_ACEOF 8465cat confdefs.h >>conftest.$ac_ext 8466cat >>conftest.$ac_ext <<_ACEOF 8467/* end confdefs.h. */ 8468 8469int 8470main () 8471{ 8472 8473 ; 8474 return 0; 8475} 8476_ACEOF 8477rm -f conftest.$ac_objext conftest$ac_exeext 8478if { (ac_try="$ac_link" 8479case "(($ac_try" in 8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8481 *) ac_try_echo=$ac_try;; 8482esac 8483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8484$as_echo "$ac_try_echo") >&5 8485 (eval "$ac_link") 2>conftest.er1 8486 ac_status=$? 8487 grep -v '^ *+' conftest.er1 >conftest.err 8488 rm -f conftest.er1 8489 cat conftest.err >&5 8490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8491 (exit $ac_status); } && { 8492 test -z "$ac_c_werror_flag" || 8493 test ! -s conftest.err 8494 } && test -s conftest$ac_exeext && { 8495 test "$cross_compiling" = yes || 8496 $as_test_x conftest$ac_exeext 8497 }; then 8498 8499lt_aix_libpath_sed=' 8500 /Import File Strings/,/^$/ { 8501 /^0/ { 8502 s/^0 *\(.*\)$/\1/ 8503 p 8504 } 8505 }' 8506aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8507# Check for a 64-bit object if we didn't find anything. 8508if test -z "$aix_libpath"; then 8509 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8510fi 8511else 8512 $as_echo "$as_me: failed program was:" >&5 8513sed 's/^/| /' conftest.$ac_ext >&5 8514 8515 8516fi 8517 8518rm -rf conftest.dSYM 8519rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8520 conftest$ac_exeext conftest.$ac_ext 8521if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8522 8523 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8524 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" 8525 else 8526 if test "$host_cpu" = ia64; then 8527 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8528 allow_undefined_flag="-z nodefs" 8529 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" 8530 else 8531 # Determine the default libpath from the value encoded in an 8532 # empty executable. 8533 cat >conftest.$ac_ext <<_ACEOF 8534/* confdefs.h. */ 8535_ACEOF 8536cat confdefs.h >>conftest.$ac_ext 8537cat >>conftest.$ac_ext <<_ACEOF 8538/* end confdefs.h. */ 8539 8540int 8541main () 8542{ 8543 8544 ; 8545 return 0; 8546} 8547_ACEOF 8548rm -f conftest.$ac_objext conftest$ac_exeext 8549if { (ac_try="$ac_link" 8550case "(($ac_try" in 8551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8552 *) ac_try_echo=$ac_try;; 8553esac 8554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8555$as_echo "$ac_try_echo") >&5 8556 (eval "$ac_link") 2>conftest.er1 8557 ac_status=$? 8558 grep -v '^ *+' conftest.er1 >conftest.err 8559 rm -f conftest.er1 8560 cat conftest.err >&5 8561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8562 (exit $ac_status); } && { 8563 test -z "$ac_c_werror_flag" || 8564 test ! -s conftest.err 8565 } && test -s conftest$ac_exeext && { 8566 test "$cross_compiling" = yes || 8567 $as_test_x conftest$ac_exeext 8568 }; then 8569 8570lt_aix_libpath_sed=' 8571 /Import File Strings/,/^$/ { 8572 /^0/ { 8573 s/^0 *\(.*\)$/\1/ 8574 p 8575 } 8576 }' 8577aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8578# Check for a 64-bit object if we didn't find anything. 8579if test -z "$aix_libpath"; then 8580 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8581fi 8582else 8583 $as_echo "$as_me: failed program was:" >&5 8584sed 's/^/| /' conftest.$ac_ext >&5 8585 8586 8587fi 8588 8589rm -rf conftest.dSYM 8590rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8591 conftest$ac_exeext conftest.$ac_ext 8592if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8593 8594 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8595 # Warning - without using the other run time loading flags, 8596 # -berok will link without error, but may produce a broken library. 8597 no_undefined_flag=' ${wl}-bernotok' 8598 allow_undefined_flag=' ${wl}-berok' 8599 # Exported symbols can be pulled into shared objects from archives 8600 whole_archive_flag_spec='$convenience' 8601 archive_cmds_need_lc=yes 8602 # This is similar to how AIX traditionally builds its shared libraries. 8603 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' 8604 fi 8605 fi 8606 ;; 8607 8608 amigaos*) 8609 case $host_cpu in 8610 powerpc) 8611 # see comment about AmigaOS4 .so support 8612 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8613 archive_expsym_cmds='' 8614 ;; 8615 m68k) 8616 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)' 8617 hardcode_libdir_flag_spec='-L$libdir' 8618 hardcode_minus_L=yes 8619 ;; 8620 esac 8621 ;; 8622 8623 bsdi[45]*) 8624 export_dynamic_flag_spec=-rdynamic 8625 ;; 8626 8627 cygwin* | mingw* | pw32* | cegcc*) 8628 # When not using gcc, we currently assume that we are using 8629 # Microsoft Visual C++. 8630 # hardcode_libdir_flag_spec is actually meaningless, as there is 8631 # no search path for DLLs. 8632 hardcode_libdir_flag_spec=' ' 8633 allow_undefined_flag=unsupported 8634 # Tell ltmain to make .lib files, not .a files. 8635 libext=lib 8636 # Tell ltmain to make .dll files, not .so files. 8637 shrext_cmds=".dll" 8638 # FIXME: Setting linknames here is a bad hack. 8639 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8640 # The linker will automatically build a .lib file if we build a DLL. 8641 old_archive_from_new_cmds='true' 8642 # FIXME: Should let the user specify the lib program. 8643 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8644 fix_srcfile_path='`cygpath -w "$srcfile"`' 8645 enable_shared_with_static_runtimes=yes 8646 ;; 8647 8648 darwin* | rhapsody*) 8649 8650 8651 archive_cmds_need_lc=no 8652 hardcode_direct=no 8653 hardcode_automatic=yes 8654 hardcode_shlibpath_var=unsupported 8655 whole_archive_flag_spec='' 8656 link_all_deplibs=yes 8657 allow_undefined_flag="$_lt_dar_allow_undefined" 8658 case $cc_basename in 8659 ifort*) _lt_dar_can_shared=yes ;; 8660 *) _lt_dar_can_shared=$GCC ;; 8661 esac 8662 if test "$_lt_dar_can_shared" = "yes"; then 8663 output_verbose_link_cmd=echo 8664 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8665 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8666 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}" 8667 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}" 8668 8669 else 8670 ld_shlibs=no 8671 fi 8672 8673 ;; 8674 8675 dgux*) 8676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8677 hardcode_libdir_flag_spec='-L$libdir' 8678 hardcode_shlibpath_var=no 8679 ;; 8680 8681 freebsd1*) 8682 ld_shlibs=no 8683 ;; 8684 8685 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8686 # support. Future versions do this automatically, but an explicit c++rt0.o 8687 # does not break anything, and helps significantly (at the cost of a little 8688 # extra space). 8689 freebsd2.2*) 8690 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8691 hardcode_libdir_flag_spec='-R$libdir' 8692 hardcode_direct=yes 8693 hardcode_shlibpath_var=no 8694 ;; 8695 8696 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8697 freebsd2*) 8698 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8699 hardcode_direct=yes 8700 hardcode_minus_L=yes 8701 hardcode_shlibpath_var=no 8702 ;; 8703 8704 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8705 freebsd* | dragonfly*) 8706 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8707 hardcode_libdir_flag_spec='-R$libdir' 8708 hardcode_direct=yes 8709 hardcode_shlibpath_var=no 8710 ;; 8711 8712 hpux9*) 8713 if test "$GCC" = yes; then 8714 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' 8715 else 8716 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' 8717 fi 8718 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8719 hardcode_libdir_separator=: 8720 hardcode_direct=yes 8721 8722 # hardcode_minus_L: Not really in the search PATH, 8723 # but as the default location of the library. 8724 hardcode_minus_L=yes 8725 export_dynamic_flag_spec='${wl}-E' 8726 ;; 8727 8728 hpux10*) 8729 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8730 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8731 else 8732 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8733 fi 8734 if test "$with_gnu_ld" = no; then 8735 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8736 hardcode_libdir_flag_spec_ld='+b $libdir' 8737 hardcode_libdir_separator=: 8738 hardcode_direct=yes 8739 hardcode_direct_absolute=yes 8740 export_dynamic_flag_spec='${wl}-E' 8741 # hardcode_minus_L: Not really in the search PATH, 8742 # but as the default location of the library. 8743 hardcode_minus_L=yes 8744 fi 8745 ;; 8746 8747 hpux11*) 8748 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8749 case $host_cpu in 8750 hppa*64*) 8751 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8752 ;; 8753 ia64*) 8754 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8755 ;; 8756 *) 8757 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8758 ;; 8759 esac 8760 else 8761 case $host_cpu in 8762 hppa*64*) 8763 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8764 ;; 8765 ia64*) 8766 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8767 ;; 8768 *) 8769 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8770 ;; 8771 esac 8772 fi 8773 if test "$with_gnu_ld" = no; then 8774 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8775 hardcode_libdir_separator=: 8776 8777 case $host_cpu in 8778 hppa*64*|ia64*) 8779 hardcode_direct=no 8780 hardcode_shlibpath_var=no 8781 ;; 8782 *) 8783 hardcode_direct=yes 8784 hardcode_direct_absolute=yes 8785 export_dynamic_flag_spec='${wl}-E' 8786 8787 # hardcode_minus_L: Not really in the search PATH, 8788 # but as the default location of the library. 8789 hardcode_minus_L=yes 8790 ;; 8791 esac 8792 fi 8793 ;; 8794 8795 irix5* | irix6* | nonstopux*) 8796 if test "$GCC" = yes; then 8797 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' 8798 # Try to use the -exported_symbol ld option, if it does not 8799 # work, assume that -exports_file does not work either and 8800 # implicitly export all symbols. 8801 save_LDFLAGS="$LDFLAGS" 8802 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8803 cat >conftest.$ac_ext <<_ACEOF 8804int foo(void) {} 8805_ACEOF 8806rm -f conftest.$ac_objext conftest$ac_exeext 8807if { (ac_try="$ac_link" 8808case "(($ac_try" in 8809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8810 *) ac_try_echo=$ac_try;; 8811esac 8812eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8813$as_echo "$ac_try_echo") >&5 8814 (eval "$ac_link") 2>conftest.er1 8815 ac_status=$? 8816 grep -v '^ *+' conftest.er1 >conftest.err 8817 rm -f conftest.er1 8818 cat conftest.err >&5 8819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8820 (exit $ac_status); } && { 8821 test -z "$ac_c_werror_flag" || 8822 test ! -s conftest.err 8823 } && test -s conftest$ac_exeext && { 8824 test "$cross_compiling" = yes || 8825 $as_test_x conftest$ac_exeext 8826 }; then 8827 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' 8828 8829else 8830 $as_echo "$as_me: failed program was:" >&5 8831sed 's/^/| /' conftest.$ac_ext >&5 8832 8833 8834fi 8835 8836rm -rf conftest.dSYM 8837rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8838 conftest$ac_exeext conftest.$ac_ext 8839 LDFLAGS="$save_LDFLAGS" 8840 else 8841 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' 8842 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' 8843 fi 8844 archive_cmds_need_lc='no' 8845 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8846 hardcode_libdir_separator=: 8847 inherit_rpath=yes 8848 link_all_deplibs=yes 8849 ;; 8850 8851 netbsd* | netbsdelf*-gnu) 8852 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8853 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8854 else 8855 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8856 fi 8857 hardcode_libdir_flag_spec='-R$libdir' 8858 hardcode_direct=yes 8859 hardcode_shlibpath_var=no 8860 ;; 8861 8862 newsos6) 8863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8864 hardcode_direct=yes 8865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8866 hardcode_libdir_separator=: 8867 hardcode_shlibpath_var=no 8868 ;; 8869 8870 *nto* | *qnx*) 8871 ;; 8872 8873 openbsd*) 8874 if test -f /usr/libexec/ld.so; then 8875 hardcode_direct=yes 8876 hardcode_shlibpath_var=no 8877 hardcode_direct_absolute=yes 8878 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8879 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8880 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8881 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8882 export_dynamic_flag_spec='${wl}-E' 8883 else 8884 case $host_os in 8885 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8886 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8887 hardcode_libdir_flag_spec='-R$libdir' 8888 ;; 8889 *) 8890 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8891 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8892 ;; 8893 esac 8894 fi 8895 else 8896 ld_shlibs=no 8897 fi 8898 ;; 8899 8900 os2*) 8901 hardcode_libdir_flag_spec='-L$libdir' 8902 hardcode_minus_L=yes 8903 allow_undefined_flag=unsupported 8904 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' 8905 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8906 ;; 8907 8908 osf3*) 8909 if test "$GCC" = yes; then 8910 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8911 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' 8912 else 8913 allow_undefined_flag=' -expect_unresolved \*' 8914 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' 8915 fi 8916 archive_cmds_need_lc='no' 8917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8918 hardcode_libdir_separator=: 8919 ;; 8920 8921 osf4* | osf5*) # as osf3* with the addition of -msym flag 8922 if test "$GCC" = yes; then 8923 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8924 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' 8925 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8926 else 8927 allow_undefined_flag=' -expect_unresolved \*' 8928 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' 8929 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~ 8930 $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' 8931 8932 # Both c and cxx compiler support -rpath directly 8933 hardcode_libdir_flag_spec='-rpath $libdir' 8934 fi 8935 archive_cmds_need_lc='no' 8936 hardcode_libdir_separator=: 8937 ;; 8938 8939 solaris*) 8940 no_undefined_flag=' -z defs' 8941 if test "$GCC" = yes; then 8942 wlarc='${wl}' 8943 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8944 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8945 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8946 else 8947 case `$CC -V 2>&1` in 8948 *"Compilers 5.0"*) 8949 wlarc='' 8950 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8951 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8952 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8953 ;; 8954 *) 8955 wlarc='${wl}' 8956 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8957 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8958 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8959 ;; 8960 esac 8961 fi 8962 hardcode_libdir_flag_spec='-R$libdir' 8963 hardcode_shlibpath_var=no 8964 case $host_os in 8965 solaris2.[0-5] | solaris2.[0-5].*) ;; 8966 *) 8967 # The compiler driver will combine and reorder linker options, 8968 # but understands `-z linker_flag'. GCC discards it without `$wl', 8969 # but is careful enough not to reorder. 8970 # Supported since Solaris 2.6 (maybe 2.5.1?) 8971 if test "$GCC" = yes; then 8972 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8973 else 8974 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8975 fi 8976 ;; 8977 esac 8978 link_all_deplibs=yes 8979 ;; 8980 8981 sunos4*) 8982 if test "x$host_vendor" = xsequent; then 8983 # Use $CC to link under sequent, because it throws in some extra .o 8984 # files that make .init and .fini sections work. 8985 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8986 else 8987 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8988 fi 8989 hardcode_libdir_flag_spec='-L$libdir' 8990 hardcode_direct=yes 8991 hardcode_minus_L=yes 8992 hardcode_shlibpath_var=no 8993 ;; 8994 8995 sysv4) 8996 case $host_vendor in 8997 sni) 8998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8999 hardcode_direct=yes # is this really true??? 9000 ;; 9001 siemens) 9002 ## LD is ld it makes a PLAMLIB 9003 ## CC just makes a GrossModule. 9004 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9005 reload_cmds='$CC -r -o $output$reload_objs' 9006 hardcode_direct=no 9007 ;; 9008 motorola) 9009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9010 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9011 ;; 9012 esac 9013 runpath_var='LD_RUN_PATH' 9014 hardcode_shlibpath_var=no 9015 ;; 9016 9017 sysv4.3*) 9018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9019 hardcode_shlibpath_var=no 9020 export_dynamic_flag_spec='-Bexport' 9021 ;; 9022 9023 sysv4*MP*) 9024 if test -d /usr/nec; then 9025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9026 hardcode_shlibpath_var=no 9027 runpath_var=LD_RUN_PATH 9028 hardcode_runpath_var=yes 9029 ld_shlibs=yes 9030 fi 9031 ;; 9032 9033 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9034 no_undefined_flag='${wl}-z,text' 9035 archive_cmds_need_lc=no 9036 hardcode_shlibpath_var=no 9037 runpath_var='LD_RUN_PATH' 9038 9039 if test "$GCC" = yes; then 9040 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9041 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9042 else 9043 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9044 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9045 fi 9046 ;; 9047 9048 sysv5* | sco3.2v5* | sco5v6*) 9049 # Note: We can NOT use -z defs as we might desire, because we do not 9050 # link with -lc, and that would cause any symbols used from libc to 9051 # always be unresolved, which means just about no library would 9052 # ever link correctly. If we're not using GNU ld we use -z text 9053 # though, which does catch some bad symbols but isn't as heavy-handed 9054 # as -z defs. 9055 no_undefined_flag='${wl}-z,text' 9056 allow_undefined_flag='${wl}-z,nodefs' 9057 archive_cmds_need_lc=no 9058 hardcode_shlibpath_var=no 9059 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9060 hardcode_libdir_separator=':' 9061 link_all_deplibs=yes 9062 export_dynamic_flag_spec='${wl}-Bexport' 9063 runpath_var='LD_RUN_PATH' 9064 9065 if test "$GCC" = yes; then 9066 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9067 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9068 else 9069 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9070 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9071 fi 9072 ;; 9073 9074 uts4*) 9075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9076 hardcode_libdir_flag_spec='-L$libdir' 9077 hardcode_shlibpath_var=no 9078 ;; 9079 9080 *) 9081 ld_shlibs=no 9082 ;; 9083 esac 9084 9085 if test x$host_vendor = xsni; then 9086 case $host in 9087 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9088 export_dynamic_flag_spec='${wl}-Blargedynsym' 9089 ;; 9090 esac 9091 fi 9092 fi 9093 9094{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9095$as_echo "$ld_shlibs" >&6; } 9096test "$ld_shlibs" = no && can_build_shared=no 9097 9098with_gnu_ld=$with_gnu_ld 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114# 9115# Do we need to explicitly link libc? 9116# 9117case "x$archive_cmds_need_lc" in 9118x|xyes) 9119 # Assume -lc should be added 9120 archive_cmds_need_lc=yes 9121 9122 if test "$enable_shared" = yes && test "$GCC" = yes; then 9123 case $archive_cmds in 9124 *'~'*) 9125 # FIXME: we may have to deal with multi-command sequences. 9126 ;; 9127 '$CC '*) 9128 # Test whether the compiler implicitly links with -lc since on some 9129 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9130 # to ld, don't add -lc before -lgcc. 9131 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9132$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9133 $RM conftest* 9134 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9135 9136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9137 (eval $ac_compile) 2>&5 9138 ac_status=$? 9139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9140 (exit $ac_status); } 2>conftest.err; then 9141 soname=conftest 9142 lib=conftest 9143 libobjs=conftest.$ac_objext 9144 deplibs= 9145 wl=$lt_prog_compiler_wl 9146 pic_flag=$lt_prog_compiler_pic 9147 compiler_flags=-v 9148 linker_flags=-v 9149 verstring= 9150 output_objdir=. 9151 libname=conftest 9152 lt_save_allow_undefined_flag=$allow_undefined_flag 9153 allow_undefined_flag= 9154 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9155 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9156 ac_status=$? 9157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9158 (exit $ac_status); } 9159 then 9160 archive_cmds_need_lc=no 9161 else 9162 archive_cmds_need_lc=yes 9163 fi 9164 allow_undefined_flag=$lt_save_allow_undefined_flag 9165 else 9166 cat conftest.err 1>&5 9167 fi 9168 $RM conftest* 9169 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9170$as_echo "$archive_cmds_need_lc" >&6; } 9171 ;; 9172 esac 9173 fi 9174 ;; 9175esac 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9334$as_echo_n "checking dynamic linker characteristics... " >&6; } 9335 9336if test "$GCC" = yes; then 9337 case $host_os in 9338 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9339 *) lt_awk_arg="/^libraries:/" ;; 9340 esac 9341 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9342 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9343 # if the path contains ";" then we assume it to be the separator 9344 # otherwise default to the standard path separator (i.e. ":") - it is 9345 # assumed that no part of a normal pathname contains ";" but that should 9346 # okay in the real world where ";" in dirpaths is itself problematic. 9347 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9348 else 9349 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9350 fi 9351 # Ok, now we have the path, separated by spaces, we can step through it 9352 # and add multilib dir if necessary. 9353 lt_tmp_lt_search_path_spec= 9354 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9355 for lt_sys_path in $lt_search_path_spec; do 9356 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9357 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9358 else 9359 test -d "$lt_sys_path" && \ 9360 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9361 fi 9362 done 9363 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9364BEGIN {RS=" "; FS="/|\n";} { 9365 lt_foo=""; 9366 lt_count=0; 9367 for (lt_i = NF; lt_i > 0; lt_i--) { 9368 if ($lt_i != "" && $lt_i != ".") { 9369 if ($lt_i == "..") { 9370 lt_count++; 9371 } else { 9372 if (lt_count == 0) { 9373 lt_foo="/" $lt_i lt_foo; 9374 } else { 9375 lt_count--; 9376 } 9377 } 9378 } 9379 } 9380 if (lt_foo != "") { lt_freq[lt_foo]++; } 9381 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9382}'` 9383 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9384else 9385 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9386fi 9387library_names_spec= 9388libname_spec='lib$name' 9389soname_spec= 9390shrext_cmds=".so" 9391postinstall_cmds= 9392postuninstall_cmds= 9393finish_cmds= 9394finish_eval= 9395shlibpath_var= 9396shlibpath_overrides_runpath=unknown 9397version_type=none 9398dynamic_linker="$host_os ld.so" 9399sys_lib_dlsearch_path_spec="/lib /usr/lib" 9400need_lib_prefix=unknown 9401hardcode_into_libs=no 9402 9403# when you set need_version to no, make sure it does not cause -set_version 9404# flags to be left without arguments 9405need_version=unknown 9406 9407case $host_os in 9408aix3*) 9409 version_type=linux 9410 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9411 shlibpath_var=LIBPATH 9412 9413 # AIX 3 has no versioning support, so we append a major version to the name. 9414 soname_spec='${libname}${release}${shared_ext}$major' 9415 ;; 9416 9417aix[4-9]*) 9418 version_type=linux 9419 need_lib_prefix=no 9420 need_version=no 9421 hardcode_into_libs=yes 9422 if test "$host_cpu" = ia64; then 9423 # AIX 5 supports IA64 9424 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9425 shlibpath_var=LD_LIBRARY_PATH 9426 else 9427 # With GCC up to 2.95.x, collect2 would create an import file 9428 # for dependence libraries. The import file would start with 9429 # the line `#! .'. This would cause the generated library to 9430 # depend on `.', always an invalid library. This was fixed in 9431 # development snapshots of GCC prior to 3.0. 9432 case $host_os in 9433 aix4 | aix4.[01] | aix4.[01].*) 9434 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9435 echo ' yes ' 9436 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9437 : 9438 else 9439 can_build_shared=no 9440 fi 9441 ;; 9442 esac 9443 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9444 # soname into executable. Probably we can add versioning support to 9445 # collect2, so additional links can be useful in future. 9446 if test "$aix_use_runtimelinking" = yes; then 9447 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9448 # instead of lib<name>.a to let people know that these are not 9449 # typical AIX shared libraries. 9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9451 else 9452 # We preserve .a as extension for shared libraries through AIX4.2 9453 # and later when we are not doing run time linking. 9454 library_names_spec='${libname}${release}.a $libname.a' 9455 soname_spec='${libname}${release}${shared_ext}$major' 9456 fi 9457 shlibpath_var=LIBPATH 9458 fi 9459 ;; 9460 9461amigaos*) 9462 case $host_cpu in 9463 powerpc) 9464 # Since July 2007 AmigaOS4 officially supports .so libraries. 9465 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9467 ;; 9468 m68k) 9469 library_names_spec='$libname.ixlibrary $libname.a' 9470 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9471 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' 9472 ;; 9473 esac 9474 ;; 9475 9476beos*) 9477 library_names_spec='${libname}${shared_ext}' 9478 dynamic_linker="$host_os ld.so" 9479 shlibpath_var=LIBRARY_PATH 9480 ;; 9481 9482bsdi[45]*) 9483 version_type=linux 9484 need_version=no 9485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9486 soname_spec='${libname}${release}${shared_ext}$major' 9487 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9488 shlibpath_var=LD_LIBRARY_PATH 9489 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9490 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9491 # the default ld.so.conf also contains /usr/contrib/lib and 9492 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9493 # libtool to hard-code these into programs 9494 ;; 9495 9496cygwin* | mingw* | pw32* | cegcc*) 9497 version_type=windows 9498 shrext_cmds=".dll" 9499 need_version=no 9500 need_lib_prefix=no 9501 9502 case $GCC,$host_os in 9503 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9504 library_names_spec='$libname.dll.a' 9505 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9506 postinstall_cmds='base_file=`basename \${file}`~ 9507 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9508 dldir=$destdir/`dirname \$dlpath`~ 9509 test -d \$dldir || mkdir -p \$dldir~ 9510 $install_prog $dir/$dlname \$dldir/$dlname~ 9511 chmod a+x \$dldir/$dlname~ 9512 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9513 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9514 fi' 9515 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9516 dlpath=$dir/\$dldll~ 9517 $RM \$dlpath' 9518 shlibpath_overrides_runpath=yes 9519 9520 case $host_os in 9521 cygwin*) 9522 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9523 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9524 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9525 ;; 9526 mingw* | cegcc*) 9527 # MinGW DLLs use traditional 'lib' prefix 9528 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9529 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9530 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9531 # It is most probably a Windows format PATH printed by 9532 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9533 # path with ; separators, and with drive letters. We can handle the 9534 # drive letters (cygwin fileutils understands them), so leave them, 9535 # especially as we might pass files found there to a mingw objdump, 9536 # which wouldn't understand a cygwinified path. Ahh. 9537 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9538 else 9539 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9540 fi 9541 ;; 9542 pw32*) 9543 # pw32 DLLs use 'pw' prefix rather than 'lib' 9544 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9545 ;; 9546 esac 9547 ;; 9548 9549 *) 9550 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9551 ;; 9552 esac 9553 dynamic_linker='Win32 ld.exe' 9554 # FIXME: first we should search . and the directory the executable is in 9555 shlibpath_var=PATH 9556 ;; 9557 9558darwin* | rhapsody*) 9559 dynamic_linker="$host_os dyld" 9560 version_type=darwin 9561 need_lib_prefix=no 9562 need_version=no 9563 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9564 soname_spec='${libname}${release}${major}$shared_ext' 9565 shlibpath_overrides_runpath=yes 9566 shlibpath_var=DYLD_LIBRARY_PATH 9567 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9568 9569 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9570 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9571 ;; 9572 9573dgux*) 9574 version_type=linux 9575 need_lib_prefix=no 9576 need_version=no 9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9578 soname_spec='${libname}${release}${shared_ext}$major' 9579 shlibpath_var=LD_LIBRARY_PATH 9580 ;; 9581 9582freebsd1*) 9583 dynamic_linker=no 9584 ;; 9585 9586freebsd* | dragonfly*) 9587 # DragonFly does not have aout. When/if they implement a new 9588 # versioning mechanism, adjust this. 9589 if test -x /usr/bin/objformat; then 9590 objformat=`/usr/bin/objformat` 9591 else 9592 case $host_os in 9593 freebsd[123]*) objformat=aout ;; 9594 *) objformat=elf ;; 9595 esac 9596 fi 9597 version_type=freebsd-$objformat 9598 case $version_type in 9599 freebsd-elf*) 9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9601 need_version=no 9602 need_lib_prefix=no 9603 ;; 9604 freebsd-*) 9605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9606 need_version=yes 9607 ;; 9608 esac 9609 shlibpath_var=LD_LIBRARY_PATH 9610 case $host_os in 9611 freebsd2*) 9612 shlibpath_overrides_runpath=yes 9613 ;; 9614 freebsd3.[01]* | freebsdelf3.[01]*) 9615 shlibpath_overrides_runpath=yes 9616 hardcode_into_libs=yes 9617 ;; 9618 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9619 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9620 shlibpath_overrides_runpath=no 9621 hardcode_into_libs=yes 9622 ;; 9623 *) # from 4.6 on, and DragonFly 9624 shlibpath_overrides_runpath=yes 9625 hardcode_into_libs=yes 9626 ;; 9627 esac 9628 ;; 9629 9630gnu*) 9631 version_type=linux 9632 need_lib_prefix=no 9633 need_version=no 9634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9635 soname_spec='${libname}${release}${shared_ext}$major' 9636 shlibpath_var=LD_LIBRARY_PATH 9637 hardcode_into_libs=yes 9638 ;; 9639 9640hpux9* | hpux10* | hpux11*) 9641 # Give a soname corresponding to the major version so that dld.sl refuses to 9642 # link against other versions. 9643 version_type=sunos 9644 need_lib_prefix=no 9645 need_version=no 9646 case $host_cpu in 9647 ia64*) 9648 shrext_cmds='.so' 9649 hardcode_into_libs=yes 9650 dynamic_linker="$host_os dld.so" 9651 shlibpath_var=LD_LIBRARY_PATH 9652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9654 soname_spec='${libname}${release}${shared_ext}$major' 9655 if test "X$HPUX_IA64_MODE" = X32; then 9656 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9657 else 9658 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9659 fi 9660 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9661 ;; 9662 hppa*64*) 9663 shrext_cmds='.sl' 9664 hardcode_into_libs=yes 9665 dynamic_linker="$host_os dld.sl" 9666 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9667 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9669 soname_spec='${libname}${release}${shared_ext}$major' 9670 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9671 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9672 ;; 9673 *) 9674 shrext_cmds='.sl' 9675 dynamic_linker="$host_os dld.sl" 9676 shlibpath_var=SHLIB_PATH 9677 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9679 soname_spec='${libname}${release}${shared_ext}$major' 9680 ;; 9681 esac 9682 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9683 postinstall_cmds='chmod 555 $lib' 9684 ;; 9685 9686interix[3-9]*) 9687 version_type=linux 9688 need_lib_prefix=no 9689 need_version=no 9690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9691 soname_spec='${libname}${release}${shared_ext}$major' 9692 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9693 shlibpath_var=LD_LIBRARY_PATH 9694 shlibpath_overrides_runpath=no 9695 hardcode_into_libs=yes 9696 ;; 9697 9698irix5* | irix6* | nonstopux*) 9699 case $host_os in 9700 nonstopux*) version_type=nonstopux ;; 9701 *) 9702 if test "$lt_cv_prog_gnu_ld" = yes; then 9703 version_type=linux 9704 else 9705 version_type=irix 9706 fi ;; 9707 esac 9708 need_lib_prefix=no 9709 need_version=no 9710 soname_spec='${libname}${release}${shared_ext}$major' 9711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9712 case $host_os in 9713 irix5* | nonstopux*) 9714 libsuff= shlibsuff= 9715 ;; 9716 *) 9717 case $LD in # libtool.m4 will add one of these switches to LD 9718 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9719 libsuff= shlibsuff= libmagic=32-bit;; 9720 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9721 libsuff=32 shlibsuff=N32 libmagic=N32;; 9722 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9723 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9724 *) libsuff= shlibsuff= libmagic=never-match;; 9725 esac 9726 ;; 9727 esac 9728 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9729 shlibpath_overrides_runpath=no 9730 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9731 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9732 hardcode_into_libs=yes 9733 ;; 9734 9735# No shared lib support for Linux oldld, aout, or coff. 9736linux*oldld* | linux*aout* | linux*coff*) 9737 dynamic_linker=no 9738 ;; 9739 9740# This must be Linux ELF. 9741linux* | k*bsd*-gnu) 9742 version_type=linux 9743 need_lib_prefix=no 9744 need_version=no 9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9746 soname_spec='${libname}${release}${shared_ext}$major' 9747 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9748 shlibpath_var=LD_LIBRARY_PATH 9749 shlibpath_overrides_runpath=no 9750 # Some binutils ld are patched to set DT_RUNPATH 9751 save_LDFLAGS=$LDFLAGS 9752 save_libdir=$libdir 9753 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9754 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9755 cat >conftest.$ac_ext <<_ACEOF 9756/* confdefs.h. */ 9757_ACEOF 9758cat confdefs.h >>conftest.$ac_ext 9759cat >>conftest.$ac_ext <<_ACEOF 9760/* end confdefs.h. */ 9761 9762int 9763main () 9764{ 9765 9766 ; 9767 return 0; 9768} 9769_ACEOF 9770rm -f conftest.$ac_objext conftest$ac_exeext 9771if { (ac_try="$ac_link" 9772case "(($ac_try" in 9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9774 *) ac_try_echo=$ac_try;; 9775esac 9776eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9777$as_echo "$ac_try_echo") >&5 9778 (eval "$ac_link") 2>conftest.er1 9779 ac_status=$? 9780 grep -v '^ *+' conftest.er1 >conftest.err 9781 rm -f conftest.er1 9782 cat conftest.err >&5 9783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9784 (exit $ac_status); } && { 9785 test -z "$ac_c_werror_flag" || 9786 test ! -s conftest.err 9787 } && test -s conftest$ac_exeext && { 9788 test "$cross_compiling" = yes || 9789 $as_test_x conftest$ac_exeext 9790 }; then 9791 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9792 shlibpath_overrides_runpath=yes 9793fi 9794 9795else 9796 $as_echo "$as_me: failed program was:" >&5 9797sed 's/^/| /' conftest.$ac_ext >&5 9798 9799 9800fi 9801 9802rm -rf conftest.dSYM 9803rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9804 conftest$ac_exeext conftest.$ac_ext 9805 LDFLAGS=$save_LDFLAGS 9806 libdir=$save_libdir 9807 9808 # This implies no fast_install, which is unacceptable. 9809 # Some rework will be needed to allow for fast_install 9810 # before this can be enabled. 9811 hardcode_into_libs=yes 9812 9813 # Append ld.so.conf contents to the search path 9814 if test -f /etc/ld.so.conf; then 9815 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' ' '` 9816 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9817 fi 9818 9819 # We used to test for /lib/ld.so.1 and disable shared libraries on 9820 # powerpc, because MkLinux only supported shared libraries with the 9821 # GNU dynamic linker. Since this was broken with cross compilers, 9822 # most powerpc-linux boxes support dynamic linking these days and 9823 # people can always --disable-shared, the test was removed, and we 9824 # assume the GNU/Linux dynamic linker is in use. 9825 dynamic_linker='GNU/Linux ld.so' 9826 ;; 9827 9828netbsdelf*-gnu) 9829 version_type=linux 9830 need_lib_prefix=no 9831 need_version=no 9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9833 soname_spec='${libname}${release}${shared_ext}$major' 9834 shlibpath_var=LD_LIBRARY_PATH 9835 shlibpath_overrides_runpath=no 9836 hardcode_into_libs=yes 9837 dynamic_linker='NetBSD ld.elf_so' 9838 ;; 9839 9840netbsd*) 9841 version_type=sunos 9842 need_lib_prefix=no 9843 need_version=no 9844 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9847 dynamic_linker='NetBSD (a.out) ld.so' 9848 else 9849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9850 soname_spec='${libname}${release}${shared_ext}$major' 9851 dynamic_linker='NetBSD ld.elf_so' 9852 fi 9853 shlibpath_var=LD_LIBRARY_PATH 9854 shlibpath_overrides_runpath=yes 9855 hardcode_into_libs=yes 9856 ;; 9857 9858newsos6) 9859 version_type=linux 9860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9861 shlibpath_var=LD_LIBRARY_PATH 9862 shlibpath_overrides_runpath=yes 9863 ;; 9864 9865*nto* | *qnx*) 9866 version_type=qnx 9867 need_lib_prefix=no 9868 need_version=no 9869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9870 soname_spec='${libname}${release}${shared_ext}$major' 9871 shlibpath_var=LD_LIBRARY_PATH 9872 shlibpath_overrides_runpath=no 9873 hardcode_into_libs=yes 9874 dynamic_linker='ldqnx.so' 9875 ;; 9876 9877openbsd*) 9878 version_type=sunos 9879 sys_lib_dlsearch_path_spec="/usr/lib" 9880 need_lib_prefix=no 9881 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9882 case $host_os in 9883 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9884 *) need_version=no ;; 9885 esac 9886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9888 shlibpath_var=LD_LIBRARY_PATH 9889 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9890 case $host_os in 9891 openbsd2.[89] | openbsd2.[89].*) 9892 shlibpath_overrides_runpath=no 9893 ;; 9894 *) 9895 shlibpath_overrides_runpath=yes 9896 ;; 9897 esac 9898 else 9899 shlibpath_overrides_runpath=yes 9900 fi 9901 ;; 9902 9903os2*) 9904 libname_spec='$name' 9905 shrext_cmds=".dll" 9906 need_lib_prefix=no 9907 library_names_spec='$libname${shared_ext} $libname.a' 9908 dynamic_linker='OS/2 ld.exe' 9909 shlibpath_var=LIBPATH 9910 ;; 9911 9912osf3* | osf4* | osf5*) 9913 version_type=osf 9914 need_lib_prefix=no 9915 need_version=no 9916 soname_spec='${libname}${release}${shared_ext}$major' 9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9918 shlibpath_var=LD_LIBRARY_PATH 9919 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9920 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9921 ;; 9922 9923rdos*) 9924 dynamic_linker=no 9925 ;; 9926 9927solaris*) 9928 version_type=linux 9929 need_lib_prefix=no 9930 need_version=no 9931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9932 soname_spec='${libname}${release}${shared_ext}$major' 9933 shlibpath_var=LD_LIBRARY_PATH 9934 shlibpath_overrides_runpath=yes 9935 hardcode_into_libs=yes 9936 # ldd complains unless libraries are executable 9937 postinstall_cmds='chmod +x $lib' 9938 ;; 9939 9940sunos4*) 9941 version_type=sunos 9942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9943 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9944 shlibpath_var=LD_LIBRARY_PATH 9945 shlibpath_overrides_runpath=yes 9946 if test "$with_gnu_ld" = yes; then 9947 need_lib_prefix=no 9948 fi 9949 need_version=yes 9950 ;; 9951 9952sysv4 | sysv4.3*) 9953 version_type=linux 9954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9955 soname_spec='${libname}${release}${shared_ext}$major' 9956 shlibpath_var=LD_LIBRARY_PATH 9957 case $host_vendor in 9958 sni) 9959 shlibpath_overrides_runpath=no 9960 need_lib_prefix=no 9961 runpath_var=LD_RUN_PATH 9962 ;; 9963 siemens) 9964 need_lib_prefix=no 9965 ;; 9966 motorola) 9967 need_lib_prefix=no 9968 need_version=no 9969 shlibpath_overrides_runpath=no 9970 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9971 ;; 9972 esac 9973 ;; 9974 9975sysv4*MP*) 9976 if test -d /usr/nec ;then 9977 version_type=linux 9978 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9979 soname_spec='$libname${shared_ext}.$major' 9980 shlibpath_var=LD_LIBRARY_PATH 9981 fi 9982 ;; 9983 9984sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9985 version_type=freebsd-elf 9986 need_lib_prefix=no 9987 need_version=no 9988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9989 soname_spec='${libname}${release}${shared_ext}$major' 9990 shlibpath_var=LD_LIBRARY_PATH 9991 shlibpath_overrides_runpath=yes 9992 hardcode_into_libs=yes 9993 if test "$with_gnu_ld" = yes; then 9994 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9995 else 9996 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9997 case $host_os in 9998 sco3.2v5*) 9999 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10000 ;; 10001 esac 10002 fi 10003 sys_lib_dlsearch_path_spec='/usr/lib' 10004 ;; 10005 10006tpf*) 10007 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10008 version_type=linux 10009 need_lib_prefix=no 10010 need_version=no 10011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10012 shlibpath_var=LD_LIBRARY_PATH 10013 shlibpath_overrides_runpath=no 10014 hardcode_into_libs=yes 10015 ;; 10016 10017uts4*) 10018 version_type=linux 10019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10020 soname_spec='${libname}${release}${shared_ext}$major' 10021 shlibpath_var=LD_LIBRARY_PATH 10022 ;; 10023 10024*) 10025 dynamic_linker=no 10026 ;; 10027esac 10028{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10029$as_echo "$dynamic_linker" >&6; } 10030test "$dynamic_linker" = no && can_build_shared=no 10031 10032variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10033if test "$GCC" = yes; then 10034 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10035fi 10036 10037if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10038 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10039fi 10040if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10041 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10042fi 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10131$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10132hardcode_action= 10133if test -n "$hardcode_libdir_flag_spec" || 10134 test -n "$runpath_var" || 10135 test "X$hardcode_automatic" = "Xyes" ; then 10136 10137 # We can hardcode non-existent directories. 10138 if test "$hardcode_direct" != no && 10139 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10140 # have to relink, otherwise we might link with an installed library 10141 # when we should be linking with a yet-to-be-installed one 10142 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10143 test "$hardcode_minus_L" != no; then 10144 # Linking always hardcodes the temporary library directory. 10145 hardcode_action=relink 10146 else 10147 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10148 hardcode_action=immediate 10149 fi 10150else 10151 # We cannot hardcode anything, or else we can only hardcode existing 10152 # directories. 10153 hardcode_action=unsupported 10154fi 10155{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10156$as_echo "$hardcode_action" >&6; } 10157 10158if test "$hardcode_action" = relink || 10159 test "$inherit_rpath" = yes; then 10160 # Fast installation is not supported 10161 enable_fast_install=no 10162elif test "$shlibpath_overrides_runpath" = yes || 10163 test "$enable_shared" = no; then 10164 # Fast installation is not necessary 10165 enable_fast_install=needless 10166fi 10167 10168 10169 10170 10171 10172 10173 if test "x$enable_dlopen" != xyes; then 10174 enable_dlopen=unknown 10175 enable_dlopen_self=unknown 10176 enable_dlopen_self_static=unknown 10177else 10178 lt_cv_dlopen=no 10179 lt_cv_dlopen_libs= 10180 10181 case $host_os in 10182 beos*) 10183 lt_cv_dlopen="load_add_on" 10184 lt_cv_dlopen_libs= 10185 lt_cv_dlopen_self=yes 10186 ;; 10187 10188 mingw* | pw32* | cegcc*) 10189 lt_cv_dlopen="LoadLibrary" 10190 lt_cv_dlopen_libs= 10191 ;; 10192 10193 cygwin*) 10194 lt_cv_dlopen="dlopen" 10195 lt_cv_dlopen_libs= 10196 ;; 10197 10198 darwin*) 10199 # if libdl is installed we need to link against it 10200 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10201$as_echo_n "checking for dlopen in -ldl... " >&6; } 10202if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10203 $as_echo_n "(cached) " >&6 10204else 10205 ac_check_lib_save_LIBS=$LIBS 10206LIBS="-ldl $LIBS" 10207cat >conftest.$ac_ext <<_ACEOF 10208/* confdefs.h. */ 10209_ACEOF 10210cat confdefs.h >>conftest.$ac_ext 10211cat >>conftest.$ac_ext <<_ACEOF 10212/* end confdefs.h. */ 10213 10214/* Override any GCC internal prototype to avoid an error. 10215 Use char because int might match the return type of a GCC 10216 builtin and then its argument prototype would still apply. */ 10217#ifdef __cplusplus 10218extern "C" 10219#endif 10220char dlopen (); 10221int 10222main () 10223{ 10224return dlopen (); 10225 ; 10226 return 0; 10227} 10228_ACEOF 10229rm -f conftest.$ac_objext conftest$ac_exeext 10230if { (ac_try="$ac_link" 10231case "(($ac_try" in 10232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10233 *) ac_try_echo=$ac_try;; 10234esac 10235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10236$as_echo "$ac_try_echo") >&5 10237 (eval "$ac_link") 2>conftest.er1 10238 ac_status=$? 10239 grep -v '^ *+' conftest.er1 >conftest.err 10240 rm -f conftest.er1 10241 cat conftest.err >&5 10242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10243 (exit $ac_status); } && { 10244 test -z "$ac_c_werror_flag" || 10245 test ! -s conftest.err 10246 } && test -s conftest$ac_exeext && { 10247 test "$cross_compiling" = yes || 10248 $as_test_x conftest$ac_exeext 10249 }; then 10250 ac_cv_lib_dl_dlopen=yes 10251else 10252 $as_echo "$as_me: failed program was:" >&5 10253sed 's/^/| /' conftest.$ac_ext >&5 10254 10255 ac_cv_lib_dl_dlopen=no 10256fi 10257 10258rm -rf conftest.dSYM 10259rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10260 conftest$ac_exeext conftest.$ac_ext 10261LIBS=$ac_check_lib_save_LIBS 10262fi 10263{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10264$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10265if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10266 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10267else 10268 10269 lt_cv_dlopen="dyld" 10270 lt_cv_dlopen_libs= 10271 lt_cv_dlopen_self=yes 10272 10273fi 10274 10275 ;; 10276 10277 *) 10278 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 10279$as_echo_n "checking for shl_load... " >&6; } 10280if test "${ac_cv_func_shl_load+set}" = set; then 10281 $as_echo_n "(cached) " >&6 10282else 10283 cat >conftest.$ac_ext <<_ACEOF 10284/* confdefs.h. */ 10285_ACEOF 10286cat confdefs.h >>conftest.$ac_ext 10287cat >>conftest.$ac_ext <<_ACEOF 10288/* end confdefs.h. */ 10289/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10290 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10291#define shl_load innocuous_shl_load 10292 10293/* System header to define __stub macros and hopefully few prototypes, 10294 which can conflict with char shl_load (); below. 10295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10296 <limits.h> exists even on freestanding compilers. */ 10297 10298#ifdef __STDC__ 10299# include <limits.h> 10300#else 10301# include <assert.h> 10302#endif 10303 10304#undef shl_load 10305 10306/* Override any GCC internal prototype to avoid an error. 10307 Use char because int might match the return type of a GCC 10308 builtin and then its argument prototype would still apply. */ 10309#ifdef __cplusplus 10310extern "C" 10311#endif 10312char shl_load (); 10313/* The GNU C library defines this for functions which it implements 10314 to always fail with ENOSYS. Some functions are actually named 10315 something starting with __ and the normal name is an alias. */ 10316#if defined __stub_shl_load || defined __stub___shl_load 10317choke me 10318#endif 10319 10320int 10321main () 10322{ 10323return shl_load (); 10324 ; 10325 return 0; 10326} 10327_ACEOF 10328rm -f conftest.$ac_objext conftest$ac_exeext 10329if { (ac_try="$ac_link" 10330case "(($ac_try" in 10331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10332 *) ac_try_echo=$ac_try;; 10333esac 10334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10335$as_echo "$ac_try_echo") >&5 10336 (eval "$ac_link") 2>conftest.er1 10337 ac_status=$? 10338 grep -v '^ *+' conftest.er1 >conftest.err 10339 rm -f conftest.er1 10340 cat conftest.err >&5 10341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10342 (exit $ac_status); } && { 10343 test -z "$ac_c_werror_flag" || 10344 test ! -s conftest.err 10345 } && test -s conftest$ac_exeext && { 10346 test "$cross_compiling" = yes || 10347 $as_test_x conftest$ac_exeext 10348 }; then 10349 ac_cv_func_shl_load=yes 10350else 10351 $as_echo "$as_me: failed program was:" >&5 10352sed 's/^/| /' conftest.$ac_ext >&5 10353 10354 ac_cv_func_shl_load=no 10355fi 10356 10357rm -rf conftest.dSYM 10358rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10359 conftest$ac_exeext conftest.$ac_ext 10360fi 10361{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10362$as_echo "$ac_cv_func_shl_load" >&6; } 10363if test "x$ac_cv_func_shl_load" = x""yes; then 10364 lt_cv_dlopen="shl_load" 10365else 10366 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10367$as_echo_n "checking for shl_load in -ldld... " >&6; } 10368if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10369 $as_echo_n "(cached) " >&6 10370else 10371 ac_check_lib_save_LIBS=$LIBS 10372LIBS="-ldld $LIBS" 10373cat >conftest.$ac_ext <<_ACEOF 10374/* confdefs.h. */ 10375_ACEOF 10376cat confdefs.h >>conftest.$ac_ext 10377cat >>conftest.$ac_ext <<_ACEOF 10378/* end confdefs.h. */ 10379 10380/* Override any GCC internal prototype to avoid an error. 10381 Use char because int might match the return type of a GCC 10382 builtin and then its argument prototype would still apply. */ 10383#ifdef __cplusplus 10384extern "C" 10385#endif 10386char shl_load (); 10387int 10388main () 10389{ 10390return shl_load (); 10391 ; 10392 return 0; 10393} 10394_ACEOF 10395rm -f conftest.$ac_objext conftest$ac_exeext 10396if { (ac_try="$ac_link" 10397case "(($ac_try" in 10398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10399 *) ac_try_echo=$ac_try;; 10400esac 10401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10402$as_echo "$ac_try_echo") >&5 10403 (eval "$ac_link") 2>conftest.er1 10404 ac_status=$? 10405 grep -v '^ *+' conftest.er1 >conftest.err 10406 rm -f conftest.er1 10407 cat conftest.err >&5 10408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10409 (exit $ac_status); } && { 10410 test -z "$ac_c_werror_flag" || 10411 test ! -s conftest.err 10412 } && test -s conftest$ac_exeext && { 10413 test "$cross_compiling" = yes || 10414 $as_test_x conftest$ac_exeext 10415 }; then 10416 ac_cv_lib_dld_shl_load=yes 10417else 10418 $as_echo "$as_me: failed program was:" >&5 10419sed 's/^/| /' conftest.$ac_ext >&5 10420 10421 ac_cv_lib_dld_shl_load=no 10422fi 10423 10424rm -rf conftest.dSYM 10425rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10426 conftest$ac_exeext conftest.$ac_ext 10427LIBS=$ac_check_lib_save_LIBS 10428fi 10429{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10430$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10431if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10432 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10433else 10434 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10435$as_echo_n "checking for dlopen... " >&6; } 10436if test "${ac_cv_func_dlopen+set}" = set; then 10437 $as_echo_n "(cached) " >&6 10438else 10439 cat >conftest.$ac_ext <<_ACEOF 10440/* confdefs.h. */ 10441_ACEOF 10442cat confdefs.h >>conftest.$ac_ext 10443cat >>conftest.$ac_ext <<_ACEOF 10444/* end confdefs.h. */ 10445/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10446 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10447#define dlopen innocuous_dlopen 10448 10449/* System header to define __stub macros and hopefully few prototypes, 10450 which can conflict with char dlopen (); below. 10451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10452 <limits.h> exists even on freestanding compilers. */ 10453 10454#ifdef __STDC__ 10455# include <limits.h> 10456#else 10457# include <assert.h> 10458#endif 10459 10460#undef dlopen 10461 10462/* Override any GCC internal prototype to avoid an error. 10463 Use char because int might match the return type of a GCC 10464 builtin and then its argument prototype would still apply. */ 10465#ifdef __cplusplus 10466extern "C" 10467#endif 10468char dlopen (); 10469/* The GNU C library defines this for functions which it implements 10470 to always fail with ENOSYS. Some functions are actually named 10471 something starting with __ and the normal name is an alias. */ 10472#if defined __stub_dlopen || defined __stub___dlopen 10473choke me 10474#endif 10475 10476int 10477main () 10478{ 10479return dlopen (); 10480 ; 10481 return 0; 10482} 10483_ACEOF 10484rm -f conftest.$ac_objext conftest$ac_exeext 10485if { (ac_try="$ac_link" 10486case "(($ac_try" in 10487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10488 *) ac_try_echo=$ac_try;; 10489esac 10490eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10491$as_echo "$ac_try_echo") >&5 10492 (eval "$ac_link") 2>conftest.er1 10493 ac_status=$? 10494 grep -v '^ *+' conftest.er1 >conftest.err 10495 rm -f conftest.er1 10496 cat conftest.err >&5 10497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10498 (exit $ac_status); } && { 10499 test -z "$ac_c_werror_flag" || 10500 test ! -s conftest.err 10501 } && test -s conftest$ac_exeext && { 10502 test "$cross_compiling" = yes || 10503 $as_test_x conftest$ac_exeext 10504 }; then 10505 ac_cv_func_dlopen=yes 10506else 10507 $as_echo "$as_me: failed program was:" >&5 10508sed 's/^/| /' conftest.$ac_ext >&5 10509 10510 ac_cv_func_dlopen=no 10511fi 10512 10513rm -rf conftest.dSYM 10514rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10515 conftest$ac_exeext conftest.$ac_ext 10516fi 10517{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10518$as_echo "$ac_cv_func_dlopen" >&6; } 10519if test "x$ac_cv_func_dlopen" = x""yes; then 10520 lt_cv_dlopen="dlopen" 10521else 10522 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10523$as_echo_n "checking for dlopen in -ldl... " >&6; } 10524if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10525 $as_echo_n "(cached) " >&6 10526else 10527 ac_check_lib_save_LIBS=$LIBS 10528LIBS="-ldl $LIBS" 10529cat >conftest.$ac_ext <<_ACEOF 10530/* confdefs.h. */ 10531_ACEOF 10532cat confdefs.h >>conftest.$ac_ext 10533cat >>conftest.$ac_ext <<_ACEOF 10534/* end confdefs.h. */ 10535 10536/* Override any GCC internal prototype to avoid an error. 10537 Use char because int might match the return type of a GCC 10538 builtin and then its argument prototype would still apply. */ 10539#ifdef __cplusplus 10540extern "C" 10541#endif 10542char dlopen (); 10543int 10544main () 10545{ 10546return dlopen (); 10547 ; 10548 return 0; 10549} 10550_ACEOF 10551rm -f conftest.$ac_objext conftest$ac_exeext 10552if { (ac_try="$ac_link" 10553case "(($ac_try" in 10554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10555 *) ac_try_echo=$ac_try;; 10556esac 10557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10558$as_echo "$ac_try_echo") >&5 10559 (eval "$ac_link") 2>conftest.er1 10560 ac_status=$? 10561 grep -v '^ *+' conftest.er1 >conftest.err 10562 rm -f conftest.er1 10563 cat conftest.err >&5 10564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10565 (exit $ac_status); } && { 10566 test -z "$ac_c_werror_flag" || 10567 test ! -s conftest.err 10568 } && test -s conftest$ac_exeext && { 10569 test "$cross_compiling" = yes || 10570 $as_test_x conftest$ac_exeext 10571 }; then 10572 ac_cv_lib_dl_dlopen=yes 10573else 10574 $as_echo "$as_me: failed program was:" >&5 10575sed 's/^/| /' conftest.$ac_ext >&5 10576 10577 ac_cv_lib_dl_dlopen=no 10578fi 10579 10580rm -rf conftest.dSYM 10581rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10582 conftest$ac_exeext conftest.$ac_ext 10583LIBS=$ac_check_lib_save_LIBS 10584fi 10585{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10586$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10587if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10588 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10589else 10590 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10591$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10592if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10593 $as_echo_n "(cached) " >&6 10594else 10595 ac_check_lib_save_LIBS=$LIBS 10596LIBS="-lsvld $LIBS" 10597cat >conftest.$ac_ext <<_ACEOF 10598/* confdefs.h. */ 10599_ACEOF 10600cat confdefs.h >>conftest.$ac_ext 10601cat >>conftest.$ac_ext <<_ACEOF 10602/* end confdefs.h. */ 10603 10604/* Override any GCC internal prototype to avoid an error. 10605 Use char because int might match the return type of a GCC 10606 builtin and then its argument prototype would still apply. */ 10607#ifdef __cplusplus 10608extern "C" 10609#endif 10610char dlopen (); 10611int 10612main () 10613{ 10614return dlopen (); 10615 ; 10616 return 0; 10617} 10618_ACEOF 10619rm -f conftest.$ac_objext conftest$ac_exeext 10620if { (ac_try="$ac_link" 10621case "(($ac_try" in 10622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10623 *) ac_try_echo=$ac_try;; 10624esac 10625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10626$as_echo "$ac_try_echo") >&5 10627 (eval "$ac_link") 2>conftest.er1 10628 ac_status=$? 10629 grep -v '^ *+' conftest.er1 >conftest.err 10630 rm -f conftest.er1 10631 cat conftest.err >&5 10632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10633 (exit $ac_status); } && { 10634 test -z "$ac_c_werror_flag" || 10635 test ! -s conftest.err 10636 } && test -s conftest$ac_exeext && { 10637 test "$cross_compiling" = yes || 10638 $as_test_x conftest$ac_exeext 10639 }; then 10640 ac_cv_lib_svld_dlopen=yes 10641else 10642 $as_echo "$as_me: failed program was:" >&5 10643sed 's/^/| /' conftest.$ac_ext >&5 10644 10645 ac_cv_lib_svld_dlopen=no 10646fi 10647 10648rm -rf conftest.dSYM 10649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10650 conftest$ac_exeext conftest.$ac_ext 10651LIBS=$ac_check_lib_save_LIBS 10652fi 10653{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10654$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10655if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10656 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10657else 10658 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10659$as_echo_n "checking for dld_link in -ldld... " >&6; } 10660if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10661 $as_echo_n "(cached) " >&6 10662else 10663 ac_check_lib_save_LIBS=$LIBS 10664LIBS="-ldld $LIBS" 10665cat >conftest.$ac_ext <<_ACEOF 10666/* confdefs.h. */ 10667_ACEOF 10668cat confdefs.h >>conftest.$ac_ext 10669cat >>conftest.$ac_ext <<_ACEOF 10670/* end confdefs.h. */ 10671 10672/* Override any GCC internal prototype to avoid an error. 10673 Use char because int might match the return type of a GCC 10674 builtin and then its argument prototype would still apply. */ 10675#ifdef __cplusplus 10676extern "C" 10677#endif 10678char dld_link (); 10679int 10680main () 10681{ 10682return dld_link (); 10683 ; 10684 return 0; 10685} 10686_ACEOF 10687rm -f conftest.$ac_objext conftest$ac_exeext 10688if { (ac_try="$ac_link" 10689case "(($ac_try" in 10690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10691 *) ac_try_echo=$ac_try;; 10692esac 10693eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10694$as_echo "$ac_try_echo") >&5 10695 (eval "$ac_link") 2>conftest.er1 10696 ac_status=$? 10697 grep -v '^ *+' conftest.er1 >conftest.err 10698 rm -f conftest.er1 10699 cat conftest.err >&5 10700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10701 (exit $ac_status); } && { 10702 test -z "$ac_c_werror_flag" || 10703 test ! -s conftest.err 10704 } && test -s conftest$ac_exeext && { 10705 test "$cross_compiling" = yes || 10706 $as_test_x conftest$ac_exeext 10707 }; then 10708 ac_cv_lib_dld_dld_link=yes 10709else 10710 $as_echo "$as_me: failed program was:" >&5 10711sed 's/^/| /' conftest.$ac_ext >&5 10712 10713 ac_cv_lib_dld_dld_link=no 10714fi 10715 10716rm -rf conftest.dSYM 10717rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10718 conftest$ac_exeext conftest.$ac_ext 10719LIBS=$ac_check_lib_save_LIBS 10720fi 10721{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10722$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10723if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10724 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10725fi 10726 10727 10728fi 10729 10730 10731fi 10732 10733 10734fi 10735 10736 10737fi 10738 10739 10740fi 10741 10742 ;; 10743 esac 10744 10745 if test "x$lt_cv_dlopen" != xno; then 10746 enable_dlopen=yes 10747 else 10748 enable_dlopen=no 10749 fi 10750 10751 case $lt_cv_dlopen in 10752 dlopen) 10753 save_CPPFLAGS="$CPPFLAGS" 10754 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10755 10756 save_LDFLAGS="$LDFLAGS" 10757 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10758 10759 save_LIBS="$LIBS" 10760 LIBS="$lt_cv_dlopen_libs $LIBS" 10761 10762 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10763$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10764if test "${lt_cv_dlopen_self+set}" = set; then 10765 $as_echo_n "(cached) " >&6 10766else 10767 if test "$cross_compiling" = yes; then : 10768 lt_cv_dlopen_self=cross 10769else 10770 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10771 lt_status=$lt_dlunknown 10772 cat > conftest.$ac_ext <<_LT_EOF 10773#line 10773 "configure" 10774#include "confdefs.h" 10775 10776#if HAVE_DLFCN_H 10777#include <dlfcn.h> 10778#endif 10779 10780#include <stdio.h> 10781 10782#ifdef RTLD_GLOBAL 10783# define LT_DLGLOBAL RTLD_GLOBAL 10784#else 10785# ifdef DL_GLOBAL 10786# define LT_DLGLOBAL DL_GLOBAL 10787# else 10788# define LT_DLGLOBAL 0 10789# endif 10790#endif 10791 10792/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10793 find out it does not work in some platform. */ 10794#ifndef LT_DLLAZY_OR_NOW 10795# ifdef RTLD_LAZY 10796# define LT_DLLAZY_OR_NOW RTLD_LAZY 10797# else 10798# ifdef DL_LAZY 10799# define LT_DLLAZY_OR_NOW DL_LAZY 10800# else 10801# ifdef RTLD_NOW 10802# define LT_DLLAZY_OR_NOW RTLD_NOW 10803# else 10804# ifdef DL_NOW 10805# define LT_DLLAZY_OR_NOW DL_NOW 10806# else 10807# define LT_DLLAZY_OR_NOW 0 10808# endif 10809# endif 10810# endif 10811# endif 10812#endif 10813 10814void fnord() { int i=42;} 10815int main () 10816{ 10817 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10818 int status = $lt_dlunknown; 10819 10820 if (self) 10821 { 10822 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10823 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10824 /* dlclose (self); */ 10825 } 10826 else 10827 puts (dlerror ()); 10828 10829 return status; 10830} 10831_LT_EOF 10832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10833 (eval $ac_link) 2>&5 10834 ac_status=$? 10835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10836 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10837 (./conftest; exit; ) >&5 2>/dev/null 10838 lt_status=$? 10839 case x$lt_status in 10840 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10841 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10842 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10843 esac 10844 else : 10845 # compilation failed 10846 lt_cv_dlopen_self=no 10847 fi 10848fi 10849rm -fr conftest* 10850 10851 10852fi 10853{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10854$as_echo "$lt_cv_dlopen_self" >&6; } 10855 10856 if test "x$lt_cv_dlopen_self" = xyes; then 10857 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10858 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10859$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10860if test "${lt_cv_dlopen_self_static+set}" = set; then 10861 $as_echo_n "(cached) " >&6 10862else 10863 if test "$cross_compiling" = yes; then : 10864 lt_cv_dlopen_self_static=cross 10865else 10866 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10867 lt_status=$lt_dlunknown 10868 cat > conftest.$ac_ext <<_LT_EOF 10869#line 10869 "configure" 10870#include "confdefs.h" 10871 10872#if HAVE_DLFCN_H 10873#include <dlfcn.h> 10874#endif 10875 10876#include <stdio.h> 10877 10878#ifdef RTLD_GLOBAL 10879# define LT_DLGLOBAL RTLD_GLOBAL 10880#else 10881# ifdef DL_GLOBAL 10882# define LT_DLGLOBAL DL_GLOBAL 10883# else 10884# define LT_DLGLOBAL 0 10885# endif 10886#endif 10887 10888/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10889 find out it does not work in some platform. */ 10890#ifndef LT_DLLAZY_OR_NOW 10891# ifdef RTLD_LAZY 10892# define LT_DLLAZY_OR_NOW RTLD_LAZY 10893# else 10894# ifdef DL_LAZY 10895# define LT_DLLAZY_OR_NOW DL_LAZY 10896# else 10897# ifdef RTLD_NOW 10898# define LT_DLLAZY_OR_NOW RTLD_NOW 10899# else 10900# ifdef DL_NOW 10901# define LT_DLLAZY_OR_NOW DL_NOW 10902# else 10903# define LT_DLLAZY_OR_NOW 0 10904# endif 10905# endif 10906# endif 10907# endif 10908#endif 10909 10910void fnord() { int i=42;} 10911int main () 10912{ 10913 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10914 int status = $lt_dlunknown; 10915 10916 if (self) 10917 { 10918 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10919 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10920 /* dlclose (self); */ 10921 } 10922 else 10923 puts (dlerror ()); 10924 10925 return status; 10926} 10927_LT_EOF 10928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10929 (eval $ac_link) 2>&5 10930 ac_status=$? 10931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10932 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10933 (./conftest; exit; ) >&5 2>/dev/null 10934 lt_status=$? 10935 case x$lt_status in 10936 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10937 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10938 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10939 esac 10940 else : 10941 # compilation failed 10942 lt_cv_dlopen_self_static=no 10943 fi 10944fi 10945rm -fr conftest* 10946 10947 10948fi 10949{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10950$as_echo "$lt_cv_dlopen_self_static" >&6; } 10951 fi 10952 10953 CPPFLAGS="$save_CPPFLAGS" 10954 LDFLAGS="$save_LDFLAGS" 10955 LIBS="$save_LIBS" 10956 ;; 10957 esac 10958 10959 case $lt_cv_dlopen_self in 10960 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10961 *) enable_dlopen_self=unknown ;; 10962 esac 10963 10964 case $lt_cv_dlopen_self_static in 10965 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10966 *) enable_dlopen_self_static=unknown ;; 10967 esac 10968fi 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986striplib= 10987old_striplib= 10988{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10989$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10990if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10991 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10992 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10993 { $as_echo "$as_me:$LINENO: result: yes" >&5 10994$as_echo "yes" >&6; } 10995else 10996# FIXME - insert some real tests, host_os isn't really good enough 10997 case $host_os in 10998 darwin*) 10999 if test -n "$STRIP" ; then 11000 striplib="$STRIP -x" 11001 old_striplib="$STRIP -S" 11002 { $as_echo "$as_me:$LINENO: result: yes" >&5 11003$as_echo "yes" >&6; } 11004 else 11005 { $as_echo "$as_me:$LINENO: result: no" >&5 11006$as_echo "no" >&6; } 11007 fi 11008 ;; 11009 *) 11010 { $as_echo "$as_me:$LINENO: result: no" >&5 11011$as_echo "no" >&6; } 11012 ;; 11013 esac 11014fi 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 # Report which library types will actually be built 11028 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11029$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11030 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11031$as_echo "$can_build_shared" >&6; } 11032 11033 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11034$as_echo_n "checking whether to build shared libraries... " >&6; } 11035 test "$can_build_shared" = "no" && enable_shared=no 11036 11037 # On AIX, shared libraries and static libraries use the same namespace, and 11038 # are all built from PIC. 11039 case $host_os in 11040 aix3*) 11041 test "$enable_shared" = yes && enable_static=no 11042 if test -n "$RANLIB"; then 11043 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11044 postinstall_cmds='$RANLIB $lib' 11045 fi 11046 ;; 11047 11048 aix[4-9]*) 11049 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11050 test "$enable_shared" = yes && enable_static=no 11051 fi 11052 ;; 11053 esac 11054 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11055$as_echo "$enable_shared" >&6; } 11056 11057 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11058$as_echo_n "checking whether to build static libraries... " >&6; } 11059 # Make sure either enable_shared or enable_static is yes. 11060 test "$enable_shared" = yes || enable_static=yes 11061 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11062$as_echo "$enable_static" >&6; } 11063 11064 11065 11066 11067fi 11068ac_ext=c 11069ac_cpp='$CPP $CPPFLAGS' 11070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11072ac_compiler_gnu=$ac_cv_c_compiler_gnu 11073 11074CC="$lt_save_CC" 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 ac_config_commands="$ac_config_commands libtool" 11089 11090 11091 11092 11093# Only expand once: 11094 11095 11096ac_ext=c 11097ac_cpp='$CPP $CPPFLAGS' 11098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11100ac_compiler_gnu=$ac_cv_c_compiler_gnu 11101if test -n "$ac_tool_prefix"; then 11102 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11103set dummy ${ac_tool_prefix}gcc; ac_word=$2 11104{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11105$as_echo_n "checking for $ac_word... " >&6; } 11106if test "${ac_cv_prog_CC+set}" = set; then 11107 $as_echo_n "(cached) " >&6 11108else 11109 if test -n "$CC"; then 11110 ac_cv_prog_CC="$CC" # Let the user override the test. 11111else 11112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11113for as_dir in $PATH 11114do 11115 IFS=$as_save_IFS 11116 test -z "$as_dir" && as_dir=. 11117 for ac_exec_ext in '' $ac_executable_extensions; do 11118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11119 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11120 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11121 break 2 11122 fi 11123done 11124done 11125IFS=$as_save_IFS 11126 11127fi 11128fi 11129CC=$ac_cv_prog_CC 11130if test -n "$CC"; then 11131 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11132$as_echo "$CC" >&6; } 11133else 11134 { $as_echo "$as_me:$LINENO: result: no" >&5 11135$as_echo "no" >&6; } 11136fi 11137 11138 11139fi 11140if test -z "$ac_cv_prog_CC"; then 11141 ac_ct_CC=$CC 11142 # Extract the first word of "gcc", so it can be a program name with args. 11143set dummy gcc; ac_word=$2 11144{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11145$as_echo_n "checking for $ac_word... " >&6; } 11146if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 11147 $as_echo_n "(cached) " >&6 11148else 11149 if test -n "$ac_ct_CC"; then 11150 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11151else 11152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11153for as_dir in $PATH 11154do 11155 IFS=$as_save_IFS 11156 test -z "$as_dir" && as_dir=. 11157 for ac_exec_ext in '' $ac_executable_extensions; do 11158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11159 ac_cv_prog_ac_ct_CC="gcc" 11160 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11161 break 2 11162 fi 11163done 11164done 11165IFS=$as_save_IFS 11166 11167fi 11168fi 11169ac_ct_CC=$ac_cv_prog_ac_ct_CC 11170if test -n "$ac_ct_CC"; then 11171 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 11172$as_echo "$ac_ct_CC" >&6; } 11173else 11174 { $as_echo "$as_me:$LINENO: result: no" >&5 11175$as_echo "no" >&6; } 11176fi 11177 11178 if test "x$ac_ct_CC" = x; then 11179 CC="" 11180 else 11181 case $cross_compiling:$ac_tool_warned in 11182yes:) 11183{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 11184$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11185ac_tool_warned=yes ;; 11186esac 11187 CC=$ac_ct_CC 11188 fi 11189else 11190 CC="$ac_cv_prog_CC" 11191fi 11192 11193if test -z "$CC"; then 11194 if test -n "$ac_tool_prefix"; then 11195 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11196set dummy ${ac_tool_prefix}cc; ac_word=$2 11197{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11198$as_echo_n "checking for $ac_word... " >&6; } 11199if test "${ac_cv_prog_CC+set}" = set; then 11200 $as_echo_n "(cached) " >&6 11201else 11202 if test -n "$CC"; then 11203 ac_cv_prog_CC="$CC" # Let the user override the test. 11204else 11205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11206for as_dir in $PATH 11207do 11208 IFS=$as_save_IFS 11209 test -z "$as_dir" && as_dir=. 11210 for ac_exec_ext in '' $ac_executable_extensions; do 11211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11212 ac_cv_prog_CC="${ac_tool_prefix}cc" 11213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11214 break 2 11215 fi 11216done 11217done 11218IFS=$as_save_IFS 11219 11220fi 11221fi 11222CC=$ac_cv_prog_CC 11223if test -n "$CC"; then 11224 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11225$as_echo "$CC" >&6; } 11226else 11227 { $as_echo "$as_me:$LINENO: result: no" >&5 11228$as_echo "no" >&6; } 11229fi 11230 11231 11232 fi 11233fi 11234if test -z "$CC"; then 11235 # Extract the first word of "cc", so it can be a program name with args. 11236set dummy cc; ac_word=$2 11237{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11238$as_echo_n "checking for $ac_word... " >&6; } 11239if test "${ac_cv_prog_CC+set}" = set; then 11240 $as_echo_n "(cached) " >&6 11241else 11242 if test -n "$CC"; then 11243 ac_cv_prog_CC="$CC" # Let the user override the test. 11244else 11245 ac_prog_rejected=no 11246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11247for as_dir in $PATH 11248do 11249 IFS=$as_save_IFS 11250 test -z "$as_dir" && as_dir=. 11251 for ac_exec_ext in '' $ac_executable_extensions; do 11252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11253 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11254 ac_prog_rejected=yes 11255 continue 11256 fi 11257 ac_cv_prog_CC="cc" 11258 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11259 break 2 11260 fi 11261done 11262done 11263IFS=$as_save_IFS 11264 11265if test $ac_prog_rejected = yes; then 11266 # We found a bogon in the path, so make sure we never use it. 11267 set dummy $ac_cv_prog_CC 11268 shift 11269 if test $# != 0; then 11270 # We chose a different compiler from the bogus one. 11271 # However, it has the same basename, so the bogon will be chosen 11272 # first if we set CC to just the basename; use the full file name. 11273 shift 11274 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11275 fi 11276fi 11277fi 11278fi 11279CC=$ac_cv_prog_CC 11280if test -n "$CC"; then 11281 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11282$as_echo "$CC" >&6; } 11283else 11284 { $as_echo "$as_me:$LINENO: result: no" >&5 11285$as_echo "no" >&6; } 11286fi 11287 11288 11289fi 11290if test -z "$CC"; then 11291 if test -n "$ac_tool_prefix"; then 11292 for ac_prog in cl.exe 11293 do 11294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11295set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11296{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11297$as_echo_n "checking for $ac_word... " >&6; } 11298if test "${ac_cv_prog_CC+set}" = set; then 11299 $as_echo_n "(cached) " >&6 11300else 11301 if test -n "$CC"; then 11302 ac_cv_prog_CC="$CC" # Let the user override the test. 11303else 11304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11305for as_dir in $PATH 11306do 11307 IFS=$as_save_IFS 11308 test -z "$as_dir" && as_dir=. 11309 for ac_exec_ext in '' $ac_executable_extensions; do 11310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11311 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11312 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11313 break 2 11314 fi 11315done 11316done 11317IFS=$as_save_IFS 11318 11319fi 11320fi 11321CC=$ac_cv_prog_CC 11322if test -n "$CC"; then 11323 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11324$as_echo "$CC" >&6; } 11325else 11326 { $as_echo "$as_me:$LINENO: result: no" >&5 11327$as_echo "no" >&6; } 11328fi 11329 11330 11331 test -n "$CC" && break 11332 done 11333fi 11334if test -z "$CC"; then 11335 ac_ct_CC=$CC 11336 for ac_prog in cl.exe 11337do 11338 # Extract the first word of "$ac_prog", so it can be a program name with args. 11339set dummy $ac_prog; ac_word=$2 11340{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11341$as_echo_n "checking for $ac_word... " >&6; } 11342if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 11343 $as_echo_n "(cached) " >&6 11344else 11345 if test -n "$ac_ct_CC"; then 11346 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11347else 11348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11349for as_dir in $PATH 11350do 11351 IFS=$as_save_IFS 11352 test -z "$as_dir" && as_dir=. 11353 for ac_exec_ext in '' $ac_executable_extensions; do 11354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11355 ac_cv_prog_ac_ct_CC="$ac_prog" 11356 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11357 break 2 11358 fi 11359done 11360done 11361IFS=$as_save_IFS 11362 11363fi 11364fi 11365ac_ct_CC=$ac_cv_prog_ac_ct_CC 11366if test -n "$ac_ct_CC"; then 11367 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 11368$as_echo "$ac_ct_CC" >&6; } 11369else 11370 { $as_echo "$as_me:$LINENO: result: no" >&5 11371$as_echo "no" >&6; } 11372fi 11373 11374 11375 test -n "$ac_ct_CC" && break 11376done 11377 11378 if test "x$ac_ct_CC" = x; then 11379 CC="" 11380 else 11381 case $cross_compiling:$ac_tool_warned in 11382yes:) 11383{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 11384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11385ac_tool_warned=yes ;; 11386esac 11387 CC=$ac_ct_CC 11388 fi 11389fi 11390 11391fi 11392 11393 11394test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 11395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11396{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 11397See \`config.log' for more details." >&5 11398$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 11399See \`config.log' for more details." >&2;} 11400 { (exit 1); exit 1; }; }; } 11401 11402# Provide some information about the compiler. 11403$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 11404set X $ac_compile 11405ac_compiler=$2 11406{ (ac_try="$ac_compiler --version >&5" 11407case "(($ac_try" in 11408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11409 *) ac_try_echo=$ac_try;; 11410esac 11411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11412$as_echo "$ac_try_echo") >&5 11413 (eval "$ac_compiler --version >&5") 2>&5 11414 ac_status=$? 11415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11416 (exit $ac_status); } 11417{ (ac_try="$ac_compiler -v >&5" 11418case "(($ac_try" in 11419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11420 *) ac_try_echo=$ac_try;; 11421esac 11422eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11423$as_echo "$ac_try_echo") >&5 11424 (eval "$ac_compiler -v >&5") 2>&5 11425 ac_status=$? 11426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11427 (exit $ac_status); } 11428{ (ac_try="$ac_compiler -V >&5" 11429case "(($ac_try" in 11430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11431 *) ac_try_echo=$ac_try;; 11432esac 11433eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11434$as_echo "$ac_try_echo") >&5 11435 (eval "$ac_compiler -V >&5") 2>&5 11436 ac_status=$? 11437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11438 (exit $ac_status); } 11439 11440{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 11441$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 11442if test "${ac_cv_c_compiler_gnu+set}" = set; then 11443 $as_echo_n "(cached) " >&6 11444else 11445 cat >conftest.$ac_ext <<_ACEOF 11446/* confdefs.h. */ 11447_ACEOF 11448cat confdefs.h >>conftest.$ac_ext 11449cat >>conftest.$ac_ext <<_ACEOF 11450/* end confdefs.h. */ 11451 11452int 11453main () 11454{ 11455#ifndef __GNUC__ 11456 choke me 11457#endif 11458 11459 ; 11460 return 0; 11461} 11462_ACEOF 11463rm -f conftest.$ac_objext 11464if { (ac_try="$ac_compile" 11465case "(($ac_try" in 11466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11467 *) ac_try_echo=$ac_try;; 11468esac 11469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11470$as_echo "$ac_try_echo") >&5 11471 (eval "$ac_compile") 2>conftest.er1 11472 ac_status=$? 11473 grep -v '^ *+' conftest.er1 >conftest.err 11474 rm -f conftest.er1 11475 cat conftest.err >&5 11476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11477 (exit $ac_status); } && { 11478 test -z "$ac_c_werror_flag" || 11479 test ! -s conftest.err 11480 } && test -s conftest.$ac_objext; then 11481 ac_compiler_gnu=yes 11482else 11483 $as_echo "$as_me: failed program was:" >&5 11484sed 's/^/| /' conftest.$ac_ext >&5 11485 11486 ac_compiler_gnu=no 11487fi 11488 11489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11490ac_cv_c_compiler_gnu=$ac_compiler_gnu 11491 11492fi 11493{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 11494$as_echo "$ac_cv_c_compiler_gnu" >&6; } 11495if test $ac_compiler_gnu = yes; then 11496 GCC=yes 11497else 11498 GCC= 11499fi 11500ac_test_CFLAGS=${CFLAGS+set} 11501ac_save_CFLAGS=$CFLAGS 11502{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 11503$as_echo_n "checking whether $CC accepts -g... " >&6; } 11504if test "${ac_cv_prog_cc_g+set}" = set; then 11505 $as_echo_n "(cached) " >&6 11506else 11507 ac_save_c_werror_flag=$ac_c_werror_flag 11508 ac_c_werror_flag=yes 11509 ac_cv_prog_cc_g=no 11510 CFLAGS="-g" 11511 cat >conftest.$ac_ext <<_ACEOF 11512/* confdefs.h. */ 11513_ACEOF 11514cat confdefs.h >>conftest.$ac_ext 11515cat >>conftest.$ac_ext <<_ACEOF 11516/* end confdefs.h. */ 11517 11518int 11519main () 11520{ 11521 11522 ; 11523 return 0; 11524} 11525_ACEOF 11526rm -f conftest.$ac_objext 11527if { (ac_try="$ac_compile" 11528case "(($ac_try" in 11529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11530 *) ac_try_echo=$ac_try;; 11531esac 11532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11533$as_echo "$ac_try_echo") >&5 11534 (eval "$ac_compile") 2>conftest.er1 11535 ac_status=$? 11536 grep -v '^ *+' conftest.er1 >conftest.err 11537 rm -f conftest.er1 11538 cat conftest.err >&5 11539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11540 (exit $ac_status); } && { 11541 test -z "$ac_c_werror_flag" || 11542 test ! -s conftest.err 11543 } && test -s conftest.$ac_objext; then 11544 ac_cv_prog_cc_g=yes 11545else 11546 $as_echo "$as_me: failed program was:" >&5 11547sed 's/^/| /' conftest.$ac_ext >&5 11548 11549 CFLAGS="" 11550 cat >conftest.$ac_ext <<_ACEOF 11551/* confdefs.h. */ 11552_ACEOF 11553cat confdefs.h >>conftest.$ac_ext 11554cat >>conftest.$ac_ext <<_ACEOF 11555/* end confdefs.h. */ 11556 11557int 11558main () 11559{ 11560 11561 ; 11562 return 0; 11563} 11564_ACEOF 11565rm -f conftest.$ac_objext 11566if { (ac_try="$ac_compile" 11567case "(($ac_try" in 11568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11569 *) ac_try_echo=$ac_try;; 11570esac 11571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11572$as_echo "$ac_try_echo") >&5 11573 (eval "$ac_compile") 2>conftest.er1 11574 ac_status=$? 11575 grep -v '^ *+' conftest.er1 >conftest.err 11576 rm -f conftest.er1 11577 cat conftest.err >&5 11578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11579 (exit $ac_status); } && { 11580 test -z "$ac_c_werror_flag" || 11581 test ! -s conftest.err 11582 } && test -s conftest.$ac_objext; then 11583 : 11584else 11585 $as_echo "$as_me: failed program was:" >&5 11586sed 's/^/| /' conftest.$ac_ext >&5 11587 11588 ac_c_werror_flag=$ac_save_c_werror_flag 11589 CFLAGS="-g" 11590 cat >conftest.$ac_ext <<_ACEOF 11591/* confdefs.h. */ 11592_ACEOF 11593cat confdefs.h >>conftest.$ac_ext 11594cat >>conftest.$ac_ext <<_ACEOF 11595/* end confdefs.h. */ 11596 11597int 11598main () 11599{ 11600 11601 ; 11602 return 0; 11603} 11604_ACEOF 11605rm -f conftest.$ac_objext 11606if { (ac_try="$ac_compile" 11607case "(($ac_try" in 11608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11609 *) ac_try_echo=$ac_try;; 11610esac 11611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11612$as_echo "$ac_try_echo") >&5 11613 (eval "$ac_compile") 2>conftest.er1 11614 ac_status=$? 11615 grep -v '^ *+' conftest.er1 >conftest.err 11616 rm -f conftest.er1 11617 cat conftest.err >&5 11618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11619 (exit $ac_status); } && { 11620 test -z "$ac_c_werror_flag" || 11621 test ! -s conftest.err 11622 } && test -s conftest.$ac_objext; then 11623 ac_cv_prog_cc_g=yes 11624else 11625 $as_echo "$as_me: failed program was:" >&5 11626sed 's/^/| /' conftest.$ac_ext >&5 11627 11628 11629fi 11630 11631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11632fi 11633 11634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11635fi 11636 11637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11638 ac_c_werror_flag=$ac_save_c_werror_flag 11639fi 11640{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 11641$as_echo "$ac_cv_prog_cc_g" >&6; } 11642if test "$ac_test_CFLAGS" = set; then 11643 CFLAGS=$ac_save_CFLAGS 11644elif test $ac_cv_prog_cc_g = yes; then 11645 if test "$GCC" = yes; then 11646 CFLAGS="-g -O2" 11647 else 11648 CFLAGS="-g" 11649 fi 11650else 11651 if test "$GCC" = yes; then 11652 CFLAGS="-O2" 11653 else 11654 CFLAGS= 11655 fi 11656fi 11657{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 11658$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 11659if test "${ac_cv_prog_cc_c89+set}" = set; then 11660 $as_echo_n "(cached) " >&6 11661else 11662 ac_cv_prog_cc_c89=no 11663ac_save_CC=$CC 11664cat >conftest.$ac_ext <<_ACEOF 11665/* confdefs.h. */ 11666_ACEOF 11667cat confdefs.h >>conftest.$ac_ext 11668cat >>conftest.$ac_ext <<_ACEOF 11669/* end confdefs.h. */ 11670#include <stdarg.h> 11671#include <stdio.h> 11672#include <sys/types.h> 11673#include <sys/stat.h> 11674/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 11675struct buf { int x; }; 11676FILE * (*rcsopen) (struct buf *, struct stat *, int); 11677static char *e (p, i) 11678 char **p; 11679 int i; 11680{ 11681 return p[i]; 11682} 11683static char *f (char * (*g) (char **, int), char **p, ...) 11684{ 11685 char *s; 11686 va_list v; 11687 va_start (v,p); 11688 s = g (p, va_arg (v,int)); 11689 va_end (v); 11690 return s; 11691} 11692 11693/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 11694 function prototypes and stuff, but not '\xHH' hex character constants. 11695 These don't provoke an error unfortunately, instead are silently treated 11696 as 'x'. The following induces an error, until -std is added to get 11697 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 11698 array size at least. It's necessary to write '\x00'==0 to get something 11699 that's true only with -std. */ 11700int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 11701 11702/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 11703 inside strings and character constants. */ 11704#define FOO(x) 'x' 11705int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 11706 11707int test (int i, double x); 11708struct s1 {int (*f) (int a);}; 11709struct s2 {int (*f) (double a);}; 11710int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 11711int argc; 11712char **argv; 11713int 11714main () 11715{ 11716return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 11717 ; 11718 return 0; 11719} 11720_ACEOF 11721for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 11722 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 11723do 11724 CC="$ac_save_CC $ac_arg" 11725 rm -f conftest.$ac_objext 11726if { (ac_try="$ac_compile" 11727case "(($ac_try" in 11728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11729 *) ac_try_echo=$ac_try;; 11730esac 11731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11732$as_echo "$ac_try_echo") >&5 11733 (eval "$ac_compile") 2>conftest.er1 11734 ac_status=$? 11735 grep -v '^ *+' conftest.er1 >conftest.err 11736 rm -f conftest.er1 11737 cat conftest.err >&5 11738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11739 (exit $ac_status); } && { 11740 test -z "$ac_c_werror_flag" || 11741 test ! -s conftest.err 11742 } && test -s conftest.$ac_objext; then 11743 ac_cv_prog_cc_c89=$ac_arg 11744else 11745 $as_echo "$as_me: failed program was:" >&5 11746sed 's/^/| /' conftest.$ac_ext >&5 11747 11748 11749fi 11750 11751rm -f core conftest.err conftest.$ac_objext 11752 test "x$ac_cv_prog_cc_c89" != "xno" && break 11753done 11754rm -f conftest.$ac_ext 11755CC=$ac_save_CC 11756 11757fi 11758# AC_CACHE_VAL 11759case "x$ac_cv_prog_cc_c89" in 11760 x) 11761 { $as_echo "$as_me:$LINENO: result: none needed" >&5 11762$as_echo "none needed" >&6; } ;; 11763 xno) 11764 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 11765$as_echo "unsupported" >&6; } ;; 11766 *) 11767 CC="$CC $ac_cv_prog_cc_c89" 11768 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 11769$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 11770esac 11771 11772 11773ac_ext=c 11774ac_cpp='$CPP $CPPFLAGS' 11775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11777ac_compiler_gnu=$ac_cv_c_compiler_gnu 11778 11779depcc="$CC" am_compiler_list= 11780 11781{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 11782$as_echo_n "checking dependency style of $depcc... " >&6; } 11783if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 11784 $as_echo_n "(cached) " >&6 11785else 11786 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11787 # We make a subdir and do the tests there. Otherwise we can end up 11788 # making bogus files that we don't know about and never remove. For 11789 # instance it was reported that on HP-UX the gcc test will end up 11790 # making a dummy file named `D' -- because `-MD' means `put the output 11791 # in D'. 11792 mkdir conftest.dir 11793 # Copy depcomp to subdir because otherwise we won't find it if we're 11794 # using a relative directory. 11795 cp "$am_depcomp" conftest.dir 11796 cd conftest.dir 11797 # We will build objects and dependencies in a subdirectory because 11798 # it helps to detect inapplicable dependency modes. For instance 11799 # both Tru64's cc and ICC support -MD to output dependencies as a 11800 # side effect of compilation, but ICC will put the dependencies in 11801 # the current directory while Tru64 will put them in the object 11802 # directory. 11803 mkdir sub 11804 11805 am_cv_CC_dependencies_compiler_type=none 11806 if test "$am_compiler_list" = ""; then 11807 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11808 fi 11809 for depmode in $am_compiler_list; do 11810 # Setup a source with many dependencies, because some compilers 11811 # like to wrap large dependency lists on column 80 (with \), and 11812 # we should not choose a depcomp mode which is confused by this. 11813 # 11814 # We need to recreate these files for each test, as the compiler may 11815 # overwrite some of them when testing with obscure command lines. 11816 # This happens at least with the AIX C compiler. 11817 : > sub/conftest.c 11818 for i in 1 2 3 4 5 6; do 11819 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11820 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 11821 # Solaris 8's {/usr,}/bin/sh. 11822 touch sub/conftst$i.h 11823 done 11824 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11825 11826 case $depmode in 11827 nosideeffect) 11828 # after this tag, mechanisms are not by side-effect, so they'll 11829 # only be used when explicitly requested 11830 if test "x$enable_dependency_tracking" = xyes; then 11831 continue 11832 else 11833 break 11834 fi 11835 ;; 11836 none) break ;; 11837 esac 11838 # We check with `-c' and `-o' for the sake of the "dashmstdout" 11839 # mode. It turns out that the SunPro C++ compiler does not properly 11840 # handle `-M -o', and we need to detect this. 11841 if depmode=$depmode \ 11842 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 11843 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 11844 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 11845 >/dev/null 2>conftest.err && 11846 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 11847 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 11848 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 11849 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 11850 # icc doesn't choke on unknown options, it will just issue warnings 11851 # or remarks (even with -Werror). So we grep stderr for any message 11852 # that says an option was ignored or not supported. 11853 # When given -MP, icc 7.0 and 7.1 complain thusly: 11854 # icc: Command line warning: ignoring option '-M'; no argument required 11855 # The diagnosis changed in icc 8.0: 11856 # icc: Command line remark: option '-MP' not supported 11857 if (grep 'ignoring option' conftest.err || 11858 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 11859 am_cv_CC_dependencies_compiler_type=$depmode 11860 break 11861 fi 11862 fi 11863 done 11864 11865 cd .. 11866 rm -rf conftest.dir 11867else 11868 am_cv_CC_dependencies_compiler_type=none 11869fi 11870 11871fi 11872{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 11873$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 11874CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 11875 11876 if 11877 test "x$enable_dependency_tracking" != xno \ 11878 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 11879 am__fastdepCC_TRUE= 11880 am__fastdepCC_FALSE='#' 11881else 11882 am__fastdepCC_TRUE='#' 11883 am__fastdepCC_FALSE= 11884fi 11885 11886 11887 11888 11889 11890 11891# Options 11892 11893# Check whether --with-xorg-module-dir was given. 11894if test "${with_xorg_module_dir+set}" = set; then 11895 withval=$with_xorg_module_dir; moduledir="$withval" 11896else 11897 moduledir="$libdir/xorg/modules" 11898fi 11899 11900 11901 11902# Check whether --with-xserver-source was given. 11903if test "${with_xserver_source+set}" = set; then 11904 withval=$with_xserver_source; XSERVER_SOURCE="$withval" 11905else 11906 XSERVER_SOURCE="" 11907fi 11908 11909 11910# Checks for extensions 11911 11912 SAVE_CFLAGS="$CFLAGS" 11913 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 11914 cat >conftest.$ac_ext <<_ACEOF 11915/* confdefs.h. */ 11916_ACEOF 11917cat confdefs.h >>conftest.$ac_ext 11918cat >>conftest.$ac_ext <<_ACEOF 11919/* end confdefs.h. */ 11920 11921#include "xorg-server.h" 11922#if !defined RANDR 11923#error RANDR not defined 11924#endif 11925 11926int 11927main () 11928{ 11929 11930 ; 11931 return 0; 11932} 11933_ACEOF 11934rm -f conftest.$ac_objext 11935if { (ac_try="$ac_compile" 11936case "(($ac_try" in 11937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11938 *) ac_try_echo=$ac_try;; 11939esac 11940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11941$as_echo "$ac_try_echo") >&5 11942 (eval "$ac_compile") 2>conftest.er1 11943 ac_status=$? 11944 grep -v '^ *+' conftest.er1 >conftest.err 11945 rm -f conftest.er1 11946 cat conftest.err >&5 11947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11948 (exit $ac_status); } && { 11949 test -z "$ac_c_werror_flag" || 11950 test ! -s conftest.err 11951 } && test -s conftest.$ac_objext; then 11952 _EXT_CHECK=yes 11953else 11954 $as_echo "$as_me: failed program was:" >&5 11955sed 's/^/| /' conftest.$ac_ext >&5 11956 11957 _EXT_CHECK=no 11958fi 11959 11960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11961 CFLAGS="$SAVE_CFLAGS" 11962 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5 11963$as_echo_n "checking if RANDR is defined... " >&6; } 11964 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 11965$as_echo "$_EXT_CHECK" >&6; } 11966 if test "$_EXT_CHECK" != no; then 11967 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 11968 fi 11969 11970 11971 SAVE_CFLAGS="$CFLAGS" 11972 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 11973 cat >conftest.$ac_ext <<_ACEOF 11974/* confdefs.h. */ 11975_ACEOF 11976cat confdefs.h >>conftest.$ac_ext 11977cat >>conftest.$ac_ext <<_ACEOF 11978/* end confdefs.h. */ 11979 11980#include "xorg-server.h" 11981#if !defined RENDER 11982#error RENDER not defined 11983#endif 11984 11985int 11986main () 11987{ 11988 11989 ; 11990 return 0; 11991} 11992_ACEOF 11993rm -f conftest.$ac_objext 11994if { (ac_try="$ac_compile" 11995case "(($ac_try" in 11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11997 *) ac_try_echo=$ac_try;; 11998esac 11999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12000$as_echo "$ac_try_echo") >&5 12001 (eval "$ac_compile") 2>conftest.er1 12002 ac_status=$? 12003 grep -v '^ *+' conftest.er1 >conftest.err 12004 rm -f conftest.er1 12005 cat conftest.err >&5 12006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12007 (exit $ac_status); } && { 12008 test -z "$ac_c_werror_flag" || 12009 test ! -s conftest.err 12010 } && test -s conftest.$ac_objext; then 12011 _EXT_CHECK=yes 12012else 12013 $as_echo "$as_me: failed program was:" >&5 12014sed 's/^/| /' conftest.$ac_ext >&5 12015 12016 _EXT_CHECK=no 12017fi 12018 12019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12020 CFLAGS="$SAVE_CFLAGS" 12021 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5 12022$as_echo_n "checking if RENDER is defined... " >&6; } 12023 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12024$as_echo "$_EXT_CHECK" >&6; } 12025 if test "$_EXT_CHECK" != no; then 12026 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 12027 fi 12028 12029 12030 SAVE_CFLAGS="$CFLAGS" 12031 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12032 cat >conftest.$ac_ext <<_ACEOF 12033/* confdefs.h. */ 12034_ACEOF 12035cat confdefs.h >>conftest.$ac_ext 12036cat >>conftest.$ac_ext <<_ACEOF 12037/* end confdefs.h. */ 12038 12039#include "xorg-server.h" 12040#if !defined XV 12041#error XV not defined 12042#endif 12043 12044int 12045main () 12046{ 12047 12048 ; 12049 return 0; 12050} 12051_ACEOF 12052rm -f conftest.$ac_objext 12053if { (ac_try="$ac_compile" 12054case "(($ac_try" in 12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12056 *) ac_try_echo=$ac_try;; 12057esac 12058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12059$as_echo "$ac_try_echo") >&5 12060 (eval "$ac_compile") 2>conftest.er1 12061 ac_status=$? 12062 grep -v '^ *+' conftest.er1 >conftest.err 12063 rm -f conftest.er1 12064 cat conftest.err >&5 12065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12066 (exit $ac_status); } && { 12067 test -z "$ac_c_werror_flag" || 12068 test ! -s conftest.err 12069 } && test -s conftest.$ac_objext; then 12070 _EXT_CHECK=yes 12071else 12072 $as_echo "$as_me: failed program was:" >&5 12073sed 's/^/| /' conftest.$ac_ext >&5 12074 12075 _EXT_CHECK=no 12076fi 12077 12078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12079 CFLAGS="$SAVE_CFLAGS" 12080 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5 12081$as_echo_n "checking if XV is defined... " >&6; } 12082 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12083$as_echo "$_EXT_CHECK" >&6; } 12084 if test "$_EXT_CHECK" != no; then 12085 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 12086 fi 12087 12088 12089 SAVE_CFLAGS="$CFLAGS" 12090 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12091 cat >conftest.$ac_ext <<_ACEOF 12092/* confdefs.h. */ 12093_ACEOF 12094cat confdefs.h >>conftest.$ac_ext 12095cat >>conftest.$ac_ext <<_ACEOF 12096/* end confdefs.h. */ 12097 12098#include "xorg-server.h" 12099#if !defined DPMSExtension 12100#error DPMSExtension not defined 12101#endif 12102 12103int 12104main () 12105{ 12106 12107 ; 12108 return 0; 12109} 12110_ACEOF 12111rm -f conftest.$ac_objext 12112if { (ac_try="$ac_compile" 12113case "(($ac_try" in 12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12115 *) ac_try_echo=$ac_try;; 12116esac 12117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12118$as_echo "$ac_try_echo") >&5 12119 (eval "$ac_compile") 2>conftest.er1 12120 ac_status=$? 12121 grep -v '^ *+' conftest.er1 >conftest.err 12122 rm -f conftest.er1 12123 cat conftest.err >&5 12124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12125 (exit $ac_status); } && { 12126 test -z "$ac_c_werror_flag" || 12127 test ! -s conftest.err 12128 } && test -s conftest.$ac_objext; then 12129 _EXT_CHECK=yes 12130else 12131 $as_echo "$as_me: failed program was:" >&5 12132sed 's/^/| /' conftest.$ac_ext >&5 12133 12134 _EXT_CHECK=no 12135fi 12136 12137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12138 CFLAGS="$SAVE_CFLAGS" 12139 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5 12140$as_echo_n "checking if DPMSExtension is defined... " >&6; } 12141 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12142$as_echo "$_EXT_CHECK" >&6; } 12143 if test "$_EXT_CHECK" != no; then 12144 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 12145 fi 12146 12147 12148# Checks for pkg-config packages 12149 12150 12151if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12152 if test -n "$ac_tool_prefix"; then 12153 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12154set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12155{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12156$as_echo_n "checking for $ac_word... " >&6; } 12157if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 12158 $as_echo_n "(cached) " >&6 12159else 12160 case $PKG_CONFIG in 12161 [\\/]* | ?:[\\/]*) 12162 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12163 ;; 12164 *) 12165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12166for as_dir in $PATH 12167do 12168 IFS=$as_save_IFS 12169 test -z "$as_dir" && as_dir=. 12170 for ac_exec_ext in '' $ac_executable_extensions; do 12171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12172 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12173 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12174 break 2 12175 fi 12176done 12177done 12178IFS=$as_save_IFS 12179 12180 ;; 12181esac 12182fi 12183PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12184if test -n "$PKG_CONFIG"; then 12185 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 12186$as_echo "$PKG_CONFIG" >&6; } 12187else 12188 { $as_echo "$as_me:$LINENO: result: no" >&5 12189$as_echo "no" >&6; } 12190fi 12191 12192 12193fi 12194if test -z "$ac_cv_path_PKG_CONFIG"; then 12195 ac_pt_PKG_CONFIG=$PKG_CONFIG 12196 # Extract the first word of "pkg-config", so it can be a program name with args. 12197set dummy pkg-config; ac_word=$2 12198{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12199$as_echo_n "checking for $ac_word... " >&6; } 12200if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 12201 $as_echo_n "(cached) " >&6 12202else 12203 case $ac_pt_PKG_CONFIG in 12204 [\\/]* | ?:[\\/]*) 12205 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12206 ;; 12207 *) 12208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12209for as_dir in $PATH 12210do 12211 IFS=$as_save_IFS 12212 test -z "$as_dir" && as_dir=. 12213 for ac_exec_ext in '' $ac_executable_extensions; do 12214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12215 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12216 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12217 break 2 12218 fi 12219done 12220done 12221IFS=$as_save_IFS 12222 12223 ;; 12224esac 12225fi 12226ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12227if test -n "$ac_pt_PKG_CONFIG"; then 12228 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 12229$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12230else 12231 { $as_echo "$as_me:$LINENO: result: no" >&5 12232$as_echo "no" >&6; } 12233fi 12234 12235 if test "x$ac_pt_PKG_CONFIG" = x; then 12236 PKG_CONFIG="" 12237 else 12238 case $cross_compiling:$ac_tool_warned in 12239yes:) 12240{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 12241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12242ac_tool_warned=yes ;; 12243esac 12244 PKG_CONFIG=$ac_pt_PKG_CONFIG 12245 fi 12246else 12247 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12248fi 12249 12250fi 12251if test -n "$PKG_CONFIG"; then 12252 _pkg_min_version=0.9.0 12253 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 12254$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12255 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12256 { $as_echo "$as_me:$LINENO: result: yes" >&5 12257$as_echo "yes" >&6; } 12258 else 12259 { $as_echo "$as_me:$LINENO: result: no" >&5 12260$as_echo "no" >&6; } 12261 PKG_CONFIG="" 12262 fi 12263 12264fi 12265 12266pkg_failed=no 12267{ $as_echo "$as_me:$LINENO: checking for XORG" >&5 12268$as_echo_n "checking for XORG... " >&6; } 12269 12270if test -n "$PKG_CONFIG"; then 12271 if test -n "$XORG_CFLAGS"; then 12272 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 12273 else 12274 if test -n "$PKG_CONFIG" && \ 12275 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\"") >&5 12276 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5 12277 ac_status=$? 12278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12279 (exit $ac_status); }; then 12280 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 12281else 12282 pkg_failed=yes 12283fi 12284 fi 12285else 12286 pkg_failed=untried 12287fi 12288if test -n "$PKG_CONFIG"; then 12289 if test -n "$XORG_LIBS"; then 12290 pkg_cv_XORG_LIBS="$XORG_LIBS" 12291 else 12292 if test -n "$PKG_CONFIG" && \ 12293 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\"") >&5 12294 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5 12295 ac_status=$? 12296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12297 (exit $ac_status); }; then 12298 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 12299else 12300 pkg_failed=yes 12301fi 12302 fi 12303else 12304 pkg_failed=untried 12305fi 12306 12307 12308 12309if test $pkg_failed = yes; then 12310 12311if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12312 _pkg_short_errors_supported=yes 12313else 12314 _pkg_short_errors_supported=no 12315fi 12316 if test $_pkg_short_errors_supported = yes; then 12317 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES"` 12318 else 12319 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES"` 12320 fi 12321 # Put the nasty error message in config.log where it belongs 12322 echo "$XORG_PKG_ERRORS" >&5 12323 12324 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES) were not met: 12325 12326$XORG_PKG_ERRORS 12327 12328Consider adjusting the PKG_CONFIG_PATH environment variable if you 12329installed software in a non-standard prefix. 12330 12331Alternatively, you may set the environment variables XORG_CFLAGS 12332and XORG_LIBS to avoid the need to call pkg-config. 12333See the pkg-config man page for more details. 12334" >&5 12335$as_echo "$as_me: error: Package requirements (xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES) were not met: 12336 12337$XORG_PKG_ERRORS 12338 12339Consider adjusting the PKG_CONFIG_PATH environment variable if you 12340installed software in a non-standard prefix. 12341 12342Alternatively, you may set the environment variables XORG_CFLAGS 12343and XORG_LIBS to avoid the need to call pkg-config. 12344See the pkg-config man page for more details. 12345" >&2;} 12346 { (exit 1); exit 1; }; } 12347elif test $pkg_failed = untried; then 12348 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 12349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12350{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 12351is in your PATH or set the PKG_CONFIG environment variable to the full 12352path to pkg-config. 12353 12354Alternatively, you may set the environment variables XORG_CFLAGS 12355and XORG_LIBS to avoid the need to call pkg-config. 12356See the pkg-config man page for more details. 12357 12358To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12359See \`config.log' for more details." >&5 12360$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 12361is in your PATH or set the PKG_CONFIG environment variable to the full 12362path to pkg-config. 12363 12364Alternatively, you may set the environment variables XORG_CFLAGS 12365and XORG_LIBS to avoid the need to call pkg-config. 12366See the pkg-config man page for more details. 12367 12368To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12369See \`config.log' for more details." >&2;} 12370 { (exit 1); exit 1; }; }; } 12371else 12372 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 12373 XORG_LIBS=$pkg_cv_XORG_LIBS 12374 { $as_echo "$as_me:$LINENO: result: yes" >&5 12375$as_echo "yes" >&6; } 12376 : 12377fi 12378sdkdir=$(pkg-config --variable=sdkdir xorg-server) 12379 12380# Checks for libraries. 12381 12382# Checks for header files. 12383{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 12384$as_echo_n "checking for ANSI C header files... " >&6; } 12385if test "${ac_cv_header_stdc+set}" = set; then 12386 $as_echo_n "(cached) " >&6 12387else 12388 cat >conftest.$ac_ext <<_ACEOF 12389/* confdefs.h. */ 12390_ACEOF 12391cat confdefs.h >>conftest.$ac_ext 12392cat >>conftest.$ac_ext <<_ACEOF 12393/* end confdefs.h. */ 12394#include <stdlib.h> 12395#include <stdarg.h> 12396#include <string.h> 12397#include <float.h> 12398 12399int 12400main () 12401{ 12402 12403 ; 12404 return 0; 12405} 12406_ACEOF 12407rm -f conftest.$ac_objext 12408if { (ac_try="$ac_compile" 12409case "(($ac_try" in 12410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12411 *) ac_try_echo=$ac_try;; 12412esac 12413eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12414$as_echo "$ac_try_echo") >&5 12415 (eval "$ac_compile") 2>conftest.er1 12416 ac_status=$? 12417 grep -v '^ *+' conftest.er1 >conftest.err 12418 rm -f conftest.er1 12419 cat conftest.err >&5 12420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12421 (exit $ac_status); } && { 12422 test -z "$ac_c_werror_flag" || 12423 test ! -s conftest.err 12424 } && test -s conftest.$ac_objext; then 12425 ac_cv_header_stdc=yes 12426else 12427 $as_echo "$as_me: failed program was:" >&5 12428sed 's/^/| /' conftest.$ac_ext >&5 12429 12430 ac_cv_header_stdc=no 12431fi 12432 12433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12434 12435if test $ac_cv_header_stdc = yes; then 12436 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12437 cat >conftest.$ac_ext <<_ACEOF 12438/* confdefs.h. */ 12439_ACEOF 12440cat confdefs.h >>conftest.$ac_ext 12441cat >>conftest.$ac_ext <<_ACEOF 12442/* end confdefs.h. */ 12443#include <string.h> 12444 12445_ACEOF 12446if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12447 $EGREP "memchr" >/dev/null 2>&1; then 12448 : 12449else 12450 ac_cv_header_stdc=no 12451fi 12452rm -f conftest* 12453 12454fi 12455 12456if test $ac_cv_header_stdc = yes; then 12457 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12458 cat >conftest.$ac_ext <<_ACEOF 12459/* confdefs.h. */ 12460_ACEOF 12461cat confdefs.h >>conftest.$ac_ext 12462cat >>conftest.$ac_ext <<_ACEOF 12463/* end confdefs.h. */ 12464#include <stdlib.h> 12465 12466_ACEOF 12467if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12468 $EGREP "free" >/dev/null 2>&1; then 12469 : 12470else 12471 ac_cv_header_stdc=no 12472fi 12473rm -f conftest* 12474 12475fi 12476 12477if test $ac_cv_header_stdc = yes; then 12478 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12479 if test "$cross_compiling" = yes; then 12480 : 12481else 12482 cat >conftest.$ac_ext <<_ACEOF 12483/* confdefs.h. */ 12484_ACEOF 12485cat confdefs.h >>conftest.$ac_ext 12486cat >>conftest.$ac_ext <<_ACEOF 12487/* end confdefs.h. */ 12488#include <ctype.h> 12489#include <stdlib.h> 12490#if ((' ' & 0x0FF) == 0x020) 12491# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12492# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12493#else 12494# define ISLOWER(c) \ 12495 (('a' <= (c) && (c) <= 'i') \ 12496 || ('j' <= (c) && (c) <= 'r') \ 12497 || ('s' <= (c) && (c) <= 'z')) 12498# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12499#endif 12500 12501#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12502int 12503main () 12504{ 12505 int i; 12506 for (i = 0; i < 256; i++) 12507 if (XOR (islower (i), ISLOWER (i)) 12508 || toupper (i) != TOUPPER (i)) 12509 return 2; 12510 return 0; 12511} 12512_ACEOF 12513rm -f conftest$ac_exeext 12514if { (ac_try="$ac_link" 12515case "(($ac_try" in 12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12517 *) ac_try_echo=$ac_try;; 12518esac 12519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12520$as_echo "$ac_try_echo") >&5 12521 (eval "$ac_link") 2>&5 12522 ac_status=$? 12523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12525 { (case "(($ac_try" in 12526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12527 *) ac_try_echo=$ac_try;; 12528esac 12529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12530$as_echo "$ac_try_echo") >&5 12531 (eval "$ac_try") 2>&5 12532 ac_status=$? 12533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12534 (exit $ac_status); }; }; then 12535 : 12536else 12537 $as_echo "$as_me: program exited with status $ac_status" >&5 12538$as_echo "$as_me: failed program was:" >&5 12539sed 's/^/| /' conftest.$ac_ext >&5 12540 12541( exit $ac_status ) 12542ac_cv_header_stdc=no 12543fi 12544rm -rf conftest.dSYM 12545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12546fi 12547 12548 12549fi 12550fi 12551{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 12552$as_echo "$ac_cv_header_stdc" >&6; } 12553if test $ac_cv_header_stdc = yes; then 12554 12555cat >>confdefs.h <<\_ACEOF 12556#define STDC_HEADERS 1 12557_ACEOF 12558 12559fi 12560 12561 12562save_CFLAGS="$CFLAGS" 12563CFLAGS="$XORG_CFLAGS" 12564 12565# RandR 1.2 12566{ $as_echo "$as_me:$LINENO: checking for xf86Modes.h" >&5 12567$as_echo_n "checking for xf86Modes.h... " >&6; } 12568if test "${ac_cv_header_xf86Modes_h+set}" = set; then 12569 $as_echo_n "(cached) " >&6 12570else 12571 cat >conftest.$ac_ext <<_ACEOF 12572/* confdefs.h. */ 12573_ACEOF 12574cat confdefs.h >>conftest.$ac_ext 12575cat >>conftest.$ac_ext <<_ACEOF 12576/* end confdefs.h. */ 12577#include "xorg-server.h" 12578 12579#include <xf86Modes.h> 12580_ACEOF 12581rm -f conftest.$ac_objext 12582if { (ac_try="$ac_compile" 12583case "(($ac_try" in 12584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12585 *) ac_try_echo=$ac_try;; 12586esac 12587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12588$as_echo "$ac_try_echo") >&5 12589 (eval "$ac_compile") 2>conftest.er1 12590 ac_status=$? 12591 grep -v '^ *+' conftest.er1 >conftest.err 12592 rm -f conftest.er1 12593 cat conftest.err >&5 12594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12595 (exit $ac_status); } && { 12596 test -z "$ac_c_werror_flag" || 12597 test ! -s conftest.err 12598 } && test -s conftest.$ac_objext; then 12599 ac_cv_header_xf86Modes_h=yes 12600else 12601 $as_echo "$as_me: failed program was:" >&5 12602sed 's/^/| /' conftest.$ac_ext >&5 12603 12604 ac_cv_header_xf86Modes_h=no 12605fi 12606 12607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12608fi 12609{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf86Modes_h" >&5 12610$as_echo "$ac_cv_header_xf86Modes_h" >&6; } 12611if test "x$ac_cv_header_xf86Modes_h" = x""yes; then 12612 BUILD_XMODES=no 12613else 12614 BUILD_XMODES=yes 12615fi 12616 12617 12618 12619# PCI rework 12620{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5 12621$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; } 12622if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then 12623 $as_echo_n "(cached) " >&6 12624else 12625 cat >conftest.$ac_ext <<_ACEOF 12626/* confdefs.h. */ 12627_ACEOF 12628cat confdefs.h >>conftest.$ac_ext 12629cat >>conftest.$ac_ext <<_ACEOF 12630/* end confdefs.h. */ 12631#include "xorg-server.h" 12632 12633int 12634main () 12635{ 12636#ifndef XSERVER_LIBPCIACCESS 12637 (void) XSERVER_LIBPCIACCESS; 12638#endif 12639 12640 ; 12641 return 0; 12642} 12643_ACEOF 12644rm -f conftest.$ac_objext 12645if { (ac_try="$ac_compile" 12646case "(($ac_try" in 12647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12648 *) ac_try_echo=$ac_try;; 12649esac 12650eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12651$as_echo "$ac_try_echo") >&5 12652 (eval "$ac_compile") 2>conftest.er1 12653 ac_status=$? 12654 grep -v '^ *+' conftest.er1 >conftest.err 12655 rm -f conftest.er1 12656 cat conftest.err >&5 12657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12658 (exit $ac_status); } && { 12659 test -z "$ac_c_werror_flag" || 12660 test ! -s conftest.err 12661 } && test -s conftest.$ac_objext; then 12662 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes 12663else 12664 $as_echo "$as_me: failed program was:" >&5 12665sed 's/^/| /' conftest.$ac_ext >&5 12666 12667 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no 12668fi 12669 12670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12671fi 12672{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5 12673$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; } 12674if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then 12675 XSERVER_LIBPCIACCESS=yes 12676else 12677 XSERVER_LIBPCIACCESS=no 12678fi 12679 12680if test "x$XSERVER_LIBPCIACCESS" = "xyes"; then 12681 12682pkg_failed=no 12683{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5 12684$as_echo_n "checking for PCIACCESS... " >&6; } 12685 12686if test -n "$PKG_CONFIG"; then 12687 if test -n "$PCIACCESS_CFLAGS"; then 12688 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 12689 else 12690 if test -n "$PKG_CONFIG" && \ 12691 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 12692 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 12693 ac_status=$? 12694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12695 (exit $ac_status); }; then 12696 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 12697else 12698 pkg_failed=yes 12699fi 12700 fi 12701else 12702 pkg_failed=untried 12703fi 12704if test -n "$PKG_CONFIG"; then 12705 if test -n "$PCIACCESS_LIBS"; then 12706 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 12707 else 12708 if test -n "$PKG_CONFIG" && \ 12709 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 12710 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 12711 ac_status=$? 12712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12713 (exit $ac_status); }; then 12714 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 12715else 12716 pkg_failed=yes 12717fi 12718 fi 12719else 12720 pkg_failed=untried 12721fi 12722 12723 12724 12725if test $pkg_failed = yes; then 12726 12727if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12728 _pkg_short_errors_supported=yes 12729else 12730 _pkg_short_errors_supported=no 12731fi 12732 if test $_pkg_short_errors_supported = yes; then 12733 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pciaccess >= 0.8.0"` 12734 else 12735 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess >= 0.8.0"` 12736 fi 12737 # Put the nasty error message in config.log where it belongs 12738 echo "$PCIACCESS_PKG_ERRORS" >&5 12739 12740 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met: 12741 12742$PCIACCESS_PKG_ERRORS 12743 12744Consider adjusting the PKG_CONFIG_PATH environment variable if you 12745installed software in a non-standard prefix. 12746 12747Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12748and PCIACCESS_LIBS to avoid the need to call pkg-config. 12749See the pkg-config man page for more details. 12750" >&5 12751$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met: 12752 12753$PCIACCESS_PKG_ERRORS 12754 12755Consider adjusting the PKG_CONFIG_PATH environment variable if you 12756installed software in a non-standard prefix. 12757 12758Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12759and PCIACCESS_LIBS to avoid the need to call pkg-config. 12760See the pkg-config man page for more details. 12761" >&2;} 12762 { (exit 1); exit 1; }; } 12763elif test $pkg_failed = untried; then 12764 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 12765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12766{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 12767is in your PATH or set the PKG_CONFIG environment variable to the full 12768path to pkg-config. 12769 12770Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12771and PCIACCESS_LIBS to avoid the need to call pkg-config. 12772See the pkg-config man page for more details. 12773 12774To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12775See \`config.log' for more details." >&5 12776$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 12777is in your PATH or set the PKG_CONFIG environment variable to the full 12778path to pkg-config. 12779 12780Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12781and PCIACCESS_LIBS to avoid the need to call pkg-config. 12782See the pkg-config man page for more details. 12783 12784To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12785See \`config.log' for more details." >&2;} 12786 { (exit 1); exit 1; }; }; } 12787else 12788 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 12789 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 12790 { $as_echo "$as_me:$LINENO: result: yes" >&5 12791$as_echo "yes" >&6; } 12792 : 12793fi 12794fi 12795 12796CFLAGS="$save_CFLAGS" 12797 12798 if test "x$BUILD_XMODES" = xyes; then 12799 BUILD_XMODES_TRUE= 12800 BUILD_XMODES_FALSE='#' 12801else 12802 BUILD_XMODES_TRUE='#' 12803 BUILD_XMODES_FALSE= 12804fi 12805 12806if test "x$XSERVER_SOURCE" != x; then 12807 if test -d "$XSERVER_SOURCE"; then 12808 XSERVER_SOURCE=`cd "$XSERVER_SOURCE" && pwd` 12809 if test -f "$XSERVER_SOURCE/hw/xfree86/modes/xf86Modes.h" -a -f "$XSERVER_SOURCE/hw/xfree86/parser/xf86Parser.h"; then 12810 : 12811 else 12812 { { $as_echo "$as_me:$LINENO: error: Server source at $XSERVER_SOURCE doesn't have the new mode code" >&5 12813$as_echo "$as_me: error: Server source at $XSERVER_SOURCE doesn't have the new mode code" >&2;} 12814 { (exit 1); exit 1; }; } 12815 fi 12816 else 12817 { { $as_echo "$as_me:$LINENO: error: Can't find xserver-source path $XSERVER_SOURCE" >&5 12818$as_echo "$as_me: error: Can't find xserver-source path $XSERVER_SOURCE" >&2;} 12819 { (exit 1); exit 1; }; } 12820 fi 12821fi 12822if test "x$BUILD_XMODES" = xno; then 12823 { $as_echo "$as_me:$LINENO: X server has new mode code" >&5 12824$as_echo "$as_me: X server has new mode code" >&6;} 12825 XMODES_CFLAGS= 12826 parser_dir= 12827 modes_dir= 12828else 12829 if test "x$XSERVER_SOURCE" = x; then 12830 { $as_echo "$as_me:$LINENO: X server is missing new mode code and --with-xserver-source not specified, using local copy" >&5 12831$as_echo "$as_me: X server is missing new mode code and --with-xserver-source not specified, using local copy" >&6;} 12832 { $as_echo "$as_me:$LINENO: If you're building from git, please read compat/README" >&5 12833$as_echo "$as_me: If you're building from git, please read compat/README" >&6;} 12834 parser_dir='$(top_srcdir)/compat/parser' 12835 modes_dir='$(top_srcdir)/compat/modes' 12836 else 12837 { $as_echo "$as_me:$LINENO: Using mode code from $XSERVER_SOURCE" >&5 12838$as_echo "$as_me: Using mode code from $XSERVER_SOURCE" >&6;} 12839 parser_dir="$XSERVER_SOURCE/hw/xfree86/parser" 12840 modes_dir="$XSERVER_SOURCE/hw/xfree86/modes" 12841 fi 12842 XMODES_CFLAGS="-DXF86_MODES_RENAME -I\"$modes_dir\" -I\"$parser_dir\"" 12843 12844cat >>confdefs.h <<\_ACEOF 12845#define BUILD_XMODES 1 12846_ACEOF 12847 12848fi 12849 12850 12851 12852 12853# Substitutions 12854 12855 12856 12857DRIVER_NAME=nv 12858 12859 12860 12861 12862 12863if test x$APP_MAN_SUFFIX = x ; then 12864 APP_MAN_SUFFIX=1 12865fi 12866if test x$APP_MAN_DIR = x ; then 12867 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 12868fi 12869 12870if test x$LIB_MAN_SUFFIX = x ; then 12871 LIB_MAN_SUFFIX=3 12872fi 12873if test x$LIB_MAN_DIR = x ; then 12874 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 12875fi 12876 12877if test x$FILE_MAN_SUFFIX = x ; then 12878 case $host_os in 12879 solaris*) FILE_MAN_SUFFIX=4 ;; 12880 *) FILE_MAN_SUFFIX=5 ;; 12881 esac 12882fi 12883if test x$FILE_MAN_DIR = x ; then 12884 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 12885fi 12886 12887if test x$MISC_MAN_SUFFIX = x ; then 12888 case $host_os in 12889 solaris*) MISC_MAN_SUFFIX=5 ;; 12890 *) MISC_MAN_SUFFIX=7 ;; 12891 esac 12892fi 12893if test x$MISC_MAN_DIR = x ; then 12894 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 12895fi 12896 12897if test x$DRIVER_MAN_SUFFIX = x ; then 12898 case $host_os in 12899 solaris*) DRIVER_MAN_SUFFIX=7 ;; 12900 *) DRIVER_MAN_SUFFIX=4 ;; 12901 esac 12902fi 12903if test x$DRIVER_MAN_DIR = x ; then 12904 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 12905fi 12906 12907if test x$ADMIN_MAN_SUFFIX = x ; then 12908 case $host_os in 12909 solaris*) ADMIN_MAN_SUFFIX=1m ;; 12910 *) ADMIN_MAN_SUFFIX=8 ;; 12911 esac 12912fi 12913if test x$ADMIN_MAN_DIR = x ; then 12914 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 12915fi 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933# Check whether --with-release-version was given. 12934if test "${with_release_version+set}" = set; then 12935 withval=$with_release_version; RELEASE_VERSION="$withval" 12936else 12937 RELEASE_VERSION="" 12938fi 12939 12940 if test "x$RELEASE_VERSION" != "x"; then 12941 PACKAGE="$PACKAGE-$RELEASE_VERSION" 12942 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 12943 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 12944$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 12945 fi 12946 12947cat >>confdefs.h <<_ACEOF 12948#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 12949_ACEOF 12950 12951 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 12952 if test "x$PVM" = "x"; then 12953 PVM="0" 12954 fi 12955 12956cat >>confdefs.h <<_ACEOF 12957#define PACKAGE_VERSION_MINOR $PVM 12958_ACEOF 12959 12960 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 12961 if test "x$PVP" = "x"; then 12962 PVP="0" 12963 fi 12964 12965cat >>confdefs.h <<_ACEOF 12966#define PACKAGE_VERSION_PATCHLEVEL $PVP 12967_ACEOF 12968 12969 12970 12971ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile compat/Makefile" 12972 12973cat >confcache <<\_ACEOF 12974# This file is a shell script that caches the results of configure 12975# tests run on this system so they can be shared between configure 12976# scripts and configure runs, see configure's option --config-cache. 12977# It is not useful on other systems. If it contains results you don't 12978# want to keep, you may remove or edit it. 12979# 12980# config.status only pays attention to the cache file if you give it 12981# the --recheck option to rerun configure. 12982# 12983# `ac_cv_env_foo' variables (set or unset) will be overridden when 12984# loading this file, other *unset* `ac_cv_foo' will be assigned the 12985# following values. 12986 12987_ACEOF 12988 12989# The following way of writing the cache mishandles newlines in values, 12990# but we know of no workaround that is simple, portable, and efficient. 12991# So, we kill variables containing newlines. 12992# Ultrix sh set writes to stderr and can't be redirected directly, 12993# and sets the high bit in the cache file unless we assign to the vars. 12994( 12995 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12996 eval ac_val=\$$ac_var 12997 case $ac_val in #( 12998 *${as_nl}*) 12999 case $ac_var in #( 13000 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 13001$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13002 esac 13003 case $ac_var in #( 13004 _ | IFS | as_nl) ;; #( 13005 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13006 *) $as_unset $ac_var ;; 13007 esac ;; 13008 esac 13009 done 13010 13011 (set) 2>&1 | 13012 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13013 *${as_nl}ac_space=\ *) 13014 # `set' does not quote correctly, so add quotes (double-quote 13015 # substitution turns \\\\ into \\, and sed turns \\ into \). 13016 sed -n \ 13017 "s/'/'\\\\''/g; 13018 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13019 ;; #( 13020 *) 13021 # `set' quotes correctly as required by POSIX, so do not add quotes. 13022 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13023 ;; 13024 esac | 13025 sort 13026) | 13027 sed ' 13028 /^ac_cv_env_/b end 13029 t clear 13030 :clear 13031 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13032 t end 13033 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13034 :end' >>confcache 13035if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13036 if test -w "$cache_file"; then 13037 test "x$cache_file" != "x/dev/null" && 13038 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 13039$as_echo "$as_me: updating cache $cache_file" >&6;} 13040 cat confcache >$cache_file 13041 else 13042 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 13043$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13044 fi 13045fi 13046rm -f confcache 13047 13048test "x$prefix" = xNONE && prefix=$ac_default_prefix 13049# Let make expand exec_prefix. 13050test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13051 13052DEFS=-DHAVE_CONFIG_H 13053 13054ac_libobjs= 13055ac_ltlibobjs= 13056for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13057 # 1. Remove the extension, and $U if already installed. 13058 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13059 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13060 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13061 # will be set to the directory where LIBOBJS objects are built. 13062 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13063 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 13064done 13065LIBOBJS=$ac_libobjs 13066 13067LTLIBOBJS=$ac_ltlibobjs 13068 13069 13070if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13071 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 13072Usually this means the macro was only invoked conditionally." >&5 13073$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 13074Usually this means the macro was only invoked conditionally." >&2;} 13075 { (exit 1); exit 1; }; } 13076fi 13077if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13078 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 13079Usually this means the macro was only invoked conditionally." >&5 13080$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 13081Usually this means the macro was only invoked conditionally." >&2;} 13082 { (exit 1); exit 1; }; } 13083fi 13084if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13085 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13086Usually this means the macro was only invoked conditionally." >&5 13087$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13088Usually this means the macro was only invoked conditionally." >&2;} 13089 { (exit 1); exit 1; }; } 13090fi 13091if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13092 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13093Usually this means the macro was only invoked conditionally." >&5 13094$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13095Usually this means the macro was only invoked conditionally." >&2;} 13096 { (exit 1); exit 1; }; } 13097fi 13098if test -z "${BUILD_XMODES_TRUE}" && test -z "${BUILD_XMODES_FALSE}"; then 13099 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_XMODES\" was never defined. 13100Usually this means the macro was only invoked conditionally." >&5 13101$as_echo "$as_me: error: conditional \"BUILD_XMODES\" was never defined. 13102Usually this means the macro was only invoked conditionally." >&2;} 13103 { (exit 1); exit 1; }; } 13104fi 13105 13106: ${CONFIG_STATUS=./config.status} 13107ac_write_fail=0 13108ac_clean_files_save=$ac_clean_files 13109ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13110{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13111$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13112cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13113#! $SHELL 13114# Generated by $as_me. 13115# Run this file to recreate the current configuration. 13116# Compiler output produced by configure, useful for debugging 13117# configure, is in config.log if it exists. 13118 13119debug=false 13120ac_cs_recheck=false 13121ac_cs_silent=false 13122SHELL=\${CONFIG_SHELL-$SHELL} 13123_ACEOF 13124 13125cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13126## --------------------- ## 13127## M4sh Initialization. ## 13128## --------------------- ## 13129 13130# Be more Bourne compatible 13131DUALCASE=1; export DUALCASE # for MKS sh 13132if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13133 emulate sh 13134 NULLCMD=: 13135 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13136 # is contrary to our usage. Disable this feature. 13137 alias -g '${1+"$@"}'='"$@"' 13138 setopt NO_GLOB_SUBST 13139else 13140 case `(set -o) 2>/dev/null` in 13141 *posix*) set -o posix ;; 13142esac 13143 13144fi 13145 13146 13147 13148 13149# PATH needs CR 13150# Avoid depending upon Character Ranges. 13151as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13152as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13153as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13154as_cr_digits='0123456789' 13155as_cr_alnum=$as_cr_Letters$as_cr_digits 13156 13157as_nl=' 13158' 13159export as_nl 13160# Printing a long string crashes Solaris 7 /usr/bin/printf. 13161as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13162as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13163as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13164if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13165 as_echo='printf %s\n' 13166 as_echo_n='printf %s' 13167else 13168 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13169 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13170 as_echo_n='/usr/ucb/echo -n' 13171 else 13172 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13173 as_echo_n_body='eval 13174 arg=$1; 13175 case $arg in 13176 *"$as_nl"*) 13177 expr "X$arg" : "X\\(.*\\)$as_nl"; 13178 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13179 esac; 13180 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13181 ' 13182 export as_echo_n_body 13183 as_echo_n='sh -c $as_echo_n_body as_echo' 13184 fi 13185 export as_echo_body 13186 as_echo='sh -c $as_echo_body as_echo' 13187fi 13188 13189# The user is always right. 13190if test "${PATH_SEPARATOR+set}" != set; then 13191 PATH_SEPARATOR=: 13192 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13193 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13194 PATH_SEPARATOR=';' 13195 } 13196fi 13197 13198# Support unset when possible. 13199if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13200 as_unset=unset 13201else 13202 as_unset=false 13203fi 13204 13205 13206# IFS 13207# We need space, tab and new line, in precisely that order. Quoting is 13208# there to prevent editors from complaining about space-tab. 13209# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13210# splitting by setting IFS to empty value.) 13211IFS=" "" $as_nl" 13212 13213# Find who we are. Look in the path if we contain no directory separator. 13214case $0 in 13215 *[\\/]* ) as_myself=$0 ;; 13216 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13217for as_dir in $PATH 13218do 13219 IFS=$as_save_IFS 13220 test -z "$as_dir" && as_dir=. 13221 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13222done 13223IFS=$as_save_IFS 13224 13225 ;; 13226esac 13227# We did not find ourselves, most probably we were run as `sh COMMAND' 13228# in which case we are not to be found in the path. 13229if test "x$as_myself" = x; then 13230 as_myself=$0 13231fi 13232if test ! -f "$as_myself"; then 13233 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13234 { (exit 1); exit 1; } 13235fi 13236 13237# Work around bugs in pre-3.0 UWIN ksh. 13238for as_var in ENV MAIL MAILPATH 13239do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13240done 13241PS1='$ ' 13242PS2='> ' 13243PS4='+ ' 13244 13245# NLS nuisances. 13246LC_ALL=C 13247export LC_ALL 13248LANGUAGE=C 13249export LANGUAGE 13250 13251# Required to use basename. 13252if expr a : '\(a\)' >/dev/null 2>&1 && 13253 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13254 as_expr=expr 13255else 13256 as_expr=false 13257fi 13258 13259if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13260 as_basename=basename 13261else 13262 as_basename=false 13263fi 13264 13265 13266# Name of the executable. 13267as_me=`$as_basename -- "$0" || 13268$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13269 X"$0" : 'X\(//\)$' \| \ 13270 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13271$as_echo X/"$0" | 13272 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13273 s//\1/ 13274 q 13275 } 13276 /^X\/\(\/\/\)$/{ 13277 s//\1/ 13278 q 13279 } 13280 /^X\/\(\/\).*/{ 13281 s//\1/ 13282 q 13283 } 13284 s/.*/./; q'` 13285 13286# CDPATH. 13287$as_unset CDPATH 13288 13289 13290 13291 as_lineno_1=$LINENO 13292 as_lineno_2=$LINENO 13293 test "x$as_lineno_1" != "x$as_lineno_2" && 13294 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 13295 13296 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13297 # uniformly replaced by the line number. The first 'sed' inserts a 13298 # line-number line after each line using $LINENO; the second 'sed' 13299 # does the real work. The second script uses 'N' to pair each 13300 # line-number line with the line containing $LINENO, and appends 13301 # trailing '-' during substitution so that $LINENO is not a special 13302 # case at line end. 13303 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13304 # scripts with optimization help from Paolo Bonzini. Blame Lee 13305 # E. McMahon (1931-1989) for sed's syntax. :-) 13306 sed -n ' 13307 p 13308 /[$]LINENO/= 13309 ' <$as_myself | 13310 sed ' 13311 s/[$]LINENO.*/&-/ 13312 t lineno 13313 b 13314 :lineno 13315 N 13316 :loop 13317 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 13318 t loop 13319 s/-\n.*// 13320 ' >$as_me.lineno && 13321 chmod +x "$as_me.lineno" || 13322 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 13323 { (exit 1); exit 1; }; } 13324 13325 # Don't try to exec as it changes $[0], causing all sort of problems 13326 # (the dirname of $[0] is not the place where we might find the 13327 # original and so on. Autoconf is especially sensitive to this). 13328 . "./$as_me.lineno" 13329 # Exit status is that of the last command. 13330 exit 13331} 13332 13333 13334if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13335 as_dirname=dirname 13336else 13337 as_dirname=false 13338fi 13339 13340ECHO_C= ECHO_N= ECHO_T= 13341case `echo -n x` in 13342-n*) 13343 case `echo 'x\c'` in 13344 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13345 *) ECHO_C='\c';; 13346 esac;; 13347*) 13348 ECHO_N='-n';; 13349esac 13350if expr a : '\(a\)' >/dev/null 2>&1 && 13351 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13352 as_expr=expr 13353else 13354 as_expr=false 13355fi 13356 13357rm -f conf$$ conf$$.exe conf$$.file 13358if test -d conf$$.dir; then 13359 rm -f conf$$.dir/conf$$.file 13360else 13361 rm -f conf$$.dir 13362 mkdir conf$$.dir 2>/dev/null 13363fi 13364if (echo >conf$$.file) 2>/dev/null; then 13365 if ln -s conf$$.file conf$$ 2>/dev/null; then 13366 as_ln_s='ln -s' 13367 # ... but there are two gotchas: 13368 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13369 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13370 # In both cases, we have to default to `cp -p'. 13371 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13372 as_ln_s='cp -p' 13373 elif ln conf$$.file conf$$ 2>/dev/null; then 13374 as_ln_s=ln 13375 else 13376 as_ln_s='cp -p' 13377 fi 13378else 13379 as_ln_s='cp -p' 13380fi 13381rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13382rmdir conf$$.dir 2>/dev/null 13383 13384if mkdir -p . 2>/dev/null; then 13385 as_mkdir_p=: 13386else 13387 test -d ./-p && rmdir ./-p 13388 as_mkdir_p=false 13389fi 13390 13391if test -x / >/dev/null 2>&1; then 13392 as_test_x='test -x' 13393else 13394 if ls -dL / >/dev/null 2>&1; then 13395 as_ls_L_option=L 13396 else 13397 as_ls_L_option= 13398 fi 13399 as_test_x=' 13400 eval sh -c '\'' 13401 if test -d "$1"; then 13402 test -d "$1/."; 13403 else 13404 case $1 in 13405 -*)set "./$1";; 13406 esac; 13407 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 13408 ???[sx]*):;;*)false;;esac;fi 13409 '\'' sh 13410 ' 13411fi 13412as_executable_p=$as_test_x 13413 13414# Sed expression to map a string onto a valid CPP name. 13415as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13416 13417# Sed expression to map a string onto a valid variable name. 13418as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13419 13420 13421exec 6>&1 13422 13423# Save the log message, to keep $[0] and so on meaningful, and to 13424# report actual input values of CONFIG_FILES etc. instead of their 13425# values after options handling. 13426ac_log=" 13427This file was extended by xf86-video-nv $as_me 2.1.14, which was 13428generated by GNU Autoconf 2.63. Invocation command line was 13429 13430 CONFIG_FILES = $CONFIG_FILES 13431 CONFIG_HEADERS = $CONFIG_HEADERS 13432 CONFIG_LINKS = $CONFIG_LINKS 13433 CONFIG_COMMANDS = $CONFIG_COMMANDS 13434 $ $0 $@ 13435 13436on `(hostname || uname -n) 2>/dev/null | sed 1q` 13437" 13438 13439_ACEOF 13440 13441case $ac_config_files in *" 13442"*) set x $ac_config_files; shift; ac_config_files=$*;; 13443esac 13444 13445case $ac_config_headers in *" 13446"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13447esac 13448 13449 13450cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13451# Files that config.status was made for. 13452config_files="$ac_config_files" 13453config_headers="$ac_config_headers" 13454config_commands="$ac_config_commands" 13455 13456_ACEOF 13457 13458cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13459ac_cs_usage="\ 13460\`$as_me' instantiates files from templates according to the 13461current configuration. 13462 13463Usage: $0 [OPTION]... [FILE]... 13464 13465 -h, --help print this help, then exit 13466 -V, --version print version number and configuration settings, then exit 13467 -q, --quiet, --silent 13468 do not print progress messages 13469 -d, --debug don't remove temporary files 13470 --recheck update $as_me by reconfiguring in the same conditions 13471 --file=FILE[:TEMPLATE] 13472 instantiate the configuration file FILE 13473 --header=FILE[:TEMPLATE] 13474 instantiate the configuration header FILE 13475 13476Configuration files: 13477$config_files 13478 13479Configuration headers: 13480$config_headers 13481 13482Configuration commands: 13483$config_commands 13484 13485Report bugs to <bug-autoconf@gnu.org>." 13486 13487_ACEOF 13488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13489ac_cs_version="\\ 13490xf86-video-nv config.status 2.1.14 13491configured by $0, generated by GNU Autoconf 2.63, 13492 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 13493 13494Copyright (C) 2008 Free Software Foundation, Inc. 13495This config.status script is free software; the Free Software Foundation 13496gives unlimited permission to copy, distribute and modify it." 13497 13498ac_pwd='$ac_pwd' 13499srcdir='$srcdir' 13500INSTALL='$INSTALL' 13501MKDIR_P='$MKDIR_P' 13502AWK='$AWK' 13503test -n "\$AWK" || AWK=awk 13504_ACEOF 13505 13506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13507# The default lists apply if the user does not specify any file. 13508ac_need_defaults=: 13509while test $# != 0 13510do 13511 case $1 in 13512 --*=*) 13513 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13514 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13515 ac_shift=: 13516 ;; 13517 *) 13518 ac_option=$1 13519 ac_optarg=$2 13520 ac_shift=shift 13521 ;; 13522 esac 13523 13524 case $ac_option in 13525 # Handling of the options. 13526 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13527 ac_cs_recheck=: ;; 13528 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13529 $as_echo "$ac_cs_version"; exit ;; 13530 --debug | --debu | --deb | --de | --d | -d ) 13531 debug=: ;; 13532 --file | --fil | --fi | --f ) 13533 $ac_shift 13534 case $ac_optarg in 13535 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13536 esac 13537 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 13538 ac_need_defaults=false;; 13539 --header | --heade | --head | --hea ) 13540 $ac_shift 13541 case $ac_optarg in 13542 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13543 esac 13544 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 13545 ac_need_defaults=false;; 13546 --he | --h) 13547 # Conflict between --help and --header 13548 { $as_echo "$as_me: error: ambiguous option: $1 13549Try \`$0 --help' for more information." >&2 13550 { (exit 1); exit 1; }; };; 13551 --help | --hel | -h ) 13552 $as_echo "$ac_cs_usage"; exit ;; 13553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13554 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13555 ac_cs_silent=: ;; 13556 13557 # This is an error. 13558 -*) { $as_echo "$as_me: error: unrecognized option: $1 13559Try \`$0 --help' for more information." >&2 13560 { (exit 1); exit 1; }; } ;; 13561 13562 *) ac_config_targets="$ac_config_targets $1" 13563 ac_need_defaults=false ;; 13564 13565 esac 13566 shift 13567done 13568 13569ac_configure_extra_args= 13570 13571if $ac_cs_silent; then 13572 exec 6>/dev/null 13573 ac_configure_extra_args="$ac_configure_extra_args --silent" 13574fi 13575 13576_ACEOF 13577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13578if \$ac_cs_recheck; then 13579 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13580 shift 13581 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13582 CONFIG_SHELL='$SHELL' 13583 export CONFIG_SHELL 13584 exec "\$@" 13585fi 13586 13587_ACEOF 13588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13589exec 5>>config.log 13590{ 13591 echo 13592 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13593## Running $as_me. ## 13594_ASBOX 13595 $as_echo "$ac_log" 13596} >&5 13597 13598_ACEOF 13599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13600# 13601# INIT-COMMANDS 13602# 13603AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13604 13605 13606# The HP-UX ksh and POSIX shell print the target directory to stdout 13607# if CDPATH is set. 13608(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13609 13610sed_quote_subst='$sed_quote_subst' 13611double_quote_subst='$double_quote_subst' 13612delay_variable_subst='$delay_variable_subst' 13613enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 13614macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 13615macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 13616enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 13617pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 13618enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 13619host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 13620host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 13621host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 13622build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 13623build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 13624build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 13625SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 13626Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 13627GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 13628EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 13629FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 13630LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 13631NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 13632LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 13633max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 13634ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 13635exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 13636lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 13637lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 13638lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 13639reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 13640reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13641OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 13642deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 13643file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 13644AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 13645AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13646STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 13647RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 13648old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13649old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13650old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13651CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 13652CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13653compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 13654GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 13655lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 13656lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 13657lt_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"`' 13658lt_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"`' 13659objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 13660SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 13661ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 13662MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 13663lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 13664lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 13665lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 13666lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 13667lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 13668need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 13669DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 13670NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 13671LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 13672OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 13673OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 13674libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 13675shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13676extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13677archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 13678enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 13679export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13680whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13681compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 13682old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13683old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13684archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13685archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13686module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13687module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13688with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 13689allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13690no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13691hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13692hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 13693hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 13694hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 13695hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 13696hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 13697hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13698hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 13699inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 13700link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 13701fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 13702always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 13703export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13704exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13705include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13706prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13707file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 13708variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 13709need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13710need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 13711version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 13712runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13713shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13714shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 13715libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13716library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 13717soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13718postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13719postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13720finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13721finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 13722hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 13723sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13724sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13725hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 13726enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 13727enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 13728enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 13729old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 13730striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 13731 13732LTCC='$LTCC' 13733LTCFLAGS='$LTCFLAGS' 13734compiler='$compiler_DEFAULT' 13735 13736# Quote evaled strings. 13737for var in SED \ 13738GREP \ 13739EGREP \ 13740FGREP \ 13741LD \ 13742NM \ 13743LN_S \ 13744lt_SP2NL \ 13745lt_NL2SP \ 13746reload_flag \ 13747OBJDUMP \ 13748deplibs_check_method \ 13749file_magic_cmd \ 13750AR \ 13751AR_FLAGS \ 13752STRIP \ 13753RANLIB \ 13754CC \ 13755CFLAGS \ 13756compiler \ 13757lt_cv_sys_global_symbol_pipe \ 13758lt_cv_sys_global_symbol_to_cdecl \ 13759lt_cv_sys_global_symbol_to_c_name_address \ 13760lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13761SHELL \ 13762ECHO \ 13763lt_prog_compiler_no_builtin_flag \ 13764lt_prog_compiler_wl \ 13765lt_prog_compiler_pic \ 13766lt_prog_compiler_static \ 13767lt_cv_prog_compiler_c_o \ 13768need_locks \ 13769DSYMUTIL \ 13770NMEDIT \ 13771LIPO \ 13772OTOOL \ 13773OTOOL64 \ 13774shrext_cmds \ 13775export_dynamic_flag_spec \ 13776whole_archive_flag_spec \ 13777compiler_needs_object \ 13778with_gnu_ld \ 13779allow_undefined_flag \ 13780no_undefined_flag \ 13781hardcode_libdir_flag_spec \ 13782hardcode_libdir_flag_spec_ld \ 13783hardcode_libdir_separator \ 13784fix_srcfile_path \ 13785exclude_expsyms \ 13786include_expsyms \ 13787file_list_spec \ 13788variables_saved_for_relink \ 13789libname_spec \ 13790library_names_spec \ 13791soname_spec \ 13792finish_eval \ 13793old_striplib \ 13794striplib; do 13795 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13796 *[\\\\\\\`\\"\\\$]*) 13797 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13798 ;; 13799 *) 13800 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13801 ;; 13802 esac 13803done 13804 13805# Double-quote double-evaled strings. 13806for var in reload_cmds \ 13807old_postinstall_cmds \ 13808old_postuninstall_cmds \ 13809old_archive_cmds \ 13810extract_expsyms_cmds \ 13811old_archive_from_new_cmds \ 13812old_archive_from_expsyms_cmds \ 13813archive_cmds \ 13814archive_expsym_cmds \ 13815module_cmds \ 13816module_expsym_cmds \ 13817export_symbols_cmds \ 13818prelink_cmds \ 13819postinstall_cmds \ 13820postuninstall_cmds \ 13821finish_cmds \ 13822sys_lib_search_path_spec \ 13823sys_lib_dlsearch_path_spec; do 13824 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13825 *[\\\\\\\`\\"\\\$]*) 13826 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13827 ;; 13828 *) 13829 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13830 ;; 13831 esac 13832done 13833 13834# Fix-up fallback echo if it was mangled by the above quoting rules. 13835case \$lt_ECHO in 13836*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 13837 ;; 13838esac 13839 13840ac_aux_dir='$ac_aux_dir' 13841xsi_shell='$xsi_shell' 13842lt_shell_append='$lt_shell_append' 13843 13844# See if we are running on zsh, and set the options which allow our 13845# commands through without removal of \ escapes INIT. 13846if test -n "\${ZSH_VERSION+set}" ; then 13847 setopt NO_GLOB_SUBST 13848fi 13849 13850 13851 PACKAGE='$PACKAGE' 13852 VERSION='$VERSION' 13853 TIMESTAMP='$TIMESTAMP' 13854 RM='$RM' 13855 ofile='$ofile' 13856 13857 13858 13859 13860_ACEOF 13861 13862cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13863 13864# Handling of arguments. 13865for ac_config_target in $ac_config_targets 13866do 13867 case $ac_config_target in 13868 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13869 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13870 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13871 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13872 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13873 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 13874 "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;; 13875 13876 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13877$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13878 { (exit 1); exit 1; }; };; 13879 esac 13880done 13881 13882 13883# If the user did not use the arguments to specify the items to instantiate, 13884# then the envvar interface is used. Set only those that are not. 13885# We use the long form for the default assignment because of an extremely 13886# bizarre bug on SunOS 4.1.3. 13887if $ac_need_defaults; then 13888 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13889 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13890 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13891fi 13892 13893# Have a temporary directory for convenience. Make it in the build tree 13894# simply because there is no reason against having it here, and in addition, 13895# creating and moving files from /tmp can sometimes cause problems. 13896# Hook for its removal unless debugging. 13897# Note that there is a small window in which the directory will not be cleaned: 13898# after its creation but before its name has been assigned to `$tmp'. 13899$debug || 13900{ 13901 tmp= 13902 trap 'exit_status=$? 13903 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 13904' 0 13905 trap '{ (exit 1); exit 1; }' 1 2 13 15 13906} 13907# Create a (secure) tmp directory for tmp files. 13908 13909{ 13910 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13911 test -n "$tmp" && test -d "$tmp" 13912} || 13913{ 13914 tmp=./conf$$-$RANDOM 13915 (umask 077 && mkdir "$tmp") 13916} || 13917{ 13918 $as_echo "$as_me: cannot create a temporary directory in ." >&2 13919 { (exit 1); exit 1; } 13920} 13921 13922# Set up the scripts for CONFIG_FILES section. 13923# No need to generate them if there are no CONFIG_FILES. 13924# This happens for instance with `./config.status config.h'. 13925if test -n "$CONFIG_FILES"; then 13926 13927 13928ac_cr=' 13929' 13930ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13931if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13932 ac_cs_awk_cr='\\r' 13933else 13934 ac_cs_awk_cr=$ac_cr 13935fi 13936 13937echo 'BEGIN {' >"$tmp/subs1.awk" && 13938_ACEOF 13939 13940 13941{ 13942 echo "cat >conf$$subs.awk <<_ACEOF" && 13943 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13944 echo "_ACEOF" 13945} >conf$$subs.sh || 13946 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13947$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13948 { (exit 1); exit 1; }; } 13949ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 13950ac_delim='%!_!# ' 13951for ac_last_try in false false false false false :; do 13952 . ./conf$$subs.sh || 13953 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13954$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13955 { (exit 1); exit 1; }; } 13956 13957 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13958 if test $ac_delim_n = $ac_delim_num; then 13959 break 13960 elif $ac_last_try; then 13961 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13962$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13963 { (exit 1); exit 1; }; } 13964 else 13965 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13966 fi 13967done 13968rm -f conf$$subs.sh 13969 13970cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13971cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 13972_ACEOF 13973sed -n ' 13974h 13975s/^/S["/; s/!.*/"]=/ 13976p 13977g 13978s/^[^!]*!// 13979:repl 13980t repl 13981s/'"$ac_delim"'$// 13982t delim 13983:nl 13984h 13985s/\(.\{148\}\).*/\1/ 13986t more1 13987s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13988p 13989n 13990b repl 13991:more1 13992s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13993p 13994g 13995s/.\{148\}// 13996t nl 13997:delim 13998h 13999s/\(.\{148\}\).*/\1/ 14000t more2 14001s/["\\]/\\&/g; s/^/"/; s/$/"/ 14002p 14003b 14004:more2 14005s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14006p 14007g 14008s/.\{148\}// 14009t delim 14010' <conf$$subs.awk | sed ' 14011/^[^""]/{ 14012 N 14013 s/\n// 14014} 14015' >>$CONFIG_STATUS || ac_write_fail=1 14016rm -f conf$$subs.awk 14017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14018_ACAWK 14019cat >>"\$tmp/subs1.awk" <<_ACAWK && 14020 for (key in S) S_is_set[key] = 1 14021 FS = "" 14022 14023} 14024{ 14025 line = $ 0 14026 nfields = split(line, field, "@") 14027 substed = 0 14028 len = length(field[1]) 14029 for (i = 2; i < nfields; i++) { 14030 key = field[i] 14031 keylen = length(key) 14032 if (S_is_set[key]) { 14033 value = S[key] 14034 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14035 len += length(value) + length(field[++i]) 14036 substed = 1 14037 } else 14038 len += 1 + keylen 14039 } 14040 14041 print line 14042} 14043 14044_ACAWK 14045_ACEOF 14046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14047if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14048 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14049else 14050 cat 14051fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14052 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 14053$as_echo "$as_me: error: could not setup config files machinery" >&2;} 14054 { (exit 1); exit 1; }; } 14055_ACEOF 14056 14057# VPATH may cause trouble with some makes, so we remove $(srcdir), 14058# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14059# trailing colons and then remove the whole line if VPATH becomes empty 14060# (actually we leave an empty line to preserve line numbers). 14061if test "x$srcdir" = x.; then 14062 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14063s/:*\$(srcdir):*/:/ 14064s/:*\${srcdir}:*/:/ 14065s/:*@srcdir@:*/:/ 14066s/^\([^=]*=[ ]*\):*/\1/ 14067s/:*$// 14068s/^[^=]*=[ ]*$// 14069}' 14070fi 14071 14072cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14073fi # test -n "$CONFIG_FILES" 14074 14075# Set up the scripts for CONFIG_HEADERS section. 14076# No need to generate them if there are no CONFIG_HEADERS. 14077# This happens for instance with `./config.status Makefile'. 14078if test -n "$CONFIG_HEADERS"; then 14079cat >"$tmp/defines.awk" <<\_ACAWK || 14080BEGIN { 14081_ACEOF 14082 14083# Transform confdefs.h into an awk script `defines.awk', embedded as 14084# here-document in config.status, that substitutes the proper values into 14085# config.h.in to produce config.h. 14086 14087# Create a delimiter string that does not exist in confdefs.h, to ease 14088# handling of long lines. 14089ac_delim='%!_!# ' 14090for ac_last_try in false false :; do 14091 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 14092 if test -z "$ac_t"; then 14093 break 14094 elif $ac_last_try; then 14095 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 14096$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 14097 { (exit 1); exit 1; }; } 14098 else 14099 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14100 fi 14101done 14102 14103# For the awk script, D is an array of macro values keyed by name, 14104# likewise P contains macro parameters if any. Preserve backslash 14105# newline sequences. 14106 14107ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14108sed -n ' 14109s/.\{148\}/&'"$ac_delim"'/g 14110t rset 14111:rset 14112s/^[ ]*#[ ]*define[ ][ ]*/ / 14113t def 14114d 14115:def 14116s/\\$// 14117t bsnl 14118s/["\\]/\\&/g 14119s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14120D["\1"]=" \3"/p 14121s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14122d 14123:bsnl 14124s/["\\]/\\&/g 14125s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14126D["\1"]=" \3\\\\\\n"\\/p 14127t cont 14128s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14129t cont 14130d 14131:cont 14132n 14133s/.\{148\}/&'"$ac_delim"'/g 14134t clear 14135:clear 14136s/\\$// 14137t bsnlc 14138s/["\\]/\\&/g; s/^/"/; s/$/"/p 14139d 14140:bsnlc 14141s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14142b cont 14143' <confdefs.h | sed ' 14144s/'"$ac_delim"'/"\\\ 14145"/g' >>$CONFIG_STATUS || ac_write_fail=1 14146 14147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14148 for (key in D) D_is_set[key] = 1 14149 FS = "" 14150} 14151/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14152 line = \$ 0 14153 split(line, arg, " ") 14154 if (arg[1] == "#") { 14155 defundef = arg[2] 14156 mac1 = arg[3] 14157 } else { 14158 defundef = substr(arg[1], 2) 14159 mac1 = arg[2] 14160 } 14161 split(mac1, mac2, "(") #) 14162 macro = mac2[1] 14163 prefix = substr(line, 1, index(line, defundef) - 1) 14164 if (D_is_set[macro]) { 14165 # Preserve the white space surrounding the "#". 14166 print prefix "define", macro P[macro] D[macro] 14167 next 14168 } else { 14169 # Replace #undef with comments. This is necessary, for example, 14170 # in the case of _POSIX_SOURCE, which is predefined and required 14171 # on some systems where configure will not decide to define it. 14172 if (defundef == "undef") { 14173 print "/*", prefix defundef, macro, "*/" 14174 next 14175 } 14176 } 14177} 14178{ print } 14179_ACAWK 14180_ACEOF 14181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14182 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 14183$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 14184 { (exit 1); exit 1; }; } 14185fi # test -n "$CONFIG_HEADERS" 14186 14187 14188eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14189shift 14190for ac_tag 14191do 14192 case $ac_tag in 14193 :[FHLC]) ac_mode=$ac_tag; continue;; 14194 esac 14195 case $ac_mode$ac_tag in 14196 :[FHL]*:*);; 14197 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 14198$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 14199 { (exit 1); exit 1; }; };; 14200 :[FH]-) ac_tag=-:-;; 14201 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14202 esac 14203 ac_save_IFS=$IFS 14204 IFS=: 14205 set x $ac_tag 14206 IFS=$ac_save_IFS 14207 shift 14208 ac_file=$1 14209 shift 14210 14211 case $ac_mode in 14212 :L) ac_source=$1;; 14213 :[FH]) 14214 ac_file_inputs= 14215 for ac_f 14216 do 14217 case $ac_f in 14218 -) ac_f="$tmp/stdin";; 14219 *) # Look for the file first in the build tree, then in the source tree 14220 # (if the path is not absolute). The absolute path cannot be DOS-style, 14221 # because $ac_f cannot contain `:'. 14222 test -f "$ac_f" || 14223 case $ac_f in 14224 [\\/$]*) false;; 14225 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14226 esac || 14227 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14228$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 14229 { (exit 1); exit 1; }; };; 14230 esac 14231 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14232 ac_file_inputs="$ac_file_inputs '$ac_f'" 14233 done 14234 14235 # Let's still pretend it is `configure' which instantiates (i.e., don't 14236 # use $as_me), people would be surprised to read: 14237 # /* config.h. Generated by config.status. */ 14238 configure_input='Generated from '` 14239 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14240 `' by configure.' 14241 if test x"$ac_file" != x-; then 14242 configure_input="$ac_file. $configure_input" 14243 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 14244$as_echo "$as_me: creating $ac_file" >&6;} 14245 fi 14246 # Neutralize special characters interpreted by sed in replacement strings. 14247 case $configure_input in #( 14248 *\&* | *\|* | *\\* ) 14249 ac_sed_conf_input=`$as_echo "$configure_input" | 14250 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14251 *) ac_sed_conf_input=$configure_input;; 14252 esac 14253 14254 case $ac_tag in 14255 *:-:* | *:-) cat >"$tmp/stdin" \ 14256 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14257$as_echo "$as_me: error: could not create $ac_file" >&2;} 14258 { (exit 1); exit 1; }; } ;; 14259 esac 14260 ;; 14261 esac 14262 14263 ac_dir=`$as_dirname -- "$ac_file" || 14264$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14265 X"$ac_file" : 'X\(//\)[^/]' \| \ 14266 X"$ac_file" : 'X\(//\)$' \| \ 14267 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14268$as_echo X"$ac_file" | 14269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14270 s//\1/ 14271 q 14272 } 14273 /^X\(\/\/\)[^/].*/{ 14274 s//\1/ 14275 q 14276 } 14277 /^X\(\/\/\)$/{ 14278 s//\1/ 14279 q 14280 } 14281 /^X\(\/\).*/{ 14282 s//\1/ 14283 q 14284 } 14285 s/.*/./; q'` 14286 { as_dir="$ac_dir" 14287 case $as_dir in #( 14288 -*) as_dir=./$as_dir;; 14289 esac 14290 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14291 as_dirs= 14292 while :; do 14293 case $as_dir in #( 14294 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14295 *) as_qdir=$as_dir;; 14296 esac 14297 as_dirs="'$as_qdir' $as_dirs" 14298 as_dir=`$as_dirname -- "$as_dir" || 14299$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14300 X"$as_dir" : 'X\(//\)[^/]' \| \ 14301 X"$as_dir" : 'X\(//\)$' \| \ 14302 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14303$as_echo X"$as_dir" | 14304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14305 s//\1/ 14306 q 14307 } 14308 /^X\(\/\/\)[^/].*/{ 14309 s//\1/ 14310 q 14311 } 14312 /^X\(\/\/\)$/{ 14313 s//\1/ 14314 q 14315 } 14316 /^X\(\/\).*/{ 14317 s//\1/ 14318 q 14319 } 14320 s/.*/./; q'` 14321 test -d "$as_dir" && break 14322 done 14323 test -z "$as_dirs" || eval "mkdir $as_dirs" 14324 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14325$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14326 { (exit 1); exit 1; }; }; } 14327 ac_builddir=. 14328 14329case "$ac_dir" in 14330.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14331*) 14332 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14333 # A ".." for each directory in $ac_dir_suffix. 14334 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14335 case $ac_top_builddir_sub in 14336 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14337 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14338 esac ;; 14339esac 14340ac_abs_top_builddir=$ac_pwd 14341ac_abs_builddir=$ac_pwd$ac_dir_suffix 14342# for backward compatibility: 14343ac_top_builddir=$ac_top_build_prefix 14344 14345case $srcdir in 14346 .) # We are building in place. 14347 ac_srcdir=. 14348 ac_top_srcdir=$ac_top_builddir_sub 14349 ac_abs_top_srcdir=$ac_pwd ;; 14350 [\\/]* | ?:[\\/]* ) # Absolute name. 14351 ac_srcdir=$srcdir$ac_dir_suffix; 14352 ac_top_srcdir=$srcdir 14353 ac_abs_top_srcdir=$srcdir ;; 14354 *) # Relative name. 14355 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14356 ac_top_srcdir=$ac_top_build_prefix$srcdir 14357 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14358esac 14359ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14360 14361 14362 case $ac_mode in 14363 :F) 14364 # 14365 # CONFIG_FILE 14366 # 14367 14368 case $INSTALL in 14369 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14370 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14371 esac 14372 ac_MKDIR_P=$MKDIR_P 14373 case $MKDIR_P in 14374 [\\/$]* | ?:[\\/]* ) ;; 14375 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14376 esac 14377_ACEOF 14378 14379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14380# If the template does not know about datarootdir, expand it. 14381# FIXME: This hack should be removed a few years after 2.60. 14382ac_datarootdir_hack=; ac_datarootdir_seen= 14383 14384ac_sed_dataroot=' 14385/datarootdir/ { 14386 p 14387 q 14388} 14389/@datadir@/p 14390/@docdir@/p 14391/@infodir@/p 14392/@localedir@/p 14393/@mandir@/p 14394' 14395case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14396*datarootdir*) ac_datarootdir_seen=yes;; 14397*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14398 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14399$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14400_ACEOF 14401cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14402 ac_datarootdir_hack=' 14403 s&@datadir@&$datadir&g 14404 s&@docdir@&$docdir&g 14405 s&@infodir@&$infodir&g 14406 s&@localedir@&$localedir&g 14407 s&@mandir@&$mandir&g 14408 s&\\\${datarootdir}&$datarootdir&g' ;; 14409esac 14410_ACEOF 14411 14412# Neutralize VPATH when `$srcdir' = `.'. 14413# Shell code in configure.ac might set extrasub. 14414# FIXME: do we really want to maintain this feature? 14415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14416ac_sed_extra="$ac_vpsub 14417$extrasub 14418_ACEOF 14419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14420:t 14421/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14422s|@configure_input@|$ac_sed_conf_input|;t t 14423s&@top_builddir@&$ac_top_builddir_sub&;t t 14424s&@top_build_prefix@&$ac_top_build_prefix&;t t 14425s&@srcdir@&$ac_srcdir&;t t 14426s&@abs_srcdir@&$ac_abs_srcdir&;t t 14427s&@top_srcdir@&$ac_top_srcdir&;t t 14428s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14429s&@builddir@&$ac_builddir&;t t 14430s&@abs_builddir@&$ac_abs_builddir&;t t 14431s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14432s&@INSTALL@&$ac_INSTALL&;t t 14433s&@MKDIR_P@&$ac_MKDIR_P&;t t 14434$ac_datarootdir_hack 14435" 14436eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14437 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14438$as_echo "$as_me: error: could not create $ac_file" >&2;} 14439 { (exit 1); exit 1; }; } 14440 14441test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14442 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14443 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14444 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14445which seems to be undefined. Please make sure it is defined." >&5 14446$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14447which seems to be undefined. Please make sure it is defined." >&2;} 14448 14449 rm -f "$tmp/stdin" 14450 case $ac_file in 14451 -) cat "$tmp/out" && rm -f "$tmp/out";; 14452 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 14453 esac \ 14454 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14455$as_echo "$as_me: error: could not create $ac_file" >&2;} 14456 { (exit 1); exit 1; }; } 14457 ;; 14458 :H) 14459 # 14460 # CONFIG_HEADER 14461 # 14462 if test x"$ac_file" != x-; then 14463 { 14464 $as_echo "/* $configure_input */" \ 14465 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 14466 } >"$tmp/config.h" \ 14467 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14468$as_echo "$as_me: error: could not create $ac_file" >&2;} 14469 { (exit 1); exit 1; }; } 14470 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 14471 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14472$as_echo "$as_me: $ac_file is unchanged" >&6;} 14473 else 14474 rm -f "$ac_file" 14475 mv "$tmp/config.h" "$ac_file" \ 14476 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14477$as_echo "$as_me: error: could not create $ac_file" >&2;} 14478 { (exit 1); exit 1; }; } 14479 fi 14480 else 14481 $as_echo "/* $configure_input */" \ 14482 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 14483 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 14484$as_echo "$as_me: error: could not create -" >&2;} 14485 { (exit 1); exit 1; }; } 14486 fi 14487# Compute "$ac_file"'s index in $config_headers. 14488_am_arg="$ac_file" 14489_am_stamp_count=1 14490for _am_header in $config_headers :; do 14491 case $_am_header in 14492 $_am_arg | $_am_arg:* ) 14493 break ;; 14494 * ) 14495 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14496 esac 14497done 14498echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14499$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14500 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14501 X"$_am_arg" : 'X\(//\)$' \| \ 14502 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14503$as_echo X"$_am_arg" | 14504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14505 s//\1/ 14506 q 14507 } 14508 /^X\(\/\/\)[^/].*/{ 14509 s//\1/ 14510 q 14511 } 14512 /^X\(\/\/\)$/{ 14513 s//\1/ 14514 q 14515 } 14516 /^X\(\/\).*/{ 14517 s//\1/ 14518 q 14519 } 14520 s/.*/./; q'`/stamp-h$_am_stamp_count 14521 ;; 14522 14523 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 14524$as_echo "$as_me: executing $ac_file commands" >&6;} 14525 ;; 14526 esac 14527 14528 14529 case $ac_file$ac_mode in 14530 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14531 # Autoconf 2.62 quotes --file arguments for eval, but not when files 14532 # are listed without --file. Let's play safe and only enable the eval 14533 # if we detect the quoting. 14534 case $CONFIG_FILES in 14535 *\'*) eval set x "$CONFIG_FILES" ;; 14536 *) set x $CONFIG_FILES ;; 14537 esac 14538 shift 14539 for mf 14540 do 14541 # Strip MF so we end up with the name of the file. 14542 mf=`echo "$mf" | sed -e 's/:.*$//'` 14543 # Check whether this is an Automake generated Makefile or not. 14544 # We used to match only the files named `Makefile.in', but 14545 # some people rename them; so instead we look at the file content. 14546 # Grep'ing the first line is not enough: some people post-process 14547 # each Makefile.in and add a new line on top of each file to say so. 14548 # Grep'ing the whole file is not good either: AIX grep has a line 14549 # limit of 2048, but all sed's we know have understand at least 4000. 14550 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14551 dirpart=`$as_dirname -- "$mf" || 14552$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14553 X"$mf" : 'X\(//\)[^/]' \| \ 14554 X"$mf" : 'X\(//\)$' \| \ 14555 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14556$as_echo X"$mf" | 14557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14558 s//\1/ 14559 q 14560 } 14561 /^X\(\/\/\)[^/].*/{ 14562 s//\1/ 14563 q 14564 } 14565 /^X\(\/\/\)$/{ 14566 s//\1/ 14567 q 14568 } 14569 /^X\(\/\).*/{ 14570 s//\1/ 14571 q 14572 } 14573 s/.*/./; q'` 14574 else 14575 continue 14576 fi 14577 # Extract the definition of DEPDIR, am__include, and am__quote 14578 # from the Makefile without running `make'. 14579 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14580 test -z "$DEPDIR" && continue 14581 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14582 test -z "am__include" && continue 14583 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14584 # When using ansi2knr, U may be empty or an underscore; expand it 14585 U=`sed -n 's/^U = //p' < "$mf"` 14586 # Find all dependency output files, they are included files with 14587 # $(DEPDIR) in their names. We invoke sed twice because it is the 14588 # simplest approach to changing $(DEPDIR) to its actual value in the 14589 # expansion. 14590 for file in `sed -n " 14591 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14592 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14593 # Make sure the directory exists. 14594 test -f "$dirpart/$file" && continue 14595 fdir=`$as_dirname -- "$file" || 14596$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14597 X"$file" : 'X\(//\)[^/]' \| \ 14598 X"$file" : 'X\(//\)$' \| \ 14599 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14600$as_echo X"$file" | 14601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14602 s//\1/ 14603 q 14604 } 14605 /^X\(\/\/\)[^/].*/{ 14606 s//\1/ 14607 q 14608 } 14609 /^X\(\/\/\)$/{ 14610 s//\1/ 14611 q 14612 } 14613 /^X\(\/\).*/{ 14614 s//\1/ 14615 q 14616 } 14617 s/.*/./; q'` 14618 { as_dir=$dirpart/$fdir 14619 case $as_dir in #( 14620 -*) as_dir=./$as_dir;; 14621 esac 14622 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14623 as_dirs= 14624 while :; do 14625 case $as_dir in #( 14626 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14627 *) as_qdir=$as_dir;; 14628 esac 14629 as_dirs="'$as_qdir' $as_dirs" 14630 as_dir=`$as_dirname -- "$as_dir" || 14631$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14632 X"$as_dir" : 'X\(//\)[^/]' \| \ 14633 X"$as_dir" : 'X\(//\)$' \| \ 14634 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14635$as_echo X"$as_dir" | 14636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14637 s//\1/ 14638 q 14639 } 14640 /^X\(\/\/\)[^/].*/{ 14641 s//\1/ 14642 q 14643 } 14644 /^X\(\/\/\)$/{ 14645 s//\1/ 14646 q 14647 } 14648 /^X\(\/\).*/{ 14649 s//\1/ 14650 q 14651 } 14652 s/.*/./; q'` 14653 test -d "$as_dir" && break 14654 done 14655 test -z "$as_dirs" || eval "mkdir $as_dirs" 14656 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14657$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14658 { (exit 1); exit 1; }; }; } 14659 # echo "creating $dirpart/$file" 14660 echo '# dummy' > "$dirpart/$file" 14661 done 14662 done 14663} 14664 ;; 14665 "libtool":C) 14666 14667 # See if we are running on zsh, and set the options which allow our 14668 # commands through without removal of \ escapes. 14669 if test -n "${ZSH_VERSION+set}" ; then 14670 setopt NO_GLOB_SUBST 14671 fi 14672 14673 cfgfile="${ofile}T" 14674 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14675 $RM "$cfgfile" 14676 14677 cat <<_LT_EOF >> "$cfgfile" 14678#! $SHELL 14679 14680# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14681# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14682# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14683# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14684# 14685# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14686# 2006, 2007, 2008 Free Software Foundation, Inc. 14687# Written by Gordon Matzigkeit, 1996 14688# 14689# This file is part of GNU Libtool. 14690# 14691# GNU Libtool is free software; you can redistribute it and/or 14692# modify it under the terms of the GNU General Public License as 14693# published by the Free Software Foundation; either version 2 of 14694# the License, or (at your option) any later version. 14695# 14696# As a special exception to the GNU General Public License, 14697# if you distribute this file as part of a program or library that 14698# is built using GNU Libtool, you may include this file under the 14699# same distribution terms that you use for the rest of that program. 14700# 14701# GNU Libtool is distributed in the hope that it will be useful, 14702# but WITHOUT ANY WARRANTY; without even the implied warranty of 14703# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14704# GNU General Public License for more details. 14705# 14706# You should have received a copy of the GNU General Public License 14707# along with GNU Libtool; see the file COPYING. If not, a copy 14708# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14709# obtained by writing to the Free Software Foundation, Inc., 14710# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14711 14712 14713# The names of the tagged configurations supported by this script. 14714available_tags="" 14715 14716# ### BEGIN LIBTOOL CONFIG 14717 14718# Whether or not to build static libraries. 14719build_old_libs=$enable_static 14720 14721# Which release of libtool.m4 was used? 14722macro_version=$macro_version 14723macro_revision=$macro_revision 14724 14725# Whether or not to build shared libraries. 14726build_libtool_libs=$enable_shared 14727 14728# What type of objects to build. 14729pic_mode=$pic_mode 14730 14731# Whether or not to optimize for fast installation. 14732fast_install=$enable_fast_install 14733 14734# The host system. 14735host_alias=$host_alias 14736host=$host 14737host_os=$host_os 14738 14739# The build system. 14740build_alias=$build_alias 14741build=$build 14742build_os=$build_os 14743 14744# A sed program that does not truncate output. 14745SED=$lt_SED 14746 14747# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14748Xsed="\$SED -e 1s/^X//" 14749 14750# A grep program that handles long lines. 14751GREP=$lt_GREP 14752 14753# An ERE matcher. 14754EGREP=$lt_EGREP 14755 14756# A literal string matcher. 14757FGREP=$lt_FGREP 14758 14759# A BSD- or MS-compatible name lister. 14760NM=$lt_NM 14761 14762# Whether we need soft or hard links. 14763LN_S=$lt_LN_S 14764 14765# What is the maximum length of a command? 14766max_cmd_len=$max_cmd_len 14767 14768# Object file suffix (normally "o"). 14769objext=$ac_objext 14770 14771# Executable file suffix (normally ""). 14772exeext=$exeext 14773 14774# whether the shell understands "unset". 14775lt_unset=$lt_unset 14776 14777# turn spaces into newlines. 14778SP2NL=$lt_lt_SP2NL 14779 14780# turn newlines into spaces. 14781NL2SP=$lt_lt_NL2SP 14782 14783# How to create reloadable object files. 14784reload_flag=$lt_reload_flag 14785reload_cmds=$lt_reload_cmds 14786 14787# An object symbol dumper. 14788OBJDUMP=$lt_OBJDUMP 14789 14790# Method to check whether dependent libraries are shared objects. 14791deplibs_check_method=$lt_deplibs_check_method 14792 14793# Command to use when deplibs_check_method == "file_magic". 14794file_magic_cmd=$lt_file_magic_cmd 14795 14796# The archiver. 14797AR=$lt_AR 14798AR_FLAGS=$lt_AR_FLAGS 14799 14800# A symbol stripping program. 14801STRIP=$lt_STRIP 14802 14803# Commands used to install an old-style archive. 14804RANLIB=$lt_RANLIB 14805old_postinstall_cmds=$lt_old_postinstall_cmds 14806old_postuninstall_cmds=$lt_old_postuninstall_cmds 14807 14808# A C compiler. 14809LTCC=$lt_CC 14810 14811# LTCC compiler flags. 14812LTCFLAGS=$lt_CFLAGS 14813 14814# Take the output of nm and produce a listing of raw symbols and C names. 14815global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14816 14817# Transform the output of nm in a proper C declaration. 14818global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14819 14820# Transform the output of nm in a C name address pair. 14821global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14822 14823# Transform the output of nm in a C name address pair when lib prefix is needed. 14824global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14825 14826# The name of the directory that contains temporary libtool files. 14827objdir=$objdir 14828 14829# Shell to use when invoking shell scripts. 14830SHELL=$lt_SHELL 14831 14832# An echo program that does not interpret backslashes. 14833ECHO=$lt_ECHO 14834 14835# Used to examine libraries when file_magic_cmd begins with "file". 14836MAGIC_CMD=$MAGIC_CMD 14837 14838# Must we lock files when doing compilation? 14839need_locks=$lt_need_locks 14840 14841# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14842DSYMUTIL=$lt_DSYMUTIL 14843 14844# Tool to change global to local symbols on Mac OS X. 14845NMEDIT=$lt_NMEDIT 14846 14847# Tool to manipulate fat objects and archives on Mac OS X. 14848LIPO=$lt_LIPO 14849 14850# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14851OTOOL=$lt_OTOOL 14852 14853# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14854OTOOL64=$lt_OTOOL64 14855 14856# Old archive suffix (normally "a"). 14857libext=$libext 14858 14859# Shared library suffix (normally ".so"). 14860shrext_cmds=$lt_shrext_cmds 14861 14862# The commands to extract the exported symbol list from a shared archive. 14863extract_expsyms_cmds=$lt_extract_expsyms_cmds 14864 14865# Variables whose values should be saved in libtool wrapper scripts and 14866# restored at link time. 14867variables_saved_for_relink=$lt_variables_saved_for_relink 14868 14869# Do we need the "lib" prefix for modules? 14870need_lib_prefix=$need_lib_prefix 14871 14872# Do we need a version for libraries? 14873need_version=$need_version 14874 14875# Library versioning type. 14876version_type=$version_type 14877 14878# Shared library runtime path variable. 14879runpath_var=$runpath_var 14880 14881# Shared library path variable. 14882shlibpath_var=$shlibpath_var 14883 14884# Is shlibpath searched before the hard-coded library search path? 14885shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14886 14887# Format of library name prefix. 14888libname_spec=$lt_libname_spec 14889 14890# List of archive names. First name is the real one, the rest are links. 14891# The last name is the one that the linker finds with -lNAME 14892library_names_spec=$lt_library_names_spec 14893 14894# The coded name of the library, if different from the real name. 14895soname_spec=$lt_soname_spec 14896 14897# Command to use after installation of a shared archive. 14898postinstall_cmds=$lt_postinstall_cmds 14899 14900# Command to use after uninstallation of a shared archive. 14901postuninstall_cmds=$lt_postuninstall_cmds 14902 14903# Commands used to finish a libtool library installation in a directory. 14904finish_cmds=$lt_finish_cmds 14905 14906# As "finish_cmds", except a single script fragment to be evaled but 14907# not shown. 14908finish_eval=$lt_finish_eval 14909 14910# Whether we should hardcode library paths into libraries. 14911hardcode_into_libs=$hardcode_into_libs 14912 14913# Compile-time system search path for libraries. 14914sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14915 14916# Run-time system search path for libraries. 14917sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14918 14919# Whether dlopen is supported. 14920dlopen_support=$enable_dlopen 14921 14922# Whether dlopen of programs is supported. 14923dlopen_self=$enable_dlopen_self 14924 14925# Whether dlopen of statically linked programs is supported. 14926dlopen_self_static=$enable_dlopen_self_static 14927 14928# Commands to strip libraries. 14929old_striplib=$lt_old_striplib 14930striplib=$lt_striplib 14931 14932 14933# The linker used to build libraries. 14934LD=$lt_LD 14935 14936# Commands used to build an old-style archive. 14937old_archive_cmds=$lt_old_archive_cmds 14938 14939# A language specific compiler. 14940CC=$lt_compiler 14941 14942# Is the compiler the GNU compiler? 14943with_gcc=$GCC 14944 14945# Compiler flag to turn off builtin functions. 14946no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14947 14948# How to pass a linker flag through the compiler. 14949wl=$lt_lt_prog_compiler_wl 14950 14951# Additional compiler flags for building library objects. 14952pic_flag=$lt_lt_prog_compiler_pic 14953 14954# Compiler flag to prevent dynamic linking. 14955link_static_flag=$lt_lt_prog_compiler_static 14956 14957# Does compiler simultaneously support -c and -o options? 14958compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14959 14960# Whether or not to add -lc for building shared libraries. 14961build_libtool_need_lc=$archive_cmds_need_lc 14962 14963# Whether or not to disallow shared libs when runtime libs are static. 14964allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14965 14966# Compiler flag to allow reflexive dlopens. 14967export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14968 14969# Compiler flag to generate shared objects directly from archives. 14970whole_archive_flag_spec=$lt_whole_archive_flag_spec 14971 14972# Whether the compiler copes with passing no objects directly. 14973compiler_needs_object=$lt_compiler_needs_object 14974 14975# Create an old-style archive from a shared archive. 14976old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14977 14978# Create a temporary old-style archive to link instead of a shared archive. 14979old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14980 14981# Commands used to build a shared archive. 14982archive_cmds=$lt_archive_cmds 14983archive_expsym_cmds=$lt_archive_expsym_cmds 14984 14985# Commands used to build a loadable module if different from building 14986# a shared archive. 14987module_cmds=$lt_module_cmds 14988module_expsym_cmds=$lt_module_expsym_cmds 14989 14990# Whether we are building with GNU ld or not. 14991with_gnu_ld=$lt_with_gnu_ld 14992 14993# Flag that allows shared libraries with undefined symbols to be built. 14994allow_undefined_flag=$lt_allow_undefined_flag 14995 14996# Flag that enforces no undefined symbols. 14997no_undefined_flag=$lt_no_undefined_flag 14998 14999# Flag to hardcode \$libdir into a binary during linking. 15000# This must work even if \$libdir does not exist 15001hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15002 15003# If ld is used when linking, flag to hardcode \$libdir into a binary 15004# during linking. This must work even if \$libdir does not exist. 15005hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15006 15007# Whether we need a single "-rpath" flag with a separated argument. 15008hardcode_libdir_separator=$lt_hardcode_libdir_separator 15009 15010# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15011# DIR into the resulting binary. 15012hardcode_direct=$hardcode_direct 15013 15014# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15015# DIR into the resulting binary and the resulting library dependency is 15016# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15017# library is relocated. 15018hardcode_direct_absolute=$hardcode_direct_absolute 15019 15020# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15021# into the resulting binary. 15022hardcode_minus_L=$hardcode_minus_L 15023 15024# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15025# into the resulting binary. 15026hardcode_shlibpath_var=$hardcode_shlibpath_var 15027 15028# Set to "yes" if building a shared library automatically hardcodes DIR 15029# into the library and all subsequent libraries and executables linked 15030# against it. 15031hardcode_automatic=$hardcode_automatic 15032 15033# Set to yes if linker adds runtime paths of dependent libraries 15034# to runtime path list. 15035inherit_rpath=$inherit_rpath 15036 15037# Whether libtool must link a program against all its dependency libraries. 15038link_all_deplibs=$link_all_deplibs 15039 15040# Fix the shell variable \$srcfile for the compiler. 15041fix_srcfile_path=$lt_fix_srcfile_path 15042 15043# Set to "yes" if exported symbols are required. 15044always_export_symbols=$always_export_symbols 15045 15046# The commands to list exported symbols. 15047export_symbols_cmds=$lt_export_symbols_cmds 15048 15049# Symbols that should not be listed in the preloaded symbols. 15050exclude_expsyms=$lt_exclude_expsyms 15051 15052# Symbols that must always be exported. 15053include_expsyms=$lt_include_expsyms 15054 15055# Commands necessary for linking programs (against libraries) with templates. 15056prelink_cmds=$lt_prelink_cmds 15057 15058# Specify filename containing input files. 15059file_list_spec=$lt_file_list_spec 15060 15061# How to hardcode a shared library path into an executable. 15062hardcode_action=$hardcode_action 15063 15064# ### END LIBTOOL CONFIG 15065 15066_LT_EOF 15067 15068 case $host_os in 15069 aix3*) 15070 cat <<\_LT_EOF >> "$cfgfile" 15071# AIX sometimes has problems with the GCC collect2 program. For some 15072# reason, if we set the COLLECT_NAMES environment variable, the problems 15073# vanish in a puff of smoke. 15074if test "X${COLLECT_NAMES+set}" != Xset; then 15075 COLLECT_NAMES= 15076 export COLLECT_NAMES 15077fi 15078_LT_EOF 15079 ;; 15080 esac 15081 15082 15083ltmain="$ac_aux_dir/ltmain.sh" 15084 15085 15086 # We use sed instead of cat because bash on DJGPP gets confused if 15087 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15088 # text mode, it properly converts lines to CR/LF. This bash problem 15089 # is reportedly fixed, but why not run on old versions too? 15090 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15091 || (rm -f "$cfgfile"; exit 1) 15092 15093 case $xsi_shell in 15094 yes) 15095 cat << \_LT_EOF >> "$cfgfile" 15096 15097# func_dirname file append nondir_replacement 15098# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15099# otherwise set result to NONDIR_REPLACEMENT. 15100func_dirname () 15101{ 15102 case ${1} in 15103 */*) func_dirname_result="${1%/*}${2}" ;; 15104 * ) func_dirname_result="${3}" ;; 15105 esac 15106} 15107 15108# func_basename file 15109func_basename () 15110{ 15111 func_basename_result="${1##*/}" 15112} 15113 15114# func_dirname_and_basename file append nondir_replacement 15115# perform func_basename and func_dirname in a single function 15116# call: 15117# dirname: Compute the dirname of FILE. If nonempty, 15118# add APPEND to the result, otherwise set result 15119# to NONDIR_REPLACEMENT. 15120# value returned in "$func_dirname_result" 15121# basename: Compute filename of FILE. 15122# value retuned in "$func_basename_result" 15123# Implementation must be kept synchronized with func_dirname 15124# and func_basename. For efficiency, we do not delegate to 15125# those functions but instead duplicate the functionality here. 15126func_dirname_and_basename () 15127{ 15128 case ${1} in 15129 */*) func_dirname_result="${1%/*}${2}" ;; 15130 * ) func_dirname_result="${3}" ;; 15131 esac 15132 func_basename_result="${1##*/}" 15133} 15134 15135# func_stripname prefix suffix name 15136# strip PREFIX and SUFFIX off of NAME. 15137# PREFIX and SUFFIX must not contain globbing or regex special 15138# characters, hashes, percent signs, but SUFFIX may contain a leading 15139# dot (in which case that matches only a dot). 15140func_stripname () 15141{ 15142 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15143 # positional parameters, so assign one to ordinary parameter first. 15144 func_stripname_result=${3} 15145 func_stripname_result=${func_stripname_result#"${1}"} 15146 func_stripname_result=${func_stripname_result%"${2}"} 15147} 15148 15149# func_opt_split 15150func_opt_split () 15151{ 15152 func_opt_split_opt=${1%%=*} 15153 func_opt_split_arg=${1#*=} 15154} 15155 15156# func_lo2o object 15157func_lo2o () 15158{ 15159 case ${1} in 15160 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15161 *) func_lo2o_result=${1} ;; 15162 esac 15163} 15164 15165# func_xform libobj-or-source 15166func_xform () 15167{ 15168 func_xform_result=${1%.*}.lo 15169} 15170 15171# func_arith arithmetic-term... 15172func_arith () 15173{ 15174 func_arith_result=$(( $* )) 15175} 15176 15177# func_len string 15178# STRING may not start with a hyphen. 15179func_len () 15180{ 15181 func_len_result=${#1} 15182} 15183 15184_LT_EOF 15185 ;; 15186 *) # Bourne compatible functions. 15187 cat << \_LT_EOF >> "$cfgfile" 15188 15189# func_dirname file append nondir_replacement 15190# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15191# otherwise set result to NONDIR_REPLACEMENT. 15192func_dirname () 15193{ 15194 # Extract subdirectory from the argument. 15195 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15196 if test "X$func_dirname_result" = "X${1}"; then 15197 func_dirname_result="${3}" 15198 else 15199 func_dirname_result="$func_dirname_result${2}" 15200 fi 15201} 15202 15203# func_basename file 15204func_basename () 15205{ 15206 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15207} 15208 15209 15210# func_stripname prefix suffix name 15211# strip PREFIX and SUFFIX off of NAME. 15212# PREFIX and SUFFIX must not contain globbing or regex special 15213# characters, hashes, percent signs, but SUFFIX may contain a leading 15214# dot (in which case that matches only a dot). 15215# func_strip_suffix prefix name 15216func_stripname () 15217{ 15218 case ${2} in 15219 .*) func_stripname_result=`$ECHO "X${3}" \ 15220 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15221 *) func_stripname_result=`$ECHO "X${3}" \ 15222 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15223 esac 15224} 15225 15226# sed scripts: 15227my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15228my_sed_long_arg='1s/^-[^=]*=//' 15229 15230# func_opt_split 15231func_opt_split () 15232{ 15233 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15234 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15235} 15236 15237# func_lo2o object 15238func_lo2o () 15239{ 15240 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15241} 15242 15243# func_xform libobj-or-source 15244func_xform () 15245{ 15246 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15247} 15248 15249# func_arith arithmetic-term... 15250func_arith () 15251{ 15252 func_arith_result=`expr "$@"` 15253} 15254 15255# func_len string 15256# STRING may not start with a hyphen. 15257func_len () 15258{ 15259 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15260} 15261 15262_LT_EOF 15263esac 15264 15265case $lt_shell_append in 15266 yes) 15267 cat << \_LT_EOF >> "$cfgfile" 15268 15269# func_append var value 15270# Append VALUE to the end of shell variable VAR. 15271func_append () 15272{ 15273 eval "$1+=\$2" 15274} 15275_LT_EOF 15276 ;; 15277 *) 15278 cat << \_LT_EOF >> "$cfgfile" 15279 15280# func_append var value 15281# Append VALUE to the end of shell variable VAR. 15282func_append () 15283{ 15284 eval "$1=\$$1\$2" 15285} 15286 15287_LT_EOF 15288 ;; 15289 esac 15290 15291 15292 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15293 || (rm -f "$cfgfile"; exit 1) 15294 15295 mv -f "$cfgfile" "$ofile" || 15296 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15297 chmod +x "$ofile" 15298 15299 ;; 15300 15301 esac 15302done # for ac_tag 15303 15304 15305{ (exit 0); exit 0; } 15306_ACEOF 15307chmod +x $CONFIG_STATUS 15308ac_clean_files=$ac_clean_files_save 15309 15310test $ac_write_fail = 0 || 15311 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 15312$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 15313 { (exit 1); exit 1; }; } 15314 15315 15316# configure is writing to config.log, and then calls config.status. 15317# config.status does its own redirection, appending to config.log. 15318# Unfortunately, on DOS this fails, as config.log is still kept open 15319# by configure, so config.status won't be able to write to it; its 15320# output is simply discarded. So we exec the FD to /dev/null, 15321# effectively closing config.log, so it can be properly (re)opened and 15322# appended to by config.status. When coming back to configure, we 15323# need to make the FD available again. 15324if test "$no_create" != yes; then 15325 ac_cs_success=: 15326 ac_config_status_args= 15327 test "$silent" = yes && 15328 ac_config_status_args="$ac_config_status_args --quiet" 15329 exec 5>/dev/null 15330 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15331 exec 5>>config.log 15332 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15333 # would make configure fail if this is the last instruction. 15334 $ac_cs_success || { (exit 1); exit 1; } 15335fi 15336if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15337 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15338$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15339fi 15340 15341