configure revision f3561b8b
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.13. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42as_nl=' 43' 44export as_nl 45# Printing a long string crashes Solaris 7 /usr/bin/printf. 46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83# Support unset when possible. 84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85 as_unset=unset 86else 87 as_unset=false 88fi 89 90 91# IFS 92# We need space, tab and new line, in precisely that order. Quoting is 93# there to prevent editors from complaining about space-tab. 94# (If _AS_PATH_WALK were called with IFS unset, it would disable word 95# splitting by setting IFS to empty value.) 96IFS=" "" $as_nl" 97 98# Find who we are. Look in the path if we contain no directory separator. 99case $0 in 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102for as_dir in $PATH 103do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107done 108IFS=$as_save_IFS 109 110 ;; 111esac 112# We did not find ourselves, most probably we were run as `sh COMMAND' 113# in which case we are not to be found in the path. 114if test "x$as_myself" = x; then 115 as_myself=$0 116fi 117if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120fi 121 122# Work around bugs in pre-3.0 UWIN ksh. 123for as_var in ENV MAIL MAILPATH 124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# Required to use basename. 137if expr a : '\(a\)' >/dev/null 2>&1 && 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 139 as_expr=expr 140else 141 as_expr=false 142fi 143 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145 as_basename=basename 146else 147 as_basename=false 148fi 149 150 151# Name of the executable. 152as_me=`$as_basename -- "$0" || 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154 X"$0" : 'X\(//\)$' \| \ 155 X"$0" : 'X\(/\)' \| . 2>/dev/null || 156$as_echo X/"$0" | 157 sed '/^.*\/\([^/][^/]*\)\/*$/{ 158 s//\1/ 159 q 160 } 161 /^X\/\(\/\/\)$/{ 162 s//\1/ 163 q 164 } 165 /^X\/\(\/\).*/{ 166 s//\1/ 167 q 168 } 169 s/.*/./; q'` 170 171# CDPATH. 172$as_unset CDPATH 173 174 175if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 182 if test $as_have_required = yes && (eval ": 183(as_func_return () { 184 (exit \$1) 185} 186as_func_success () { 187 as_func_return 0 188} 189as_func_failure () { 190 as_func_return 1 191} 192as_func_ret_success () { 193 return 0 194} 195as_func_ret_failure () { 196 return 1 197} 198 199exitcode=0 200if as_func_success; then 201 : 202else 203 exitcode=1 204 echo as_func_success failed. 205fi 206 207if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210fi 211 212if as_func_ret_success; then 213 : 214else 215 exitcode=1 216 echo as_func_ret_success failed. 217fi 218 219if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222fi 223 224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226else 227 exitcode=1 228 echo positional parameters were not saved. 229fi 230 231test \$exitcode = 0) || { (exit 1); exit 1; } 232 233( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238") 2> /dev/null; then 239 : 240else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253done 254IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$as_shell") 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277_ASEOF 278}; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292esac 293 294fi 295 296 297: 298(as_func_return () { 299 (exit $1) 300} 301as_func_success () { 302 as_func_return 0 303} 304as_func_failure () { 305 as_func_return 1 306} 307as_func_ret_success () { 308 return 0 309} 310as_func_ret_failure () { 311 return 1 312} 313 314exitcode=0 315if as_func_success; then 316 : 317else 318 exitcode=1 319 echo as_func_success failed. 320fi 321 322if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325fi 326 327if as_func_ret_success; then 328 : 329else 330 exitcode=1 331 echo as_func_ret_success failed. 332fi 333 334if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337fi 338 339if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341else 342 exitcode=1 343 echo positional parameters were not saved. 344fi 345 346test $exitcode = 0) || { (exit 1); exit 1; } 347 348( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354_ASEOF 355}; then 356 break 357fi 358 359fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378fi 379 380 381fi 382 383fi 384 385 386 387(eval "as_func_return () { 388 (exit \$1) 389} 390as_func_success () { 391 as_func_return 0 392} 393as_func_failure () { 394 as_func_return 1 395} 396as_func_ret_success () { 397 return 0 398} 399as_func_ret_failure () { 400 return 1 401} 402 403exitcode=0 404if as_func_success; then 405 : 406else 407 exitcode=1 408 echo as_func_success failed. 409fi 410 411if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414fi 415 416if as_func_ret_success; then 417 : 418else 419 exitcode=1 420 echo as_func_ret_success failed. 421fi 422 423if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426fi 427 428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430else 431 exitcode=1 432 echo positional parameters were not saved. 433fi 434 435test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441} 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 460 sed -n ' 461 p 462 /[$]LINENO/= 463 ' <$as_myself | 464 sed ' 465 s/[$]LINENO.*/&-/ 466 t lineno 467 b 468 :lineno 469 N 470 :loop 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472 t loop 473 s/-\n.*// 474 ' >$as_me.lineno && 475 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 478 479 # Don't try to exec as it changes $[0], causing all sort of problems 480 # (the dirname of $[0] is not the place where we might find the 481 # original and so on. Autoconf is especially sensitive to this). 482 . "./$as_me.lineno" 483 # Exit status is that of the last command. 484 exit 485} 486 487 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 as_dirname=dirname 490else 491 as_dirname=false 492fi 493 494ECHO_C= ECHO_N= ECHO_T= 495case `echo -n x` in 496-n*) 497 case `echo 'x\c'` in 498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 500 esac;; 501*) 502 ECHO_N='-n';; 503esac 504if expr a : '\(a\)' >/dev/null 2>&1 && 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 506 as_expr=expr 507else 508 as_expr=false 509fi 510 511rm -f conf$$ conf$$.exe conf$$.file 512if test -d conf$$.dir; then 513 rm -f conf$$.dir/conf$$.file 514else 515 rm -f conf$$.dir 516 mkdir conf$$.dir 2>/dev/null 517fi 518if (echo >conf$$.file) 2>/dev/null; then 519 if ln -s conf$$.file conf$$ 2>/dev/null; then 520 as_ln_s='ln -s' 521 # ... but there are two gotchas: 522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 # In both cases, we have to default to `cp -p'. 525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 as_ln_s='cp -p' 527 elif ln conf$$.file conf$$ 2>/dev/null; then 528 as_ln_s=ln 529 else 530 as_ln_s='cp -p' 531 fi 532else 533 as_ln_s='cp -p' 534fi 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536rmdir conf$$.dir 2>/dev/null 537 538if mkdir -p . 2>/dev/null; then 539 as_mkdir_p=: 540else 541 test -d ./-p && rmdir ./-p 542 as_mkdir_p=false 543fi 544 545if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547else 548 if ls -dL / >/dev/null 2>&1; then 549 as_ls_L_option=L 550 else 551 as_ls_L_option= 552 fi 553 as_test_x=' 554 eval sh -c '\'' 555 if test -d "$1"; then 556 test -d "$1/."; 557 else 558 case $1 in 559 -*)set "./$1";; 560 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 ???[sx]*):;;*)false;;esac;fi 563 '\'' sh 564 ' 565fi 566as_executable_p=$as_test_x 567 568# Sed expression to map a string onto a valid CPP name. 569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571# Sed expression to map a string onto a valid variable name. 572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574 575 576 577# Check that we are running under the correct shell. 578SHELL=${CONFIG_SHELL-/bin/sh} 579 580case X$lt_ECHO in 581X*--fallback-echo) 582 # Remove one level of quotation (which was required for Make). 583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 584 ;; 585esac 586 587ECHO=${lt_ECHO-echo} 588if test "X$1" = X--no-reexec; then 589 # Discard the --no-reexec flag, and continue. 590 shift 591elif test "X$1" = X--fallback-echo; then 592 # Avoid inline document here, it may be left over 593 : 594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 595 # Yippee, $ECHO works! 596 : 597else 598 # Restart under the correct shell. 599 exec $SHELL "$0" --no-reexec ${1+"$@"} 600fi 601 602if test "X$1" = X--fallback-echo; then 603 # used as fallback echo 604 shift 605 cat <<_LT_EOF 606$* 607_LT_EOF 608 exit 0 609fi 610 611# The HP-UX ksh and POSIX shell print the target directory to stdout 612# if CDPATH is set. 613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 614 615if test -z "$lt_ECHO"; then 616 if test "X${echo_test_string+set}" != Xset; then 617 # find a string as large as possible, as long as the shell can cope with it 618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 620 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 622 then 623 break 624 fi 625 done 626 fi 627 628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 630 test "X$echo_testing_string" = "X$echo_test_string"; then 631 : 632 else 633 # The Solaris, AIX, and Digital Unix default echo programs unquote 634 # backslashes. This makes it impossible to quote backslashes using 635 # echo "$something" | sed 's/\\/\\\\/g' 636 # 637 # So, first we look for a working echo in the user's PATH. 638 639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 640 for dir in $PATH /usr/ucb; do 641 IFS="$lt_save_ifs" 642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 645 test "X$echo_testing_string" = "X$echo_test_string"; then 646 ECHO="$dir/echo" 647 break 648 fi 649 done 650 IFS="$lt_save_ifs" 651 652 if test "X$ECHO" = Xecho; then 653 # We didn't find a better echo, so look for alternatives. 654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 656 test "X$echo_testing_string" = "X$echo_test_string"; then 657 # This shell has a builtin print -r that does the trick. 658 ECHO='print -r' 659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 660 test "X$CONFIG_SHELL" != X/bin/ksh; then 661 # If we have ksh, try running configure again with it. 662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 663 export ORIGINAL_CONFIG_SHELL 664 CONFIG_SHELL=/bin/ksh 665 export CONFIG_SHELL 666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 667 else 668 # Try using printf. 669 ECHO='printf %s\n' 670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 672 test "X$echo_testing_string" = "X$echo_test_string"; then 673 # Cool, printf works 674 : 675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 676 test "X$echo_testing_string" = 'X\t' && 677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 678 test "X$echo_testing_string" = "X$echo_test_string"; then 679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 680 export CONFIG_SHELL 681 SHELL="$CONFIG_SHELL" 682 export SHELL 683 ECHO="$CONFIG_SHELL $0 --fallback-echo" 684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 685 test "X$echo_testing_string" = 'X\t' && 686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 687 test "X$echo_testing_string" = "X$echo_test_string"; then 688 ECHO="$CONFIG_SHELL $0 --fallback-echo" 689 else 690 # maybe with a smaller string... 691 prev=: 692 693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 695 then 696 break 697 fi 698 prev="$cmd" 699 done 700 701 if test "$prev" != 'sed 50q "$0"'; then 702 echo_test_string=`eval $prev` 703 export echo_test_string 704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 705 else 706 # Oops. We lost completely, so just stick with echo. 707 ECHO=echo 708 fi 709 fi 710 fi 711 fi 712 fi 713fi 714 715# Copy echo and quote the copy suitably for passing to libtool from 716# the Makefile, instead of quoting the original, which is used later. 717lt_ECHO=$ECHO 718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 720fi 721 722 723 724 725exec 7<&0 </dev/null 6>&1 726 727# Name of the host. 728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 729# so uname gets run too. 730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 731 732# 733# Initializations. 734# 735ac_default_prefix=/usr/local 736ac_clean_files= 737ac_config_libobj_dir=. 738LIBOBJS= 739cross_compiling=no 740subdirs= 741MFLAGS= 742MAKEFLAGS= 743SHELL=${CONFIG_SHELL-/bin/sh} 744 745# Identity of this package. 746PACKAGE_NAME='xf86-video-nv' 747PACKAGE_TARNAME='xf86-video-nv' 748PACKAGE_VERSION='2.1.13' 749PACKAGE_STRING='xf86-video-nv 2.1.13' 750PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 751 752ac_unique_file="Makefile.am" 753# Factoring default headers for most tests. 754ac_includes_default="\ 755#include <stdio.h> 756#ifdef HAVE_SYS_TYPES_H 757# include <sys/types.h> 758#endif 759#ifdef HAVE_SYS_STAT_H 760# include <sys/stat.h> 761#endif 762#ifdef STDC_HEADERS 763# include <stdlib.h> 764# include <stddef.h> 765#else 766# ifdef HAVE_STDLIB_H 767# include <stdlib.h> 768# endif 769#endif 770#ifdef HAVE_STRING_H 771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 772# include <memory.h> 773# endif 774# include <string.h> 775#endif 776#ifdef HAVE_STRINGS_H 777# include <strings.h> 778#endif 779#ifdef HAVE_INTTYPES_H 780# include <inttypes.h> 781#endif 782#ifdef HAVE_STDINT_H 783# include <stdint.h> 784#endif 785#ifdef HAVE_UNISTD_H 786# include <unistd.h> 787#endif" 788 789ac_subst_vars='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.13 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.13:";; 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.13 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.13, 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.13' 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*) 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*) 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 else 8437 # not using gcc 8438 if test "$host_cpu" = ia64; then 8439 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8440 # chokes on -Wl,-G. The following line is correct: 8441 shared_flag='-G' 8442 else 8443 if test "$aix_use_runtimelinking" = yes; then 8444 shared_flag='${wl}-G' 8445 else 8446 shared_flag='${wl}-bM:SRE' 8447 fi 8448 fi 8449 fi 8450 8451 export_dynamic_flag_spec='${wl}-bexpall' 8452 # It seems that -bexpall does not export symbols beginning with 8453 # underscore (_), so it is better to generate a list of symbols to export. 8454 always_export_symbols=yes 8455 if test "$aix_use_runtimelinking" = yes; then 8456 # Warning - without using the other runtime loading flags (-brtl), 8457 # -berok will link without error, but may produce a broken library. 8458 allow_undefined_flag='-berok' 8459 # Determine the default libpath from the value encoded in an 8460 # empty executable. 8461 cat >conftest.$ac_ext <<_ACEOF 8462/* confdefs.h. */ 8463_ACEOF 8464cat confdefs.h >>conftest.$ac_ext 8465cat >>conftest.$ac_ext <<_ACEOF 8466/* end confdefs.h. */ 8467 8468int 8469main () 8470{ 8471 8472 ; 8473 return 0; 8474} 8475_ACEOF 8476rm -f conftest.$ac_objext conftest$ac_exeext 8477if { (ac_try="$ac_link" 8478case "(($ac_try" in 8479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8480 *) ac_try_echo=$ac_try;; 8481esac 8482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8483$as_echo "$ac_try_echo") >&5 8484 (eval "$ac_link") 2>conftest.er1 8485 ac_status=$? 8486 grep -v '^ *+' conftest.er1 >conftest.err 8487 rm -f conftest.er1 8488 cat conftest.err >&5 8489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8490 (exit $ac_status); } && { 8491 test -z "$ac_c_werror_flag" || 8492 test ! -s conftest.err 8493 } && test -s conftest$ac_exeext && { 8494 test "$cross_compiling" = yes || 8495 $as_test_x conftest$ac_exeext 8496 }; then 8497 8498lt_aix_libpath_sed=' 8499 /Import File Strings/,/^$/ { 8500 /^0/ { 8501 s/^0 *\(.*\)$/\1/ 8502 p 8503 } 8504 }' 8505aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8506# Check for a 64-bit object if we didn't find anything. 8507if test -z "$aix_libpath"; then 8508 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8509fi 8510else 8511 $as_echo "$as_me: failed program was:" >&5 8512sed 's/^/| /' conftest.$ac_ext >&5 8513 8514 8515fi 8516 8517rm -rf conftest.dSYM 8518rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8519 conftest$ac_exeext conftest.$ac_ext 8520if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8521 8522 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8523 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" 8524 else 8525 if test "$host_cpu" = ia64; then 8526 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8527 allow_undefined_flag="-z nodefs" 8528 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" 8529 else 8530 # Determine the default libpath from the value encoded in an 8531 # empty executable. 8532 cat >conftest.$ac_ext <<_ACEOF 8533/* confdefs.h. */ 8534_ACEOF 8535cat confdefs.h >>conftest.$ac_ext 8536cat >>conftest.$ac_ext <<_ACEOF 8537/* end confdefs.h. */ 8538 8539int 8540main () 8541{ 8542 8543 ; 8544 return 0; 8545} 8546_ACEOF 8547rm -f conftest.$ac_objext conftest$ac_exeext 8548if { (ac_try="$ac_link" 8549case "(($ac_try" in 8550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8551 *) ac_try_echo=$ac_try;; 8552esac 8553eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8554$as_echo "$ac_try_echo") >&5 8555 (eval "$ac_link") 2>conftest.er1 8556 ac_status=$? 8557 grep -v '^ *+' conftest.er1 >conftest.err 8558 rm -f conftest.er1 8559 cat conftest.err >&5 8560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8561 (exit $ac_status); } && { 8562 test -z "$ac_c_werror_flag" || 8563 test ! -s conftest.err 8564 } && test -s conftest$ac_exeext && { 8565 test "$cross_compiling" = yes || 8566 $as_test_x conftest$ac_exeext 8567 }; then 8568 8569lt_aix_libpath_sed=' 8570 /Import File Strings/,/^$/ { 8571 /^0/ { 8572 s/^0 *\(.*\)$/\1/ 8573 p 8574 } 8575 }' 8576aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8577# Check for a 64-bit object if we didn't find anything. 8578if test -z "$aix_libpath"; then 8579 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8580fi 8581else 8582 $as_echo "$as_me: failed program was:" >&5 8583sed 's/^/| /' conftest.$ac_ext >&5 8584 8585 8586fi 8587 8588rm -rf conftest.dSYM 8589rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8590 conftest$ac_exeext conftest.$ac_ext 8591if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8592 8593 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8594 # Warning - without using the other run time loading flags, 8595 # -berok will link without error, but may produce a broken library. 8596 no_undefined_flag=' ${wl}-bernotok' 8597 allow_undefined_flag=' ${wl}-berok' 8598 # Exported symbols can be pulled into shared objects from archives 8599 whole_archive_flag_spec='$convenience' 8600 archive_cmds_need_lc=yes 8601 # This is similar to how AIX traditionally builds its shared libraries. 8602 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' 8603 fi 8604 fi 8605 ;; 8606 8607 amigaos*) 8608 case $host_cpu in 8609 powerpc) 8610 # see comment about AmigaOS4 .so support 8611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8612 archive_expsym_cmds='' 8613 ;; 8614 m68k) 8615 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)' 8616 hardcode_libdir_flag_spec='-L$libdir' 8617 hardcode_minus_L=yes 8618 ;; 8619 esac 8620 ;; 8621 8622 bsdi[45]*) 8623 export_dynamic_flag_spec=-rdynamic 8624 ;; 8625 8626 cygwin* | mingw* | pw32* | cegcc*) 8627 # When not using gcc, we currently assume that we are using 8628 # Microsoft Visual C++. 8629 # hardcode_libdir_flag_spec is actually meaningless, as there is 8630 # no search path for DLLs. 8631 hardcode_libdir_flag_spec=' ' 8632 allow_undefined_flag=unsupported 8633 # Tell ltmain to make .lib files, not .a files. 8634 libext=lib 8635 # Tell ltmain to make .dll files, not .so files. 8636 shrext_cmds=".dll" 8637 # FIXME: Setting linknames here is a bad hack. 8638 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8639 # The linker will automatically build a .lib file if we build a DLL. 8640 old_archive_from_new_cmds='true' 8641 # FIXME: Should let the user specify the lib program. 8642 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8643 fix_srcfile_path='`cygpath -w "$srcfile"`' 8644 enable_shared_with_static_runtimes=yes 8645 ;; 8646 8647 darwin* | rhapsody*) 8648 8649 8650 archive_cmds_need_lc=no 8651 hardcode_direct=no 8652 hardcode_automatic=yes 8653 hardcode_shlibpath_var=unsupported 8654 whole_archive_flag_spec='' 8655 link_all_deplibs=yes 8656 allow_undefined_flag="$_lt_dar_allow_undefined" 8657 case $cc_basename in 8658 ifort*) _lt_dar_can_shared=yes ;; 8659 *) _lt_dar_can_shared=$GCC ;; 8660 esac 8661 if test "$_lt_dar_can_shared" = "yes"; then 8662 output_verbose_link_cmd=echo 8663 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8664 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8665 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}" 8666 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}" 8667 8668 else 8669 ld_shlibs=no 8670 fi 8671 8672 ;; 8673 8674 dgux*) 8675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8676 hardcode_libdir_flag_spec='-L$libdir' 8677 hardcode_shlibpath_var=no 8678 ;; 8679 8680 freebsd1*) 8681 ld_shlibs=no 8682 ;; 8683 8684 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8685 # support. Future versions do this automatically, but an explicit c++rt0.o 8686 # does not break anything, and helps significantly (at the cost of a little 8687 # extra space). 8688 freebsd2.2*) 8689 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8690 hardcode_libdir_flag_spec='-R$libdir' 8691 hardcode_direct=yes 8692 hardcode_shlibpath_var=no 8693 ;; 8694 8695 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8696 freebsd2*) 8697 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8698 hardcode_direct=yes 8699 hardcode_minus_L=yes 8700 hardcode_shlibpath_var=no 8701 ;; 8702 8703 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8704 freebsd* | dragonfly*) 8705 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8706 hardcode_libdir_flag_spec='-R$libdir' 8707 hardcode_direct=yes 8708 hardcode_shlibpath_var=no 8709 ;; 8710 8711 hpux9*) 8712 if test "$GCC" = yes; then 8713 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' 8714 else 8715 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' 8716 fi 8717 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8718 hardcode_libdir_separator=: 8719 hardcode_direct=yes 8720 8721 # hardcode_minus_L: Not really in the search PATH, 8722 # but as the default location of the library. 8723 hardcode_minus_L=yes 8724 export_dynamic_flag_spec='${wl}-E' 8725 ;; 8726 8727 hpux10*) 8728 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8729 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8730 else 8731 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8732 fi 8733 if test "$with_gnu_ld" = no; then 8734 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8735 hardcode_libdir_flag_spec_ld='+b $libdir' 8736 hardcode_libdir_separator=: 8737 hardcode_direct=yes 8738 hardcode_direct_absolute=yes 8739 export_dynamic_flag_spec='${wl}-E' 8740 # hardcode_minus_L: Not really in the search PATH, 8741 # but as the default location of the library. 8742 hardcode_minus_L=yes 8743 fi 8744 ;; 8745 8746 hpux11*) 8747 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8748 case $host_cpu in 8749 hppa*64*) 8750 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8751 ;; 8752 ia64*) 8753 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8754 ;; 8755 *) 8756 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8757 ;; 8758 esac 8759 else 8760 case $host_cpu in 8761 hppa*64*) 8762 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8763 ;; 8764 ia64*) 8765 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8766 ;; 8767 *) 8768 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8769 ;; 8770 esac 8771 fi 8772 if test "$with_gnu_ld" = no; then 8773 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8774 hardcode_libdir_separator=: 8775 8776 case $host_cpu in 8777 hppa*64*|ia64*) 8778 hardcode_direct=no 8779 hardcode_shlibpath_var=no 8780 ;; 8781 *) 8782 hardcode_direct=yes 8783 hardcode_direct_absolute=yes 8784 export_dynamic_flag_spec='${wl}-E' 8785 8786 # hardcode_minus_L: Not really in the search PATH, 8787 # but as the default location of the library. 8788 hardcode_minus_L=yes 8789 ;; 8790 esac 8791 fi 8792 ;; 8793 8794 irix5* | irix6* | nonstopux*) 8795 if test "$GCC" = yes; then 8796 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' 8797 # Try to use the -exported_symbol ld option, if it does not 8798 # work, assume that -exports_file does not work either and 8799 # implicitly export all symbols. 8800 save_LDFLAGS="$LDFLAGS" 8801 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8802 cat >conftest.$ac_ext <<_ACEOF 8803int foo(void) {} 8804_ACEOF 8805rm -f conftest.$ac_objext conftest$ac_exeext 8806if { (ac_try="$ac_link" 8807case "(($ac_try" in 8808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8809 *) ac_try_echo=$ac_try;; 8810esac 8811eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8812$as_echo "$ac_try_echo") >&5 8813 (eval "$ac_link") 2>conftest.er1 8814 ac_status=$? 8815 grep -v '^ *+' conftest.er1 >conftest.err 8816 rm -f conftest.er1 8817 cat conftest.err >&5 8818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8819 (exit $ac_status); } && { 8820 test -z "$ac_c_werror_flag" || 8821 test ! -s conftest.err 8822 } && test -s conftest$ac_exeext && { 8823 test "$cross_compiling" = yes || 8824 $as_test_x conftest$ac_exeext 8825 }; then 8826 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' 8827 8828else 8829 $as_echo "$as_me: failed program was:" >&5 8830sed 's/^/| /' conftest.$ac_ext >&5 8831 8832 8833fi 8834 8835rm -rf conftest.dSYM 8836rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8837 conftest$ac_exeext conftest.$ac_ext 8838 LDFLAGS="$save_LDFLAGS" 8839 else 8840 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' 8841 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' 8842 fi 8843 archive_cmds_need_lc='no' 8844 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8845 hardcode_libdir_separator=: 8846 inherit_rpath=yes 8847 link_all_deplibs=yes 8848 ;; 8849 8850 netbsd*) 8851 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8852 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8853 else 8854 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8855 fi 8856 hardcode_libdir_flag_spec='-R$libdir' 8857 hardcode_direct=yes 8858 hardcode_shlibpath_var=no 8859 ;; 8860 8861 newsos6) 8862 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8863 hardcode_direct=yes 8864 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8865 hardcode_libdir_separator=: 8866 hardcode_shlibpath_var=no 8867 ;; 8868 8869 *nto* | *qnx*) 8870 ;; 8871 8872 openbsd*) 8873 if test -f /usr/libexec/ld.so; then 8874 hardcode_direct=yes 8875 hardcode_shlibpath_var=no 8876 hardcode_direct_absolute=yes 8877 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8878 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8879 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8880 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8881 export_dynamic_flag_spec='${wl}-E' 8882 else 8883 case $host_os in 8884 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8885 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8886 hardcode_libdir_flag_spec='-R$libdir' 8887 ;; 8888 *) 8889 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8890 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8891 ;; 8892 esac 8893 fi 8894 else 8895 ld_shlibs=no 8896 fi 8897 ;; 8898 8899 os2*) 8900 hardcode_libdir_flag_spec='-L$libdir' 8901 hardcode_minus_L=yes 8902 allow_undefined_flag=unsupported 8903 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' 8904 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8905 ;; 8906 8907 osf3*) 8908 if test "$GCC" = yes; then 8909 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8910 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' 8911 else 8912 allow_undefined_flag=' -expect_unresolved \*' 8913 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' 8914 fi 8915 archive_cmds_need_lc='no' 8916 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8917 hardcode_libdir_separator=: 8918 ;; 8919 8920 osf4* | osf5*) # as osf3* with the addition of -msym flag 8921 if test "$GCC" = yes; then 8922 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8923 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' 8924 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8925 else 8926 allow_undefined_flag=' -expect_unresolved \*' 8927 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' 8928 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~ 8929 $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' 8930 8931 # Both c and cxx compiler support -rpath directly 8932 hardcode_libdir_flag_spec='-rpath $libdir' 8933 fi 8934 archive_cmds_need_lc='no' 8935 hardcode_libdir_separator=: 8936 ;; 8937 8938 solaris*) 8939 no_undefined_flag=' -z defs' 8940 if test "$GCC" = yes; then 8941 wlarc='${wl}' 8942 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8943 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8944 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8945 else 8946 case `$CC -V 2>&1` in 8947 *"Compilers 5.0"*) 8948 wlarc='' 8949 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8950 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8951 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8952 ;; 8953 *) 8954 wlarc='${wl}' 8955 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8956 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8957 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8958 ;; 8959 esac 8960 fi 8961 hardcode_libdir_flag_spec='-R$libdir' 8962 hardcode_shlibpath_var=no 8963 case $host_os in 8964 solaris2.[0-5] | solaris2.[0-5].*) ;; 8965 *) 8966 # The compiler driver will combine and reorder linker options, 8967 # but understands `-z linker_flag'. GCC discards it without `$wl', 8968 # but is careful enough not to reorder. 8969 # Supported since Solaris 2.6 (maybe 2.5.1?) 8970 if test "$GCC" = yes; then 8971 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8972 else 8973 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8974 fi 8975 ;; 8976 esac 8977 link_all_deplibs=yes 8978 ;; 8979 8980 sunos4*) 8981 if test "x$host_vendor" = xsequent; then 8982 # Use $CC to link under sequent, because it throws in some extra .o 8983 # files that make .init and .fini sections work. 8984 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8985 else 8986 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8987 fi 8988 hardcode_libdir_flag_spec='-L$libdir' 8989 hardcode_direct=yes 8990 hardcode_minus_L=yes 8991 hardcode_shlibpath_var=no 8992 ;; 8993 8994 sysv4) 8995 case $host_vendor in 8996 sni) 8997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8998 hardcode_direct=yes # is this really true??? 8999 ;; 9000 siemens) 9001 ## LD is ld it makes a PLAMLIB 9002 ## CC just makes a GrossModule. 9003 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9004 reload_cmds='$CC -r -o $output$reload_objs' 9005 hardcode_direct=no 9006 ;; 9007 motorola) 9008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9009 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9010 ;; 9011 esac 9012 runpath_var='LD_RUN_PATH' 9013 hardcode_shlibpath_var=no 9014 ;; 9015 9016 sysv4.3*) 9017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9018 hardcode_shlibpath_var=no 9019 export_dynamic_flag_spec='-Bexport' 9020 ;; 9021 9022 sysv4*MP*) 9023 if test -d /usr/nec; then 9024 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9025 hardcode_shlibpath_var=no 9026 runpath_var=LD_RUN_PATH 9027 hardcode_runpath_var=yes 9028 ld_shlibs=yes 9029 fi 9030 ;; 9031 9032 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9033 no_undefined_flag='${wl}-z,text' 9034 archive_cmds_need_lc=no 9035 hardcode_shlibpath_var=no 9036 runpath_var='LD_RUN_PATH' 9037 9038 if test "$GCC" = yes; then 9039 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9040 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9041 else 9042 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9043 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9044 fi 9045 ;; 9046 9047 sysv5* | sco3.2v5* | sco5v6*) 9048 # Note: We can NOT use -z defs as we might desire, because we do not 9049 # link with -lc, and that would cause any symbols used from libc to 9050 # always be unresolved, which means just about no library would 9051 # ever link correctly. If we're not using GNU ld we use -z text 9052 # though, which does catch some bad symbols but isn't as heavy-handed 9053 # as -z defs. 9054 no_undefined_flag='${wl}-z,text' 9055 allow_undefined_flag='${wl}-z,nodefs' 9056 archive_cmds_need_lc=no 9057 hardcode_shlibpath_var=no 9058 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9059 hardcode_libdir_separator=':' 9060 link_all_deplibs=yes 9061 export_dynamic_flag_spec='${wl}-Bexport' 9062 runpath_var='LD_RUN_PATH' 9063 9064 if test "$GCC" = yes; then 9065 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9066 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9067 else 9068 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9069 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9070 fi 9071 ;; 9072 9073 uts4*) 9074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9075 hardcode_libdir_flag_spec='-L$libdir' 9076 hardcode_shlibpath_var=no 9077 ;; 9078 9079 *) 9080 ld_shlibs=no 9081 ;; 9082 esac 9083 9084 if test x$host_vendor = xsni; then 9085 case $host in 9086 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9087 export_dynamic_flag_spec='${wl}-Blargedynsym' 9088 ;; 9089 esac 9090 fi 9091 fi 9092 9093{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9094$as_echo "$ld_shlibs" >&6; } 9095test "$ld_shlibs" = no && can_build_shared=no 9096 9097with_gnu_ld=$with_gnu_ld 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113# 9114# Do we need to explicitly link libc? 9115# 9116case "x$archive_cmds_need_lc" in 9117x|xyes) 9118 # Assume -lc should be added 9119 archive_cmds_need_lc=yes 9120 9121 if test "$enable_shared" = yes && test "$GCC" = yes; then 9122 case $archive_cmds in 9123 *'~'*) 9124 # FIXME: we may have to deal with multi-command sequences. 9125 ;; 9126 '$CC '*) 9127 # Test whether the compiler implicitly links with -lc since on some 9128 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9129 # to ld, don't add -lc before -lgcc. 9130 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9131$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9132 $RM conftest* 9133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9134 9135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9136 (eval $ac_compile) 2>&5 9137 ac_status=$? 9138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9139 (exit $ac_status); } 2>conftest.err; then 9140 soname=conftest 9141 lib=conftest 9142 libobjs=conftest.$ac_objext 9143 deplibs= 9144 wl=$lt_prog_compiler_wl 9145 pic_flag=$lt_prog_compiler_pic 9146 compiler_flags=-v 9147 linker_flags=-v 9148 verstring= 9149 output_objdir=. 9150 libname=conftest 9151 lt_save_allow_undefined_flag=$allow_undefined_flag 9152 allow_undefined_flag= 9153 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9154 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9155 ac_status=$? 9156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9157 (exit $ac_status); } 9158 then 9159 archive_cmds_need_lc=no 9160 else 9161 archive_cmds_need_lc=yes 9162 fi 9163 allow_undefined_flag=$lt_save_allow_undefined_flag 9164 else 9165 cat conftest.err 1>&5 9166 fi 9167 $RM conftest* 9168 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9169$as_echo "$archive_cmds_need_lc" >&6; } 9170 ;; 9171 esac 9172 fi 9173 ;; 9174esac 9175 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 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9333$as_echo_n "checking dynamic linker characteristics... " >&6; } 9334 9335if test "$GCC" = yes; then 9336 case $host_os in 9337 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9338 *) lt_awk_arg="/^libraries:/" ;; 9339 esac 9340 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9341 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9342 # if the path contains ";" then we assume it to be the separator 9343 # otherwise default to the standard path separator (i.e. ":") - it is 9344 # assumed that no part of a normal pathname contains ";" but that should 9345 # okay in the real world where ";" in dirpaths is itself problematic. 9346 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9347 else 9348 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9349 fi 9350 # Ok, now we have the path, separated by spaces, we can step through it 9351 # and add multilib dir if necessary. 9352 lt_tmp_lt_search_path_spec= 9353 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9354 for lt_sys_path in $lt_search_path_spec; do 9355 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9356 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9357 else 9358 test -d "$lt_sys_path" && \ 9359 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9360 fi 9361 done 9362 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9363BEGIN {RS=" "; FS="/|\n";} { 9364 lt_foo=""; 9365 lt_count=0; 9366 for (lt_i = NF; lt_i > 0; lt_i--) { 9367 if ($lt_i != "" && $lt_i != ".") { 9368 if ($lt_i == "..") { 9369 lt_count++; 9370 } else { 9371 if (lt_count == 0) { 9372 lt_foo="/" $lt_i lt_foo; 9373 } else { 9374 lt_count--; 9375 } 9376 } 9377 } 9378 } 9379 if (lt_foo != "") { lt_freq[lt_foo]++; } 9380 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9381}'` 9382 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9383else 9384 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9385fi 9386library_names_spec= 9387libname_spec='lib$name' 9388soname_spec= 9389shrext_cmds=".so" 9390postinstall_cmds= 9391postuninstall_cmds= 9392finish_cmds= 9393finish_eval= 9394shlibpath_var= 9395shlibpath_overrides_runpath=unknown 9396version_type=none 9397dynamic_linker="$host_os ld.so" 9398sys_lib_dlsearch_path_spec="/lib /usr/lib" 9399need_lib_prefix=unknown 9400hardcode_into_libs=no 9401 9402# when you set need_version to no, make sure it does not cause -set_version 9403# flags to be left without arguments 9404need_version=unknown 9405 9406case $host_os in 9407aix3*) 9408 version_type=linux 9409 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9410 shlibpath_var=LIBPATH 9411 9412 # AIX 3 has no versioning support, so we append a major version to the name. 9413 soname_spec='${libname}${release}${shared_ext}$major' 9414 ;; 9415 9416aix[4-9]*) 9417 version_type=linux 9418 need_lib_prefix=no 9419 need_version=no 9420 hardcode_into_libs=yes 9421 if test "$host_cpu" = ia64; then 9422 # AIX 5 supports IA64 9423 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9424 shlibpath_var=LD_LIBRARY_PATH 9425 else 9426 # With GCC up to 2.95.x, collect2 would create an import file 9427 # for dependence libraries. The import file would start with 9428 # the line `#! .'. This would cause the generated library to 9429 # depend on `.', always an invalid library. This was fixed in 9430 # development snapshots of GCC prior to 3.0. 9431 case $host_os in 9432 aix4 | aix4.[01] | aix4.[01].*) 9433 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9434 echo ' yes ' 9435 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9436 : 9437 else 9438 can_build_shared=no 9439 fi 9440 ;; 9441 esac 9442 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9443 # soname into executable. Probably we can add versioning support to 9444 # collect2, so additional links can be useful in future. 9445 if test "$aix_use_runtimelinking" = yes; then 9446 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9447 # instead of lib<name>.a to let people know that these are not 9448 # typical AIX shared libraries. 9449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9450 else 9451 # We preserve .a as extension for shared libraries through AIX4.2 9452 # and later when we are not doing run time linking. 9453 library_names_spec='${libname}${release}.a $libname.a' 9454 soname_spec='${libname}${release}${shared_ext}$major' 9455 fi 9456 shlibpath_var=LIBPATH 9457 fi 9458 ;; 9459 9460amigaos*) 9461 case $host_cpu in 9462 powerpc) 9463 # Since July 2007 AmigaOS4 officially supports .so libraries. 9464 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9466 ;; 9467 m68k) 9468 library_names_spec='$libname.ixlibrary $libname.a' 9469 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9470 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' 9471 ;; 9472 esac 9473 ;; 9474 9475beos*) 9476 library_names_spec='${libname}${shared_ext}' 9477 dynamic_linker="$host_os ld.so" 9478 shlibpath_var=LIBRARY_PATH 9479 ;; 9480 9481bsdi[45]*) 9482 version_type=linux 9483 need_version=no 9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9485 soname_spec='${libname}${release}${shared_ext}$major' 9486 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9487 shlibpath_var=LD_LIBRARY_PATH 9488 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9489 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9490 # the default ld.so.conf also contains /usr/contrib/lib and 9491 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9492 # libtool to hard-code these into programs 9493 ;; 9494 9495cygwin* | mingw* | pw32* | cegcc*) 9496 version_type=windows 9497 shrext_cmds=".dll" 9498 need_version=no 9499 need_lib_prefix=no 9500 9501 case $GCC,$host_os in 9502 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9503 library_names_spec='$libname.dll.a' 9504 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9505 postinstall_cmds='base_file=`basename \${file}`~ 9506 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9507 dldir=$destdir/`dirname \$dlpath`~ 9508 test -d \$dldir || mkdir -p \$dldir~ 9509 $install_prog $dir/$dlname \$dldir/$dlname~ 9510 chmod a+x \$dldir/$dlname~ 9511 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9512 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9513 fi' 9514 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9515 dlpath=$dir/\$dldll~ 9516 $RM \$dlpath' 9517 shlibpath_overrides_runpath=yes 9518 9519 case $host_os in 9520 cygwin*) 9521 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9522 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9523 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9524 ;; 9525 mingw* | cegcc*) 9526 # MinGW DLLs use traditional 'lib' prefix 9527 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9528 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9529 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9530 # It is most probably a Windows format PATH printed by 9531 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9532 # path with ; separators, and with drive letters. We can handle the 9533 # drive letters (cygwin fileutils understands them), so leave them, 9534 # especially as we might pass files found there to a mingw objdump, 9535 # which wouldn't understand a cygwinified path. Ahh. 9536 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9537 else 9538 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9539 fi 9540 ;; 9541 pw32*) 9542 # pw32 DLLs use 'pw' prefix rather than 'lib' 9543 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9544 ;; 9545 esac 9546 ;; 9547 9548 *) 9549 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9550 ;; 9551 esac 9552 dynamic_linker='Win32 ld.exe' 9553 # FIXME: first we should search . and the directory the executable is in 9554 shlibpath_var=PATH 9555 ;; 9556 9557darwin* | rhapsody*) 9558 dynamic_linker="$host_os dyld" 9559 version_type=darwin 9560 need_lib_prefix=no 9561 need_version=no 9562 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9563 soname_spec='${libname}${release}${major}$shared_ext' 9564 shlibpath_overrides_runpath=yes 9565 shlibpath_var=DYLD_LIBRARY_PATH 9566 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9567 9568 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9569 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9570 ;; 9571 9572dgux*) 9573 version_type=linux 9574 need_lib_prefix=no 9575 need_version=no 9576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9577 soname_spec='${libname}${release}${shared_ext}$major' 9578 shlibpath_var=LD_LIBRARY_PATH 9579 ;; 9580 9581freebsd1*) 9582 dynamic_linker=no 9583 ;; 9584 9585freebsd* | dragonfly*) 9586 # DragonFly does not have aout. When/if they implement a new 9587 # versioning mechanism, adjust this. 9588 if test -x /usr/bin/objformat; then 9589 objformat=`/usr/bin/objformat` 9590 else 9591 case $host_os in 9592 freebsd[123]*) objformat=aout ;; 9593 *) objformat=elf ;; 9594 esac 9595 fi 9596 version_type=freebsd-$objformat 9597 case $version_type in 9598 freebsd-elf*) 9599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9600 need_version=no 9601 need_lib_prefix=no 9602 ;; 9603 freebsd-*) 9604 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9605 need_version=yes 9606 ;; 9607 esac 9608 shlibpath_var=LD_LIBRARY_PATH 9609 case $host_os in 9610 freebsd2*) 9611 shlibpath_overrides_runpath=yes 9612 ;; 9613 freebsd3.[01]* | freebsdelf3.[01]*) 9614 shlibpath_overrides_runpath=yes 9615 hardcode_into_libs=yes 9616 ;; 9617 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9618 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9619 shlibpath_overrides_runpath=no 9620 hardcode_into_libs=yes 9621 ;; 9622 *) # from 4.6 on, and DragonFly 9623 shlibpath_overrides_runpath=yes 9624 hardcode_into_libs=yes 9625 ;; 9626 esac 9627 ;; 9628 9629gnu*) 9630 version_type=linux 9631 need_lib_prefix=no 9632 need_version=no 9633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9634 soname_spec='${libname}${release}${shared_ext}$major' 9635 shlibpath_var=LD_LIBRARY_PATH 9636 hardcode_into_libs=yes 9637 ;; 9638 9639hpux9* | hpux10* | hpux11*) 9640 # Give a soname corresponding to the major version so that dld.sl refuses to 9641 # link against other versions. 9642 version_type=sunos 9643 need_lib_prefix=no 9644 need_version=no 9645 case $host_cpu in 9646 ia64*) 9647 shrext_cmds='.so' 9648 hardcode_into_libs=yes 9649 dynamic_linker="$host_os dld.so" 9650 shlibpath_var=LD_LIBRARY_PATH 9651 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9653 soname_spec='${libname}${release}${shared_ext}$major' 9654 if test "X$HPUX_IA64_MODE" = X32; then 9655 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9656 else 9657 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9658 fi 9659 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9660 ;; 9661 hppa*64*) 9662 shrext_cmds='.sl' 9663 hardcode_into_libs=yes 9664 dynamic_linker="$host_os dld.sl" 9665 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9666 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9668 soname_spec='${libname}${release}${shared_ext}$major' 9669 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9670 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9671 ;; 9672 *) 9673 shrext_cmds='.sl' 9674 dynamic_linker="$host_os dld.sl" 9675 shlibpath_var=SHLIB_PATH 9676 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9678 soname_spec='${libname}${release}${shared_ext}$major' 9679 ;; 9680 esac 9681 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9682 postinstall_cmds='chmod 555 $lib' 9683 ;; 9684 9685interix[3-9]*) 9686 version_type=linux 9687 need_lib_prefix=no 9688 need_version=no 9689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9690 soname_spec='${libname}${release}${shared_ext}$major' 9691 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9692 shlibpath_var=LD_LIBRARY_PATH 9693 shlibpath_overrides_runpath=no 9694 hardcode_into_libs=yes 9695 ;; 9696 9697irix5* | irix6* | nonstopux*) 9698 case $host_os in 9699 nonstopux*) version_type=nonstopux ;; 9700 *) 9701 if test "$lt_cv_prog_gnu_ld" = yes; then 9702 version_type=linux 9703 else 9704 version_type=irix 9705 fi ;; 9706 esac 9707 need_lib_prefix=no 9708 need_version=no 9709 soname_spec='${libname}${release}${shared_ext}$major' 9710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9711 case $host_os in 9712 irix5* | nonstopux*) 9713 libsuff= shlibsuff= 9714 ;; 9715 *) 9716 case $LD in # libtool.m4 will add one of these switches to LD 9717 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9718 libsuff= shlibsuff= libmagic=32-bit;; 9719 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9720 libsuff=32 shlibsuff=N32 libmagic=N32;; 9721 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9722 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9723 *) libsuff= shlibsuff= libmagic=never-match;; 9724 esac 9725 ;; 9726 esac 9727 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9728 shlibpath_overrides_runpath=no 9729 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9730 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9731 hardcode_into_libs=yes 9732 ;; 9733 9734# No shared lib support for Linux oldld, aout, or coff. 9735linux*oldld* | linux*aout* | linux*coff*) 9736 dynamic_linker=no 9737 ;; 9738 9739# This must be Linux ELF. 9740linux* | k*bsd*-gnu) 9741 version_type=linux 9742 need_lib_prefix=no 9743 need_version=no 9744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9745 soname_spec='${libname}${release}${shared_ext}$major' 9746 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9747 shlibpath_var=LD_LIBRARY_PATH 9748 shlibpath_overrides_runpath=no 9749 # Some binutils ld are patched to set DT_RUNPATH 9750 save_LDFLAGS=$LDFLAGS 9751 save_libdir=$libdir 9752 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9753 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9754 cat >conftest.$ac_ext <<_ACEOF 9755/* confdefs.h. */ 9756_ACEOF 9757cat confdefs.h >>conftest.$ac_ext 9758cat >>conftest.$ac_ext <<_ACEOF 9759/* end confdefs.h. */ 9760 9761int 9762main () 9763{ 9764 9765 ; 9766 return 0; 9767} 9768_ACEOF 9769rm -f conftest.$ac_objext conftest$ac_exeext 9770if { (ac_try="$ac_link" 9771case "(($ac_try" in 9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9773 *) ac_try_echo=$ac_try;; 9774esac 9775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9776$as_echo "$ac_try_echo") >&5 9777 (eval "$ac_link") 2>conftest.er1 9778 ac_status=$? 9779 grep -v '^ *+' conftest.er1 >conftest.err 9780 rm -f conftest.er1 9781 cat conftest.err >&5 9782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9783 (exit $ac_status); } && { 9784 test -z "$ac_c_werror_flag" || 9785 test ! -s conftest.err 9786 } && test -s conftest$ac_exeext && { 9787 test "$cross_compiling" = yes || 9788 $as_test_x conftest$ac_exeext 9789 }; then 9790 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9791 shlibpath_overrides_runpath=yes 9792fi 9793 9794else 9795 $as_echo "$as_me: failed program was:" >&5 9796sed 's/^/| /' conftest.$ac_ext >&5 9797 9798 9799fi 9800 9801rm -rf conftest.dSYM 9802rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9803 conftest$ac_exeext conftest.$ac_ext 9804 LDFLAGS=$save_LDFLAGS 9805 libdir=$save_libdir 9806 9807 # This implies no fast_install, which is unacceptable. 9808 # Some rework will be needed to allow for fast_install 9809 # before this can be enabled. 9810 hardcode_into_libs=yes 9811 9812 # Add ABI-specific directories to the system library path. 9813 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 9814 9815 # Append ld.so.conf contents to the search path 9816 if test -f /etc/ld.so.conf; then 9817 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' ' '` 9818 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9819 fi 9820 9821 # We used to test for /lib/ld.so.1 and disable shared libraries on 9822 # powerpc, because MkLinux only supported shared libraries with the 9823 # GNU dynamic linker. Since this was broken with cross compilers, 9824 # most powerpc-linux boxes support dynamic linking these days and 9825 # people can always --disable-shared, the test was removed, and we 9826 # assume the GNU/Linux dynamic linker is in use. 9827 dynamic_linker='GNU/Linux ld.so' 9828 ;; 9829 9830netbsd*) 9831 version_type=sunos 9832 need_lib_prefix=no 9833 need_version=no 9834 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9837 dynamic_linker='NetBSD (a.out) ld.so' 9838 else 9839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9840 soname_spec='${libname}${release}${shared_ext}$major' 9841 dynamic_linker='NetBSD ld.elf_so' 9842 fi 9843 shlibpath_var=LD_LIBRARY_PATH 9844 shlibpath_overrides_runpath=yes 9845 hardcode_into_libs=yes 9846 ;; 9847 9848newsos6) 9849 version_type=linux 9850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9851 shlibpath_var=LD_LIBRARY_PATH 9852 shlibpath_overrides_runpath=yes 9853 ;; 9854 9855*nto* | *qnx*) 9856 version_type=qnx 9857 need_lib_prefix=no 9858 need_version=no 9859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9860 soname_spec='${libname}${release}${shared_ext}$major' 9861 shlibpath_var=LD_LIBRARY_PATH 9862 shlibpath_overrides_runpath=no 9863 hardcode_into_libs=yes 9864 dynamic_linker='ldqnx.so' 9865 ;; 9866 9867openbsd*) 9868 version_type=sunos 9869 sys_lib_dlsearch_path_spec="/usr/lib" 9870 need_lib_prefix=no 9871 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9872 case $host_os in 9873 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9874 *) need_version=no ;; 9875 esac 9876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9878 shlibpath_var=LD_LIBRARY_PATH 9879 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9880 case $host_os in 9881 openbsd2.[89] | openbsd2.[89].*) 9882 shlibpath_overrides_runpath=no 9883 ;; 9884 *) 9885 shlibpath_overrides_runpath=yes 9886 ;; 9887 esac 9888 else 9889 shlibpath_overrides_runpath=yes 9890 fi 9891 ;; 9892 9893os2*) 9894 libname_spec='$name' 9895 shrext_cmds=".dll" 9896 need_lib_prefix=no 9897 library_names_spec='$libname${shared_ext} $libname.a' 9898 dynamic_linker='OS/2 ld.exe' 9899 shlibpath_var=LIBPATH 9900 ;; 9901 9902osf3* | osf4* | osf5*) 9903 version_type=osf 9904 need_lib_prefix=no 9905 need_version=no 9906 soname_spec='${libname}${release}${shared_ext}$major' 9907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9908 shlibpath_var=LD_LIBRARY_PATH 9909 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9910 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9911 ;; 9912 9913rdos*) 9914 dynamic_linker=no 9915 ;; 9916 9917solaris*) 9918 version_type=linux 9919 need_lib_prefix=no 9920 need_version=no 9921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9922 soname_spec='${libname}${release}${shared_ext}$major' 9923 shlibpath_var=LD_LIBRARY_PATH 9924 shlibpath_overrides_runpath=yes 9925 hardcode_into_libs=yes 9926 # ldd complains unless libraries are executable 9927 postinstall_cmds='chmod +x $lib' 9928 ;; 9929 9930sunos4*) 9931 version_type=sunos 9932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9933 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9934 shlibpath_var=LD_LIBRARY_PATH 9935 shlibpath_overrides_runpath=yes 9936 if test "$with_gnu_ld" = yes; then 9937 need_lib_prefix=no 9938 fi 9939 need_version=yes 9940 ;; 9941 9942sysv4 | sysv4.3*) 9943 version_type=linux 9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9945 soname_spec='${libname}${release}${shared_ext}$major' 9946 shlibpath_var=LD_LIBRARY_PATH 9947 case $host_vendor in 9948 sni) 9949 shlibpath_overrides_runpath=no 9950 need_lib_prefix=no 9951 runpath_var=LD_RUN_PATH 9952 ;; 9953 siemens) 9954 need_lib_prefix=no 9955 ;; 9956 motorola) 9957 need_lib_prefix=no 9958 need_version=no 9959 shlibpath_overrides_runpath=no 9960 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9961 ;; 9962 esac 9963 ;; 9964 9965sysv4*MP*) 9966 if test -d /usr/nec ;then 9967 version_type=linux 9968 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9969 soname_spec='$libname${shared_ext}.$major' 9970 shlibpath_var=LD_LIBRARY_PATH 9971 fi 9972 ;; 9973 9974sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9975 version_type=freebsd-elf 9976 need_lib_prefix=no 9977 need_version=no 9978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9979 soname_spec='${libname}${release}${shared_ext}$major' 9980 shlibpath_var=LD_LIBRARY_PATH 9981 shlibpath_overrides_runpath=yes 9982 hardcode_into_libs=yes 9983 if test "$with_gnu_ld" = yes; then 9984 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9985 else 9986 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9987 case $host_os in 9988 sco3.2v5*) 9989 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9990 ;; 9991 esac 9992 fi 9993 sys_lib_dlsearch_path_spec='/usr/lib' 9994 ;; 9995 9996tpf*) 9997 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9998 version_type=linux 9999 need_lib_prefix=no 10000 need_version=no 10001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10002 shlibpath_var=LD_LIBRARY_PATH 10003 shlibpath_overrides_runpath=no 10004 hardcode_into_libs=yes 10005 ;; 10006 10007uts4*) 10008 version_type=linux 10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10010 soname_spec='${libname}${release}${shared_ext}$major' 10011 shlibpath_var=LD_LIBRARY_PATH 10012 ;; 10013 10014*) 10015 dynamic_linker=no 10016 ;; 10017esac 10018{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10019$as_echo "$dynamic_linker" >&6; } 10020test "$dynamic_linker" = no && can_build_shared=no 10021 10022variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10023if test "$GCC" = yes; then 10024 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10025fi 10026 10027if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10028 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10029fi 10030if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10031 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10032fi 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10121$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10122hardcode_action= 10123if test -n "$hardcode_libdir_flag_spec" || 10124 test -n "$runpath_var" || 10125 test "X$hardcode_automatic" = "Xyes" ; then 10126 10127 # We can hardcode non-existent directories. 10128 if test "$hardcode_direct" != no && 10129 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10130 # have to relink, otherwise we might link with an installed library 10131 # when we should be linking with a yet-to-be-installed one 10132 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10133 test "$hardcode_minus_L" != no; then 10134 # Linking always hardcodes the temporary library directory. 10135 hardcode_action=relink 10136 else 10137 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10138 hardcode_action=immediate 10139 fi 10140else 10141 # We cannot hardcode anything, or else we can only hardcode existing 10142 # directories. 10143 hardcode_action=unsupported 10144fi 10145{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10146$as_echo "$hardcode_action" >&6; } 10147 10148if test "$hardcode_action" = relink || 10149 test "$inherit_rpath" = yes; then 10150 # Fast installation is not supported 10151 enable_fast_install=no 10152elif test "$shlibpath_overrides_runpath" = yes || 10153 test "$enable_shared" = no; then 10154 # Fast installation is not necessary 10155 enable_fast_install=needless 10156fi 10157 10158 10159 10160 10161 10162 10163 if test "x$enable_dlopen" != xyes; then 10164 enable_dlopen=unknown 10165 enable_dlopen_self=unknown 10166 enable_dlopen_self_static=unknown 10167else 10168 lt_cv_dlopen=no 10169 lt_cv_dlopen_libs= 10170 10171 case $host_os in 10172 beos*) 10173 lt_cv_dlopen="load_add_on" 10174 lt_cv_dlopen_libs= 10175 lt_cv_dlopen_self=yes 10176 ;; 10177 10178 mingw* | pw32* | cegcc*) 10179 lt_cv_dlopen="LoadLibrary" 10180 lt_cv_dlopen_libs= 10181 ;; 10182 10183 cygwin*) 10184 lt_cv_dlopen="dlopen" 10185 lt_cv_dlopen_libs= 10186 ;; 10187 10188 darwin*) 10189 # if libdl is installed we need to link against it 10190 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10191$as_echo_n "checking for dlopen in -ldl... " >&6; } 10192if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10193 $as_echo_n "(cached) " >&6 10194else 10195 ac_check_lib_save_LIBS=$LIBS 10196LIBS="-ldl $LIBS" 10197cat >conftest.$ac_ext <<_ACEOF 10198/* confdefs.h. */ 10199_ACEOF 10200cat confdefs.h >>conftest.$ac_ext 10201cat >>conftest.$ac_ext <<_ACEOF 10202/* end confdefs.h. */ 10203 10204/* Override any GCC internal prototype to avoid an error. 10205 Use char because int might match the return type of a GCC 10206 builtin and then its argument prototype would still apply. */ 10207#ifdef __cplusplus 10208extern "C" 10209#endif 10210char dlopen (); 10211int 10212main () 10213{ 10214return dlopen (); 10215 ; 10216 return 0; 10217} 10218_ACEOF 10219rm -f conftest.$ac_objext conftest$ac_exeext 10220if { (ac_try="$ac_link" 10221case "(($ac_try" in 10222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10223 *) ac_try_echo=$ac_try;; 10224esac 10225eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10226$as_echo "$ac_try_echo") >&5 10227 (eval "$ac_link") 2>conftest.er1 10228 ac_status=$? 10229 grep -v '^ *+' conftest.er1 >conftest.err 10230 rm -f conftest.er1 10231 cat conftest.err >&5 10232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10233 (exit $ac_status); } && { 10234 test -z "$ac_c_werror_flag" || 10235 test ! -s conftest.err 10236 } && test -s conftest$ac_exeext && { 10237 test "$cross_compiling" = yes || 10238 $as_test_x conftest$ac_exeext 10239 }; then 10240 ac_cv_lib_dl_dlopen=yes 10241else 10242 $as_echo "$as_me: failed program was:" >&5 10243sed 's/^/| /' conftest.$ac_ext >&5 10244 10245 ac_cv_lib_dl_dlopen=no 10246fi 10247 10248rm -rf conftest.dSYM 10249rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10250 conftest$ac_exeext conftest.$ac_ext 10251LIBS=$ac_check_lib_save_LIBS 10252fi 10253{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10254$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10255if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10256 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10257else 10258 10259 lt_cv_dlopen="dyld" 10260 lt_cv_dlopen_libs= 10261 lt_cv_dlopen_self=yes 10262 10263fi 10264 10265 ;; 10266 10267 *) 10268 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 10269$as_echo_n "checking for shl_load... " >&6; } 10270if test "${ac_cv_func_shl_load+set}" = set; then 10271 $as_echo_n "(cached) " >&6 10272else 10273 cat >conftest.$ac_ext <<_ACEOF 10274/* confdefs.h. */ 10275_ACEOF 10276cat confdefs.h >>conftest.$ac_ext 10277cat >>conftest.$ac_ext <<_ACEOF 10278/* end confdefs.h. */ 10279/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10280 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10281#define shl_load innocuous_shl_load 10282 10283/* System header to define __stub macros and hopefully few prototypes, 10284 which can conflict with char shl_load (); below. 10285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10286 <limits.h> exists even on freestanding compilers. */ 10287 10288#ifdef __STDC__ 10289# include <limits.h> 10290#else 10291# include <assert.h> 10292#endif 10293 10294#undef shl_load 10295 10296/* Override any GCC internal prototype to avoid an error. 10297 Use char because int might match the return type of a GCC 10298 builtin and then its argument prototype would still apply. */ 10299#ifdef __cplusplus 10300extern "C" 10301#endif 10302char shl_load (); 10303/* The GNU C library defines this for functions which it implements 10304 to always fail with ENOSYS. Some functions are actually named 10305 something starting with __ and the normal name is an alias. */ 10306#if defined __stub_shl_load || defined __stub___shl_load 10307choke me 10308#endif 10309 10310int 10311main () 10312{ 10313return shl_load (); 10314 ; 10315 return 0; 10316} 10317_ACEOF 10318rm -f conftest.$ac_objext conftest$ac_exeext 10319if { (ac_try="$ac_link" 10320case "(($ac_try" in 10321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10322 *) ac_try_echo=$ac_try;; 10323esac 10324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10325$as_echo "$ac_try_echo") >&5 10326 (eval "$ac_link") 2>conftest.er1 10327 ac_status=$? 10328 grep -v '^ *+' conftest.er1 >conftest.err 10329 rm -f conftest.er1 10330 cat conftest.err >&5 10331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10332 (exit $ac_status); } && { 10333 test -z "$ac_c_werror_flag" || 10334 test ! -s conftest.err 10335 } && test -s conftest$ac_exeext && { 10336 test "$cross_compiling" = yes || 10337 $as_test_x conftest$ac_exeext 10338 }; then 10339 ac_cv_func_shl_load=yes 10340else 10341 $as_echo "$as_me: failed program was:" >&5 10342sed 's/^/| /' conftest.$ac_ext >&5 10343 10344 ac_cv_func_shl_load=no 10345fi 10346 10347rm -rf conftest.dSYM 10348rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10349 conftest$ac_exeext conftest.$ac_ext 10350fi 10351{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10352$as_echo "$ac_cv_func_shl_load" >&6; } 10353if test "x$ac_cv_func_shl_load" = x""yes; then 10354 lt_cv_dlopen="shl_load" 10355else 10356 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10357$as_echo_n "checking for shl_load in -ldld... " >&6; } 10358if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10359 $as_echo_n "(cached) " >&6 10360else 10361 ac_check_lib_save_LIBS=$LIBS 10362LIBS="-ldld $LIBS" 10363cat >conftest.$ac_ext <<_ACEOF 10364/* confdefs.h. */ 10365_ACEOF 10366cat confdefs.h >>conftest.$ac_ext 10367cat >>conftest.$ac_ext <<_ACEOF 10368/* end confdefs.h. */ 10369 10370/* Override any GCC internal prototype to avoid an error. 10371 Use char because int might match the return type of a GCC 10372 builtin and then its argument prototype would still apply. */ 10373#ifdef __cplusplus 10374extern "C" 10375#endif 10376char shl_load (); 10377int 10378main () 10379{ 10380return shl_load (); 10381 ; 10382 return 0; 10383} 10384_ACEOF 10385rm -f conftest.$ac_objext conftest$ac_exeext 10386if { (ac_try="$ac_link" 10387case "(($ac_try" in 10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10389 *) ac_try_echo=$ac_try;; 10390esac 10391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10392$as_echo "$ac_try_echo") >&5 10393 (eval "$ac_link") 2>conftest.er1 10394 ac_status=$? 10395 grep -v '^ *+' conftest.er1 >conftest.err 10396 rm -f conftest.er1 10397 cat conftest.err >&5 10398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10399 (exit $ac_status); } && { 10400 test -z "$ac_c_werror_flag" || 10401 test ! -s conftest.err 10402 } && test -s conftest$ac_exeext && { 10403 test "$cross_compiling" = yes || 10404 $as_test_x conftest$ac_exeext 10405 }; then 10406 ac_cv_lib_dld_shl_load=yes 10407else 10408 $as_echo "$as_me: failed program was:" >&5 10409sed 's/^/| /' conftest.$ac_ext >&5 10410 10411 ac_cv_lib_dld_shl_load=no 10412fi 10413 10414rm -rf conftest.dSYM 10415rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10416 conftest$ac_exeext conftest.$ac_ext 10417LIBS=$ac_check_lib_save_LIBS 10418fi 10419{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10420$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10421if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10422 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10423else 10424 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10425$as_echo_n "checking for dlopen... " >&6; } 10426if test "${ac_cv_func_dlopen+set}" = set; then 10427 $as_echo_n "(cached) " >&6 10428else 10429 cat >conftest.$ac_ext <<_ACEOF 10430/* confdefs.h. */ 10431_ACEOF 10432cat confdefs.h >>conftest.$ac_ext 10433cat >>conftest.$ac_ext <<_ACEOF 10434/* end confdefs.h. */ 10435/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10436 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10437#define dlopen innocuous_dlopen 10438 10439/* System header to define __stub macros and hopefully few prototypes, 10440 which can conflict with char dlopen (); below. 10441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10442 <limits.h> exists even on freestanding compilers. */ 10443 10444#ifdef __STDC__ 10445# include <limits.h> 10446#else 10447# include <assert.h> 10448#endif 10449 10450#undef dlopen 10451 10452/* Override any GCC internal prototype to avoid an error. 10453 Use char because int might match the return type of a GCC 10454 builtin and then its argument prototype would still apply. */ 10455#ifdef __cplusplus 10456extern "C" 10457#endif 10458char dlopen (); 10459/* The GNU C library defines this for functions which it implements 10460 to always fail with ENOSYS. Some functions are actually named 10461 something starting with __ and the normal name is an alias. */ 10462#if defined __stub_dlopen || defined __stub___dlopen 10463choke me 10464#endif 10465 10466int 10467main () 10468{ 10469return dlopen (); 10470 ; 10471 return 0; 10472} 10473_ACEOF 10474rm -f conftest.$ac_objext conftest$ac_exeext 10475if { (ac_try="$ac_link" 10476case "(($ac_try" in 10477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10478 *) ac_try_echo=$ac_try;; 10479esac 10480eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10481$as_echo "$ac_try_echo") >&5 10482 (eval "$ac_link") 2>conftest.er1 10483 ac_status=$? 10484 grep -v '^ *+' conftest.er1 >conftest.err 10485 rm -f conftest.er1 10486 cat conftest.err >&5 10487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10488 (exit $ac_status); } && { 10489 test -z "$ac_c_werror_flag" || 10490 test ! -s conftest.err 10491 } && test -s conftest$ac_exeext && { 10492 test "$cross_compiling" = yes || 10493 $as_test_x conftest$ac_exeext 10494 }; then 10495 ac_cv_func_dlopen=yes 10496else 10497 $as_echo "$as_me: failed program was:" >&5 10498sed 's/^/| /' conftest.$ac_ext >&5 10499 10500 ac_cv_func_dlopen=no 10501fi 10502 10503rm -rf conftest.dSYM 10504rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10505 conftest$ac_exeext conftest.$ac_ext 10506fi 10507{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10508$as_echo "$ac_cv_func_dlopen" >&6; } 10509if test "x$ac_cv_func_dlopen" = x""yes; then 10510 lt_cv_dlopen="dlopen" 10511else 10512 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10513$as_echo_n "checking for dlopen in -ldl... " >&6; } 10514if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10515 $as_echo_n "(cached) " >&6 10516else 10517 ac_check_lib_save_LIBS=$LIBS 10518LIBS="-ldl $LIBS" 10519cat >conftest.$ac_ext <<_ACEOF 10520/* confdefs.h. */ 10521_ACEOF 10522cat confdefs.h >>conftest.$ac_ext 10523cat >>conftest.$ac_ext <<_ACEOF 10524/* end confdefs.h. */ 10525 10526/* Override any GCC internal prototype to avoid an error. 10527 Use char because int might match the return type of a GCC 10528 builtin and then its argument prototype would still apply. */ 10529#ifdef __cplusplus 10530extern "C" 10531#endif 10532char dlopen (); 10533int 10534main () 10535{ 10536return dlopen (); 10537 ; 10538 return 0; 10539} 10540_ACEOF 10541rm -f conftest.$ac_objext conftest$ac_exeext 10542if { (ac_try="$ac_link" 10543case "(($ac_try" in 10544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10545 *) ac_try_echo=$ac_try;; 10546esac 10547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10548$as_echo "$ac_try_echo") >&5 10549 (eval "$ac_link") 2>conftest.er1 10550 ac_status=$? 10551 grep -v '^ *+' conftest.er1 >conftest.err 10552 rm -f conftest.er1 10553 cat conftest.err >&5 10554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10555 (exit $ac_status); } && { 10556 test -z "$ac_c_werror_flag" || 10557 test ! -s conftest.err 10558 } && test -s conftest$ac_exeext && { 10559 test "$cross_compiling" = yes || 10560 $as_test_x conftest$ac_exeext 10561 }; then 10562 ac_cv_lib_dl_dlopen=yes 10563else 10564 $as_echo "$as_me: failed program was:" >&5 10565sed 's/^/| /' conftest.$ac_ext >&5 10566 10567 ac_cv_lib_dl_dlopen=no 10568fi 10569 10570rm -rf conftest.dSYM 10571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10572 conftest$ac_exeext conftest.$ac_ext 10573LIBS=$ac_check_lib_save_LIBS 10574fi 10575{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10576$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10577if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10578 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10579else 10580 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10581$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10582if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10583 $as_echo_n "(cached) " >&6 10584else 10585 ac_check_lib_save_LIBS=$LIBS 10586LIBS="-lsvld $LIBS" 10587cat >conftest.$ac_ext <<_ACEOF 10588/* confdefs.h. */ 10589_ACEOF 10590cat confdefs.h >>conftest.$ac_ext 10591cat >>conftest.$ac_ext <<_ACEOF 10592/* end confdefs.h. */ 10593 10594/* Override any GCC internal prototype to avoid an error. 10595 Use char because int might match the return type of a GCC 10596 builtin and then its argument prototype would still apply. */ 10597#ifdef __cplusplus 10598extern "C" 10599#endif 10600char dlopen (); 10601int 10602main () 10603{ 10604return dlopen (); 10605 ; 10606 return 0; 10607} 10608_ACEOF 10609rm -f conftest.$ac_objext conftest$ac_exeext 10610if { (ac_try="$ac_link" 10611case "(($ac_try" in 10612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10613 *) ac_try_echo=$ac_try;; 10614esac 10615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10616$as_echo "$ac_try_echo") >&5 10617 (eval "$ac_link") 2>conftest.er1 10618 ac_status=$? 10619 grep -v '^ *+' conftest.er1 >conftest.err 10620 rm -f conftest.er1 10621 cat conftest.err >&5 10622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10623 (exit $ac_status); } && { 10624 test -z "$ac_c_werror_flag" || 10625 test ! -s conftest.err 10626 } && test -s conftest$ac_exeext && { 10627 test "$cross_compiling" = yes || 10628 $as_test_x conftest$ac_exeext 10629 }; then 10630 ac_cv_lib_svld_dlopen=yes 10631else 10632 $as_echo "$as_me: failed program was:" >&5 10633sed 's/^/| /' conftest.$ac_ext >&5 10634 10635 ac_cv_lib_svld_dlopen=no 10636fi 10637 10638rm -rf conftest.dSYM 10639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10640 conftest$ac_exeext conftest.$ac_ext 10641LIBS=$ac_check_lib_save_LIBS 10642fi 10643{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10644$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10645if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10646 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10647else 10648 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10649$as_echo_n "checking for dld_link in -ldld... " >&6; } 10650if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10651 $as_echo_n "(cached) " >&6 10652else 10653 ac_check_lib_save_LIBS=$LIBS 10654LIBS="-ldld $LIBS" 10655cat >conftest.$ac_ext <<_ACEOF 10656/* confdefs.h. */ 10657_ACEOF 10658cat confdefs.h >>conftest.$ac_ext 10659cat >>conftest.$ac_ext <<_ACEOF 10660/* end confdefs.h. */ 10661 10662/* Override any GCC internal prototype to avoid an error. 10663 Use char because int might match the return type of a GCC 10664 builtin and then its argument prototype would still apply. */ 10665#ifdef __cplusplus 10666extern "C" 10667#endif 10668char dld_link (); 10669int 10670main () 10671{ 10672return dld_link (); 10673 ; 10674 return 0; 10675} 10676_ACEOF 10677rm -f conftest.$ac_objext conftest$ac_exeext 10678if { (ac_try="$ac_link" 10679case "(($ac_try" in 10680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10681 *) ac_try_echo=$ac_try;; 10682esac 10683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10684$as_echo "$ac_try_echo") >&5 10685 (eval "$ac_link") 2>conftest.er1 10686 ac_status=$? 10687 grep -v '^ *+' conftest.er1 >conftest.err 10688 rm -f conftest.er1 10689 cat conftest.err >&5 10690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10691 (exit $ac_status); } && { 10692 test -z "$ac_c_werror_flag" || 10693 test ! -s conftest.err 10694 } && test -s conftest$ac_exeext && { 10695 test "$cross_compiling" = yes || 10696 $as_test_x conftest$ac_exeext 10697 }; then 10698 ac_cv_lib_dld_dld_link=yes 10699else 10700 $as_echo "$as_me: failed program was:" >&5 10701sed 's/^/| /' conftest.$ac_ext >&5 10702 10703 ac_cv_lib_dld_dld_link=no 10704fi 10705 10706rm -rf conftest.dSYM 10707rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10708 conftest$ac_exeext conftest.$ac_ext 10709LIBS=$ac_check_lib_save_LIBS 10710fi 10711{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10712$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10713if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10714 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10715fi 10716 10717 10718fi 10719 10720 10721fi 10722 10723 10724fi 10725 10726 10727fi 10728 10729 10730fi 10731 10732 ;; 10733 esac 10734 10735 if test "x$lt_cv_dlopen" != xno; then 10736 enable_dlopen=yes 10737 else 10738 enable_dlopen=no 10739 fi 10740 10741 case $lt_cv_dlopen in 10742 dlopen) 10743 save_CPPFLAGS="$CPPFLAGS" 10744 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10745 10746 save_LDFLAGS="$LDFLAGS" 10747 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10748 10749 save_LIBS="$LIBS" 10750 LIBS="$lt_cv_dlopen_libs $LIBS" 10751 10752 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10753$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10754if test "${lt_cv_dlopen_self+set}" = set; then 10755 $as_echo_n "(cached) " >&6 10756else 10757 if test "$cross_compiling" = yes; then : 10758 lt_cv_dlopen_self=cross 10759else 10760 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10761 lt_status=$lt_dlunknown 10762 cat > conftest.$ac_ext <<_LT_EOF 10763#line 10763 "configure" 10764#include "confdefs.h" 10765 10766#if HAVE_DLFCN_H 10767#include <dlfcn.h> 10768#endif 10769 10770#include <stdio.h> 10771 10772#ifdef RTLD_GLOBAL 10773# define LT_DLGLOBAL RTLD_GLOBAL 10774#else 10775# ifdef DL_GLOBAL 10776# define LT_DLGLOBAL DL_GLOBAL 10777# else 10778# define LT_DLGLOBAL 0 10779# endif 10780#endif 10781 10782/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10783 find out it does not work in some platform. */ 10784#ifndef LT_DLLAZY_OR_NOW 10785# ifdef RTLD_LAZY 10786# define LT_DLLAZY_OR_NOW RTLD_LAZY 10787# else 10788# ifdef DL_LAZY 10789# define LT_DLLAZY_OR_NOW DL_LAZY 10790# else 10791# ifdef RTLD_NOW 10792# define LT_DLLAZY_OR_NOW RTLD_NOW 10793# else 10794# ifdef DL_NOW 10795# define LT_DLLAZY_OR_NOW DL_NOW 10796# else 10797# define LT_DLLAZY_OR_NOW 0 10798# endif 10799# endif 10800# endif 10801# endif 10802#endif 10803 10804void fnord() { int i=42;} 10805int main () 10806{ 10807 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10808 int status = $lt_dlunknown; 10809 10810 if (self) 10811 { 10812 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10813 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10814 /* dlclose (self); */ 10815 } 10816 else 10817 puts (dlerror ()); 10818 10819 return status; 10820} 10821_LT_EOF 10822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10823 (eval $ac_link) 2>&5 10824 ac_status=$? 10825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10826 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10827 (./conftest; exit; ) >&5 2>/dev/null 10828 lt_status=$? 10829 case x$lt_status in 10830 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10831 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10832 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10833 esac 10834 else : 10835 # compilation failed 10836 lt_cv_dlopen_self=no 10837 fi 10838fi 10839rm -fr conftest* 10840 10841 10842fi 10843{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10844$as_echo "$lt_cv_dlopen_self" >&6; } 10845 10846 if test "x$lt_cv_dlopen_self" = xyes; then 10847 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10848 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10849$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10850if test "${lt_cv_dlopen_self_static+set}" = set; then 10851 $as_echo_n "(cached) " >&6 10852else 10853 if test "$cross_compiling" = yes; then : 10854 lt_cv_dlopen_self_static=cross 10855else 10856 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10857 lt_status=$lt_dlunknown 10858 cat > conftest.$ac_ext <<_LT_EOF 10859#line 10859 "configure" 10860#include "confdefs.h" 10861 10862#if HAVE_DLFCN_H 10863#include <dlfcn.h> 10864#endif 10865 10866#include <stdio.h> 10867 10868#ifdef RTLD_GLOBAL 10869# define LT_DLGLOBAL RTLD_GLOBAL 10870#else 10871# ifdef DL_GLOBAL 10872# define LT_DLGLOBAL DL_GLOBAL 10873# else 10874# define LT_DLGLOBAL 0 10875# endif 10876#endif 10877 10878/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10879 find out it does not work in some platform. */ 10880#ifndef LT_DLLAZY_OR_NOW 10881# ifdef RTLD_LAZY 10882# define LT_DLLAZY_OR_NOW RTLD_LAZY 10883# else 10884# ifdef DL_LAZY 10885# define LT_DLLAZY_OR_NOW DL_LAZY 10886# else 10887# ifdef RTLD_NOW 10888# define LT_DLLAZY_OR_NOW RTLD_NOW 10889# else 10890# ifdef DL_NOW 10891# define LT_DLLAZY_OR_NOW DL_NOW 10892# else 10893# define LT_DLLAZY_OR_NOW 0 10894# endif 10895# endif 10896# endif 10897# endif 10898#endif 10899 10900void fnord() { int i=42;} 10901int main () 10902{ 10903 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10904 int status = $lt_dlunknown; 10905 10906 if (self) 10907 { 10908 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10909 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10910 /* dlclose (self); */ 10911 } 10912 else 10913 puts (dlerror ()); 10914 10915 return status; 10916} 10917_LT_EOF 10918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10919 (eval $ac_link) 2>&5 10920 ac_status=$? 10921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10922 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10923 (./conftest; exit; ) >&5 2>/dev/null 10924 lt_status=$? 10925 case x$lt_status in 10926 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10927 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10928 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10929 esac 10930 else : 10931 # compilation failed 10932 lt_cv_dlopen_self_static=no 10933 fi 10934fi 10935rm -fr conftest* 10936 10937 10938fi 10939{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10940$as_echo "$lt_cv_dlopen_self_static" >&6; } 10941 fi 10942 10943 CPPFLAGS="$save_CPPFLAGS" 10944 LDFLAGS="$save_LDFLAGS" 10945 LIBS="$save_LIBS" 10946 ;; 10947 esac 10948 10949 case $lt_cv_dlopen_self in 10950 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10951 *) enable_dlopen_self=unknown ;; 10952 esac 10953 10954 case $lt_cv_dlopen_self_static in 10955 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10956 *) enable_dlopen_self_static=unknown ;; 10957 esac 10958fi 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976striplib= 10977old_striplib= 10978{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10979$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10980if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10981 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10982 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10983 { $as_echo "$as_me:$LINENO: result: yes" >&5 10984$as_echo "yes" >&6; } 10985else 10986# FIXME - insert some real tests, host_os isn't really good enough 10987 case $host_os in 10988 darwin*) 10989 if test -n "$STRIP" ; then 10990 striplib="$STRIP -x" 10991 old_striplib="$STRIP -S" 10992 { $as_echo "$as_me:$LINENO: result: yes" >&5 10993$as_echo "yes" >&6; } 10994 else 10995 { $as_echo "$as_me:$LINENO: result: no" >&5 10996$as_echo "no" >&6; } 10997 fi 10998 ;; 10999 *) 11000 { $as_echo "$as_me:$LINENO: result: no" >&5 11001$as_echo "no" >&6; } 11002 ;; 11003 esac 11004fi 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 # Report which library types will actually be built 11018 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11019$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11020 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11021$as_echo "$can_build_shared" >&6; } 11022 11023 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11024$as_echo_n "checking whether to build shared libraries... " >&6; } 11025 test "$can_build_shared" = "no" && enable_shared=no 11026 11027 # On AIX, shared libraries and static libraries use the same namespace, and 11028 # are all built from PIC. 11029 case $host_os in 11030 aix3*) 11031 test "$enable_shared" = yes && enable_static=no 11032 if test -n "$RANLIB"; then 11033 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11034 postinstall_cmds='$RANLIB $lib' 11035 fi 11036 ;; 11037 11038 aix[4-9]*) 11039 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11040 test "$enable_shared" = yes && enable_static=no 11041 fi 11042 ;; 11043 esac 11044 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11045$as_echo "$enable_shared" >&6; } 11046 11047 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11048$as_echo_n "checking whether to build static libraries... " >&6; } 11049 # Make sure either enable_shared or enable_static is yes. 11050 test "$enable_shared" = yes || enable_static=yes 11051 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11052$as_echo "$enable_static" >&6; } 11053 11054 11055 11056 11057fi 11058ac_ext=c 11059ac_cpp='$CPP $CPPFLAGS' 11060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11062ac_compiler_gnu=$ac_cv_c_compiler_gnu 11063 11064CC="$lt_save_CC" 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 ac_config_commands="$ac_config_commands libtool" 11079 11080 11081 11082 11083# Only expand once: 11084 11085 11086ac_ext=c 11087ac_cpp='$CPP $CPPFLAGS' 11088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11090ac_compiler_gnu=$ac_cv_c_compiler_gnu 11091if test -n "$ac_tool_prefix"; then 11092 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11093set dummy ${ac_tool_prefix}gcc; ac_word=$2 11094{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11095$as_echo_n "checking for $ac_word... " >&6; } 11096if test "${ac_cv_prog_CC+set}" = set; then 11097 $as_echo_n "(cached) " >&6 11098else 11099 if test -n "$CC"; then 11100 ac_cv_prog_CC="$CC" # Let the user override the test. 11101else 11102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11103for as_dir in $PATH 11104do 11105 IFS=$as_save_IFS 11106 test -z "$as_dir" && as_dir=. 11107 for ac_exec_ext in '' $ac_executable_extensions; do 11108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11109 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11110 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11111 break 2 11112 fi 11113done 11114done 11115IFS=$as_save_IFS 11116 11117fi 11118fi 11119CC=$ac_cv_prog_CC 11120if test -n "$CC"; then 11121 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11122$as_echo "$CC" >&6; } 11123else 11124 { $as_echo "$as_me:$LINENO: result: no" >&5 11125$as_echo "no" >&6; } 11126fi 11127 11128 11129fi 11130if test -z "$ac_cv_prog_CC"; then 11131 ac_ct_CC=$CC 11132 # Extract the first word of "gcc", so it can be a program name with args. 11133set dummy gcc; ac_word=$2 11134{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11135$as_echo_n "checking for $ac_word... " >&6; } 11136if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 11137 $as_echo_n "(cached) " >&6 11138else 11139 if test -n "$ac_ct_CC"; then 11140 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11141else 11142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11143for as_dir in $PATH 11144do 11145 IFS=$as_save_IFS 11146 test -z "$as_dir" && as_dir=. 11147 for ac_exec_ext in '' $ac_executable_extensions; do 11148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11149 ac_cv_prog_ac_ct_CC="gcc" 11150 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11151 break 2 11152 fi 11153done 11154done 11155IFS=$as_save_IFS 11156 11157fi 11158fi 11159ac_ct_CC=$ac_cv_prog_ac_ct_CC 11160if test -n "$ac_ct_CC"; then 11161 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 11162$as_echo "$ac_ct_CC" >&6; } 11163else 11164 { $as_echo "$as_me:$LINENO: result: no" >&5 11165$as_echo "no" >&6; } 11166fi 11167 11168 if test "x$ac_ct_CC" = x; then 11169 CC="" 11170 else 11171 case $cross_compiling:$ac_tool_warned in 11172yes:) 11173{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 11174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11175ac_tool_warned=yes ;; 11176esac 11177 CC=$ac_ct_CC 11178 fi 11179else 11180 CC="$ac_cv_prog_CC" 11181fi 11182 11183if test -z "$CC"; then 11184 if test -n "$ac_tool_prefix"; then 11185 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11186set dummy ${ac_tool_prefix}cc; ac_word=$2 11187{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11188$as_echo_n "checking for $ac_word... " >&6; } 11189if test "${ac_cv_prog_CC+set}" = set; then 11190 $as_echo_n "(cached) " >&6 11191else 11192 if test -n "$CC"; then 11193 ac_cv_prog_CC="$CC" # Let the user override the test. 11194else 11195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11196for as_dir in $PATH 11197do 11198 IFS=$as_save_IFS 11199 test -z "$as_dir" && as_dir=. 11200 for ac_exec_ext in '' $ac_executable_extensions; do 11201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11202 ac_cv_prog_CC="${ac_tool_prefix}cc" 11203 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11204 break 2 11205 fi 11206done 11207done 11208IFS=$as_save_IFS 11209 11210fi 11211fi 11212CC=$ac_cv_prog_CC 11213if test -n "$CC"; then 11214 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11215$as_echo "$CC" >&6; } 11216else 11217 { $as_echo "$as_me:$LINENO: result: no" >&5 11218$as_echo "no" >&6; } 11219fi 11220 11221 11222 fi 11223fi 11224if test -z "$CC"; then 11225 # Extract the first word of "cc", so it can be a program name with args. 11226set dummy cc; ac_word=$2 11227{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11228$as_echo_n "checking for $ac_word... " >&6; } 11229if test "${ac_cv_prog_CC+set}" = set; then 11230 $as_echo_n "(cached) " >&6 11231else 11232 if test -n "$CC"; then 11233 ac_cv_prog_CC="$CC" # Let the user override the test. 11234else 11235 ac_prog_rejected=no 11236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11237for as_dir in $PATH 11238do 11239 IFS=$as_save_IFS 11240 test -z "$as_dir" && as_dir=. 11241 for ac_exec_ext in '' $ac_executable_extensions; do 11242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11243 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11244 ac_prog_rejected=yes 11245 continue 11246 fi 11247 ac_cv_prog_CC="cc" 11248 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11249 break 2 11250 fi 11251done 11252done 11253IFS=$as_save_IFS 11254 11255if test $ac_prog_rejected = yes; then 11256 # We found a bogon in the path, so make sure we never use it. 11257 set dummy $ac_cv_prog_CC 11258 shift 11259 if test $# != 0; then 11260 # We chose a different compiler from the bogus one. 11261 # However, it has the same basename, so the bogon will be chosen 11262 # first if we set CC to just the basename; use the full file name. 11263 shift 11264 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11265 fi 11266fi 11267fi 11268fi 11269CC=$ac_cv_prog_CC 11270if test -n "$CC"; then 11271 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11272$as_echo "$CC" >&6; } 11273else 11274 { $as_echo "$as_me:$LINENO: result: no" >&5 11275$as_echo "no" >&6; } 11276fi 11277 11278 11279fi 11280if test -z "$CC"; then 11281 if test -n "$ac_tool_prefix"; then 11282 for ac_prog in cl.exe 11283 do 11284 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11285set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11286{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11287$as_echo_n "checking for $ac_word... " >&6; } 11288if test "${ac_cv_prog_CC+set}" = set; then 11289 $as_echo_n "(cached) " >&6 11290else 11291 if test -n "$CC"; then 11292 ac_cv_prog_CC="$CC" # Let the user override the test. 11293else 11294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11295for as_dir in $PATH 11296do 11297 IFS=$as_save_IFS 11298 test -z "$as_dir" && as_dir=. 11299 for ac_exec_ext in '' $ac_executable_extensions; do 11300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11301 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11302 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11303 break 2 11304 fi 11305done 11306done 11307IFS=$as_save_IFS 11308 11309fi 11310fi 11311CC=$ac_cv_prog_CC 11312if test -n "$CC"; then 11313 { $as_echo "$as_me:$LINENO: result: $CC" >&5 11314$as_echo "$CC" >&6; } 11315else 11316 { $as_echo "$as_me:$LINENO: result: no" >&5 11317$as_echo "no" >&6; } 11318fi 11319 11320 11321 test -n "$CC" && break 11322 done 11323fi 11324if test -z "$CC"; then 11325 ac_ct_CC=$CC 11326 for ac_prog in cl.exe 11327do 11328 # Extract the first word of "$ac_prog", so it can be a program name with args. 11329set dummy $ac_prog; ac_word=$2 11330{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11331$as_echo_n "checking for $ac_word... " >&6; } 11332if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 11333 $as_echo_n "(cached) " >&6 11334else 11335 if test -n "$ac_ct_CC"; then 11336 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11337else 11338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11339for as_dir in $PATH 11340do 11341 IFS=$as_save_IFS 11342 test -z "$as_dir" && as_dir=. 11343 for ac_exec_ext in '' $ac_executable_extensions; do 11344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11345 ac_cv_prog_ac_ct_CC="$ac_prog" 11346 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11347 break 2 11348 fi 11349done 11350done 11351IFS=$as_save_IFS 11352 11353fi 11354fi 11355ac_ct_CC=$ac_cv_prog_ac_ct_CC 11356if test -n "$ac_ct_CC"; then 11357 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 11358$as_echo "$ac_ct_CC" >&6; } 11359else 11360 { $as_echo "$as_me:$LINENO: result: no" >&5 11361$as_echo "no" >&6; } 11362fi 11363 11364 11365 test -n "$ac_ct_CC" && break 11366done 11367 11368 if test "x$ac_ct_CC" = x; then 11369 CC="" 11370 else 11371 case $cross_compiling:$ac_tool_warned in 11372yes:) 11373{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 11374$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11375ac_tool_warned=yes ;; 11376esac 11377 CC=$ac_ct_CC 11378 fi 11379fi 11380 11381fi 11382 11383 11384test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 11385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11386{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 11387See \`config.log' for more details." >&5 11388$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 11389See \`config.log' for more details." >&2;} 11390 { (exit 1); exit 1; }; }; } 11391 11392# Provide some information about the compiler. 11393$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 11394set X $ac_compile 11395ac_compiler=$2 11396{ (ac_try="$ac_compiler --version >&5" 11397case "(($ac_try" in 11398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11399 *) ac_try_echo=$ac_try;; 11400esac 11401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11402$as_echo "$ac_try_echo") >&5 11403 (eval "$ac_compiler --version >&5") 2>&5 11404 ac_status=$? 11405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11406 (exit $ac_status); } 11407{ (ac_try="$ac_compiler -v >&5" 11408case "(($ac_try" in 11409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11410 *) ac_try_echo=$ac_try;; 11411esac 11412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11413$as_echo "$ac_try_echo") >&5 11414 (eval "$ac_compiler -v >&5") 2>&5 11415 ac_status=$? 11416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11417 (exit $ac_status); } 11418{ (ac_try="$ac_compiler -V >&5" 11419case "(($ac_try" in 11420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11421 *) ac_try_echo=$ac_try;; 11422esac 11423eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11424$as_echo "$ac_try_echo") >&5 11425 (eval "$ac_compiler -V >&5") 2>&5 11426 ac_status=$? 11427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11428 (exit $ac_status); } 11429 11430{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 11431$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 11432if test "${ac_cv_c_compiler_gnu+set}" = set; then 11433 $as_echo_n "(cached) " >&6 11434else 11435 cat >conftest.$ac_ext <<_ACEOF 11436/* confdefs.h. */ 11437_ACEOF 11438cat confdefs.h >>conftest.$ac_ext 11439cat >>conftest.$ac_ext <<_ACEOF 11440/* end confdefs.h. */ 11441 11442int 11443main () 11444{ 11445#ifndef __GNUC__ 11446 choke me 11447#endif 11448 11449 ; 11450 return 0; 11451} 11452_ACEOF 11453rm -f conftest.$ac_objext 11454if { (ac_try="$ac_compile" 11455case "(($ac_try" in 11456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11457 *) ac_try_echo=$ac_try;; 11458esac 11459eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11460$as_echo "$ac_try_echo") >&5 11461 (eval "$ac_compile") 2>conftest.er1 11462 ac_status=$? 11463 grep -v '^ *+' conftest.er1 >conftest.err 11464 rm -f conftest.er1 11465 cat conftest.err >&5 11466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11467 (exit $ac_status); } && { 11468 test -z "$ac_c_werror_flag" || 11469 test ! -s conftest.err 11470 } && test -s conftest.$ac_objext; then 11471 ac_compiler_gnu=yes 11472else 11473 $as_echo "$as_me: failed program was:" >&5 11474sed 's/^/| /' conftest.$ac_ext >&5 11475 11476 ac_compiler_gnu=no 11477fi 11478 11479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11480ac_cv_c_compiler_gnu=$ac_compiler_gnu 11481 11482fi 11483{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 11484$as_echo "$ac_cv_c_compiler_gnu" >&6; } 11485if test $ac_compiler_gnu = yes; then 11486 GCC=yes 11487else 11488 GCC= 11489fi 11490ac_test_CFLAGS=${CFLAGS+set} 11491ac_save_CFLAGS=$CFLAGS 11492{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 11493$as_echo_n "checking whether $CC accepts -g... " >&6; } 11494if test "${ac_cv_prog_cc_g+set}" = set; then 11495 $as_echo_n "(cached) " >&6 11496else 11497 ac_save_c_werror_flag=$ac_c_werror_flag 11498 ac_c_werror_flag=yes 11499 ac_cv_prog_cc_g=no 11500 CFLAGS="-g" 11501 cat >conftest.$ac_ext <<_ACEOF 11502/* confdefs.h. */ 11503_ACEOF 11504cat confdefs.h >>conftest.$ac_ext 11505cat >>conftest.$ac_ext <<_ACEOF 11506/* end confdefs.h. */ 11507 11508int 11509main () 11510{ 11511 11512 ; 11513 return 0; 11514} 11515_ACEOF 11516rm -f conftest.$ac_objext 11517if { (ac_try="$ac_compile" 11518case "(($ac_try" in 11519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11520 *) ac_try_echo=$ac_try;; 11521esac 11522eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11523$as_echo "$ac_try_echo") >&5 11524 (eval "$ac_compile") 2>conftest.er1 11525 ac_status=$? 11526 grep -v '^ *+' conftest.er1 >conftest.err 11527 rm -f conftest.er1 11528 cat conftest.err >&5 11529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11530 (exit $ac_status); } && { 11531 test -z "$ac_c_werror_flag" || 11532 test ! -s conftest.err 11533 } && test -s conftest.$ac_objext; then 11534 ac_cv_prog_cc_g=yes 11535else 11536 $as_echo "$as_me: failed program was:" >&5 11537sed 's/^/| /' conftest.$ac_ext >&5 11538 11539 CFLAGS="" 11540 cat >conftest.$ac_ext <<_ACEOF 11541/* confdefs.h. */ 11542_ACEOF 11543cat confdefs.h >>conftest.$ac_ext 11544cat >>conftest.$ac_ext <<_ACEOF 11545/* end confdefs.h. */ 11546 11547int 11548main () 11549{ 11550 11551 ; 11552 return 0; 11553} 11554_ACEOF 11555rm -f conftest.$ac_objext 11556if { (ac_try="$ac_compile" 11557case "(($ac_try" in 11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11559 *) ac_try_echo=$ac_try;; 11560esac 11561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11562$as_echo "$ac_try_echo") >&5 11563 (eval "$ac_compile") 2>conftest.er1 11564 ac_status=$? 11565 grep -v '^ *+' conftest.er1 >conftest.err 11566 rm -f conftest.er1 11567 cat conftest.err >&5 11568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11569 (exit $ac_status); } && { 11570 test -z "$ac_c_werror_flag" || 11571 test ! -s conftest.err 11572 } && test -s conftest.$ac_objext; then 11573 : 11574else 11575 $as_echo "$as_me: failed program was:" >&5 11576sed 's/^/| /' conftest.$ac_ext >&5 11577 11578 ac_c_werror_flag=$ac_save_c_werror_flag 11579 CFLAGS="-g" 11580 cat >conftest.$ac_ext <<_ACEOF 11581/* confdefs.h. */ 11582_ACEOF 11583cat confdefs.h >>conftest.$ac_ext 11584cat >>conftest.$ac_ext <<_ACEOF 11585/* end confdefs.h. */ 11586 11587int 11588main () 11589{ 11590 11591 ; 11592 return 0; 11593} 11594_ACEOF 11595rm -f conftest.$ac_objext 11596if { (ac_try="$ac_compile" 11597case "(($ac_try" in 11598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11599 *) ac_try_echo=$ac_try;; 11600esac 11601eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11602$as_echo "$ac_try_echo") >&5 11603 (eval "$ac_compile") 2>conftest.er1 11604 ac_status=$? 11605 grep -v '^ *+' conftest.er1 >conftest.err 11606 rm -f conftest.er1 11607 cat conftest.err >&5 11608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11609 (exit $ac_status); } && { 11610 test -z "$ac_c_werror_flag" || 11611 test ! -s conftest.err 11612 } && test -s conftest.$ac_objext; then 11613 ac_cv_prog_cc_g=yes 11614else 11615 $as_echo "$as_me: failed program was:" >&5 11616sed 's/^/| /' conftest.$ac_ext >&5 11617 11618 11619fi 11620 11621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11622fi 11623 11624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11625fi 11626 11627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11628 ac_c_werror_flag=$ac_save_c_werror_flag 11629fi 11630{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 11631$as_echo "$ac_cv_prog_cc_g" >&6; } 11632if test "$ac_test_CFLAGS" = set; then 11633 CFLAGS=$ac_save_CFLAGS 11634elif test $ac_cv_prog_cc_g = yes; then 11635 if test "$GCC" = yes; then 11636 CFLAGS="-g -O2" 11637 else 11638 CFLAGS="-g" 11639 fi 11640else 11641 if test "$GCC" = yes; then 11642 CFLAGS="-O2" 11643 else 11644 CFLAGS= 11645 fi 11646fi 11647{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 11648$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 11649if test "${ac_cv_prog_cc_c89+set}" = set; then 11650 $as_echo_n "(cached) " >&6 11651else 11652 ac_cv_prog_cc_c89=no 11653ac_save_CC=$CC 11654cat >conftest.$ac_ext <<_ACEOF 11655/* confdefs.h. */ 11656_ACEOF 11657cat confdefs.h >>conftest.$ac_ext 11658cat >>conftest.$ac_ext <<_ACEOF 11659/* end confdefs.h. */ 11660#include <stdarg.h> 11661#include <stdio.h> 11662#include <sys/types.h> 11663#include <sys/stat.h> 11664/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 11665struct buf { int x; }; 11666FILE * (*rcsopen) (struct buf *, struct stat *, int); 11667static char *e (p, i) 11668 char **p; 11669 int i; 11670{ 11671 return p[i]; 11672} 11673static char *f (char * (*g) (char **, int), char **p, ...) 11674{ 11675 char *s; 11676 va_list v; 11677 va_start (v,p); 11678 s = g (p, va_arg (v,int)); 11679 va_end (v); 11680 return s; 11681} 11682 11683/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 11684 function prototypes and stuff, but not '\xHH' hex character constants. 11685 These don't provoke an error unfortunately, instead are silently treated 11686 as 'x'. The following induces an error, until -std is added to get 11687 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 11688 array size at least. It's necessary to write '\x00'==0 to get something 11689 that's true only with -std. */ 11690int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 11691 11692/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 11693 inside strings and character constants. */ 11694#define FOO(x) 'x' 11695int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 11696 11697int test (int i, double x); 11698struct s1 {int (*f) (int a);}; 11699struct s2 {int (*f) (double a);}; 11700int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 11701int argc; 11702char **argv; 11703int 11704main () 11705{ 11706return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 11707 ; 11708 return 0; 11709} 11710_ACEOF 11711for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 11712 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 11713do 11714 CC="$ac_save_CC $ac_arg" 11715 rm -f conftest.$ac_objext 11716if { (ac_try="$ac_compile" 11717case "(($ac_try" in 11718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11719 *) ac_try_echo=$ac_try;; 11720esac 11721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11722$as_echo "$ac_try_echo") >&5 11723 (eval "$ac_compile") 2>conftest.er1 11724 ac_status=$? 11725 grep -v '^ *+' conftest.er1 >conftest.err 11726 rm -f conftest.er1 11727 cat conftest.err >&5 11728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11729 (exit $ac_status); } && { 11730 test -z "$ac_c_werror_flag" || 11731 test ! -s conftest.err 11732 } && test -s conftest.$ac_objext; then 11733 ac_cv_prog_cc_c89=$ac_arg 11734else 11735 $as_echo "$as_me: failed program was:" >&5 11736sed 's/^/| /' conftest.$ac_ext >&5 11737 11738 11739fi 11740 11741rm -f core conftest.err conftest.$ac_objext 11742 test "x$ac_cv_prog_cc_c89" != "xno" && break 11743done 11744rm -f conftest.$ac_ext 11745CC=$ac_save_CC 11746 11747fi 11748# AC_CACHE_VAL 11749case "x$ac_cv_prog_cc_c89" in 11750 x) 11751 { $as_echo "$as_me:$LINENO: result: none needed" >&5 11752$as_echo "none needed" >&6; } ;; 11753 xno) 11754 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 11755$as_echo "unsupported" >&6; } ;; 11756 *) 11757 CC="$CC $ac_cv_prog_cc_c89" 11758 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 11759$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 11760esac 11761 11762 11763ac_ext=c 11764ac_cpp='$CPP $CPPFLAGS' 11765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11767ac_compiler_gnu=$ac_cv_c_compiler_gnu 11768 11769depcc="$CC" am_compiler_list= 11770 11771{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 11772$as_echo_n "checking dependency style of $depcc... " >&6; } 11773if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 11774 $as_echo_n "(cached) " >&6 11775else 11776 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11777 # We make a subdir and do the tests there. Otherwise we can end up 11778 # making bogus files that we don't know about and never remove. For 11779 # instance it was reported that on HP-UX the gcc test will end up 11780 # making a dummy file named `D' -- because `-MD' means `put the output 11781 # in D'. 11782 mkdir conftest.dir 11783 # Copy depcomp to subdir because otherwise we won't find it if we're 11784 # using a relative directory. 11785 cp "$am_depcomp" conftest.dir 11786 cd conftest.dir 11787 # We will build objects and dependencies in a subdirectory because 11788 # it helps to detect inapplicable dependency modes. For instance 11789 # both Tru64's cc and ICC support -MD to output dependencies as a 11790 # side effect of compilation, but ICC will put the dependencies in 11791 # the current directory while Tru64 will put them in the object 11792 # directory. 11793 mkdir sub 11794 11795 am_cv_CC_dependencies_compiler_type=none 11796 if test "$am_compiler_list" = ""; then 11797 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11798 fi 11799 for depmode in $am_compiler_list; do 11800 # Setup a source with many dependencies, because some compilers 11801 # like to wrap large dependency lists on column 80 (with \), and 11802 # we should not choose a depcomp mode which is confused by this. 11803 # 11804 # We need to recreate these files for each test, as the compiler may 11805 # overwrite some of them when testing with obscure command lines. 11806 # This happens at least with the AIX C compiler. 11807 : > sub/conftest.c 11808 for i in 1 2 3 4 5 6; do 11809 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11810 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 11811 # Solaris 8's {/usr,}/bin/sh. 11812 touch sub/conftst$i.h 11813 done 11814 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11815 11816 case $depmode in 11817 nosideeffect) 11818 # after this tag, mechanisms are not by side-effect, so they'll 11819 # only be used when explicitly requested 11820 if test "x$enable_dependency_tracking" = xyes; then 11821 continue 11822 else 11823 break 11824 fi 11825 ;; 11826 none) break ;; 11827 esac 11828 # We check with `-c' and `-o' for the sake of the "dashmstdout" 11829 # mode. It turns out that the SunPro C++ compiler does not properly 11830 # handle `-M -o', and we need to detect this. 11831 if depmode=$depmode \ 11832 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 11833 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 11834 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 11835 >/dev/null 2>conftest.err && 11836 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 11837 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 11838 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 11839 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 11840 # icc doesn't choke on unknown options, it will just issue warnings 11841 # or remarks (even with -Werror). So we grep stderr for any message 11842 # that says an option was ignored or not supported. 11843 # When given -MP, icc 7.0 and 7.1 complain thusly: 11844 # icc: Command line warning: ignoring option '-M'; no argument required 11845 # The diagnosis changed in icc 8.0: 11846 # icc: Command line remark: option '-MP' not supported 11847 if (grep 'ignoring option' conftest.err || 11848 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 11849 am_cv_CC_dependencies_compiler_type=$depmode 11850 break 11851 fi 11852 fi 11853 done 11854 11855 cd .. 11856 rm -rf conftest.dir 11857else 11858 am_cv_CC_dependencies_compiler_type=none 11859fi 11860 11861fi 11862{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 11863$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 11864CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 11865 11866 if 11867 test "x$enable_dependency_tracking" != xno \ 11868 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 11869 am__fastdepCC_TRUE= 11870 am__fastdepCC_FALSE='#' 11871else 11872 am__fastdepCC_TRUE='#' 11873 am__fastdepCC_FALSE= 11874fi 11875 11876 11877 11878 11879 11880 11881# Options 11882 11883# Check whether --with-xorg-module-dir was given. 11884if test "${with_xorg_module_dir+set}" = set; then 11885 withval=$with_xorg_module_dir; moduledir="$withval" 11886else 11887 moduledir="$libdir/xorg/modules" 11888fi 11889 11890 11891 11892# Check whether --with-xserver-source was given. 11893if test "${with_xserver_source+set}" = set; then 11894 withval=$with_xserver_source; XSERVER_SOURCE="$withval" 11895else 11896 XSERVER_SOURCE="" 11897fi 11898 11899 11900# Checks for extensions 11901 11902 SAVE_CFLAGS="$CFLAGS" 11903 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 11904 cat >conftest.$ac_ext <<_ACEOF 11905/* confdefs.h. */ 11906_ACEOF 11907cat confdefs.h >>conftest.$ac_ext 11908cat >>conftest.$ac_ext <<_ACEOF 11909/* end confdefs.h. */ 11910 11911#include "xorg-server.h" 11912#if !defined RANDR 11913#error RANDR not defined 11914#endif 11915 11916int 11917main () 11918{ 11919 11920 ; 11921 return 0; 11922} 11923_ACEOF 11924rm -f conftest.$ac_objext 11925if { (ac_try="$ac_compile" 11926case "(($ac_try" in 11927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11928 *) ac_try_echo=$ac_try;; 11929esac 11930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11931$as_echo "$ac_try_echo") >&5 11932 (eval "$ac_compile") 2>conftest.er1 11933 ac_status=$? 11934 grep -v '^ *+' conftest.er1 >conftest.err 11935 rm -f conftest.er1 11936 cat conftest.err >&5 11937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11938 (exit $ac_status); } && { 11939 test -z "$ac_c_werror_flag" || 11940 test ! -s conftest.err 11941 } && test -s conftest.$ac_objext; then 11942 _EXT_CHECK=yes 11943else 11944 $as_echo "$as_me: failed program was:" >&5 11945sed 's/^/| /' conftest.$ac_ext >&5 11946 11947 _EXT_CHECK=no 11948fi 11949 11950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11951 CFLAGS="$SAVE_CFLAGS" 11952 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5 11953$as_echo_n "checking if RANDR is defined... " >&6; } 11954 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 11955$as_echo "$_EXT_CHECK" >&6; } 11956 if test "$_EXT_CHECK" != no; then 11957 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 11958 fi 11959 11960 11961 SAVE_CFLAGS="$CFLAGS" 11962 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 11963 cat >conftest.$ac_ext <<_ACEOF 11964/* confdefs.h. */ 11965_ACEOF 11966cat confdefs.h >>conftest.$ac_ext 11967cat >>conftest.$ac_ext <<_ACEOF 11968/* end confdefs.h. */ 11969 11970#include "xorg-server.h" 11971#if !defined RENDER 11972#error RENDER not defined 11973#endif 11974 11975int 11976main () 11977{ 11978 11979 ; 11980 return 0; 11981} 11982_ACEOF 11983rm -f conftest.$ac_objext 11984if { (ac_try="$ac_compile" 11985case "(($ac_try" in 11986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11987 *) ac_try_echo=$ac_try;; 11988esac 11989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11990$as_echo "$ac_try_echo") >&5 11991 (eval "$ac_compile") 2>conftest.er1 11992 ac_status=$? 11993 grep -v '^ *+' conftest.er1 >conftest.err 11994 rm -f conftest.er1 11995 cat conftest.err >&5 11996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11997 (exit $ac_status); } && { 11998 test -z "$ac_c_werror_flag" || 11999 test ! -s conftest.err 12000 } && test -s conftest.$ac_objext; then 12001 _EXT_CHECK=yes 12002else 12003 $as_echo "$as_me: failed program was:" >&5 12004sed 's/^/| /' conftest.$ac_ext >&5 12005 12006 _EXT_CHECK=no 12007fi 12008 12009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12010 CFLAGS="$SAVE_CFLAGS" 12011 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5 12012$as_echo_n "checking if RENDER is defined... " >&6; } 12013 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12014$as_echo "$_EXT_CHECK" >&6; } 12015 if test "$_EXT_CHECK" != no; then 12016 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 12017 fi 12018 12019 12020 SAVE_CFLAGS="$CFLAGS" 12021 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12022 cat >conftest.$ac_ext <<_ACEOF 12023/* confdefs.h. */ 12024_ACEOF 12025cat confdefs.h >>conftest.$ac_ext 12026cat >>conftest.$ac_ext <<_ACEOF 12027/* end confdefs.h. */ 12028 12029#include "xorg-server.h" 12030#if !defined XV 12031#error XV not defined 12032#endif 12033 12034int 12035main () 12036{ 12037 12038 ; 12039 return 0; 12040} 12041_ACEOF 12042rm -f conftest.$ac_objext 12043if { (ac_try="$ac_compile" 12044case "(($ac_try" in 12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12046 *) ac_try_echo=$ac_try;; 12047esac 12048eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12049$as_echo "$ac_try_echo") >&5 12050 (eval "$ac_compile") 2>conftest.er1 12051 ac_status=$? 12052 grep -v '^ *+' conftest.er1 >conftest.err 12053 rm -f conftest.er1 12054 cat conftest.err >&5 12055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12056 (exit $ac_status); } && { 12057 test -z "$ac_c_werror_flag" || 12058 test ! -s conftest.err 12059 } && test -s conftest.$ac_objext; then 12060 _EXT_CHECK=yes 12061else 12062 $as_echo "$as_me: failed program was:" >&5 12063sed 's/^/| /' conftest.$ac_ext >&5 12064 12065 _EXT_CHECK=no 12066fi 12067 12068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12069 CFLAGS="$SAVE_CFLAGS" 12070 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5 12071$as_echo_n "checking if XV is defined... " >&6; } 12072 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12073$as_echo "$_EXT_CHECK" >&6; } 12074 if test "$_EXT_CHECK" != no; then 12075 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 12076 fi 12077 12078 12079 SAVE_CFLAGS="$CFLAGS" 12080 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 12081 cat >conftest.$ac_ext <<_ACEOF 12082/* confdefs.h. */ 12083_ACEOF 12084cat confdefs.h >>conftest.$ac_ext 12085cat >>conftest.$ac_ext <<_ACEOF 12086/* end confdefs.h. */ 12087 12088#include "xorg-server.h" 12089#if !defined DPMSExtension 12090#error DPMSExtension not defined 12091#endif 12092 12093int 12094main () 12095{ 12096 12097 ; 12098 return 0; 12099} 12100_ACEOF 12101rm -f conftest.$ac_objext 12102if { (ac_try="$ac_compile" 12103case "(($ac_try" in 12104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12105 *) ac_try_echo=$ac_try;; 12106esac 12107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12108$as_echo "$ac_try_echo") >&5 12109 (eval "$ac_compile") 2>conftest.er1 12110 ac_status=$? 12111 grep -v '^ *+' conftest.er1 >conftest.err 12112 rm -f conftest.er1 12113 cat conftest.err >&5 12114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12115 (exit $ac_status); } && { 12116 test -z "$ac_c_werror_flag" || 12117 test ! -s conftest.err 12118 } && test -s conftest.$ac_objext; then 12119 _EXT_CHECK=yes 12120else 12121 $as_echo "$as_me: failed program was:" >&5 12122sed 's/^/| /' conftest.$ac_ext >&5 12123 12124 _EXT_CHECK=no 12125fi 12126 12127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12128 CFLAGS="$SAVE_CFLAGS" 12129 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5 12130$as_echo_n "checking if DPMSExtension is defined... " >&6; } 12131 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 12132$as_echo "$_EXT_CHECK" >&6; } 12133 if test "$_EXT_CHECK" != no; then 12134 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 12135 fi 12136 12137 12138# Checks for pkg-config packages 12139 12140 12141if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12142 if test -n "$ac_tool_prefix"; then 12143 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12144set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12145{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12146$as_echo_n "checking for $ac_word... " >&6; } 12147if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 12148 $as_echo_n "(cached) " >&6 12149else 12150 case $PKG_CONFIG in 12151 [\\/]* | ?:[\\/]*) 12152 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12153 ;; 12154 *) 12155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12156for as_dir in $PATH 12157do 12158 IFS=$as_save_IFS 12159 test -z "$as_dir" && as_dir=. 12160 for ac_exec_ext in '' $ac_executable_extensions; do 12161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12162 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12164 break 2 12165 fi 12166done 12167done 12168IFS=$as_save_IFS 12169 12170 ;; 12171esac 12172fi 12173PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12174if test -n "$PKG_CONFIG"; then 12175 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 12176$as_echo "$PKG_CONFIG" >&6; } 12177else 12178 { $as_echo "$as_me:$LINENO: result: no" >&5 12179$as_echo "no" >&6; } 12180fi 12181 12182 12183fi 12184if test -z "$ac_cv_path_PKG_CONFIG"; then 12185 ac_pt_PKG_CONFIG=$PKG_CONFIG 12186 # Extract the first word of "pkg-config", so it can be a program name with args. 12187set dummy pkg-config; ac_word=$2 12188{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 12189$as_echo_n "checking for $ac_word... " >&6; } 12190if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 12191 $as_echo_n "(cached) " >&6 12192else 12193 case $ac_pt_PKG_CONFIG in 12194 [\\/]* | ?:[\\/]*) 12195 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12196 ;; 12197 *) 12198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12199for as_dir in $PATH 12200do 12201 IFS=$as_save_IFS 12202 test -z "$as_dir" && as_dir=. 12203 for ac_exec_ext in '' $ac_executable_extensions; do 12204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12205 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12206 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12207 break 2 12208 fi 12209done 12210done 12211IFS=$as_save_IFS 12212 12213 ;; 12214esac 12215fi 12216ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12217if test -n "$ac_pt_PKG_CONFIG"; then 12218 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 12219$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12220else 12221 { $as_echo "$as_me:$LINENO: result: no" >&5 12222$as_echo "no" >&6; } 12223fi 12224 12225 if test "x$ac_pt_PKG_CONFIG" = x; then 12226 PKG_CONFIG="" 12227 else 12228 case $cross_compiling:$ac_tool_warned in 12229yes:) 12230{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 12231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12232ac_tool_warned=yes ;; 12233esac 12234 PKG_CONFIG=$ac_pt_PKG_CONFIG 12235 fi 12236else 12237 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12238fi 12239 12240fi 12241if test -n "$PKG_CONFIG"; then 12242 _pkg_min_version=0.9.0 12243 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 12244$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12245 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12246 { $as_echo "$as_me:$LINENO: result: yes" >&5 12247$as_echo "yes" >&6; } 12248 else 12249 { $as_echo "$as_me:$LINENO: result: no" >&5 12250$as_echo "no" >&6; } 12251 PKG_CONFIG="" 12252 fi 12253 12254fi 12255 12256pkg_failed=no 12257{ $as_echo "$as_me:$LINENO: checking for XORG" >&5 12258$as_echo_n "checking for XORG... " >&6; } 12259 12260if test -n "$XORG_CFLAGS"; then 12261 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 12262 elif test -n "$PKG_CONFIG"; then 12263 if test -n "$PKG_CONFIG" && \ 12264 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\"") >&5 12265 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5 12266 ac_status=$? 12267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12268 (exit $ac_status); }; then 12269 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 12270else 12271 pkg_failed=yes 12272fi 12273 else 12274 pkg_failed=untried 12275fi 12276if test -n "$XORG_LIBS"; then 12277 pkg_cv_XORG_LIBS="$XORG_LIBS" 12278 elif test -n "$PKG_CONFIG"; then 12279 if test -n "$PKG_CONFIG" && \ 12280 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\"") >&5 12281 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5 12282 ac_status=$? 12283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12284 (exit $ac_status); }; then 12285 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 12286else 12287 pkg_failed=yes 12288fi 12289 else 12290 pkg_failed=untried 12291fi 12292 12293 12294 12295if test $pkg_failed = yes; then 12296 12297if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12298 _pkg_short_errors_supported=yes 12299else 12300 _pkg_short_errors_supported=no 12301fi 12302 if test $_pkg_short_errors_supported = yes; then 12303 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>&1` 12304 else 12305 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>&1` 12306 fi 12307 # Put the nasty error message in config.log where it belongs 12308 echo "$XORG_PKG_ERRORS" >&5 12309 12310 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES) were not met: 12311 12312$XORG_PKG_ERRORS 12313 12314Consider adjusting the PKG_CONFIG_PATH environment variable if you 12315installed software in a non-standard prefix. 12316 12317Alternatively, you may set the environment variables XORG_CFLAGS 12318and XORG_LIBS to avoid the need to call pkg-config. 12319See the pkg-config man page for more details. 12320" >&5 12321$as_echo "$as_me: error: Package requirements (xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES) were not met: 12322 12323$XORG_PKG_ERRORS 12324 12325Consider adjusting the PKG_CONFIG_PATH environment variable if you 12326installed software in a non-standard prefix. 12327 12328Alternatively, you may set the environment variables XORG_CFLAGS 12329and XORG_LIBS to avoid the need to call pkg-config. 12330See the pkg-config man page for more details. 12331" >&2;} 12332 { (exit 1); exit 1; }; } 12333elif test $pkg_failed = untried; then 12334 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 12335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12336{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 12337is in your PATH or set the PKG_CONFIG environment variable to the full 12338path to pkg-config. 12339 12340Alternatively, you may set the environment variables XORG_CFLAGS 12341and XORG_LIBS to avoid the need to call pkg-config. 12342See the pkg-config man page for more details. 12343 12344To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12345See \`config.log' for more details." >&5 12346$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 12347is in your PATH or set the PKG_CONFIG environment variable to the full 12348path to pkg-config. 12349 12350Alternatively, you may set the environment variables XORG_CFLAGS 12351and XORG_LIBS to avoid the need to call pkg-config. 12352See the pkg-config man page for more details. 12353 12354To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12355See \`config.log' for more details." >&2;} 12356 { (exit 1); exit 1; }; }; } 12357else 12358 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 12359 XORG_LIBS=$pkg_cv_XORG_LIBS 12360 { $as_echo "$as_me:$LINENO: result: yes" >&5 12361$as_echo "yes" >&6; } 12362 : 12363fi 12364sdkdir=$(pkg-config --variable=sdkdir xorg-server) 12365 12366# Checks for libraries. 12367 12368# Checks for header files. 12369{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 12370$as_echo_n "checking for ANSI C header files... " >&6; } 12371if test "${ac_cv_header_stdc+set}" = set; then 12372 $as_echo_n "(cached) " >&6 12373else 12374 cat >conftest.$ac_ext <<_ACEOF 12375/* confdefs.h. */ 12376_ACEOF 12377cat confdefs.h >>conftest.$ac_ext 12378cat >>conftest.$ac_ext <<_ACEOF 12379/* end confdefs.h. */ 12380#include <stdlib.h> 12381#include <stdarg.h> 12382#include <string.h> 12383#include <float.h> 12384 12385int 12386main () 12387{ 12388 12389 ; 12390 return 0; 12391} 12392_ACEOF 12393rm -f conftest.$ac_objext 12394if { (ac_try="$ac_compile" 12395case "(($ac_try" in 12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12397 *) ac_try_echo=$ac_try;; 12398esac 12399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12400$as_echo "$ac_try_echo") >&5 12401 (eval "$ac_compile") 2>conftest.er1 12402 ac_status=$? 12403 grep -v '^ *+' conftest.er1 >conftest.err 12404 rm -f conftest.er1 12405 cat conftest.err >&5 12406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12407 (exit $ac_status); } && { 12408 test -z "$ac_c_werror_flag" || 12409 test ! -s conftest.err 12410 } && test -s conftest.$ac_objext; then 12411 ac_cv_header_stdc=yes 12412else 12413 $as_echo "$as_me: failed program was:" >&5 12414sed 's/^/| /' conftest.$ac_ext >&5 12415 12416 ac_cv_header_stdc=no 12417fi 12418 12419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12420 12421if test $ac_cv_header_stdc = yes; then 12422 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12423 cat >conftest.$ac_ext <<_ACEOF 12424/* confdefs.h. */ 12425_ACEOF 12426cat confdefs.h >>conftest.$ac_ext 12427cat >>conftest.$ac_ext <<_ACEOF 12428/* end confdefs.h. */ 12429#include <string.h> 12430 12431_ACEOF 12432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12433 $EGREP "memchr" >/dev/null 2>&1; then 12434 : 12435else 12436 ac_cv_header_stdc=no 12437fi 12438rm -f conftest* 12439 12440fi 12441 12442if test $ac_cv_header_stdc = yes; then 12443 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12444 cat >conftest.$ac_ext <<_ACEOF 12445/* confdefs.h. */ 12446_ACEOF 12447cat confdefs.h >>conftest.$ac_ext 12448cat >>conftest.$ac_ext <<_ACEOF 12449/* end confdefs.h. */ 12450#include <stdlib.h> 12451 12452_ACEOF 12453if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12454 $EGREP "free" >/dev/null 2>&1; then 12455 : 12456else 12457 ac_cv_header_stdc=no 12458fi 12459rm -f conftest* 12460 12461fi 12462 12463if test $ac_cv_header_stdc = yes; then 12464 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12465 if test "$cross_compiling" = yes; then 12466 : 12467else 12468 cat >conftest.$ac_ext <<_ACEOF 12469/* confdefs.h. */ 12470_ACEOF 12471cat confdefs.h >>conftest.$ac_ext 12472cat >>conftest.$ac_ext <<_ACEOF 12473/* end confdefs.h. */ 12474#include <ctype.h> 12475#include <stdlib.h> 12476#if ((' ' & 0x0FF) == 0x020) 12477# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12478# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12479#else 12480# define ISLOWER(c) \ 12481 (('a' <= (c) && (c) <= 'i') \ 12482 || ('j' <= (c) && (c) <= 'r') \ 12483 || ('s' <= (c) && (c) <= 'z')) 12484# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12485#endif 12486 12487#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12488int 12489main () 12490{ 12491 int i; 12492 for (i = 0; i < 256; i++) 12493 if (XOR (islower (i), ISLOWER (i)) 12494 || toupper (i) != TOUPPER (i)) 12495 return 2; 12496 return 0; 12497} 12498_ACEOF 12499rm -f conftest$ac_exeext 12500if { (ac_try="$ac_link" 12501case "(($ac_try" in 12502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12503 *) ac_try_echo=$ac_try;; 12504esac 12505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12506$as_echo "$ac_try_echo") >&5 12507 (eval "$ac_link") 2>&5 12508 ac_status=$? 12509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12511 { (case "(($ac_try" in 12512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12513 *) ac_try_echo=$ac_try;; 12514esac 12515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12516$as_echo "$ac_try_echo") >&5 12517 (eval "$ac_try") 2>&5 12518 ac_status=$? 12519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12520 (exit $ac_status); }; }; then 12521 : 12522else 12523 $as_echo "$as_me: program exited with status $ac_status" >&5 12524$as_echo "$as_me: failed program was:" >&5 12525sed 's/^/| /' conftest.$ac_ext >&5 12526 12527( exit $ac_status ) 12528ac_cv_header_stdc=no 12529fi 12530rm -rf conftest.dSYM 12531rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12532fi 12533 12534 12535fi 12536fi 12537{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 12538$as_echo "$ac_cv_header_stdc" >&6; } 12539if test $ac_cv_header_stdc = yes; then 12540 12541cat >>confdefs.h <<\_ACEOF 12542#define STDC_HEADERS 1 12543_ACEOF 12544 12545fi 12546 12547 12548save_CFLAGS="$CFLAGS" 12549CFLAGS="$XORG_CFLAGS" 12550 12551# RandR 1.2 12552{ $as_echo "$as_me:$LINENO: checking for xf86Modes.h" >&5 12553$as_echo_n "checking for xf86Modes.h... " >&6; } 12554if test "${ac_cv_header_xf86Modes_h+set}" = set; then 12555 $as_echo_n "(cached) " >&6 12556else 12557 cat >conftest.$ac_ext <<_ACEOF 12558/* confdefs.h. */ 12559_ACEOF 12560cat confdefs.h >>conftest.$ac_ext 12561cat >>conftest.$ac_ext <<_ACEOF 12562/* end confdefs.h. */ 12563#include "xorg-server.h" 12564 12565#include <xf86Modes.h> 12566_ACEOF 12567rm -f conftest.$ac_objext 12568if { (ac_try="$ac_compile" 12569case "(($ac_try" in 12570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12571 *) ac_try_echo=$ac_try;; 12572esac 12573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12574$as_echo "$ac_try_echo") >&5 12575 (eval "$ac_compile") 2>conftest.er1 12576 ac_status=$? 12577 grep -v '^ *+' conftest.er1 >conftest.err 12578 rm -f conftest.er1 12579 cat conftest.err >&5 12580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12581 (exit $ac_status); } && { 12582 test -z "$ac_c_werror_flag" || 12583 test ! -s conftest.err 12584 } && test -s conftest.$ac_objext; then 12585 ac_cv_header_xf86Modes_h=yes 12586else 12587 $as_echo "$as_me: failed program was:" >&5 12588sed 's/^/| /' conftest.$ac_ext >&5 12589 12590 ac_cv_header_xf86Modes_h=no 12591fi 12592 12593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12594fi 12595{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_xf86Modes_h" >&5 12596$as_echo "$ac_cv_header_xf86Modes_h" >&6; } 12597if test "x$ac_cv_header_xf86Modes_h" = x""yes; then 12598 BUILD_XMODES=no 12599else 12600 BUILD_XMODES=yes 12601fi 12602 12603 12604 12605# PCI rework 12606{ $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5 12607$as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; } 12608if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then 12609 $as_echo_n "(cached) " >&6 12610else 12611 cat >conftest.$ac_ext <<_ACEOF 12612/* confdefs.h. */ 12613_ACEOF 12614cat confdefs.h >>conftest.$ac_ext 12615cat >>conftest.$ac_ext <<_ACEOF 12616/* end confdefs.h. */ 12617#include "xorg-server.h" 12618 12619int 12620main () 12621{ 12622#ifndef XSERVER_LIBPCIACCESS 12623 (void) XSERVER_LIBPCIACCESS; 12624#endif 12625 12626 ; 12627 return 0; 12628} 12629_ACEOF 12630rm -f conftest.$ac_objext 12631if { (ac_try="$ac_compile" 12632case "(($ac_try" in 12633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12634 *) ac_try_echo=$ac_try;; 12635esac 12636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12637$as_echo "$ac_try_echo") >&5 12638 (eval "$ac_compile") 2>conftest.er1 12639 ac_status=$? 12640 grep -v '^ *+' conftest.er1 >conftest.err 12641 rm -f conftest.er1 12642 cat conftest.err >&5 12643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12644 (exit $ac_status); } && { 12645 test -z "$ac_c_werror_flag" || 12646 test ! -s conftest.err 12647 } && test -s conftest.$ac_objext; then 12648 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes 12649else 12650 $as_echo "$as_me: failed program was:" >&5 12651sed 's/^/| /' conftest.$ac_ext >&5 12652 12653 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no 12654fi 12655 12656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12657fi 12658{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5 12659$as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; } 12660if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then 12661 XSERVER_LIBPCIACCESS=yes 12662else 12663 XSERVER_LIBPCIACCESS=no 12664fi 12665 12666if test "x$XSERVER_LIBPCIACCESS" = "xyes"; then 12667 12668pkg_failed=no 12669{ $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5 12670$as_echo_n "checking for PCIACCESS... " >&6; } 12671 12672if test -n "$PCIACCESS_CFLAGS"; then 12673 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 12674 elif test -n "$PKG_CONFIG"; then 12675 if test -n "$PKG_CONFIG" && \ 12676 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 12677 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 12678 ac_status=$? 12679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12680 (exit $ac_status); }; then 12681 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 12682else 12683 pkg_failed=yes 12684fi 12685 else 12686 pkg_failed=untried 12687fi 12688if test -n "$PCIACCESS_LIBS"; then 12689 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 12690 elif test -n "$PKG_CONFIG"; then 12691 if test -n "$PKG_CONFIG" && \ 12692 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 12693 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 12694 ac_status=$? 12695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12696 (exit $ac_status); }; then 12697 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 12698else 12699 pkg_failed=yes 12700fi 12701 else 12702 pkg_failed=untried 12703fi 12704 12705 12706 12707if test $pkg_failed = yes; then 12708 12709if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12710 _pkg_short_errors_supported=yes 12711else 12712 _pkg_short_errors_supported=no 12713fi 12714 if test $_pkg_short_errors_supported = yes; then 12715 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1` 12716 else 12717 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1` 12718 fi 12719 # Put the nasty error message in config.log where it belongs 12720 echo "$PCIACCESS_PKG_ERRORS" >&5 12721 12722 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met: 12723 12724$PCIACCESS_PKG_ERRORS 12725 12726Consider adjusting the PKG_CONFIG_PATH environment variable if you 12727installed software in a non-standard prefix. 12728 12729Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12730and PCIACCESS_LIBS to avoid the need to call pkg-config. 12731See the pkg-config man page for more details. 12732" >&5 12733$as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met: 12734 12735$PCIACCESS_PKG_ERRORS 12736 12737Consider adjusting the PKG_CONFIG_PATH environment variable if you 12738installed software in a non-standard prefix. 12739 12740Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12741and PCIACCESS_LIBS to avoid the need to call pkg-config. 12742See the pkg-config man page for more details. 12743" >&2;} 12744 { (exit 1); exit 1; }; } 12745elif test $pkg_failed = untried; then 12746 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 12747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12748{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 12749is in your PATH or set the PKG_CONFIG environment variable to the full 12750path to pkg-config. 12751 12752Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12753and PCIACCESS_LIBS to avoid the need to call pkg-config. 12754See the pkg-config man page for more details. 12755 12756To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12757See \`config.log' for more details." >&5 12758$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 12759is in your PATH or set the PKG_CONFIG environment variable to the full 12760path to pkg-config. 12761 12762Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12763and PCIACCESS_LIBS to avoid the need to call pkg-config. 12764See the pkg-config man page for more details. 12765 12766To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12767See \`config.log' for more details." >&2;} 12768 { (exit 1); exit 1; }; }; } 12769else 12770 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 12771 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 12772 { $as_echo "$as_me:$LINENO: result: yes" >&5 12773$as_echo "yes" >&6; } 12774 : 12775fi 12776fi 12777 12778CFLAGS="$save_CFLAGS" 12779 12780 if test "x$BUILD_XMODES" = xyes; then 12781 BUILD_XMODES_TRUE= 12782 BUILD_XMODES_FALSE='#' 12783else 12784 BUILD_XMODES_TRUE='#' 12785 BUILD_XMODES_FALSE= 12786fi 12787 12788if test "x$XSERVER_SOURCE" != x; then 12789 if test -d "$XSERVER_SOURCE"; then 12790 XSERVER_SOURCE=`cd "$XSERVER_SOURCE" && pwd` 12791 if test -f "$XSERVER_SOURCE/hw/xfree86/modes/xf86Modes.h" -a -f "$XSERVER_SOURCE/hw/xfree86/parser/xf86Parser.h"; then 12792 : 12793 else 12794 { { $as_echo "$as_me:$LINENO: error: Server source at $XSERVER_SOURCE doesn't have the new mode code" >&5 12795$as_echo "$as_me: error: Server source at $XSERVER_SOURCE doesn't have the new mode code" >&2;} 12796 { (exit 1); exit 1; }; } 12797 fi 12798 else 12799 { { $as_echo "$as_me:$LINENO: error: Can't find xserver-source path $XSERVER_SOURCE" >&5 12800$as_echo "$as_me: error: Can't find xserver-source path $XSERVER_SOURCE" >&2;} 12801 { (exit 1); exit 1; }; } 12802 fi 12803fi 12804if test "x$BUILD_XMODES" = xno; then 12805 { $as_echo "$as_me:$LINENO: X server has new mode code" >&5 12806$as_echo "$as_me: X server has new mode code" >&6;} 12807 XMODES_CFLAGS= 12808 parser_dir= 12809 modes_dir= 12810else 12811 if test "x$XSERVER_SOURCE" = x; then 12812 { $as_echo "$as_me:$LINENO: X server is missing new mode code and --with-xserver-source not specified, using local copy" >&5 12813$as_echo "$as_me: X server is missing new mode code and --with-xserver-source not specified, using local copy" >&6;} 12814 { $as_echo "$as_me:$LINENO: If you're building from git, please read compat/README" >&5 12815$as_echo "$as_me: If you're building from git, please read compat/README" >&6;} 12816 parser_dir='$(top_srcdir)/compat/parser' 12817 modes_dir='$(top_srcdir)/compat/modes' 12818 else 12819 { $as_echo "$as_me:$LINENO: Using mode code from $XSERVER_SOURCE" >&5 12820$as_echo "$as_me: Using mode code from $XSERVER_SOURCE" >&6;} 12821 parser_dir="$XSERVER_SOURCE/hw/xfree86/parser" 12822 modes_dir="$XSERVER_SOURCE/hw/xfree86/modes" 12823 fi 12824 XMODES_CFLAGS="-DXF86_MODES_RENAME -I\"$modes_dir\" -I\"$parser_dir\"" 12825 12826cat >>confdefs.h <<\_ACEOF 12827#define BUILD_XMODES 1 12828_ACEOF 12829 12830fi 12831 12832 12833 12834 12835# Substitutions 12836 12837 12838 12839DRIVER_NAME=nv 12840 12841 12842 12843 12844 12845if test x$APP_MAN_SUFFIX = x ; then 12846 APP_MAN_SUFFIX=1 12847fi 12848if test x$APP_MAN_DIR = x ; then 12849 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 12850fi 12851 12852if test x$LIB_MAN_SUFFIX = x ; then 12853 LIB_MAN_SUFFIX=3 12854fi 12855if test x$LIB_MAN_DIR = x ; then 12856 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 12857fi 12858 12859if test x$FILE_MAN_SUFFIX = x ; then 12860 case $host_os in 12861 solaris*) FILE_MAN_SUFFIX=4 ;; 12862 *) FILE_MAN_SUFFIX=5 ;; 12863 esac 12864fi 12865if test x$FILE_MAN_DIR = x ; then 12866 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 12867fi 12868 12869if test x$MISC_MAN_SUFFIX = x ; then 12870 case $host_os in 12871 solaris*) MISC_MAN_SUFFIX=5 ;; 12872 *) MISC_MAN_SUFFIX=7 ;; 12873 esac 12874fi 12875if test x$MISC_MAN_DIR = x ; then 12876 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 12877fi 12878 12879if test x$DRIVER_MAN_SUFFIX = x ; then 12880 case $host_os in 12881 solaris*) DRIVER_MAN_SUFFIX=7 ;; 12882 *) DRIVER_MAN_SUFFIX=4 ;; 12883 esac 12884fi 12885if test x$DRIVER_MAN_DIR = x ; then 12886 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 12887fi 12888 12889if test x$ADMIN_MAN_SUFFIX = x ; then 12890 case $host_os in 12891 solaris*) ADMIN_MAN_SUFFIX=1m ;; 12892 *) ADMIN_MAN_SUFFIX=8 ;; 12893 esac 12894fi 12895if test x$ADMIN_MAN_DIR = x ; then 12896 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 12897fi 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915# Check whether --with-release-version was given. 12916if test "${with_release_version+set}" = set; then 12917 withval=$with_release_version; RELEASE_VERSION="$withval" 12918else 12919 RELEASE_VERSION="" 12920fi 12921 12922 if test "x$RELEASE_VERSION" != "x"; then 12923 PACKAGE="$PACKAGE-$RELEASE_VERSION" 12924 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 12925 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 12926$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 12927 fi 12928 12929cat >>confdefs.h <<_ACEOF 12930#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 12931_ACEOF 12932 12933 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 12934 if test "x$PVM" = "x"; then 12935 PVM="0" 12936 fi 12937 12938cat >>confdefs.h <<_ACEOF 12939#define PACKAGE_VERSION_MINOR $PVM 12940_ACEOF 12941 12942 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 12943 if test "x$PVP" = "x"; then 12944 PVP="0" 12945 fi 12946 12947cat >>confdefs.h <<_ACEOF 12948#define PACKAGE_VERSION_PATCHLEVEL $PVP 12949_ACEOF 12950 12951 12952 12953ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile compat/Makefile" 12954 12955cat >confcache <<\_ACEOF 12956# This file is a shell script that caches the results of configure 12957# tests run on this system so they can be shared between configure 12958# scripts and configure runs, see configure's option --config-cache. 12959# It is not useful on other systems. If it contains results you don't 12960# want to keep, you may remove or edit it. 12961# 12962# config.status only pays attention to the cache file if you give it 12963# the --recheck option to rerun configure. 12964# 12965# `ac_cv_env_foo' variables (set or unset) will be overridden when 12966# loading this file, other *unset* `ac_cv_foo' will be assigned the 12967# following values. 12968 12969_ACEOF 12970 12971# The following way of writing the cache mishandles newlines in values, 12972# but we know of no workaround that is simple, portable, and efficient. 12973# So, we kill variables containing newlines. 12974# Ultrix sh set writes to stderr and can't be redirected directly, 12975# and sets the high bit in the cache file unless we assign to the vars. 12976( 12977 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12978 eval ac_val=\$$ac_var 12979 case $ac_val in #( 12980 *${as_nl}*) 12981 case $ac_var in #( 12982 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 12983$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12984 esac 12985 case $ac_var in #( 12986 _ | IFS | as_nl) ;; #( 12987 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12988 *) $as_unset $ac_var ;; 12989 esac ;; 12990 esac 12991 done 12992 12993 (set) 2>&1 | 12994 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12995 *${as_nl}ac_space=\ *) 12996 # `set' does not quote correctly, so add quotes (double-quote 12997 # substitution turns \\\\ into \\, and sed turns \\ into \). 12998 sed -n \ 12999 "s/'/'\\\\''/g; 13000 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13001 ;; #( 13002 *) 13003 # `set' quotes correctly as required by POSIX, so do not add quotes. 13004 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13005 ;; 13006 esac | 13007 sort 13008) | 13009 sed ' 13010 /^ac_cv_env_/b end 13011 t clear 13012 :clear 13013 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13014 t end 13015 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13016 :end' >>confcache 13017if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13018 if test -w "$cache_file"; then 13019 test "x$cache_file" != "x/dev/null" && 13020 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 13021$as_echo "$as_me: updating cache $cache_file" >&6;} 13022 cat confcache >$cache_file 13023 else 13024 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 13025$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13026 fi 13027fi 13028rm -f confcache 13029 13030test "x$prefix" = xNONE && prefix=$ac_default_prefix 13031# Let make expand exec_prefix. 13032test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13033 13034DEFS=-DHAVE_CONFIG_H 13035 13036ac_libobjs= 13037ac_ltlibobjs= 13038for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13039 # 1. Remove the extension, and $U if already installed. 13040 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13041 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13042 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13043 # will be set to the directory where LIBOBJS objects are built. 13044 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13045 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 13046done 13047LIBOBJS=$ac_libobjs 13048 13049LTLIBOBJS=$ac_ltlibobjs 13050 13051 13052if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13053 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 13054Usually this means the macro was only invoked conditionally." >&5 13055$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 13056Usually this means the macro was only invoked conditionally." >&2;} 13057 { (exit 1); exit 1; }; } 13058fi 13059if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13060 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 13061Usually this means the macro was only invoked conditionally." >&5 13062$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 13063Usually this means the macro was only invoked conditionally." >&2;} 13064 { (exit 1); exit 1; }; } 13065fi 13066if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13067 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13068Usually this means the macro was only invoked conditionally." >&5 13069$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13070Usually this means the macro was only invoked conditionally." >&2;} 13071 { (exit 1); exit 1; }; } 13072fi 13073if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13074 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13075Usually this means the macro was only invoked conditionally." >&5 13076$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13077Usually this means the macro was only invoked conditionally." >&2;} 13078 { (exit 1); exit 1; }; } 13079fi 13080if test -z "${BUILD_XMODES_TRUE}" && test -z "${BUILD_XMODES_FALSE}"; then 13081 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_XMODES\" was never defined. 13082Usually this means the macro was only invoked conditionally." >&5 13083$as_echo "$as_me: error: conditional \"BUILD_XMODES\" was never defined. 13084Usually this means the macro was only invoked conditionally." >&2;} 13085 { (exit 1); exit 1; }; } 13086fi 13087 13088: ${CONFIG_STATUS=./config.status} 13089ac_write_fail=0 13090ac_clean_files_save=$ac_clean_files 13091ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13092{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13093$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13094cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13095#! $SHELL 13096# Generated by $as_me. 13097# Run this file to recreate the current configuration. 13098# Compiler output produced by configure, useful for debugging 13099# configure, is in config.log if it exists. 13100 13101debug=false 13102ac_cs_recheck=false 13103ac_cs_silent=false 13104SHELL=\${CONFIG_SHELL-$SHELL} 13105_ACEOF 13106 13107cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13108## --------------------- ## 13109## M4sh Initialization. ## 13110## --------------------- ## 13111 13112# Be more Bourne compatible 13113DUALCASE=1; export DUALCASE # for MKS sh 13114if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13115 emulate sh 13116 NULLCMD=: 13117 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13118 # is contrary to our usage. Disable this feature. 13119 alias -g '${1+"$@"}'='"$@"' 13120 setopt NO_GLOB_SUBST 13121else 13122 case `(set -o) 2>/dev/null` in 13123 *posix*) set -o posix ;; 13124esac 13125 13126fi 13127 13128 13129 13130 13131# PATH needs CR 13132# Avoid depending upon Character Ranges. 13133as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13134as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13135as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13136as_cr_digits='0123456789' 13137as_cr_alnum=$as_cr_Letters$as_cr_digits 13138 13139as_nl=' 13140' 13141export as_nl 13142# Printing a long string crashes Solaris 7 /usr/bin/printf. 13143as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13144as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13145as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13146if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13147 as_echo='printf %s\n' 13148 as_echo_n='printf %s' 13149else 13150 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13151 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13152 as_echo_n='/usr/ucb/echo -n' 13153 else 13154 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13155 as_echo_n_body='eval 13156 arg=$1; 13157 case $arg in 13158 *"$as_nl"*) 13159 expr "X$arg" : "X\\(.*\\)$as_nl"; 13160 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13161 esac; 13162 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13163 ' 13164 export as_echo_n_body 13165 as_echo_n='sh -c $as_echo_n_body as_echo' 13166 fi 13167 export as_echo_body 13168 as_echo='sh -c $as_echo_body as_echo' 13169fi 13170 13171# The user is always right. 13172if test "${PATH_SEPARATOR+set}" != set; then 13173 PATH_SEPARATOR=: 13174 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13175 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13176 PATH_SEPARATOR=';' 13177 } 13178fi 13179 13180# Support unset when possible. 13181if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13182 as_unset=unset 13183else 13184 as_unset=false 13185fi 13186 13187 13188# IFS 13189# We need space, tab and new line, in precisely that order. Quoting is 13190# there to prevent editors from complaining about space-tab. 13191# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13192# splitting by setting IFS to empty value.) 13193IFS=" "" $as_nl" 13194 13195# Find who we are. Look in the path if we contain no directory separator. 13196case $0 in 13197 *[\\/]* ) as_myself=$0 ;; 13198 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13199for as_dir in $PATH 13200do 13201 IFS=$as_save_IFS 13202 test -z "$as_dir" && as_dir=. 13203 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13204done 13205IFS=$as_save_IFS 13206 13207 ;; 13208esac 13209# We did not find ourselves, most probably we were run as `sh COMMAND' 13210# in which case we are not to be found in the path. 13211if test "x$as_myself" = x; then 13212 as_myself=$0 13213fi 13214if test ! -f "$as_myself"; then 13215 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13216 { (exit 1); exit 1; } 13217fi 13218 13219# Work around bugs in pre-3.0 UWIN ksh. 13220for as_var in ENV MAIL MAILPATH 13221do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13222done 13223PS1='$ ' 13224PS2='> ' 13225PS4='+ ' 13226 13227# NLS nuisances. 13228LC_ALL=C 13229export LC_ALL 13230LANGUAGE=C 13231export LANGUAGE 13232 13233# Required to use basename. 13234if expr a : '\(a\)' >/dev/null 2>&1 && 13235 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13236 as_expr=expr 13237else 13238 as_expr=false 13239fi 13240 13241if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13242 as_basename=basename 13243else 13244 as_basename=false 13245fi 13246 13247 13248# Name of the executable. 13249as_me=`$as_basename -- "$0" || 13250$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13251 X"$0" : 'X\(//\)$' \| \ 13252 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13253$as_echo X/"$0" | 13254 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13255 s//\1/ 13256 q 13257 } 13258 /^X\/\(\/\/\)$/{ 13259 s//\1/ 13260 q 13261 } 13262 /^X\/\(\/\).*/{ 13263 s//\1/ 13264 q 13265 } 13266 s/.*/./; q'` 13267 13268# CDPATH. 13269$as_unset CDPATH 13270 13271 13272 13273 as_lineno_1=$LINENO 13274 as_lineno_2=$LINENO 13275 test "x$as_lineno_1" != "x$as_lineno_2" && 13276 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 13277 13278 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13279 # uniformly replaced by the line number. The first 'sed' inserts a 13280 # line-number line after each line using $LINENO; the second 'sed' 13281 # does the real work. The second script uses 'N' to pair each 13282 # line-number line with the line containing $LINENO, and appends 13283 # trailing '-' during substitution so that $LINENO is not a special 13284 # case at line end. 13285 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13286 # scripts with optimization help from Paolo Bonzini. Blame Lee 13287 # E. McMahon (1931-1989) for sed's syntax. :-) 13288 sed -n ' 13289 p 13290 /[$]LINENO/= 13291 ' <$as_myself | 13292 sed ' 13293 s/[$]LINENO.*/&-/ 13294 t lineno 13295 b 13296 :lineno 13297 N 13298 :loop 13299 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 13300 t loop 13301 s/-\n.*// 13302 ' >$as_me.lineno && 13303 chmod +x "$as_me.lineno" || 13304 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 13305 { (exit 1); exit 1; }; } 13306 13307 # Don't try to exec as it changes $[0], causing all sort of problems 13308 # (the dirname of $[0] is not the place where we might find the 13309 # original and so on. Autoconf is especially sensitive to this). 13310 . "./$as_me.lineno" 13311 # Exit status is that of the last command. 13312 exit 13313} 13314 13315 13316if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13317 as_dirname=dirname 13318else 13319 as_dirname=false 13320fi 13321 13322ECHO_C= ECHO_N= ECHO_T= 13323case `echo -n x` in 13324-n*) 13325 case `echo 'x\c'` in 13326 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13327 *) ECHO_C='\c';; 13328 esac;; 13329*) 13330 ECHO_N='-n';; 13331esac 13332if expr a : '\(a\)' >/dev/null 2>&1 && 13333 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13334 as_expr=expr 13335else 13336 as_expr=false 13337fi 13338 13339rm -f conf$$ conf$$.exe conf$$.file 13340if test -d conf$$.dir; then 13341 rm -f conf$$.dir/conf$$.file 13342else 13343 rm -f conf$$.dir 13344 mkdir conf$$.dir 2>/dev/null 13345fi 13346if (echo >conf$$.file) 2>/dev/null; then 13347 if ln -s conf$$.file conf$$ 2>/dev/null; then 13348 as_ln_s='ln -s' 13349 # ... but there are two gotchas: 13350 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13351 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13352 # In both cases, we have to default to `cp -p'. 13353 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13354 as_ln_s='cp -p' 13355 elif ln conf$$.file conf$$ 2>/dev/null; then 13356 as_ln_s=ln 13357 else 13358 as_ln_s='cp -p' 13359 fi 13360else 13361 as_ln_s='cp -p' 13362fi 13363rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13364rmdir conf$$.dir 2>/dev/null 13365 13366if mkdir -p . 2>/dev/null; then 13367 as_mkdir_p=: 13368else 13369 test -d ./-p && rmdir ./-p 13370 as_mkdir_p=false 13371fi 13372 13373if test -x / >/dev/null 2>&1; then 13374 as_test_x='test -x' 13375else 13376 if ls -dL / >/dev/null 2>&1; then 13377 as_ls_L_option=L 13378 else 13379 as_ls_L_option= 13380 fi 13381 as_test_x=' 13382 eval sh -c '\'' 13383 if test -d "$1"; then 13384 test -d "$1/."; 13385 else 13386 case $1 in 13387 -*)set "./$1";; 13388 esac; 13389 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 13390 ???[sx]*):;;*)false;;esac;fi 13391 '\'' sh 13392 ' 13393fi 13394as_executable_p=$as_test_x 13395 13396# Sed expression to map a string onto a valid CPP name. 13397as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13398 13399# Sed expression to map a string onto a valid variable name. 13400as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13401 13402 13403exec 6>&1 13404 13405# Save the log message, to keep $[0] and so on meaningful, and to 13406# report actual input values of CONFIG_FILES etc. instead of their 13407# values after options handling. 13408ac_log=" 13409This file was extended by xf86-video-nv $as_me 2.1.13, which was 13410generated by GNU Autoconf 2.63. Invocation command line was 13411 13412 CONFIG_FILES = $CONFIG_FILES 13413 CONFIG_HEADERS = $CONFIG_HEADERS 13414 CONFIG_LINKS = $CONFIG_LINKS 13415 CONFIG_COMMANDS = $CONFIG_COMMANDS 13416 $ $0 $@ 13417 13418on `(hostname || uname -n) 2>/dev/null | sed 1q` 13419" 13420 13421_ACEOF 13422 13423case $ac_config_files in *" 13424"*) set x $ac_config_files; shift; ac_config_files=$*;; 13425esac 13426 13427case $ac_config_headers in *" 13428"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13429esac 13430 13431 13432cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13433# Files that config.status was made for. 13434config_files="$ac_config_files" 13435config_headers="$ac_config_headers" 13436config_commands="$ac_config_commands" 13437 13438_ACEOF 13439 13440cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13441ac_cs_usage="\ 13442\`$as_me' instantiates files from templates according to the 13443current configuration. 13444 13445Usage: $0 [OPTION]... [FILE]... 13446 13447 -h, --help print this help, then exit 13448 -V, --version print version number and configuration settings, then exit 13449 -q, --quiet, --silent 13450 do not print progress messages 13451 -d, --debug don't remove temporary files 13452 --recheck update $as_me by reconfiguring in the same conditions 13453 --file=FILE[:TEMPLATE] 13454 instantiate the configuration file FILE 13455 --header=FILE[:TEMPLATE] 13456 instantiate the configuration header FILE 13457 13458Configuration files: 13459$config_files 13460 13461Configuration headers: 13462$config_headers 13463 13464Configuration commands: 13465$config_commands 13466 13467Report bugs to <bug-autoconf@gnu.org>." 13468 13469_ACEOF 13470cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13471ac_cs_version="\\ 13472xf86-video-nv config.status 2.1.13 13473configured by $0, generated by GNU Autoconf 2.63, 13474 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 13475 13476Copyright (C) 2008 Free Software Foundation, Inc. 13477This config.status script is free software; the Free Software Foundation 13478gives unlimited permission to copy, distribute and modify it." 13479 13480ac_pwd='$ac_pwd' 13481srcdir='$srcdir' 13482INSTALL='$INSTALL' 13483MKDIR_P='$MKDIR_P' 13484AWK='$AWK' 13485test -n "\$AWK" || AWK=awk 13486_ACEOF 13487 13488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13489# The default lists apply if the user does not specify any file. 13490ac_need_defaults=: 13491while test $# != 0 13492do 13493 case $1 in 13494 --*=*) 13495 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13496 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13497 ac_shift=: 13498 ;; 13499 *) 13500 ac_option=$1 13501 ac_optarg=$2 13502 ac_shift=shift 13503 ;; 13504 esac 13505 13506 case $ac_option in 13507 # Handling of the options. 13508 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13509 ac_cs_recheck=: ;; 13510 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13511 $as_echo "$ac_cs_version"; exit ;; 13512 --debug | --debu | --deb | --de | --d | -d ) 13513 debug=: ;; 13514 --file | --fil | --fi | --f ) 13515 $ac_shift 13516 case $ac_optarg in 13517 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13518 esac 13519 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 13520 ac_need_defaults=false;; 13521 --header | --heade | --head | --hea ) 13522 $ac_shift 13523 case $ac_optarg in 13524 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13525 esac 13526 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 13527 ac_need_defaults=false;; 13528 --he | --h) 13529 # Conflict between --help and --header 13530 { $as_echo "$as_me: error: ambiguous option: $1 13531Try \`$0 --help' for more information." >&2 13532 { (exit 1); exit 1; }; };; 13533 --help | --hel | -h ) 13534 $as_echo "$ac_cs_usage"; exit ;; 13535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13536 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13537 ac_cs_silent=: ;; 13538 13539 # This is an error. 13540 -*) { $as_echo "$as_me: error: unrecognized option: $1 13541Try \`$0 --help' for more information." >&2 13542 { (exit 1); exit 1; }; } ;; 13543 13544 *) ac_config_targets="$ac_config_targets $1" 13545 ac_need_defaults=false ;; 13546 13547 esac 13548 shift 13549done 13550 13551ac_configure_extra_args= 13552 13553if $ac_cs_silent; then 13554 exec 6>/dev/null 13555 ac_configure_extra_args="$ac_configure_extra_args --silent" 13556fi 13557 13558_ACEOF 13559cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13560if \$ac_cs_recheck; then 13561 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13562 shift 13563 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13564 CONFIG_SHELL='$SHELL' 13565 export CONFIG_SHELL 13566 exec "\$@" 13567fi 13568 13569_ACEOF 13570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13571exec 5>>config.log 13572{ 13573 echo 13574 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13575## Running $as_me. ## 13576_ASBOX 13577 $as_echo "$ac_log" 13578} >&5 13579 13580_ACEOF 13581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13582# 13583# INIT-COMMANDS 13584# 13585AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13586 13587 13588# The HP-UX ksh and POSIX shell print the target directory to stdout 13589# if CDPATH is set. 13590(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13591 13592sed_quote_subst='$sed_quote_subst' 13593double_quote_subst='$double_quote_subst' 13594delay_variable_subst='$delay_variable_subst' 13595enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 13596macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 13597macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 13598enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 13599pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 13600enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 13601host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 13602host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 13603host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 13604build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 13605build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 13606build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 13607SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 13608Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 13609GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 13610EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 13611FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 13612LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 13613NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 13614LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 13615max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 13616ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 13617exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 13618lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 13619lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 13620lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 13621reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 13622reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13623OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 13624deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 13625file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 13626AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 13627AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13628STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 13629RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 13630old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13631old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13632old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13633CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 13634CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13635compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 13636GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 13637lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 13638lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 13639lt_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"`' 13640lt_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"`' 13641objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 13642SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 13643ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 13644MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 13645lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 13646lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 13647lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 13648lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 13649lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 13650need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 13651DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 13652NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 13653LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 13654OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 13655OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 13656libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 13657shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13658extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13659archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 13660enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 13661export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13662whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13663compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 13664old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13665old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13666archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13667archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13668module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13669module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13670with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 13671allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13672no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13673hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13674hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 13675hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 13676hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 13677hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 13678hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 13679hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13680hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 13681inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 13682link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 13683fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 13684always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 13685export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13686exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13687include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13688prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13689file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 13690variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 13691need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13692need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 13693version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 13694runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13695shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13696shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 13697libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13698library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 13699soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13700postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13701postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13702finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13703finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 13704hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 13705sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13706sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13707hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 13708enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 13709enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 13710enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 13711old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 13712striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 13713 13714LTCC='$LTCC' 13715LTCFLAGS='$LTCFLAGS' 13716compiler='$compiler_DEFAULT' 13717 13718# Quote evaled strings. 13719for var in SED \ 13720GREP \ 13721EGREP \ 13722FGREP \ 13723LD \ 13724NM \ 13725LN_S \ 13726lt_SP2NL \ 13727lt_NL2SP \ 13728reload_flag \ 13729OBJDUMP \ 13730deplibs_check_method \ 13731file_magic_cmd \ 13732AR \ 13733AR_FLAGS \ 13734STRIP \ 13735RANLIB \ 13736CC \ 13737CFLAGS \ 13738compiler \ 13739lt_cv_sys_global_symbol_pipe \ 13740lt_cv_sys_global_symbol_to_cdecl \ 13741lt_cv_sys_global_symbol_to_c_name_address \ 13742lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13743SHELL \ 13744ECHO \ 13745lt_prog_compiler_no_builtin_flag \ 13746lt_prog_compiler_wl \ 13747lt_prog_compiler_pic \ 13748lt_prog_compiler_static \ 13749lt_cv_prog_compiler_c_o \ 13750need_locks \ 13751DSYMUTIL \ 13752NMEDIT \ 13753LIPO \ 13754OTOOL \ 13755OTOOL64 \ 13756shrext_cmds \ 13757export_dynamic_flag_spec \ 13758whole_archive_flag_spec \ 13759compiler_needs_object \ 13760with_gnu_ld \ 13761allow_undefined_flag \ 13762no_undefined_flag \ 13763hardcode_libdir_flag_spec \ 13764hardcode_libdir_flag_spec_ld \ 13765hardcode_libdir_separator \ 13766fix_srcfile_path \ 13767exclude_expsyms \ 13768include_expsyms \ 13769file_list_spec \ 13770variables_saved_for_relink \ 13771libname_spec \ 13772library_names_spec \ 13773soname_spec \ 13774finish_eval \ 13775old_striplib \ 13776striplib; do 13777 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13778 *[\\\\\\\`\\"\\\$]*) 13779 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13780 ;; 13781 *) 13782 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13783 ;; 13784 esac 13785done 13786 13787# Double-quote double-evaled strings. 13788for var in reload_cmds \ 13789old_postinstall_cmds \ 13790old_postuninstall_cmds \ 13791old_archive_cmds \ 13792extract_expsyms_cmds \ 13793old_archive_from_new_cmds \ 13794old_archive_from_expsyms_cmds \ 13795archive_cmds \ 13796archive_expsym_cmds \ 13797module_cmds \ 13798module_expsym_cmds \ 13799export_symbols_cmds \ 13800prelink_cmds \ 13801postinstall_cmds \ 13802postuninstall_cmds \ 13803finish_cmds \ 13804sys_lib_search_path_spec \ 13805sys_lib_dlsearch_path_spec; do 13806 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13807 *[\\\\\\\`\\"\\\$]*) 13808 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13809 ;; 13810 *) 13811 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13812 ;; 13813 esac 13814done 13815 13816# Fix-up fallback echo if it was mangled by the above quoting rules. 13817case \$lt_ECHO in 13818*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 13819 ;; 13820esac 13821 13822ac_aux_dir='$ac_aux_dir' 13823xsi_shell='$xsi_shell' 13824lt_shell_append='$lt_shell_append' 13825 13826# See if we are running on zsh, and set the options which allow our 13827# commands through without removal of \ escapes INIT. 13828if test -n "\${ZSH_VERSION+set}" ; then 13829 setopt NO_GLOB_SUBST 13830fi 13831 13832 13833 PACKAGE='$PACKAGE' 13834 VERSION='$VERSION' 13835 TIMESTAMP='$TIMESTAMP' 13836 RM='$RM' 13837 ofile='$ofile' 13838 13839 13840 13841 13842_ACEOF 13843 13844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13845 13846# Handling of arguments. 13847for ac_config_target in $ac_config_targets 13848do 13849 case $ac_config_target in 13850 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13851 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13852 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13853 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13854 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13855 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 13856 "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;; 13857 13858 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13859$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13860 { (exit 1); exit 1; }; };; 13861 esac 13862done 13863 13864 13865# If the user did not use the arguments to specify the items to instantiate, 13866# then the envvar interface is used. Set only those that are not. 13867# We use the long form for the default assignment because of an extremely 13868# bizarre bug on SunOS 4.1.3. 13869if $ac_need_defaults; then 13870 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13871 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13872 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13873fi 13874 13875# Have a temporary directory for convenience. Make it in the build tree 13876# simply because there is no reason against having it here, and in addition, 13877# creating and moving files from /tmp can sometimes cause problems. 13878# Hook for its removal unless debugging. 13879# Note that there is a small window in which the directory will not be cleaned: 13880# after its creation but before its name has been assigned to `$tmp'. 13881$debug || 13882{ 13883 tmp= 13884 trap 'exit_status=$? 13885 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 13886' 0 13887 trap '{ (exit 1); exit 1; }' 1 2 13 15 13888} 13889# Create a (secure) tmp directory for tmp files. 13890 13891{ 13892 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13893 test -n "$tmp" && test -d "$tmp" 13894} || 13895{ 13896 tmp=./conf$$-$RANDOM 13897 (umask 077 && mkdir "$tmp") 13898} || 13899{ 13900 $as_echo "$as_me: cannot create a temporary directory in ." >&2 13901 { (exit 1); exit 1; } 13902} 13903 13904# Set up the scripts for CONFIG_FILES section. 13905# No need to generate them if there are no CONFIG_FILES. 13906# This happens for instance with `./config.status config.h'. 13907if test -n "$CONFIG_FILES"; then 13908 13909 13910ac_cr=' 13911' 13912ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13913if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13914 ac_cs_awk_cr='\\r' 13915else 13916 ac_cs_awk_cr=$ac_cr 13917fi 13918 13919echo 'BEGIN {' >"$tmp/subs1.awk" && 13920_ACEOF 13921 13922 13923{ 13924 echo "cat >conf$$subs.awk <<_ACEOF" && 13925 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13926 echo "_ACEOF" 13927} >conf$$subs.sh || 13928 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13929$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13930 { (exit 1); exit 1; }; } 13931ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 13932ac_delim='%!_!# ' 13933for ac_last_try in false false false false false :; do 13934 . ./conf$$subs.sh || 13935 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13936$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13937 { (exit 1); exit 1; }; } 13938 13939 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13940 if test $ac_delim_n = $ac_delim_num; then 13941 break 13942 elif $ac_last_try; then 13943 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13944$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13945 { (exit 1); exit 1; }; } 13946 else 13947 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13948 fi 13949done 13950rm -f conf$$subs.sh 13951 13952cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13953cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 13954_ACEOF 13955sed -n ' 13956h 13957s/^/S["/; s/!.*/"]=/ 13958p 13959g 13960s/^[^!]*!// 13961:repl 13962t repl 13963s/'"$ac_delim"'$// 13964t delim 13965:nl 13966h 13967s/\(.\{148\}\).*/\1/ 13968t more1 13969s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13970p 13971n 13972b repl 13973:more1 13974s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13975p 13976g 13977s/.\{148\}// 13978t nl 13979:delim 13980h 13981s/\(.\{148\}\).*/\1/ 13982t more2 13983s/["\\]/\\&/g; s/^/"/; s/$/"/ 13984p 13985b 13986:more2 13987s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13988p 13989g 13990s/.\{148\}// 13991t delim 13992' <conf$$subs.awk | sed ' 13993/^[^""]/{ 13994 N 13995 s/\n// 13996} 13997' >>$CONFIG_STATUS || ac_write_fail=1 13998rm -f conf$$subs.awk 13999cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14000_ACAWK 14001cat >>"\$tmp/subs1.awk" <<_ACAWK && 14002 for (key in S) S_is_set[key] = 1 14003 FS = "" 14004 14005} 14006{ 14007 line = $ 0 14008 nfields = split(line, field, "@") 14009 substed = 0 14010 len = length(field[1]) 14011 for (i = 2; i < nfields; i++) { 14012 key = field[i] 14013 keylen = length(key) 14014 if (S_is_set[key]) { 14015 value = S[key] 14016 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14017 len += length(value) + length(field[++i]) 14018 substed = 1 14019 } else 14020 len += 1 + keylen 14021 } 14022 14023 print line 14024} 14025 14026_ACAWK 14027_ACEOF 14028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14029if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14030 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14031else 14032 cat 14033fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14034 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 14035$as_echo "$as_me: error: could not setup config files machinery" >&2;} 14036 { (exit 1); exit 1; }; } 14037_ACEOF 14038 14039# VPATH may cause trouble with some makes, so we remove $(srcdir), 14040# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14041# trailing colons and then remove the whole line if VPATH becomes empty 14042# (actually we leave an empty line to preserve line numbers). 14043if test "x$srcdir" = x.; then 14044 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14045s/:*\$(srcdir):*/:/ 14046s/:*\${srcdir}:*/:/ 14047s/:*@srcdir@:*/:/ 14048s/^\([^=]*=[ ]*\):*/\1/ 14049s/:*$// 14050s/^[^=]*=[ ]*$// 14051}' 14052fi 14053 14054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14055fi # test -n "$CONFIG_FILES" 14056 14057# Set up the scripts for CONFIG_HEADERS section. 14058# No need to generate them if there are no CONFIG_HEADERS. 14059# This happens for instance with `./config.status Makefile'. 14060if test -n "$CONFIG_HEADERS"; then 14061cat >"$tmp/defines.awk" <<\_ACAWK || 14062BEGIN { 14063_ACEOF 14064 14065# Transform confdefs.h into an awk script `defines.awk', embedded as 14066# here-document in config.status, that substitutes the proper values into 14067# config.h.in to produce config.h. 14068 14069# Create a delimiter string that does not exist in confdefs.h, to ease 14070# handling of long lines. 14071ac_delim='%!_!# ' 14072for ac_last_try in false false :; do 14073 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 14074 if test -z "$ac_t"; then 14075 break 14076 elif $ac_last_try; then 14077 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 14078$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 14079 { (exit 1); exit 1; }; } 14080 else 14081 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14082 fi 14083done 14084 14085# For the awk script, D is an array of macro values keyed by name, 14086# likewise P contains macro parameters if any. Preserve backslash 14087# newline sequences. 14088 14089ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14090sed -n ' 14091s/.\{148\}/&'"$ac_delim"'/g 14092t rset 14093:rset 14094s/^[ ]*#[ ]*define[ ][ ]*/ / 14095t def 14096d 14097:def 14098s/\\$// 14099t bsnl 14100s/["\\]/\\&/g 14101s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14102D["\1"]=" \3"/p 14103s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14104d 14105:bsnl 14106s/["\\]/\\&/g 14107s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14108D["\1"]=" \3\\\\\\n"\\/p 14109t cont 14110s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14111t cont 14112d 14113:cont 14114n 14115s/.\{148\}/&'"$ac_delim"'/g 14116t clear 14117:clear 14118s/\\$// 14119t bsnlc 14120s/["\\]/\\&/g; s/^/"/; s/$/"/p 14121d 14122:bsnlc 14123s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14124b cont 14125' <confdefs.h | sed ' 14126s/'"$ac_delim"'/"\\\ 14127"/g' >>$CONFIG_STATUS || ac_write_fail=1 14128 14129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14130 for (key in D) D_is_set[key] = 1 14131 FS = "" 14132} 14133/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14134 line = \$ 0 14135 split(line, arg, " ") 14136 if (arg[1] == "#") { 14137 defundef = arg[2] 14138 mac1 = arg[3] 14139 } else { 14140 defundef = substr(arg[1], 2) 14141 mac1 = arg[2] 14142 } 14143 split(mac1, mac2, "(") #) 14144 macro = mac2[1] 14145 prefix = substr(line, 1, index(line, defundef) - 1) 14146 if (D_is_set[macro]) { 14147 # Preserve the white space surrounding the "#". 14148 print prefix "define", macro P[macro] D[macro] 14149 next 14150 } else { 14151 # Replace #undef with comments. This is necessary, for example, 14152 # in the case of _POSIX_SOURCE, which is predefined and required 14153 # on some systems where configure will not decide to define it. 14154 if (defundef == "undef") { 14155 print "/*", prefix defundef, macro, "*/" 14156 next 14157 } 14158 } 14159} 14160{ print } 14161_ACAWK 14162_ACEOF 14163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14164 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 14165$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 14166 { (exit 1); exit 1; }; } 14167fi # test -n "$CONFIG_HEADERS" 14168 14169 14170eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14171shift 14172for ac_tag 14173do 14174 case $ac_tag in 14175 :[FHLC]) ac_mode=$ac_tag; continue;; 14176 esac 14177 case $ac_mode$ac_tag in 14178 :[FHL]*:*);; 14179 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 14180$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 14181 { (exit 1); exit 1; }; };; 14182 :[FH]-) ac_tag=-:-;; 14183 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14184 esac 14185 ac_save_IFS=$IFS 14186 IFS=: 14187 set x $ac_tag 14188 IFS=$ac_save_IFS 14189 shift 14190 ac_file=$1 14191 shift 14192 14193 case $ac_mode in 14194 :L) ac_source=$1;; 14195 :[FH]) 14196 ac_file_inputs= 14197 for ac_f 14198 do 14199 case $ac_f in 14200 -) ac_f="$tmp/stdin";; 14201 *) # Look for the file first in the build tree, then in the source tree 14202 # (if the path is not absolute). The absolute path cannot be DOS-style, 14203 # because $ac_f cannot contain `:'. 14204 test -f "$ac_f" || 14205 case $ac_f in 14206 [\\/$]*) false;; 14207 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14208 esac || 14209 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14210$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 14211 { (exit 1); exit 1; }; };; 14212 esac 14213 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14214 ac_file_inputs="$ac_file_inputs '$ac_f'" 14215 done 14216 14217 # Let's still pretend it is `configure' which instantiates (i.e., don't 14218 # use $as_me), people would be surprised to read: 14219 # /* config.h. Generated by config.status. */ 14220 configure_input='Generated from '` 14221 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14222 `' by configure.' 14223 if test x"$ac_file" != x-; then 14224 configure_input="$ac_file. $configure_input" 14225 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 14226$as_echo "$as_me: creating $ac_file" >&6;} 14227 fi 14228 # Neutralize special characters interpreted by sed in replacement strings. 14229 case $configure_input in #( 14230 *\&* | *\|* | *\\* ) 14231 ac_sed_conf_input=`$as_echo "$configure_input" | 14232 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14233 *) ac_sed_conf_input=$configure_input;; 14234 esac 14235 14236 case $ac_tag in 14237 *:-:* | *:-) cat >"$tmp/stdin" \ 14238 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14239$as_echo "$as_me: error: could not create $ac_file" >&2;} 14240 { (exit 1); exit 1; }; } ;; 14241 esac 14242 ;; 14243 esac 14244 14245 ac_dir=`$as_dirname -- "$ac_file" || 14246$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14247 X"$ac_file" : 'X\(//\)[^/]' \| \ 14248 X"$ac_file" : 'X\(//\)$' \| \ 14249 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14250$as_echo X"$ac_file" | 14251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14252 s//\1/ 14253 q 14254 } 14255 /^X\(\/\/\)[^/].*/{ 14256 s//\1/ 14257 q 14258 } 14259 /^X\(\/\/\)$/{ 14260 s//\1/ 14261 q 14262 } 14263 /^X\(\/\).*/{ 14264 s//\1/ 14265 q 14266 } 14267 s/.*/./; q'` 14268 { as_dir="$ac_dir" 14269 case $as_dir in #( 14270 -*) as_dir=./$as_dir;; 14271 esac 14272 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14273 as_dirs= 14274 while :; do 14275 case $as_dir in #( 14276 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14277 *) as_qdir=$as_dir;; 14278 esac 14279 as_dirs="'$as_qdir' $as_dirs" 14280 as_dir=`$as_dirname -- "$as_dir" || 14281$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14282 X"$as_dir" : 'X\(//\)[^/]' \| \ 14283 X"$as_dir" : 'X\(//\)$' \| \ 14284 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14285$as_echo X"$as_dir" | 14286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14287 s//\1/ 14288 q 14289 } 14290 /^X\(\/\/\)[^/].*/{ 14291 s//\1/ 14292 q 14293 } 14294 /^X\(\/\/\)$/{ 14295 s//\1/ 14296 q 14297 } 14298 /^X\(\/\).*/{ 14299 s//\1/ 14300 q 14301 } 14302 s/.*/./; q'` 14303 test -d "$as_dir" && break 14304 done 14305 test -z "$as_dirs" || eval "mkdir $as_dirs" 14306 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14307$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14308 { (exit 1); exit 1; }; }; } 14309 ac_builddir=. 14310 14311case "$ac_dir" in 14312.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14313*) 14314 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14315 # A ".." for each directory in $ac_dir_suffix. 14316 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14317 case $ac_top_builddir_sub in 14318 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14319 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14320 esac ;; 14321esac 14322ac_abs_top_builddir=$ac_pwd 14323ac_abs_builddir=$ac_pwd$ac_dir_suffix 14324# for backward compatibility: 14325ac_top_builddir=$ac_top_build_prefix 14326 14327case $srcdir in 14328 .) # We are building in place. 14329 ac_srcdir=. 14330 ac_top_srcdir=$ac_top_builddir_sub 14331 ac_abs_top_srcdir=$ac_pwd ;; 14332 [\\/]* | ?:[\\/]* ) # Absolute name. 14333 ac_srcdir=$srcdir$ac_dir_suffix; 14334 ac_top_srcdir=$srcdir 14335 ac_abs_top_srcdir=$srcdir ;; 14336 *) # Relative name. 14337 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14338 ac_top_srcdir=$ac_top_build_prefix$srcdir 14339 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14340esac 14341ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14342 14343 14344 case $ac_mode in 14345 :F) 14346 # 14347 # CONFIG_FILE 14348 # 14349 14350 case $INSTALL in 14351 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14352 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14353 esac 14354 ac_MKDIR_P=$MKDIR_P 14355 case $MKDIR_P in 14356 [\\/$]* | ?:[\\/]* ) ;; 14357 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14358 esac 14359_ACEOF 14360 14361cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14362# If the template does not know about datarootdir, expand it. 14363# FIXME: This hack should be removed a few years after 2.60. 14364ac_datarootdir_hack=; ac_datarootdir_seen= 14365 14366ac_sed_dataroot=' 14367/datarootdir/ { 14368 p 14369 q 14370} 14371/@datadir@/p 14372/@docdir@/p 14373/@infodir@/p 14374/@localedir@/p 14375/@mandir@/p 14376' 14377case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14378*datarootdir*) ac_datarootdir_seen=yes;; 14379*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14380 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14381$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14382_ACEOF 14383cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14384 ac_datarootdir_hack=' 14385 s&@datadir@&$datadir&g 14386 s&@docdir@&$docdir&g 14387 s&@infodir@&$infodir&g 14388 s&@localedir@&$localedir&g 14389 s&@mandir@&$mandir&g 14390 s&\\\${datarootdir}&$datarootdir&g' ;; 14391esac 14392_ACEOF 14393 14394# Neutralize VPATH when `$srcdir' = `.'. 14395# Shell code in configure.ac might set extrasub. 14396# FIXME: do we really want to maintain this feature? 14397cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14398ac_sed_extra="$ac_vpsub 14399$extrasub 14400_ACEOF 14401cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14402:t 14403/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14404s|@configure_input@|$ac_sed_conf_input|;t t 14405s&@top_builddir@&$ac_top_builddir_sub&;t t 14406s&@top_build_prefix@&$ac_top_build_prefix&;t t 14407s&@srcdir@&$ac_srcdir&;t t 14408s&@abs_srcdir@&$ac_abs_srcdir&;t t 14409s&@top_srcdir@&$ac_top_srcdir&;t t 14410s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14411s&@builddir@&$ac_builddir&;t t 14412s&@abs_builddir@&$ac_abs_builddir&;t t 14413s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14414s&@INSTALL@&$ac_INSTALL&;t t 14415s&@MKDIR_P@&$ac_MKDIR_P&;t t 14416$ac_datarootdir_hack 14417" 14418eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14419 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14420$as_echo "$as_me: error: could not create $ac_file" >&2;} 14421 { (exit 1); exit 1; }; } 14422 14423test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14424 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14425 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14426 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14427which seems to be undefined. Please make sure it is defined." >&5 14428$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14429which seems to be undefined. Please make sure it is defined." >&2;} 14430 14431 rm -f "$tmp/stdin" 14432 case $ac_file in 14433 -) cat "$tmp/out" && rm -f "$tmp/out";; 14434 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 14435 esac \ 14436 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14437$as_echo "$as_me: error: could not create $ac_file" >&2;} 14438 { (exit 1); exit 1; }; } 14439 ;; 14440 :H) 14441 # 14442 # CONFIG_HEADER 14443 # 14444 if test x"$ac_file" != x-; then 14445 { 14446 $as_echo "/* $configure_input */" \ 14447 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 14448 } >"$tmp/config.h" \ 14449 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14450$as_echo "$as_me: error: could not create $ac_file" >&2;} 14451 { (exit 1); exit 1; }; } 14452 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 14453 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14454$as_echo "$as_me: $ac_file is unchanged" >&6;} 14455 else 14456 rm -f "$ac_file" 14457 mv "$tmp/config.h" "$ac_file" \ 14458 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14459$as_echo "$as_me: error: could not create $ac_file" >&2;} 14460 { (exit 1); exit 1; }; } 14461 fi 14462 else 14463 $as_echo "/* $configure_input */" \ 14464 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 14465 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 14466$as_echo "$as_me: error: could not create -" >&2;} 14467 { (exit 1); exit 1; }; } 14468 fi 14469# Compute "$ac_file"'s index in $config_headers. 14470_am_arg="$ac_file" 14471_am_stamp_count=1 14472for _am_header in $config_headers :; do 14473 case $_am_header in 14474 $_am_arg | $_am_arg:* ) 14475 break ;; 14476 * ) 14477 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14478 esac 14479done 14480echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14481$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14482 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14483 X"$_am_arg" : 'X\(//\)$' \| \ 14484 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14485$as_echo X"$_am_arg" | 14486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14487 s//\1/ 14488 q 14489 } 14490 /^X\(\/\/\)[^/].*/{ 14491 s//\1/ 14492 q 14493 } 14494 /^X\(\/\/\)$/{ 14495 s//\1/ 14496 q 14497 } 14498 /^X\(\/\).*/{ 14499 s//\1/ 14500 q 14501 } 14502 s/.*/./; q'`/stamp-h$_am_stamp_count 14503 ;; 14504 14505 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 14506$as_echo "$as_me: executing $ac_file commands" >&6;} 14507 ;; 14508 esac 14509 14510 14511 case $ac_file$ac_mode in 14512 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files 14513# are listed without --file. Let's play safe and only enable the eval 14514# if we detect the quoting. 14515case $CONFIG_FILES in 14516*\'*) eval set x "$CONFIG_FILES" ;; 14517*) set x $CONFIG_FILES ;; 14518esac 14519shift 14520for mf 14521do 14522 # Strip MF so we end up with the name of the file. 14523 mf=`echo "$mf" | sed -e 's/:.*$//'` 14524 # Check whether this is an Automake generated Makefile or not. 14525 # We used to match only the files named `Makefile.in', but 14526 # some people rename them; so instead we look at the file content. 14527 # Grep'ing the first line is not enough: some people post-process 14528 # each Makefile.in and add a new line on top of each file to say so. 14529 # Grep'ing the whole file is not good either: AIX grep has a line 14530 # limit of 2048, but all sed's we know have understand at least 4000. 14531 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14532 dirpart=`$as_dirname -- "$mf" || 14533$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14534 X"$mf" : 'X\(//\)[^/]' \| \ 14535 X"$mf" : 'X\(//\)$' \| \ 14536 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14537$as_echo X"$mf" | 14538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14539 s//\1/ 14540 q 14541 } 14542 /^X\(\/\/\)[^/].*/{ 14543 s//\1/ 14544 q 14545 } 14546 /^X\(\/\/\)$/{ 14547 s//\1/ 14548 q 14549 } 14550 /^X\(\/\).*/{ 14551 s//\1/ 14552 q 14553 } 14554 s/.*/./; q'` 14555 else 14556 continue 14557 fi 14558 # Extract the definition of DEPDIR, am__include, and am__quote 14559 # from the Makefile without running `make'. 14560 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14561 test -z "$DEPDIR" && continue 14562 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14563 test -z "am__include" && continue 14564 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14565 # When using ansi2knr, U may be empty or an underscore; expand it 14566 U=`sed -n 's/^U = //p' < "$mf"` 14567 # Find all dependency output files, they are included files with 14568 # $(DEPDIR) in their names. We invoke sed twice because it is the 14569 # simplest approach to changing $(DEPDIR) to its actual value in the 14570 # expansion. 14571 for file in `sed -n " 14572 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14573 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14574 # Make sure the directory exists. 14575 test -f "$dirpart/$file" && continue 14576 fdir=`$as_dirname -- "$file" || 14577$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14578 X"$file" : 'X\(//\)[^/]' \| \ 14579 X"$file" : 'X\(//\)$' \| \ 14580 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14581$as_echo X"$file" | 14582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14583 s//\1/ 14584 q 14585 } 14586 /^X\(\/\/\)[^/].*/{ 14587 s//\1/ 14588 q 14589 } 14590 /^X\(\/\/\)$/{ 14591 s//\1/ 14592 q 14593 } 14594 /^X\(\/\).*/{ 14595 s//\1/ 14596 q 14597 } 14598 s/.*/./; q'` 14599 { as_dir=$dirpart/$fdir 14600 case $as_dir in #( 14601 -*) as_dir=./$as_dir;; 14602 esac 14603 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14604 as_dirs= 14605 while :; do 14606 case $as_dir in #( 14607 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14608 *) as_qdir=$as_dir;; 14609 esac 14610 as_dirs="'$as_qdir' $as_dirs" 14611 as_dir=`$as_dirname -- "$as_dir" || 14612$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14613 X"$as_dir" : 'X\(//\)[^/]' \| \ 14614 X"$as_dir" : 'X\(//\)$' \| \ 14615 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14616$as_echo X"$as_dir" | 14617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14618 s//\1/ 14619 q 14620 } 14621 /^X\(\/\/\)[^/].*/{ 14622 s//\1/ 14623 q 14624 } 14625 /^X\(\/\/\)$/{ 14626 s//\1/ 14627 q 14628 } 14629 /^X\(\/\).*/{ 14630 s//\1/ 14631 q 14632 } 14633 s/.*/./; q'` 14634 test -d "$as_dir" && break 14635 done 14636 test -z "$as_dirs" || eval "mkdir $as_dirs" 14637 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14638$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 14639 { (exit 1); exit 1; }; }; } 14640 # echo "creating $dirpart/$file" 14641 echo '# dummy' > "$dirpart/$file" 14642 done 14643done 14644 ;; 14645 "libtool":C) 14646 14647 # See if we are running on zsh, and set the options which allow our 14648 # commands through without removal of \ escapes. 14649 if test -n "${ZSH_VERSION+set}" ; then 14650 setopt NO_GLOB_SUBST 14651 fi 14652 14653 cfgfile="${ofile}T" 14654 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14655 $RM "$cfgfile" 14656 14657 cat <<_LT_EOF >> "$cfgfile" 14658#! $SHELL 14659 14660# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14661# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14662# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14663# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14664# 14665# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14666# 2006, 2007, 2008 Free Software Foundation, Inc. 14667# Written by Gordon Matzigkeit, 1996 14668# 14669# This file is part of GNU Libtool. 14670# 14671# GNU Libtool is free software; you can redistribute it and/or 14672# modify it under the terms of the GNU General Public License as 14673# published by the Free Software Foundation; either version 2 of 14674# the License, or (at your option) any later version. 14675# 14676# As a special exception to the GNU General Public License, 14677# if you distribute this file as part of a program or library that 14678# is built using GNU Libtool, you may include this file under the 14679# same distribution terms that you use for the rest of that program. 14680# 14681# GNU Libtool is distributed in the hope that it will be useful, 14682# but WITHOUT ANY WARRANTY; without even the implied warranty of 14683# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14684# GNU General Public License for more details. 14685# 14686# You should have received a copy of the GNU General Public License 14687# along with GNU Libtool; see the file COPYING. If not, a copy 14688# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14689# obtained by writing to the Free Software Foundation, Inc., 14690# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14691 14692 14693# The names of the tagged configurations supported by this script. 14694available_tags="" 14695 14696# ### BEGIN LIBTOOL CONFIG 14697 14698# Whether or not to build static libraries. 14699build_old_libs=$enable_static 14700 14701# Which release of libtool.m4 was used? 14702macro_version=$macro_version 14703macro_revision=$macro_revision 14704 14705# Whether or not to build shared libraries. 14706build_libtool_libs=$enable_shared 14707 14708# What type of objects to build. 14709pic_mode=$pic_mode 14710 14711# Whether or not to optimize for fast installation. 14712fast_install=$enable_fast_install 14713 14714# The host system. 14715host_alias=$host_alias 14716host=$host 14717host_os=$host_os 14718 14719# The build system. 14720build_alias=$build_alias 14721build=$build 14722build_os=$build_os 14723 14724# A sed program that does not truncate output. 14725SED=$lt_SED 14726 14727# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14728Xsed="\$SED -e 1s/^X//" 14729 14730# A grep program that handles long lines. 14731GREP=$lt_GREP 14732 14733# An ERE matcher. 14734EGREP=$lt_EGREP 14735 14736# A literal string matcher. 14737FGREP=$lt_FGREP 14738 14739# A BSD- or MS-compatible name lister. 14740NM=$lt_NM 14741 14742# Whether we need soft or hard links. 14743LN_S=$lt_LN_S 14744 14745# What is the maximum length of a command? 14746max_cmd_len=$max_cmd_len 14747 14748# Object file suffix (normally "o"). 14749objext=$ac_objext 14750 14751# Executable file suffix (normally ""). 14752exeext=$exeext 14753 14754# whether the shell understands "unset". 14755lt_unset=$lt_unset 14756 14757# turn spaces into newlines. 14758SP2NL=$lt_lt_SP2NL 14759 14760# turn newlines into spaces. 14761NL2SP=$lt_lt_NL2SP 14762 14763# How to create reloadable object files. 14764reload_flag=$lt_reload_flag 14765reload_cmds=$lt_reload_cmds 14766 14767# An object symbol dumper. 14768OBJDUMP=$lt_OBJDUMP 14769 14770# Method to check whether dependent libraries are shared objects. 14771deplibs_check_method=$lt_deplibs_check_method 14772 14773# Command to use when deplibs_check_method == "file_magic". 14774file_magic_cmd=$lt_file_magic_cmd 14775 14776# The archiver. 14777AR=$lt_AR 14778AR_FLAGS=$lt_AR_FLAGS 14779 14780# A symbol stripping program. 14781STRIP=$lt_STRIP 14782 14783# Commands used to install an old-style archive. 14784RANLIB=$lt_RANLIB 14785old_postinstall_cmds=$lt_old_postinstall_cmds 14786old_postuninstall_cmds=$lt_old_postuninstall_cmds 14787 14788# A C compiler. 14789LTCC=$lt_CC 14790 14791# LTCC compiler flags. 14792LTCFLAGS=$lt_CFLAGS 14793 14794# Take the output of nm and produce a listing of raw symbols and C names. 14795global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14796 14797# Transform the output of nm in a proper C declaration. 14798global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14799 14800# Transform the output of nm in a C name address pair. 14801global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14802 14803# Transform the output of nm in a C name address pair when lib prefix is needed. 14804global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14805 14806# The name of the directory that contains temporary libtool files. 14807objdir=$objdir 14808 14809# Shell to use when invoking shell scripts. 14810SHELL=$lt_SHELL 14811 14812# An echo program that does not interpret backslashes. 14813ECHO=$lt_ECHO 14814 14815# Used to examine libraries when file_magic_cmd begins with "file". 14816MAGIC_CMD=$MAGIC_CMD 14817 14818# Must we lock files when doing compilation? 14819need_locks=$lt_need_locks 14820 14821# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14822DSYMUTIL=$lt_DSYMUTIL 14823 14824# Tool to change global to local symbols on Mac OS X. 14825NMEDIT=$lt_NMEDIT 14826 14827# Tool to manipulate fat objects and archives on Mac OS X. 14828LIPO=$lt_LIPO 14829 14830# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14831OTOOL=$lt_OTOOL 14832 14833# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14834OTOOL64=$lt_OTOOL64 14835 14836# Old archive suffix (normally "a"). 14837libext=$libext 14838 14839# Shared library suffix (normally ".so"). 14840shrext_cmds=$lt_shrext_cmds 14841 14842# The commands to extract the exported symbol list from a shared archive. 14843extract_expsyms_cmds=$lt_extract_expsyms_cmds 14844 14845# Variables whose values should be saved in libtool wrapper scripts and 14846# restored at link time. 14847variables_saved_for_relink=$lt_variables_saved_for_relink 14848 14849# Do we need the "lib" prefix for modules? 14850need_lib_prefix=$need_lib_prefix 14851 14852# Do we need a version for libraries? 14853need_version=$need_version 14854 14855# Library versioning type. 14856version_type=$version_type 14857 14858# Shared library runtime path variable. 14859runpath_var=$runpath_var 14860 14861# Shared library path variable. 14862shlibpath_var=$shlibpath_var 14863 14864# Is shlibpath searched before the hard-coded library search path? 14865shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14866 14867# Format of library name prefix. 14868libname_spec=$lt_libname_spec 14869 14870# List of archive names. First name is the real one, the rest are links. 14871# The last name is the one that the linker finds with -lNAME 14872library_names_spec=$lt_library_names_spec 14873 14874# The coded name of the library, if different from the real name. 14875soname_spec=$lt_soname_spec 14876 14877# Command to use after installation of a shared archive. 14878postinstall_cmds=$lt_postinstall_cmds 14879 14880# Command to use after uninstallation of a shared archive. 14881postuninstall_cmds=$lt_postuninstall_cmds 14882 14883# Commands used to finish a libtool library installation in a directory. 14884finish_cmds=$lt_finish_cmds 14885 14886# As "finish_cmds", except a single script fragment to be evaled but 14887# not shown. 14888finish_eval=$lt_finish_eval 14889 14890# Whether we should hardcode library paths into libraries. 14891hardcode_into_libs=$hardcode_into_libs 14892 14893# Compile-time system search path for libraries. 14894sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14895 14896# Run-time system search path for libraries. 14897sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14898 14899# Whether dlopen is supported. 14900dlopen_support=$enable_dlopen 14901 14902# Whether dlopen of programs is supported. 14903dlopen_self=$enable_dlopen_self 14904 14905# Whether dlopen of statically linked programs is supported. 14906dlopen_self_static=$enable_dlopen_self_static 14907 14908# Commands to strip libraries. 14909old_striplib=$lt_old_striplib 14910striplib=$lt_striplib 14911 14912 14913# The linker used to build libraries. 14914LD=$lt_LD 14915 14916# Commands used to build an old-style archive. 14917old_archive_cmds=$lt_old_archive_cmds 14918 14919# A language specific compiler. 14920CC=$lt_compiler 14921 14922# Is the compiler the GNU compiler? 14923with_gcc=$GCC 14924 14925# Compiler flag to turn off builtin functions. 14926no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14927 14928# How to pass a linker flag through the compiler. 14929wl=$lt_lt_prog_compiler_wl 14930 14931# Additional compiler flags for building library objects. 14932pic_flag=$lt_lt_prog_compiler_pic 14933 14934# Compiler flag to prevent dynamic linking. 14935link_static_flag=$lt_lt_prog_compiler_static 14936 14937# Does compiler simultaneously support -c and -o options? 14938compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14939 14940# Whether or not to add -lc for building shared libraries. 14941build_libtool_need_lc=$archive_cmds_need_lc 14942 14943# Whether or not to disallow shared libs when runtime libs are static. 14944allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14945 14946# Compiler flag to allow reflexive dlopens. 14947export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14948 14949# Compiler flag to generate shared objects directly from archives. 14950whole_archive_flag_spec=$lt_whole_archive_flag_spec 14951 14952# Whether the compiler copes with passing no objects directly. 14953compiler_needs_object=$lt_compiler_needs_object 14954 14955# Create an old-style archive from a shared archive. 14956old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14957 14958# Create a temporary old-style archive to link instead of a shared archive. 14959old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14960 14961# Commands used to build a shared archive. 14962archive_cmds=$lt_archive_cmds 14963archive_expsym_cmds=$lt_archive_expsym_cmds 14964 14965# Commands used to build a loadable module if different from building 14966# a shared archive. 14967module_cmds=$lt_module_cmds 14968module_expsym_cmds=$lt_module_expsym_cmds 14969 14970# Whether we are building with GNU ld or not. 14971with_gnu_ld=$lt_with_gnu_ld 14972 14973# Flag that allows shared libraries with undefined symbols to be built. 14974allow_undefined_flag=$lt_allow_undefined_flag 14975 14976# Flag that enforces no undefined symbols. 14977no_undefined_flag=$lt_no_undefined_flag 14978 14979# Flag to hardcode \$libdir into a binary during linking. 14980# This must work even if \$libdir does not exist 14981hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14982 14983# If ld is used when linking, flag to hardcode \$libdir into a binary 14984# during linking. This must work even if \$libdir does not exist. 14985hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14986 14987# Whether we need a single "-rpath" flag with a separated argument. 14988hardcode_libdir_separator=$lt_hardcode_libdir_separator 14989 14990# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14991# DIR into the resulting binary. 14992hardcode_direct=$hardcode_direct 14993 14994# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14995# DIR into the resulting binary and the resulting library dependency is 14996# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14997# library is relocated. 14998hardcode_direct_absolute=$hardcode_direct_absolute 14999 15000# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15001# into the resulting binary. 15002hardcode_minus_L=$hardcode_minus_L 15003 15004# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15005# into the resulting binary. 15006hardcode_shlibpath_var=$hardcode_shlibpath_var 15007 15008# Set to "yes" if building a shared library automatically hardcodes DIR 15009# into the library and all subsequent libraries and executables linked 15010# against it. 15011hardcode_automatic=$hardcode_automatic 15012 15013# Set to yes if linker adds runtime paths of dependent libraries 15014# to runtime path list. 15015inherit_rpath=$inherit_rpath 15016 15017# Whether libtool must link a program against all its dependency libraries. 15018link_all_deplibs=$link_all_deplibs 15019 15020# Fix the shell variable \$srcfile for the compiler. 15021fix_srcfile_path=$lt_fix_srcfile_path 15022 15023# Set to "yes" if exported symbols are required. 15024always_export_symbols=$always_export_symbols 15025 15026# The commands to list exported symbols. 15027export_symbols_cmds=$lt_export_symbols_cmds 15028 15029# Symbols that should not be listed in the preloaded symbols. 15030exclude_expsyms=$lt_exclude_expsyms 15031 15032# Symbols that must always be exported. 15033include_expsyms=$lt_include_expsyms 15034 15035# Commands necessary for linking programs (against libraries) with templates. 15036prelink_cmds=$lt_prelink_cmds 15037 15038# Specify filename containing input files. 15039file_list_spec=$lt_file_list_spec 15040 15041# How to hardcode a shared library path into an executable. 15042hardcode_action=$hardcode_action 15043 15044# ### END LIBTOOL CONFIG 15045 15046_LT_EOF 15047 15048 case $host_os in 15049 aix3*) 15050 cat <<\_LT_EOF >> "$cfgfile" 15051# AIX sometimes has problems with the GCC collect2 program. For some 15052# reason, if we set the COLLECT_NAMES environment variable, the problems 15053# vanish in a puff of smoke. 15054if test "X${COLLECT_NAMES+set}" != Xset; then 15055 COLLECT_NAMES= 15056 export COLLECT_NAMES 15057fi 15058_LT_EOF 15059 ;; 15060 esac 15061 15062 15063ltmain="$ac_aux_dir/ltmain.sh" 15064 15065 15066 # We use sed instead of cat because bash on DJGPP gets confused if 15067 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15068 # text mode, it properly converts lines to CR/LF. This bash problem 15069 # is reportedly fixed, but why not run on old versions too? 15070 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15071 || (rm -f "$cfgfile"; exit 1) 15072 15073 case $xsi_shell in 15074 yes) 15075 cat << \_LT_EOF >> "$cfgfile" 15076 15077# func_dirname file append nondir_replacement 15078# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15079# otherwise set result to NONDIR_REPLACEMENT. 15080func_dirname () 15081{ 15082 case ${1} in 15083 */*) func_dirname_result="${1%/*}${2}" ;; 15084 * ) func_dirname_result="${3}" ;; 15085 esac 15086} 15087 15088# func_basename file 15089func_basename () 15090{ 15091 func_basename_result="${1##*/}" 15092} 15093 15094# func_dirname_and_basename file append nondir_replacement 15095# perform func_basename and func_dirname in a single function 15096# call: 15097# dirname: Compute the dirname of FILE. If nonempty, 15098# add APPEND to the result, otherwise set result 15099# to NONDIR_REPLACEMENT. 15100# value returned in "$func_dirname_result" 15101# basename: Compute filename of FILE. 15102# value retuned in "$func_basename_result" 15103# Implementation must be kept synchronized with func_dirname 15104# and func_basename. For efficiency, we do not delegate to 15105# those functions but instead duplicate the functionality here. 15106func_dirname_and_basename () 15107{ 15108 case ${1} in 15109 */*) func_dirname_result="${1%/*}${2}" ;; 15110 * ) func_dirname_result="${3}" ;; 15111 esac 15112 func_basename_result="${1##*/}" 15113} 15114 15115# func_stripname prefix suffix name 15116# strip PREFIX and SUFFIX off of NAME. 15117# PREFIX and SUFFIX must not contain globbing or regex special 15118# characters, hashes, percent signs, but SUFFIX may contain a leading 15119# dot (in which case that matches only a dot). 15120func_stripname () 15121{ 15122 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15123 # positional parameters, so assign one to ordinary parameter first. 15124 func_stripname_result=${3} 15125 func_stripname_result=${func_stripname_result#"${1}"} 15126 func_stripname_result=${func_stripname_result%"${2}"} 15127} 15128 15129# func_opt_split 15130func_opt_split () 15131{ 15132 func_opt_split_opt=${1%%=*} 15133 func_opt_split_arg=${1#*=} 15134} 15135 15136# func_lo2o object 15137func_lo2o () 15138{ 15139 case ${1} in 15140 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15141 *) func_lo2o_result=${1} ;; 15142 esac 15143} 15144 15145# func_xform libobj-or-source 15146func_xform () 15147{ 15148 func_xform_result=${1%.*}.lo 15149} 15150 15151# func_arith arithmetic-term... 15152func_arith () 15153{ 15154 func_arith_result=$(( $* )) 15155} 15156 15157# func_len string 15158# STRING may not start with a hyphen. 15159func_len () 15160{ 15161 func_len_result=${#1} 15162} 15163 15164_LT_EOF 15165 ;; 15166 *) # Bourne compatible functions. 15167 cat << \_LT_EOF >> "$cfgfile" 15168 15169# func_dirname file append nondir_replacement 15170# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15171# otherwise set result to NONDIR_REPLACEMENT. 15172func_dirname () 15173{ 15174 # Extract subdirectory from the argument. 15175 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15176 if test "X$func_dirname_result" = "X${1}"; then 15177 func_dirname_result="${3}" 15178 else 15179 func_dirname_result="$func_dirname_result${2}" 15180 fi 15181} 15182 15183# func_basename file 15184func_basename () 15185{ 15186 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15187} 15188 15189 15190# func_stripname prefix suffix name 15191# strip PREFIX and SUFFIX off of NAME. 15192# PREFIX and SUFFIX must not contain globbing or regex special 15193# characters, hashes, percent signs, but SUFFIX may contain a leading 15194# dot (in which case that matches only a dot). 15195# func_strip_suffix prefix name 15196func_stripname () 15197{ 15198 case ${2} in 15199 .*) func_stripname_result=`$ECHO "X${3}" \ 15200 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15201 *) func_stripname_result=`$ECHO "X${3}" \ 15202 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15203 esac 15204} 15205 15206# sed scripts: 15207my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15208my_sed_long_arg='1s/^-[^=]*=//' 15209 15210# func_opt_split 15211func_opt_split () 15212{ 15213 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15214 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15215} 15216 15217# func_lo2o object 15218func_lo2o () 15219{ 15220 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15221} 15222 15223# func_xform libobj-or-source 15224func_xform () 15225{ 15226 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15227} 15228 15229# func_arith arithmetic-term... 15230func_arith () 15231{ 15232 func_arith_result=`expr "$@"` 15233} 15234 15235# func_len string 15236# STRING may not start with a hyphen. 15237func_len () 15238{ 15239 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15240} 15241 15242_LT_EOF 15243esac 15244 15245case $lt_shell_append in 15246 yes) 15247 cat << \_LT_EOF >> "$cfgfile" 15248 15249# func_append var value 15250# Append VALUE to the end of shell variable VAR. 15251func_append () 15252{ 15253 eval "$1+=\$2" 15254} 15255_LT_EOF 15256 ;; 15257 *) 15258 cat << \_LT_EOF >> "$cfgfile" 15259 15260# func_append var value 15261# Append VALUE to the end of shell variable VAR. 15262func_append () 15263{ 15264 eval "$1=\$$1\$2" 15265} 15266 15267_LT_EOF 15268 ;; 15269 esac 15270 15271 15272 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15273 || (rm -f "$cfgfile"; exit 1) 15274 15275 mv -f "$cfgfile" "$ofile" || 15276 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15277 chmod +x "$ofile" 15278 15279 ;; 15280 15281 esac 15282done # for ac_tag 15283 15284 15285{ (exit 0); exit 0; } 15286_ACEOF 15287chmod +x $CONFIG_STATUS 15288ac_clean_files=$ac_clean_files_save 15289 15290test $ac_write_fail = 0 || 15291 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 15292$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 15293 { (exit 1); exit 1; }; } 15294 15295 15296# configure is writing to config.log, and then calls config.status. 15297# config.status does its own redirection, appending to config.log. 15298# Unfortunately, on DOS this fails, as config.log is still kept open 15299# by configure, so config.status won't be able to write to it; its 15300# output is simply discarded. So we exec the FD to /dev/null, 15301# effectively closing config.log, so it can be properly (re)opened and 15302# appended to by config.status. When coming back to configure, we 15303# need to make the FD available again. 15304if test "$no_create" != yes; then 15305 ac_cs_success=: 15306 ac_config_status_args= 15307 test "$silent" = yes && 15308 ac_config_status_args="$ac_config_status_args --quiet" 15309 exec 5>/dev/null 15310 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15311 exec 5>>config.log 15312 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15313 # would make configure fail if this is the last instruction. 15314 $ac_cs_success || { (exit 1); exit 1; } 15315fi 15316if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15317 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15318$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15319fi 15320 15321